@frigade/react 1.37.19 → 1.37.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/dist/index.d.ts +12 -2
- package/dist/index.js +79 -78
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +112 -111
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,10 @@ interface StepData {
|
|
|
123
123
|
* Whether to show a highlight in the page where the step is shown. Typically used in tooltips for creating small pings.
|
|
124
124
|
*/
|
|
125
125
|
showHighlight?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Any other additional props defined in config.yml
|
|
128
|
+
*/
|
|
129
|
+
[x: string | number | symbol]: unknown;
|
|
126
130
|
}
|
|
127
131
|
interface DefaultFrigadeFlowProps {
|
|
128
132
|
flowId: string;
|
|
@@ -712,7 +716,13 @@ declare function useFlowOpens(): {
|
|
|
712
716
|
declare function useUser(): {
|
|
713
717
|
readonly userId: string | null;
|
|
714
718
|
readonly setUserId: React__default.Dispatch<React__default.SetStateAction<string | null>>;
|
|
715
|
-
|
|
719
|
+
/**
|
|
720
|
+
* Sets the user id and properties for the current user.
|
|
721
|
+
* @param userId The user id of the user that is currently logged in.
|
|
722
|
+
* @param properties The properties of the user that is currently logged in.
|
|
723
|
+
* @param linkGuestSession If true, any data/state collected during guest session will be linked to the user.
|
|
724
|
+
*/
|
|
725
|
+
readonly setUserIdWithProperties: (userId: string, properties?: EntityProperties, linkGuestSession?: boolean) => Promise<void>;
|
|
716
726
|
readonly addPropertiesToUser: (properties: EntityProperties) => Promise<void>;
|
|
717
727
|
readonly trackEventForUser: (event: string, properties?: EntityProperties) => Promise<void>;
|
|
718
728
|
};
|
|
@@ -1039,4 +1049,4 @@ declare const tokens: {
|
|
|
1039
1049
|
};
|
|
1040
1050
|
};
|
|
1041
1051
|
|
|
1042
|
-
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, ProgressBar, ProgressRing, PublicStepState, StepContentProps, StepData, Text, tokens, useFlowOpens, useFlowResponses, useFlows, useOrganization, useUser, useUserFlowStates };
|
|
1052
|
+
export { Appearance, Box, Button, CheckBox, CustomFormTypeProps, EntityProperties, Flow, FlowResponse, FlowType, FormInputProps, FormInputType, Label as FormLabel, TextField as FormTextField, FormValidationError, FrigadeAnnouncement, FrigadeAnnouncementProps, FrigadeBanner, FrigadeBannerProps, FrigadeChecklist, FrigadeChecklistProps, DefaultAppearance as FrigadeDefaultAppearance, FrigadeEmbeddedTip, FrigadeEmbeddedTipProps, FrigadeForm, FrigadeFormProps, FrigadeGuide, FrigadeHeroChecklist, FrigadeNPSSurvey, FrigadeNPSSurveyProps, FrigadeProgressBadge, FrigadeProgressBadgeProps, FrigadeProvider, FrigadeSupportWidget, BaseTheme as FrigadeTheme, FrigadeTour, FrigadeTourProps, ProgressBar, ProgressRing, PublicStepState, StepContentProps, StepData, Text, tokens, useFlowOpens, useFlowResponses, useFlows, useOrganization, useUser, useUserFlowStates };
|