@superblocksteam/library 1.99.99-next.2 → 2.0.0-next.3
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-CCZMME3l.js → allPaths-4TPCDqqv.js} +2 -2
- package/dist/{allPaths-CCZMME3l.js.map → allPaths-4TPCDqqv.js.map} +1 -1
- package/dist/{allPaths-CHXNxDVP.js → allPaths-D6A2vzyG.js} +2 -2
- package/dist/{allPaths-CHXNxDVP.js.map → allPaths-D6A2vzyG.js.map} +1 -1
- package/dist/{allPathsLoader-DTWFaGcd.js → allPathsLoader-CVwVdrBb.js} +3 -3
- package/dist/{allPathsLoader-Fr8EhLGp.js.map → allPathsLoader-CVwVdrBb.js.map} +1 -1
- package/dist/{allPathsLoader-Fr8EhLGp.js → allPathsLoader-qCVzPQ-g.js} +3 -3
- package/dist/{allPathsLoader-DTWFaGcd.js.map → allPathsLoader-qCVzPQ-g.js.map} +1 -1
- package/dist/{index-U0oPeutu.js → index-DTEW2pgh.js} +63 -29
- package/dist/{index-U0oPeutu.js.map → index-DTEW2pgh.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-DHk6oFvg.js → splitPathsBySizeLoader-B_6-S2vk.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DHk6oFvg.js.map → splitPathsBySizeLoader-B_6-S2vk.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-PcZVWYaJ.js → splitPathsBySizeLoader-D6mNjqKJ.js} +2 -2
- package/dist/{splitPathsBySizeLoader-PcZVWYaJ.js.map → splitPathsBySizeLoader-D6mNjqKJ.js.map} +1 -1
- package/dist-types/internal-testing/components/table.d.ts +3 -1
- package/dist-types/lib/index.d.ts +1 -1
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +1 -1
- package/dist-types/lib/sb-trigger.d.ts +0 -1
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +9 -4
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +10 -5
- package/dist-types/lib/triggers/registry.d.ts +14 -6
- package/dist-types/lib/user-facing/component-base/sb-component.d.ts +1 -2
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +6 -6
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +3 -4
- package/dist-types/lib/user-facing/state/types.d.ts +1 -8
- 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-DTEW2pgh.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-4TPCDqqv.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-4TPCDqqv.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-DTEW2pgh.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-D6A2vzyG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-D6A2vzyG.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-DTEW2pgh.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-D6A2vzyG.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-CVwVdrBb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-CVwVdrBb.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-DTEW2pgh.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-4TPCDqqv.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-qCVzPQ-g.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-qCVzPQ-g.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-qCVzPQ-g.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-D6mNjqKJ.js"
|
|
2701
2701
|
)];
|
|
2702
2702
|
case 4:
|
|
2703
2703
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -10249,6 +10249,16 @@ function isPropertyInfo(value) {
|
|
|
10249
10249
|
return typeof value === "object" && value !== null && "__info" in value && value.__info === true;
|
|
10250
10250
|
}
|
|
10251
10251
|
const generateSourceId = () => `SB-${Math.random().toString(36).substring(2, 15)}`;
|
|
10252
|
+
const BindingMetaSymbol = Symbol("binding-meta");
|
|
10253
|
+
function getBindingIdentifier(binding) {
|
|
10254
|
+
return binding == null ? void 0 : binding[BindingMetaSymbol];
|
|
10255
|
+
}
|
|
10256
|
+
function withBindingIdentifier(params, identifier2) {
|
|
10257
|
+
return {
|
|
10258
|
+
...params,
|
|
10259
|
+
[BindingMetaSymbol]: identifier2
|
|
10260
|
+
};
|
|
10261
|
+
}
|
|
10252
10262
|
const isDimension = (value) => {
|
|
10253
10263
|
return typeof value === "object" && value !== null && "mode" in value && ["px", "fit", "fill", "%", "columns", "rows"].includes(value.mode) && (value.mode === "fit" || "value" in value);
|
|
10254
10264
|
};
|
|
@@ -57145,13 +57155,25 @@ const ShowAlertTrigger = {
|
|
|
57145
57155
|
};
|
|
57146
57156
|
const ResetStateVarTrigger = {
|
|
57147
57157
|
type: TriggerStepType.RESET_STATE_VAR,
|
|
57148
|
-
async execute(context2,
|
|
57149
|
-
|
|
57150
|
-
|
|
57151
|
-
|
|
57158
|
+
async execute(context2, _step) {
|
|
57159
|
+
if (_step.state === void 0) {
|
|
57160
|
+
return;
|
|
57161
|
+
}
|
|
57162
|
+
const step = _step;
|
|
57163
|
+
context2.rootStore.entityManager.runCode({
|
|
57164
|
+
scopeId: context2.scopeId,
|
|
57165
|
+
name: context2.name,
|
|
57166
|
+
func: (state, step2) => state[step2.state.name].value = state[step2.state.name].defaultValue,
|
|
57167
|
+
args: [step]
|
|
57152
57168
|
});
|
|
57153
57169
|
},
|
|
57154
|
-
create(
|
|
57170
|
+
create(stateVar) {
|
|
57171
|
+
const meta = getBindingIdentifier(stateVar);
|
|
57172
|
+
const state = meta ? {
|
|
57173
|
+
name: meta.entityName,
|
|
57174
|
+
scopeId: stateVar == null ? void 0 : stateVar.scopeId,
|
|
57175
|
+
scope: stateVar == null ? void 0 : stateVar.scope
|
|
57176
|
+
} : void 0;
|
|
57155
57177
|
return {
|
|
57156
57178
|
type: TriggerStepType.RESET_STATE_VAR,
|
|
57157
57179
|
state
|
|
@@ -57160,7 +57182,11 @@ const ResetStateVarTrigger = {
|
|
|
57160
57182
|
};
|
|
57161
57183
|
const SetStateVarTrigger = {
|
|
57162
57184
|
type: TriggerStepType.SET_STATE_VAR,
|
|
57163
|
-
async execute(context2,
|
|
57185
|
+
async execute(context2, _step) {
|
|
57186
|
+
if (_step.state === void 0) {
|
|
57187
|
+
return;
|
|
57188
|
+
}
|
|
57189
|
+
const step = _step;
|
|
57164
57190
|
const value = context2.rootStore.entityManager.computeValue({
|
|
57165
57191
|
scopeId: context2.scopeId,
|
|
57166
57192
|
name: context2.name,
|
|
@@ -57173,11 +57199,15 @@ const SetStateVarTrigger = {
|
|
|
57173
57199
|
args: [value, step]
|
|
57174
57200
|
});
|
|
57175
57201
|
},
|
|
57176
|
-
create(
|
|
57202
|
+
create(stateVar, value) {
|
|
57203
|
+
const meta = getBindingIdentifier(stateVar);
|
|
57177
57204
|
return {
|
|
57178
57205
|
type: TriggerStepType.SET_STATE_VAR,
|
|
57179
|
-
state:
|
|
57180
|
-
|
|
57206
|
+
state: meta ? {
|
|
57207
|
+
name: meta.entityName,
|
|
57208
|
+
scopeId: stateVar == null ? void 0 : stateVar.scopeId,
|
|
57209
|
+
scope: stateVar == null ? void 0 : stateVar.scope
|
|
57210
|
+
} : void 0,
|
|
57181
57211
|
value
|
|
57182
57212
|
};
|
|
57183
57213
|
}
|
|
@@ -62541,11 +62571,11 @@ class SbEventFlow {
|
|
|
62541
62571
|
resetStateVar(state) {
|
|
62542
62572
|
return this.addStep(EventRegistry.resetStateVar.create(state));
|
|
62543
62573
|
}
|
|
62544
|
-
static setStateVar(
|
|
62545
|
-
return SbEventFlow.start().setStateVar(
|
|
62574
|
+
static setStateVar(stateVarName, value) {
|
|
62575
|
+
return SbEventFlow.start().setStateVar(stateVarName, value);
|
|
62546
62576
|
}
|
|
62547
|
-
setStateVar(
|
|
62548
|
-
return this.addStep(EventRegistry.setStateVar.create(
|
|
62577
|
+
setStateVar(stateVar, value) {
|
|
62578
|
+
return this.addStep(EventRegistry.setStateVar.create(stateVar, value));
|
|
62549
62579
|
}
|
|
62550
62580
|
static setComponentProperty(widget, propertyName, value) {
|
|
62551
62581
|
return SbEventFlow.start().setComponentProperty(
|
|
@@ -65294,7 +65324,6 @@ function isSbComponent(child) {
|
|
|
65294
65324
|
var _a2;
|
|
65295
65325
|
return typeof child === "object" && ((_a2 = child.type) == null ? void 0 : _a2.isSb) === superblocksComponentSymbol;
|
|
65296
65326
|
}
|
|
65297
|
-
const BindingMetaSymbol = Symbol("binding-meta");
|
|
65298
65327
|
class RuntimeWidgetsManager {
|
|
65299
65328
|
constructor(nameManager) {
|
|
65300
65329
|
__publicField(this, "widgets", {});
|
|
@@ -65335,7 +65364,7 @@ class RuntimeWidgetsManager {
|
|
|
65335
65364
|
isInCustomComponent
|
|
65336
65365
|
} = params;
|
|
65337
65366
|
const traverse = (params2) => {
|
|
65338
|
-
var _a2
|
|
65367
|
+
var _a2;
|
|
65339
65368
|
const { props, type: type5, parentInstanceId, node: node2, isSbComponent: isSbComponent$1, identifier: identifier2 } = params2;
|
|
65340
65369
|
const childrenArr = typeof props.children === "function" ? [props.children] : React__default.Children.toArray(props.children);
|
|
65341
65370
|
const metaChildren = [];
|
|
@@ -65345,7 +65374,7 @@ class RuntimeWidgetsManager {
|
|
|
65345
65374
|
const childType = ((_a2 = child.type) == null ? void 0 : _a2.sbType) ?? String(child.type ?? "unknown");
|
|
65346
65375
|
const childSourceId = child.props[WIDGET_SOURCE_ID_ATTRIBUTE];
|
|
65347
65376
|
const { name: childName, scopeId: childScopeId } = getNormalizedIdInfo({
|
|
65348
|
-
bind: (
|
|
65377
|
+
bind: getBindingIdentifier(child.props.bind),
|
|
65349
65378
|
propsName: child.props.name,
|
|
65350
65379
|
fallbackScopeId
|
|
65351
65380
|
});
|
|
@@ -109716,10 +109745,12 @@ const Layers$1 = {
|
|
|
109716
109745
|
};
|
|
109717
109746
|
const createBindableEntityProxy = (entityAccessor, identifier2) => {
|
|
109718
109747
|
return new Proxy(
|
|
109719
|
-
|
|
109720
|
-
|
|
109721
|
-
|
|
109722
|
-
|
|
109748
|
+
withBindingIdentifier(
|
|
109749
|
+
{
|
|
109750
|
+
entity: entityAccessor()
|
|
109751
|
+
},
|
|
109752
|
+
identifier2
|
|
109753
|
+
),
|
|
109723
109754
|
{
|
|
109724
109755
|
get(_target, prop) {
|
|
109725
109756
|
if (prop === BindingMetaSymbol) {
|
|
@@ -116507,14 +116538,14 @@ const registerSbComponent = (type5, config2, Component3) => {
|
|
|
116507
116538
|
);
|
|
116508
116539
|
});
|
|
116509
116540
|
const SbComponent = observer(function SbComponent2(props) {
|
|
116510
|
-
var _a2, _b2
|
|
116541
|
+
var _a2, _b2;
|
|
116511
116542
|
const { scopeId: fallbackScopeId } = useScope();
|
|
116512
116543
|
const sourceId = props[WIDGET_SOURCE_ID_ATTRIBUTE];
|
|
116513
116544
|
const instanceId = props[WIDGET_INSTANCE_ID_ATTRIBUTE];
|
|
116514
116545
|
const isEditing = Boolean((_a2 = rootStore.editStore) == null ? void 0 : _a2.isInitialized);
|
|
116515
116546
|
const identifier2 = useRef();
|
|
116516
116547
|
const { name: passedName, scopeId } = getNormalizedIdInfo({
|
|
116517
|
-
bind: (
|
|
116548
|
+
bind: getBindingIdentifier(props.bind),
|
|
116518
116549
|
propsName: props.name,
|
|
116519
116550
|
fallbackScopeId
|
|
116520
116551
|
});
|
|
@@ -116538,13 +116569,16 @@ const registerSbComponent = (type5, config2, Component3) => {
|
|
|
116538
116569
|
);
|
|
116539
116570
|
}
|
|
116540
116571
|
};
|
|
116541
|
-
}, [(
|
|
116572
|
+
}, [(_b2 = identifier2.current) == null ? void 0 : _b2.instanceId]);
|
|
116542
116573
|
const didNameChange = passedName && identifier2.current.name.value !== passedName || !passedName && !identifier2.current.name.isAnonymous;
|
|
116543
116574
|
if (didNameChange) {
|
|
116544
116575
|
identifier2.current = rootStore.nameManager.changeWidgetName(
|
|
116545
116576
|
identifier2.current.instanceId,
|
|
116546
116577
|
passedName
|
|
116547
116578
|
) ?? identifier2.current;
|
|
116579
|
+
if (props.reportInstanceId) {
|
|
116580
|
+
props.reportInstanceId(identifier2.current.instanceId);
|
|
116581
|
+
}
|
|
116548
116582
|
}
|
|
116549
116583
|
const widgetProps = useMemo$2(() => {
|
|
116550
116584
|
const {
|
|
@@ -143329,14 +143363,14 @@ function getLoaderFn(options) {
|
|
|
143329
143363
|
if (!(loader === "all")) return [3, 3];
|
|
143330
143364
|
return [4, import(
|
|
143331
143365
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
143332
|
-
"./allPathsLoader-
|
|
143366
|
+
"./allPathsLoader-CVwVdrBb.js"
|
|
143333
143367
|
)];
|
|
143334
143368
|
case 2:
|
|
143335
143369
|
return [2, _b2.sent().allPathsLoader];
|
|
143336
143370
|
case 3:
|
|
143337
143371
|
return [4, import(
|
|
143338
143372
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
143339
|
-
"./splitPathsBySizeLoader-
|
|
143373
|
+
"./splitPathsBySizeLoader-B_6-S2vk.js"
|
|
143340
143374
|
)];
|
|
143341
143375
|
case 4:
|
|
143342
143376
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -178269,7 +178303,7 @@ function applyThemeToIframe(generatedTheme) {
|
|
|
178269
178303
|
const originalLog = console.log;
|
|
178270
178304
|
console.log = (...args) => {
|
|
178271
178305
|
const processedArgs = args.map((arg) => {
|
|
178272
|
-
if (arg && typeof arg === "object" && arg
|
|
178306
|
+
if (arg && typeof arg === "object" && getBindingIdentifier(arg)) {
|
|
178273
178307
|
return JSON.parse(JSON.stringify(arg));
|
|
178274
178308
|
}
|
|
178275
178309
|
return arg;
|
|
@@ -189886,4 +189920,4 @@ export {
|
|
|
189886
189920
|
copyToClipboard as y,
|
|
189887
189921
|
navigateTo as z
|
|
189888
189922
|
};
|
|
189889
|
-
//# sourceMappingURL=index-
|
|
189923
|
+
//# sourceMappingURL=index-DTEW2pgh.js.map
|