@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
|
@@ -1,176 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type: "runJs";
|
|
6
|
-
handler: import("../internal-details/lib/evaluator/base-entity-manager.js").Executable;
|
|
7
|
-
code: string;
|
|
8
|
-
};
|
|
9
|
-
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/run-js.js").RunJsStep): Promise<void>;
|
|
10
|
-
};
|
|
11
|
-
readonly triggerEvent: {
|
|
12
|
-
type: "triggerEvent";
|
|
13
|
-
execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/trigger-event.js").TriggerEventStep): Promise<void>;
|
|
14
|
-
create(eventName: string, eventPayload: Record<string, string>): {
|
|
15
|
-
type: "triggerEvent";
|
|
16
|
-
event: import("../sb-trigger.js").SelectedEventProps;
|
|
17
|
-
eventPayload: Record<string, string>;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
readonly navigateTo: {
|
|
21
|
-
type: "navigateTo";
|
|
22
|
-
execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/navigate/navigate-to.js").NavigateToStep): Promise<void>;
|
|
23
|
-
create(props: {
|
|
24
|
-
url: string;
|
|
25
|
-
newWindow?: boolean;
|
|
26
|
-
replaceHistory?: boolean;
|
|
27
|
-
arguments?: string;
|
|
28
|
-
}): {
|
|
29
|
-
type: "navigateTo";
|
|
30
|
-
url: string;
|
|
31
|
-
newWindow: boolean;
|
|
32
|
-
replaceHistory: boolean | undefined;
|
|
33
|
-
arguments: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
readonly navigateToApp: {
|
|
37
|
-
type: "navigateToApp";
|
|
38
|
-
execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/navigate/navigate-to-app.js").NavigateToAppStep): Promise<void>;
|
|
39
|
-
create(appId: string): {
|
|
40
|
-
type: "navigateToApp";
|
|
41
|
-
targetApp: {
|
|
42
|
-
name: string;
|
|
43
|
-
id: string;
|
|
44
|
-
url: string;
|
|
45
|
-
};
|
|
46
|
-
queryParams: {};
|
|
47
|
-
newWindowApp: false;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
readonly navigateToRoute: {
|
|
51
|
-
type: "navigateToRoute";
|
|
52
|
-
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/navigate/navigate-to-route.js").NavigateToRouteStep): Promise<void>;
|
|
53
|
-
create(route: string): {
|
|
54
|
-
type: "navigateToRoute";
|
|
55
|
-
routeId: string;
|
|
56
|
-
routePathDescriptor: string;
|
|
57
|
-
newWindow: false;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
readonly setQueryParams: {
|
|
61
|
-
type: "setQueryParams";
|
|
62
|
-
execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/navigate/set-query-params.js").SetQueryParamsStep): Promise<void>;
|
|
63
|
-
create(queryParams: Record<string, import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>>, keepQueryParams?: any): {
|
|
64
|
-
type: "setQueryParams";
|
|
65
|
-
queryParams: Record<string, import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>>;
|
|
66
|
-
keepQueryParams: any;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
readonly controlSlideout: {
|
|
70
|
-
type: "controlSlideout";
|
|
71
|
-
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/components/control-slideout.js").ControlSlideoutStep): Promise<void>;
|
|
72
|
-
create(slideout: import("@superblocksteam/library-shared/types").WithBindingIdentifier, direction: "open" | "close"): {
|
|
73
|
-
type: "controlSlideout";
|
|
74
|
-
name: string | undefined;
|
|
75
|
-
direction: "close" | "open";
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
readonly controlModal: {
|
|
79
|
-
type: "controlModal";
|
|
80
|
-
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/components/control-modal.js").ControlModalStep): Promise<void>;
|
|
81
|
-
create(modal: import("@superblocksteam/library-shared/types").WithBindingIdentifier, direction: "open" | "close"): {
|
|
82
|
-
type: "controlModal";
|
|
83
|
-
name: string | undefined;
|
|
84
|
-
direction: "close" | "open";
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
readonly resetComponent: {
|
|
88
|
-
type: "resetComponent";
|
|
89
|
-
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/components/reset-component.js").ResetComponentStep): Promise<void>;
|
|
90
|
-
create(widget: import("../sb-trigger.js").SelectedWidgetProps, propertyName: string, resetChildren: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp): {
|
|
91
|
-
type: "resetComponent";
|
|
92
|
-
widget: import("../sb-trigger.js").SelectedWidgetProps;
|
|
93
|
-
propertyName: string;
|
|
94
|
-
resetChildren: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
readonly executeApi: {
|
|
98
|
-
type: "executeApi";
|
|
99
|
-
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/apis/run-apis.js").RunApisStep, onFinish?: (responses: PromiseSettledResult<import("../internal-details/lib/types.js").ApiV2ExecutionResponse | undefined>[]) => void): Promise<void>;
|
|
100
|
-
create(apis: import("@superblocksteam/library-shared/types").SbApiWithFunctions[], onSuccess?: import("../index.js").SbEventFlow, onError?: import("../index.js").SbEventFlow): {
|
|
101
|
-
type: "executeApi";
|
|
102
|
-
apis: import("@superblocksteam/library-shared/types").SbApiWithFunctions[];
|
|
103
|
-
onSuccess: import("../index.js").SbEventFlow | undefined;
|
|
104
|
-
onError: import("../index.js").SbEventFlow | undefined;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
readonly cancelApi: {
|
|
108
|
-
type: "cancelApi";
|
|
109
|
-
execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/apis/cancel-apis.js").CancelApisStep): Promise<void>;
|
|
110
|
-
create(apis: import("@superblocksteam/library-shared/types").SbApiWithFunctions[], onCancel?: import("../index.js").SbEventFlow): {
|
|
111
|
-
type: "cancelApi";
|
|
112
|
-
apis: import("@superblocksteam/library-shared/types").SbApiWithFunctions[];
|
|
113
|
-
onCancel: import("../index.js").SbEventFlow | undefined;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
readonly setStateVar: {
|
|
117
|
-
type: "setStateVar";
|
|
118
|
-
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/state/set-state-var.js").SetStateVarStep): Promise<void>;
|
|
119
|
-
create(variable?: import("@superblocksteam/library-shared/types").WithBindingIdentifier, value?: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp): {
|
|
120
|
-
type: "setStateVar";
|
|
121
|
-
variable: import("@superblocksteam/library-shared/types").WithBindingIdentifier | undefined;
|
|
122
|
-
value: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
readonly setComponentProperty: {
|
|
126
|
-
type: "setComponentProperty";
|
|
127
|
-
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/components/set-component-property.js").SetComponentPropertyStep): Promise<void>;
|
|
128
|
-
create(widget: import("../sb-trigger.js").SelectedWidgetProps, propertyName: string, propertyValue: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp): {
|
|
129
|
-
type: "setComponentProperty";
|
|
130
|
-
widget: import("../sb-trigger.js").SelectedWidgetProps;
|
|
131
|
-
propertyName: string;
|
|
132
|
-
propertyValue: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
readonly resetStateVar: {
|
|
136
|
-
type: "resetStateVar";
|
|
137
|
-
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/state/reset-state-var.js").ResetStateVarStep): Promise<void>;
|
|
138
|
-
create(variable?: import("@superblocksteam/library-shared/types").WithBindingIdentifier): {
|
|
139
|
-
type: "resetStateVar";
|
|
140
|
-
variable: import("@superblocksteam/library-shared/types").WithBindingIdentifier | undefined;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
readonly controlTimer: {
|
|
144
|
-
type: "controlTimer";
|
|
145
|
-
execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/timers/control-timer.js").ControlTimerStep): Promise<void>;
|
|
146
|
-
create(timer: import("@superblocksteam/library-shared/types").WithBindingIdentifier, action: "start" | "stop" | "toggle"): {
|
|
147
|
-
type: "controlTimer";
|
|
148
|
-
timer: import("@superblocksteam/library-shared/types").WithBindingIdentifier;
|
|
149
|
-
action: "toggle" | "stop" | "start";
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
readonly showAlert: {
|
|
153
|
-
type: "showAlert";
|
|
154
|
-
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("../user-facing/utils/notification.jsx").NotificationType, alertDuration?: number, alertPosition?: import("../user-facing/utils/notification.jsx").NotificationPosition): {
|
|
156
|
-
type: "showAlert";
|
|
157
|
-
message: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>;
|
|
158
|
-
style: import("../user-facing/utils/notification.jsx").NotificationType;
|
|
159
|
-
alertDuration: number | undefined;
|
|
160
|
-
alertPosition: import("../user-facing/utils/notification.jsx").NotificationPosition | undefined;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
readonly setProfile: {
|
|
164
|
-
type: "setProfile";
|
|
165
|
-
execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/set-profile.js").SetProfileStep): Promise<void>;
|
|
166
|
-
create(profileId: string, profileAction: "set" | "unset"): {
|
|
167
|
-
type: "setProfile";
|
|
168
|
-
profileId: string;
|
|
169
|
-
profileAction: "unset" | "set";
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
export type ValidStepDef = ReturnType<(typeof EventRegistry)[keyof typeof EventRegistry]["create"]> & {
|
|
174
|
-
id: string;
|
|
175
|
-
};
|
|
1
|
+
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { Trigger } from "./base.js";
|
|
3
|
+
import type { ValidStepDef } from "@superblocksteam/library-shared/types";
|
|
4
|
+
declare const EventRegistry: Record<TriggerStepType, Trigger<ValidStepDef>>;
|
|
176
5
|
export default EventRegistry;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ScopeId } from "../internal-details/lib/evaluator/base-entity-manager.js";
|
|
2
2
|
import type { Name } from "../internal-details/lib/evaluator/names.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ISbEventFlow, ScopedState, StepDef, ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
4
4
|
export declare const runEventHandlers: ({ flow, name, scopeId, additionalContext, }: {
|
|
5
|
-
flow?:
|
|
5
|
+
flow?: ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
6
6
|
name: Name;
|
|
7
7
|
scopeId: ScopeId;
|
|
8
8
|
additionalContext?: Record<string, any>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { MultiStepDef } from "../../../sb-trigger.js";
|
|
2
1
|
import type { Intent } from "@blueprintjs/core";
|
|
3
2
|
import type { Dim } from "@superblocksteam/library-shared";
|
|
4
|
-
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { MultiStepDef, TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
5
4
|
import type { ApplicationScope, Padding, PerSideBorder } from "@superblocksteam/shared";
|
|
6
5
|
export type ExternalDropdownOption = {
|
|
7
6
|
label: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationPosition } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { NotificationType } from "@superblocksteam/library-shared/types";
|
|
2
3
|
export declare enum Types {
|
|
3
4
|
STRING = "STRING",
|
|
4
5
|
NUMBER = "NUMBER",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { registerSbComponent } from "../internal-details/sb-wrapper.jsx";
|
|
2
2
|
export { useActions } from "../internal-details/actions-context.jsx";
|
|
3
|
-
export type { Entity } from "
|
|
3
|
+
export type { Entity } from "@superblocksteam/library-shared/types";
|
|
4
4
|
export { useScope } from "../internal-details/scope/scope-context.jsx";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import { Prop, Section } from "../props-builder.js";
|
|
3
|
-
import type { ScopedState } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
4
3
|
import type { ContainerLayout, HorizontalAlignment, VerticalAlignment } from "../../component-base/constants.js";
|
|
5
4
|
import type { DimModes } from "@superblocksteam/library-shared";
|
|
6
5
|
import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
|
|
6
|
+
import type { ScopedState } from "@superblocksteam/library-shared/types";
|
|
7
7
|
import type { Padding } from "@superblocksteam/library-shared/types";
|
|
8
8
|
export declare const size: ({ defaults, defaultsOnAdd, hasMinWidth, hasMaxWidth, hasMinHeight, hasMaxHeight, showMinWidth, showMinHeight, showMaxWidth, showMaxHeight, showWidth, showHeight, }?: {
|
|
9
9
|
defaults?: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ScopedState } from "../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
2
|
-
import type { Entity } from "../internal-index.js";
|
|
3
1
|
import type { Section } from "./props-builder.js";
|
|
4
2
|
import type { PropertiesPanelDefinition } from "@superblocksteam/library-shared/props";
|
|
3
|
+
import type { ScopedState, Entity } from "@superblocksteam/library-shared/types";
|
|
5
4
|
declare function createPropertiesPanelDefinition(sections: Record<string, Section>, entity?: Entity, scopedState?: ScopedState): PropertiesPanelDefinition;
|
|
6
5
|
export { createPropertiesPanelDefinition };
|
|
@@ -3,11 +3,11 @@ import { createManagedPropsList } from "./create-managed-props-list.js";
|
|
|
3
3
|
import type { SbComponentProps } from "./../component-base/sb-component.js";
|
|
4
4
|
import type { ValidateFn, ValidationResult } from "./validators.js";
|
|
5
5
|
import type { RuntimeWidgetMeta } from "../../../edit-mode/features/runtime-widgets-manager.js";
|
|
6
|
-
import type {
|
|
6
|
+
import type { InputProp, SingleInputProp, EntityFunction } from "../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
7
7
|
import type { SbEventFlow } from "../sb-event-flow.js";
|
|
8
8
|
import type { Dim, DimModes, EvaluateOrValueComputedArgs } from "@superblocksteam/library-shared";
|
|
9
9
|
import type { HeaderType } from "@superblocksteam/library-shared/props";
|
|
10
|
-
import type { PropertyInfo, SbElement } from "@superblocksteam/library-shared/types";
|
|
10
|
+
import type { Entity, PropertyInfo, SbElement, ScopedState } from "@superblocksteam/library-shared/types";
|
|
11
11
|
export type SbCustomRenderFunction = (props: any, state: any) => React.ReactNode;
|
|
12
12
|
export type SideEffectCallback = (params: {
|
|
13
13
|
sourceId: SbElement;
|
|
@@ -142,7 +142,7 @@ declare class Section<T extends Record<string, Prop<any, any>> = Record<string,
|
|
|
142
142
|
}[number] : never : INP>(props: INP): Section<T & OUT>;
|
|
143
143
|
add: <INP extends Record<string, Prop<any, any>> | CompositeProp<any> | UnionProp<any, any>, OUT extends INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]>; }[number] : never : INP>(props: INP) => Section<T & OUT>;
|
|
144
144
|
propertiesPanel(config: Omit<SectionDefinition<any>, "props">): this;
|
|
145
|
-
get name(): "Content" | "Routing" | "Interaction" | "Layout" | "Appearance" | "Permissions" | "
|
|
145
|
+
get name(): "Content" | "Routing" | "Interaction" | "Layout" | "Appearance" | "Permissions" | "Event handlers" | "Uncategorized";
|
|
146
146
|
}
|
|
147
147
|
declare class Prop<Type extends DataType, _HasDefault extends boolean = false, _ContextualArgs extends any[] | undefined | ((entity: Entity) => any[] | undefined) = undefined> {
|
|
148
148
|
protected prop: ManagedProp<Type>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { NotificationPosition, NotificationType } from "./utils/notification.jsx";
|
|
4
|
-
import type { ISbEventFlow, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
1
|
+
import type { StepDef, SelectedWidgetProps, ValueInputProp, NotificationPosition, NotificationType } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { ISbEventFlow, WithBindingIdentifier, ScopedState } from "@superblocksteam/library-shared/types";
|
|
5
3
|
declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInputProp> {
|
|
6
4
|
steps: StepDef[];
|
|
7
5
|
private constructor();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type BindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { Entity } from "../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
1
|
+
import { type BindingIdentifier, type Entity } from "@superblocksteam/library-shared/types";
|
|
3
2
|
export declare const createBindableEntityProxy: (entityAccessor: () => Entity | undefined, identifier: BindingIdentifier) => import("@superblocksteam/library-shared/types").WithBindingIdentifier<{
|
|
4
3
|
entity: Entity | undefined;
|
|
5
4
|
}>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
export type NotificationType = "info" | "success" | "warning" | "error";
|
|
2
|
+
import type { NotificationPosition, NotificationType } from "@superblocksteam/library-shared/types";
|
|
4
3
|
type NotificationConfig = {
|
|
5
4
|
key?: string;
|
|
6
5
|
message: JSX.Element | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.6-next.
|
|
3
|
+
"version": "2.0.6-next.97",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@react-hook/resize-observer": "1.2.6",
|
|
34
34
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
35
35
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
36
|
-
"@superblocksteam/library-shared": "2.0.6-next.
|
|
36
|
+
"@superblocksteam/library-shared": "2.0.6-next.97",
|
|
37
37
|
"@superblocksteam/shared": "0.9160.0",
|
|
38
38
|
"antd": "4.24.15",
|
|
39
39
|
"apca-w3": "^0.1.9",
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ValidStepDef } from "./triggers/registry.js";
|
|
2
|
-
import type { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
3
|
-
type ApplicationScope = "APP" | "PAGE";
|
|
4
|
-
type WidgetTypes = string;
|
|
5
|
-
export type SelectedEventProps = {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
scope?: ApplicationScope;
|
|
9
|
-
};
|
|
10
|
-
export type SelectedWidgetProps = {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
type: WidgetTypes;
|
|
14
|
-
};
|
|
15
|
-
export type SelectedTimerProps = {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
scope: ApplicationScope;
|
|
19
|
-
};
|
|
20
|
-
export interface BaseStepDef {
|
|
21
|
-
id: string;
|
|
22
|
-
type: TriggerStepType;
|
|
23
|
-
}
|
|
24
|
-
export type StepDef = {
|
|
25
|
-
id: string;
|
|
26
|
-
} | ValidStepDef;
|
|
27
|
-
export type RuntimeEventData = {
|
|
28
|
-
path: string;
|
|
29
|
-
stepDefs: StepDef[];
|
|
30
|
-
};
|
|
31
|
-
export type MultiStepDef = StepDef[];
|
|
32
|
-
export type ValidMultiStepDef = ValidStepDef[];
|
|
33
|
-
export type EventArg = {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
};
|
|
37
|
-
export type EventDefinition = {
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
arguments: EventArg[];
|
|
41
|
-
onTrigger: MultiStepDef;
|
|
42
|
-
};
|
|
43
|
-
export type EventDefinitionLoose = Omit<EventDefinition, "onTrigger"> & {
|
|
44
|
-
onTrigger: unknown[];
|
|
45
|
-
};
|
|
46
|
-
export declare function isValidStepDef(step: unknown): step is ValidStepDef;
|
|
47
|
-
export declare function isValidMultiStepDef(steps: unknown[]): steps is ValidMultiStepDef;
|
|
48
|
-
export {};
|