@frigade/react 1.35.20 → 1.35.22

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/lib/index.d.ts CHANGED
@@ -307,6 +307,11 @@ interface FrigadeConfig {
307
307
  */
308
308
  readonly?: boolean;
309
309
  theme?: Record<string, any>;
310
+ /**
311
+ * Flag to turn on debug mode which will log all events to the console. Default false.
312
+ * Default false.
313
+ */
314
+ debug?: boolean;
310
315
  }
311
316
  declare const FrigadeProvider: FC<FrigadeProviderProps>;
312
317
 
@@ -525,6 +530,15 @@ interface FrigadeFormProps extends DefaultFrigadeFlowProps {
525
530
  * For `type` multiInputStep, the value contains another map similar to the structure returned from `onFormDataChange`
526
531
  */
527
532
  prefillData?: Record<string, any>;
533
+ /**
534
+ * Whether to update the url when the page changes in multi-page forms. If enabled, the current url will be updated with the
535
+ * current step id in the following format: `<my_url>?p=<current_step_id>`.
536
+ *
537
+ * This is useful when wanting to capture URL changes with third-party tracking tools.
538
+ *
539
+ * Default is false.
540
+ */
541
+ updateUrlOnPageChange?: boolean;
528
542
  }
529
543
  declare const FrigadeForm: FC<FrigadeFormProps>;
530
544