@superblocksteam/library 2.0.3-next.83 → 2.0.3-next.85

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 (26) hide show
  1. package/dist/{allPaths-CrW5qHJY.js → allPaths-DTjF_C5n.js} +2 -2
  2. package/dist/{allPaths-CrW5qHJY.js.map → allPaths-DTjF_C5n.js.map} +1 -1
  3. package/dist/{allPaths-Cr6ygq5z.js → allPaths-DpiTnxa6.js} +2 -2
  4. package/dist/{allPaths-Cr6ygq5z.js.map → allPaths-DpiTnxa6.js.map} +1 -1
  5. package/dist/{allPathsLoader-CB6RpBm8.js → allPathsLoader-BP4zIRze.js} +3 -3
  6. package/dist/{allPathsLoader-CB6RpBm8.js.map → allPathsLoader-BP4zIRze.js.map} +1 -1
  7. package/dist/{allPathsLoader-Die2eFiY.js → allPathsLoader-BvaaZMn9.js} +3 -3
  8. package/dist/{allPathsLoader-Die2eFiY.js.map → allPathsLoader-BvaaZMn9.js.map} +1 -1
  9. package/dist/{index-C7S72F_O.js → index-DKNEuHsi.js} +187 -184
  10. package/dist/{index-C7S72F_O.js.map → index-DKNEuHsi.js.map} +1 -1
  11. package/dist/index.css +0 -34
  12. package/dist/index.js +2 -2
  13. package/dist/{splitPathsBySizeLoader-Byhb9_SF.js → splitPathsBySizeLoader-CELIsf7I.js} +2 -2
  14. package/dist/{splitPathsBySizeLoader-Byhb9_SF.js.map → splitPathsBySizeLoader-CELIsf7I.js.map} +1 -1
  15. package/dist/{splitPathsBySizeLoader-v13UHQHK.js → splitPathsBySizeLoader-psMb-p7U.js} +2 -2
  16. package/dist/{splitPathsBySizeLoader-v13UHQHK.js.map → splitPathsBySizeLoader-psMb-p7U.js.map} +1 -1
  17. package/dist-types/edit-mode/dnd/droppable-widget.d.ts +1 -0
  18. package/dist-types/edit-mode/dnd/grid-store.d.ts +2 -0
  19. package/dist-types/edit-mode/edit-wrapper.d.ts +2 -1
  20. package/dist-types/edit-mode/features/resizing-store.d.ts +5 -2
  21. package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +1 -0
  22. package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +1 -0
  23. package/dist-types/lib/internal-details/sb-wrapper.d.ts +4 -1
  24. package/dist-types/lib/user-facing/components/grid/index.d.ts +1 -1
  25. package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +1 -0
  26. package/package.json +2 -2
package/dist/index.css CHANGED
@@ -34429,37 +34429,3 @@ b {
34429
34429
  [data-disabled] ._RightSlot_hv73e_79 {
34430
34430
  color: var(--mauve-8);
34431
34431
  }
34432
- /* // Height & width are set using inline styles for performance
34433
- const DotGridLayer = styled.div`
34434
- position: absolute;
34435
- pointer-events: none;
34436
- left: -1px;
34437
- top: -1px;
34438
- height: 100%;
34439
- width: 100%;
34440
- // animate the opacity to 1
34441
- transition: opacity 0.1s ease-in-out;
34442
-
34443
- background-image: radial-gradient(
34444
- circle at 1px 1px,
34445
- rgba(128, 128, 128, 0.3) 1px,
34446
- transparent 0
34447
- );
34448
- backgroundSize: `${props.parentColumnWidth}px ${props.parentRowHeight}px`,
34449
- `; */
34450
-
34451
- ._dotGridLayer_35nlx_20 {
34452
- position: absolute;
34453
- pointer-events: none;
34454
- left: -1px;
34455
- top: -1px;
34456
- height: 100%;
34457
- width: 100%;
34458
- transition: opacity 0.1s ease-in-out;
34459
- background-image: radial-gradient(
34460
- circle at 1px 1px,
34461
- rgba(128, 128, 128, 0.3) 1px,
34462
- transparent 0
34463
- );
34464
- background-size: 12px 12px;
34465
- }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { T as clientExports } from "./index-C7S72F_O.js";
2
- import { U, V, O, W, X, Y, Z, $, a0, a1, y, a2, a3, a4, a5, a6, R, a7, P, a8, a9, aa, ab, Q, x, S, o, d, e, m, q, l, L, z, t, u, f, n, i, g, y as y2, c, j, s, k, h, w, v, A, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, B, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, K, aR, aS, aT, aU, aV, aW, E, aX, aY, aZ, a_, a$, G, b0, b1, C, b2, b3, b4, r, J, H, b5, b6, b7, N, D, F, b8, b9, 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, M, bF } from "./index-C7S72F_O.js";
1
+ import { T as clientExports } from "./index-DKNEuHsi.js";
2
+ import { U, V, O, W, X, Y, Z, $, a0, a1, y, a2, a3, a4, a5, a6, R, a7, P, a8, a9, aa, ab, Q, x, S, o, d, e, m, q, l, L, z, t, u, f, n, i, g, y as y2, c, j, s, k, h, w, v, A, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, B, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, K, aR, aS, aT, aU, aV, aW, E, aX, aY, aZ, a_, a$, G, b0, b1, C, b2, b3, b4, r, J, H, b5, b6, b7, N, D, F, b8, b9, 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, M, bF } from "./index-DKNEuHsi.js";
3
3
  const createRoot = clientExports.createRoot;
4
4
  export {
5
5
  U as Await,
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-C7S72F_O.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-DKNEuHsi.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-Byhb9_SF.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-CELIsf7I.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-Byhb9_SF.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-CELIsf7I.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,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-C7S72F_O.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-DKNEuHsi.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-v13UHQHK.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-psMb-p7U.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-v13UHQHK.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-psMb-p7U.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]}
@@ -3,6 +3,7 @@ import type { SbInstance } from "@superblocksteam/library-shared/types";
3
3
  declare const DroppableWidget: ((props: {
4
4
  instanceId: SbInstance;
5
5
  children: React.ReactNode;
6
+ dropTargetRef?: React.RefObject<HTMLElement | null>;
6
7
  }) => React.JSX.Element) & {
7
8
  displayName: string;
8
9
  };
@@ -17,6 +17,7 @@ export declare class GridManager {
17
17
  heightGU: number;
18
18
  tileWidth: number;
19
19
  tileHeight: number;
20
+ targetPadding: any;
20
21
  } | null>;
21
22
  get lazyActiveRectGU(): {
22
23
  xGU: number;
@@ -25,6 +26,7 @@ export declare class GridManager {
25
26
  heightGU: number;
26
27
  tileWidth: number;
27
28
  tileHeight: number;
29
+ targetPadding: any;
28
30
  } | null;
29
31
  get lazyIsFreePos(): boolean;
30
32
  adjustDragRectForCollisions(collidingRect: ClientRect | null): ClientRect | null;
@@ -7,11 +7,12 @@ export declare const createAnchorNameStyle: (props: {
7
7
  }) => React.CSSProperties | undefined;
8
8
  declare const EditWrapper: React.FunctionComponent<{
9
9
  type: string;
10
- isContainer: boolean;
11
10
  children: React.ReactNode[] | ChildFunction;
12
11
  widgetProps: Record<string, unknown>;
13
12
  isCustomComponent: boolean;
14
13
  component: React.FC<any>;
15
14
  identifier: IdentifierInfo;
15
+ isDroppable: boolean;
16
+ dropTargetRef?: React.RefObject<HTMLElement | null>;
16
17
  }>;
17
18
  export default EditWrapper;
@@ -1,5 +1,6 @@
1
1
  import { Dim } from "@superblocksteam/library-shared";
2
- import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
2
+ import type { RootStore } from "../../lib/internal-details/lib/root-store.js";
3
+ import type { SbElement, SbInstance, Padding } from "@superblocksteam/library-shared/types";
3
4
  type GU = {
4
5
  xGU: number;
5
6
  yGU: number;
@@ -27,10 +28,12 @@ type ResizeState = {
27
28
  potentialCollisions: Record<SbInstance, GU>;
28
29
  widgetGU: GU | null;
29
30
  isApplyingResize: boolean;
31
+ parentPadding?: Padding;
30
32
  };
31
33
  export declare class ResizingManager {
34
+ private root;
32
35
  private _activeResizes;
33
- constructor();
36
+ constructor(root: RootStore);
34
37
  startResizing(dragStartX: number, dragStartY: number, instanceId: SbInstance, position: string): void;
35
38
  private calculatePotentialCollisions;
36
39
  private calculateDimension;
@@ -75,6 +75,7 @@ declare class RuntimeEntitiesManager {
75
75
  heightGU: number;
76
76
  } | null;
77
77
  isApplyingResize: boolean;
78
+ parentPadding?: import("@superblocksteam/library-shared/types").Padding;
78
79
  })[];
79
80
  getScopeIdForSourceId(sourceId: SbElement): string | undefined;
80
81
  applySideEffects(changes: Record<string, Record<string, unknown>>, scopeId: string): void;
@@ -5,6 +5,7 @@ import type * as React from "react";
5
5
  export type Type = {
6
6
  isSb: symbol;
7
7
  sbType: string;
8
+ isDroppable?: boolean;
8
9
  hideInRightClickMenu?: boolean;
9
10
  } & React.ComponentType<any>;
10
11
  export declare class ComponentRegistry implements ComponentRegistryShareState {
@@ -1,7 +1,10 @@
1
1
  import React from "react";
2
2
  import type { ExternalProps, InternalProps, PropertiesDefinition, RawPropsToExternal } from "../user-facing/properties-panel/props-builder.js";
3
3
  import type { AnonymousSbEntity } from "@superblocksteam/library-shared/types";
4
- export declare const registerSbComponent: <PD extends PropertiesDefinition, EP extends ExternalProps<PD> = ExternalProps<PD>, IP extends InternalProps<PD> = InternalProps<PD>>(type: string, config: {
4
+ export type DropTargetProps = {
5
+ dropTargetRef?: React.RefObject<HTMLDivElement>;
6
+ };
7
+ export declare const registerSbComponent: <PD extends PropertiesDefinition, EP extends ExternalProps<PD> = ExternalProps<PD>, IP extends InternalProps<PD> & DropTargetProps = InternalProps<PD> & DropTargetProps>(type: string, config: {
5
8
  container?: boolean;
6
9
  customComponent?: boolean;
7
10
  propertiesDefinition: PD;
@@ -31,6 +31,6 @@ declare const _propertiesDefinition: {
31
31
  collapseWhenInvisible: Prop<boolean, false>;
32
32
  }>;
33
33
  };
34
- type GridProps = InternalProps<typeof _propertiesDefinition>;
34
+ export type GridProps = InternalProps<typeof _propertiesDefinition>;
35
35
  export declare const InternalGrid: ({ children, ...props }: GridProps) => React.JSX.Element;
36
36
  export {};
@@ -29,6 +29,7 @@ type ModalComponentProps = {
29
29
  columns?: number;
30
30
  rows?: number;
31
31
  rowSize?: number;
32
+ dropTargetRef?: React.RefObject<HTMLElement | null>;
32
33
  };
33
34
  /** the modal is open/close by setting isOpen to true/false
34
35
  **/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.3-next.83",
3
+ "version": "2.0.3-next.85",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -32,7 +32,7 @@
32
32
  "@react-hook/resize-observer": "1.2.6",
33
33
  "@superblocksteam/fast-deep-equal": "3.1.4",
34
34
  "@superblocksteam/iso-currency": "2.0.0",
35
- "@superblocksteam/library-shared": "2.0.3-next.83",
35
+ "@superblocksteam/library-shared": "2.0.3-next.85",
36
36
  "@superblocksteam/shared": "0.8939.0",
37
37
  "antd": "4.24.15",
38
38
  "apca-w3": "^0.1.9",