@@ -125704,7 +125704,8 @@ var getLaraAuthoringAPI = function (authoringArgs) {
125704
125704
type: "MwInteractive",
125705
125705
useCount: 0,
125706
125706
dateAdded: 0,
125707
- isQuickAddItem: true
125707
+ isQuickAddItem: true,
125708
+ official: true
125708
125709
});
125709
125710
result.allEmbeddables.push({
125710
125711
id: "Embeddable::Xhtml",
@@ -125713,7 +125714,8 @@ var getLaraAuthoringAPI = function (authoringArgs) {
125713
125714
type: "Embeddable::Xhtml",
125714
125715
useCount: 0,
125715
125716
dateAdded: 0,
125716
- isQuickAddItem: true
125717
+ isQuickAddItem: true,
125718
+ official: true
125717
125719
});
125718
125720
var plugins = json.plugins;
125719
125721
@@ -130287,8 +130289,6 @@ var SectionItemButton = function (_a) {
130287
130289
};
130288
130290
130289
130291
var SectionItemPicker = function (props) {
130290
- var _a;
130291
-
130292
130292
var api = (0, use_api_provider_1.usePageAPI)();
130293
130293
var allItems = (0, react_1.useMemo)(function () {
130294
130294
if (!api.getAllEmbeddables.data) {
@@ -130306,28 +130306,28 @@ var SectionItemPicker = function (props) {
130306
130306
allEmbeddables: allEmbeddables
130307
130307
};
130308
130308
}, [api.getAllEmbeddables.data, api.isAdmin]);
130309
- var quickAddItems = (_a = api.getAllEmbeddables.data) === null || _a === void 0 ? void 0 : _a .allEmbeddables.filter(function (e) {
130309
+ var quickAddItems = allItems === null || allItems === void 0 ? void 0 : allItems .allEmbeddables.filter(function (e) {
130310
130310
return e.isQuickAddItem;
130311
130311
});
130312
130312
var onClose = props.onClose,
130313
130313
onAdd = props.onAdd;
130314
130314
var modalIsVisible = true;
130315
130315
130316
- var _b = (0, react_1.useState)(null),
130317
- currentSelectedItem = _b [0],
130318
- setCurrentSelectedItem = _b [1];
130316
+ var _a = (0, react_1.useState)(null),
130317
+ currentSelectedItem = _a [0],
130318
+ setCurrentSelectedItem = _a [1];
130319
130319
130320
- var _c = (0, react_1.useState)((allItems === null || allItems === void 0 ? void 0 : allItems.allEmbeddables) || []),
130321
- allItemsList = _c [0],
130322
- setAllItemsList = _c [1];
130320
+ var _b = (0, react_1.useState)((allItems === null || allItems === void 0 ? void 0 : allItems.allEmbeddables) || []),
130321
+ allItemsList = _b [0],
130322
+ setAllItemsList = _b [1];
130323
130323
130324
- var _d = (0, react_1.useState)(false),
130325
- isSearching = _d [0],
130326
- setIsSearching = _d [1];
130324
+ var _c = (0, react_1.useState)(false),
130325
+ isSearching = _c [0],
130326
+ setIsSearching = _c [1];
130327
130327
130328
- var _e = (0, react_1.useState)(modalIsVisible),
130329
- modalVisibility = _e [0],
130330
- setModalVisibility = _e [1];
130328
+ var _d = (0, react_1.useState)(modalIsVisible),
130329
+ modalVisibility = _d [0],
130330
+ setModalVisibility = _d [1];
130331
130331
130332
130332
var itemSelected = currentSelectedItem !== null; // Escape key deselects the current item:
130333
130333
0 commit comments