@frigade/react 1.35.9 → 1.35.11

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
@@ -216,7 +216,7 @@ declare enum TriggerType {
216
216
  AUTOMATIC = "AUTOMATIC"
217
217
  }
218
218
  declare function useFlows(): {
219
- getFlow: (slug: string) => Flow;
219
+ getFlow: (flowId: string) => Flow;
220
220
  getFlowData: (flowId: string) => any;
221
221
  isLoading: boolean;
222
222
  getStepStatus: (flowId: string, stepId: string) => StepActionType | null;
@@ -617,30 +617,32 @@ declare const FrigadeTour: FC<FrigadeTourProps & {
617
617
  initialSelectedStep?: number;
618
618
  }>;
619
619
 
620
- interface FloatingWidgetProps extends DefaultFrigadeFlowProps {
620
+ interface FrigadeSupportWidgetProps extends DefaultFrigadeFlowProps {
621
621
  type?: 'floating' | 'inline';
622
622
  visible?: boolean;
623
623
  title?: string;
624
624
  }
625
- declare const FrigadeSupportWidget: FC<FloatingWidgetProps>;
625
+ declare const FrigadeSupportWidget: FC<FrigadeSupportWidgetProps>;
626
626
 
627
627
  interface FrigadeEmbeddedTipProps extends DefaultFrigadeFlowProps {
628
628
  dismissible?: boolean;
629
629
  }
630
630
  declare const FrigadeEmbeddedTip: React__default.FC<FrigadeEmbeddedTipProps>;
631
631
 
632
- /**
633
- * Frigade Banners
634
- * full-width: Full width banner, useful in top of the page
635
- * square: Square sized banner, useful in sidebars
636
- *
637
- */
638
632
  type FrigadeBannerType = 'full-width' | 'square';
639
633
  interface FrigadeBannerProps extends DefaultFrigadeFlowProps {
634
+ /**
635
+ * full-width: Full width banner, useful in top of the page.
636
+ *
637
+ * square: Square sized banner, useful in sidebars
638
+ */
640
639
  type?: FrigadeBannerType;
641
640
  title?: string;
642
641
  subtitle?: string;
643
642
  onDismiss?: () => void;
643
+ /**
644
+ * Icon to use in the banner
645
+ */
644
646
  icon?: React__default.ReactNode;
645
647
  }
646
648
  declare const FrigadeBanner: React__default.FC<FrigadeBannerProps>;