@superblocksteam/library-shared 2.0.3-next.108 → 2.0.3-next.110
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/events.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SbApi } from "./entities.js";
|
|
1
2
|
export declare const TriggerStepType: {
|
|
2
3
|
readonly RUN_JS: "runJs";
|
|
3
4
|
readonly RUN_APIS: "executeApi";
|
|
@@ -31,13 +32,13 @@ export interface ISbEventFlow<StepDef, ScopedState, ValueInputProp> {
|
|
|
31
32
|
controlSlideout(slideoutId: string, action: "open" | "close"): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
32
33
|
controlModal(modalId: string, action: "open" | "close"): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
33
34
|
controlTimer(timerId: string, action: "start" | "stop" | "toggle"): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
34
|
-
runApis(
|
|
35
|
-
cancelApis(
|
|
35
|
+
runApis(apis: SbApi[], onSuccess?: ISbEventFlow<StepDef, ScopedState, ValueInputProp>, onError?: ISbEventFlow<StepDef, ScopedState, ValueInputProp>): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
36
|
+
cancelApis(apis: SbApi[], onCancel?: ISbEventFlow<StepDef, ScopedState, ValueInputProp>): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
36
37
|
resetComponent(widget: unknown, propertyName: string, resetChildren: boolean): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
37
38
|
resetStateVar(state: unknown): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
38
39
|
setStateVar(name: string, value: ValueInputProp): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
39
40
|
setComponentProperty(widget: unknown, propertyName: string, value: ValueInputProp): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
40
|
-
showAlert(message: ValueInputProp, alertType: unknown): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
41
|
+
showAlert(message: ValueInputProp, alertType: unknown, alertDuration?: number, alertPosition?: unknown): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
41
42
|
setProfile(profileId: string, profileAction: "set" | "unset"): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
42
43
|
triggerEvent(eventName: string, eventData: Record<string, string>): ISbEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
43
44
|
build(): StepDef[];
|
|
@@ -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":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAkBlB,CAAC;AAEX,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,MAAM,WAAW,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc;IAChE,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,CACH,OAAO,EAAE,CACP,CAAC,EAAE,WAAW,GAAG,GAAG,EACpB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAClC,IAAI,GACR,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IACtD,UAAU,CAAC,KAAK,EAAE;QAChB,GAAG,EAAE,MAAM,CAAC;QACZ,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,GAAG,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IACvD,aAAa,CACX,KAAK,EAAE,MAAM,GACZ,YAAY,CAAC,OAAO,EAAE,WAAW,EA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AC,CAAC;IACtD,aAAa,CACX,KAAK,EAAE,OAAO,GACb,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IACtD,WAAW,CACT,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,cAAc,GACpB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IACtD,oBAAoB,CAClB,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,cAAc,GACpB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IACtD,SAAS,CACP,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,OAAO,EAClB,aAAa,CAAC,EAAE,MAAM,EACtB,aAAa,CAAC,EAAE,OAAO,GACtB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IACtD,UAAU,CACR,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,KAAK,GAAG,OAAO,GAC7B,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IACtD,YAAY,CACV,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IACtD,KAAK,IAAI,OAAO,EAAE,CAAC;CACpB"}
|
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":"AAEA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,YAAY;IACzB,eAAe,EAAE,eAAe;IAChC,iBAAiB,EAAE,iBAAiB;IACpC,gBAAgB,EAAE,gBAAgB;IAClC,gBAAgB,EAAE,iBAAiB;IACnC,aAAa,EAAE,cAAc;IAC7B,aAAa,EAAE,cAAc;IAC7B,eAAe,EAAE,gBAAgB;IACjC,eAAe,EAAE,eAAe;IAChC,aAAa,EAAE,aAAa;IAC5B,sBAAsB,EAAE,sBAAsB;IAC9C,UAAU,EAAE,WAAW;IACvB,WAAW,EAAE,YAAY;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC"}
|