@superblocksteam/library 2.0.0-next.108 → 2.0.0-next.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{allPaths-B_8jnuaV.js → allPaths-C9t-oueG.js} +2 -2
- package/dist/{allPaths-B_8jnuaV.js.map → allPaths-C9t-oueG.js.map} +1 -1
- package/dist/{allPaths-BYjRvmVW.js → allPaths-v-9aWvcC.js} +2 -2
- package/dist/{allPaths-BYjRvmVW.js.map → allPaths-v-9aWvcC.js.map} +1 -1
- package/dist/{allPathsLoader-BxgB7o0q.js → allPathsLoader-C12f21WG.js} +3 -3
- package/dist/{allPathsLoader-DXmNAbaz.js.map → allPathsLoader-C12f21WG.js.map} +1 -1
- package/dist/{allPathsLoader-DXmNAbaz.js → allPathsLoader-ptt7LSRI.js} +3 -3
- package/dist/{allPathsLoader-BxgB7o0q.js.map → allPathsLoader-ptt7LSRI.js.map} +1 -1
- package/dist/{index-HBvkJUiu.js → index-Dmuv9J5-.js} +81 -19
- package/dist/{index-HBvkJUiu.js.map → index-Dmuv9J5-.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-CWNr4mDJ.js → splitPathsBySizeLoader-C9M7hrZo.js} +2 -2
- package/dist/{splitPathsBySizeLoader-CWNr4mDJ.js.map → splitPathsBySizeLoader-C9M7hrZo.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-us-uCnrg.js → splitPathsBySizeLoader-yx8MCpqw.js} +2 -2
- package/dist/{splitPathsBySizeLoader-us-uCnrg.js.map → splitPathsBySizeLoader-yx8MCpqw.js.map} +1 -1
- package/dist-types/edit-mode/create-component.d.ts +3 -1
- package/dist-types/edit-mode/dnd/utils.d.ts +4 -0
- package/dist-types/edit-mode/features/operation-store.d.ts +11 -2
- package/dist-types/lib/internal-details/lib/types.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-DIJYif9G.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-LHtbj0-V.js";
|
|
3
|
-
import { p as pascalCase, I as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, I as IconSize } from "./index-Dmuv9J5-.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-C9t-oueG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-C9t-oueG.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-BxzKdlqH.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-DIn-fanT.js";
|
|
3
|
-
import { p as pascalCase, b as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, b as IconSize } from "./index-Dmuv9J5-.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-v-9aWvcC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-v-9aWvcC.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-Dmuv9J5-.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-v-9aWvcC.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-C12f21WG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-C12f21WG.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/allPathsLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-Dmuv9J5-.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-C9t-oueG.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-ptt7LSRI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-ptt7LSRI.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/allPathsLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -2684,14 +2684,14 @@ function getLoaderFn$1(options) {
|
|
|
2684
2684
|
if (!(loader === "all")) return [3, 3];
|
|
2685
2685
|
return [4, import(
|
|
2686
2686
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2687
|
-
"./allPathsLoader-
|
|
2687
|
+
"./allPathsLoader-ptt7LSRI.js"
|
|
2688
2688
|
)];
|
|
2689
2689
|
case 2:
|
|
2690
2690
|
return [2, _b2.sent().allPathsLoader];
|
|
2691
2691
|
case 3:
|
|
2692
2692
|
return [4, import(
|
|
2693
2693
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2694
|
-
"./splitPathsBySizeLoader-
|
|
2694
|
+
"./splitPathsBySizeLoader-yx8MCpqw.js"
|
|
2695
2695
|
)];
|
|
2696
2696
|
case 4:
|
|
2697
2697
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -98732,7 +98732,11 @@ class OperationManager {
|
|
|
98732
98732
|
payload: { element: { source: { id: sourceId } }, properties: updates }
|
|
98733
98733
|
});
|
|
98734
98734
|
}
|
|
98735
|
-
setWidgetProperties(
|
|
98735
|
+
setWidgetProperties({
|
|
98736
|
+
sourceId,
|
|
98737
|
+
properties: properties2,
|
|
98738
|
+
callback
|
|
98739
|
+
}) {
|
|
98736
98740
|
const payload = {
|
|
98737
98741
|
element: {
|
|
98738
98742
|
source: {
|
|
@@ -98747,8 +98751,17 @@ class OperationManager {
|
|
|
98747
98751
|
callback
|
|
98748
98752
|
});
|
|
98749
98753
|
}
|
|
98750
|
-
setWidgetProperty(
|
|
98751
|
-
|
|
98754
|
+
setWidgetProperty({
|
|
98755
|
+
sourceId,
|
|
98756
|
+
property,
|
|
98757
|
+
value,
|
|
98758
|
+
callback
|
|
98759
|
+
}) {
|
|
98760
|
+
this.setWidgetProperties({
|
|
98761
|
+
sourceId,
|
|
98762
|
+
properties: { [property]: value },
|
|
98763
|
+
callback
|
|
98764
|
+
});
|
|
98752
98765
|
}
|
|
98753
98766
|
renameWidget(params) {
|
|
98754
98767
|
var _a2;
|
|
@@ -99610,6 +99623,10 @@ const StackLikeContainerTypes = /* @__PURE__ */ new Set([
|
|
|
99610
99623
|
...VStackLikeContainerTypes,
|
|
99611
99624
|
...HStackLikeContainerTypes
|
|
99612
99625
|
]);
|
|
99626
|
+
const detachedComponentTypeList = ["SbModal", "SbSlideout"];
|
|
99627
|
+
const DetachedComponentTypes = new Set(
|
|
99628
|
+
detachedComponentTypeList
|
|
99629
|
+
);
|
|
99613
99630
|
function rule(description, restriction) {
|
|
99614
99631
|
return {
|
|
99615
99632
|
description,
|
|
@@ -99681,6 +99698,9 @@ const isContentDraggable = (type5) => {
|
|
|
99681
99698
|
return isTypeDraggable(type5) && type5 !== "SbColumn" && type5 !== "SbSection";
|
|
99682
99699
|
};
|
|
99683
99700
|
function shouldWrapInSectionAndColumn(type5, parentType) {
|
|
99701
|
+
if (DetachedComponentTypes.has(type5)) {
|
|
99702
|
+
return false;
|
|
99703
|
+
}
|
|
99684
99704
|
return parentType === "SbPage" && type5 !== "SbSection" || parentType === "SbSection" && type5 !== "SbColumn";
|
|
99685
99705
|
}
|
|
99686
99706
|
const filterSafeStackDimensionProperties = (existingProps) => {
|
|
@@ -100951,13 +100971,13 @@ class ResizingManager {
|
|
|
100951
100971
|
}
|
|
100952
100972
|
};
|
|
100953
100973
|
if (Object.keys(properties2).length > 0) {
|
|
100954
|
-
(_b2 = this.root.editStore) == null ? void 0 : _b2.operationManager.setWidgetProperties(
|
|
100955
|
-
resizeState.sourceId,
|
|
100956
|
-
properties2,
|
|
100957
|
-
() => {
|
|
100974
|
+
(_b2 = this.root.editStore) == null ? void 0 : _b2.operationManager.setWidgetProperties({
|
|
100975
|
+
sourceId: resizeState.sourceId,
|
|
100976
|
+
properties: properties2,
|
|
100977
|
+
callback: () => {
|
|
100958
100978
|
this._activeResizes.delete(sourceId);
|
|
100959
100979
|
}
|
|
100960
|
-
);
|
|
100980
|
+
});
|
|
100961
100981
|
}
|
|
100962
100982
|
}
|
|
100963
100983
|
}
|
|
@@ -116038,7 +116058,9 @@ async function createComponent({
|
|
|
116038
116058
|
componentType,
|
|
116039
116059
|
parent,
|
|
116040
116060
|
scopeName,
|
|
116041
|
-
baseProperties = {}
|
|
116061
|
+
baseProperties = {},
|
|
116062
|
+
skipTriggerCreation,
|
|
116063
|
+
otherComponentsUpdates
|
|
116042
116064
|
}) {
|
|
116043
116065
|
const parentInfo = getParentInfo(parent);
|
|
116044
116066
|
if (!checkComponentForParentTypeBeforeCreating(componentType, parentInfo.type)) {
|
|
@@ -116067,10 +116089,23 @@ async function createComponent({
|
|
|
116067
116089
|
};
|
|
116068
116090
|
console.log("creating component", { tagName, properties: properties2 });
|
|
116069
116091
|
const parentElement = { source: parent };
|
|
116070
|
-
const
|
|
116092
|
+
const isDetachedComponent = DetachedComponentTypes.has(componentType);
|
|
116093
|
+
const needTriggerComponent = isDetachedComponent && !skipTriggerCreation;
|
|
116071
116094
|
const editStore2 = getEditStore();
|
|
116095
|
+
const parentInstanceId = editStore2.runtimeEntitiesManager.widgets.getAnyInstanceIdForSourceId(
|
|
116096
|
+
parent.id
|
|
116097
|
+
);
|
|
116098
|
+
const pageComponent = editStore2.runtimeEntitiesManager.getClosestAncestorByType(
|
|
116099
|
+
parentInstanceId,
|
|
116100
|
+
"SbPage"
|
|
116101
|
+
);
|
|
116102
|
+
const pageSource = {
|
|
116103
|
+
source: {
|
|
116104
|
+
id: pageComponent == null ? void 0 : pageComponent.sourceId
|
|
116105
|
+
}
|
|
116106
|
+
};
|
|
116072
116107
|
let primaryComponent = {
|
|
116073
|
-
parentElement,
|
|
116108
|
+
parentElement: isDetachedComponent ? pageSource : parentElement,
|
|
116074
116109
|
tagName,
|
|
116075
116110
|
properties: properties2,
|
|
116076
116111
|
children,
|
|
@@ -116083,6 +116118,14 @@ async function createComponent({
|
|
|
116083
116118
|
parentInfo.type
|
|
116084
116119
|
);
|
|
116085
116120
|
}
|
|
116121
|
+
const performOtherComponentsUpdates = (otherComponentsUpdates2) => {
|
|
116122
|
+
Object.entries(otherComponentsUpdates2).forEach(([sourceId, updates]) => {
|
|
116123
|
+
editStore2.operationManager.setWidgetProperties({
|
|
116124
|
+
sourceId,
|
|
116125
|
+
properties: updates
|
|
116126
|
+
});
|
|
116127
|
+
});
|
|
116128
|
+
};
|
|
116086
116129
|
if (needTriggerComponent) {
|
|
116087
116130
|
const triggerComponent = getTriggerComponent({
|
|
116088
116131
|
componentType,
|
|
@@ -116093,10 +116136,20 @@ async function createComponent({
|
|
|
116093
116136
|
editStore2.operationManager.batchUpdate(() => {
|
|
116094
116137
|
editStore2.operationManager.createComponent(triggerComponent);
|
|
116095
116138
|
editStore2.operationManager.createComponent(primaryComponent);
|
|
116139
|
+
if (otherComponentsUpdates) {
|
|
116140
|
+
performOtherComponentsUpdates(otherComponentsUpdates);
|
|
116141
|
+
}
|
|
116096
116142
|
});
|
|
116097
116143
|
return triggerComponent.id;
|
|
116098
116144
|
} else {
|
|
116099
|
-
|
|
116145
|
+
if (otherComponentsUpdates) {
|
|
116146
|
+
editStore2.operationManager.batchUpdate(() => {
|
|
116147
|
+
editStore2.operationManager.createComponent(primaryComponent);
|
|
116148
|
+
performOtherComponentsUpdates(otherComponentsUpdates);
|
|
116149
|
+
});
|
|
116150
|
+
} else {
|
|
116151
|
+
editStore2.operationManager.createComponent(primaryComponent);
|
|
116152
|
+
}
|
|
116100
116153
|
return primaryComponent.id;
|
|
116101
116154
|
}
|
|
116102
116155
|
}
|
|
@@ -144734,14 +144787,14 @@ function getLoaderFn(options) {
|
|
|
144734
144787
|
if (!(loader === "all")) return [3, 3];
|
|
144735
144788
|
return [4, import(
|
|
144736
144789
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
144737
|
-
"./allPathsLoader-
|
|
144790
|
+
"./allPathsLoader-C12f21WG.js"
|
|
144738
144791
|
)];
|
|
144739
144792
|
case 2:
|
|
144740
144793
|
return [2, _b2.sent().allPathsLoader];
|
|
144741
144794
|
case 3:
|
|
144742
144795
|
return [4, import(
|
|
144743
144796
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
144744
|
-
"./splitPathsBySizeLoader-
|
|
144797
|
+
"./splitPathsBySizeLoader-C9M7hrZo.js"
|
|
144745
144798
|
)];
|
|
144746
144799
|
case 4:
|
|
144747
144800
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -183711,13 +183764,22 @@ const EmbedWrapper = (props2) => {
|
|
|
183711
183764
|
updatePropertyWithEffectsListener
|
|
183712
183765
|
);
|
|
183713
183766
|
const createComponentListener = async (event) => {
|
|
183714
|
-
const {
|
|
183767
|
+
const {
|
|
183768
|
+
componentType,
|
|
183769
|
+
parent,
|
|
183770
|
+
scopeName,
|
|
183771
|
+
baseProperties,
|
|
183772
|
+
skipTriggerCreation,
|
|
183773
|
+
otherComponentsUpdates
|
|
183774
|
+
} = event.data.payload;
|
|
183715
183775
|
try {
|
|
183716
183776
|
await createComponent({
|
|
183717
183777
|
componentType,
|
|
183718
183778
|
parent,
|
|
183719
183779
|
scopeName,
|
|
183720
|
-
baseProperties
|
|
183780
|
+
baseProperties,
|
|
183781
|
+
skipTriggerCreation,
|
|
183782
|
+
otherComponentsUpdates
|
|
183721
183783
|
});
|
|
183722
183784
|
} catch (error2) {
|
|
183723
183785
|
console.error("Failed to create component:", error2);
|
|
@@ -197004,4 +197066,4 @@ export {
|
|
|
197004
197066
|
copyToClipboard as y,
|
|
197005
197067
|
navigateTo as z
|
|
197006
197068
|
};
|
|
197007
|
-
//# sourceMappingURL=index-
|
|
197069
|
+
//# sourceMappingURL=index-Dmuv9J5-.js.map
|