@superblocksteam/library 1.99.99-next.2 → 2.0.0-next.10
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-CCZMME3l.js → allPaths-DXE_RTrt.js} +2 -2
- package/dist/{allPaths-CCZMME3l.js.map → allPaths-DXE_RTrt.js.map} +1 -1
- package/dist/{allPaths-CHXNxDVP.js → allPaths-h7bsheRo.js} +2 -2
- package/dist/{allPaths-CHXNxDVP.js.map → allPaths-h7bsheRo.js.map} +1 -1
- package/dist/{allPathsLoader-DTWFaGcd.js → allPathsLoader-16QM90xQ.js} +3 -3
- package/dist/{allPathsLoader-DTWFaGcd.js.map → allPathsLoader-16QM90xQ.js.map} +1 -1
- package/dist/{allPathsLoader-Fr8EhLGp.js → allPathsLoader-BWX35Jie.js} +3 -3
- package/dist/{allPathsLoader-Fr8EhLGp.js.map → allPathsLoader-BWX35Jie.js.map} +1 -1
- package/dist/{icons-BrNMuu_I.js → icons-D_yAT9A6.js} +27 -19
- package/dist/icons-D_yAT9A6.js.map +1 -0
- package/dist/{index-U0oPeutu.js → index-tdErpvtu.js} +49094 -48912
- package/dist/{index-U0oPeutu.js.map → index-tdErpvtu.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-PcZVWYaJ.js → splitPathsBySizeLoader-7yhv4gcq.js} +2 -2
- package/dist/{splitPathsBySizeLoader-PcZVWYaJ.js.map → splitPathsBySizeLoader-7yhv4gcq.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-DHk6oFvg.js → splitPathsBySizeLoader-wQWCogRx.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DHk6oFvg.js.map → splitPathsBySizeLoader-wQWCogRx.js.map} +1 -1
- package/dist-types/edit-mode/dnd/utils.d.ts +25 -0
- package/dist-types/edit-mode/features/operation-store.d.ts +4 -0
- package/dist-types/edit-mode/source-update-api.d.ts +2 -1
- package/dist-types/internal-testing/components/table.d.ts +3 -1
- package/dist-types/lib/index.d.ts +1 -1
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +1 -1
- package/dist-types/lib/sb-trigger.d.ts +0 -1
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +6 -5
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +9 -4
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +10 -5
- package/dist-types/lib/triggers/registry.d.ts +18 -8
- package/dist-types/lib/user-facing/component-base/constants.d.ts +4 -4
- package/dist-types/lib/user-facing/component-base/sb-component.d.ts +1 -2
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +3 -3
- package/dist-types/lib/user-facing/components/button/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/button/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/column/index.d.ts +4 -5
- package/dist-types/lib/user-facing/components/column/props.d.ts +27 -29
- package/dist-types/lib/user-facing/components/container/index.d.ts +4 -5
- package/dist-types/lib/user-facing/components/container/props.d.ts +4 -5
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +0 -1
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +11 -4
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +2 -3
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +2 -3
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +2 -2
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +11 -0
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/icon/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/icon/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/image/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/image/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/input/props.d.ts +2 -4
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/modal/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/modal/props.d.ts +4 -4
- package/dist-types/lib/user-facing/components/section/index.d.ts +2 -1
- package/dist-types/lib/user-facing/components/section/props.d.ts +2 -1
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/stack/index.d.ts +4 -7
- package/dist-types/lib/user-facing/components/switch/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/switch/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/text/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/text/props.d.ts +0 -1
- package/dist-types/lib/user-facing/global-functions.d.ts +2 -1
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +11 -13
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +1 -1
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +9 -9
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +3 -4
- package/dist-types/lib/user-facing/state/types.d.ts +1 -8
- package/dist-types/lib/user-facing/utils/notification.d.ts +17 -0
- package/package.json +2 -2
- package/dist/icons-BrNMuu_I.js.map +0 -1
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-tdErpvtu.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-tdErpvtu.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, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-tdErpvtu.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-7yhv4gcq.js.map
|
package/dist/{splitPathsBySizeLoader-PcZVWYaJ.js.map → splitPathsBySizeLoader-7yhv4gcq.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-7yhv4gcq.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-tdErpvtu.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-wQWCogRx.js.map
|
package/dist/{splitPathsBySizeLoader-DHk6oFvg.js.map → splitPathsBySizeLoader-wQWCogRx.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-wQWCogRx.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Dim, type PropertyInfo } from "@superblocksteam/library-shared";
|
|
1
2
|
export declare const WithLayoutContainerTypes: Set<string>;
|
|
2
3
|
export declare const VStackLikeContainerTypes: Set<string>;
|
|
3
4
|
export declare const HStackLikeContainerTypes: Set<string>;
|
|
@@ -11,3 +12,27 @@ export declare const isDragAndDropTypeValid: ({ draggedType, dropTargetType, dro
|
|
|
11
12
|
export declare const isTypeDroppable: (type: string) => boolean;
|
|
12
13
|
export declare const isTypeDraggable: (type: string) => boolean;
|
|
13
14
|
export declare function shouldWrapInSectionAndColumn(type: string, parentType: string | undefined): boolean;
|
|
15
|
+
export declare const filterSafeStackDimensionProperties: (existingProps: {
|
|
16
|
+
width?: Dim;
|
|
17
|
+
height?: Dim;
|
|
18
|
+
}) => {
|
|
19
|
+
width?: PropertyInfo;
|
|
20
|
+
height?: PropertyInfo;
|
|
21
|
+
};
|
|
22
|
+
export declare const filterSafeGridDimensionProperties: (existingProps: {
|
|
23
|
+
width?: Dim;
|
|
24
|
+
height?: Dim;
|
|
25
|
+
}) => {
|
|
26
|
+
width?: PropertyInfo;
|
|
27
|
+
height?: PropertyInfo;
|
|
28
|
+
};
|
|
29
|
+
export declare const defaultSizeForComponent: (componentType: string, isFreeform: boolean, activeRectGUWidth?: number) => {
|
|
30
|
+
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
31
|
+
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"columns">>;
|
|
32
|
+
} | {
|
|
33
|
+
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
34
|
+
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
35
|
+
} | {
|
|
36
|
+
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
37
|
+
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fill">>;
|
|
38
|
+
};
|
|
@@ -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
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditOperationType, EditOperations, ReparentRequest, CreateRequest, SetPropertyRequest, SetPropertiesRequest, BatchUpdateRequest, ApiUpdateRequest, AddEntityRequest, UpdateEntityRequest, UpdateThemeRequest, DeleteEntityRequest, DeleteRequest, DeletePropertiesRequest } from "@superblocksteam/library-shared/types";
|
|
1
|
+
import type { EditOperationType, EditOperations, ReparentRequest, CreateRequest, SetPropertyRequest, SetPropertiesRequest, BatchUpdateRequest, ApiUpdateRequest, AddEntityRequest, UpdateEntityRequest, UpdateThemeRequest, DeleteEntityRequest, DeleteRequest, DeletePropertiesRequest, RenameElementRequest } from "@superblocksteam/library-shared/types";
|
|
2
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
3
|
type IOperationAPI = {
|
|
4
4
|
[K in EditOperationType as CamelCase<K>]: (payload: Parameters<EditOperations[K]>[0]) => Promise<ReturnType<EditOperations[K]> | undefined>;
|
|
@@ -19,6 +19,7 @@ declare class OperationAPI implements IOperationAPI {
|
|
|
19
19
|
editorAddEntity: (payload: AddEntityRequest) => Promise<void | undefined>;
|
|
20
20
|
editorUpdateEntity: (payload: UpdateEntityRequest) => Promise<void | undefined>;
|
|
21
21
|
editorDeleteEntity: (payload: DeleteEntityRequest) => Promise<void | undefined>;
|
|
22
|
+
editorRenameElement: (payload: RenameElementRequest) => Promise<void | undefined>;
|
|
22
23
|
editorUpdateTheme: (payload: UpdateThemeRequest) => Promise<void | undefined>;
|
|
23
24
|
ensureFilesSynced: () => Promise<string | undefined>;
|
|
24
25
|
}
|
|
@@ -28,9 +28,9 @@ export { copyToClipboard, navigateTo, setQueryParams, download, showAlert, logou
|
|
|
28
28
|
export { registerScope } from "./internal-details/scope/scope.jsx";
|
|
29
29
|
export { registerPage } from "./user-facing/components/page/register-page.js";
|
|
30
30
|
export { createSbScope } from "./user-facing/state/create-scope.js";
|
|
31
|
+
export { type BindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
31
32
|
export { Global, Theme, Embed, Env } from "./internal-details/scope/global.js";
|
|
32
33
|
export type { AppTheme } from "./internal-details/scope/global.js";
|
|
33
|
-
export { type BindingIdentifier } from "./user-facing/state/types.js";
|
|
34
34
|
export { SbEvent } from "./internal-details/entities.js";
|
|
35
35
|
export { useUpdateProperties } from "./user-facing/hooks/use-update-properties.js";
|
|
36
36
|
export { Prop } from "./user-facing/properties-panel/props-builder.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BindingIdentifier } from "
|
|
1
|
+
import type { BindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
2
2
|
export declare const getNormalizedIdInfo: (params: {
|
|
3
3
|
bind: BindingIdentifier | undefined;
|
|
4
4
|
propsName: string | undefined;
|
|
@@ -3,5 +3,5 @@ export type LazyFunction = ((...args: unknown[]) => unknown) & {
|
|
|
3
3
|
[lazyFunctionSymbol]: true;
|
|
4
4
|
};
|
|
5
5
|
export declare const isLazyFunction: (value: unknown) => value is LazyFunction;
|
|
6
|
-
export declare const LazyFunction: (source: string) => LazyFunction;
|
|
6
|
+
export declare const LazyFunction: (source: string, args?: string[]) => LazyFunction;
|
|
7
7
|
export {};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import { type NotificationPosition, type NotificationType } from "../../user-facing/utils/notification.jsx";
|
|
2
3
|
import type { ValueInputProp } from "../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
4
|
import type { BaseStepDef } from "../../sb-trigger.js";
|
|
4
5
|
import type { ExecutionContext } from "../base.js";
|
|
5
|
-
export type TypeOptions = "info" | "success" | "warning" | "error" | "default";
|
|
6
|
-
export type NotificationPosition = string;
|
|
7
6
|
export interface ShowAlertStep extends BaseStepDef {
|
|
8
7
|
type: typeof TriggerStepType.SHOW_ALERT;
|
|
9
8
|
message: ValueInputProp<string>;
|
|
10
|
-
style:
|
|
9
|
+
style: NotificationType;
|
|
11
10
|
alertDuration?: number;
|
|
12
11
|
alertPosition?: NotificationPosition;
|
|
13
12
|
}
|
|
14
13
|
export declare const ShowAlertTrigger: {
|
|
15
14
|
type: "showAlert";
|
|
16
15
|
execute(_context: ExecutionContext, step: ShowAlertStep): Promise<void>;
|
|
17
|
-
create(message: ValueInputProp<string>, alertType:
|
|
16
|
+
create(message: ValueInputProp<string>, alertType: NotificationType, alertDuration?: number, alertPosition?: NotificationPosition): {
|
|
18
17
|
type: "showAlert";
|
|
19
18
|
message: ValueInputProp<string>;
|
|
20
|
-
style:
|
|
19
|
+
style: NotificationType;
|
|
20
|
+
alertDuration: number | undefined;
|
|
21
|
+
alertPosition: NotificationPosition | undefined;
|
|
21
22
|
};
|
|
22
23
|
};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
2
|
import type { BaseStepDef, SelectedStateVarProps } from "../../../sb-trigger.js";
|
|
3
3
|
import type { ExecutionContext } from "../../base.js";
|
|
4
|
+
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
4
5
|
export interface ResetStateVarStep extends BaseStepDef {
|
|
5
6
|
type: typeof TriggerStepType.RESET_STATE_VAR;
|
|
6
|
-
state
|
|
7
|
+
state?: SelectedStateVarProps;
|
|
7
8
|
}
|
|
8
9
|
export declare const ResetStateVarTrigger: {
|
|
9
10
|
type: "resetStateVar";
|
|
10
|
-
execute(context: ExecutionContext,
|
|
11
|
-
create(
|
|
11
|
+
execute(context: ExecutionContext, _step: ResetStateVarStep): Promise<void>;
|
|
12
|
+
create(stateVar?: WithBindingIdentifier): {
|
|
12
13
|
type: "resetStateVar";
|
|
13
|
-
state:
|
|
14
|
+
state: {
|
|
15
|
+
name: string;
|
|
16
|
+
scopeId: any;
|
|
17
|
+
scope: any;
|
|
18
|
+
} | undefined;
|
|
14
19
|
};
|
|
15
20
|
};
|
|
@@ -2,17 +2,22 @@ import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
|
2
2
|
import type { ValueInputProp } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
3
|
import type { BaseStepDef, SelectedStateVarProps } from "../../../sb-trigger.js";
|
|
4
4
|
import type { ExecutionContext } from "../../base.js";
|
|
5
|
+
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
5
6
|
export interface SetStateVarStep extends BaseStepDef {
|
|
6
7
|
type: typeof TriggerStepType.SET_STATE_VAR;
|
|
7
|
-
state
|
|
8
|
-
value
|
|
8
|
+
state?: SelectedStateVarProps;
|
|
9
|
+
value?: ValueInputProp;
|
|
9
10
|
}
|
|
10
11
|
export declare const SetStateVarTrigger: {
|
|
11
12
|
type: "setStateVar";
|
|
12
|
-
execute(context: ExecutionContext,
|
|
13
|
-
create(
|
|
13
|
+
execute(context: ExecutionContext, _step: SetStateVarStep): Promise<void>;
|
|
14
|
+
create(stateVar?: WithBindingIdentifier, value?: ValueInputProp): {
|
|
14
15
|
type: "setStateVar";
|
|
15
|
-
state:
|
|
16
|
+
state: {
|
|
17
|
+
name: string;
|
|
18
|
+
scopeId: any;
|
|
19
|
+
scope: any;
|
|
20
|
+
} | undefined;
|
|
16
21
|
value: ValueInputProp;
|
|
17
22
|
};
|
|
18
23
|
};
|
|
@@ -115,10 +115,14 @@ declare const EventRegistry: {
|
|
|
115
115
|
};
|
|
116
116
|
readonly setStateVar: {
|
|
117
117
|
type: "setStateVar";
|
|
118
|
-
execute(context: import("./base.js").ExecutionContext,
|
|
119
|
-
create(
|
|
118
|
+
execute(context: import("./base.js").ExecutionContext, _step: import("./implementations/state/set-state-var.js").SetStateVarStep): Promise<void>;
|
|
119
|
+
create(stateVar?: import("@superblocksteam/library-shared/types").WithBindingIdentifier, value?: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp): {
|
|
120
120
|
type: "setStateVar";
|
|
121
|
-
state:
|
|
121
|
+
state: {
|
|
122
|
+
name: string;
|
|
123
|
+
scopeId: any;
|
|
124
|
+
scope: any;
|
|
125
|
+
} | undefined;
|
|
122
126
|
value: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp;
|
|
123
127
|
};
|
|
124
128
|
};
|
|
@@ -134,10 +138,14 @@ declare const EventRegistry: {
|
|
|
134
138
|
};
|
|
135
139
|
readonly resetStateVar: {
|
|
136
140
|
type: "resetStateVar";
|
|
137
|
-
execute(context: import("./base.js").ExecutionContext,
|
|
138
|
-
create(
|
|
141
|
+
execute(context: import("./base.js").ExecutionContext, _step: import("./implementations/state/reset-state-var.js").ResetStateVarStep): Promise<void>;
|
|
142
|
+
create(stateVar?: import("@superblocksteam/library-shared/types").WithBindingIdentifier): {
|
|
139
143
|
type: "resetStateVar";
|
|
140
|
-
state:
|
|
144
|
+
state: {
|
|
145
|
+
name: string;
|
|
146
|
+
scopeId: any;
|
|
147
|
+
scope: any;
|
|
148
|
+
} | undefined;
|
|
141
149
|
};
|
|
142
150
|
};
|
|
143
151
|
readonly controlTimer: {
|
|
@@ -152,10 +160,12 @@ declare const EventRegistry: {
|
|
|
152
160
|
readonly showAlert: {
|
|
153
161
|
type: "showAlert";
|
|
154
162
|
execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/show-alert.js").ShowAlertStep): Promise<void>;
|
|
155
|
-
create(message: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>, alertType: import("
|
|
163
|
+
create(message: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>, alertType: import("../user-facing/utils/notification.jsx").NotificationType, alertDuration?: number, alertPosition?: import("../user-facing/utils/notification.jsx").NotificationPosition): {
|
|
156
164
|
type: "showAlert";
|
|
157
165
|
message: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>;
|
|
158
|
-
style: import("
|
|
166
|
+
style: import("../user-facing/utils/notification.jsx").NotificationType;
|
|
167
|
+
alertDuration: number | undefined;
|
|
168
|
+
alertPosition: import("../user-facing/utils/notification.jsx").NotificationPosition | undefined;
|
|
159
169
|
};
|
|
160
170
|
};
|
|
161
171
|
readonly setProfile: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type ContainerLayout = "freeform" | "vertical" | "horizontal";
|
|
2
2
|
export type ContainerVariant = "none" | "card";
|
|
3
|
-
export type VerticalAlignment = "top" | "center" | "bottom" | "space-between" | "space-around";
|
|
4
|
-
export type HorizontalAlignment = "left" | "center" | "right" | "space-between" | "space-around";
|
|
5
|
-
export declare const VERTICAL_ALIGNMENT_MAP: Record<VerticalAlignment
|
|
6
|
-
export declare const HORIZONTAL_ALIGNMENT_MAP: Record<HorizontalAlignment
|
|
3
|
+
export type VerticalAlignment<LayoutType extends "vertical" | "horizontal" | undefined = undefined> = LayoutType extends "horizontal" ? "top" | "center" | "bottom" : "top" | "center" | "bottom" | "space-between" | "space-around";
|
|
4
|
+
export type HorizontalAlignment<LayoutType extends "vertical" | "horizontal" | undefined = undefined> = LayoutType extends "vertical" ? "left" | "center" | "right" : "left" | "center" | "right" | "space-between" | "space-around";
|
|
5
|
+
export declare const VERTICAL_ALIGNMENT_MAP: Record<VerticalAlignment<"vertical">, string>;
|
|
6
|
+
export declare const HORIZONTAL_ALIGNMENT_MAP: Record<HorizontalAlignment<"horizontal">, string>;
|
|
7
7
|
export declare const GridDefaults: {
|
|
8
8
|
DEFAULT_GRID_COLUMNS: number;
|
|
9
9
|
SLIDEOUT_DEFAULT_GRID_COLUMNS: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { WithBindingIdentifier } from "../state/types";
|
|
2
1
|
import type { Dim } from "@superblocksteam/library-shared";
|
|
3
|
-
import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { SbElement, SbInstance, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
4
3
|
export type SbComponentProps<El = HTMLElement> = {
|
|
5
4
|
name?: string;
|
|
6
5
|
bind?: WithBindingIdentifier;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const getInputValidationErrors: (props: {
|
|
2
|
-
text
|
|
3
|
-
inputType
|
|
4
|
-
isRequired
|
|
2
|
+
text?: string;
|
|
3
|
+
inputType?: string;
|
|
4
|
+
isRequired?: boolean;
|
|
5
5
|
customValidationRule?: string;
|
|
6
6
|
customErrorMessage?: string;
|
|
7
7
|
maxLength?: number;
|
|
@@ -15,7 +15,6 @@ export declare const SbButton: import("react").FC<import("../../properties-panel
|
|
|
15
15
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
16
16
|
} & {
|
|
17
17
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
18
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
19
18
|
}>;
|
|
20
19
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
21
20
|
variant: import("../../properties-panel/props-builder.js").Prop<import("./props.js").ButtonVariant, true>;
|
|
@@ -26,7 +26,6 @@ export declare const propertiesDefinition: {
|
|
|
26
26
|
margin: Prop<unknown, true>;
|
|
27
27
|
} & {
|
|
28
28
|
isVisible: Prop<boolean, true>;
|
|
29
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
30
29
|
}>;
|
|
31
30
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
32
31
|
variant: Prop<ButtonVariant, true>;
|
|
@@ -18,7 +18,6 @@ export declare const SbCheckbox: import("react").FC<import("../../properties-pan
|
|
|
18
18
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
19
19
|
} & {
|
|
20
20
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
21
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
22
21
|
}>;
|
|
23
22
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
24
23
|
customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
@@ -19,7 +19,6 @@ export declare const propertiesDefinition: {
|
|
|
19
19
|
margin: Prop<unknown, true>;
|
|
20
20
|
} & {
|
|
21
21
|
isVisible: Prop<boolean, true>;
|
|
22
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
23
22
|
}>;
|
|
24
23
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
25
24
|
customValidationRule: Prop<string, true>;
|
|
@@ -18,14 +18,14 @@ export declare const SbColumn: import("react").FC<import("../../properties-panel
|
|
|
18
18
|
}) | (Omit<{
|
|
19
19
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
20
20
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
21
|
-
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
22
|
-
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
21
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
22
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
23
23
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true>;
|
|
24
24
|
}) | (Omit<{
|
|
25
25
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
26
26
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
27
|
-
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
28
|
-
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
27
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
28
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
29
29
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
30
30
|
}))) & {
|
|
31
31
|
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
@@ -42,7 +42,6 @@ export declare const SbColumn: import("react").FC<import("../../properties-panel
|
|
|
42
42
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
43
43
|
}) & {
|
|
44
44
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
45
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
46
45
|
}>;
|
|
47
46
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
48
47
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
@@ -1,45 +1,43 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import { Prop } from "../../properties-panel/props-builder.js";
|
|
3
2
|
import { Section } from "../../properties-panel/props-builder.js";
|
|
4
3
|
export declare const propertiesDefinition: {
|
|
5
|
-
layout: Section<(((((Record<string, Prop<any, any>> & ((Omit<{
|
|
6
|
-
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
4
|
+
layout: Section<(((((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
5
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
7
6
|
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
8
|
-
readonly layout: Prop<"freeform", true>;
|
|
9
|
-
readonly columns: Prop<number, true>;
|
|
10
|
-
readonly rows: Prop<number, false>;
|
|
11
|
-
readonly rowSize: Prop<number, false>;
|
|
7
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
8
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
9
|
+
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
10
|
+
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
12
11
|
}) | (Omit<{
|
|
13
|
-
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
12
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
14
13
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
15
|
-
readonly verticalAlign:
|
|
16
|
-
readonly horizontalAlign:
|
|
17
|
-
readonly layout: Prop<"vertical", true>;
|
|
14
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
15
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
16
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true>;
|
|
18
17
|
}) | (Omit<{
|
|
19
|
-
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
18
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
20
19
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
21
|
-
readonly verticalAlign:
|
|
22
|
-
readonly horizontalAlign:
|
|
23
|
-
readonly layout: Prop<"horizontal", true>;
|
|
20
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
21
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
22
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
24
23
|
}))) & {
|
|
25
|
-
spacing: Prop<Dim<"px">, true>;
|
|
24
|
+
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
26
25
|
}) & {
|
|
27
|
-
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
26
|
+
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
28
27
|
}) & {
|
|
29
|
-
maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
|
-
minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
31
|
-
maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
32
|
-
minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
33
|
-
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
34
|
-
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
28
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
29
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
31
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
32
|
+
width: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
33
|
+
height: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
35
34
|
}) & {
|
|
36
|
-
shouldScrollContents: Prop<boolean, true>;
|
|
35
|
+
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
37
36
|
}) & {
|
|
38
|
-
isVisible: Prop<boolean, true>;
|
|
39
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
37
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
40
38
|
}>;
|
|
41
|
-
appearance: Section<Record<string, Prop<any, any>> & {
|
|
42
|
-
backgroundColor: Prop<string, false>;
|
|
43
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
39
|
+
appearance: Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
40
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
41
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
44
42
|
}>;
|
|
45
43
|
};
|
|
@@ -25,14 +25,14 @@ export declare const SbContainer: import("react").FC<import("../../properties-pa
|
|
|
25
25
|
}) | (Omit<{
|
|
26
26
|
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
27
27
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
28
|
-
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
29
|
-
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
28
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
29
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
30
30
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true>;
|
|
31
31
|
}) | (Omit<{
|
|
32
32
|
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
33
33
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
34
|
-
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
35
|
-
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
34
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
35
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
36
36
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
37
37
|
}))) & {
|
|
38
38
|
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
@@ -51,7 +51,6 @@ export declare const SbContainer: import("react").FC<import("../../properties-pa
|
|
|
51
51
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
52
52
|
}) & {
|
|
53
53
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
54
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
55
54
|
}>;
|
|
56
55
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
57
56
|
variant: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerVariant, true>;
|
|
@@ -21,14 +21,14 @@ export declare const propertiesDefinition: {
|
|
|
21
21
|
}) | (Omit<{
|
|
22
22
|
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
23
23
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
24
|
-
readonly verticalAlign: Prop<
|
|
25
|
-
readonly horizontalAlign: Prop<
|
|
24
|
+
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
25
|
+
readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
26
26
|
readonly layout: Prop<"vertical", true>;
|
|
27
27
|
}) | (Omit<{
|
|
28
28
|
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
29
29
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
30
|
-
readonly verticalAlign: Prop<
|
|
31
|
-
readonly horizontalAlign: Prop<
|
|
30
|
+
readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
31
|
+
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
32
32
|
readonly layout: Prop<"horizontal", true>;
|
|
33
33
|
}))) & {
|
|
34
34
|
spacing: Prop<Dim<"px">, true>;
|
|
@@ -47,7 +47,6 @@ export declare const propertiesDefinition: {
|
|
|
47
47
|
shouldScrollContents: Prop<boolean, true>;
|
|
48
48
|
}) & {
|
|
49
49
|
isVisible: Prop<boolean, true>;
|
|
50
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
51
50
|
}>;
|
|
52
51
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
53
52
|
variant: Prop<ContainerVariant, true>;
|
|
@@ -2,6 +2,9 @@ import React from "react";
|
|
|
2
2
|
import type { DatePickerComponentProps } from "./types.js";
|
|
3
3
|
export declare const INPUT_ADDITIONAL_MIN_HEIGHT = 17.7;
|
|
4
4
|
export declare const LABEL_EXTRA_HEIGHT_MARGIN = 4;
|
|
5
|
+
interface DatePickerComponentState {
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
}
|
|
5
8
|
declare class DatePickerComponent extends React.Component<DatePickerComponentProps, DatePickerComponentState> {
|
|
6
9
|
constructor(props: DatePickerComponentProps);
|
|
7
10
|
componentDidMount(): void;
|
|
@@ -9,6 +12,8 @@ declare class DatePickerComponent extends React.Component<DatePickerComponentPro
|
|
|
9
12
|
getValidDate: (date: string, format: string) => Date | undefined;
|
|
10
13
|
getNormalizedDateFormat: () => string;
|
|
11
14
|
getNormalizedDisplayDateFormat: () => string | undefined;
|
|
15
|
+
get valueTimezone(): string;
|
|
16
|
+
get displayTimezone(): string;
|
|
12
17
|
shouldWrapTime: () => boolean;
|
|
13
18
|
handleInteraction: (openState: boolean) => void;
|
|
14
19
|
getInitialMonth: (currentValue: string | undefined | null, minDate: Date | undefined, maxDate: Date | undefined) => Date | undefined;
|
|
@@ -19,11 +24,13 @@ declare class DatePickerComponent extends React.Component<DatePickerComponentPro
|
|
|
19
24
|
formatSelectedDate: (date: Date) => string;
|
|
20
25
|
parseSelectedDate: (dateStr: string) => Date;
|
|
21
26
|
onInputChanged: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
27
|
+
/**
|
|
28
|
+
* @param selectedDayOnly date in the local timezone
|
|
29
|
+
*/
|
|
22
30
|
onDayChanged: (selectedDayOnly: Date | undefined) => void;
|
|
31
|
+
/**
|
|
32
|
+
* @param selectedDayOnly date in the local timezone
|
|
33
|
+
*/
|
|
23
34
|
onTimeChanged: (selectedDateTime: Date | null) => void;
|
|
24
35
|
}
|
|
25
|
-
interface DatePickerComponentState {
|
|
26
|
-
selectedDateFormatted?: unknown;
|
|
27
|
-
isOpen?: boolean;
|
|
28
|
-
}
|
|
29
36
|
export default DatePickerComponent;
|