@superblocksteam/library 2.0.3-next.124 → 2.0.3-next.126
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-Zj5ywZ7Z.js → allPaths-BBEWQlbm.js} +2 -2
- package/dist/{allPaths-Zj5ywZ7Z.js.map → allPaths-BBEWQlbm.js.map} +1 -1
- package/dist/{allPaths-BwCisL1m.js → allPaths-DqaYr8fP.js} +2 -2
- package/dist/{allPaths-BwCisL1m.js.map → allPaths-DqaYr8fP.js.map} +1 -1
- package/dist/{allPathsLoader-CHtqqhqa.js → allPathsLoader-89ouVeDC.js} +3 -3
- package/dist/{allPathsLoader-CHtqqhqa.js.map → allPathsLoader-89ouVeDC.js.map} +1 -1
- package/dist/{allPathsLoader-PuPpwk36.js → allPathsLoader-BtVdFWqo.js} +3 -3
- package/dist/{allPathsLoader-PuPpwk36.js.map → allPathsLoader-BtVdFWqo.js.map} +1 -1
- package/dist/{index-CRYekRqO.js → index-CAXB17xR.js} +482 -418
- package/dist/{index-CRYekRqO.js.map → index-CAXB17xR.js.map} +1 -1
- package/dist/index.js +126 -122
- package/dist/{splitPathsBySizeLoader-C9xWFFnU.js → splitPathsBySizeLoader-Brc4bB0Z.js} +2 -2
- package/dist/{splitPathsBySizeLoader-C9xWFFnU.js.map → splitPathsBySizeLoader-Brc4bB0Z.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-Cx--S5eU.js → splitPathsBySizeLoader-DFqJBiIM.js} +2 -2
- package/dist/{splitPathsBySizeLoader-Cx--S5eU.js.map → splitPathsBySizeLoader-DFqJBiIM.js.map} +1 -1
- package/dist-types/lib/index.d.ts +2 -1
- package/dist-types/lib/internal-details/scope/global.d.ts +9 -0
- package/dist-types/lib/user-facing/components/input/constants.d.ts +2 -2
- package/dist-types/lib/user-facing/state/create-scope.d.ts +10 -3
- package/dist-types/lib/user-facing/themes/constants.d.ts +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { X as clientExports } from "./index-CAXB17xR.js";
|
|
2
|
+
import { Y, Z, U, M, N, $, L, a0, a1, a2, a3, a4, a5, y, a6, a7, a8, a9, aa, W, ab, Q, ac, ad, ae, af, V, x, S, o, d, e, m, q, l, O, z, t, u, f, n, i, g, y as y2, c, j, s, k, h, w, v, A, ag, ah, ai, aj, ak, T, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, B, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, K, aV, aW, aX, aY, aZ, a_, E, a$, b0, b1, b2, b3, G, b4, b5, C, b6, b7, b8, r, J, H, b9, ba, bb, R, D, F, 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, bH, bI, P, bJ } from "./index-CAXB17xR.js";
|
|
3
3
|
const createRoot = clientExports.createRoot;
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
Y as Await,
|
|
6
|
+
Z as BrowserRouter,
|
|
7
|
+
U as Dim,
|
|
8
|
+
M as Embed,
|
|
9
|
+
N as Env,
|
|
10
|
+
$ as Form,
|
|
11
|
+
L as Global,
|
|
12
|
+
a0 as HashRouter,
|
|
13
|
+
a1 as IDLE_BLOCKER,
|
|
14
|
+
a2 as IDLE_FETCHER,
|
|
15
|
+
a3 as IDLE_NAVIGATION,
|
|
16
|
+
a4 as Link,
|
|
17
|
+
a5 as Links,
|
|
15
18
|
y as MakeEditableWithSuperblocks,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
a6 as MemoryRouter,
|
|
20
|
+
a7 as Meta,
|
|
21
|
+
a8 as NavLink,
|
|
22
|
+
a9 as Navigate,
|
|
23
|
+
aa as NavigationType,
|
|
24
|
+
W as Outlet,
|
|
25
|
+
ab as PrefetchPageLinks,
|
|
26
|
+
Q as Prop,
|
|
27
|
+
ac as Route,
|
|
28
|
+
ad as Router,
|
|
29
|
+
ae as RouterProvider,
|
|
30
|
+
af as Routes,
|
|
31
|
+
V as SB,
|
|
29
32
|
x as SbApi,
|
|
30
33
|
S as SbButton,
|
|
31
34
|
o as SbCheckbox,
|
|
@@ -34,7 +37,7 @@ export {
|
|
|
34
37
|
m as SbCustom,
|
|
35
38
|
q as SbDatePicker,
|
|
36
39
|
l as SbDropdown,
|
|
37
|
-
|
|
40
|
+
O as SbEvent,
|
|
38
41
|
z as SbEventFlow,
|
|
39
42
|
t as SbIcon,
|
|
40
43
|
u as SbImage,
|
|
@@ -51,112 +54,113 @@ export {
|
|
|
51
54
|
w as SbTimer,
|
|
52
55
|
v as SbVariable,
|
|
53
56
|
A as SbVariablePersistence,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
57
|
+
ag as Scripts,
|
|
58
|
+
ah as ScrollRestoration,
|
|
59
|
+
ai as ServerRouter,
|
|
60
|
+
aj as StaticRouter,
|
|
61
|
+
ak as StaticRouterProvider,
|
|
62
|
+
T as Theme,
|
|
63
|
+
al as UNSAFE_DataRouterContext,
|
|
64
|
+
am as UNSAFE_DataRouterStateContext,
|
|
65
|
+
an as UNSAFE_ErrorResponseImpl,
|
|
66
|
+
ao as UNSAFE_FetchersContext,
|
|
67
|
+
ap as UNSAFE_FrameworkContext,
|
|
68
|
+
aq as UNSAFE_LocationContext,
|
|
69
|
+
ar as UNSAFE_NavigationContext,
|
|
70
|
+
as as UNSAFE_RemixErrorBoundary,
|
|
71
|
+
at as UNSAFE_RouteContext,
|
|
72
|
+
au as UNSAFE_ServerMode,
|
|
73
|
+
av as UNSAFE_SingleFetchRedirectSymbol,
|
|
74
|
+
aw as UNSAFE_ViewTransitionContext,
|
|
75
|
+
ax as UNSAFE_createBrowserHistory,
|
|
76
|
+
ay as UNSAFE_createClientRoutes,
|
|
77
|
+
az as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
|
78
|
+
aA as UNSAFE_createRouter,
|
|
79
|
+
aB as UNSAFE_decodeViaTurboStream,
|
|
80
|
+
aC as UNSAFE_deserializeErrors,
|
|
81
|
+
aD as UNSAFE_getPatchRoutesOnNavigationFunction,
|
|
82
|
+
aE as UNSAFE_getSingleFetchDataStrategy,
|
|
83
|
+
aF as UNSAFE_invariant,
|
|
84
|
+
aG as UNSAFE_mapRouteProperties,
|
|
85
|
+
aH as UNSAFE_shouldHydrateRouteLoader,
|
|
86
|
+
aI as UNSAFE_useFogOFWarDiscovery,
|
|
87
|
+
aJ as UNSAFE_useScrollRestoration,
|
|
84
88
|
B as copyToClipboard,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
aK as createBrowserRouter,
|
|
90
|
+
aL as createCookie,
|
|
91
|
+
aM as createCookieSessionStorage,
|
|
92
|
+
aN as createHashRouter,
|
|
93
|
+
aO as createMemoryRouter,
|
|
94
|
+
aP as createMemorySessionStorage,
|
|
95
|
+
aQ as createPath,
|
|
96
|
+
aR as createRequestHandler,
|
|
93
97
|
createRoot,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
aS as createRoutesFromChildren,
|
|
99
|
+
aT as createRoutesFromElements,
|
|
100
|
+
aU as createRoutesStub,
|
|
97
101
|
K as createSbScope,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
aV as createSearchParams,
|
|
103
|
+
aW as createSession,
|
|
104
|
+
aX as createSessionStorage,
|
|
105
|
+
aY as createStaticHandler,
|
|
106
|
+
aZ as createStaticRouter,
|
|
107
|
+
a_ as data,
|
|
104
108
|
E as download,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
a$ as generatePath,
|
|
110
|
+
b0 as href,
|
|
111
|
+
b1 as isCookie,
|
|
112
|
+
b2 as isRouteErrorResponse,
|
|
113
|
+
b3 as isSession,
|
|
110
114
|
G as logoutIntegrations,
|
|
111
|
-
|
|
112
|
-
|
|
115
|
+
b4 as matchPath,
|
|
116
|
+
b5 as matchRoutes,
|
|
113
117
|
C as navigateTo,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
b6 as parsePath,
|
|
119
|
+
b7 as redirect,
|
|
120
|
+
b8 as redirectDocument,
|
|
117
121
|
r as registerComponent,
|
|
118
122
|
J as registerPage,
|
|
119
123
|
H as registerScope,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
b9 as renderMatches,
|
|
125
|
+
ba as replace,
|
|
126
|
+
bb as resolvePath,
|
|
127
|
+
R as sbComputed,
|
|
124
128
|
D as setQueryParams,
|
|
125
129
|
F as showAlert,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
130
|
+
bc as unstable_HistoryRouter,
|
|
131
|
+
bd as unstable_RouterContextProvider,
|
|
132
|
+
be as unstable_createContext,
|
|
133
|
+
bf as unstable_setDevServerHooks,
|
|
134
|
+
bg as unstable_usePrompt,
|
|
135
|
+
bh as useActionData,
|
|
136
|
+
bi as useAsyncError,
|
|
137
|
+
bj as useAsyncValue,
|
|
138
|
+
bk as useBeforeUnload,
|
|
139
|
+
bl as useBlocker,
|
|
140
|
+
bm as useFetcher,
|
|
141
|
+
bn as useFetchers,
|
|
142
|
+
bo as useFormAction,
|
|
143
|
+
bp as useHref,
|
|
144
|
+
bq as useInRouterContext,
|
|
145
|
+
br as useLinkClickHandler,
|
|
146
|
+
bs as useLoaderData,
|
|
147
|
+
bt as useLocation,
|
|
148
|
+
bu as useMatch,
|
|
149
|
+
bv as useMatches,
|
|
150
|
+
bw as useNavigate,
|
|
151
|
+
bx as useNavigation,
|
|
152
|
+
by as useNavigationType,
|
|
153
|
+
bz as useOutlet,
|
|
154
|
+
bA as useOutletContext,
|
|
155
|
+
bB as useParams,
|
|
156
|
+
bC as useResolvedPath,
|
|
157
|
+
bD as useRevalidator,
|
|
158
|
+
bE as useRouteError,
|
|
159
|
+
bF as useRouteLoaderData,
|
|
160
|
+
bG as useRoutes,
|
|
161
|
+
bH as useSearchParams,
|
|
162
|
+
bI as useSubmit,
|
|
163
|
+
P as useUpdateProperties,
|
|
164
|
+
bJ as useViewTransitionState
|
|
161
165
|
};
|
|
162
166
|
//# sourceMappingURL=index.js.map
|
|
@@ -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-CAXB17xR.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-Brc4bB0Z.js.map
|
package/dist/{splitPathsBySizeLoader-C9xWFFnU.js.map → splitPathsBySizeLoader-Brc4bB0Z.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-Brc4bB0Z.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-CAXB17xR.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-DFqJBiIM.js.map
|
package/dist/{splitPathsBySizeLoader-Cx--S5eU.js.map → splitPathsBySizeLoader-DFqJBiIM.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-DFqJBiIM.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]}
|
|
@@ -30,12 +30,13 @@ export { copyToClipboard, navigateTo, setQueryParams, download, showAlert, logou
|
|
|
30
30
|
export { registerScope } from "./internal-details/scope/scope.jsx";
|
|
31
31
|
export { registerPage } from "./user-facing/components/page/register-page.js";
|
|
32
32
|
export { createSbScope } from "./user-facing/state/create-scope.js";
|
|
33
|
+
export { Global, Theme, Embed, Env } from "./internal-details/scope/global.js";
|
|
34
|
+
export type { AppTheme } from "./internal-details/scope/global.js";
|
|
33
35
|
export { type BindingIdentifier } from "./user-facing/state/types.js";
|
|
34
36
|
export { SbEvent } from "./internal-details/entities.js";
|
|
35
37
|
export { useUpdateProperties } from "./user-facing/hooks/use-update-properties.js";
|
|
36
38
|
export { Prop } from "./user-facing/properties-panel/props-builder.js";
|
|
37
39
|
export { sbComputed } from "./user-facing/state/sb-computed.js";
|
|
38
40
|
export { Dim, type DimModes, SB } from "@superblocksteam/library-shared";
|
|
39
|
-
export type { Theme } from "@superblocksteam/library-shared/types";
|
|
40
41
|
export type { FromChildToParentMessageTypes, FromChildToParentMessageTypesMap, FromParentToChildMessageTypes, FromParentToChildMessageTypesMap, } from "./internal-details/lib/types.js";
|
|
41
42
|
export { Outlet } from "react-router";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UserAccessibleTheme, Theme as BaseTheme } from "@superblocksteam/library-shared/types";
|
|
2
|
+
export declare const GlobalScope: import("react").FC<import("react").JSX.IntrinsicAttributes & {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}>;
|
|
5
|
+
export type AppTheme = BaseTheme;
|
|
6
|
+
export declare const Theme: UserAccessibleTheme;
|
|
7
|
+
export declare const Global: any;
|
|
8
|
+
export declare const Embed: any;
|
|
9
|
+
export declare const Env: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CurrencyCodeDisplayType, InputType } from "./types.js";
|
|
2
|
-
import type { PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { PerSideBorder, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
3
3
|
export declare const InputTypes: {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
};
|
|
@@ -15,7 +15,7 @@ export declare const CURRENCY_CODE_DISPLAY_OPTIONS: {
|
|
|
15
15
|
label: string;
|
|
16
16
|
value: CurrencyCodeDisplayType;
|
|
17
17
|
}[];
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const defaultInputBorderObject: (theme: UserAccessibleTheme) => PerSideBorder;
|
|
19
19
|
export declare const CURRENCY_SYMBOL_MAP: Record<string, string>;
|
|
20
20
|
export declare const INPUT_TYPES_WITH_MINMAX: string[];
|
|
21
21
|
export declare const DATE_TYPES: {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { SbScopeInstance } from "./types.js";
|
|
2
|
-
|
|
3
|
-
options: {
|
|
2
|
+
type ScopeOptions = {
|
|
4
3
|
parentScopeId?: string;
|
|
5
4
|
name: string;
|
|
6
|
-
}
|
|
5
|
+
};
|
|
6
|
+
type InternalScopeOptions = ScopeOptions & {
|
|
7
|
+
scopeId?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function internalCreateScope<_Bindables extends Record<string, any>, SO extends InternalScopeOptions = InternalScopeOptions>(initialEntities: Record<string, any>, // TODO later, like variables, apis
|
|
10
|
+
options: SO): SbScopeInstance<Record<string, any>>;
|
|
11
|
+
export declare function createSbScope<_Bindables extends Record<string, any>, SO extends ScopeOptions = ScopeOptions>(initialEntities: Record<string, any>, // TODO later, like variables, apis
|
|
12
|
+
options: SO): SbScopeInstance<_Bindables>;
|
|
13
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import type { Border, Padding, PerCornerBorderRadius, PerSideBorder, Typographies, UserDefinedPalette, UserDefinedTheme } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { Border, Padding, PerCornerBorderRadius, PerSideBorder, Typographies, UserAccessibleTheme, UserDefinedPalette, UserDefinedTheme } from "@superblocksteam/library-shared/types";
|
|
3
3
|
export declare const CURRENT_THEME_VERSION = 5;
|
|
4
4
|
export declare const LIGHT_APP_BG: "#F9FAFB";
|
|
5
5
|
export declare const DARK_APP_BG = "#131516";
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
6
|
+
export declare const noBorder: (theme: UserAccessibleTheme) => Border;
|
|
7
|
+
export declare const noBorderOject: (theme: UserAccessibleTheme) => PerSideBorder;
|
|
8
8
|
export declare const EMPTY_RADIUS: PerCornerBorderRadius;
|
|
9
9
|
export declare const DEFAULT_SYSTEM_RADIUS: PerCornerBorderRadius;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const defaultContainerBorderObject: (theme: UserAccessibleTheme) => PerSideBorder;
|
|
11
11
|
export type UserDefinedThemeWithPalette = UserDefinedTheme & {
|
|
12
12
|
palette: {
|
|
13
13
|
dark: UserDefinedPalette;
|
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.126",
|
|
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.126",
|
|
36
36
|
"@superblocksteam/shared": "0.8939.0",
|
|
37
37
|
"antd": "4.24.15",
|
|
38
38
|
"apca-w3": "^0.1.9",
|