@superblocksteam/library 2.0.0-next.53 → 2.0.0-next.55
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-CQqSMyG5.js → allPaths-Dl6sLRAk.js} +2 -2
- package/dist/{allPaths-CQqSMyG5.js.map → allPaths-Dl6sLRAk.js.map} +1 -1
- package/dist/{allPaths-BVB8kw_K.js → allPaths-jJ3FFpwY.js} +2 -2
- package/dist/{allPaths-BVB8kw_K.js.map → allPaths-jJ3FFpwY.js.map} +1 -1
- package/dist/{allPathsLoader-CkdZMAdN.js → allPathsLoader-8vehQ2-0.js} +3 -3
- package/dist/{allPathsLoader-CkdZMAdN.js.map → allPathsLoader-8vehQ2-0.js.map} +1 -1
- package/dist/{allPathsLoader-cblzwX60.js → allPathsLoader-Dd9Ybi8y.js} +3 -3
- package/dist/{allPathsLoader-cblzwX60.js.map → allPathsLoader-Dd9Ybi8y.js.map} +1 -1
- package/dist/{index-BDzsftng.js → index-BdAeYAQo.js} +61 -5
- package/dist/{index-BDzsftng.js.map → index-BdAeYAQo.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-CoorXMQb.js → splitPathsBySizeLoader-DAyGNPiX.js} +2 -2
- package/dist/{splitPathsBySizeLoader-CoorXMQb.js.map → splitPathsBySizeLoader-DAyGNPiX.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-D886p5Wo.js → splitPathsBySizeLoader-DzBukqlx.js} +2 -2
- package/dist/{splitPathsBySizeLoader-D886p5Wo.js.map → splitPathsBySizeLoader-DzBukqlx.js.map} +1 -1
- package/dist-types/lib/internal-details/lib/types.d.ts +3 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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-BdAeYAQo.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-Dl6sLRAk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-Dl6sLRAk.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,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-BdAeYAQo.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-jJ3FFpwY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-jJ3FFpwY.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,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-BdAeYAQo.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-Dl6sLRAk.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-8vehQ2-0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-8vehQ2-0.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-BdAeYAQo.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-jJ3FFpwY.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-Dd9Ybi8y.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-Dd9Ybi8y.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]}
|
|
@@ -2690,14 +2690,14 @@ function getLoaderFn$1(options) {
|
|
|
2690
2690
|
if (!(loader === "all")) return [3, 3];
|
|
2691
2691
|
return [4, import(
|
|
2692
2692
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2693
|
-
"./allPathsLoader-
|
|
2693
|
+
"./allPathsLoader-Dd9Ybi8y.js"
|
|
2694
2694
|
)];
|
|
2695
2695
|
case 2:
|
|
2696
2696
|
return [2, _b2.sent().allPathsLoader];
|
|
2697
2697
|
case 3:
|
|
2698
2698
|
return [4, import(
|
|
2699
2699
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2700
|
-
"./splitPathsBySizeLoader-
|
|
2700
|
+
"./splitPathsBySizeLoader-DzBukqlx.js"
|
|
2701
2701
|
)];
|
|
2702
2702
|
case 4:
|
|
2703
2703
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -97381,10 +97381,25 @@ const microPatches = (oldValue, newValue, baseStr) => {
|
|
|
97381
97381
|
}
|
|
97382
97382
|
];
|
|
97383
97383
|
}
|
|
97384
|
+
if (isPrimitive(oldValue) || isPrimitive(newValue)) {
|
|
97385
|
+
if (oldValue !== newValue) {
|
|
97386
|
+
return [
|
|
97387
|
+
{
|
|
97388
|
+
op: "update",
|
|
97389
|
+
path: pathStringToArray(baseStr),
|
|
97390
|
+
value: newValue
|
|
97391
|
+
}
|
|
97392
|
+
];
|
|
97393
|
+
}
|
|
97394
|
+
return [];
|
|
97395
|
+
}
|
|
97384
97396
|
const diffs = diff(oldValue, newValue);
|
|
97385
97397
|
const basePath = pathStringToArray(baseStr);
|
|
97386
97398
|
return diffs.map((diff2) => toMobXPatchFromMicroDiff(diff2, basePath));
|
|
97387
97399
|
};
|
|
97400
|
+
function isPrimitive(value) {
|
|
97401
|
+
return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean" || typeof value === "undefined";
|
|
97402
|
+
}
|
|
97388
97403
|
function toMobXPatchFromMicroDiff(diff2, basePath) {
|
|
97389
97404
|
const type5 = diff2.type;
|
|
97390
97405
|
const fullPath = [...basePath, ...diff2.path];
|
|
@@ -100008,6 +100023,16 @@ class DragAndDropManager {
|
|
|
100008
100023
|
registerStores({
|
|
100009
100024
|
DragAndDropManager: this
|
|
100010
100025
|
});
|
|
100026
|
+
startEditorSync({
|
|
100027
|
+
store: this,
|
|
100028
|
+
storeId: "dnd",
|
|
100029
|
+
projection(store) {
|
|
100030
|
+
return {
|
|
100031
|
+
isDragging: store._isDragging,
|
|
100032
|
+
isDraggingNewComponent: store._isDraggingNewComponent
|
|
100033
|
+
};
|
|
100034
|
+
}
|
|
100035
|
+
});
|
|
100011
100036
|
}
|
|
100012
100037
|
get isDragging() {
|
|
100013
100038
|
return this._isDragging;
|
|
@@ -110772,9 +110797,24 @@ const InternalGlobalScope = internalCreateScope(() => ({}), {
|
|
|
110772
110797
|
name: GLOBAL_SCOPE_ID,
|
|
110773
110798
|
scopeId: GLOBAL_SCOPE_ID
|
|
110774
110799
|
});
|
|
110800
|
+
const globalName = getName("Global");
|
|
110775
110801
|
const GlobalScope = registerScope(
|
|
110776
110802
|
({ children }) => {
|
|
110777
110803
|
const { theme } = useTheme();
|
|
110804
|
+
useEffect(() => {
|
|
110805
|
+
const global2 = rootStore.entityManager.getEntity(
|
|
110806
|
+
GLOBAL_SCOPE_ID,
|
|
110807
|
+
globalName
|
|
110808
|
+
);
|
|
110809
|
+
if (!global2) {
|
|
110810
|
+
rootStore.entityManager.createEntity({
|
|
110811
|
+
name: globalName,
|
|
110812
|
+
type: "global",
|
|
110813
|
+
props: {},
|
|
110814
|
+
scopeId: GLOBAL_SCOPE_ID
|
|
110815
|
+
});
|
|
110816
|
+
}
|
|
110817
|
+
}, []);
|
|
110778
110818
|
useEffect(() => {
|
|
110779
110819
|
const name = getName("Theme");
|
|
110780
110820
|
const existingTheme = rootStore.entityManager.getEntity(
|
|
@@ -110800,6 +110840,13 @@ const GlobalScope = registerScope(
|
|
|
110800
110840
|
},
|
|
110801
110841
|
InternalGlobalScope
|
|
110802
110842
|
);
|
|
110843
|
+
const updateGlobalScope = (global2) => {
|
|
110844
|
+
rootStore.entityManager.updateEntity({
|
|
110845
|
+
name: globalName,
|
|
110846
|
+
props: global2,
|
|
110847
|
+
scopeId: GLOBAL_SCOPE_ID
|
|
110848
|
+
});
|
|
110849
|
+
};
|
|
110803
110850
|
function createEntityProxy(entityName) {
|
|
110804
110851
|
return new Proxy(
|
|
110805
110852
|
{},
|
|
@@ -144401,14 +144448,14 @@ function getLoaderFn(options) {
|
|
|
144401
144448
|
if (!(loader === "all")) return [3, 3];
|
|
144402
144449
|
return [4, import(
|
|
144403
144450
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
144404
|
-
"./allPathsLoader-
|
|
144451
|
+
"./allPathsLoader-8vehQ2-0.js"
|
|
144405
144452
|
)];
|
|
144406
144453
|
case 2:
|
|
144407
144454
|
return [2, _b2.sent().allPathsLoader];
|
|
144408
144455
|
case 3:
|
|
144409
144456
|
return [4, import(
|
|
144410
144457
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
144411
|
-
"./splitPathsBySizeLoader-
|
|
144458
|
+
"./splitPathsBySizeLoader-DAyGNPiX.js"
|
|
144412
144459
|
)];
|
|
144413
144460
|
case 4:
|
|
144414
144461
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -177684,6 +177731,11 @@ const EmbedWrapper = (props) => {
|
|
|
177684
177731
|
"sb-create-component",
|
|
177685
177732
|
createComponentListener
|
|
177686
177733
|
);
|
|
177734
|
+
const globalSyncListener = (event) => {
|
|
177735
|
+
const { global: global2 } = event.data.payload;
|
|
177736
|
+
updateGlobalScope(global2);
|
|
177737
|
+
};
|
|
177738
|
+
iframeMessageHandler.addEventListener("sb-global-sync", globalSyncListener);
|
|
177687
177739
|
return () => {
|
|
177688
177740
|
iframeMessageHandler.removeEventListener(
|
|
177689
177741
|
"sb-bootstrap-response",
|
|
@@ -177705,6 +177757,10 @@ const EmbedWrapper = (props) => {
|
|
|
177705
177757
|
"sb-create-component",
|
|
177706
177758
|
createComponentListener
|
|
177707
177759
|
);
|
|
177760
|
+
iframeMessageHandler.removeEventListener(
|
|
177761
|
+
"sb-global-sync",
|
|
177762
|
+
globalSyncListener
|
|
177763
|
+
);
|
|
177708
177764
|
};
|
|
177709
177765
|
}, []);
|
|
177710
177766
|
useEffect(() => {
|
|
@@ -190949,4 +191005,4 @@ export {
|
|
|
190949
191005
|
copyToClipboard as y,
|
|
190950
191006
|
navigateTo as z
|
|
190951
191007
|
};
|
|
190952
|
-
//# sourceMappingURL=index-
|
|
191008
|
+
//# sourceMappingURL=index-BdAeYAQo.js.map
|