@superleapai/flow-ui 2.5.16 → 2.5.18

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
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.16",
3
+ "version": "2.5.18",
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",