@frigade/react 1.38.0 → 1.38.1

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/index.d.ts CHANGED
@@ -158,7 +158,7 @@ interface DefaultFrigadeFlowProps {
158
158
  * @param index
159
159
  * @param cta
160
160
  */
161
- onButtonClick?: (step: StepData, index?: number, cta?: 'primary' | 'secondary' | 'link', nextStep?: StepData) => boolean;
161
+ onButtonClick?: (step: StepData, index?: number, cta?: 'primary' | 'secondary' | 'link' | 'back', nextStep?: StepData) => boolean;
162
162
  onDismiss?: () => void;
163
163
  onComplete?: () => void;
164
164
  }
@@ -519,6 +519,7 @@ interface FrigadeFormProps extends DefaultFrigadeFlowProps {
519
519
  showPagination?: boolean;
520
520
  /**
521
521
  * Whether to allow the user to navigate back to previous steps. Default is false.
522
+ * The title of the button can be controlled by the `backButtonTitle` prop on the step.
522
523
  */
523
524
  allowBackNavigation?: boolean;
524
525
  /**
@@ -704,6 +705,11 @@ interface FrigadeAnnouncementProps extends DefaultFrigadeFlowProps {
704
705
  * Show a pagination indicator at the bottom of the announcement when using more than 1 page. Default is true.
705
706
  */
706
707
  showPagination?: boolean;
708
+ /**
709
+ * Whether to allow the user to navigate back to previous steps. Default is false.
710
+ * The title of the button can be controlled by the `backButtonTitle` prop on the step.
711
+ */
712
+ allowBackNavigation?: boolean;
707
713
  }
708
714
  declare const FrigadeAnnouncement: React__default.FC<FrigadeAnnouncementProps>;
709
715