@superblocksteam/cli 2.0.3-next.108 → 2.0.3-next.109

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/README.md CHANGED
@@ -14,7 +14,7 @@ $ npm install -g @superblocksteam/cli
14
14
  $ superblocks COMMAND
15
15
  running command...
16
16
  $ superblocks (--version)
17
- @superblocksteam/cli/2.0.3-next.108 linux-x64 node-v20.19.0
17
+ @superblocksteam/cli/2.0.3-next.109 linux-x64 node-v20.19.0
18
18
  $ superblocks --help [COMMAND]
19
19
  USAGE
20
20
  $ superblocks COMMAND
@@ -110,7 +110,7 @@ init_cjs_shims();
110
110
 
111
111
  // ../../../vite-plugin-file-sync/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.js
112
112
  init_cjs_shims();
113
- var content11 = '## SbButton\n\nThe following is the type definition for the SbButton component.\n\n```typescript\ninterface SbButtonProps {\n label?: string;\n /** @default {"left":{"mode":"px","value":10},"right":{"mode":"px","value":10},"top":{"mode":"px","value":9},"bottom":{"mode":"px","value":9}} */\n padding?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n width?: Dim;\n height?: Dim;\n minWidth?: Dim;\n maxWidth?: Dim;\n minHeight?: Dim;\n maxHeight?: Dim;\n /** @default {"top":{"mode":"px","value":0},"bottom":{"mode":"px","value":0},"left":{"mode":"px","value":0},"right":{"mode":"px","value":0}} */\n margin?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n /** @default true */\n isVisible?: boolean;\n collapseWhenInvisible?: boolean;\n /** @default "primary" */\n variant?: "primary" | "secondary" | "tertiary";\n icon?: string;\n /** @default "left" */\n iconPosition?: "left" | "right";\n /** @default {"variant":"buttonLabel","textColor":{"default":"#FFFFFF"}} */\n textStyle?: Record<string, any>;\n /** @default "#27BBFF" */\n backgroundColor?: string;\n /** @default {"left":{"width":{"mode":"px","value":0},"style":"solid","color":"{{ theme.colors.neutral100 }}"},"right":{"width":{"mode":"px","value":0},"style":"solid","color":"{{ theme.colors.neutral100 }}"},"top":{"width":{"mode":"px","value":0},"style":"solid","color":"{{ theme.colors.neutral100 }}"},"bottom":{"width":{"mode":"px","value":0},"style":"solid","color":"{{ theme.colors.neutral100 }}"}} */\n border?: { left: Border; right: Border; top: Border; bottom: Border };\n /** @default {"topLeft":{"mode":"px","value":4},"topRight":{"mode":"px","value":4},"bottomRight":{"mode":"px","value":4},"bottomLeft":{"mode":"px","value":4}} */\n borderRadius?: { topLeft: Dim; topRight: Dim; bottomLeft: Dim; bottomRight: Dim };\n /** @default "center" */\n labelAlignment?: "left" | "center" | "right";\n /** @default true */\n loadingAnimation?: boolean;\n /** @default false */\n isDisabled?: boolean;\n onClick?: SbEventFlow;\n}\n```\n';
113
+ var content11 = '## SbButton\n\nThe following is the type definition for the SbButton component.\n\n```typescript\ninterface SbButtonProps {\n label?: string;\n /** @default {"left":{"mode":"px","value":10},"right":{"mode":"px","value":10},"top":{"mode":"px","value":9},"bottom":{"mode":"px","value":9}} */\n padding?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n width?: Dim;\n height?: Dim;\n minWidth?: Dim;\n maxWidth?: Dim;\n minHeight?: Dim;\n maxHeight?: Dim;\n /** @default {"top":{"mode":"px","value":0},"bottom":{"mode":"px","value":0},"left":{"mode":"px","value":0},"right":{"mode":"px","value":0}} */\n margin?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n /** @default true */\n isVisible?: boolean;\n collapseWhenInvisible?: boolean;\n /** @default "primary" */\n variant?: "primary" | "secondary" | "tertiary";\n icon?: string;\n /** @default "left" */\n iconPosition?: "left" | "right";\n /** @default {"variant":"buttonLabel","textColor":{"default":"#FFFFFF"}} */\n textStyle?: Record<string, any>;\n /** @default "#27BBFF" */\n backgroundColor?: string;\n /** @default {"left":{"width":{"mode":"px","value":0},"style":"solid","color":"{{ theme.colors.neutral100 }}"},"right":{"width":{"mode":"px","value":0},"style":"solid","color":"{{ theme.colors.neutral100 }}"},"top":{"width":{"mode":"px","value":0},"style":"solid","color":"{{ theme.colors.neutral100 }}"},"bottom":{"width":{"mode":"px","value":0},"style":"solid","color":"{{ theme.colors.neutral100 }}"}} */\n border?: { left: Border; right: Border; top: Border; bottom: Border };\n /** @default {"topLeft":{"mode":"px","value":4},"topRight":{"mode":"px","value":4},"bottomRight":{"mode":"px","value":4},"bottomLeft":{"mode":"px","value":4}} */\n borderRadius?: {\n topLeft: Dim;\n topRight: Dim;\n bottomLeft: Dim;\n bottomRight: Dim;\n };\n /** @default "center" */\n labelAlignment?: "left" | "center" | "right";\n /** @default true */\n loadingAnimation?: boolean;\n /** @default false */\n isDisabled?: boolean;\n onClick?: SbEventFlow;\n}\n```\n';
114
114
 
115
115
  // ../../../vite-plugin-file-sync/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.js
116
116
  init_cjs_shims();
@@ -142,7 +142,7 @@ var content18 = '## SbImage\n\nThe following is the type definition for the SbIm
142
142
 
143
143
  // ../../../vite-plugin-file-sync/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.js
144
144
  init_cjs_shims();
145
- var content19 = '## SbInput\n\nThe following is the type definition for the SbInput component.\n\n```typescript\ninterface SbInputProps {\n /** @default "" */\n label?: string;\n /** @default "TEXT" */\n inputType?: "TEXT" | "NUMBER" | "PERCENTAGE" | "CURRENCY" | "PASSWORD" | "EMAIL" | "URL";\n /** @default "standard" */\n numberFormatting?: "unformatted" | "standard" | "compact" | "scientific" | "engineering";\n /** @default "USD" */\n currency?: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";\n /** @default "symbol" */\n currencyCodeDisplay?: "symbol" | "iso_code";\n /** @default "" */\n defaultValue?: string;\n /** @default "top" */\n labelPosition?: "top" | "left";\n /** @default {"variant":"inputLabel","textColor":{"default":"#1F2633"}} */\n labelStyle?: Record<string, any>;\n /** @default "Enter text" */\n placeholderText?: string;\n /** @default {"variant":"inputText","textColor":{"default":"#1F2633"}} */\n textStyle?: Record<string, any>;\n /** @default "{{ theme.colors.neutral }}" */\n backgroundColor?: string;\n border?: { left: Border; right: Border; top: Border; bottom: Border };\n /** @default {"topLeft":{"mode":"px","value":4},"topRight":{"mode":"px","value":4},"bottomRight":{"mode":"px","value":4},"bottomLeft":{"mode":"px","value":4}} */\n borderRadius?: { topLeft: Dim; topRight: Dim; bottomLeft: Dim; bottomRight: Dim };\n icon?: string;\n /** @default "left" */\n iconPosition?: "left" | "right";\n inputType?: string;\n /** @default false */\n multiline?: boolean;\n /** @default true */\n loadingAnimation?: boolean;\n /** @default {"left":{"mode":"px","value":10},"right":{"mode":"px","value":10},"top":{"mode":"px","value":8},"bottom":{"mode":"px","value":8}} */\n padding?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n width?: Dim;\n height?: Dim;\n minWidth?: Dim;\n maxWidth?: Dim;\n minHeight?: Dim;\n maxHeight?: Dim;\n /** @default {"top":{"mode":"px","value":0},"bottom":{"mode":"px","value":0},"left":{"mode":"px","value":0},"right":{"mode":"px","value":0}} */\n margin?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n labelPosition?: string;\n /** @default {"mode":"%","value":30} */\n labelWidth?: any;\n /** @default true */\n isVisible?: boolean;\n collapseWhenInvisible?: boolean;\n inputType?: string;\n /** @default 1 */\n minimumFractionDigits?: number;\n /** @default 2 */\n maximumFractionDigits?: number;\n /** @default false */\n stepper?: boolean;\n /** @default 1 */\n stepSize?: number;\n minLength?: number;\n maxLength?: number;\n /** @default false */\n isDisabled?: boolean;\n /** @default false */\n isRequired?: boolean;\n /** @default "tooltip" */\n errorMessagePlacement?: "tooltip" | "inline";\n /** @default "" */\n customValidationRule?: string;\n /** @default "" */\n customErrorMessage?: string;\n onTextChanged?: SbEventFlow;\n onSubmit?: SbEventFlow;\n onFocus?: SbEventFlow;\n onFocusOut?: SbEventFlow;\n}\n```\n\nAnd the following properties can be referenced on this component in the Superblocks state object:\n\n```typescript\ninterface SbInputComponentState {\n /** @default "" */\n value?: string;\n /** @default {} */\n validationErrors?: any;\n /** @default true */\n isValid?: boolean;\n showError?: boolean;\n}\n```\n';
145
+ var content19 = '## SbInput\n\nThe following is the type definition for the SbInput component.\n\n```typescript\ninterface SbInputProps {\n /** @default "" */\n label?: string;\n /** @default "TEXT" */\n inputType?:\n | "TEXT"\n | "NUMBER"\n | "PERCENTAGE"\n | "CURRENCY"\n | "PASSWORD"\n | "EMAIL"\n | "URL";\n /** @default "standard" */\n numberFormatting?:\n | "unformatted"\n | "standard"\n | "compact"\n | "scientific"\n | "engineering";\n /** @default "USD" */\n currency?:\n | "AED"\n | "AFN"\n | "ALL"\n | "AMD"\n | "ANG"\n | "AOA"\n | "ARS"\n | "AUD"\n | "AWG"\n | "AZN"\n | "BAM"\n | "BBD"\n | "BDT"\n | "BGN"\n | "BHD"\n | "BIF"\n | "BMD"\n | "BND"\n | "BOB"\n | "BOV"\n | "BRL"\n | "BSD"\n | "BTN"\n | "BWP"\n | "BYN"\n | "BZD"\n | "CAD"\n | "CDF"\n | "CHE"\n | "CHF"\n | "CHW"\n | "CLF"\n | "CLP"\n | "CNY"\n | "COP"\n | "COU"\n | "CRC"\n | "CUC"\n | "CUP"\n | "CVE"\n | "CZK"\n | "DJF"\n | "DKK"\n | "DOP"\n | "DZD"\n | "EGP"\n | "ERN"\n | "ETB"\n | "EUR"\n | "FJD"\n | "FKP"\n | "GBP"\n | "GEL"\n | "GHS"\n | "GIP"\n | "GMD"\n | "GNF"\n | "GTQ"\n | "GYD"\n | "HKD"\n | "HNL"\n | "HRK"\n | "HTG"\n | "HUF"\n | "IDR"\n | "ILS"\n | "INR"\n | "IQD"\n | "IRR"\n | "ISK"\n | "JMD"\n | "JOD"\n | "JPY"\n | "KES"\n | "KGS"\n | "KHR"\n | "KMF"\n | "KPW"\n | "KRW"\n | "KWD"\n | "KYD"\n | "KZT"\n | "LAK"\n | "LBP"\n | "LKR"\n | "LRD"\n | "LSL"\n | "LYD"\n | "MAD"\n | "MDL"\n | "MGA"\n | "MKD"\n | "MMK"\n | "MNT"\n | "MOP"\n | "MRU"\n | "MUR"\n | "MVR"\n | "MWK"\n | "MXN"\n | "MXV"\n | "MYR"\n | "MZN"\n | "NAD"\n | "NGN"\n | "NIO"\n | "NOK"\n | "NPR"\n | "NZD"\n | "OMR"\n | "PAB"\n | "PEN"\n | "PGK"\n | "PHP"\n | "PKR"\n | "PLN"\n | "PYG"\n | "QAR"\n | "RON"\n | "RSD"\n | "RUB"\n | "RWF"\n | "SAR"\n | "SBD"\n | "SCR"\n | "SDG"\n | "SEK"\n | "SGD"\n | "SHP"\n | "SLL"\n | "SOS"\n | "SRD"\n | "SSP"\n | "STN"\n | "SVC"\n | "SYP"\n | "SZL"\n | "THB"\n | "TJS"\n | "TMT"\n | "TND"\n | "TOP"\n | "TRY"\n | "TTD"\n | "TWD"\n | "TZS"\n | "UAH"\n | "UGX"\n | "USD"\n | "USN"\n | "UYI"\n | "UYU"\n | "UYW"\n | "UZS"\n | "VED"\n | "VES"\n | "VND"\n | "VUV"\n | "WST"\n | "XAF"\n | "XAG"\n | "XAU"\n | "XBA"\n | "XBB"\n | "XBC"\n | "XBD"\n | "XCD"\n | "XDR"\n | "XOF"\n | "XPD"\n | "XPF"\n | "XPT"\n | "XSU"\n | "XTS"\n | "XUA"\n | "XXX"\n | "YER"\n | "ZAR"\n | "ZMW"\n | "ZWL";\n /** @default "symbol" */\n currencyCodeDisplay?: "symbol" | "iso_code";\n /** @default "" */\n defaultValue?: string;\n /** @default "top" */\n labelPosition?: "top" | "left";\n /** @default {"variant":"inputLabel","textColor":{"default":"#1F2633"}} */\n labelStyle?: Record<string, any>;\n /** @default "Enter text" */\n placeholderText?: string;\n /** @default {"variant":"inputText","textColor":{"default":"#1F2633"}} */\n textStyle?: Record<string, any>;\n /** @default "{{ theme.colors.neutral }}" */\n backgroundColor?: string;\n border?: { left: Border; right: Border; top: Border; bottom: Border };\n /** @default {"topLeft":{"mode":"px","value":4},"topRight":{"mode":"px","value":4},"bottomRight":{"mode":"px","value":4},"bottomLeft":{"mode":"px","value":4}} */\n borderRadius?: {\n topLeft: Dim;\n topRight: Dim;\n bottomLeft: Dim;\n bottomRight: Dim;\n };\n icon?: string;\n /** @default "left" */\n iconPosition?: "left" | "right";\n inputType?: string;\n /** @default false */\n multiline?: boolean;\n /** @default true */\n loadingAnimation?: boolean;\n /** @default {"left":{"mode":"px","value":10},"right":{"mode":"px","value":10},"top":{"mode":"px","value":8},"bottom":{"mode":"px","value":8}} */\n padding?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n width?: Dim;\n height?: Dim;\n minWidth?: Dim;\n maxWidth?: Dim;\n minHeight?: Dim;\n maxHeight?: Dim;\n /** @default {"top":{"mode":"px","value":0},"bottom":{"mode":"px","value":0},"left":{"mode":"px","value":0},"right":{"mode":"px","value":0}} */\n margin?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n labelPosition?: string;\n /** @default {"mode":"%","value":30} */\n labelWidth?: any;\n /** @default true */\n isVisible?: boolean;\n collapseWhenInvisible?: boolean;\n inputType?: string;\n /** @default 1 */\n minimumFractionDigits?: number;\n /** @default 2 */\n maximumFractionDigits?: number;\n /** @default false */\n stepper?: boolean;\n /** @default 1 */\n stepSize?: number;\n minLength?: number;\n maxLength?: number;\n /** @default false */\n isDisabled?: boolean;\n /** @default false */\n isRequired?: boolean;\n /** @default "tooltip" */\n errorMessagePlacement?: "tooltip" | "inline";\n /** @default "" */\n customValidationRule?: string;\n /** @default "" */\n customErrorMessage?: string;\n onTextChanged?: SbEventFlow;\n onSubmit?: SbEventFlow;\n onFocus?: SbEventFlow;\n onFocusOut?: SbEventFlow;\n}\n```\n\nAnd the following properties can be referenced on this component in the Superblocks state object:\n\n```typescript\ninterface SbInputComponentState {\n /** @default "" */\n value?: string;\n /** @default {} */\n validationErrors?: any;\n /** @default true */\n isValid?: boolean;\n showError?: boolean;\n}\n```\n';
146
146
 
147
147
  // ../../../vite-plugin-file-sync/dist/ai-service/prompts/generated/library-components/SbKeyValuePropsDocs.js
148
148
  init_cjs_shims();
@@ -190,7 +190,7 @@ var content28 = '## Dim\n\nThe `Dim` class is used to define dimensions for size
190
190
 
191
191
  // ../../../vite-plugin-file-sync/dist/ai-service/prompts/generated/library-typedefs/SbEventFlow.js
192
192
  init_cjs_shims();
193
- var content29 = '## SbEventFlow\n\nThe `SbEventFlow` class is used to define responses to events triggered on components (like onClick) in Superblocks. It has a number of methods that can be chained together.\n\n```typescript\nclass SbEventFlow {\n // Run custom JavaScript code\n static runJS(\n handler: (s: ScopedState, additionalProps?: Record<string, any>) => void,\n ): SbEventFlow;\n runJS(\n handler: (s: ScopedState, additionalProps?: Record<string, any>) => void,\n ): this;\n\n // Navigation methods\n static navigateTo(props: { url: string; newWindow?: boolean }): SbEventFlow;\n navigateTo(props: { url: string; newWindow?: boolean }): this;\n\n static navigateToApp(appId: string): SbEventFlow;\n navigateToApp(appId: string): this;\n\n static navigateToRoute(route: string): SbEventFlow;\n navigateToRoute(route: string): this;\n\n static setQueryParams(\n params: Record<string, string>,\n keepQueryParams?: boolean,\n ): SbEventFlow;\n setQueryParams(\n params: Record<string, string>,\n keepQueryParams?: boolean,\n ): this;\n\n // Control UI components\n static controlSlideout(\n slideoutId: string,\n action: "open" | "close",\n ): SbEventFlow;\n controlSlideout(slideoutId: string, action: "open" | "close"): this;\n\n static controlModal(modalId: string, action: "open" | "close"): SbEventFlow;\n controlModal(modalId: string, action: "open" | "close"): this;\n\n static controlTimer(\n timerId: string,\n action: "start" | "stop" | "toggle",\n ): SbEventFlow;\n controlTimer(timerId: string, action: "start" | "stop" | "toggle"): this;\n\n // API methods\n static runApis(\n apiNames: string[],\n onSuccess?: SbEventFlow,\n onError?: SbEventFlow,\n ): SbEventFlow;\n runApis(\n apiNames: string[],\n onSuccess?: SbEventFlow,\n onError?: SbEventFlow,\n ): this;\n\n static cancelApis(apiNames: string[], onCancel?: SbEventFlow): SbEventFlow;\n cancelApis(apiNames: string[], onCancel?: SbEventFlow): this;\n\n // Component and state manipulation\n static resetComponent(\n widget: { id: string },\n propertyName: string,\n resetChildren: boolean,\n ): SbEventFlow;\n resetComponent(\n widget: { id: string },\n propertyName: string,\n resetChildren: boolean,\n ): this;\n\n static resetStateVar(state: { name: string }): SbEventFlow;\n resetStateVar(state: { name: string }): this;\n\n static setStateVar(name: string, value: any): SbEventFlow;\n setStateVar(name: string, value: any): this;\n\n static setComponentProperty(\n widget: { id: string },\n propertyName: string,\n value: any,\n ): SbEventFlow;\n setComponentProperty(\n widget: { id: string },\n propertyName: string,\n value: any,\n ): this;\n\n // Utility methods\n static showAlert(\n message: string,\n alertType: "info" | "success" | "warning" | "error",\n ): SbEventFlow;\n showAlert(\n message: string,\n alertType: "info" | "success" | "warning" | "error",\n ): this;\n\n static setProfile(\n profileId: string,\n profileAction: "set" | "unset",\n ): SbEventFlow;\n setProfile(profileId: string, profileAction: "set" | "unset"): this;\n\n static triggerEvent(\n eventName: string,\n eventData: Record<string, string>,\n ): SbEventFlow;\n triggerEvent(eventName: string, eventData: Record<string, string>): this;\n}\n```\n';
193
+ var content29 = '## SbEventFlow\n\nThe `SbEventFlow` class is used to define responses to events triggered on components (like onClick) in Superblocks. It has a number of methods that can be chained together.\n\n```typescript\nclass SbEventFlow {\n // Run custom JavaScript code\n static runJS(\n handler: (s: ScopedState, additionalProps?: Record<string, any>) => void,\n ): SbEventFlow;\n runJS(\n handler: (s: ScopedState, additionalProps?: Record<string, any>) => void,\n ): this;\n\n // Navigation methods\n static navigateTo(props: { url: string; newWindow?: boolean }): SbEventFlow;\n navigateTo(props: { url: string; newWindow?: boolean }): this;\n\n static navigateToApp(appId: string): SbEventFlow;\n navigateToApp(appId: string): this;\n\n static navigateToRoute(route: string): SbEventFlow;\n navigateToRoute(route: string): this;\n\n static setQueryParams(\n params: Record<string, string>,\n keepQueryParams?: boolean,\n ): SbEventFlow;\n setQueryParams(\n params: Record<string, string>,\n keepQueryParams?: boolean,\n ): this;\n\n // Control UI components\n static controlSlideout(\n slideoutId: string,\n action: "open" | "close",\n ): SbEventFlow;\n controlSlideout(slideoutId: string, action: "open" | "close"): this;\n\n static controlModal(modalId: string, action: "open" | "close"): SbEventFlow;\n controlModal(modalId: string, action: "open" | "close"): this;\n\n static controlTimer(\n timerId: string,\n action: "start" | "stop" | "toggle",\n ): SbEventFlow;\n controlTimer(timerId: string, action: "start" | "stop" | "toggle"): this;\n\n // API methods\n static runApis(\n apis: SbApi[],\n onSuccess?: SbEventFlow,\n onError?: SbEventFlow,\n ): SbEventFlow;\n runApis(apis: SbApi[], onSuccess?: SbEventFlow, onError?: SbEventFlow): this;\n\n static cancelApis(apiNames: string[], onCancel?: SbEventFlow): SbEventFlow;\n cancelApis(apiNames: string[], onCancel?: SbEventFlow): this;\n\n // Component and state manipulation\n static resetComponent(\n widget: { id: string },\n propertyName: string,\n resetChildren: boolean,\n ): SbEventFlow;\n resetComponent(\n widget: { id: string },\n propertyName: string,\n resetChildren: boolean,\n ): this;\n\n static resetStateVar(state: { name: string }): SbEventFlow;\n resetStateVar(state: { name: string }): this;\n\n static setStateVar(name: string, value: any): SbEventFlow;\n setStateVar(name: string, value: any): this;\n\n static setComponentProperty(\n widget: { id: string },\n propertyName: string,\n value: any,\n ): SbEventFlow;\n setComponentProperty(\n widget: { id: string },\n propertyName: string,\n value: any,\n ): this;\n\n // Utility methods\n static showAlert(\n message: string,\n alertType: "info" | "success" | "warning" | "error",\n ): SbEventFlow;\n showAlert(\n message: string,\n alertType: "info" | "success" | "warning" | "error",\n ): this;\n\n static setProfile(\n profileId: string,\n profileAction: "set" | "unset",\n ): SbEventFlow;\n setProfile(profileId: string, profileAction: "set" | "unset"): this;\n\n static triggerEvent(\n eventName: string,\n eventData: Record<string, string>,\n ): SbEventFlow;\n triggerEvent(eventName: string, eventData: Record<string, string>): this;\n}\n```\n';
194
194
  export {
195
195
  library_components_exports as library_components,
196
196
  library_typedefs_exports as library_typedefs,
package/dist/index.js CHANGED
@@ -328881,7 +328881,7 @@ var import_dd_trace = __toESM(require_dd_trace2(), 1);
328881
328881
  // ../sdk/package.json
328882
328882
  var package_default = {
328883
328883
  name: "@superblocksteam/sdk",
328884
- version: "2.0.3-next.108",
328884
+ version: "2.0.3-next.109",
328885
328885
  type: "module",
328886
328886
  description: "Superblocks JS SDK",
328887
328887
  homepage: "https://www.superblocks.com",
@@ -328911,8 +328911,8 @@ var package_default = {
328911
328911
  "@rollup/wasm-node": "^4.35.0",
328912
328912
  "@superblocksteam/bucketeer-sdk": "0.4.1",
328913
328913
  "@superblocksteam/shared": "^0.9081.0",
328914
- "@superblocksteam/util": "2.0.3-next.108",
328915
- "@superblocksteam/vite-plugin-file-sync": "2.0.3-next.108",
328914
+ "@superblocksteam/util": "2.0.3-next.109",
328915
+ "@superblocksteam/vite-plugin-file-sync": "2.0.3-next.109",
328916
328916
  "@vitejs/plugin-react": "^4.3.4",
328917
328917
  axios: "^1.4.0",
328918
328918
  chokidar: "^4.0.3",
@@ -341340,7 +341340,11 @@ function toCodeEventFlow(stepDefs_) {
341340
341340
  const emptySuccessCode = !onSuccessCode ? ", undefined" : "";
341341
341341
  onErrorCode = `${emptySuccessCode}, ${toCodeEventFlow(stepDef.onError)}`;
341342
341342
  }
341343
- code = `${code}.runApis([${apiNames.map((apiName) => `"${apiName}"`).join(", ")}]${onSuccessCode}${onErrorCode})`;
341343
+ code = `${code}.runApis([${apiNames.map((apiName) => `${apiName}`).join(", ")}]${onSuccessCode}${onErrorCode})`;
341344
+ break;
341345
+ }
341346
+ case TriggerStepType.CANCEL_APIS: {
341347
+ code = `${code}.cancelApis([${stepDef.apiNames.map((apiName) => `${apiName}`).join(", ")}])`;
341344
341348
  break;
341345
341349
  }
341346
341350
  case TriggerStepType.NAVIGATE_TO: {
@@ -341477,6 +341481,16 @@ function toValueEventFlow(nodePath, existingSteps = [], parentId) {
341477
341481
  }
341478
341482
  ];
341479
341483
  }
341484
+ case "cancelApis": {
341485
+ if (args.length !== 1) {
341486
+ return existingSteps;
341487
+ }
341488
+ const apiNames = nodeToValue(expression.node);
341489
+ return [
341490
+ ...existingSteps,
341491
+ { id: id2, type: import_shared10.TriggerStepType.CANCEL_APIS, apiNames }
341492
+ ];
341493
+ }
341480
341494
  case "setStateVar": {
341481
341495
  if (args.length !== 2) {
341482
341496
  return existingSteps;
@@ -366975,7 +366989,7 @@ var GLOBAL_FUNCTION_NAMES = /* @__PURE__ */ new Set([
366975
366989
  "showAlert",
366976
366990
  "logoutIntegrations"
366977
366991
  ]);
366978
- var ATTRIBUTE_TYPES_WITH_STATE_ACCESS = ["COMPUTED", "TEMPLATE"];
366992
+ var ATTRIBUTE_TYPES_WITH_STATE_ACCESS = ["COMPUTED", "TEMPLATE", "EVENT"];
366979
366993
  var SourceTracker = class {
366980
366994
  renameManager = new RenameManager();
366981
366995
  sbScopeManager;
@@ -379911,7 +379925,7 @@ init_cjs_shims();
379911
379925
  init_cjs_shims();
379912
379926
  var generated = {};
379913
379927
  try {
379914
- generated = await import("./generated-HN7KKMK5.js");
379928
+ generated = await import("./generated-D3CQHUQ6.js");
379915
379929
  } catch (_error) {
379916
379930
  console.warn("Generated markdown modules not found. Run `pnpm generate:markdown` first.");
379917
379931
  }
@@ -509,5 +509,5 @@
509
509
  "strict": true
510
510
  }
511
511
  },
512
- "version": "2.0.3-next.108"
512
+ "version": "2.0.3-next.109"
513
513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/cli",
3
- "version": "2.0.3-next.108",
3
+ "version": "2.0.3-next.109",
4
4
  "type": "module",
5
5
  "description": "Official Superblocks CLI",
6
6
  "homepage": "https://www.superblocks.com",
@@ -42,9 +42,9 @@
42
42
  "devDependencies": {
43
43
  "@eslint/js": "^9.16.0",
44
44
  "@oclif/test": "^4.1.11",
45
- "@superblocksteam/sdk": "2.0.3-next.108",
45
+ "@superblocksteam/sdk": "2.0.3-next.109",
46
46
  "@superblocksteam/shared": "^0.9081.0",
47
- "@superblocksteam/util": "2.0.3-next.108",
47
+ "@superblocksteam/util": "2.0.3-next.109",
48
48
  "@types/babel__core": "^7.20.0",
49
49
  "@types/chai": "^4",
50
50
  "@types/fs-extra": "^11.0.1",
@@ -88,6 +88,9 @@
88
88
  "vite-tsconfig-paths": "^5.1.4",
89
89
  "yaml": "^2.6.1"
90
90
  },
91
+ "overrides": {
92
+ "rollup": "npm:@rollup/wasm-node"
93
+ },
91
94
  "oclif": {
92
95
  "bin": "superblocks",
93
96
  "binAliases": [