@superblocksteam/library 2.0.3-next.161 → 2.0.3-next.163

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.
@@ -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-CNYSm9og.js";
3
+ import { p as pascalCase, b as IconSize } from "./index-DSm4sAXe.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-BApLf4rp.js.map
17
+ //# sourceMappingURL=allPaths-DM9vqwnS.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allPaths-BApLf4rp.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-DM9vqwnS.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-CNYSm9og.js";
3
+ import { p as pascalCase, I as IconSize } from "./index-DSm4sAXe.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-BiuxA7ic.js.map
17
+ //# sourceMappingURL=allPaths-DxkvppLV.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allPaths-BiuxA7ic.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-DxkvppLV.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-CNYSm9og.js";
1
+ import { _ as __awaiter, a as __generator } from "./index-DSm4sAXe.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-BiuxA7ic.js"
10
+ "./allPaths-DM9vqwnS.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-DAmfuudp.js.map
22
+ //# sourceMappingURL=allPathsLoader-CA2g8N1n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allPathsLoader-DgVs_Ja6.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-CA2g8N1n.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-CNYSm9og.js";
1
+ import { _ as __awaiter, a as __generator } from "./index-DSm4sAXe.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-BApLf4rp.js"
10
+ "./allPaths-DxkvppLV.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-DgVs_Ja6.js.map
22
+ //# sourceMappingURL=allPathsLoader-CWPx59Ux.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allPathsLoader-DAmfuudp.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-CWPx59Ux.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]}
@@ -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, _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;
49
+ var _removeSourceIdElement_dec, _setSourceIdElement_dec, _setActiveRootInstanceId_dec, _init, _cancelApi_dec, _runApi_dec, _init2, _setWidgetProperty_dec, _setWidgetProperties_dec, _writeRuntimeProperties_dec, _deleteComponents_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";
@@ -2692,14 +2692,14 @@ function getLoaderFn$1(options) {
2692
2692
  if (!(loader === "all")) return [3, 3];
2693
2693
  return [4, import(
2694
2694
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
2695
- "./allPathsLoader-DAmfuudp.js"
2695
+ "./allPathsLoader-CWPx59Ux.js"
2696
2696
  )];
2697
2697
  case 2:
2698
2698
  return [2, _b2.sent().allPathsLoader];
2699
2699
  case 3:
2700
2700
  return [4, import(
2701
2701
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
2702
- "./splitPathsBySizeLoader-lGtuqt6v.js"
2702
+ "./splitPathsBySizeLoader-CePLwOUn.js"
2703
2703
  )];
2704
2704
  case 4:
2705
2705
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -10399,6 +10399,7 @@ const Property = {
10399
10399
  function isPropertyInfo(value) {
10400
10400
  return typeof value === "object" && value !== null && "__info" in value && value.__info === true;
10401
10401
  }
10402
+ const generateSourceId = () => `SB-${Math.random().toString(36).substring(2, 15)}`;
10402
10403
  const isDimension = (value) => {
10403
10404
  return typeof value === "object" && value !== null && "mode" in value && ["px", "fit", "fill", "%", "columns", "rows"].includes(value.mode) && (value.mode === "fit" || "value" in value);
10404
10405
  };
@@ -63575,17 +63576,10 @@ const _SuperblocksEditorBridge = class _SuperblocksEditorBridge {
63575
63576
  payload: { sourceIds, selectingMultiple }
63576
63577
  });
63577
63578
  }
63578
- // TODO (alex): Is this used?
63579
- updateWidgetProperty(sourceId, updates) {
63579
+ editOpRequest(type5, payload) {
63580
63580
  this.sendImmediate({
63581
- type: "sb-update-property",
63582
- payload: { sourceId, updates }
63583
- });
63584
- }
63585
- deleteWidgets(sourceIds) {
63586
- this.sendImmediate({
63587
- type: "deleteWidgets",
63588
- payload: { sourceIds }
63581
+ type: "sb-edit-operation-request",
63582
+ payload: { type: type5, payload }
63589
63583
  });
63590
63584
  }
63591
63585
  undo() {
@@ -64866,6 +64860,10 @@ class OperationAPI {
64866
64860
  var _a2;
64867
64861
  return (_a2 = this.socket) == null ? void 0 : _a2.call.editor.setProperties(payload);
64868
64862
  });
64863
+ __publicField(this, "editorDeleteProperties", async (payload) => {
64864
+ var _a2;
64865
+ return (_a2 = this.socket) == null ? void 0 : _a2.call.editor.deleteProperties(payload);
64866
+ });
64869
64867
  __publicField(this, "editorBatchUpdate", async (payload) => {
64870
64868
  var _a2;
64871
64869
  return (_a2 = this.socket) == null ? void 0 : _a2.call.editor.batchUpdate(payload);
@@ -65032,7 +65030,7 @@ async function connectSocket(serverUrl, peerId, userId) {
65032
65030
  return void 0;
65033
65031
  }
65034
65032
  }
65035
- _executeOrAddToBatch_dec = [action], _addPendingTransaction_dec = [action], _clearPendingTransactions_dec = [action], _batchUpdate_dec = [action], _createComponent_dec = [action], _dropComponent_dec = [action], _ackDeletedComponents_dec = [action], _writeRuntimeProperties_dec = [action], _setWidgetProperties_dec = [action], _setWidgetProperty_dec = [action];
65033
+ _executeOrAddToBatch_dec = [action], _addPendingTransaction_dec = [action], _clearPendingTransactions_dec = [action], _batchUpdate_dec = [action], _createComponent_dec = [action], _dropComponent_dec = [action], _deleteComponents_dec = [action], _writeRuntimeProperties_dec = [action], _setWidgetProperties_dec = [action], _setWidgetProperty_dec = [action];
65036
65034
  class OperationManager {
65037
65035
  constructor() {
65038
65036
  __runInitializers(_init3, 5, this);
@@ -65075,7 +65073,8 @@ class OperationManager {
65075
65073
  const payload = this.waitingForBatch ? operation.payload : {
65076
65074
  ...operation.payload,
65077
65075
  transaction: {
65078
- id: transactionId
65076
+ id: transactionId,
65077
+ origin: "LIBRARY"
65079
65078
  }
65080
65079
  };
65081
65080
  const opWithId = {
@@ -65089,23 +65088,25 @@ class OperationManager {
65089
65088
  } else {
65090
65089
  switch (operation.type) {
65091
65090
  case "editor:moveComponent":
65092
- return sourceUpdateApi.editorMoveComponent(
65091
+ return editorBridge.editOpRequest(
65092
+ "editor:moveComponent",
65093
65093
  payload
65094
- ).catch((e3) => {
65095
- console.error("Error during operation", e3);
65096
- });
65094
+ );
65097
65095
  case "editor:setProperties":
65098
- return sourceUpdateApi.editorSetProperties(
65096
+ return editorBridge.editOpRequest(
65097
+ "editor:setProperties",
65099
65098
  payload
65100
- ).catch((e3) => {
65101
- console.error("Error during operation", e3);
65102
- });
65099
+ );
65103
65100
  case "editor:createComponent":
65104
- return sourceUpdateApi.editorCreateComponent(
65101
+ return editorBridge.editOpRequest(
65102
+ "editor:createComponent",
65105
65103
  payload
65106
- ).catch((e3) => {
65107
- console.error("Error during operation", e3);
65108
- });
65104
+ );
65105
+ case "editor:deleteComponents":
65106
+ return editorBridge.editOpRequest(
65107
+ "editor:deleteComponents",
65108
+ payload
65109
+ );
65109
65110
  }
65110
65111
  }
65111
65112
  }
@@ -65144,9 +65145,15 @@ class OperationManager {
65144
65145
  this.waitingForBatch = true;
65145
65146
  this.batchOperationTransactionId = generateId$1();
65146
65147
  performOperations();
65147
- sourceUpdateApi.editorBatchUpdate({
65148
- updates: this.batchOperations,
65148
+ editorBridge.editOpRequest("editor:batchUpdate", {
65149
+ updates: this.batchOperations.map(
65150
+ (op2) => ({
65151
+ type: op2.type,
65152
+ payload: op2.payload
65153
+ })
65154
+ ),
65149
65155
  transaction: {
65156
+ origin: "LIBRARY",
65150
65157
  id: this.batchOperationTransactionId
65151
65158
  }
65152
65159
  });
@@ -65172,18 +65179,104 @@ class OperationManager {
65172
65179
  payload
65173
65180
  });
65174
65181
  }
65175
- ackDeletedComponents(payload) {
65176
- var _a2, _b2;
65177
- if (!((_a2 = payload == null ? void 0 : payload.transaction) == null ? void 0 : _a2.id)) {
65178
- console.error("No transaction id in delete request", payload);
65179
- return;
65180
- }
65181
- this.addPendingTransaction({
65182
+ deleteComponents(sourceIds) {
65183
+ const payload = {
65184
+ elements: sourceIds.map((sourceId) => ({
65185
+ source: { id: sourceId }
65186
+ }))
65187
+ };
65188
+ this.executeOrAddToBatch({
65182
65189
  type: "editor:deleteComponents",
65183
- id: (_b2 = payload == null ? void 0 : payload.transaction) == null ? void 0 : _b2.id,
65184
65190
  payload
65185
65191
  });
65186
65192
  }
65193
+ acknowledgeEditOperation(operation) {
65194
+ var _a2, _b2;
65195
+ if (!("transaction" in operation.payload) || !((_a2 = operation.payload.transaction) == null ? void 0 : _a2.id)) {
65196
+ console.error("No transaction id in edit operation", operation);
65197
+ return;
65198
+ }
65199
+ const addOperation = (operation2, batchTransactionId) => {
65200
+ switch (operation2.type) {
65201
+ case "editor:createComponent": {
65202
+ const { type: type5, payload } = operation2;
65203
+ this.addPendingTransaction({
65204
+ type: type5,
65205
+ id: batchTransactionId ?? payload.transaction.id,
65206
+ payload
65207
+ });
65208
+ break;
65209
+ }
65210
+ case "editor:deleteComponents": {
65211
+ const { type: type5, payload } = operation2;
65212
+ this.addPendingTransaction({
65213
+ type: type5,
65214
+ id: batchTransactionId ?? payload.transaction.id,
65215
+ payload
65216
+ });
65217
+ break;
65218
+ }
65219
+ case "editor:moveComponent": {
65220
+ const { type: type5, payload } = operation2;
65221
+ this.addPendingTransaction({
65222
+ type: type5,
65223
+ id: batchTransactionId ?? payload.transaction.id,
65224
+ payload
65225
+ });
65226
+ break;
65227
+ }
65228
+ case "editor:setProperties": {
65229
+ const { type: type5, payload } = operation2;
65230
+ this.addPendingTransaction({
65231
+ type: type5,
65232
+ id: payload.transaction.id,
65233
+ payload
65234
+ });
65235
+ break;
65236
+ }
65237
+ case "editor:deleteProperties": {
65238
+ const { payload } = operation2;
65239
+ const asSetProperties = {
65240
+ element: {
65241
+ source: {
65242
+ id: payload.element.source.id
65243
+ }
65244
+ },
65245
+ properties: Object.fromEntries(
65246
+ payload.properties.map((p) => [
65247
+ p,
65248
+ {
65249
+ type: "STATIC",
65250
+ value: void 0,
65251
+ __info: true
65252
+ }
65253
+ ])
65254
+ )
65255
+ };
65256
+ this.addPendingTransaction({
65257
+ type: "editor:setProperties",
65258
+ id: batchTransactionId ?? payload.transaction.id,
65259
+ payload: asSetProperties
65260
+ });
65261
+ break;
65262
+ }
65263
+ default:
65264
+ console.error("Unknown edit operation", operation2);
65265
+ }
65266
+ };
65267
+ if (operation.type === "editor:batchUpdate") {
65268
+ const { payload } = operation;
65269
+ if (!((_b2 = payload.transaction) == null ? void 0 : _b2.id)) {
65270
+ console.error("No transaction id in batch", operation);
65271
+ return;
65272
+ }
65273
+ for (const update of payload.updates) {
65274
+ addOperation(update, payload.transaction.id);
65275
+ }
65276
+ } else {
65277
+ addOperation(operation);
65278
+ }
65279
+ }
65187
65280
  writeRuntimeProperties(sourceId, transactionId, updates) {
65188
65281
  this.addPendingTransaction({
65189
65282
  type: "editor:setProperties",
@@ -65213,7 +65306,7 @@ class OperationManager {
65213
65306
  await sourceUpdateApi.ensureFilesSynced();
65214
65307
  }
65215
65308
  generateSourceId() {
65216
- return `SB-${generateId$1()}`;
65309
+ return generateSourceId();
65217
65310
  }
65218
65311
  }
65219
65312
  _init3 = __decoratorStart(null);
@@ -65223,7 +65316,7 @@ __decorateElement(_init3, 1, "clearPendingTransactions", _clearPendingTransactio
65223
65316
  __decorateElement(_init3, 1, "batchUpdate", _batchUpdate_dec, OperationManager);
65224
65317
  __decorateElement(_init3, 1, "createComponent", _createComponent_dec, OperationManager);
65225
65318
  __decorateElement(_init3, 1, "dropComponent", _dropComponent_dec, OperationManager);
65226
- __decorateElement(_init3, 1, "ackDeletedComponents", _ackDeletedComponents_dec, OperationManager);
65319
+ __decorateElement(_init3, 1, "deleteComponents", _deleteComponents_dec, OperationManager);
65227
65320
  __decorateElement(_init3, 1, "writeRuntimeProperties", _writeRuntimeProperties_dec, OperationManager);
65228
65321
  __decorateElement(_init3, 1, "setWidgetProperties", _setWidgetProperties_dec, OperationManager);
65229
65322
  __decorateElement(_init3, 1, "setWidgetProperty", _setWidgetProperty_dec, OperationManager);
@@ -65772,7 +65865,9 @@ class RuntimeEntitiesManager {
65772
65865
  if (!childMeta) {
65773
65866
  continue;
65774
65867
  }
65775
- optimisticChildren.splice(op2.index, 0, {
65868
+ const appendToEnd = op2.index === -1;
65869
+ const index2 = appendToEnd ? optimisticChildren.length : op2.index;
65870
+ optimisticChildren.splice(index2, 0, {
65776
65871
  isSbComponent: childMeta.isSbComponent,
65777
65872
  isSupportedElement: true,
65778
65873
  value: childInstanceId
@@ -143571,14 +143666,14 @@ function getLoaderFn(options) {
143571
143666
  if (!(loader === "all")) return [3, 3];
143572
143667
  return [4, import(
143573
143668
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
143574
- "./allPathsLoader-DgVs_Ja6.js"
143669
+ "./allPathsLoader-CA2g8N1n.js"
143575
143670
  )];
143576
143671
  case 2:
143577
143672
  return [2, _b2.sent().allPathsLoader];
143578
143673
  case 3:
143579
143674
  return [4, import(
143580
143675
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
143581
- "./splitPathsBySizeLoader-CYAbP99t.js"
143676
+ "./splitPathsBySizeLoader-DSNr6R-_.js"
143582
143677
  )];
143583
143678
  case 4:
143584
143679
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -178160,7 +178255,10 @@ function EditorHotkeys({ children }) {
178160
178255
  if (e3.target instanceof HTMLInputElement || e3.target instanceof HTMLTextAreaElement) {
178161
178256
  return;
178162
178257
  }
178163
- editorBridge.deleteWidgets(getEditStore().ui.getSelectedSourceIds());
178258
+ const editStore2 = getEditStore();
178259
+ editStore2.operationManager.deleteComponents(
178260
+ editStore2.ui.getSelectedSourceIds()
178261
+ );
178164
178262
  });
178165
178263
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children });
178166
178264
  }
@@ -178375,12 +178473,14 @@ const EmbedWrapper = (props) => {
178375
178473
  "sb-retrieve-property-panel-props",
178376
178474
  retrievePropertyPanelPropsListener
178377
178475
  );
178378
- const deleteComponentsListener = (event) => {
178379
- getEditStore().operationManager.ackDeletedComponents(event.data.payload);
178476
+ const editOperationAcknowledgeListener = (event) => {
178477
+ getEditStore().operationManager.acknowledgeEditOperation(
178478
+ event.data.payload
178479
+ );
178380
178480
  };
178381
178481
  iframeMessageHandler.addEventListener(
178382
- "sb-delete-components",
178383
- deleteComponentsListener
178482
+ "sb-edit-operation-acknowledge",
178483
+ editOperationAcknowledgeListener
178384
178484
  );
178385
178485
  const updatePropertyWithEffectsListener = (event) => {
178386
178486
  const payload = {
@@ -178449,8 +178549,8 @@ const EmbedWrapper = (props) => {
178449
178549
  bootstrapResponseListener
178450
178550
  );
178451
178551
  iframeMessageHandler.removeEventListener(
178452
- "sb-delete-components",
178453
- deleteComponentsListener
178552
+ "sb-edit-operation-acknowledge",
178553
+ editOperationAcknowledgeListener
178454
178554
  );
178455
178555
  iframeMessageHandler.removeEventListener(
178456
178556
  "sb-update-property-with-effects",
@@ -191700,4 +191800,4 @@ export {
191700
191800
  SbEventFlow as y,
191701
191801
  copyToClipboard as z
191702
191802
  };
191703
- //# sourceMappingURL=index-CNYSm9og.js.map
191803
+ //# sourceMappingURL=index-DSm4sAXe.js.map