@superblocksteam/library 2.0.3-next.215 → 2.0.3-next.217
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.
- package/dist/{allPaths-DKIa6Bif.js → allPaths-CROgh4Wr.js} +2 -2
- package/dist/{allPaths-DKIa6Bif.js.map → allPaths-CROgh4Wr.js.map} +1 -1
- package/dist/{allPaths-tmXgFPDb.js → allPaths-Va1k8Bn4.js} +2 -2
- package/dist/{allPaths-tmXgFPDb.js.map → allPaths-Va1k8Bn4.js.map} +1 -1
- package/dist/{allPathsLoader-Bb9mCzxm.js → allPathsLoader-BJthmVkF.js} +3 -3
- package/dist/{allPathsLoader-DzO1qA85.js.map → allPathsLoader-BJthmVkF.js.map} +1 -1
- package/dist/{allPathsLoader-DzO1qA85.js → allPathsLoader-BdHvMdcd.js} +3 -3
- package/dist/{allPathsLoader-Bb9mCzxm.js.map → allPathsLoader-BdHvMdcd.js.map} +1 -1
- package/dist/{devtools-consolidated-DabzJnK7.js → devtools-consolidated-Ck9KuyGf.js} +2 -2
- package/dist/{devtools-consolidated-DabzJnK7.js.map → devtools-consolidated-Ck9KuyGf.js.map} +1 -1
- package/dist/{index-xcMKzvy2.js → index-CJuRwhWz.js} +8 -8
- package/dist/{index-xcMKzvy2.js.map → index-CJuRwhWz.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-BR_XtpEw.js → splitPathsBySizeLoader-3mcg6Jfx.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BR_XtpEw.js.map → splitPathsBySizeLoader-3mcg6Jfx.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-Dn3aw-a2.js → splitPathsBySizeLoader-BFbna0L2.js} +2 -2
- package/dist/{splitPathsBySizeLoader-Dn3aw-a2.js.map → splitPathsBySizeLoader-BFbna0L2.js.map} +1 -1
- package/dist-types/lib/internal-details/scope/global.d.ts +2 -1
- package/dist-types/lib/internal-details/scope/types.d.ts +57 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as clientExports } from "./index-
|
|
2
|
-
import { a0, a1, X, O, P, a2, N, a3, a4, a5, a6, a7, a8, B, a9, aa, ab, ac, ad, Z, ae, V, af, ag, ah, ai, Y, z, S, q, d, e, n, s, l, Q, C, v, w, f, i, g, B as B2, c, u, k, h, y, x, A, aj, ak, al, am, an, T, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, D, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, M, aY, aZ, a_, a$, b0, b1, G, b2, b3, b4, b5, b6, J, b7, b8, E, b9, ba, bb, r, L, K, bc, bd, be, W, F, H, 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, bH, bI, bJ, bK, bL, U, R, bM } from "./index-
|
|
1
|
+
import { $ as clientExports } from "./index-CJuRwhWz.js";
|
|
2
|
+
import { a0, a1, X, O, P, a2, N, a3, a4, a5, a6, a7, a8, B, a9, aa, ab, ac, ad, Z, ae, V, af, ag, ah, ai, Y, z, S, q, d, e, n, s, l, Q, C, v, w, f, i, g, B as B2, c, u, k, h, y, x, A, aj, ak, al, am, an, T, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, D, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, M, aY, aZ, a_, a$, b0, b1, G, b2, b3, b4, b5, b6, J, b7, b8, E, b9, ba, bb, r, L, K, bc, bd, be, W, F, H, 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, bH, bI, bJ, bK, bL, U, R, bM } from "./index-CJuRwhWz.js";
|
|
3
3
|
const createRoot = clientExports.createRoot;
|
|
4
4
|
export {
|
|
5
5
|
a0 as Await,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-CJuRwhWz.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-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-3mcg6Jfx.js.map
|
package/dist/{splitPathsBySizeLoader-BR_XtpEw.js.map → splitPathsBySizeLoader-3mcg6Jfx.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-3mcg6Jfx.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-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-CJuRwhWz.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-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-BFbna0L2.js.map
|
package/dist/{splitPathsBySizeLoader-Dn3aw-a2.js.map → splitPathsBySizeLoader-BFbna0L2.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-BFbna0L2.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,3 +1,4 @@
|
|
|
1
|
+
import type { Global as GlobalType } from "./types.js";
|
|
1
2
|
import type { UserAccessibleTheme, Theme as BaseTheme } from "@superblocksteam/library-shared/types";
|
|
2
3
|
export declare const GlobalScope: import("react").FC<import("react").JSX.IntrinsicAttributes & {
|
|
3
4
|
children: React.ReactNode;
|
|
@@ -5,6 +6,6 @@ export declare const GlobalScope: import("react").FC<import("react").JSX.Intrins
|
|
|
5
6
|
export declare const updateGlobalScope: (global: Record<string, unknown>) => void;
|
|
6
7
|
export type AppTheme = BaseTheme;
|
|
7
8
|
export declare const Theme: UserAccessibleTheme;
|
|
8
|
-
export declare const Global:
|
|
9
|
+
export declare const Global: GlobalType;
|
|
9
10
|
export declare const Embed: any;
|
|
10
11
|
export declare const Env: any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Profile, RouteDef } from "@superblocksteam/shared";
|
|
2
|
+
export declare const AppMode: {
|
|
3
|
+
readonly EDIT: "EDIT";
|
|
4
|
+
readonly PUBLISHED: "PUBLISHED";
|
|
5
|
+
readonly PREVIEW: "PREVIEW";
|
|
6
|
+
};
|
|
7
|
+
export type AppMode = (typeof AppMode)[keyof typeof AppMode];
|
|
8
|
+
export type Global = {
|
|
9
|
+
mode?: AppMode;
|
|
10
|
+
user?: User;
|
|
11
|
+
URL?: UrlState;
|
|
12
|
+
groups?: Group[];
|
|
13
|
+
deployedAt?: string;
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
selectedProfileId?: string;
|
|
16
|
+
profiles?: Profiles;
|
|
17
|
+
routes?: {
|
|
18
|
+
[id: string]: RouteDef;
|
|
19
|
+
};
|
|
20
|
+
currentRoute?: {
|
|
21
|
+
routeDef: RouteDef;
|
|
22
|
+
params: Record<string, string>;
|
|
23
|
+
};
|
|
24
|
+
app?: {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type User = {
|
|
30
|
+
name: string;
|
|
31
|
+
email: string;
|
|
32
|
+
id: string;
|
|
33
|
+
groups: Group[];
|
|
34
|
+
username: string;
|
|
35
|
+
metadata: Record<string, unknown>;
|
|
36
|
+
};
|
|
37
|
+
type Group = {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
size: number;
|
|
41
|
+
};
|
|
42
|
+
type UrlState = {
|
|
43
|
+
queryParams: Record<string, string>;
|
|
44
|
+
protocol: string;
|
|
45
|
+
host: string;
|
|
46
|
+
hostname: string;
|
|
47
|
+
port: string;
|
|
48
|
+
pathname: string;
|
|
49
|
+
hash: string;
|
|
50
|
+
fullPath: string;
|
|
51
|
+
};
|
|
52
|
+
type Profiles = {
|
|
53
|
+
available: Profile[];
|
|
54
|
+
selected?: Profile;
|
|
55
|
+
default: Profile;
|
|
56
|
+
};
|
|
57
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.3-next.
|
|
3
|
+
"version": "2.0.3-next.217",
|
|
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.
|
|
35
|
+
"@superblocksteam/library-shared": "2.0.3-next.217",
|
|
36
36
|
"@superblocksteam/shared": "0.9160.0",
|
|
37
37
|
"antd": "4.24.15",
|
|
38
38
|
"apca-w3": "^0.1.9",
|