@frigade/react 1.35.13 → 1.35.15

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
@@ -217,7 +217,7 @@ declare enum TriggerType {
217
217
  }
218
218
  declare function useFlows(): {
219
219
  getFlow: (flowId: string) => Flow;
220
- getFlowData: (flowId: string) => any;
220
+ getFlowData: <T>(flowId: string) => T;
221
221
  isLoading: boolean;
222
222
  getStepStatus: (flowId: string, stepId: string) => StepActionType | null;
223
223
  getFlowSteps: (flowId: string) => StepData[];
@@ -260,6 +260,13 @@ interface FlowResponse {
260
260
  blocked: boolean;
261
261
  hidden: boolean;
262
262
  }
263
+ interface PublicStepState {
264
+ stepId: string;
265
+ actionType: 'COMPLETED_STEP' | 'STARTED_STEP' | 'NOT_STARTED_STEP';
266
+ blocked: boolean;
267
+ hidden: boolean;
268
+ createdAt: Date;
269
+ }
263
270
  declare function useFlowResponses(): {
264
271
  addResponse: (flowResponse: FlowResponse) => Promise<void>;
265
272
  setFlowResponses: React.Dispatch<React.SetStateAction<FlowResponse[]>>;
@@ -990,4 +997,4 @@ declare const tokens: {
990
997
  };
991
998
  };
992
999
 
993
- export { Appearance, Box, Button, CheckBox, CustomFormTypeProps, EntityProperties, FormInputProps, FormInputType, Label as FormLabel, TextField as FormTextField, FormValidationError, FrigadeAnnouncement, FrigadeBanner, FrigadeChecklist, DefaultAppearance as FrigadeDefaultAppearance, FrigadeEmbeddedTip, FrigadeForm, FrigadeGuide, FrigadeHeroChecklist, FrigadeNPSSurvey, FrigadeProgressBadge, FrigadeProvider, FrigadeSupportWidget, BaseTheme as FrigadeTheme, FrigadeTour, ProgressRing, StepContentProps, StepData, Text, tokens, useFlowOpens, useFlowResponses, useFlows, useOrganization, useUser, useUserFlowStates };
1000
+ export { Appearance, Box, Button, CheckBox, CustomFormTypeProps, EntityProperties, Flow, FlowResponse, FlowType, FormInputProps, FormInputType, Label as FormLabel, TextField as FormTextField, FormValidationError, FrigadeAnnouncement, FrigadeBanner, FrigadeChecklist, DefaultAppearance as FrigadeDefaultAppearance, FrigadeEmbeddedTip, FrigadeForm, FrigadeGuide, FrigadeHeroChecklist, FrigadeNPSSurvey, FrigadeProgressBadge, FrigadeProvider, FrigadeSupportWidget, BaseTheme as FrigadeTheme, FrigadeTour, ProgressRing, PublicStepState, StepContentProps, StepData, Text, tokens, useFlowOpens, useFlowResponses, useFlows, useOrganization, useUser, useUserFlowStates };