@superblocksteam/library 2.0.11-next.8 → 2.0.11
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-myr92AsW.js → allPaths-DGMrcGYt.js} +2 -2
- package/dist/{allPaths-myr92AsW.js.map → allPaths-DGMrcGYt.js.map} +1 -1
- package/dist/{allPaths-Y4YGXSmF.js → allPaths-nl-QZWn1.js} +2 -2
- package/dist/{allPaths-Y4YGXSmF.js.map → allPaths-nl-QZWn1.js.map} +1 -1
- package/dist/{allPathsLoader-DLbEQFY1.js → allPathsLoader-BIuTbNcY.js} +3 -3
- package/dist/{allPathsLoader-DLbEQFY1.js.map → allPathsLoader-BIuTbNcY.js.map} +1 -1
- package/dist/{allPathsLoader-xuZ2GzGt.js → allPathsLoader-Tf9x8dtV.js} +3 -3
- package/dist/{allPathsLoader-xuZ2GzGt.js.map → allPathsLoader-Tf9x8dtV.js.map} +1 -1
- package/dist/{devtools-consolidated-CAMIuL-C.js → devtools-consolidated-Brbj1JeD.js} +2 -2
- package/dist/{devtools-consolidated-CAMIuL-C.js.map → devtools-consolidated-Brbj1JeD.js.map} +1 -1
- package/dist/{index-C4OthB64.js → index-CCewmzC_.js} +302 -55
- package/dist/{index-C4OthB64.js.map → index-CCewmzC_.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-Ufjcf3C9.js → splitPathsBySizeLoader-BM6L8m2i.js} +2 -2
- package/dist/{splitPathsBySizeLoader-Ufjcf3C9.js.map → splitPathsBySizeLoader-BM6L8m2i.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-CCK4w8Rs.js → splitPathsBySizeLoader-C3MBiqmb.js} +2 -2
- package/dist/{splitPathsBySizeLoader-CCK4w8Rs.js.map → splitPathsBySizeLoader-C3MBiqmb.js.map} +1 -1
- package/dist-types/edit-mode/base-editor-bridge.d.ts +54 -0
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +22 -22
- package/dist-types/edit-mode/noop-editor-bridge.d.ts +1 -0
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +4 -3
- package/dist-types/lib/internal-details/app-wrappers.d.ts +5 -0
- package/dist-types/lib/internal-details/is-edit-mode.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +1 -6
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +45 -2
- package/dist-types/lib/internal-details/sb-wrapper.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/button/index.d.ts +41 -1
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +47 -1
- package/dist-types/lib/user-facing/components/column/index.d.ts +30 -1
- package/dist-types/lib/user-facing/components/container/index.d.ts +32 -1
- package/dist-types/lib/user-facing/components/custom/index.d.ts +1 -2
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +71 -2
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +75 -2
- package/dist-types/lib/user-facing/components/icon/index.d.ts +24 -1
- package/dist-types/lib/user-facing/components/image/index.d.ts +33 -1
- package/dist-types/lib/user-facing/components/input/editor-template.d.ts +3 -0
- package/dist-types/lib/user-facing/components/input/index.d.ts +94 -1
- package/dist-types/lib/user-facing/components/modal/index.d.ts +39 -1
- package/dist-types/lib/user-facing/components/page/index.d.ts +19 -1
- package/dist-types/lib/user-facing/components/section/index.d.ts +24 -1
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +39 -1
- package/dist-types/lib/user-facing/components/switch/index.d.ts +48 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +361 -1
- package/dist-types/lib/user-facing/components/text/index.d.ts +56 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a0 as clientExports } from "./index-
|
|
2
|
-
import { a1, a2, B, h, C, c, g, i, Y, D, O, Q, E, a3, L, a4, a5, a6, a7, l, n, d, a8, a9, v, aa, ab, M, ac, ad, ae, $, P, af, W, ag, ah, ai, aj, Z, u, R, v as v2, ak, al, S, am, e, q, A, an, ao, k, f, T, N, s, 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, X, w, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, K, aZ, a_, a$, b0, b1, b2, z, b3, b4, b5, b6, b7, G, b8, b9, x, ba, bb, bc, r, J, H, bd, be, bf, y, F, 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-
|
|
1
|
+
import { a0 as clientExports } from "./index-CCewmzC_.js";
|
|
2
|
+
import { a1, a2, B, h, C, c, g, i, Y, D, O, Q, E, a3, L, a4, a5, a6, a7, l, n, d, a8, a9, v, aa, ab, M, ac, ad, ae, $, P, af, W, ag, ah, ai, aj, Z, u, R, v as v2, ak, al, S, am, e, q, A, an, ao, k, f, T, N, s, 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, X, w, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, K, aZ, a_, a$, b0, b1, b2, z, b3, b4, b5, b6, b7, G, b8, b9, x, ba, bb, bc, r, J, H, bd, be, bf, y, F, 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-CCewmzC_.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, b as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-CCewmzC_.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-BM6L8m2i.js.map
|
package/dist/{splitPathsBySizeLoader-Ufjcf3C9.js.map → splitPathsBySizeLoader-BM6L8m2i.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-BM6L8m2i.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-CCewmzC_.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-C3MBiqmb.js.map
|
package/dist/{splitPathsBySizeLoader-CCK4w8Rs.js.map → splitPathsBySizeLoader-C3MBiqmb.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-C3MBiqmb.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,54 @@
|
|
|
1
|
+
import type { FromChildToParentMessageTypesMap } from "../lib/index.js";
|
|
2
|
+
import type { StreamEvent, RouteInfo } from "../lib/internal-details/lib/types.js";
|
|
3
|
+
import type { PropertiesPanelDefinition } from "@superblocksteam/library-shared/props";
|
|
4
|
+
import type { EditOperationPayload, EditOperationType, GeneratedTheme, SbElement, Theme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
export interface SuperblocksEditorBridgeInterface {
|
|
6
|
+
connected(): void;
|
|
7
|
+
sendReady(): void;
|
|
8
|
+
sendNotification(type: "success" | "error" | "info" | "warning", message: string, description?: string): void;
|
|
9
|
+
selectWidgets(sourceIds: SbElement[]): void;
|
|
10
|
+
editOpRequest<T extends EditOperationType>(type: T, payload: EditOperationPayload<T>["payload"]): void;
|
|
11
|
+
undo(): void;
|
|
12
|
+
redo(): void;
|
|
13
|
+
sendStreamedApiEvent(event: StreamEvent, apiName: string): void;
|
|
14
|
+
sendStreamedApiMessage(message: any, apiName: string): void;
|
|
15
|
+
setApiStarted(apiName: string): void;
|
|
16
|
+
setApiResponse(apiName: string, response: unknown): void;
|
|
17
|
+
navigateTo(path: string, newWindow?: boolean): void;
|
|
18
|
+
updateTheme(theme: Theme, generatedTheme: GeneratedTheme): void;
|
|
19
|
+
updatePropertiesPanels(updates: Record<string, PropertiesPanelDefinition>): void;
|
|
20
|
+
addPropertiesPanel(id: string, definition: PropertiesPanelDefinition): void;
|
|
21
|
+
initializeEditorSyncedStore(payload: FromChildToParentMessageTypesMap["codeMode/editor-synced-store/init"]): void;
|
|
22
|
+
updateEditorSyncedStore(payload: FromChildToParentMessageTypesMap["codeMode/editor-synced-store/update"]): void;
|
|
23
|
+
resolvePromise(callbackId: string, payload: unknown): void;
|
|
24
|
+
rejectPromise(callbackId: string, payload: unknown): void;
|
|
25
|
+
canvasClicked(): void;
|
|
26
|
+
registerContextMenuClick(sourceId: SbElement, clientX: number, clientY: number): void;
|
|
27
|
+
updateRoute(routeInfo: RouteInfo): void;
|
|
28
|
+
socketError(message: string): void;
|
|
29
|
+
}
|
|
30
|
+
export declare class NoopEditorBridge implements SuperblocksEditorBridgeInterface {
|
|
31
|
+
connected(): void;
|
|
32
|
+
sendReady(): void;
|
|
33
|
+
sendNotification(_type: "success" | "error" | "info" | "warning", _message: string, _description?: string): void;
|
|
34
|
+
selectWidgets(_sourceIds: SbElement[]): void;
|
|
35
|
+
editOpRequest<T extends EditOperationType>(_type: T, _payload: EditOperationPayload<T>["payload"]): void;
|
|
36
|
+
undo(): void;
|
|
37
|
+
redo(): void;
|
|
38
|
+
sendStreamedApiEvent(_event: StreamEvent, _apiName: string): void;
|
|
39
|
+
sendStreamedApiMessage(_message: any, _apiName: string): void;
|
|
40
|
+
setApiStarted(_apiName: string): void;
|
|
41
|
+
setApiResponse(_apiName: string, _response: unknown): void;
|
|
42
|
+
navigateTo(_path: string, _newWindow?: boolean): void;
|
|
43
|
+
updateTheme(_theme: Theme, _generatedTheme: GeneratedTheme): void;
|
|
44
|
+
updatePropertiesPanels(_updates: Record<string, PropertiesPanelDefinition>): void;
|
|
45
|
+
addPropertiesPanel(_id: string, _definition: PropertiesPanelDefinition): void;
|
|
46
|
+
initializeEditorSyncedStore(_payload: FromChildToParentMessageTypesMap["codeMode/editor-synced-store/init"]): void;
|
|
47
|
+
updateEditorSyncedStore(_payload: FromChildToParentMessageTypesMap["codeMode/editor-synced-store/update"]): void;
|
|
48
|
+
resolvePromise(_callbackId: string, _payload: unknown): void;
|
|
49
|
+
rejectPromise(_callbackId: string, _payload: unknown): void;
|
|
50
|
+
canvasClicked(): void;
|
|
51
|
+
registerContextMenuClick(_sourceId: SbElement, _clientX: number, _clientY: number): void;
|
|
52
|
+
updateRoute(_routeInfo: RouteInfo): void;
|
|
53
|
+
socketError(_message: string): void;
|
|
54
|
+
}
|
|
@@ -33,27 +33,7 @@ declare class RuntimeEntitiesManager {
|
|
|
33
33
|
private getChildrenWithOptimisticUpdates;
|
|
34
34
|
getEditorWidgetChildren(instanceId: SbInstance): ChildElement[];
|
|
35
35
|
hasEditOperationsPending(): boolean;
|
|
36
|
-
getPendingOperations(): (
|
|
37
|
-
type: keyof import("@superblocksteam/library-shared/types").EditOperations;
|
|
38
|
-
payload: import("@superblocksteam/library-shared/types").SetPropertiesRequest;
|
|
39
|
-
id: string;
|
|
40
|
-
callback?: () => void;
|
|
41
|
-
} | {
|
|
42
|
-
type: keyof import("@superblocksteam/library-shared/types").EditOperations;
|
|
43
|
-
payload: import("@superblocksteam/library-shared/types").SetPropertyRequest;
|
|
44
|
-
id: string;
|
|
45
|
-
callback?: () => void;
|
|
46
|
-
} | {
|
|
47
|
-
type: keyof import("@superblocksteam/library-shared/types").EditOperations;
|
|
48
|
-
payload: CreateRequest;
|
|
49
|
-
id: string;
|
|
50
|
-
callback?: () => void;
|
|
51
|
-
} | {
|
|
52
|
-
type: keyof import("@superblocksteam/library-shared/types").EditOperations;
|
|
53
|
-
payload: DeleteRequest;
|
|
54
|
-
id: string;
|
|
55
|
-
callback?: () => void;
|
|
56
|
-
}) | {
|
|
36
|
+
getPendingOperations(): ({
|
|
57
37
|
instanceId: SbInstance;
|
|
58
38
|
sourceId: SbElement;
|
|
59
39
|
dragStartX: number;
|
|
@@ -85,7 +65,27 @@ declare class RuntimeEntitiesManager {
|
|
|
85
65
|
} | null;
|
|
86
66
|
isApplyingResize: boolean;
|
|
87
67
|
parentPadding?: import("@superblocksteam/library-shared/types").Padding;
|
|
88
|
-
})
|
|
68
|
+
} | (import("./operation-store.js").ReparentTransaction | {
|
|
69
|
+
type: keyof import("@superblocksteam/library-shared/types").EditOperations;
|
|
70
|
+
payload: import("@superblocksteam/library-shared/types").SetPropertiesRequest;
|
|
71
|
+
id: string;
|
|
72
|
+
callback?: () => void;
|
|
73
|
+
} | {
|
|
74
|
+
type: keyof import("@superblocksteam/library-shared/types").EditOperations;
|
|
75
|
+
payload: import("@superblocksteam/library-shared/types").SetPropertyRequest;
|
|
76
|
+
id: string;
|
|
77
|
+
callback?: () => void;
|
|
78
|
+
} | {
|
|
79
|
+
type: keyof import("@superblocksteam/library-shared/types").EditOperations;
|
|
80
|
+
payload: CreateRequest;
|
|
81
|
+
id: string;
|
|
82
|
+
callback?: () => void;
|
|
83
|
+
} | {
|
|
84
|
+
type: keyof import("@superblocksteam/library-shared/types").EditOperations;
|
|
85
|
+
payload: DeleteRequest;
|
|
86
|
+
id: string;
|
|
87
|
+
callback?: () => void;
|
|
88
|
+
}))[];
|
|
89
89
|
getScopeIdForSourceId(sourceId: SbElement): string | undefined;
|
|
90
90
|
applySideEffects(changes: Record<string, Record<string, unknown>>, scopeId: string): void;
|
|
91
91
|
isChildOf(childId: SbInstance, parentId: SbInstance): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { type SuperblocksEditorBridgeInterface } from "./base-editor-bridge.js";
|
|
1
2
|
import type { FromChildToParentMessageTypesMap } from "../lib/index.js";
|
|
2
3
|
import type { StreamEvent, RouteInfo } from "../lib/internal-details/lib/types.js";
|
|
3
4
|
import type { PropertiesPanelDefinition } from "@superblocksteam/library-shared/props";
|
|
4
5
|
import type { EditOperationPayload, EditOperationType, GeneratedTheme, SbElement, Theme } from "@superblocksteam/library-shared/types";
|
|
5
|
-
export declare class SuperblocksEditorBridge {
|
|
6
|
+
export declare class SuperblocksEditorBridge implements SuperblocksEditorBridgeInterface {
|
|
6
7
|
private static instance;
|
|
7
8
|
private messagesToSend;
|
|
8
9
|
private connectedToParent;
|
|
9
|
-
static getInstance():
|
|
10
|
+
static getInstance(): SuperblocksEditorBridgeInterface;
|
|
10
11
|
connected(): void;
|
|
11
12
|
sendReady(): void;
|
|
12
13
|
sendNotification(type: "success" | "error" | "info" | "warning", message: string, description?: string): void;
|
|
@@ -33,4 +34,4 @@ export declare class SuperblocksEditorBridge {
|
|
|
33
34
|
private queueMessage;
|
|
34
35
|
private sendImmediate;
|
|
35
36
|
}
|
|
36
|
-
export declare const editorBridge:
|
|
37
|
+
export declare const editorBridge: SuperblocksEditorBridgeInterface;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const FullPageSpinner: import("styled-components").StyledComponent<React.FC<import("@blueprintjs/core").SpinnerProps<HTMLElement>>, any, {}, never>;
|
|
3
|
+
declare const Auth0Wrapper: (props: React.PropsWithChildren) => React.JSX.Element;
|
|
4
|
+
declare const EmbedWrapper: (props: React.PropsWithChildren) => React.JSX.Element;
|
|
5
|
+
export { EmbedWrapper, Auth0Wrapper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isEditMode: () => boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ManagedPropsList, PropertiesDefinition } from "../../../user-facing/properties-panel/props-builder.js";
|
|
2
|
+
import type { EditorTemplate } from "../../sb-wrapper.jsx";
|
|
2
3
|
import type { RootStore } from "../root-store.js";
|
|
3
4
|
import type { ComponentRegistryShareState } from "@superblocksteam/library-shared/types";
|
|
4
5
|
import type * as React from "react";
|
|
@@ -9,12 +10,17 @@ export type Type = {
|
|
|
9
10
|
hasExtendedClickArea?: boolean;
|
|
10
11
|
propertiesDefinition?: PropertiesDefinition;
|
|
11
12
|
} & React.ComponentType<any>;
|
|
13
|
+
/**
|
|
14
|
+
* TODO: The component registry could be split into two a thin layer always on, and move some stuff to the EditStore.
|
|
15
|
+
* Some of the actions (rename, delete) and some of the data (isDroppable, hasExtendedClickArea) are editor-only.
|
|
16
|
+
*/
|
|
12
17
|
export declare class ComponentRegistry implements ComponentRegistryShareState {
|
|
13
18
|
readonly rootStore: RootStore;
|
|
14
19
|
private _typeRegistry;
|
|
15
20
|
private _customComponentRegistry;
|
|
16
21
|
private _managedPropsRegistry;
|
|
17
22
|
private _internalPropsRegistry;
|
|
23
|
+
private _editorTemplatesRegistry;
|
|
18
24
|
constructor(rootStore: RootStore);
|
|
19
25
|
addType(type: string, component: Type): void;
|
|
20
26
|
addCustomComponent(type: string, component: Type): void;
|
|
@@ -22,6 +28,8 @@ export declare class ComponentRegistry implements ComponentRegistryShareState {
|
|
|
22
28
|
renameCustomComponent(oldName: string, newName: string): void;
|
|
23
29
|
addManagedProps(type: string, props: ManagedPropsList): void;
|
|
24
30
|
deleteManagedProps(type: string): void;
|
|
31
|
+
addEditorTemplate(type: string, template: EditorTemplate<any>): void;
|
|
32
|
+
getEditorTemplates(type: string): EditorTemplate<any>[] | undefined;
|
|
25
33
|
addInternalProps(type: string, props: Array<{
|
|
26
34
|
path: string;
|
|
27
35
|
factory: () => any;
|
|
@@ -102,15 +102,10 @@ export type FromParentToChildMessageTypesMap = {
|
|
|
102
102
|
appId: string;
|
|
103
103
|
token: string;
|
|
104
104
|
accessToken: string;
|
|
105
|
-
|
|
106
|
-
agentUrl?: string;
|
|
107
|
-
agentUrls: string[];
|
|
105
|
+
agentUrl: string;
|
|
108
106
|
logContext: Record<string, unknown>;
|
|
109
107
|
};
|
|
110
108
|
"sb-editor-request-bootstrap": void;
|
|
111
|
-
"sb-update-active-agents": {
|
|
112
|
-
agentUrls: string[];
|
|
113
|
-
};
|
|
114
109
|
"sb-update-property-with-effects": {
|
|
115
110
|
sourceId: string;
|
|
116
111
|
callbackId: string;
|
|
@@ -1,15 +1,58 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ExternalProps, InternalProps, PropertiesDefinition, RawPropsToExternal } from "../user-facing/properties-panel/props-builder.js";
|
|
3
|
-
import type { AnonymousSbEntity } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { AnonymousSbEntity, PropertyInfo } from "@superblocksteam/library-shared/types";
|
|
4
4
|
export type DropTargetProps = {
|
|
5
5
|
dropTargetRef?: React.RefObject<HTMLDivElement>;
|
|
6
6
|
};
|
|
7
|
+
export interface CreationContext {
|
|
8
|
+
generateUniqueName: (baseName: string) => string;
|
|
9
|
+
}
|
|
10
|
+
export type PropertyValues<Def extends PropertiesDefinition> = {
|
|
11
|
+
[K in keyof GetAllPropsFromDefinition<Def>]?: PropertyInfo | PropertyValues<Def>;
|
|
12
|
+
};
|
|
13
|
+
type GetAllPropsFromDefinition<Def extends PropertiesDefinition> = {
|
|
14
|
+
[SectionKey in keyof Def]: Def[SectionKey] extends {
|
|
15
|
+
props: infer Props;
|
|
16
|
+
} ? Props extends Record<string, any> ? Props : never : never;
|
|
17
|
+
}[keyof Def];
|
|
18
|
+
export interface EditorTemplate<Def extends PropertiesDefinition> {
|
|
19
|
+
catalog?: {
|
|
20
|
+
displayName: string;
|
|
21
|
+
category: "COMMON" | "FORMS" | "CONTAINERS" | "MEDIA" | "ADVANCED" | string;
|
|
22
|
+
icon: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
};
|
|
25
|
+
create?: (context: CreationContext) => CreateRequest<Def> | Array<CreateRequest<Def>>;
|
|
26
|
+
}
|
|
27
|
+
export interface CreateRequest<Def extends PropertiesDefinition> {
|
|
28
|
+
type: string;
|
|
29
|
+
bind?: string;
|
|
30
|
+
properties?: PropertyValues<Def>;
|
|
31
|
+
createAt?: "root" | "dropLocation";
|
|
32
|
+
}
|
|
33
|
+
export interface ChainableComponent<PD extends PropertiesDefinition, EP extends ExternalProps<PD>> extends React.FC<EP> {
|
|
34
|
+
addEditorTemplate: (config: EditorTemplate<PD>) => ChainableComponent<PD, EP>;
|
|
35
|
+
isSb: symbol;
|
|
36
|
+
sbType: string;
|
|
37
|
+
displayName: string;
|
|
38
|
+
isCustomComponent: boolean;
|
|
39
|
+
isDroppable: boolean;
|
|
40
|
+
hasExtendedClickArea: boolean;
|
|
41
|
+
propertiesDefinition: PropertiesDefinition;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Register a component to be used with the framework.
|
|
45
|
+
*
|
|
46
|
+
* Returns a chainable component that can be used as a React component and also provides
|
|
47
|
+
* additional methods for editor integration.
|
|
48
|
+
*/
|
|
7
49
|
export declare const registerComponent: <PD extends PropertiesDefinition, EP extends ExternalProps<PD> = ExternalProps<PD>, IP extends InternalProps<PD> & DropTargetProps = InternalProps<PD> & DropTargetProps>(type: string, config: {
|
|
8
50
|
container?: boolean;
|
|
9
51
|
customComponent?: boolean;
|
|
10
52
|
hasExtendedClickArea?: boolean;
|
|
11
53
|
propertiesDefinition: PD;
|
|
12
|
-
}, Component: React.FC<IP>) =>
|
|
54
|
+
}, Component: React.FC<IP>) => ChainableComponent<PD, EP>;
|
|
13
55
|
export declare function registerEntity<PROPS, PD extends PropertiesDefinition, EP extends ExternalProps<PD> = ExternalProps<PD>>(name: string, config: {
|
|
14
56
|
propertiesDefinition: PD;
|
|
15
57
|
}, Entity: (args: RawPropsToExternal<PROPS>) => EP & AnonymousSbEntity): (args: RawPropsToExternal<PROPS>) => EP & AnonymousSbEntity;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
export declare const Button: import("
|
|
1
|
+
export declare const Button: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<{
|
|
2
|
+
general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
3
|
+
label: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
|
|
4
|
+
}>;
|
|
5
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
6
|
+
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true, undefined>;
|
|
7
|
+
} & {
|
|
8
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
9
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
10
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
11
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
12
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
13
|
+
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
14
|
+
} & {
|
|
15
|
+
margin: import("../../properties-panel/props-builder.js").Prop<{
|
|
16
|
+
top: import("@superblocksteam/library-shared").Dim<"px">;
|
|
17
|
+
bottom: import("@superblocksteam/library-shared").Dim<"px">;
|
|
18
|
+
left: import("@superblocksteam/library-shared").Dim<"px">;
|
|
19
|
+
right: import("@superblocksteam/library-shared").Dim<"px">;
|
|
20
|
+
} | undefined, true, undefined>;
|
|
21
|
+
} & {
|
|
22
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
23
|
+
}>;
|
|
24
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
25
|
+
variant: import("../../properties-panel/props-builder.js").Prop<import("./props.js").ButtonVariant, true, undefined>;
|
|
26
|
+
icon: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
|
|
27
|
+
iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true, undefined>;
|
|
28
|
+
textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
29
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
30
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true, undefined>;
|
|
31
|
+
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
|
|
32
|
+
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true, undefined>;
|
|
33
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
34
|
+
}>;
|
|
35
|
+
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
36
|
+
isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
37
|
+
}>;
|
|
38
|
+
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
39
|
+
onClick: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
40
|
+
}>;
|
|
41
|
+
}, import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
2
42
|
general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
3
43
|
label: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
|
|
4
44
|
}>;
|
|
@@ -1,4 +1,50 @@
|
|
|
1
|
-
export declare const Checkbox: import("
|
|
1
|
+
export declare const Checkbox: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<{
|
|
2
|
+
general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
3
|
+
label: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
4
|
+
defaultChecked: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
5
|
+
}>;
|
|
6
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
7
|
+
labelStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
8
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
9
|
+
}>;
|
|
10
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
11
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
12
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
13
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
14
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
15
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
16
|
+
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
17
|
+
} & {
|
|
18
|
+
margin: import("../../properties-panel/props-builder.js").Prop<{
|
|
19
|
+
top: import("@superblocksteam/library-shared").Dim<"px">;
|
|
20
|
+
bottom: import("@superblocksteam/library-shared").Dim<"px">;
|
|
21
|
+
left: import("@superblocksteam/library-shared").Dim<"px">;
|
|
22
|
+
right: import("@superblocksteam/library-shared").Dim<"px">;
|
|
23
|
+
} | undefined, true, undefined>;
|
|
24
|
+
} & {
|
|
25
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
26
|
+
}>;
|
|
27
|
+
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
28
|
+
customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
29
|
+
customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
30
|
+
required: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
|
|
31
|
+
isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
32
|
+
errorMessagePlacement: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true, undefined>;
|
|
33
|
+
}>;
|
|
34
|
+
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
35
|
+
onCheckChange: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
36
|
+
}>;
|
|
37
|
+
meta: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
38
|
+
isTouched: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
39
|
+
isChecked: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
40
|
+
}>;
|
|
41
|
+
derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
42
|
+
value: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
43
|
+
validationErrors: import("../../properties-panel/props-builder.js").Prop<any, true, undefined>;
|
|
44
|
+
isValid: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
45
|
+
showError: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
46
|
+
}>;
|
|
47
|
+
}, import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
2
48
|
general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
3
49
|
label: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
4
50
|
defaultChecked: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
@@ -6,7 +6,36 @@ import { Dim } from "@superblocksteam/library-shared";
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
export declare const getDefaultSectionChildren: () => never[];
|
|
9
|
-
export declare const Column: import("
|
|
9
|
+
export declare const Column: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<{
|
|
10
|
+
layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
|
|
11
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
12
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
13
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "top" | "bottom" | "space-around" | "space-between", true, undefined>;
|
|
14
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true, undefined>;
|
|
15
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true, undefined>;
|
|
16
|
+
}) | (Omit<{
|
|
17
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
18
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
19
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "top" | "bottom", true, undefined>;
|
|
20
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
|
|
21
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true, undefined>;
|
|
22
|
+
}) | (Omit<{
|
|
23
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
24
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
25
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true, undefined>;
|
|
26
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true, undefined>;
|
|
27
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true, undefined>;
|
|
28
|
+
}))) & {
|
|
29
|
+
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
30
|
+
}) & {
|
|
31
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
32
|
+
}>;
|
|
33
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
34
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
|
|
35
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false, undefined>;
|
|
36
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
37
|
+
}>;
|
|
38
|
+
}, import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
10
39
|
layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
|
|
11
40
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
12
41
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
@@ -16,7 +16,38 @@ type ContainerProps<T> = Omit<InternalPropsWithOptional<typeof propertiesDefinit
|
|
|
16
16
|
* - move more props to inner layout component
|
|
17
17
|
*/
|
|
18
18
|
export declare const InternalContainer: <T extends ContainerLayout>(props: ContainerProps<T>) => import("react").JSX.Element;
|
|
19
|
-
export declare const Container: import("
|
|
19
|
+
export declare const Container: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<{
|
|
20
|
+
layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
|
|
21
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
22
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
23
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "top" | "bottom" | "space-around" | "space-between", true, undefined>;
|
|
24
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true, undefined>;
|
|
25
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true, undefined>;
|
|
26
|
+
}) | (Omit<{
|
|
27
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
28
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
29
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "top" | "bottom", true, undefined>;
|
|
30
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
|
|
31
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true, undefined>;
|
|
32
|
+
}) | (Omit<{
|
|
33
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
34
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
35
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true, undefined>;
|
|
36
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true, undefined>;
|
|
37
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true, undefined>;
|
|
38
|
+
}))) & {
|
|
39
|
+
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
40
|
+
}) & {
|
|
41
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
42
|
+
}>;
|
|
43
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
44
|
+
variant: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerVariant, true, undefined>;
|
|
45
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
46
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true, undefined>;
|
|
47
|
+
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
|
|
48
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
49
|
+
}>;
|
|
50
|
+
}, import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
20
51
|
layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
|
|
21
52
|
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
22
53
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const CustomComponent: React.FC<Omit<any, "ref">>;
|
|
1
|
+
export declare const CustomComponent: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<any, Omit<any, "ref">>;
|
|
@@ -38,6 +38,6 @@ type WrappedEventProps<IP extends InternalProps<any>> = {
|
|
|
38
38
|
};
|
|
39
39
|
type SectionProps<PD extends Record<string, Prop<any>>> = Record<string, Section<PD>> & typeof defaultSections;
|
|
40
40
|
export type CustomComponentProps<PD extends Record<string, Prop<any>>, SP extends SectionProps<PD> = SectionProps<PD>, IP extends InternalProps<SP> = InternalProps<SP>> = WrappedEventProps<IP>;
|
|
41
|
-
export declare function registerComponent<PD extends CustomComponentPropertiesDefinition>(name: string, propertiesDefinition: PD, component: React.FC<CustomComponentProps<PD>>): import("
|
|
41
|
+
export declare function registerComponent<PD extends CustomComponentPropertiesDefinition>(name: string, propertiesDefinition: PD, component: React.FC<CustomComponentProps<PD>>): import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<any, any>;
|
|
42
42
|
export declare function isCustomComponent(child: ReactNode): boolean;
|
|
43
43
|
export {};
|