@superblocksteam/library 2.0.3-next.183 → 2.0.3-next.185
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-DmmMY34A.js → allPaths-iRpHMTZB.js} +2 -2
- package/dist/{allPaths-DmmMY34A.js.map → allPaths-iRpHMTZB.js.map} +1 -1
- package/dist/{allPaths-CCK4umZm.js → allPaths-o-vV1-tj.js} +2 -2
- package/dist/{allPaths-CCK4umZm.js.map → allPaths-o-vV1-tj.js.map} +1 -1
- package/dist/{allPathsLoader-C-P7ANDO.js → allPathsLoader-DnjGlPTI.js} +3 -3
- package/dist/{allPathsLoader-CM0VoDpU.js.map → allPathsLoader-DnjGlPTI.js.map} +1 -1
- package/dist/{allPathsLoader-CM0VoDpU.js → allPathsLoader-u3KOMEyQ.js} +3 -3
- package/dist/{allPathsLoader-C-P7ANDO.js.map → allPathsLoader-u3KOMEyQ.js.map} +1 -1
- package/dist/{index-Nu3j1GdK.js → index-D0LofP37.js} +17 -12
- package/dist/{index-Nu3j1GdK.js.map → index-D0LofP37.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-C98-Cucs.js → splitPathsBySizeLoader-DH76ShxH.js} +2 -2
- package/dist/{splitPathsBySizeLoader-C98-Cucs.js.map → splitPathsBySizeLoader-DH76ShxH.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-Crh7bR9m.js → splitPathsBySizeLoader-PTZVlovL.js} +2 -2
- package/dist/{splitPathsBySizeLoader-Crh7bR9m.js.map → splitPathsBySizeLoader-PTZVlovL.js.map} +1 -1
- package/dist-types/internal-testing/components/modal.d.ts +3 -1
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +4 -3
- package/dist-types/lib/triggers/registry.d.ts +2 -2
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +2 -2
- 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-D0LofP37.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-iRpHMTZB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-iRpHMTZB.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-D0LofP37.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-o-vV1-tj.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-o-vV1-tj.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-D0LofP37.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-o-vV1-tj.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-DnjGlPTI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-DnjGlPTI.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]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-D0LofP37.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-iRpHMTZB.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-u3KOMEyQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-u3KOMEyQ.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]}
|
|
@@ -43171,10 +43171,14 @@ const RunApisTrigger = {
|
|
|
43171
43171
|
const ControlModalTrigger = {
|
|
43172
43172
|
type: TriggerStepType.CONTROL_MODAL,
|
|
43173
43173
|
async execute(context2, step) {
|
|
43174
|
+
if (step.name === void 0) {
|
|
43175
|
+
return;
|
|
43176
|
+
}
|
|
43174
43177
|
context2.rootStore.entityManager.runCode({
|
|
43175
43178
|
scopeId: context2.scopeId,
|
|
43176
43179
|
name: context2.name,
|
|
43177
43180
|
func: (state, step2) => {
|
|
43181
|
+
if (!state || !step2.name) return;
|
|
43178
43182
|
if (step2.direction === "open") {
|
|
43179
43183
|
state[step2.name].isOpen = true;
|
|
43180
43184
|
} else {
|
|
@@ -43184,10 +43188,11 @@ const ControlModalTrigger = {
|
|
|
43184
43188
|
args: [step]
|
|
43185
43189
|
});
|
|
43186
43190
|
},
|
|
43187
|
-
create(
|
|
43191
|
+
create(modal, direction) {
|
|
43192
|
+
const meta = getBindingIdentifier(modal);
|
|
43188
43193
|
return {
|
|
43189
43194
|
type: TriggerStepType.CONTROL_MODAL,
|
|
43190
|
-
name,
|
|
43195
|
+
name: meta == null ? void 0 : meta.entityName,
|
|
43191
43196
|
direction
|
|
43192
43197
|
};
|
|
43193
43198
|
}
|
|
@@ -83499,11 +83504,11 @@ class SbEventFlow {
|
|
|
83499
83504
|
EventRegistry.controlSlideout.create(slideoutId, action2)
|
|
83500
83505
|
);
|
|
83501
83506
|
}
|
|
83502
|
-
static controlModal(
|
|
83503
|
-
return SbEventFlow.start().controlModal(
|
|
83507
|
+
static controlModal(modal, action2) {
|
|
83508
|
+
return SbEventFlow.start().controlModal(modal, action2);
|
|
83504
83509
|
}
|
|
83505
|
-
controlModal(
|
|
83506
|
-
return this.addStep(EventRegistry.controlModal.create(
|
|
83510
|
+
controlModal(modal, action2) {
|
|
83511
|
+
return this.addStep(EventRegistry.controlModal.create(modal, action2));
|
|
83507
83512
|
}
|
|
83508
83513
|
static controlTimer(timerId, action2) {
|
|
83509
83514
|
return SbEventFlow.start().controlTimer(timerId, action2);
|
|
@@ -86610,7 +86615,7 @@ function getSbEventFlow(step, scopeId) {
|
|
|
86610
86615
|
case "controlModal": {
|
|
86611
86616
|
const modalEntity = getEntity(step.name);
|
|
86612
86617
|
if (!modalEntity) return void 0;
|
|
86613
|
-
return SbEventFlow.controlModal(
|
|
86618
|
+
return SbEventFlow.controlModal(modalEntity, step.direction);
|
|
86614
86619
|
}
|
|
86615
86620
|
case "controlTimer": {
|
|
86616
86621
|
const timerEntity = getEntity(step.name);
|
|
@@ -90640,14 +90645,14 @@ function getLoaderFn$1(options) {
|
|
|
90640
90645
|
if (!(loader === "all")) return [3, 3];
|
|
90641
90646
|
return [4, import(
|
|
90642
90647
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
90643
|
-
"./allPathsLoader-
|
|
90648
|
+
"./allPathsLoader-DnjGlPTI.js"
|
|
90644
90649
|
)];
|
|
90645
90650
|
case 2:
|
|
90646
90651
|
return [2, _b2.sent().allPathsLoader];
|
|
90647
90652
|
case 3:
|
|
90648
90653
|
return [4, import(
|
|
90649
90654
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
90650
|
-
"./splitPathsBySizeLoader-
|
|
90655
|
+
"./splitPathsBySizeLoader-PTZVlovL.js"
|
|
90651
90656
|
)];
|
|
90652
90657
|
case 4:
|
|
90653
90658
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -145006,14 +145011,14 @@ function getLoaderFn(options) {
|
|
|
145006
145011
|
if (!(loader === "all")) return [3, 3];
|
|
145007
145012
|
return [4, import(
|
|
145008
145013
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
145009
|
-
"./allPathsLoader-
|
|
145014
|
+
"./allPathsLoader-u3KOMEyQ.js"
|
|
145010
145015
|
)];
|
|
145011
145016
|
case 2:
|
|
145012
145017
|
return [2, _b2.sent().allPathsLoader];
|
|
145013
145018
|
case 3:
|
|
145014
145019
|
return [4, import(
|
|
145015
145020
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
145016
|
-
"./splitPathsBySizeLoader-
|
|
145021
|
+
"./splitPathsBySizeLoader-DH76ShxH.js"
|
|
145017
145022
|
)];
|
|
145018
145023
|
case 4:
|
|
145019
145024
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -197553,4 +197558,4 @@ export {
|
|
|
197553
197558
|
copyToClipboard as y,
|
|
197554
197559
|
navigateTo as z
|
|
197555
197560
|
};
|
|
197556
|
-
//# sourceMappingURL=index-
|
|
197561
|
+
//# sourceMappingURL=index-D0LofP37.js.map
|