@superblocksteam/library 2.0.0-next.9 → 2.0.0-next.91
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-CAGAw9-M.js → allPaths-ADpipuB1.js} +2 -2
- package/dist/{allPaths-CAGAw9-M.js.map → allPaths-ADpipuB1.js.map} +1 -1
- package/dist/{allPaths-BXojk62W.js → allPaths-xfEq-cWW.js} +2 -2
- package/dist/{allPaths-BXojk62W.js.map → allPaths-xfEq-cWW.js.map} +1 -1
- package/dist/{allPathsLoader-B4ukhqHJ.js → allPathsLoader-CPzNLHBK.js} +3 -3
- package/dist/{allPathsLoader-B4ukhqHJ.js.map → allPathsLoader-CPzNLHBK.js.map} +1 -1
- package/dist/{allPathsLoader-DyEaA2Fu.js → allPathsLoader-DbF-VpVg.js} +3 -3
- package/dist/{allPathsLoader-DyEaA2Fu.js.map → allPathsLoader-DbF-VpVg.js.map} +1 -1
- package/dist/{index-CzpxmuHJ.js → index-D_ZvJOXD.js} +16001 -15026
- package/dist/{index-CzpxmuHJ.js.map → index-D_ZvJOXD.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-DDVqG3q2.js → splitPathsBySizeLoader-Cu4Z_FPE.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DDVqG3q2.js.map → splitPathsBySizeLoader-Cu4Z_FPE.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-B4CtleKq.js → splitPathsBySizeLoader-mA-OCwLO.js} +2 -2
- package/dist/{splitPathsBySizeLoader-B4CtleKq.js.map → splitPathsBySizeLoader-mA-OCwLO.js.map} +1 -1
- package/dist-types/edit-mode/default-table-data.d.ts +71 -0
- package/dist-types/edit-mode/dnd/grid-store.d.ts +29 -4
- package/dist-types/edit-mode/dnd/utils.d.ts +7 -10
- package/dist-types/edit-mode/features/connection-manager.d.ts +1 -2
- package/dist-types/edit-mode/features/operation-store.d.ts +4 -0
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +1 -1
- package/dist-types/edit-mode/features/resizing-store.d.ts +1 -0
- package/dist-types/edit-mode/source-update-api.d.ts +3 -19
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +7 -5
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +12 -1
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/types.d.ts +3 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +1 -0
- package/dist-types/lib/user-facing/component-base/components/button.d.ts +3 -4
- package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +3 -11
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +11 -8
- package/dist-types/lib/user-facing/components/button/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/button/props.d.ts +4 -10
- package/dist-types/lib/user-facing/components/column/index.d.ts +8 -21
- package/dist-types/lib/user-facing/components/column/props.d.ts +8 -20
- package/dist-types/lib/user-facing/components/container/index.d.ts +12 -24
- package/dist-types/lib/user-facing/components/container/props.d.ts +7 -22
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +3 -3
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +2 -2
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +8 -8
- package/dist-types/lib/user-facing/components/image/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/image/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +9 -15
- package/dist-types/lib/user-facing/components/input/props.d.ts +10 -15
- package/dist-types/lib/user-facing/components/modal/index.d.ts +10 -15
- package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +2 -2
- package/dist-types/lib/user-facing/components/modal/props.d.ts +10 -15
- package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
- package/dist-types/lib/user-facing/components/section/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/section/props.d.ts +2 -2
- package/dist-types/lib/user-facing/components/stack/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/switch/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +74 -70
- package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +5 -5
- package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +4 -4
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +91 -87
- package/dist-types/lib/user-facing/components/table/props.d.ts +92 -89
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +21 -13
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/types.d.ts +21 -32
- package/dist-types/lib/user-facing/components/text/index.d.ts +5 -5
- package/dist-types/lib/user-facing/components/text/props.d.ts +6 -6
- package/dist-types/lib/user-facing/components/text/utils.d.ts +3 -3
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +4 -8
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +3 -3
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +15 -14
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +5 -4
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +2 -1
- package/dist-types/lib/user-facing/state/sb-computed.d.ts +1 -1
- package/dist-types/lib/user-facing/themes/constants.d.ts +2 -0
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as clientExports } from "./index-
|
|
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-
|
|
1
|
+
import { V as clientExports } from "./index-D_ZvJOXD.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-D_ZvJOXD.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-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-D_ZvJOXD.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-Cu4Z_FPE.js.map
|
package/dist/{splitPathsBySizeLoader-DDVqG3q2.js.map → splitPathsBySizeLoader-Cu4Z_FPE.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-Cu4Z_FPE.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-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-D_ZvJOXD.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-mA-OCwLO.js.map
|
package/dist/{splitPathsBySizeLoader-B4CtleKq.js.map → splitPathsBySizeLoader-mA-OCwLO.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-mA-OCwLO.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]}
|
|
@@ -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
|
|
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:
|
|
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:
|
|
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 {};
|
|
@@ -11,6 +11,7 @@ export declare const isDragAndDropTypeValid: ({ draggedType, dropTargetType, dro
|
|
|
11
11
|
}) => boolean;
|
|
12
12
|
export declare const isTypeDroppable: (type: string) => boolean;
|
|
13
13
|
export declare const isTypeDraggable: (type: string) => boolean;
|
|
14
|
+
export declare const isContentDragDisabled: (type: string) => boolean;
|
|
14
15
|
export declare function shouldWrapInSectionAndColumn(type: string, parentType: string | undefined): boolean;
|
|
15
16
|
export declare const filterSafeStackDimensionProperties: (existingProps: {
|
|
16
17
|
width?: Dim;
|
|
@@ -26,13 +27,9 @@ export declare const filterSafeGridDimensionProperties: (existingProps: {
|
|
|
26
27
|
width?: PropertyInfo;
|
|
27
28
|
height?: PropertyInfo;
|
|
28
29
|
};
|
|
29
|
-
export declare const defaultSizeForComponent: (componentType: string, isFreeform: boolean,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} | {
|
|
36
|
-
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
37
|
-
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fill">>;
|
|
38
|
-
};
|
|
30
|
+
export declare const defaultSizeForComponent: (componentType: string, isFreeform: boolean, draggedDimensions?: {
|
|
31
|
+
widthGU?: number;
|
|
32
|
+
heightGU?: number;
|
|
33
|
+
widthPx?: number;
|
|
34
|
+
heightPx?: number;
|
|
35
|
+
}) => Record<string, PropertyInfo>;
|
|
@@ -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;
|
|
@@ -43,6 +43,10 @@ declare class OperationManager {
|
|
|
43
43
|
writeRuntimeProperties(sourceId: SbElement, transactionId: string, updates: Record<string, PropertyInfo<unknown>>): void;
|
|
44
44
|
setWidgetProperties(sourceId: SbElement, properties: Record<string, PropertyInfo<unknown>>, callback?: () => void): void;
|
|
45
45
|
setWidgetProperty(sourceId: SbElement, property: string, value: PropertyInfo<unknown>, callback?: () => void): void;
|
|
46
|
+
renameWidget(params: {
|
|
47
|
+
sourceId: SbElement;
|
|
48
|
+
newName: string;
|
|
49
|
+
}): void;
|
|
46
50
|
ensureFilesSynced(): Promise<void>;
|
|
47
51
|
generateSourceId(): `SB-${string}`;
|
|
48
52
|
}
|
|
@@ -23,7 +23,7 @@ declare class PropertiesPanelManager {
|
|
|
23
23
|
computeSideEffectsForPropertyUpdate(payload: {
|
|
24
24
|
sourceId: SbElement;
|
|
25
25
|
updates: Record<string, PropertyInfo<unknown>>;
|
|
26
|
-
}): Record
|
|
26
|
+
}): Record<`SB-${string}`, {
|
|
27
27
|
props?: Record<string, PropertyInfo<unknown>>;
|
|
28
28
|
meta?: Record<string, unknown>;
|
|
29
29
|
}>;
|
|
@@ -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,26 +1,10 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
editorUpdateTheme: (payload: UpdateThemeRequest) => Promise<void | undefined>;
|
|
23
|
-
ensureFilesSynced: () => Promise<string | undefined>;
|
|
7
|
+
ensureFilesSynced: () => Promise<void>;
|
|
24
8
|
}
|
|
25
9
|
declare const _default: OperationAPI;
|
|
26
10
|
export default _default;
|
|
@@ -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
|
|
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
|
|
9
|
-
export type Executable<ARGS extends any[] = any[]> = (this: Entity, state
|
|
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
|
|
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;
|
|
@@ -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": {
|
|
@@ -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;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { IconPosition } from "../../icons/constants.js";
|
|
3
3
|
import type { ButtonLikeLinkStyle, ButtonStyle } from "../styles/button-styles.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { HorizontalAlign } from "@superblocksteam/library-shared/props";
|
|
5
5
|
import type { PerSideBorder, UserAccessibleTheme, Padding, PerCornerBorderRadius } from "@superblocksteam/library-shared/types";
|
|
6
6
|
import type { ReactElement } from "react";
|
|
7
7
|
export interface SharedButtonProps {
|
|
8
8
|
textColor?: string;
|
|
9
9
|
backgroundColor?: string;
|
|
10
|
+
border?: PerSideBorder;
|
|
10
11
|
text?: string;
|
|
11
12
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
12
13
|
disabled?: boolean;
|
|
@@ -17,7 +18,7 @@ export interface SharedButtonProps {
|
|
|
17
18
|
icon?: ReactElement | null;
|
|
18
19
|
iconPosition?: IconPosition;
|
|
19
20
|
systemIcon?: ReactElement;
|
|
20
|
-
textAlignment?:
|
|
21
|
+
textAlignment?: HorizontalAlign;
|
|
21
22
|
width?: "100%" | "auto";
|
|
22
23
|
height?: "100%" | "auto";
|
|
23
24
|
maxWidth?: number;
|
|
@@ -26,7 +27,6 @@ export interface SharedButtonProps {
|
|
|
26
27
|
textStyleVariant?: string;
|
|
27
28
|
style?: React.CSSProperties;
|
|
28
29
|
};
|
|
29
|
-
border?: PerSideBorder;
|
|
30
30
|
borderRadius?: PerCornerBorderRadius;
|
|
31
31
|
padding?: Padding;
|
|
32
32
|
theme: UserAccessibleTheme;
|
|
@@ -34,7 +34,6 @@ export interface SharedButtonProps {
|
|
|
34
34
|
}
|
|
35
35
|
export interface ButtonProps extends SharedButtonProps {
|
|
36
36
|
buttonStyle?: ButtonStyle;
|
|
37
|
-
version?: "v1" | "v2";
|
|
38
37
|
}
|
|
39
38
|
export interface ButtonLikeLinkProps extends SharedButtonProps {
|
|
40
39
|
linkStyle?: ButtonLikeLinkStyle;
|
|
@@ -3,14 +3,6 @@ export type ButtonStyle = "primary" | "secondary" | "tertiary" | "success" | "da
|
|
|
3
3
|
export type ButtonLikeLinkStyle = ButtonStyle | "LINK";
|
|
4
4
|
export declare const getButtonThemeDefaultTextColor: (theme: UserAccessibleTheme, buttonStyle?: ButtonStyle) => string;
|
|
5
5
|
export declare const getButtonThemeDefaultBackgroundColor: (theme: UserAccessibleTheme, buttonStyle?: ButtonStyle) => string;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const getButtonBorderStyleObjectV1: ({ border, isLoadingColor, buttonStyle, isLoading, fallbackBorderColor, backgroundColorIfSet, }: {
|
|
10
|
-
border: PerSideBorder | undefined;
|
|
11
|
-
isLoadingColor: string;
|
|
12
|
-
fallbackBorderColor: string;
|
|
13
|
-
buttonStyle: ButtonStyle | undefined;
|
|
14
|
-
isLoading: boolean;
|
|
15
|
-
backgroundColorIfSet: string | undefined;
|
|
16
|
-
}) => import("react").CSSProperties;
|
|
6
|
+
export declare const PRIMARY_BUTTON_BORDER_OBJECT: (this: any) => PerSideBorder;
|
|
7
|
+
export declare const SECONDARY_BUTTON_BORDER_OBJECT: (this: any) => PerSideBorder;
|
|
8
|
+
export declare const getDefaultBorderObject: (this: any) => PerSideBorder;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export type ValidationErrors = {
|
|
2
|
+
required?: string;
|
|
3
|
+
minMax?: string;
|
|
4
|
+
customRule?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
number?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
};
|
|
1
9
|
export declare const getInputValidationErrors: (props: {
|
|
2
10
|
text?: string;
|
|
3
11
|
inputType?: string;
|
|
@@ -7,11 +15,6 @@ export declare const getInputValidationErrors: (props: {
|
|
|
7
15
|
maxLength?: number;
|
|
8
16
|
minLength?: number;
|
|
9
17
|
emailRegex?: RegExp;
|
|
10
|
-
}) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
customRule?: string;
|
|
14
|
-
email?: string;
|
|
15
|
-
number?: string;
|
|
16
|
-
url?: string;
|
|
17
|
-
};
|
|
18
|
+
}) => ValidationErrors;
|
|
19
|
+
export declare const getErrorMessages: (errors: ValidationErrors) => string[];
|
|
20
|
+
export declare const hasErrors: (errors: ValidationErrors) => boolean;
|
|
@@ -24,7 +24,7 @@ export declare const SbButton: import("react").FC<import("../../properties-panel
|
|
|
24
24
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
25
25
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
26
26
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
27
|
-
|
|
27
|
+
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true>;
|
|
28
28
|
loadingAnimation: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
29
29
|
}>;
|
|
30
30
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { Dim } from "@superblocksteam/library-shared";
|
|
2
1
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
3
2
|
import type { IconPosition } from "../../icons/constants.js";
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
3
|
+
import type { Dim } from "@superblocksteam/library-shared";
|
|
4
|
+
import type { HorizontalAlign } from "@superblocksteam/library-shared/props";
|
|
6
5
|
export type ButtonVariant = "primary" | "secondary" | "tertiary";
|
|
7
|
-
export declare const PerSideBorderDef: () => import("../../properties-panel/props-builder.js").CompositeProp<{
|
|
8
|
-
color: Prop<string, false>;
|
|
9
|
-
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
10
|
-
style: Prop<string, false>;
|
|
11
|
-
}>;
|
|
12
6
|
export declare const propertiesDefinition: {
|
|
13
7
|
general: Section<Record<string, Prop<any, any>> & {
|
|
14
8
|
label: Prop<string, false>;
|
|
@@ -33,9 +27,9 @@ export declare const propertiesDefinition: {
|
|
|
33
27
|
iconPosition: Prop<IconPosition, true>;
|
|
34
28
|
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
35
29
|
backgroundColor: Prop<string, true>;
|
|
36
|
-
border: Prop<PerSideBorder, true>;
|
|
30
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
37
31
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
38
|
-
|
|
32
|
+
horizontalAlign: Prop<HorizontalAlign, true>;
|
|
39
33
|
loadingAnimation: Prop<boolean, true>;
|
|
40
34
|
}>;
|
|
41
35
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import type { DimModes } from "@superblocksteam/library-shared";
|
|
3
2
|
/**
|
|
4
3
|
* TODO:
|
|
5
4
|
* - disable setting height related props in prop panel and code
|
|
@@ -8,14 +7,7 @@ import type { DimModes } from "@superblocksteam/library-shared";
|
|
|
8
7
|
*/
|
|
9
8
|
export declare const getDefaultSectionChildren: () => never[];
|
|
10
9
|
export declare const SbColumn: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
11
|
-
layout: import("../../properties-panel/props-builder.js").Section<((
|
|
12
|
-
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
13
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
14
|
-
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
15
|
-
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
16
|
-
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
17
|
-
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
18
|
-
}) | (Omit<{
|
|
10
|
+
layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
19
11
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
20
12
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
21
13
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -27,24 +19,19 @@ export declare const SbColumn: import("react").FC<import("../../properties-panel
|
|
|
27
19
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
28
20
|
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
29
21
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
22
|
+
}) | (Omit<{
|
|
23
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
24
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
25
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
26
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
27
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
30
28
|
}))) & {
|
|
31
|
-
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
32
|
-
}) & {
|
|
33
|
-
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
34
|
-
}) & {
|
|
35
|
-
maxHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
36
|
-
minHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
37
|
-
maxWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
38
|
-
minWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
39
|
-
width: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false>;
|
|
40
|
-
height: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false>;
|
|
41
|
-
}) & {
|
|
42
29
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
43
30
|
}) & {
|
|
44
31
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
45
32
|
}>;
|
|
46
33
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
47
34
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
48
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
35
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
49
36
|
}>;
|
|
50
37
|
}>>;
|