@superblocksteam/library 2.0.6-next.63 → 2.0.6-next.65

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 (24) hide show
  1. package/dist/{allPaths-ajbt0_gi.js → allPaths-BQOR0DpR.js} +2 -2
  2. package/dist/{allPaths-ajbt0_gi.js.map → allPaths-BQOR0DpR.js.map} +1 -1
  3. package/dist/{allPaths-Ce9f_aP2.js → allPaths-oqiG9tW1.js} +2 -2
  4. package/dist/{allPaths-Ce9f_aP2.js.map → allPaths-oqiG9tW1.js.map} +1 -1
  5. package/dist/{allPathsLoader-BJEkL2r1.js → allPathsLoader-BIZXHySS.js} +3 -3
  6. package/dist/{allPathsLoader-C2Tqar3Z.js.map → allPathsLoader-BIZXHySS.js.map} +1 -1
  7. package/dist/{allPathsLoader-C2Tqar3Z.js → allPathsLoader-DDPKl8IE.js} +3 -3
  8. package/dist/{allPathsLoader-BJEkL2r1.js.map → allPathsLoader-DDPKl8IE.js.map} +1 -1
  9. package/dist/{devtools-consolidated-DN1RfzBi.js → devtools-consolidated-CY1Rlgqu.js} +2 -2
  10. package/dist/{devtools-consolidated-DN1RfzBi.js.map → devtools-consolidated-CY1Rlgqu.js.map} +1 -1
  11. package/dist/{index-KXupba_S.js → index-YI5hRNJq.js} +13526 -13437
  12. package/dist/{index-KXupba_S.js.map → index-YI5hRNJq.js.map} +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/{splitPathsBySizeLoader-Dy3JvLCQ.js → splitPathsBySizeLoader-BwnfwOND.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-Dy3JvLCQ.js.map → splitPathsBySizeLoader-BwnfwOND.js.map} +1 -1
  16. package/dist/{splitPathsBySizeLoader-CenR37aG.js → splitPathsBySizeLoader-Cxu41-5v.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-CenR37aG.js.map → splitPathsBySizeLoader-Cxu41-5v.js.map} +1 -1
  18. package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +5 -0
  19. package/dist-types/lib/internal-details/lib/root-store.d.ts +2 -0
  20. package/dist-types/lib/internal-details/lib/types.d.ts +31 -0
  21. package/dist-types/lib/internal-details/location-store.d.ts +18 -0
  22. package/dist-types/lib/internal-details/scope/global.d.ts +1 -1
  23. package/dist-types/lib/internal-details/scope/types.d.ts +2 -2
  24. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a0 as clientExports } from "./index-KXupba_S.js";
2
- import { a1, a2, Y, P, Q, a3, O, a4, a5, a6, a7, a8, a9, C, aa, ab, ac, ad, ae, $, af, W, ag, ah, ai, aj, Z, B, S, s, d, e, q, u, n, R, D, w, x, f, i, g, C as C2, c, k, v, l, h, z, y, A, ak, al, am, an, ao, T, 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, E, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, N, aZ, a_, a$, b0, b1, b2, H, b3, b4, b5, b6, b7, K, b8, b9, F, ba, bb, bc, r, M, L, bd, be, bf, X, G, J, 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-KXupba_S.js";
1
+ import { a0 as clientExports } from "./index-YI5hRNJq.js";
2
+ import { a1, a2, Y, P, Q, a3, O, a4, a5, a6, a7, a8, a9, C, aa, ab, ac, ad, ae, $, af, W, ag, ah, ai, aj, Z, B, S, s, d, e, q, u, n, R, D, w, x, f, i, g, C as C2, c, k, v, l, h, z, y, A, ak, al, am, an, ao, T, 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, E, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, N, aZ, a_, a$, b0, b1, b2, H, b3, b4, b5, b6, b7, K, b8, b9, F, ba, bb, bc, r, M, L, bd, be, bf, X, G, J, 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-YI5hRNJq.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, I as IconSize } from "./index-KXupba_S.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-YI5hRNJq.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-Dy3JvLCQ.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-BwnfwOND.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-Dy3JvLCQ.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-BwnfwOND.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-KXupba_S.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-YI5hRNJq.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-CenR37aG.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-Cxu41-5v.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-CenR37aG.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-Cxu41-5v.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]}
@@ -28,6 +28,11 @@ export declare class SuperblocksEditorBridge {
28
28
  rejectPromise(callbackId: string, payload: unknown): void;
29
29
  canvasClicked(): void;
30
30
  registerContextMenuClick(sourceId: SbElement, clientX: number, clientY: number): void;
31
+ updateRoute(routeInfo: {
32
+ route: string;
33
+ path: string;
34
+ params: Record<string, unknown>;
35
+ }): void;
31
36
  socketError(message: string): void;
32
37
  private queueMessage;
33
38
  private sendImmediate;
@@ -1,3 +1,4 @@
1
+ import { LocationStore } from "../location-store.js";
1
2
  import ApiManager from "./features/api-store.js";
2
3
  import { ComponentRegistry } from "./features/component-registry.js";
3
4
  import { NameManager } from "./features/name-manager.js";
@@ -9,6 +10,7 @@ declare class RootStore {
9
10
  entityManager: IEntityManager;
10
11
  componentRegistry: ComponentRegistry;
11
12
  editStore?: EditStore;
13
+ locationStore: LocationStore;
12
14
  private editorRegisteredCallbacks;
13
15
  private apisLoaded;
14
16
  private pageScopeLoaded;
@@ -160,11 +160,22 @@ export type FromParentToChildMessageTypesMap = {
160
160
  skipTriggerCreation?: boolean;
161
161
  otherComponentsUpdates?: Record<SbElement, Record<string, PropertyInfo>>;
162
162
  };
163
+ /**
164
+ * Request a route change in the child
165
+ */
166
+ "route-change": {
167
+ route: string;
168
+ params?: Record<string, string>;
169
+ search?: Record<string, string>;
170
+ };
163
171
  };
164
172
  export type FromParentToChildMessageTypes = keyof FromParentToChildMessageTypesMap;
165
173
  export type FromChildToParentMessageTypesMap = {
166
174
  "sb-ready": void;
167
175
  "iframe-action-batch": PayloadAction<unknown>[];
176
+ /**
177
+ * Navigate the parent window to a new URL
178
+ */
168
179
  "navigate-to": {
169
180
  url: string;
170
181
  newWindow?: boolean;
@@ -223,6 +234,26 @@ export type FromChildToParentMessageTypesMap = {
223
234
  message: any;
224
235
  apiName: string;
225
236
  };
237
+ /**
238
+ * Notify the parent of a route change
239
+ */
240
+ "route-change": {
241
+ /**
242
+ * Uninterpolated route
243
+ * @example "/orders/:orderId"
244
+ */
245
+ route: string;
246
+ /**
247
+ * Interpolated path
248
+ * @example "/orders/123"
249
+ */
250
+ path: string;
251
+ /**
252
+ * Route parameters used
253
+ * @example { orderId: 123 }
254
+ */
255
+ params: Record<string, unknown>;
256
+ };
226
257
  undo: void;
227
258
  redo: void;
228
259
  "socket/error": {
@@ -0,0 +1,18 @@
1
+ import type { RootStore } from "./lib/root-store.js";
2
+ import type { Global as GlobalType } from "./scope/types.js";
3
+ import type { Location } from "react-router";
4
+ type RouteInfo = Location & {
5
+ route: string;
6
+ path: string;
7
+ params: Record<string, unknown>;
8
+ };
9
+ export declare class LocationStore {
10
+ route?: RouteInfo;
11
+ rootStore: RootStore;
12
+ constructor(rootStore: RootStore);
13
+ updateLocation(route: RouteInfo): Promise<void>;
14
+ sendLocationToEditor(route: RouteInfo): void;
15
+ updateGlobalScopeUrl(route: RouteInfo): Promise<void>;
16
+ getUrlState(route: RouteInfo): NonNullable<GlobalType["URL"]>;
17
+ }
18
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { Global as GlobalType } from "./types.js";
2
- import type { UserAccessibleTheme, Theme as BaseTheme } from "@superblocksteam/library-shared/types";
2
+ import type { Theme as BaseTheme, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
3
3
  export declare const GlobalScope: import("react").FC<import("react").JSX.IntrinsicAttributes & {
4
4
  children: React.ReactNode;
5
5
  }>;
@@ -5,7 +5,7 @@ export declare const AppMode: {
5
5
  readonly PREVIEW: "PREVIEW";
6
6
  };
7
7
  export type AppMode = (typeof AppMode)[keyof typeof AppMode];
8
- export type Global = {
8
+ export interface Global {
9
9
  mode?: AppMode;
10
10
  user?: User;
11
11
  URL?: UrlState;
@@ -25,7 +25,7 @@ export type Global = {
25
25
  id: string;
26
26
  name: string;
27
27
  };
28
- };
28
+ }
29
29
  type User = {
30
30
  name: string;
31
31
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.6-next.63",
3
+ "version": "2.0.6-next.65",
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.6-next.63",
36
+ "@superblocksteam/library-shared": "2.0.6-next.65",
37
37
  "@superblocksteam/shared": "0.9160.0",
38
38
  "antd": "4.24.15",
39
39
  "apca-w3": "^0.1.9",