@frigade/react 1.37.22 → 1.38.0
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 +15 -11
- package/dist/index.js +311 -303
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +310 -302
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { CSSProperties, FC, ElementType, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
3
|
import { BorderProps, ColorProps, LayoutProps, ShadowProps, SpaceProps, TypographyProps, FontProps } from 'styled-system';
|
|
5
4
|
|
|
6
5
|
type StepActionType = 'STARTED_STEP' | 'COMPLETED_STEP' | 'NOT_STARTED_STEP';
|
|
@@ -243,7 +242,7 @@ declare function useFlows(): {
|
|
|
243
242
|
markFlowNotStarted: (flowId: string, data?: any) => Promise<void>;
|
|
244
243
|
markFlowStarted: (flowId: string, data?: any) => Promise<void>;
|
|
245
244
|
markFlowCompleted: (flowId: string, data?: any) => Promise<void>;
|
|
246
|
-
|
|
245
|
+
markFlowSkipped: (flowId: string, data?: any) => Promise<void>;
|
|
247
246
|
markStepNotStarted: (flowId: string, stepId: string, data?: any) => Promise<void>;
|
|
248
247
|
getFlowStatus: (flowId: string) => "COMPLETED_FLOW" | "STARTED_FLOW" | "NOT_STARTED_FLOW";
|
|
249
248
|
getNumberOfStepsCompleted: (flowId: string) => number;
|
|
@@ -634,10 +633,10 @@ interface FrigadeTourProps extends Omit<DefaultFrigadeFlowProps, 'flowId'> {
|
|
|
634
633
|
*/
|
|
635
634
|
showStepCount?: boolean;
|
|
636
635
|
/**
|
|
637
|
-
* `
|
|
638
|
-
* `complete-step`: Completes the current step when a tooltip is dismissed.
|
|
636
|
+
* `skip-flow` (default): Completes the entire flow/tour when a single tooltip is dismissed.
|
|
637
|
+
* `complete-step`: Completes the current step when a tooltip is dismissed. The user can continue in the tour.
|
|
639
638
|
*/
|
|
640
|
-
dismissBehavior?: '
|
|
639
|
+
dismissBehavior?: 'skip-flow' | 'complete-step';
|
|
641
640
|
/**
|
|
642
641
|
* @ignore
|
|
643
642
|
*/
|
|
@@ -701,6 +700,10 @@ interface FrigadeAnnouncementProps extends DefaultFrigadeFlowProps {
|
|
|
701
700
|
* Indicates the position of the modal if the form type is a modal. Default is center.
|
|
702
701
|
*/
|
|
703
702
|
modalPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'inline';
|
|
703
|
+
/**
|
|
704
|
+
* Show a pagination indicator at the bottom of the announcement when using more than 1 page. Default is true.
|
|
705
|
+
*/
|
|
706
|
+
showPagination?: boolean;
|
|
704
707
|
}
|
|
705
708
|
declare const FrigadeAnnouncement: React__default.FC<FrigadeAnnouncementProps>;
|
|
706
709
|
|
|
@@ -744,6 +747,7 @@ declare function useUserFlowStates(): {
|
|
|
744
747
|
isLoadingUserFlowStateData: boolean;
|
|
745
748
|
mutateUserFlowState: () => any;
|
|
746
749
|
optimisticallyMarkFlowCompleted: (flowId: string) => void;
|
|
750
|
+
optimisticallyMarkFlowSkipped: (flowId: string) => void;
|
|
747
751
|
optimisticallyMarkFlowNotStarted: (flowId: string) => void;
|
|
748
752
|
optimisticallyMarkStepCompleted: (flowId: string, stepId: string, flowResponse: FlowResponse) => void;
|
|
749
753
|
optimisticallyMarkStepNotStarted: (flowId: string, stepId: string, flowResponse: FlowResponse) => void;
|
|
@@ -755,9 +759,9 @@ declare function Label({ title, required, appearance, }: {
|
|
|
755
759
|
title?: string;
|
|
756
760
|
required: boolean;
|
|
757
761
|
appearance?: Appearance;
|
|
758
|
-
}):
|
|
762
|
+
}): React__default.JSX.Element;
|
|
759
763
|
|
|
760
|
-
declare function TextField({ formInput, customFormTypeProps, onSaveInputData, setFormValidationErrors, inputData, }: FormInputProps):
|
|
764
|
+
declare function TextField({ formInput, customFormTypeProps, onSaveInputData, setFormValidationErrors, inputData, }: FormInputProps): React__default.JSX.Element;
|
|
761
765
|
|
|
762
766
|
interface Overrides extends Record<string, Overrides | CSSProperties> {
|
|
763
767
|
}
|
|
@@ -767,14 +771,14 @@ type BoxProps<T extends ElementType = 'div'> = {
|
|
|
767
771
|
children?: ReactNode;
|
|
768
772
|
overrides?: Overrides;
|
|
769
773
|
} & BorderProps & ColorProps & Exclude<LayoutProps, 'size'> & ShadowProps & SpaceProps & TypographyProps & ComponentPropsWithoutRef<T>;
|
|
770
|
-
declare const Box: <T extends React__default.ElementType<any> = "div">({ as, children, overrides, ...rest }: any) =>
|
|
774
|
+
declare const Box: <T extends React__default.ElementType<any> = "div">({ as, children, overrides, ...rest }: any) => React__default.JSX.Element;
|
|
771
775
|
|
|
772
776
|
interface ButtonProps extends BoxProps {
|
|
773
777
|
title: string;
|
|
774
778
|
}
|
|
775
779
|
declare const Button: React.FC<ButtonProps> & {
|
|
776
780
|
[k: string]: {
|
|
777
|
-
(props: ButtonProps):
|
|
781
|
+
(props: ButtonProps): React.JSX.Element;
|
|
778
782
|
displayName: string;
|
|
779
783
|
};
|
|
780
784
|
};
|
|
@@ -865,7 +869,7 @@ interface BaseTextProps extends BoxProps, Partial<Pick<FontProps, 'fontWeight'>>
|
|
|
865
869
|
}
|
|
866
870
|
declare const Text: React__default.FC<BaseTextProps> & {
|
|
867
871
|
[k: string]: {
|
|
868
|
-
(props: BaseTextProps):
|
|
872
|
+
(props: BaseTextProps): React__default.JSX.Element;
|
|
869
873
|
displayName: string;
|
|
870
874
|
};
|
|
871
875
|
};
|
|
@@ -879,7 +883,7 @@ declare const ProgressBar: ({ count, total, display, textLocation, style, textSt
|
|
|
879
883
|
style?: CSSProperties;
|
|
880
884
|
textStyle?: CSSProperties;
|
|
881
885
|
appearance?: Appearance;
|
|
882
|
-
}) =>
|
|
886
|
+
}) => React__default.JSX.Element;
|
|
883
887
|
|
|
884
888
|
declare const tokens: {
|
|
885
889
|
colors: {
|