@superblocksteam/library 2.0.3-next.107 → 2.0.3-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.
Files changed (23) hide show
  1. package/dist/{allPaths-BBpqcjjE.js → allPaths-BbYIeM33.js} +2 -2
  2. package/dist/{allPaths-BBpqcjjE.js.map → allPaths-BbYIeM33.js.map} +1 -1
  3. package/dist/{allPaths-BsahO6Fi.js → allPaths-KuT3i1zY.js} +2 -2
  4. package/dist/{allPaths-BsahO6Fi.js.map → allPaths-KuT3i1zY.js.map} +1 -1
  5. package/dist/{allPathsLoader-BZuVRUkZ.js → allPathsLoader--z2GO20T.js} +3 -3
  6. package/dist/{allPathsLoader-BZuVRUkZ.js.map → allPathsLoader--z2GO20T.js.map} +1 -1
  7. package/dist/{allPathsLoader-CDtb0W2A.js → allPathsLoader-CDaGqynd.js} +3 -3
  8. package/dist/{allPathsLoader-CDtb0W2A.js.map → allPathsLoader-CDaGqynd.js.map} +1 -1
  9. package/dist/{index-B9ibI377.js → index-DEfChqth.js} +81 -30
  10. package/dist/{index-B9ibI377.js.map → index-DEfChqth.js.map} +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/{splitPathsBySizeLoader-B9AycY0i.js → splitPathsBySizeLoader-Cq7WZdnC.js} +2 -2
  13. package/dist/{splitPathsBySizeLoader-B9AycY0i.js.map → splitPathsBySizeLoader-Cq7WZdnC.js.map} +1 -1
  14. package/dist/{splitPathsBySizeLoader-D_MwylYU.js → splitPathsBySizeLoader-tnYhCeAp.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-D_MwylYU.js.map → splitPathsBySizeLoader-tnYhCeAp.js.map} +1 -1
  16. package/dist-types/lib/internal-details/lib/features/api-store.d.ts +4 -0
  17. package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +5 -5
  18. package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +4 -4
  19. package/dist-types/lib/triggers/registry.d.ts +5 -5
  20. package/dist-types/lib/triggers/run-event-handlers.d.ts +2 -1
  21. package/dist-types/lib/user-facing/entities/api/props.d.ts +6 -1
  22. package/dist-types/lib/user-facing/sb-event-flow.d.ts +4 -4
  23. 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-B9ibI377.js";
3
+ import { p as pascalCase, b as IconSize } from "./index-DEfChqth.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-BBpqcjjE.js.map
17
+ //# sourceMappingURL=allPaths-BbYIeM33.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allPaths-BBpqcjjE.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
+ {"version":3,"file":"allPaths-BbYIeM33.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-B9ibI377.js";
3
+ import { p as pascalCase, I as IconSize } from "./index-DEfChqth.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-BsahO6Fi.js.map
17
+ //# sourceMappingURL=allPaths-KuT3i1zY.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allPaths-BsahO6Fi.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
+ {"version":3,"file":"allPaths-KuT3i1zY.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-B9ibI377.js";
1
+ import { _ as __awaiter, a as __generator } from "./index-DEfChqth.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-BsahO6Fi.js"
10
+ "./allPaths-KuT3i1zY.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-BZuVRUkZ.js.map
22
+ //# sourceMappingURL=allPathsLoader--z2GO20T.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allPathsLoader-BZuVRUkZ.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
+ {"version":3,"file":"allPathsLoader--z2GO20T.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-B9ibI377.js";
1
+ import { _ as __awaiter, a as __generator } from "./index-DEfChqth.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-BBpqcjjE.js"
10
+ "./allPaths-BbYIeM33.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-CDtb0W2A.js.map
22
+ //# sourceMappingURL=allPathsLoader-CDaGqynd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allPathsLoader-CDtb0W2A.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
+ {"version":3,"file":"allPathsLoader-CDaGqynd.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]}
@@ -46,7 +46,7 @@ var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use
46
46
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
47
47
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
48
48
  var __privateMethod = (obj, member, method4) => (__accessCheck(obj, member, "access private method"), method4);
49
- var _removeSourceIdElement_dec, _setSourceIdElement_dec, _setActiveRootInstanceId_dec, _init, _runApi_dec, _init2, _setWidgetProperty_dec, _setWidgetProperties_dec, _writeRuntimeProperties_dec, _ackDeletedComponents_dec, _dropComponent_dec, _createComponent_dec, _batchUpdate_dec, _clearPendingTransactions_dec, _addPendingTransaction_dec, _executeOrAddToBatch_dec, _init3, _addWidgetFromPayload_dec, _processRoot_dec, _init4, _addOptimisticCreateWidget_dec, _processRootWidget_dec, _init5, _refreshPositionsAndGetDropConstraints_dec, _init6, _updateChildPositions_dec, _setWidgetPosition_dec, _setActiveTargetRect_dec, _setActiveDragRect_dec, _setDropTargetId_dec, _setInvalidDropTarget_dec, _setValidRootIds_dec, _cancelNewComponentDrag_dec, _startNewComponentDrag_dec, _setIsDragging_dec, _setWidgetFeatures_dec, _init7;
49
+ var _removeSourceIdElement_dec, _setSourceIdElement_dec, _setActiveRootInstanceId_dec, _init, _cancelApi_dec, _runApi_dec, _init2, _setWidgetProperty_dec, _setWidgetProperties_dec, _writeRuntimeProperties_dec, _ackDeletedComponents_dec, _dropComponent_dec, _createComponent_dec, _batchUpdate_dec, _clearPendingTransactions_dec, _addPendingTransaction_dec, _executeOrAddToBatch_dec, _init3, _addWidgetFromPayload_dec, _processRoot_dec, _init4, _addOptimisticCreateWidget_dec, _processRootWidget_dec, _init5, _refreshPositionsAndGetDropConstraints_dec, _init6, _updateChildPositions_dec, _setWidgetPosition_dec, _setActiveTargetRect_dec, _setActiveDragRect_dec, _setDropTargetId_dec, _setInvalidDropTarget_dec, _setValidRootIds_dec, _cancelNewComponentDrag_dec, _startNewComponentDrag_dec, _setIsDragging_dec, _setWidgetFeatures_dec, _init7;
50
50
  import * as React from "react";
51
51
  import React__default, { useMemo as useMemo$2, createContext, useContext, isValidElement as isValidElement$1, cloneElement as cloneElement$1, Children, useState, createElement, useRef, useLayoutEffect as useLayoutEffect$2, forwardRef, memo, useEffect, version as version$2, Component, useCallback, useImperativeHandle, useReducer, PureComponent, useSyncExternalStore, Suspense, createRef } from "react";
52
52
  import * as ReactDOM from "react-dom";
@@ -2703,14 +2703,14 @@ function getLoaderFn$1(options) {
2703
2703
  if (!(loader === "all")) return [3, 3];
2704
2704
  return [4, import(
2705
2705
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
2706
- "./allPathsLoader-BZuVRUkZ.js"
2706
+ "./allPathsLoader--z2GO20T.js"
2707
2707
  )];
2708
2708
  case 2:
2709
2709
  return [2, _b2.sent().allPathsLoader];
2710
2710
  case 3:
2711
2711
  return [4, import(
2712
2712
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
2713
- "./splitPathsBySizeLoader-B9AycY0i.js"
2713
+ "./splitPathsBySizeLoader-Cq7WZdnC.js"
2714
2714
  )];
2715
2715
  case 4:
2716
2716
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -56290,13 +56290,18 @@ const isNameEqual = (a3, b3) => {
56290
56290
  };
56291
56291
  const CancelApisTrigger = {
56292
56292
  type: TriggerStepType$1.CANCEL_APIS,
56293
- async execute(_context, step) {
56294
- console.log("CancelApisTrigger", step);
56293
+ async execute(context2, step) {
56294
+ const apis = step.apis;
56295
+ for (const api2 of apis) {
56296
+ context2.rootStore.apis.cancelApi(api2.name, {
56297
+ scopeId: context2.scopeId
56298
+ });
56299
+ }
56295
56300
  },
56296
- create(apiNames, onCancel) {
56301
+ create(apis, onCancel) {
56297
56302
  return {
56298
56303
  type: TriggerStepType$1.CANCEL_APIS,
56299
- apiNames,
56304
+ apis,
56300
56305
  onCancel
56301
56306
  };
56302
56307
  }
@@ -56304,9 +56309,8 @@ const CancelApisTrigger = {
56304
56309
  const RunApisTrigger = {
56305
56310
  type: TriggerStepType$1.RUN_APIS,
56306
56311
  async execute(context2, step, onFinish) {
56307
- const apiNames = step.apiNames;
56308
- const executions = apiNames.map(
56309
- (apiName) => context2.rootStore.apis.runApi(apiName, {
56312
+ const executions = step.apis.map(
56313
+ (api2) => context2.rootStore.apis.runApi(api2.name, {
56310
56314
  scopeId: context2.scopeId
56311
56315
  })
56312
56316
  );
@@ -56314,10 +56318,10 @@ const RunApisTrigger = {
56314
56318
  onFinish == null ? void 0 : onFinish(responses);
56315
56319
  });
56316
56320
  },
56317
- create(apiNames, onSuccess, onError2) {
56321
+ create(apis, onSuccess, onError2) {
56318
56322
  return {
56319
56323
  type: TriggerStepType$1.RUN_APIS,
56320
- apiNames,
56324
+ apis,
56321
56325
  onSuccess,
56322
56326
  onError: onError2
56323
56327
  };
@@ -56666,7 +56670,7 @@ const runEventHandlers = async ({
56666
56670
  return response.status === "rejected" || ((_a2 = response.value) == null ? void 0 : _a2.errors) && ((_c2 = (_b2 = response.value) == null ? void 0 : _b2.errors) == null ? void 0 : _c2.length) > 0;
56667
56671
  }
56668
56672
  );
56669
- const joinedApiNames = step.apiNames.join(", ");
56673
+ const joinedApiNames = step.apis.map((api2) => api2.name).join(", ");
56670
56674
  const scopeInfo = context2.rootStore.entityManager.getState(scopeId);
56671
56675
  if (!error) {
56672
56676
  if (step.onSuccess) {
@@ -56678,7 +56682,7 @@ const runEventHandlers = async ({
56678
56682
  });
56679
56683
  }
56680
56684
  runApiScopeHandlers({
56681
- apiNames: step.apiNames,
56685
+ apiNames: step.apis.map((api2) => api2.name),
56682
56686
  scopeInfo,
56683
56687
  handlerName: "onSuccess",
56684
56688
  additionalContext
@@ -56693,7 +56697,7 @@ const runEventHandlers = async ({
56693
56697
  });
56694
56698
  }
56695
56699
  runApiScopeHandlers({
56696
- apiNames: step.apiNames,
56700
+ apiNames: step.apis.map((api2) => api2.name),
56697
56701
  scopeInfo,
56698
56702
  handlerName: "onError",
56699
56703
  additionalContext
@@ -61946,19 +61950,21 @@ class SbEventFlow {
61946
61950
  controlTimer(timerId, action2) {
61947
61951
  return this.addStep(EventRegistry.controlTimer.create(timerId, action2));
61948
61952
  }
61949
- static runApis(apiNames, onSuccess, onError2) {
61950
- return SbEventFlow.start().runApis(apiNames, onSuccess, onError2);
61953
+ static runApis(apis, onSuccess, onError2) {
61954
+ return SbEventFlow.start().runApis(apis, onSuccess, onError2);
61951
61955
  }
61952
- runApis(apiNames, onSuccess, onError2) {
61956
+ runApis(apis, onSuccess, onError2) {
61953
61957
  return this.addStep(
61954
- EventRegistry.executeApi.create(apiNames, onSuccess, onError2)
61958
+ EventRegistry.executeApi.create(apis, onSuccess, onError2)
61955
61959
  );
61956
61960
  }
61957
- static cancelApis(apiNames, onCancel) {
61958
- return SbEventFlow.start().cancelApis(apiNames, onCancel);
61961
+ static cancelApis(apis, onCancel) {
61962
+ return SbEventFlow.start().cancelApis(apis, onCancel);
61959
61963
  }
61960
- cancelApis(apiNames, onCancel) {
61961
- return this.addStep(EventRegistry.cancelApi.create(apiNames, onCancel));
61964
+ cancelApis(apis, onCancel) {
61965
+ return this.addStep(
61966
+ EventRegistry.cancelApi.create(apis, onCancel)
61967
+ );
61962
61968
  }
61963
61969
  static resetComponent(widget, propertyName, resetChildren) {
61964
61970
  return SbEventFlow.start().resetComponent(
@@ -62959,7 +62965,7 @@ async function executeV2Api(params) {
62959
62965
  },
62960
62966
  agents,
62961
62967
  // organization,
62962
- abortController,
62968
+ signal: abortController == null ? void 0 : abortController.signal,
62963
62969
  headers: {
62964
62970
  [SUPERBLOCKS_AUTHORIZATION_HEADER]: `Bearer ${accessToken}`,
62965
62971
  Authorization: `Bearer ${token2}`,
@@ -63151,7 +63157,8 @@ const fetchServerStream = async ({
63151
63157
  onMessage: handleMessage,
63152
63158
  onComplete,
63153
63159
  onError: onError2,
63154
- baseUrl: ""
63160
+ baseUrl: "",
63161
+ signal: (augmentedInit == null ? void 0 : augmentedInit.signal) ?? void 0
63155
63162
  });
63156
63163
  };
63157
63164
  class HttpError extends Error {
@@ -63220,7 +63227,7 @@ const decodeBytestringsInV2ExecutionResponse = (response) => {
63220
63227
  });
63221
63228
  }
63222
63229
  };
63223
- _runApi_dec = [action];
63230
+ _runApi_dec = [action], _cancelApi_dec = [action];
63224
63231
  class ApiManager {
63225
63232
  constructor(rootStore2) {
63226
63233
  __runInitializers(_init2, 5, this);
@@ -63230,6 +63237,7 @@ class ApiManager {
63230
63237
  __publicField(this, "apisByName", {});
63231
63238
  __publicField(this, "apiNameToDepCandidates", {});
63232
63239
  __publicField(this, "apiNameToApiReferences", {});
63240
+ __publicField(this, "runningApiControllers", {});
63233
63241
  this.rootStore = rootStore2;
63234
63242
  }
63235
63243
  setTokens(token2, accessToken) {
@@ -63322,6 +63330,8 @@ class ApiManager {
63322
63330
  const orchestratorUrl = `${this.baseUrl}v2/execute`;
63323
63331
  const events2 = [];
63324
63332
  await ((_a2 = this.rootStore.editStore) == null ? void 0 : _a2.operationManager.ensureFilesSynced());
63333
+ const abortController = new AbortController();
63334
+ this.runningApiControllers[apiName] = abortController;
63325
63335
  await executeV2Api({
63326
63336
  body: {
63327
63337
  inputs,
@@ -63350,6 +63360,7 @@ class ApiManager {
63350
63360
  viewMode: ViewMode.EDITOR,
63351
63361
  accessToken: this.accessToken ?? "",
63352
63362
  token: this.token ?? "",
63363
+ abortController,
63353
63364
  onMessage: (message2) => {
63354
63365
  editorBridge.sendStreamedApiMessage(message2, apiName);
63355
63366
  },
@@ -63370,12 +63381,38 @@ class ApiManager {
63370
63381
  } else {
63371
63382
  console.warn("API entity not found", apiName);
63372
63383
  }
63384
+ delete this.runningApiControllers[apiName];
63373
63385
  editorBridge.setApiResponse(apiName, parsedResult);
63374
63386
  return parsedResult;
63375
63387
  }
63388
+ async cancelApi(apiName, { scopeId }) {
63389
+ const abortController = this.runningApiControllers[apiName];
63390
+ if (!abortController) {
63391
+ console.warn(`No running API execution found for ${apiName}`);
63392
+ return;
63393
+ }
63394
+ abortController.abort();
63395
+ delete this.runningApiControllers[apiName];
63396
+ const name = {
63397
+ value: apiName,
63398
+ isAnonymous: false
63399
+ };
63400
+ const entity = this.rootStore.entityManager.getEntity(scopeId, name);
63401
+ if (entity) {
63402
+ entity.response = null;
63403
+ }
63404
+ editorBridge.setApiResponse(apiName, {
63405
+ status: "STATUS_CANCELLED",
63406
+ execution: null,
63407
+ events: [],
63408
+ errors: [{ message: "API execution was cancelled" }],
63409
+ output: null
63410
+ });
63411
+ }
63376
63412
  }
63377
63413
  _init2 = __decoratorStart(null);
63378
63414
  __decorateElement(_init2, 1, "runApi", _runApi_dec, ApiManager);
63415
+ __decorateElement(_init2, 1, "cancelApi", _cancelApi_dec, ApiManager);
63379
63416
  __decoratorMetadata(_init2, ApiManager);
63380
63417
  const richTypes = { Date: true, RegExp: true, String: true, Number: true };
63381
63418
  function diff$1(obj, newObj, options = { cyclesFix: true }, _stack = []) {
@@ -147510,14 +147547,14 @@ function getLoaderFn(options) {
147510
147547
  if (!(loader === "all")) return [3, 3];
147511
147548
  return [4, import(
147512
147549
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
147513
- "./allPathsLoader-CDtb0W2A.js"
147550
+ "./allPathsLoader-CDaGqynd.js"
147514
147551
  )];
147515
147552
  case 2:
147516
147553
  return [2, _b2.sent().allPathsLoader];
147517
147554
  case 3:
147518
147555
  return [4, import(
147519
147556
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
147520
- "./splitPathsBySizeLoader-D_MwylYU.js"
147557
+ "./splitPathsBySizeLoader-tnYhCeAp.js"
147521
147558
  )];
147522
147559
  case 4:
147523
147560
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -181477,6 +181514,13 @@ const propertiesDefinition = {
181477
181514
  api2.isRunning = false;
181478
181515
  return (_a2 = api2.onError) == null ? void 0 : _a2.call(api2);
181479
181516
  });
181517
+ }),
181518
+ cancel: Prop.function(function(_s2) {
181519
+ const api2 = this;
181520
+ api2.isRunning = false;
181521
+ rootStore.apis.cancelApi(api2.name, {
181522
+ scopeId: api2.scopeId
181523
+ });
181480
181524
  })
181481
181525
  })
181482
181526
  };
@@ -182432,7 +182476,14 @@ const EmbedWrapper = (props) => {
182432
182476
  }
182433
182477
  case "RUN_API": {
182434
182478
  const { apiName, scopeId, manualRun } = action2.payload;
182435
- const flow3 = SbEventFlow.start().runApis([apiName]);
182479
+ const api2 = rootStore.entityManager.getEntity(
182480
+ scopeId,
182481
+ getName(apiName)
182482
+ );
182483
+ if (!api2 || api2.type !== "SbApi") {
182484
+ throw new Error(`API ${apiName} not found`);
182485
+ }
182486
+ const flow3 = SbEventFlow.start().runApis([api2]);
182436
182487
  runEventHandlers({
182437
182488
  flow: flow3,
182438
182489
  name: getName(apiName),
@@ -195836,4 +195887,4 @@ export {
195836
195887
  SbProvider as y,
195837
195888
  SbEventFlow as z
195838
195889
  };
195839
- //# sourceMappingURL=index-B9ibI377.js.map
195890
+ //# sourceMappingURL=index-DEfChqth.js.map