@frigade/react 1.33.18 → 1.33.20
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 +22 -1
- package/lib/index.js +90 -90
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +77 -77
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -666,6 +666,27 @@ declare function useOrganization(): {
|
|
|
666
666
|
trackEventForOrganization: (event: string, properties?: EntityProperties) => Promise<void>;
|
|
667
667
|
};
|
|
668
668
|
|
|
669
|
+
interface PublicUserFlowState {
|
|
670
|
+
flowId: string;
|
|
671
|
+
flowState: 'COMPLETED_FLOW' | 'STARTED_FLOW' | 'NOT_STARTED_FLOW';
|
|
672
|
+
lastStepId: string;
|
|
673
|
+
userId: string;
|
|
674
|
+
foreignUserId: string;
|
|
675
|
+
stepStates: object;
|
|
676
|
+
shouldTrigger: boolean;
|
|
677
|
+
}
|
|
678
|
+
declare function useUserFlowStates(): {
|
|
679
|
+
userFlowStatesData: PublicUserFlowState[];
|
|
680
|
+
isLoadingUserFlowStateData: boolean;
|
|
681
|
+
mutateUserFlowState: () => any;
|
|
682
|
+
optimisticallyMarkFlowCompleted: (flowId: string) => void;
|
|
683
|
+
optimisticallyMarkFlowNotStarted: (flowId: string) => void;
|
|
684
|
+
optimisticallyMarkStepCompleted: (flowId: string, stepId: string, flowResponse: FlowResponse) => void;
|
|
685
|
+
optimisticallyMarkStepNotStarted: (flowId: string, stepId: string) => void;
|
|
686
|
+
optimisticallyMarkStepStarted: (flowId: string, stepId: string, flowResponse: FlowResponse) => void;
|
|
687
|
+
error: any;
|
|
688
|
+
};
|
|
689
|
+
|
|
669
690
|
declare function Label({ title, required, appearance, }: {
|
|
670
691
|
title?: string;
|
|
671
692
|
required: boolean;
|
|
@@ -948,4 +969,4 @@ declare const tokens: {
|
|
|
948
969
|
};
|
|
949
970
|
};
|
|
950
971
|
|
|
951
|
-
export { Appearance, Box, Button, CheckBox, CustomFormTypeProps, EntityProperties, FormInputProps, FormInputType, Label as FormLabel, TextField as FormTextField, FormValidationError, 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 };
|
|
972
|
+
export { Appearance, Box, Button, CheckBox, CustomFormTypeProps, EntityProperties, FormInputProps, FormInputType, Label as FormLabel, TextField as FormTextField, FormValidationError, 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 };
|