@superblocksteam/library 2.0.17 → 2.0.18-next.0

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 (47) hide show
  1. package/dist/{allPaths-DO_ss_La.js → allPaths-B1Y9gwk2.js} +2 -2
  2. package/dist/{allPaths-DO_ss_La.js.map → allPaths-B1Y9gwk2.js.map} +1 -1
  3. package/dist/{allPaths-BCitH15O.js → allPaths-CwNY3R7j.js} +2 -2
  4. package/dist/{allPaths-BCitH15O.js.map → allPaths-CwNY3R7j.js.map} +1 -1
  5. package/dist/{allPathsLoader-BTewOh_Z.js → allPathsLoader-D-m9fuRJ.js} +3 -3
  6. package/dist/{allPathsLoader-BTewOh_Z.js.map → allPathsLoader-D-m9fuRJ.js.map} +1 -1
  7. package/dist/{allPathsLoader-XoyOVREm.js → allPathsLoader-kCobPWF0.js} +3 -3
  8. package/dist/{allPathsLoader-XoyOVREm.js.map → allPathsLoader-kCobPWF0.js.map} +1 -1
  9. package/dist/{devtools-consolidated-DlU0hkAn.js → devtools-consolidated-OiRocxG5.js} +2 -2
  10. package/dist/{devtools-consolidated-DlU0hkAn.js.map → devtools-consolidated-OiRocxG5.js.map} +1 -1
  11. package/dist/{index-BUfvdWG9.js → index-mk5r-pFv.js} +84 -49
  12. package/dist/{index-BUfvdWG9.js.map → index-mk5r-pFv.js.map} +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/{splitPathsBySizeLoader-cCqONPBp.js → splitPathsBySizeLoader-D_UL9EpY.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-cCqONPBp.js.map → splitPathsBySizeLoader-D_UL9EpY.js.map} +1 -1
  16. package/dist/{splitPathsBySizeLoader-CK5DlUfZ.js → splitPathsBySizeLoader-LxU7V3um.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-CK5DlUfZ.js.map → splitPathsBySizeLoader-LxU7V3um.js.map} +1 -1
  18. package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +7 -2
  19. package/dist-types/lib/internal-details/sb-wrapper.d.ts +2 -1
  20. package/dist-types/lib/user-facing/components/{container/editor-template.d.ts → button/editor.d.ts} +2 -0
  21. package/dist-types/lib/user-facing/components/checkbox/editor.d.ts +5 -0
  22. package/dist-types/lib/user-facing/components/container/editor.d.ts +5 -0
  23. package/dist-types/lib/user-facing/components/date-picker/editor.d.ts +5 -0
  24. package/dist-types/lib/user-facing/components/dropdown/editor.d.ts +5 -0
  25. package/dist-types/lib/user-facing/components/icon/editor.d.ts +5 -0
  26. package/dist-types/lib/user-facing/components/image/editor.d.ts +5 -0
  27. package/dist-types/lib/user-facing/components/input/editor.d.ts +5 -0
  28. package/dist-types/lib/user-facing/components/modal/editor-config.d.ts +2 -0
  29. package/dist-types/lib/user-facing/components/slideout/editor-config.d.ts +2 -0
  30. package/dist-types/lib/user-facing/components/switch/editor.d.ts +5 -0
  31. package/dist-types/lib/user-facing/components/table/editor.d.ts +5 -0
  32. package/dist-types/lib/user-facing/components/text/editor.d.ts +5 -0
  33. package/dist-types/lib/user-facing/utils/create-svg-data-uri.d.ts +9 -0
  34. package/package.json +2 -2
  35. package/dist-types/lib/user-facing/components/date-picker/editor-template.d.ts +0 -3
  36. package/dist-types/lib/user-facing/components/dropdown/editor-template.d.ts +0 -3
  37. package/dist-types/lib/user-facing/components/icon/editor-template.d.ts +0 -3
  38. package/dist-types/lib/user-facing/components/image/editor-template.d.ts +0 -3
  39. package/dist-types/lib/user-facing/components/input/editor-template.d.ts +0 -3
  40. package/dist-types/lib/user-facing/components/key-value/editor-template.d.ts +0 -3
  41. package/dist-types/lib/user-facing/components/section/editor-template.d.ts +0 -3
  42. package/dist-types/lib/user-facing/components/switch/editor-template.d.ts +0 -3
  43. package/dist-types/lib/user-facing/components/table/editor-template.d.ts +0 -3
  44. package/dist-types/lib/user-facing/components/text/editor-template.d.ts +0 -3
  45. /package/dist-types/lib/user-facing/components/{button/editor-template.d.ts → column/editor.d.ts} +0 -0
  46. /package/dist-types/lib/user-facing/components/{checkbox/editor-template.d.ts → key-value/editor.d.ts} +0 -0
  47. /package/dist-types/lib/user-facing/components/{column/editor-template.d.ts → section/editor.d.ts} +0 -0
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a0 as clientExports } from "./index-BUfvdWG9.js";
2
- import { a1, a2, B, h, C, c, g, i, Y, D, O, Q, E, a3, L, a4, a5, a6, a7, l, n, d, a8, a9, v, aa, ab, M, ac, ad, ae, $, P, af, W, ag, ah, ai, aj, Z, u, R, v as v2, ak, al, S, am, e, q, A, an, ao, k, f, T, N, s, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, X, w, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, K, aZ, a_, a$, b0, b1, b2, z, b3, b4, b5, b6, b7, G, b8, b9, x, ba, bb, bc, r, J, H, bd, be, bf, y, F, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, V, U, bN } from "./index-BUfvdWG9.js";
1
+ import { a0 as clientExports } from "./index-mk5r-pFv.js";
2
+ import { a1, a2, B, h, C, c, g, i, Y, D, O, Q, E, a3, L, a4, a5, a6, a7, l, n, d, a8, a9, v, aa, ab, M, ac, ad, ae, $, P, af, W, ag, ah, ai, aj, Z, u, R, v as v2, ak, al, S, am, e, q, A, an, ao, k, f, T, N, s, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, X, w, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, K, aZ, a_, a$, b0, b1, b2, z, b3, b4, b5, b6, b7, G, b8, b9, x, ba, bb, bc, r, J, H, bd, be, bf, y, F, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, V, U, bN } from "./index-mk5r-pFv.js";
3
3
  const createRoot = clientExports.createRoot;
4
4
  export {
5
5
  a1 as Await,
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-BUfvdWG9.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-mk5r-pFv.js";
2
2
  var splitPathsBySizeLoader = function(name, size) {
3
3
  return __awaiter(void 0, void 0, void 0, function() {
4
4
  var key, pathsRecord;
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
31
31
  export {
32
32
  splitPathsBySizeLoader
33
33
  };
34
- //# sourceMappingURL=splitPathsBySizeLoader-cCqONPBp.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-D_UL9EpY.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-cCqONPBp.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/splitPathsBySizeLoader.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\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"splitPathsBySizeLoader-D_UL9EpY.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/splitPathsBySizeLoader.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\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-BUfvdWG9.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-mk5r-pFv.js";
2
2
  var splitPathsBySizeLoader = function(name, size) {
3
3
  return __awaiter(void 0, void 0, void 0, function() {
4
4
  var key, pathsRecord;
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
31
31
  export {
32
32
  splitPathsBySizeLoader
33
33
  };
34
- //# sourceMappingURL=splitPathsBySizeLoader-CK5DlUfZ.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-LxU7V3um.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-CK5DlUfZ.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/splitPathsBySizeLoader.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\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"splitPathsBySizeLoader-LxU7V3um.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/splitPathsBySizeLoader.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\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
@@ -1,7 +1,7 @@
1
1
  import type { ManagedPropsList, PropertiesDefinition } from "../../../user-facing/properties-panel/props-builder.js";
2
2
  import type { EditorTemplate } from "../../sb-wrapper.jsx";
3
3
  import type { RootStore } from "../root-store.js";
4
- import type { Catalog, CatalogWithComponentDetails, ComponentRegistryShareState } from "@superblocksteam/library-shared/types";
4
+ import type { Catalog, ComponentRegistryShareState, CatalogWithInternalDetails, EditorConfig } from "@superblocksteam/library-shared/types";
5
5
  import type * as React from "react";
6
6
  export type Type = {
7
7
  isSb: symbol;
@@ -22,6 +22,7 @@ export declare class ComponentRegistry implements ComponentRegistryShareState {
22
22
  private _managedPropsRegistry;
23
23
  private _internalPropsRegistry;
24
24
  private _editorTemplatesRegistry;
25
+ private _editorConfigsRegistry;
25
26
  constructor(rootStore: RootStore);
26
27
  addType(type: string, component: Type): void;
27
28
  addCustomComponent(type: string, component: Type): void;
@@ -31,6 +32,7 @@ export declare class ComponentRegistry implements ComponentRegistryShareState {
31
32
  deleteManagedProps(type: string): void;
32
33
  addEditorTemplate(type: string, template: EditorTemplate<any>): void;
33
34
  getEditorTemplates(type: string): EditorTemplate<any>[] | undefined;
35
+ addEditorConfig(type: string, config: EditorConfig): void;
34
36
  addInternalProps(type: string, props: Array<{
35
37
  path: string;
36
38
  factory: () => any;
@@ -39,7 +41,10 @@ export declare class ComponentRegistry implements ComponentRegistryShareState {
39
41
  path: string;
40
42
  factory: () => any;
41
43
  }>;
42
- get libraryComponentCatalogs(): Record<string, CatalogWithComponentDetails[]>;
44
+ get libraryComponentCatalogs(): CatalogWithInternalDetails[];
45
+ get libraryComponentEditorConfigs(): {
46
+ [k: string]: EditorConfig;
47
+ };
43
48
  get customComponentList(): string[];
44
49
  get managedPropsRegistry(): Map<string, ManagedPropsList>;
45
50
  getManagedProps(type: string): ManagedPropsList;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { ExternalProps, InternalProps, PropertiesDefinition, RawPropsToExternal } from "../user-facing/properties-panel/props-builder.js";
3
- import type { AnonymousSbEntity, CreateChild, PropertyInfo, Catalog } from "@superblocksteam/library-shared/types";
3
+ import type { AnonymousSbEntity, CreateChild, PropertyInfo, Catalog, EditorConfig } from "@superblocksteam/library-shared/types";
4
4
  export type DropTargetProps = {
5
5
  dropTargetRef?: React.RefObject<HTMLDivElement>;
6
6
  };
@@ -62,6 +62,7 @@ export interface CreateRequest<Def extends PropertiesDefinition> {
62
62
  }
63
63
  export interface ChainableComponent<PD extends PropertiesDefinition, EP extends ExternalProps<PD>> extends React.FC<EP> {
64
64
  addEditorTemplate: (config: EditorTemplate<PD>) => ChainableComponent<PD, EP>;
65
+ editorConfig: (config: EditorConfig) => ChainableComponent<PD, EP>;
65
66
  isSb: symbol;
66
67
  sbType: string;
67
68
  displayName: string;
@@ -1,3 +1,5 @@
1
+ import { type EditorConfig } from "@superblocksteam/library-shared/types";
1
2
  import type { propertiesDefinition } from "./props.js";
2
3
  import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
4
  export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.js";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.js";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.js";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.js";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.js";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.js";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.js";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,2 @@
1
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
2
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,2 @@
1
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
2
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.jsx";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.js";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,5 @@
1
+ import type { propertiesDefinition } from "./props.js";
2
+ import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
4
+ export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -0,0 +1,9 @@
1
+ import type { SvgDataUri } from "@superblocksteam/library-shared/types";
2
+ /**
3
+ * Creates a data URI from an SVG string.
4
+ * Useful when defining a component's EditorTemplate catalog icon.
5
+ *
6
+ * @param svgContent - The SVG string to encode.
7
+ * @returns The data URI.
8
+ */
9
+ export declare const createSvgDataUri: (svgContent: string) => SvgDataUri;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.17",
3
+ "version": "2.0.18-next.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -33,7 +33,7 @@
33
33
  "@react-hook/resize-observer": "1.2.6",
34
34
  "@superblocksteam/fast-deep-equal": "3.1.4",
35
35
  "@superblocksteam/iso-currency": "2.0.0",
36
- "@superblocksteam/library-shared": "2.0.17",
36
+ "@superblocksteam/library-shared": "2.0.18-next.0",
37
37
  "@superblocksteam/shared": "0.9160.0",
38
38
  "antd": "4.24.15",
39
39
  "apca-w3": "^0.1.9",
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
@@ -1,3 +0,0 @@
1
- import type { propertiesDefinition } from "./props.js";
2
- import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
- export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;