@superleapai/flow-ui 2.5.17 → 2.5.19

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/index.d.ts CHANGED
@@ -111,6 +111,14 @@ declare module "@superleapai/flow-ui" {
111
111
  /** Tell the CRM to close the current form/modal */
112
112
  closeForm(): void;
113
113
 
114
+ /**
115
+ * Register a callback for when the CRM form is submitted successfully.
116
+ * The CRM sends a notification after the form saves.
117
+ * @param callback - Handler called with the submission payload
118
+ * @returns Unsubscribe function
119
+ */
120
+ onFormSubmitSuccess(callback: (payload: any) => void): EventUnsubscribe;
121
+
114
122
  /**
115
123
  * Tell the CRM to show a toast notification
116
124
  * @param message - Toast message
@@ -238,6 +246,7 @@ declare module "@superleapai/flow-ui" {
238
246
  options: SelectOption[];
239
247
  required?: boolean;
240
248
  onChange?: (value: string) => void;
249
+ showSearch?: boolean;
241
250
  disabled?: boolean;
242
251
  helpText?: string;
243
252
  }
@@ -293,6 +302,7 @@ declare module "@superleapai/flow-ui" {
293
302
  options: SelectOption[];
294
303
  required?: boolean;
295
304
  onChange?: (values: string[]) => void;
305
+ showSearch?: boolean;
296
306
  placeholder?: string;
297
307
  helpText?: string;
298
308
  variant?: "default" | "error" | "warning" | "borderless" | "inline";
package/index.js CHANGED
@@ -218,6 +218,9 @@
218
218
  closeForm: client.closeForm
219
219
  ? client.closeForm.bind(client)
220
220
  : undefined,
221
+ onFormSubmitSuccess: client.onFormSubmitSuccess
222
+ ? client.onFormSubmitSuccess.bind(client)
223
+ : undefined,
221
224
  toast: client.toast ? client.toast.bind(client) : undefined,
222
225
  navigate: client.navigate ? client.navigate.bind(client) : undefined,
223
226
  getContext: client.getContext
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superleapai/flow-ui",
3
- "version": "2.5.17",
3
+ "version": "2.5.19",
4
4
  "description": "A reusable design system for building multi-step forms with comprehensive UI components. Single file, clean globals, SDK included. Only FlowUI and SuperLeap exposed.",
5
5
  "main": "dist/superleap-flow.min.js",
6
6
  "types": "index.d.ts",