@superblocksteam/library 2.0.6-next.95 → 2.0.6-next.97
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-dC290bsV.js → allPaths-DV_nqfgu.js} +2 -2
- package/dist/{allPaths-dC290bsV.js.map → allPaths-DV_nqfgu.js.map} +1 -1
- package/dist/{allPaths-CEANzxlv.js → allPaths-Do8W1_hw.js} +2 -2
- package/dist/{allPaths-CEANzxlv.js.map → allPaths-Do8W1_hw.js.map} +1 -1
- package/dist/{allPathsLoader-zEKx5n5p.js → allPathsLoader-BYPNQ715.js} +3 -3
- package/dist/{allPathsLoader-zEKx5n5p.js.map → allPathsLoader-BYPNQ715.js.map} +1 -1
- package/dist/{allPathsLoader-Ck_TAnWx.js → allPathsLoader-DZ4ej0yO.js} +3 -3
- package/dist/{allPathsLoader-Ck_TAnWx.js.map → allPathsLoader-DZ4ej0yO.js.map} +1 -1
- package/dist/{devtools-consolidated-LdBnnhRe.js → devtools-consolidated-Nb3opUCn.js} +2 -2
- package/dist/{devtools-consolidated-LdBnnhRe.js.map → devtools-consolidated-Nb3opUCn.js.map} +1 -1
- package/dist/{index-BXQ7ECAk.js → index-3q353Tib.js} +238 -177
- package/dist/{index-BXQ7ECAk.js.map → index-3q353Tib.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-BobJ4K1V.js → splitPathsBySizeLoader-BSp5Jmf7.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BobJ4K1V.js.map → splitPathsBySizeLoader-BSp5Jmf7.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-b5glDBiC.js → splitPathsBySizeLoader-CtV8jbQy.js} +2 -2
- package/dist/{splitPathsBySizeLoader-b5glDBiC.js.map → splitPathsBySizeLoader-CtV8jbQy.js.map} +1 -1
- package/dist-types/edit-mode/create-component.d.ts +1 -1
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +22 -22
- package/dist-types/lib/internal-details/actions-context.d.ts +1 -1
- package/dist-types/lib/internal-details/entities-state.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +1 -14
- package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/create-global-object.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +1 -2
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +2 -1
- package/dist-types/lib/triggers/base.d.ts +1 -2
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +1 -8
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +3 -21
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +3 -9
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +3 -9
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +2 -9
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +2 -9
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +1 -13
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +1 -12
- package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +1 -9
- package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +2 -8
- package/dist-types/lib/triggers/implementations/run-js.d.ts +1 -8
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +2 -7
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +2 -11
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +1 -7
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +2 -9
- package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +1 -8
- package/dist-types/lib/triggers/implementations/trigger-event.d.ts +1 -7
- package/dist-types/lib/triggers/registry.d.ts +4 -175
- package/dist-types/lib/triggers/run-event-handlers.d.ts +2 -2
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -2
- package/dist-types/lib/user-facing/global-functions.d.ts +2 -1
- package/dist-types/lib/user-facing/internal-index.d.ts +1 -1
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +1 -1
- package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +1 -2
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +3 -3
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +1 -1
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +2 -4
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +1 -2
- package/dist-types/lib/user-facing/utils/notification.d.ts +1 -2
- package/package.json +2 -2
- package/dist-types/lib/sb-trigger.d.ts +0 -48
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a0 as clientExports } from "./index-
|
|
2
|
-
import { a1, a2, Y, P, Q, a3, O, a4, a5, a6, a7, a8, a9, C, aa, ab, ac, ad, ae, $, af, W, ag, ah, ai, aj, Z, B, S, s, d, e, q, u, n, R, D, w, x, f, i, g, C as C2, c, k, v, l, h, z, y, A, ak, al, am, an, ao, T, 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, E, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, N, aZ, a_, a$, b0, b1, b2, H, b3, b4, b5, b6, b7, K, b8, b9, F, ba, bb, bc, r, M, L, bd, be, bf, X, G, J, 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-3q353Tib.js";
|
|
2
|
+
import { a1, a2, Y, P, Q, a3, O, a4, a5, a6, a7, a8, a9, C, aa, ab, ac, ad, ae, $, af, W, ag, ah, ai, aj, Z, B, S, s, d, e, q, u, n, R, D, w, x, f, i, g, C as C2, c, k, v, l, h, z, y, A, ak, al, am, an, ao, T, 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, E, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, N, aZ, a_, a$, b0, b1, b2, H, b3, b4, b5, b6, b7, K, b8, b9, F, ba, bb, bc, r, M, L, bd, be, bf, X, G, J, 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-3q353Tib.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, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-3q353Tib.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-BSp5Jmf7.js.map
|
package/dist/{splitPathsBySizeLoader-BobJ4K1V.js.map → splitPathsBySizeLoader-BSp5Jmf7.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-BSp5Jmf7.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-3q353Tib.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-CtV8jbQy.js.map
|
package/dist/{splitPathsBySizeLoader-b5glDBiC.js.map → splitPathsBySizeLoader-CtV8jbQy.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-CtV8jbQy.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 type
|
|
1
|
+
import { type PropertyInfo, type SbElement, type SourceLocation } from "@superblocksteam/library-shared/types";
|
|
2
2
|
export declare const getUniqueName: (componentType: string) => string;
|
|
3
3
|
export default function createComponent({ componentType, parent, scopeName, baseProperties, skipTriggerCreation, otherComponentsUpdates, }: {
|
|
4
4
|
componentType: string;
|
|
@@ -33,7 +33,27 @@ declare class RuntimeEntitiesManager {
|
|
|
33
33
|
private getChildrenWithOptimisticUpdates;
|
|
34
34
|
getEditorWidgetChildren(instanceId: SbInstance): ChildElement[];
|
|
35
35
|
hasEditOperationsPending(): boolean;
|
|
36
|
-
getPendingOperations(): ({
|
|
36
|
+
getPendingOperations(): ((import("./operation-store.js").ReparentTransaction | {
|
|
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
|
+
}) | {
|
|
37
57
|
instanceId: SbInstance;
|
|
38
58
|
sourceId: SbElement;
|
|
39
59
|
dragStartX: number;
|
|
@@ -65,27 +85,7 @@ declare class RuntimeEntitiesManager {
|
|
|
65
85
|
} | null;
|
|
66
86
|
isApplyingResize: boolean;
|
|
67
87
|
parentPadding?: import("@superblocksteam/library-shared/types").Padding;
|
|
68
|
-
}
|
|
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
|
-
}))[];
|
|
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;
|
|
@@ -5,5 +5,5 @@ export declare const ActionsProvider: React.FC<React.PropsWithChildren<{
|
|
|
5
5
|
}>>;
|
|
6
6
|
export declare const useActions: () => {
|
|
7
7
|
reset: () => void;
|
|
8
|
-
update: (run: (entity: import("
|
|
8
|
+
update: (run: (entity: import("@superblocksteam/library-shared/types").Entity) => void) => void;
|
|
9
9
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScopeId } from "./lib/evaluator/base-entity-manager.js";
|
|
2
|
+
import type { Entity } from "@superblocksteam/library-shared/types";
|
|
2
3
|
declare const entityActions: {
|
|
3
4
|
reset: (entityName: string, scopeId: ScopeId) => void;
|
|
4
5
|
update: (entityName: string, scopeId: ScopeId, run: (entity: Entity) => void) => void;
|
|
@@ -1,30 +1,17 @@
|
|
|
1
1
|
import type { Name } from "./names.js";
|
|
2
2
|
import type { ValidateFn } from "../../../user-facing/properties-panel/validators.js";
|
|
3
3
|
import type { SbEventFlow } from "../../../user-facing/sb-event-flow.js";
|
|
4
|
-
import type {
|
|
5
|
-
import type { SbElement, SbInstance, ValidationState } from "@superblocksteam/library-shared/types";
|
|
4
|
+
import type { Executable, SbElement, SbInstance, ValidationState, EntityOutputProp, Entity, ScopedState, ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
6
5
|
export type GetterOptions = {
|
|
7
6
|
useSuspense?: boolean;
|
|
8
7
|
};
|
|
9
|
-
export type EntityOutputProp = Exclude<null | undefined | string | number | boolean | object | bigint | any[], BindingString | EntityDerivedProp<any[]>>;
|
|
10
|
-
export type EntityDerivedProp<ARGS extends any[] = any[]> = (this: Readonly<Entity>, state?: Readonly<ScopedState>, ...args: ARGS) => EntityOutputProp;
|
|
11
|
-
export type Executable<ARGS extends any[] = any[]> = (this: Entity, state?: ScopedState, ...args: ARGS) => void;
|
|
12
|
-
export type ValueInputProp<T = EntityOutputProp, ARGS extends any[] = any[]> = T | EntityDerivedProp | BindingString | ComputedProperty<T, ARGS>;
|
|
13
8
|
export type SingleInputProp<T = EntityOutputProp, ARGS extends any[] = any[]> = ValueInputProp<T, ARGS> | SbEventFlow;
|
|
14
9
|
export type NestedInputProp<T, ARGS extends any[] = any[]> = T extends object ? {
|
|
15
10
|
[K in keyof T]: SingleInputProp<T[K], ARGS> | NestedInputProp<T[K], ARGS>;
|
|
16
11
|
} : never;
|
|
17
12
|
export type InputProp<T = EntityOutputProp, ARGS extends any[] = any[]> = SingleInputProp<T, ARGS> | NestedInputProp<T, ARGS>;
|
|
18
13
|
export type EntityFunction<ARGS extends any[] = any[], R = EntityOutputProp> = (this: Entity, state: ScopedState, ...ARGS: ARGS) => R;
|
|
19
|
-
export type EntityType = "global" | "theme" | "variable" | "api" | "timer" | (string & {});
|
|
20
|
-
export type Entity = {
|
|
21
|
-
[key: string]: EntityOutputProp;
|
|
22
|
-
type: EntityType;
|
|
23
|
-
};
|
|
24
14
|
export type ScopeId = string;
|
|
25
|
-
export type ScopedState = {
|
|
26
|
-
[key: string]: Entity | ScopedState;
|
|
27
|
-
};
|
|
28
15
|
export type InternalScope = {
|
|
29
16
|
id: string;
|
|
30
17
|
name?: string;
|
package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EntityDerivedProp } from "../base-entity-manager.js";
|
|
2
1
|
import type { BindingString } from "@superblocksteam/library-shared";
|
|
2
|
+
import type { EntityDerivedProp } from "@superblocksteam/library-shared/types";
|
|
3
3
|
declare const transformBindings: (value: BindingString) => Function;
|
|
4
4
|
export declare const toEvalFunc: ([prop, binding]: [string, BindingString]) => [string, EntityDerivedProp];
|
|
5
5
|
export declare const stringToJS: (string: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EntityDerivedProp, EntityOutputProp, ScopedState } from "./base-entity-manager.js";
|
|
2
1
|
import type { Name } from "./names.js";
|
|
2
|
+
import type { EntityDerivedProp, EntityOutputProp, ScopedState } from "@superblocksteam/library-shared/types";
|
|
3
3
|
export type ComputeParams<ARGS extends any[] = any[]> = {
|
|
4
4
|
snapshot: Readonly<ScopedState>;
|
|
5
5
|
entityName: Name;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ScopedState } from "
|
|
1
|
+
import type { ScopedState } from "@superblocksteam/library-shared/types";
|
|
2
2
|
export declare const ARGS_VAR_NAME = "$SB_args";
|
|
3
3
|
export declare const USER_JS_CODE_VAR_NAME = "$SB_userJSCode";
|
|
4
4
|
export declare const SNAPSHOT_VAR_NAME = "$SB_snapshot";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InternalScope } from "./base-entity-manager.js";
|
|
2
|
+
import type { ScopedState } from "@superblocksteam/library-shared/types";
|
|
2
3
|
export declare function createScopeProxy(scopes: InternalScope[], useSuspense?: boolean): ScopedState;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Entity } from "
|
|
2
|
-
import type { DeepObserveChange } from "@superblocksteam/library-shared/types";
|
|
1
|
+
import type { DeepObserveChange, Entity } from "@superblocksteam/library-shared/types";
|
|
3
2
|
type IChange = DeepObserveChange;
|
|
4
3
|
type ChangeWithRelatedObject = IChange & {
|
|
5
4
|
relatedEntity?: Entity;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type ValidationState, type SbElement, type SbInstance } from "@superblocksteam/library-shared/types";
|
|
2
2
|
import { type Name } from "./names.js";
|
|
3
|
-
import type { IEntityManager,
|
|
3
|
+
import type { IEntityManager, SingleInputProp, InternalScope, ScopeId, InputProp, GetterOptions } from "./base-entity-manager.js";
|
|
4
4
|
import type { ValidateFn } from "../../../user-facing/properties-panel/validators.js";
|
|
5
5
|
import type { ComponentRegistry } from "../features/component-registry.js";
|
|
6
|
+
import type { Executable, Entity, ScopedState } from "@superblocksteam/library-shared/types";
|
|
6
7
|
export declare const GLOBAL_SCOPE_ID = "Global";
|
|
7
8
|
export declare class EntityManager implements IEntityManager {
|
|
8
9
|
readonly componentRegistry: ComponentRegistry;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EntityDerivedProp } from "
|
|
1
|
+
import type { EntityDerivedProp } from "@superblocksteam/library-shared/types";
|
|
2
2
|
export declare const prettyPrintFunction: (func: EntityDerivedProp, args: any[], fnName: string) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Entity, ScopedState } from "
|
|
1
|
+
import type { Entity, ScopedState } from "@superblocksteam/library-shared/types";
|
|
2
2
|
declare function sanitizeObject<T extends object>(obj: T): T;
|
|
3
3
|
declare function sanitizeEntity<T extends Entity>(entity: T): T;
|
|
4
4
|
declare function sanitizeScopedState(state: ScopedState): ScopedState;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SbEventFlow } from "../../../user-facing/sb-event-flow.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { SingleInputProp, InputProp, EntityFunction } from "./base-entity-manager.js";
|
|
3
3
|
import type { LazyFunction } from "./lazy-function.js";
|
|
4
4
|
import type { DataTypeString } from "@superblocksteam/library-shared/props";
|
|
5
|
+
import type { EntityDerivedProp, EntityOutputProp } from "@superblocksteam/library-shared/types";
|
|
5
6
|
type ExecutableType = "normal" | "mustache-bindings" | "external-function" | "event" | "lazy-function";
|
|
6
7
|
export type ExecutableOrValue = {
|
|
7
8
|
type: ExecutableType;
|
|
@@ -2,8 +2,7 @@ import type { ScopeId } from "../internal-details/lib/evaluator/base-entity-mana
|
|
|
2
2
|
import type { Name } from "../internal-details/lib/evaluator/names.js";
|
|
3
3
|
import type { RootStore } from "../internal-details/lib/root-store.js";
|
|
4
4
|
import type { ApiV2ExecutionResponse } from "../internal-details/lib/types.js";
|
|
5
|
-
import type { BaseStepDef } from "
|
|
6
|
-
import type { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
5
|
+
import type { BaseStepDef, TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
7
6
|
export interface ExecutionContext {
|
|
8
7
|
scopeId: ScopeId;
|
|
9
8
|
name: Name;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
1
|
import type { SbEventFlow } from "../../../user-facing/sb-event-flow.js";
|
|
4
2
|
import type { ExecutionContext } from "../../base.js";
|
|
5
|
-
import type { SbApiWithFunctions } from "@superblocksteam/library-shared/types";
|
|
6
|
-
export interface CancelApisStep extends BaseStepDef {
|
|
7
|
-
type: typeof TriggerStepType.CANCEL_APIS;
|
|
8
|
-
apis: SbApiWithFunctions[];
|
|
9
|
-
onCancel?: SbEventFlow;
|
|
10
|
-
}
|
|
3
|
+
import type { CancelApisStep, SbApiWithFunctions } from "@superblocksteam/library-shared/types";
|
|
11
4
|
export declare const CancelApisTrigger: {
|
|
12
5
|
type: "cancelApi";
|
|
13
6
|
execute(_context: ExecutionContext, step: CancelApisStep): Promise<void>;
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
import type { SbEventFlow } from "../../../user-facing/sb-event-flow.js";
|
|
5
|
-
import type { ExecutionContext } from "../../base.js";
|
|
6
|
-
export interface RunApisStep extends BaseStepDef {
|
|
7
|
-
type: typeof TriggerStepType.RUN_APIS;
|
|
8
|
-
apis: SbApiWithFunctions[];
|
|
9
|
-
onSuccess?: SbEventFlow;
|
|
10
|
-
onError?: SbEventFlow;
|
|
11
|
-
}
|
|
12
|
-
export declare const RunApisTrigger: {
|
|
13
|
-
type: "executeApi";
|
|
14
|
-
execute(context: ExecutionContext, step: RunApisStep, onFinish?: (responses: PromiseSettledResult<ApiV2ExecutionResponse | undefined>[]) => void): Promise<void>;
|
|
15
|
-
create(apis: SbApiWithFunctions[], onSuccess?: SbEventFlow, onError?: SbEventFlow): {
|
|
16
|
-
type: "executeApi";
|
|
17
|
-
apis: SbApiWithFunctions[];
|
|
18
|
-
onSuccess: SbEventFlow | undefined;
|
|
19
|
-
onError: SbEventFlow | undefined;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
1
|
+
import type { Trigger } from "../../base.js";
|
|
2
|
+
import type { RunApisStep } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const RunApisTrigger: Trigger<RunApisStep>;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
1
|
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { ControlModalStep } from "@superblocksteam/library-shared/types";
|
|
4
3
|
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
5
|
-
export interface ControlModalStep extends BaseStepDef {
|
|
6
|
-
type: typeof TriggerStepType.CONTROL_MODAL;
|
|
7
|
-
name?: string;
|
|
8
|
-
direction: "open" | "close";
|
|
9
|
-
}
|
|
10
4
|
export declare const ControlModalTrigger: {
|
|
11
5
|
type: "controlModal";
|
|
12
6
|
execute(context: ExecutionContext, step: ControlModalStep): Promise<void>;
|
|
13
|
-
create(modal: WithBindingIdentifier,
|
|
7
|
+
create(modal: WithBindingIdentifier, action: "open" | "close"): {
|
|
14
8
|
type: "controlModal";
|
|
15
9
|
name: string | undefined;
|
|
16
|
-
|
|
10
|
+
action: "close" | "open";
|
|
17
11
|
};
|
|
18
12
|
};
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
1
|
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { ControlSlideoutStep } from "@superblocksteam/library-shared/types";
|
|
4
3
|
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
5
|
-
export interface ControlSlideoutStep extends BaseStepDef {
|
|
6
|
-
type: typeof TriggerStepType.CONTROL_SLIDEOUT;
|
|
7
|
-
name?: string;
|
|
8
|
-
direction: "open" | "close";
|
|
9
|
-
}
|
|
10
4
|
export declare const ControlSlideoutTrigger: {
|
|
11
5
|
type: "controlSlideout";
|
|
12
6
|
execute(context: ExecutionContext, step: ControlSlideoutStep): Promise<void>;
|
|
13
|
-
create(slideout: WithBindingIdentifier,
|
|
7
|
+
create(slideout: WithBindingIdentifier, action: "open" | "close"): {
|
|
14
8
|
type: "controlSlideout";
|
|
15
9
|
name: string | undefined;
|
|
16
|
-
|
|
10
|
+
action: "close" | "open";
|
|
17
11
|
};
|
|
18
12
|
};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { ValueInputProp } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
|
-
import type { BaseStepDef, SelectedWidgetProps } from "../../../sb-trigger.js";
|
|
4
1
|
import type { ExecutionContext } from "../../base.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
widget: SelectedWidgetProps;
|
|
8
|
-
propertyName: string;
|
|
9
|
-
resetChildren: ValueInputProp;
|
|
10
|
-
}
|
|
2
|
+
import type { SelectedWidgetProps, ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { ResetComponentStep } from "@superblocksteam/library-shared/types";
|
|
11
4
|
export declare const ResetComponentTrigger: {
|
|
12
5
|
type: "resetComponent";
|
|
13
6
|
execute(context: ExecutionContext, step: ResetComponentStep): Promise<void>;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { ValueInputProp } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
|
-
import type { SelectedWidgetProps, BaseStepDef } from "../../../sb-trigger.js";
|
|
4
1
|
import type { ExecutionContext } from "../../base.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
widget: SelectedWidgetProps;
|
|
8
|
-
propertyName: string;
|
|
9
|
-
propertyValue: ValueInputProp;
|
|
10
|
-
}
|
|
2
|
+
import type { SelectedWidgetProps, ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { SetComponentPropertyStep } from "@superblocksteam/library-shared/types";
|
|
11
4
|
export declare const SetComponentPropertyTrigger: {
|
|
12
5
|
type: "setComponentProperty";
|
|
13
6
|
execute(context: ExecutionContext, step: SetComponentPropertyStep): Promise<void>;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { ValueInputProp } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
4
1
|
import type { ExecutionContext } from "../../base.js";
|
|
5
|
-
|
|
6
|
-
type: typeof TriggerStepType.NAVIGATE_TO_APP;
|
|
7
|
-
targetApp: {
|
|
8
|
-
name: string;
|
|
9
|
-
id: string;
|
|
10
|
-
url: string;
|
|
11
|
-
};
|
|
12
|
-
queryParams: ValueInputProp<Record<string, string>>;
|
|
13
|
-
newWindowApp: boolean;
|
|
14
|
-
}
|
|
2
|
+
import type { NavigateToAppStep } from "@superblocksteam/library-shared/types";
|
|
15
3
|
export declare const NavigateToAppTrigger: {
|
|
16
4
|
type: "navigateToApp";
|
|
17
5
|
execute(_context: ExecutionContext, step: NavigateToAppStep): Promise<void>;
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { ValueInputProp } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
4
1
|
import type { ExecutionContext } from "../../base.js";
|
|
5
|
-
|
|
6
|
-
type: typeof TriggerStepType.NAVIGATE_TO_ROUTE;
|
|
7
|
-
routeId: string;
|
|
8
|
-
routePathDescriptor: string;
|
|
9
|
-
routeParams?: ValueInputProp<Record<string, string>>;
|
|
10
|
-
queryParams?: ValueInputProp<Record<string, string>>;
|
|
11
|
-
keepQueryParams?: boolean;
|
|
12
|
-
newWindow: boolean;
|
|
13
|
-
}
|
|
2
|
+
import type { NavigateToRouteStep } from "@superblocksteam/library-shared/types";
|
|
14
3
|
export declare const NavigateToRouteTrigger: {
|
|
15
4
|
type: "navigateToRoute";
|
|
16
5
|
execute(context: ExecutionContext, step: NavigateToRouteStep): Promise<void>;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
1
|
import type { ExecutionContext } from "../../base.js";
|
|
4
|
-
|
|
5
|
-
type: typeof TriggerStepType.NAVIGATE_TO;
|
|
6
|
-
url: string;
|
|
7
|
-
newWindow: boolean;
|
|
8
|
-
replaceHistory?: boolean;
|
|
9
|
-
arguments?: string;
|
|
10
|
-
}
|
|
2
|
+
import type { NavigateToStep } from "@superblocksteam/library-shared/types";
|
|
11
3
|
export declare const NavigateToTrigger: {
|
|
12
4
|
type: "navigateTo";
|
|
13
5
|
execute(_context: ExecutionContext, step: NavigateToStep): Promise<void>;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { ValueInputProp } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
4
1
|
import type { ExecutionContext } from "../../base.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
queryParams?: Record<string, ValueInputProp<string>>;
|
|
8
|
-
keepQueryParams?: boolean;
|
|
9
|
-
}
|
|
2
|
+
import type { ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { SetQueryParamsStep } from "@superblocksteam/library-shared/types";
|
|
10
4
|
export declare const SetQueryParamsTrigger: {
|
|
11
5
|
type: "setQueryParams";
|
|
12
6
|
execute(_context: ExecutionContext, step: SetQueryParamsStep): Promise<void>;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { Executable } from "../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
|
-
import type { BaseStepDef } from "../../sb-trigger.js";
|
|
4
1
|
import type { ExecutionContext } from "../base.js";
|
|
5
|
-
|
|
6
|
-
type: typeof TriggerStepType.RUN_JS;
|
|
7
|
-
handler?: Executable;
|
|
8
|
-
code?: string;
|
|
9
|
-
}
|
|
2
|
+
import type { Executable, RunJsStep } from "@superblocksteam/library-shared/types";
|
|
10
3
|
export declare const RunJsTrigger: {
|
|
11
4
|
type: "runJs";
|
|
12
5
|
create(handler: Executable): {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef } from "../../sb-trigger.js";
|
|
3
1
|
import type { ExecutionContext } from "../base.js";
|
|
4
|
-
|
|
5
|
-
type: typeof TriggerStepType.SET_PROFILE;
|
|
6
|
-
profileId: string;
|
|
7
|
-
profileAction: "set" | "unset";
|
|
8
|
-
}
|
|
2
|
+
import type { SetProfileStep } from "@superblocksteam/library-shared/types";
|
|
9
3
|
export declare const SetProfileTrigger: {
|
|
10
4
|
type: "setProfile";
|
|
11
5
|
execute(_context: ExecutionContext, step: SetProfileStep): Promise<void>;
|
|
@@ -13,5 +7,6 @@ export declare const SetProfileTrigger: {
|
|
|
13
7
|
type: "setProfile";
|
|
14
8
|
profileId: string;
|
|
15
9
|
profileAction: "unset" | "set";
|
|
10
|
+
action: "unset" | "set";
|
|
16
11
|
};
|
|
17
12
|
};
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type NotificationPosition, type NotificationType } from "../../user-facing/utils/notification.jsx";
|
|
3
|
-
import type { ValueInputProp } from "../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
4
|
-
import type { BaseStepDef } from "../../sb-trigger.js";
|
|
1
|
+
import { NotificationPosition } from "@superblocksteam/library-shared/types";
|
|
5
2
|
import type { ExecutionContext } from "../base.js";
|
|
6
|
-
|
|
7
|
-
type: typeof TriggerStepType.SHOW_ALERT;
|
|
8
|
-
message: ValueInputProp<string>;
|
|
9
|
-
style: NotificationType;
|
|
10
|
-
alertDuration?: number;
|
|
11
|
-
alertPosition?: NotificationPosition;
|
|
12
|
-
}
|
|
3
|
+
import type { ShowAlertStep, NotificationType, ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
13
4
|
export declare const ShowAlertTrigger: {
|
|
14
5
|
type: "showAlert";
|
|
15
6
|
execute(context: ExecutionContext, step: ShowAlertStep): Promise<void>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
1
|
import type { ExecutionContext } from "../../base.js";
|
|
4
|
-
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
5
|
-
export interface ResetStateVarStep extends BaseStepDef {
|
|
6
|
-
type: typeof TriggerStepType.RESET_STATE_VAR;
|
|
7
|
-
variable?: WithBindingIdentifier;
|
|
8
|
-
}
|
|
2
|
+
import type { ResetStateVarStep, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
9
3
|
export declare const ResetStateVarTrigger: {
|
|
10
4
|
type: "resetStateVar";
|
|
11
5
|
execute(context: ExecutionContext, step: ResetStateVarStep): Promise<void>;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { ValueInputProp } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
4
1
|
import type { ExecutionContext } from "../../base.js";
|
|
5
|
-
import type {
|
|
6
|
-
|
|
7
|
-
type: typeof TriggerStepType.SET_STATE_VAR;
|
|
8
|
-
variable?: WithBindingIdentifier;
|
|
9
|
-
value?: ValueInputProp;
|
|
10
|
-
}
|
|
2
|
+
import type { ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { SetStateVarStep, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
11
4
|
export declare const SetStateVarTrigger: {
|
|
12
5
|
type: "setStateVar";
|
|
13
6
|
execute(context: ExecutionContext, step: SetStateVarStep): Promise<void>;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
1
|
import type { ExecutionContext } from "../../base.js";
|
|
4
|
-
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
5
|
-
export interface ControlTimerStep extends BaseStepDef {
|
|
6
|
-
type: typeof TriggerStepType.CONTROL_TIMER;
|
|
7
|
-
timer?: WithBindingIdentifier;
|
|
8
|
-
action: "start" | "stop" | "toggle";
|
|
9
|
-
}
|
|
2
|
+
import type { ControlTimerStep, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
10
3
|
export declare const ControlTimerTrigger: {
|
|
11
4
|
type: "controlTimer";
|
|
12
5
|
execute(_context: ExecutionContext, step: ControlTimerStep): Promise<void>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef, SelectedEventProps } from "../../sb-trigger.js";
|
|
3
1
|
import type { ExecutionContext } from "../base.js";
|
|
4
|
-
|
|
5
|
-
type: typeof TriggerStepType.TRIGGER_EVENT;
|
|
6
|
-
event: SelectedEventProps;
|
|
7
|
-
eventPayload: Record<string, string>;
|
|
8
|
-
}
|
|
2
|
+
import type { SelectedEventProps, TriggerEventStep } from "@superblocksteam/library-shared/types";
|
|
9
3
|
export declare const TriggerEventTrigger: {
|
|
10
4
|
type: "triggerEvent";
|
|
11
5
|
execute(_context: ExecutionContext, step: TriggerEventStep): Promise<void>;
|