@frigade/react 1.32.26 → 1.32.28
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 +12 -4
- package/lib/index.js +293 -206
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +293 -206
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -190,7 +190,8 @@ declare enum FlowType {
|
|
|
190
190
|
SUPPORT = "SUPPORT",
|
|
191
191
|
CUSTOM = "CUSTOM",
|
|
192
192
|
BANNER = "BANNER",
|
|
193
|
-
EMBEDDED_TIP = "EMBEDDED_TIP"
|
|
193
|
+
EMBEDDED_TIP = "EMBEDDED_TIP",
|
|
194
|
+
NPS_SURVEY = "NPS_SURVEY"
|
|
194
195
|
}
|
|
195
196
|
declare enum TriggerType {
|
|
196
197
|
MANUAL = "MANUAL",
|
|
@@ -314,7 +315,7 @@ interface HeroChecklistProps extends Omit<DefaultFrigadeFlowProps, 'flowId'> {
|
|
|
314
315
|
onCompleteStep?: (index: number, stepData: StepData) => void;
|
|
315
316
|
selectedStep?: number;
|
|
316
317
|
setSelectedStep?: (index: number) => void;
|
|
317
|
-
customStepTypes?:
|
|
318
|
+
customStepTypes?: Record<string, (stepData: StepData, appearance: Appearance) => React__default.ReactNode>;
|
|
318
319
|
}
|
|
319
320
|
|
|
320
321
|
interface FrigadeHeroChecklistProps extends HeroChecklistProps {
|
|
@@ -444,7 +445,7 @@ interface ToolTipProps extends Omit<DefaultFrigadeFlowProps, 'flowId'> {
|
|
|
444
445
|
[key: string]: string | number | boolean;
|
|
445
446
|
};
|
|
446
447
|
selectedStep?: number;
|
|
447
|
-
customStepTypes?:
|
|
448
|
+
customStepTypes?: Record<string, (stepData: StepData) => React__default.ReactNode>;
|
|
448
449
|
appearance?: Appearance;
|
|
449
450
|
/**
|
|
450
451
|
* Shows a close button in the top right corner of the tooltip. This will end the flow.
|
|
@@ -499,11 +500,18 @@ interface FrigadeBannerProps extends DefaultFrigadeFlowProps {
|
|
|
499
500
|
}
|
|
500
501
|
declare const FrigadeBanner: React__default.FC<FrigadeBannerProps>;
|
|
501
502
|
|
|
503
|
+
interface FrigadeNPSSurveyProps extends DefaultFrigadeFlowProps {
|
|
504
|
+
dismissible?: boolean;
|
|
505
|
+
}
|
|
506
|
+
declare const FrigadeNPSSurvey: React__default.FC<FrigadeNPSSurveyProps>;
|
|
507
|
+
|
|
502
508
|
declare function useFlowOpens(): {
|
|
503
509
|
getOpenFlowState: (flowSlug: string, defaultValue?: boolean) => boolean;
|
|
504
510
|
setOpenFlowState: (flowSlug: string, isOpen: boolean) => void;
|
|
505
511
|
resetOpenFlowState: (flowSlug: string) => void;
|
|
506
512
|
hasOpenModals: () => boolean;
|
|
513
|
+
setKeepCompletedFlowOpenDuringSession: (flowSlug: string) => void;
|
|
514
|
+
shouldKeepCompletedFlowOpenDuringSession: (flowSlug: string) => boolean;
|
|
507
515
|
};
|
|
508
516
|
|
|
509
517
|
declare function useUser(): {
|
|
@@ -526,4 +534,4 @@ declare function Label({ title, required, appearance, }: {
|
|
|
526
534
|
appearance: Appearance;
|
|
527
535
|
}): JSX.Element;
|
|
528
536
|
|
|
529
|
-
export { Appearance, CustomFormTypeProps, EntityProperties, FormInputProps, FormInputType, Label as FormLabel, FormValidationError, FrigadeBanner, FrigadeChecklist, FrigadeEmbeddedTip, FrigadeForm, FrigadeGuide, FrigadeHeroChecklist, FrigadeProgressBadge, FrigadeProvider, FrigadeSupportWidget, BaseTheme as FrigadeTheme, FrigadeTour, StepContentProps, StepData, useFlowOpens, useFlowResponses, useFlows, useOrganization, useUser };
|
|
537
|
+
export { Appearance, CustomFormTypeProps, EntityProperties, FormInputProps, FormInputType, Label as FormLabel, FormValidationError, FrigadeBanner, FrigadeChecklist, FrigadeEmbeddedTip, FrigadeForm, FrigadeGuide, FrigadeHeroChecklist, FrigadeNPSSurvey, FrigadeProgressBadge, FrigadeProvider, FrigadeSupportWidget, BaseTheme as FrigadeTheme, FrigadeTour, StepContentProps, StepData, useFlowOpens, useFlowResponses, useFlows, useOrganization, useUser };
|