@superblocksteam/library 2.0.0-next.11 → 2.0.0-next.111

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 (125) hide show
  1. package/dist/{allPaths-DXE_RTrt.js → allPaths-C9t-oueG.js} +2 -2
  2. package/dist/{allPaths-DXE_RTrt.js.map → allPaths-C9t-oueG.js.map} +1 -1
  3. package/dist/{allPaths-h7bsheRo.js → allPaths-v-9aWvcC.js} +2 -2
  4. package/dist/{allPaths-h7bsheRo.js.map → allPaths-v-9aWvcC.js.map} +1 -1
  5. package/dist/{allPathsLoader-16QM90xQ.js → allPathsLoader-C12f21WG.js} +3 -3
  6. package/dist/{allPathsLoader-BWX35Jie.js.map → allPathsLoader-C12f21WG.js.map} +1 -1
  7. package/dist/{allPathsLoader-BWX35Jie.js → allPathsLoader-ptt7LSRI.js} +3 -3
  8. package/dist/{allPathsLoader-16QM90xQ.js.map → allPathsLoader-ptt7LSRI.js.map} +1 -1
  9. package/dist/{index-tdErpvtu.js → index-Dmuv9J5-.js} +27437 -20439
  10. package/dist/{index-tdErpvtu.js.map → index-Dmuv9J5-.js.map} +1 -1
  11. package/dist/index.css +2 -1
  12. package/dist/index.js +2 -2
  13. package/dist/{splitPathsBySizeLoader-wQWCogRx.js → splitPathsBySizeLoader-C9M7hrZo.js} +2 -2
  14. package/dist/{splitPathsBySizeLoader-wQWCogRx.js.map → splitPathsBySizeLoader-C9M7hrZo.js.map} +1 -1
  15. package/dist/{splitPathsBySizeLoader-7yhv4gcq.js → splitPathsBySizeLoader-yx8MCpqw.js} +2 -2
  16. package/dist/{splitPathsBySizeLoader-7yhv4gcq.js.map → splitPathsBySizeLoader-yx8MCpqw.js.map} +1 -1
  17. package/dist-types/edit-mode/create-component.d.ts +3 -1
  18. package/dist-types/edit-mode/default-table-data.d.ts +71 -0
  19. package/dist-types/edit-mode/dnd/grid-store.d.ts +29 -4
  20. package/dist-types/edit-mode/dnd/utils.d.ts +11 -10
  21. package/dist-types/edit-mode/features/connection-manager.d.ts +1 -2
  22. package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +10 -4
  23. package/dist-types/edit-mode/features/operation-store.d.ts +12 -2
  24. package/dist-types/edit-mode/features/properties-panel-manager.d.ts +4 -4
  25. package/dist-types/edit-mode/features/resizing-store.d.ts +1 -0
  26. package/dist-types/edit-mode/interaction-utils.d.ts +4 -0
  27. package/dist-types/edit-mode/source-update-api.d.ts +3 -20
  28. package/dist-types/internal-testing/components/form.d.ts +1 -0
  29. package/dist-types/lib/internal-details/component-suspense-style-context.d.ts +10 -0
  30. package/dist-types/lib/internal-details/css-constants.d.ts +4 -0
  31. package/dist-types/lib/internal-details/identifier-normalizer.d.ts +0 -1
  32. package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +7 -5
  33. package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +2 -1
  34. package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +12 -1
  35. package/dist-types/lib/internal-details/lib/features/api-store.d.ts +1 -0
  36. package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +0 -1
  37. package/dist-types/lib/internal-details/lib/suspense/suspense-fallback.d.ts +10 -0
  38. package/dist-types/lib/internal-details/lib/types.d.ts +5 -0
  39. package/dist-types/lib/internal-details/reactive-component.d.ts +4 -3
  40. package/dist-types/lib/internal-details/remove-bindings.d.ts +1 -0
  41. package/dist-types/lib/internal-details/scope/global.d.ts +1 -0
  42. package/dist-types/lib/user-facing/component-base/components/button.d.ts +3 -4
  43. package/dist-types/lib/user-facing/component-base/components/video.d.ts +19 -0
  44. package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +3 -11
  45. package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +11 -8
  46. package/dist-types/lib/user-facing/components/button/index.d.ts +2 -2
  47. package/dist-types/lib/user-facing/components/button/props.d.ts +5 -11
  48. package/dist-types/lib/user-facing/components/checkbox/index.d.ts +1 -1
  49. package/dist-types/lib/user-facing/components/checkbox/props.d.ts +1 -1
  50. package/dist-types/lib/user-facing/components/column/index.d.ts +9 -21
  51. package/dist-types/lib/user-facing/components/column/props.d.ts +9 -20
  52. package/dist-types/lib/user-facing/components/container/index.d.ts +13 -24
  53. package/dist-types/lib/user-facing/components/container/props.d.ts +8 -22
  54. package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +3 -3
  55. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +6 -1
  56. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +6 -1
  57. package/dist-types/lib/user-facing/components/date-picker/types.d.ts +3 -0
  58. package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +1 -1
  59. package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +1 -1
  60. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +3 -3
  61. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +5 -6
  62. package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
  63. package/dist-types/lib/user-facing/components/grid/index.d.ts +8 -8
  64. package/dist-types/lib/user-facing/components/icon/index.d.ts +1 -1
  65. package/dist-types/lib/user-facing/components/icon/props.d.ts +1 -1
  66. package/dist-types/lib/user-facing/components/image/index.d.ts +2 -2
  67. package/dist-types/lib/user-facing/components/image/props.d.ts +2 -2
  68. package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +1 -1
  69. package/dist-types/lib/user-facing/components/input/index.d.ts +15 -21
  70. package/dist-types/lib/user-facing/components/input/props.d.ts +16 -21
  71. package/dist-types/lib/user-facing/components/key-value/props.d.ts +1 -0
  72. package/dist-types/lib/user-facing/components/modal/index.d.ts +11 -15
  73. package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +2 -2
  74. package/dist-types/lib/user-facing/components/modal/props.d.ts +11 -15
  75. package/dist-types/lib/user-facing/components/page/index.d.ts +3 -0
  76. package/dist-types/lib/user-facing/components/page/props.d.ts +3 -0
  77. package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
  78. package/dist-types/lib/user-facing/components/section/index.d.ts +3 -2
  79. package/dist-types/lib/user-facing/components/section/props.d.ts +3 -2
  80. package/dist-types/lib/user-facing/components/slideout/props.d.ts +5 -1
  81. package/dist-types/lib/user-facing/components/stack/index.d.ts +5 -3
  82. package/dist-types/lib/user-facing/components/switch/index.d.ts +1 -1
  83. package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
  84. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +72 -76
  85. package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +2 -2
  86. package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +5 -5
  87. package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +2 -2
  88. package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +2 -2
  89. package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +2 -2
  90. package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +2 -2
  91. package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +2 -2
  92. package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +2 -2
  93. package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +2 -2
  94. package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +2 -2
  95. package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +1 -1
  96. package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +2 -2
  97. package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +4 -4
  98. package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +3 -3
  99. package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +3 -3
  100. package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
  101. package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +5 -5
  102. package/dist-types/lib/user-facing/components/table/constants.d.ts +4 -24
  103. package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
  104. package/dist-types/lib/user-facing/components/table/index.d.ts +92 -96
  105. package/dist-types/lib/user-facing/components/table/props.d.ts +94 -99
  106. package/dist-types/lib/user-facing/components/table/table-component.d.ts +4 -4
  107. package/dist-types/lib/user-facing/components/table/table-styles.d.ts +3 -8
  108. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +25 -20
  109. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +2 -2
  110. package/dist-types/lib/user-facing/components/table/types.d.ts +47 -73
  111. package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -2
  112. package/dist-types/lib/user-facing/components/text/index.d.ts +9 -8
  113. package/dist-types/lib/user-facing/components/text/props.d.ts +18 -15
  114. package/dist-types/lib/user-facing/components/text/utils.d.ts +6 -6
  115. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -0
  116. package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +4 -8
  117. package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +4 -4
  118. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +15 -14
  119. package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +2 -0
  120. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +6 -4
  121. package/dist-types/lib/user-facing/properties-panel/validators.d.ts +2 -1
  122. package/dist-types/lib/user-facing/state/sb-computed.d.ts +1 -1
  123. package/dist-types/lib/user-facing/themes/constants.d.ts +4 -2
  124. package/dist-types/lib/user-facing/themes/utils.d.ts +1 -2
  125. package/package.json +5 -3
package/dist/index.css CHANGED
@@ -33970,9 +33970,10 @@ b {
33970
33970
  }
33971
33971
 
33972
33972
  /*# sourceMappingURL=style.css.map *//* A class that sets the child anchor-name to a variable that is set in react */
33973
+ /* First level is the suspense provider, second level is the component */
33973
33974
  .sb-anchor-name {
33974
33975
  display: contents;
33975
- > * {
33976
+ > * > * {
33976
33977
  anchor-name: var(--anchor-name);
33977
33978
  }
33978
33979
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { V as clientExports } from "./index-tdErpvtu.js";
2
- import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, 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, N, bH } from "./index-tdErpvtu.js";
1
+ import { V as clientExports } from "./index-Dmuv9J5-.js";
2
+ import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, 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, N, bH } from "./index-Dmuv9J5-.js";
3
3
  const createRoot = clientExports.createRoot;
4
4
  export {
5
5
  W as Await,
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-tdErpvtu.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-Dmuv9J5-.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-wQWCogRx.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-C9M7hrZo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-wQWCogRx.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-C9M7hrZo.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-tdErpvtu.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-Dmuv9J5-.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-7yhv4gcq.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-yx8MCpqw.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-7yhv4gcq.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-yx8MCpqw.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,8 +1,10 @@
1
1
  import type { PropertyInfo, SbElement, SourceLocation } from "@superblocksteam/library-shared/types";
2
2
  export declare const getUniqueName: (componentType: string) => string;
3
- export default function createComponent({ componentType, parent, scopeName, baseProperties, }: {
3
+ export default function createComponent({ componentType, parent, scopeName, baseProperties, skipTriggerCreation, otherComponentsUpdates, }: {
4
4
  componentType: string;
5
5
  parent: SourceLocation;
6
6
  scopeName: string;
7
7
  baseProperties?: Record<string, PropertyInfo>;
8
+ skipTriggerCreation?: boolean;
9
+ otherComponentsUpdates?: Record<SbElement, Record<string, PropertyInfo>>;
8
10
  }): Promise<SbElement | undefined>;
@@ -0,0 +1,71 @@
1
+ import { Dim } from "@superblocksteam/library-shared";
2
+ export declare const DEFAULT_TABLE_DATA: {
3
+ photo: string;
4
+ name: string;
5
+ email: string;
6
+ role: string;
7
+ company: string;
8
+ status: string;
9
+ date_joined: string;
10
+ last_activity: string;
11
+ }[];
12
+ export declare const DEFAULT_TABLE_COLUMNS: {
13
+ name: {
14
+ columnType: string;
15
+ label: string;
16
+ };
17
+ email: {
18
+ columnType: string;
19
+ label: string;
20
+ };
21
+ role: {
22
+ columnType: string;
23
+ label: string;
24
+ };
25
+ company: {
26
+ columnType: string;
27
+ label: string;
28
+ };
29
+ status: {
30
+ columnType: string;
31
+ tagDisplayConfig: {
32
+ Active: {
33
+ color: string;
34
+ };
35
+ Pending: {
36
+ color: string;
37
+ };
38
+ Inactive: {
39
+ color: string;
40
+ };
41
+ Suspended: {
42
+ color: string;
43
+ };
44
+ };
45
+ label: string;
46
+ };
47
+ date_joined: {
48
+ columnType: string;
49
+ inputFormat: string;
50
+ outputFormat: string;
51
+ label: string;
52
+ };
53
+ last_activity: {
54
+ columnType: string;
55
+ inputFormat: string;
56
+ outputFormat: string;
57
+ label: string;
58
+ };
59
+ photo: {
60
+ columnType: string;
61
+ label: string;
62
+ imageBorderRadius: {
63
+ topLeft: Dim<"px">;
64
+ topRight: Dim<"px">;
65
+ bottomLeft: Dim<"px">;
66
+ bottomRight: Dim<"px">;
67
+ };
68
+ };
69
+ };
70
+ export declare const DEFAULT_TABLE_KEYS: string[];
71
+ export declare const CLEARED_TABLE_COLUMNS: Record<string, undefined>;
@@ -1,15 +1,39 @@
1
- import type { GridDropInfo } from "./types.js";
1
+ import type { GridDropInfo, RectLike } from "./types.js";
2
2
  import type { RootStore } from "../../lib/internal-details/lib/root-store.js";
3
3
  import type { DragAndDropManager } from "../features/drag-and-drop-store.js";
4
+ import type { RuntimeWidgetMeta } from "../features/runtime-widgets-manager.js";
4
5
  import type { ClientRect } from "@dnd-kit/core";
6
+ import type { Padding } from "@superblocksteam/library-shared/types";
7
+ type GridInfo = {
8
+ targetColumns: number;
9
+ tileWidth: number;
10
+ tileHeight: number;
11
+ targetHeightGU: number;
12
+ targetPadding: Padding;
13
+ };
5
14
  export declare class GridManager {
6
15
  private root;
7
16
  private dnd;
8
17
  constructor(root: RootStore, dnd: DragAndDropManager);
9
18
  private get draggedInstanceId();
10
19
  refreshPositionsAndGetDropConstraints(): GridDropInfo;
20
+ getGridInfo(runtimeWidget: RuntimeWidgetMeta, targetRect: ClientRect): GridInfo | null;
11
21
  private get lazyTargetGridInfo();
12
- private getGridPositionInfo;
22
+ private getGridPositionFromRect;
23
+ getGridPositionInfo({ positionRect, targetRect, targetGridInfo, includePadding, }: {
24
+ positionRect: RectLike<number>;
25
+ targetRect: ClientRect;
26
+ targetGridInfo: GridInfo;
27
+ includePadding: boolean;
28
+ }): {
29
+ xGU: number;
30
+ yGU: number;
31
+ widthGU: number;
32
+ heightGU: number;
33
+ tileWidth: number;
34
+ tileHeight: number;
35
+ targetPadding: import("@superblocksteam/library-shared/types").Spacing;
36
+ };
13
37
  get lazyChildGridPositionsGU(): Record<`I-${string}`, {
14
38
  xGU: number;
15
39
  yGU: number;
@@ -17,7 +41,7 @@ export declare class GridManager {
17
41
  heightGU: number;
18
42
  tileWidth: number;
19
43
  tileHeight: number;
20
- targetPadding: any;
44
+ targetPadding: import("@superblocksteam/library-shared/types").Spacing;
21
45
  } | null>;
22
46
  get lazyActiveRectGU(): {
23
47
  xGU: number;
@@ -26,8 +50,9 @@ export declare class GridManager {
26
50
  heightGU: number;
27
51
  tileWidth: number;
28
52
  tileHeight: number;
29
- targetPadding: any;
53
+ targetPadding: import("@superblocksteam/library-shared/types").Spacing;
30
54
  } | null;
31
55
  get lazyIsFreePos(): boolean;
32
56
  adjustDragRectForCollisions(collidingRect: ClientRect | null): ClientRect | null;
33
57
  }
58
+ export {};
@@ -3,6 +3,9 @@ export declare const WithLayoutContainerTypes: Set<string>;
3
3
  export declare const VStackLikeContainerTypes: Set<string>;
4
4
  export declare const HStackLikeContainerTypes: Set<string>;
5
5
  export declare const StackLikeContainerTypes: Set<string>;
6
+ declare const detachedComponentTypeList: readonly ["SbModal", "SbSlideout"];
7
+ export type DetachedComponentType = (typeof detachedComponentTypeList)[number];
8
+ export declare const DetachedComponentTypes: Set<string>;
6
9
  export declare const isDragAndDropTypeValid: ({ draggedType, dropTargetType, dropTargetEmpty, isDraggingNewComponent, }: {
7
10
  draggedType: string;
8
11
  dropTargetType: string;
@@ -11,6 +14,7 @@ export declare const isDragAndDropTypeValid: ({ draggedType, dropTargetType, dro
11
14
  }) => boolean;
12
15
  export declare const isTypeDroppable: (type: string) => boolean;
13
16
  export declare const isTypeDraggable: (type: string) => boolean;
17
+ export declare const isContentDraggable: (type: string) => boolean;
14
18
  export declare function shouldWrapInSectionAndColumn(type: string, parentType: string | undefined): boolean;
15
19
  export declare const filterSafeStackDimensionProperties: (existingProps: {
16
20
  width?: Dim;
@@ -26,13 +30,10 @@ export declare const filterSafeGridDimensionProperties: (existingProps: {
26
30
  width?: PropertyInfo;
27
31
  height?: PropertyInfo;
28
32
  };
29
- export declare const defaultSizeForComponent: (componentType: string, isFreeform: boolean, activeRectGUWidth?: number) => {
30
- height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
31
- width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"columns">>;
32
- } | {
33
- height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
34
- width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
35
- } | {
36
- height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
37
- width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fill">>;
38
- };
33
+ export declare const defaultSizeForComponent: (componentType: string, isFreeform: boolean, draggedDimensions?: {
34
+ widthGU?: number;
35
+ heightGU?: number;
36
+ widthPx?: number;
37
+ heightPx?: number;
38
+ }) => Record<string, PropertyInfo>;
39
+ export {};
@@ -1,6 +1,5 @@
1
- export type ConnectionStatus = "disconnected" | "connecting" | "connected";
1
+ export type ConnectionStatus = "pre-init" | "disconnected" | "connecting" | "connected";
2
2
  declare class ConnectionManager {
3
- socketInitialized: boolean;
4
3
  connectionStatus: ConnectionStatus;
5
4
  constructor();
6
5
  initializeSocket(): void;
@@ -7,11 +7,17 @@ declare class InteractionLayerManager {
7
7
  * if set to the detached component id, the inteactoin layer will be disabled on the page
8
8
  */
9
9
  activeRootInstanceId: SbInstance | undefined;
10
- sourceIdElements: Map<HTMLElement, `SB-${string}`>;
10
+ sourceIdElements: Map<`I-${string}`, {
11
+ sourceId: SbElement;
12
+ element: HTMLElement;
13
+ }>;
11
14
  constructor();
12
15
  setActiveRootInstanceId(rootInstanceId: SbInstance | undefined): void;
13
- setSourceIdElement(element: HTMLElement, sourceId: SbElement): void;
14
- removeSourceIdElement(element: HTMLElement): void;
15
- getSourceIdElements(sourceId: SbElement): HTMLElement[];
16
+ setSourceIdElement(el: HTMLElement, sourceId: SbElement): undefined | SbInstance;
17
+ removeSourceIdElement(instanceId: SbInstance): void;
18
+ getSourceIdElements(sourceId: SbElement): Array<{
19
+ element: HTMLElement;
20
+ instanceId: SbInstance;
21
+ }>;
16
22
  }
17
23
  export default InteractionLayerManager;
@@ -41,13 +41,23 @@ declare class OperationManager {
41
41
  deleteComponents(sourceIds: SbElement[]): void;
42
42
  acknowledgeEditOperation(operation: EditOperationPayload<EditOperationType>): void;
43
43
  writeRuntimeProperties(sourceId: SbElement, transactionId: string, updates: Record<string, PropertyInfo<unknown>>): void;
44
- setWidgetProperties(sourceId: SbElement, properties: Record<string, PropertyInfo<unknown>>, callback?: () => void): void;
45
- setWidgetProperty(sourceId: SbElement, property: string, value: PropertyInfo<unknown>, callback?: () => void): void;
44
+ setWidgetProperties({ sourceId, properties, callback, }: {
45
+ sourceId: SbElement;
46
+ properties: Record<string, PropertyInfo<unknown>>;
47
+ callback?: () => void;
48
+ }): void;
49
+ setWidgetProperty({ sourceId, property, value, callback, }: {
50
+ sourceId: SbElement;
51
+ property: string;
52
+ value: PropertyInfo<unknown>;
53
+ callback?: () => void;
54
+ }): void;
46
55
  renameWidget(params: {
47
56
  sourceId: SbElement;
48
57
  newName: string;
49
58
  }): void;
50
59
  ensureFilesSynced(): Promise<void>;
51
60
  generateSourceId(): `SB-${string}`;
61
+ private canDeleteComponents;
52
62
  }
53
63
  export default OperationManager;
@@ -9,6 +9,7 @@ declare class PropertiesPanelManager {
9
9
  private propertiesDefinitions;
10
10
  private propertiesPanelTrackerDisposer;
11
11
  private nonDynamicPropertyPanels;
12
+ private _propertyLookupCache;
12
13
  constructor(runtimeEntitiesManager: RuntimeEntitiesManager, entityManager: IEntityManager);
13
14
  getPropertiesPanel(scopeId: string, instanceId: SbInstance): PropertiesPanelDefinition;
14
15
  trackPropertiesPanel(scopeId: string, instanceId: SbInstance, sourceId: string): void;
@@ -17,15 +18,14 @@ declare class PropertiesPanelManager {
17
18
  getNonDynamicPropertiesPanels(): {
18
19
  [k: string]: PropertiesPanelDefinition;
19
20
  };
20
- private _propertyLookupCache;
21
- private cachedPropertyLookupForType;
22
- private getPropertyForPath;
23
21
  computeSideEffectsForPropertyUpdate(payload: {
24
22
  sourceId: SbElement;
25
23
  updates: Record<string, PropertyInfo<unknown>>;
26
- }): Record<string, {
24
+ }): Record<`SB-${string}`, {
27
25
  props?: Record<string, PropertyInfo<unknown>>;
28
26
  meta?: Record<string, unknown>;
29
27
  }>;
28
+ private cachedPropertyLookupForType;
29
+ private getPropertyForPath;
30
30
  }
31
31
  export default PropertiesPanelManager;
@@ -34,6 +34,7 @@ export declare class ResizingManager {
34
34
  private root;
35
35
  private _activeResizes;
36
36
  constructor(root: RootStore);
37
+ get activeResize(): ResizeState | null | undefined;
37
38
  startResizing(dragStartX: number, dragStartY: number, instanceId: SbInstance, position: string): void;
38
39
  private calculatePotentialCollisions;
39
40
  private calculateDimension;
@@ -1,4 +1,8 @@
1
1
  import type { SbInstance } from "@superblocksteam/library-shared/types";
2
2
  export declare const getBoundingBoxForWidget: (instanceId: SbInstance) => DOMRect | undefined;
3
+ export declare const getFirstInstanceElement: (element: HTMLElement) => {
4
+ element: HTMLElement;
5
+ instanceId: SbInstance;
6
+ } | null;
3
7
  export declare const getWidgetNode: (instanceId: SbInstance) => HTMLElement | null;
4
8
  export declare const getIsComponentInInteractionLayer: (instanceId: SbInstance | null) => boolean | null;
@@ -1,27 +1,10 @@
1
- import type { EditOperationType, EditOperations, ReparentRequest, CreateRequest, SetPropertyRequest, SetPropertiesRequest, BatchUpdateRequest, ApiUpdateRequest, AddEntityRequest, UpdateEntityRequest, UpdateThemeRequest, DeleteEntityRequest, DeleteRequest, DeletePropertiesRequest, RenameElementRequest } from "@superblocksteam/library-shared/types";
2
- type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${Capitalize<CamelCase<Tail>>}` : S extends `${infer Head}:${infer Tail}` ? `${Head}${Capitalize<CamelCase<Tail>>}` : S;
3
- type IOperationAPI = {
4
- [K in EditOperationType as CamelCase<K>]: (payload: Parameters<EditOperations[K]>[0]) => Promise<ReturnType<EditOperations[K]> | undefined>;
5
- };
6
- declare class OperationAPI implements IOperationAPI {
1
+ declare class OperationAPI {
7
2
  private readonly serverUrl;
8
3
  private socket;
4
+ private retryAttempts;
9
5
  constructor(serverUrl: string);
10
6
  connect(peerId: string, userId?: string): Promise<void>;
11
- editorMoveComponent: (payload: ReparentRequest) => Promise<void | undefined>;
12
- editorCreateComponent: (payload: CreateRequest) => Promise<`SB-${string}` | undefined>;
13
- editorDeleteComponents: (payload: DeleteRequest) => Promise<void | undefined>;
14
- editorSetProperty: (payload: SetPropertyRequest) => Promise<void | undefined>;
15
- editorSetProperties: (payload: SetPropertiesRequest) => Promise<any>;
16
- editorDeleteProperties: (payload: DeletePropertiesRequest) => Promise<void | undefined>;
17
- editorBatchUpdate: (payload: BatchUpdateRequest) => Promise<unknown[] | undefined>;
18
- apiUpdate: (payload: ApiUpdateRequest) => Promise<import("@superblocksteam/library-shared/types").ApiUpdateResponse | undefined>;
19
- editorAddEntity: (payload: AddEntityRequest) => Promise<void | undefined>;
20
- editorUpdateEntity: (payload: UpdateEntityRequest) => Promise<void | undefined>;
21
- editorDeleteEntity: (payload: DeleteEntityRequest) => Promise<void | undefined>;
22
- editorRenameElement: (payload: RenameElementRequest) => Promise<void | undefined>;
23
- editorUpdateTheme: (payload: UpdateThemeRequest) => Promise<void | undefined>;
24
- ensureFilesSynced: () => Promise<string | undefined>;
7
+ ensureFilesSynced: () => Promise<void>;
25
8
  }
26
9
  declare const _default: OperationAPI;
27
10
  export default _default;
@@ -0,0 +1 @@
1
+ export default function Widgets(): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { type ReactNode, type CSSProperties } from "react";
2
+ interface ComponentStyleContextValue {
3
+ setStyle: (style: CSSProperties) => void;
4
+ getFallbackStyle: () => CSSProperties;
5
+ }
6
+ export declare function ComponentSuspenseStyleProvider({ children, }: {
7
+ children: ReactNode;
8
+ }): import("react").JSX.Element;
9
+ export declare function useComponentSuspenseStyle(): ComponentStyleContextValue;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const CSS_CLASSES: {
2
+ readonly SUSPENSE_FALLBACK: "sb-suspense-fallback";
3
+ readonly ANCHOR_NAME: "sb-anchor-name";
4
+ };
@@ -1,7 +1,6 @@
1
1
  import type { BindingIdentifier } from "@superblocksteam/library-shared/types";
2
2
  export declare const getNormalizedIdInfo: (params: {
3
3
  bind: BindingIdentifier | undefined;
4
- propsName: string | undefined;
5
4
  fallbackScopeId: string;
6
5
  }) => {
7
6
  name: string | undefined;
@@ -2,13 +2,13 @@ import type { ObserveListener } from "./deep-observe.js";
2
2
  import type { Name } from "./names.js";
3
3
  import type { ValidateFn } from "../../../user-facing/properties-panel/validators.js";
4
4
  import type { SbEventFlow } from "../../../user-facing/sb-event-flow.js";
5
- import type { BindingString, ComputedProperty, Dim, DimModes } from "@superblocksteam/library-shared";
6
- import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
5
+ import type { BindingString, ComputedProperty } from "@superblocksteam/library-shared";
6
+ import type { SbElement, SbInstance, ValidationState } from "@superblocksteam/library-shared/types";
7
7
  export type EntityOutputProp = Exclude<null | undefined | string | number | boolean | object | bigint | any[], BindingString | EntityDerivedProp<any[]>>;
8
- export type EntityDerivedProp<ARGS extends any[] = any[]> = (this: Readonly<Entity>, state: Readonly<ScopedState>, ...args: ARGS) => EntityOutputProp;
9
- export type Executable<ARGS extends any[] = any[]> = (this: Entity, state: ScopedState, ...args: ARGS) => void;
8
+ export type EntityDerivedProp<ARGS extends any[] = any[]> = (this: Readonly<Entity>, state?: Readonly<ScopedState>, ...args: ARGS) => EntityOutputProp;
9
+ export type Executable<ARGS extends any[] = any[]> = (this: Entity, state?: ScopedState, ...args: ARGS) => void;
10
10
  export type ValueInputProp<T = EntityOutputProp> = T | EntityDerivedProp | BindingString | ComputedProperty<T>;
11
- export type SingleInputProp<T = EntityOutputProp> = ValueInputProp<T> | SbEventFlow | Dim<DimModes>;
11
+ export type SingleInputProp<T = EntityOutputProp> = ValueInputProp<T> | SbEventFlow;
12
12
  export type NestedInputProp<T> = T extends object ? {
13
13
  [K in keyof T]: SingleInputProp<T[K]> | NestedInputProp<T[K]>;
14
14
  } : never;
@@ -36,6 +36,7 @@ export type InternalScope = {
36
36
  };
37
37
  export interface IEntityManager {
38
38
  getFullState: Record<string, Entity>;
39
+ getValidationState: Record<string, ValidationState>;
39
40
  getScopeName(scopeId: string): string;
40
41
  getState(scopeId: string): ScopedState;
41
42
  getEntity(scopeId: string, name: Name): Entity;
@@ -86,6 +87,7 @@ export interface IEntityManager {
86
87
  name: Name;
87
88
  func: Executable<ARGS>;
88
89
  args?: ARGS;
90
+ excludeState?: boolean;
89
91
  }): void;
90
92
  computeValue<T>(params: {
91
93
  scopeId: ScopeId;
@@ -6,6 +6,7 @@ export type ComputeParams<ARGS extends any[] = any[]> = {
6
6
  path?: string;
7
7
  func: EntityDerivedProp<ARGS>;
8
8
  args?: ARGS;
9
+ excludeState?: boolean;
9
10
  };
10
11
  export interface ComputeEngine {
11
12
  compute(params: ComputeParams): EntityOutputProp;
@@ -15,6 +16,6 @@ declare class EvalComputeEngine implements ComputeEngine {
15
16
  compute({ snapshot, entityName, func, args, path }: ComputeParams): any;
16
17
  }
17
18
  declare class DirectComputeEngine implements ComputeEngine {
18
- compute({ snapshot, entityName, func, args, path }: ComputeParams): EntityOutputProp;
19
+ compute({ snapshot, entityName, func, args, path, excludeState, }: ComputeParams): EntityOutputProp;
19
20
  }
20
21
  export { EvalComputeEngine, DirectComputeEngine };
@@ -1,4 +1,4 @@
1
- import { type SbElement, type SbInstance } from "@superblocksteam/library-shared/types";
1
+ import { type ValidationState, type SbElement, type SbInstance } from "@superblocksteam/library-shared/types";
2
2
  import { type Name } from "./names.js";
3
3
  import type { IEntityManager, Executable, SingleInputProp, InternalScope, ScopedState, ScopeId, Entity, InputProp } from "./base-entity-manager.js";
4
4
  import type { ObserveListener } from "./deep-observe.js";
@@ -9,6 +9,7 @@ export declare class EntityManager implements IEntityManager {
9
9
  readonly componentRegistry: ComponentRegistry;
10
10
  private state;
11
11
  private atoms;
12
+ private validationCache;
12
13
  private dirComputeEngine;
13
14
  private evalComputeEngine;
14
15
  constructor(componentRegistry: ComponentRegistry, options?: {
@@ -18,6 +19,8 @@ export declare class EntityManager implements IEntityManager {
18
19
  getEntityById(scopeId: string, id: SbInstance): Entity;
19
20
  getState(scopeId: string): ScopedState;
20
21
  getScopeName(scopeId: string): string;
22
+ setValidationState(entityId: string, property: string, state: ValidationState): void;
23
+ get getValidationState(): Record<string, ValidationState>;
21
24
  get getFullState(): Record<string, Entity>;
22
25
  private getAccessibleScopes;
23
26
  getScope(scopeId: string): InternalScope;
@@ -44,6 +47,13 @@ export declare class EntityManager implements IEntityManager {
44
47
  name: Name;
45
48
  scopeId: string;
46
49
  }): void;
50
+ deleteProperty(params: {
51
+ scopeId: string;
52
+ name: Name;
53
+ prop: string;
54
+ }): void;
55
+ private deleteObsoleteNestedProperties;
56
+ private getNestedPropertyPaths;
47
57
  deleteEntityById(params: {
48
58
  scopeId: string;
49
59
  entityId: string;
@@ -70,6 +80,7 @@ export declare class EntityManager implements IEntityManager {
70
80
  scopeId: string;
71
81
  name: Name;
72
82
  func: Executable;
83
+ excludeState?: boolean;
73
84
  args?: ARGS;
74
85
  }): void;
75
86
  computeValue<T>(params: {
@@ -20,6 +20,7 @@ declare class ApiManager {
20
20
  api: DeleteMeLibraryApi;
21
21
  scopeId: string;
22
22
  }>): void;
23
+ setApisLoaded(): void;
23
24
  setApiDepCandidates(apiName: string, deps: string[]): void;
24
25
  setApiReferences(apiName: string, deps: string[]): void;
25
26
  updateApi(api: DeleteMeLibraryApi, scopeId: string): void;
@@ -2,7 +2,6 @@ import { ViewMode } from "@superblocksteam/shared";
2
2
  import type { ApiV2ExecutionRequest, ApiV2ExecutionResponse, ExecutionResponse, StreamEvent } from "../types.js";
3
3
  import type { DeleteMeLibraryApi } from "@superblocksteam/library-shared/types";
4
4
  import type { Agent, ApiResponseType } from "@superblocksteam/shared";
5
- export declare function runApi(api: DeleteMeLibraryApi, inputs: Record<string, unknown>, orchestratorUrl: string, token: string, accessToken: string): Promise<unknown>;
6
5
  export type ExecuteV2ApiParams = {
7
6
  body: ApiV2ExecutionRequest;
8
7
  api: DeleteMeLibraryApi;
@@ -0,0 +1,10 @@
1
+ import type { CSSProperties, ReactNode } from "react";
2
+ interface Props {
3
+ children?: ReactNode;
4
+ style?: () => CSSProperties;
5
+ }
6
+ /**
7
+ * Default fallback component displayed while components are suspended.
8
+ */
9
+ export declare function SuspenseFallback({ style }: Props): import("react").JSX.Element;
10
+ export {};
@@ -114,6 +114,9 @@ export type FromParentToChildMessageTypesMap = {
114
114
  "sb-retrieve-property-panel-props": {
115
115
  sourceId: string;
116
116
  };
117
+ "sb-global-sync": {
118
+ global: Record<string, unknown>;
119
+ };
117
120
  "parent-action-batch": PayloadAction<unknown>[];
118
121
  click: void;
119
122
  "register-keypress": {
@@ -154,6 +157,8 @@ export type FromParentToChildMessageTypesMap = {
154
157
  parent: SourceLocation;
155
158
  scopeName: string;
156
159
  baseProperties?: Record<string, PropertyInfo>;
160
+ skipTriggerCreation?: boolean;
161
+ otherComponentsUpdates?: Record<SbElement, Record<string, PropertyInfo>>;
157
162
  };
158
163
  };
159
164
  export type FromParentToChildMessageTypes = keyof FromParentToChildMessageTypesMap;
@@ -1,10 +1,11 @@
1
1
  import type { IdentifierInfo } from "./lib/features/name-manager.js";
2
2
  import type { ChildFunction } from "../../edit-mode/features/runtime-widgets-manager.js";
3
- declare const ReactiveComponent: import("react").FunctionComponent<{
3
+ type ReactiveComponentProps = {
4
4
  children: React.ReactNode | ChildFunction;
5
5
  Component: React.FC<any>;
6
6
  widgetProps: Record<string, unknown>;
7
7
  showErrors?: boolean;
8
8
  identifier: IdentifierInfo;
9
- }>;
10
- export default ReactiveComponent;
9
+ };
10
+ declare const WrappedReactiveComponent: (props: ReactiveComponentProps) => import("react").JSX.Element;
11
+ export default WrappedReactiveComponent;
@@ -0,0 +1 @@
1
+ export declare function removeBindings(props: Record<string, unknown>): Record<string, unknown>;
@@ -2,6 +2,7 @@ import type { UserAccessibleTheme, Theme as BaseTheme } from "@superblocksteam/l
2
2
  export declare const GlobalScope: import("react").FC<import("react").JSX.IntrinsicAttributes & {
3
3
  children: React.ReactNode;
4
4
  }>;
5
+ export declare const updateGlobalScope: (global: Record<string, unknown>) => void;
5
6
  export type AppTheme = BaseTheme;
6
7
  export declare const Theme: UserAccessibleTheme;
7
8
  export declare const Global: any;