@superblocksteam/library-shared 2.0.6-next.96 → 2.0.6-next.98
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/types/base-entity-manager.d.ts +15 -0
- package/dist/types/base-entity-manager.d.ts.map +1 -0
- package/dist/types/base-entity-manager.js +2 -0
- package/dist/types/base-entity-manager.js.map +1 -0
- package/dist/types/events.d.ts +190 -4
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/events.js +34 -3
- package/dist/types/events.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/properties.d.ts +1 -1
- package/dist/utils/properties.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BindingString } from "../bindings.js";
|
|
2
|
+
import type { ComputedProperty } from "../computed.js";
|
|
3
|
+
export type EntityOutputProp = Exclude<null | undefined | string | number | boolean | object | bigint | any[], BindingString | EntityDerivedProp<any[]>>;
|
|
4
|
+
export type EntityDerivedProp<ARGS extends any[] = any[]> = (this: Readonly<Entity>, state?: Readonly<ScopedState>, ...args: ARGS) => EntityOutputProp;
|
|
5
|
+
export type Executable<ARGS extends any[] = any[]> = (this: Entity, state?: ScopedState, ...args: ARGS) => void;
|
|
6
|
+
export type ValueInputProp<T = EntityOutputProp, ARGS extends any[] = any[]> = T | EntityDerivedProp | BindingString | ComputedProperty<T, ARGS>;
|
|
7
|
+
export type EntityType = "global" | "theme" | "variable" | "api" | "timer" | (string & {});
|
|
8
|
+
export type Entity = {
|
|
9
|
+
[key: string]: EntityOutputProp;
|
|
10
|
+
type: EntityType;
|
|
11
|
+
};
|
|
12
|
+
export type ScopedState = {
|
|
13
|
+
[key: string]: Entity | ScopedState;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=base-entity-manager.d.ts.map
|
|
@@ -0,0 +1 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U,CAAA;CAAE,CAAC;AAE3E,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;CACrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-entity-manager.js","sourceRoot":"","sources":["../../src/types/base-entity-manager.ts"],"names":[],"mappings":""}
|
package/dist/types/events.d.ts
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
|
+
import type { Executable, ScopedState, ValueInputProp } from "./base-entity-manager.js";
|
|
1
2
|
import type { WithBindingIdentifier } from "./binding-identifiers.js";
|
|
2
|
-
import type { SbApi } from "./entities.js";
|
|
3
|
+
import type { SbApi, SbApiWithFunctions } from "./entities.js";
|
|
4
|
+
import type { ApplicationScope } from "@superblocksteam/shared";
|
|
5
|
+
type WidgetTypes = string;
|
|
6
|
+
export type SelectedStateVarProps = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
scope?: ApplicationScope;
|
|
10
|
+
};
|
|
11
|
+
export type SelectedEventProps = {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
scope?: ApplicationScope;
|
|
15
|
+
};
|
|
16
|
+
export type SelectedWidgetProps = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
type: WidgetTypes;
|
|
20
|
+
};
|
|
21
|
+
export type SelectedTimerProps = {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
scope: ApplicationScope;
|
|
25
|
+
};
|
|
3
26
|
export declare const TriggerStepType: {
|
|
4
27
|
readonly RUN_JS: "runJs";
|
|
5
|
-
readonly RUN_APIS: "executeApi";
|
|
6
|
-
readonly CANCEL_APIS: "cancelApi";
|
|
7
28
|
readonly NAVIGATE_TO: "navigateTo";
|
|
8
29
|
readonly NAVIGATE_TO_APP: "navigateToApp";
|
|
9
30
|
readonly NAVIGATE_TO_ROUTE: "navigateToRoute";
|
|
@@ -11,15 +32,179 @@ export declare const TriggerStepType: {
|
|
|
11
32
|
readonly CONTROL_SLIDEOUT: "controlSlideout";
|
|
12
33
|
readonly CONTROL_MODAL: "controlModal";
|
|
13
34
|
readonly CONTROL_TIMER: "controlTimer";
|
|
35
|
+
readonly RUN_APIS: "executeApi";
|
|
36
|
+
readonly CANCEL_APIS: "cancelApi";
|
|
14
37
|
readonly RESET_COMPONENT: "resetComponent";
|
|
38
|
+
readonly SET_COMPONENT_PROPERTY: "setComponentProperty";
|
|
15
39
|
readonly RESET_STATE_VAR: "resetStateVar";
|
|
16
40
|
readonly SET_STATE_VAR: "setStateVar";
|
|
17
|
-
readonly SET_COMPONENT_PROPERTY: "setComponentProperty";
|
|
18
41
|
readonly SHOW_ALERT: "showAlert";
|
|
19
42
|
readonly SET_PROFILE: "setProfile";
|
|
20
43
|
readonly TRIGGER_EVENT: "triggerEvent";
|
|
21
44
|
};
|
|
22
45
|
export type TriggerStepType = (typeof TriggerStepType)[keyof typeof TriggerStepType];
|
|
46
|
+
export interface BaseStepDef {
|
|
47
|
+
id: string;
|
|
48
|
+
type: TriggerStepType;
|
|
49
|
+
}
|
|
50
|
+
export interface RunJsStep extends BaseStepDef {
|
|
51
|
+
type: typeof TriggerStepType.RUN_JS;
|
|
52
|
+
handler?: Executable;
|
|
53
|
+
code?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface NavigateToStep extends BaseStepDef {
|
|
56
|
+
type: typeof TriggerStepType.NAVIGATE_TO;
|
|
57
|
+
url: string;
|
|
58
|
+
newWindow: boolean;
|
|
59
|
+
replaceHistory?: boolean;
|
|
60
|
+
arguments?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface NavigateToAppStep extends BaseStepDef {
|
|
63
|
+
type: typeof TriggerStepType.NAVIGATE_TO_APP;
|
|
64
|
+
targetApp: {
|
|
65
|
+
name: string;
|
|
66
|
+
id: string;
|
|
67
|
+
url: string;
|
|
68
|
+
};
|
|
69
|
+
queryParams: ValueInputProp<Record<string, string>>;
|
|
70
|
+
newWindowApp: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface NavigateToRouteStep extends BaseStepDef {
|
|
73
|
+
type: typeof TriggerStepType.NAVIGATE_TO_ROUTE;
|
|
74
|
+
routeId: string;
|
|
75
|
+
routePathDescriptor: string;
|
|
76
|
+
routeParams?: ValueInputProp<Record<string, string>>;
|
|
77
|
+
queryParams?: ValueInputProp<Record<string, string>>;
|
|
78
|
+
keepQueryParams?: boolean;
|
|
79
|
+
newWindow: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface SetQueryParamsStep extends BaseStepDef {
|
|
82
|
+
type: typeof TriggerStepType.SET_QUERY_PARAMS;
|
|
83
|
+
queryParams?: Record<string, ValueInputProp<string>>;
|
|
84
|
+
keepQueryParams?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface ControlSlideoutStep extends BaseStepDef {
|
|
87
|
+
type: typeof TriggerStepType.CONTROL_SLIDEOUT;
|
|
88
|
+
name?: string;
|
|
89
|
+
action: "open" | "close";
|
|
90
|
+
}
|
|
91
|
+
export interface ControlModalStep extends BaseStepDef {
|
|
92
|
+
type: typeof TriggerStepType.CONTROL_MODAL;
|
|
93
|
+
name?: string;
|
|
94
|
+
action: "open" | "close";
|
|
95
|
+
}
|
|
96
|
+
export interface ControlTimerStep extends BaseStepDef {
|
|
97
|
+
type: typeof TriggerStepType.CONTROL_TIMER;
|
|
98
|
+
timer?: WithBindingIdentifier;
|
|
99
|
+
action: "start" | "stop" | "toggle";
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated use timer instead
|
|
102
|
+
*/
|
|
103
|
+
state?: SelectedTimerProps;
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated use timer instead
|
|
106
|
+
*/
|
|
107
|
+
name?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface RunApisStep extends BaseStepDef {
|
|
110
|
+
type: typeof TriggerStepType.RUN_APIS;
|
|
111
|
+
apis: SbApiWithFunctions[];
|
|
112
|
+
onSuccess?: ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
113
|
+
onError?: ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated use apis instead
|
|
116
|
+
*/
|
|
117
|
+
apiNames?: string[];
|
|
118
|
+
}
|
|
119
|
+
export interface CancelApisStep extends BaseStepDef {
|
|
120
|
+
type: typeof TriggerStepType.CANCEL_APIS;
|
|
121
|
+
apis: SbApiWithFunctions[];
|
|
122
|
+
onCancel?: ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated use apis instead
|
|
125
|
+
*/
|
|
126
|
+
apiNames?: string[];
|
|
127
|
+
}
|
|
128
|
+
export interface ResetComponentStep extends BaseStepDef {
|
|
129
|
+
type: typeof TriggerStepType.RESET_COMPONENT;
|
|
130
|
+
widget: SelectedWidgetProps;
|
|
131
|
+
propertyName: string;
|
|
132
|
+
resetChildren: ValueInputProp;
|
|
133
|
+
}
|
|
134
|
+
export interface SetComponentPropertyStep extends BaseStepDef {
|
|
135
|
+
type: typeof TriggerStepType.SET_COMPONENT_PROPERTY;
|
|
136
|
+
widget: SelectedWidgetProps;
|
|
137
|
+
propertyName: string;
|
|
138
|
+
propertyValue: ValueInputProp;
|
|
139
|
+
}
|
|
140
|
+
export interface ResetStateVarStep extends BaseStepDef {
|
|
141
|
+
type: typeof TriggerStepType.RESET_STATE_VAR;
|
|
142
|
+
variable?: WithBindingIdentifier;
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated use variable instead
|
|
145
|
+
*/
|
|
146
|
+
state?: SelectedStateVarProps;
|
|
147
|
+
}
|
|
148
|
+
export interface SetStateVarStep extends BaseStepDef {
|
|
149
|
+
type: typeof TriggerStepType.SET_STATE_VAR;
|
|
150
|
+
variable?: WithBindingIdentifier;
|
|
151
|
+
value?: ValueInputProp;
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated use variable instead
|
|
154
|
+
*/
|
|
155
|
+
state?: SelectedStateVarProps;
|
|
156
|
+
}
|
|
157
|
+
export type NotificationType = "info" | "success" | "warning" | "error";
|
|
158
|
+
export declare enum NotificationPosition {
|
|
159
|
+
bottomRight = "bottomRight",
|
|
160
|
+
bottomLeft = "bottomLeft",
|
|
161
|
+
topRight = "topRight",
|
|
162
|
+
topLeft = "topLeft",
|
|
163
|
+
top = "top",
|
|
164
|
+
bottom = "bottom"
|
|
165
|
+
}
|
|
166
|
+
export interface ShowAlertStep extends BaseStepDef {
|
|
167
|
+
type: typeof TriggerStepType.SHOW_ALERT;
|
|
168
|
+
message: ValueInputProp<string>;
|
|
169
|
+
style: NotificationType;
|
|
170
|
+
alertDuration?: number;
|
|
171
|
+
alertPosition?: NotificationPosition;
|
|
172
|
+
}
|
|
173
|
+
export interface SetProfileStep extends BaseStepDef {
|
|
174
|
+
type: typeof TriggerStepType.SET_PROFILE;
|
|
175
|
+
profileId: string;
|
|
176
|
+
action: "set" | "unset";
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated use action instead
|
|
179
|
+
*/
|
|
180
|
+
profileAction: "set" | "unset";
|
|
181
|
+
}
|
|
182
|
+
export interface TriggerEventStep extends BaseStepDef {
|
|
183
|
+
type: typeof TriggerStepType.TRIGGER_EVENT;
|
|
184
|
+
event: SelectedEventProps;
|
|
185
|
+
eventPayload: Record<string, string>;
|
|
186
|
+
}
|
|
187
|
+
export type ValidStepDef = RunJsStep | NavigateToStep | NavigateToAppStep | NavigateToRouteStep | SetQueryParamsStep | ControlSlideoutStep | ControlModalStep | ControlTimerStep | RunApisStep | CancelApisStep | ResetComponentStep | SetComponentPropertyStep | ResetStateVarStep | SetStateVarStep | ShowAlertStep | SetProfileStep | TriggerEventStep;
|
|
188
|
+
export type StepDef = {
|
|
189
|
+
id: string;
|
|
190
|
+
} | ValidStepDef;
|
|
191
|
+
export type MultiStepDef = StepDef[];
|
|
192
|
+
export type ValidMultiStepDef = ValidStepDef[];
|
|
193
|
+
export type EventArg = {
|
|
194
|
+
id: string;
|
|
195
|
+
name: string;
|
|
196
|
+
};
|
|
197
|
+
export type EventDefinition = {
|
|
198
|
+
id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
arguments: EventArg[];
|
|
201
|
+
onTrigger: MultiStepDef;
|
|
202
|
+
};
|
|
203
|
+
export type EventDefinitionLoose = Omit<EventDefinition, "onTrigger"> & {
|
|
204
|
+
onTrigger: unknown[];
|
|
205
|
+
};
|
|
206
|
+
export declare function isValidStepDef(step: unknown): step is ValidStepDef;
|
|
207
|
+
export declare function isValidMultiStepDef(steps: unknown[]): steps is ValidMultiStepDef;
|
|
23
208
|
export interface ISbEventFlow<StepDef, ScopedState, ValueInputProp> {
|
|
24
209
|
steps: StepDef[];
|
|
25
210
|
runJS(handler: (s: ScopedState | any, additionalProps?: Record<string, any>) => void): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
@@ -44,4 +229,5 @@ export interface ISbEventFlow<StepDef, ScopedState, ValueInputProp> {
|
|
|
44
229
|
triggerEvent(eventName: string, eventData: Record<string, string>): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
45
230
|
build(): StepDef[];
|
|
46
231
|
}
|
|
232
|
+
export {};
|
|
47
233
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,KAAK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W,EAAE,cAAc,CAAC,CAAC;IACtD,KAAK,IAAI,OAAO,EAAE,CAAC;CACpB"}
|
package/dist/types/events.js
CHANGED
|
@@ -1,21 +1,52 @@
|
|
|
1
|
+
import { isArray, isPlainObject } from "lodash-es";
|
|
1
2
|
// Saved in the DSL. Not the same strings as what gets used in the runtime
|
|
2
3
|
export const TriggerStepType = {
|
|
4
|
+
// Code execution
|
|
3
5
|
RUN_JS: "runJs",
|
|
4
|
-
|
|
5
|
-
CANCEL_APIS: "cancelApi",
|
|
6
|
+
// Navigation
|
|
6
7
|
NAVIGATE_TO: "navigateTo",
|
|
7
8
|
NAVIGATE_TO_APP: "navigateToApp",
|
|
8
9
|
NAVIGATE_TO_ROUTE: "navigateToRoute",
|
|
10
|
+
// Query params
|
|
9
11
|
SET_QUERY_PARAMS: "setQueryParams",
|
|
12
|
+
// UI controls
|
|
10
13
|
CONTROL_SLIDEOUT: "controlSlideout",
|
|
11
14
|
CONTROL_MODAL: "controlModal",
|
|
12
15
|
CONTROL_TIMER: "controlTimer",
|
|
16
|
+
// API execution
|
|
17
|
+
RUN_APIS: "executeApi",
|
|
18
|
+
CANCEL_APIS: "cancelApi",
|
|
19
|
+
// Component manipulation
|
|
13
20
|
RESET_COMPONENT: "resetComponent",
|
|
21
|
+
SET_COMPONENT_PROPERTY: "setComponentProperty",
|
|
22
|
+
// State variables
|
|
14
23
|
RESET_STATE_VAR: "resetStateVar",
|
|
15
24
|
SET_STATE_VAR: "setStateVar",
|
|
16
|
-
|
|
25
|
+
// Notifications
|
|
17
26
|
SHOW_ALERT: "showAlert",
|
|
27
|
+
// Profile & events
|
|
18
28
|
SET_PROFILE: "setProfile",
|
|
19
29
|
TRIGGER_EVENT: "triggerEvent",
|
|
20
30
|
};
|
|
31
|
+
export var NotificationPosition;
|
|
32
|
+
(function (NotificationPosition) {
|
|
33
|
+
NotificationPosition["bottomRight"] = "bottomRight";
|
|
34
|
+
NotificationPosition["bottomLeft"] = "bottomLeft";
|
|
35
|
+
NotificationPosition["topRight"] = "topRight";
|
|
36
|
+
NotificationPosition["topLeft"] = "topLeft";
|
|
37
|
+
NotificationPosition["top"] = "top";
|
|
38
|
+
NotificationPosition["bottom"] = "bottom";
|
|
39
|
+
})(NotificationPosition || (NotificationPosition = {}));
|
|
40
|
+
export function isValidStepDef(step) {
|
|
41
|
+
if (isPlainObject(step)) {
|
|
42
|
+
return "type" in step;
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
export function isValidMultiStepDef(steps) {
|
|
47
|
+
if (isArray(steps)) {
|
|
48
|
+
return steps.every(isValidStepDef);
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
21
52
|
//# sourceMappingURL=events.js.map
|
package/dist/types/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAoCnD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,iBAAiB;IACjB,MAAM,EAAE,OAAO;IACf,aAAa;IACb,WAAW,EAAE,YAAY;IACzB,eAAe,EAAE,eAAe;IAChC,iBAAiB,EAAE,iBAAiB;IACpC,eAAe;IACf,gBAAgB,EAAE,gBAAgB;IAClC,cAAc;IACd,gBAAgB,EAAE,iBAAiB;IACnC,aAAa,EAAE,cAAc;IAC7B,aAAa,EAAE,cAAc;IAC7B,gBAAgB;IAChB,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,WAAW;IACxB,yBAAyB;IACzB,eAAe,EAAE,gBAAgB;IACjC,sBAAsB,EAAE,sBAAsB;IAC9C,kBAAkB;IAClB,eAAe,EAAE,eAAe;IAChC,aAAa,EAAE,aAAa;IAC5B,gBAAgB;IAChB,UAAU,EAAE,WAAW;IACvB,mBAAmB;IACnB,WAAW,EAAE,YAAY;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAiJX,MAAM,CAAN,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,mDAA2B,CAAA;IAC3B,iDAAyB,CAAA;IACzB,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;IACnB,mCAAW,CAAA;IACX,yCAAiB,CAAA;AACnB,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B;AAuED,MAAM,UAAU,cAAc,CAAC,IAAa;IAC1C,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,OAAO,MAAM,IAAK,IAAgC,CAAC;IACrD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,mBAAmB,CACjC,KAAgB;IAEhB,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC"}
|
package/dist/types/index.js
CHANGED
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dim } from "../layout.js";
|
|
2
2
|
import type { ComputedArgs } from "./computed-args.js";
|
|
3
3
|
import type { ComputedPropertyInfo, PropertyInfo, TemplatePropertyInfo } from "../types/edit-operations.js";
|
|
4
|
-
import type { ValidStepDef } from "
|
|
4
|
+
import type { ValidStepDef } from "../types/events.js";
|
|
5
5
|
declare function PropertyInfo<T>(value: T, type?: PropertyInfo["type"], extra?: Record<string, any>): PropertyInfo<T>;
|
|
6
6
|
export declare const Property: {
|
|
7
7
|
Static: <T>(value: T) => PropertyInfo<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../src/utils/properties.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../src/utils/properties.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OA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KAAK,EAAE,OAAO,GACb,KAAK,IAAI,YAAY,CAAC,OAAO,CAAC,CAEhC;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,IAAI,EAAE,MAAM,WA0Cb;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqBzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library-shared",
|
|
3
|
-
"version": "2.0.6-next.
|
|
3
|
+
"version": "2.0.6-next.98",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@superblocksteam/shared": "0.9160.0",
|
|
27
|
+
"lodash-es": "^4.17.21",
|
|
27
28
|
"react-dnd": "^16.0.1"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@eslint/js": "^9.16.0",
|
|
32
|
+
"@types/lodash-es": "^4.17.12",
|
|
31
33
|
"@vitest/eslint-plugin": "^1.1.37",
|
|
32
34
|
"eslint": "^9.16.0",
|
|
33
35
|
"eslint-plugin-import": "2.31.0",
|