@frigade/react 1.37.20 → 1.37.22
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 +9 -14
- package/dist/index.js +247 -247
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +246 -246
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import { BorderProps, ColorProps, LayoutProps, ShadowProps, SpaceProps, TypographyProps, FontProps } from 'styled-system';
|
|
4
5
|
|
|
5
6
|
type StepActionType = 'STARTED_STEP' | 'COMPLETED_STEP' | 'NOT_STARTED_STEP';
|
|
@@ -104,7 +105,6 @@ interface StepData {
|
|
|
104
105
|
*/
|
|
105
106
|
handleSecondaryButtonClick?: () => void;
|
|
106
107
|
ctaActionType?: 'complete';
|
|
107
|
-
imageStyle?: CSSProperties;
|
|
108
108
|
props?: any;
|
|
109
109
|
/**
|
|
110
110
|
* Criteria that needs to be met for the step to complete
|
|
@@ -716,15 +716,10 @@ declare function useFlowOpens(): {
|
|
|
716
716
|
declare function useUser(): {
|
|
717
717
|
readonly userId: string | null;
|
|
718
718
|
readonly setUserId: React__default.Dispatch<React__default.SetStateAction<string | null>>;
|
|
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>;
|
|
719
|
+
readonly setUserIdWithProperties: (userId: string, properties?: EntityProperties) => Promise<void>;
|
|
726
720
|
readonly addPropertiesToUser: (properties: EntityProperties) => Promise<void>;
|
|
727
721
|
readonly trackEventForUser: (event: string, properties?: EntityProperties) => Promise<void>;
|
|
722
|
+
readonly linkExistingGuestSessionToUser: (userId: string) => Promise<void>;
|
|
728
723
|
};
|
|
729
724
|
|
|
730
725
|
declare function useOrganization(): {
|
|
@@ -760,9 +755,9 @@ declare function Label({ title, required, appearance, }: {
|
|
|
760
755
|
title?: string;
|
|
761
756
|
required: boolean;
|
|
762
757
|
appearance?: Appearance;
|
|
763
|
-
}):
|
|
758
|
+
}): react_jsx_runtime.JSX.Element;
|
|
764
759
|
|
|
765
|
-
declare function TextField({ formInput, customFormTypeProps, onSaveInputData, setFormValidationErrors, inputData, }: FormInputProps):
|
|
760
|
+
declare function TextField({ formInput, customFormTypeProps, onSaveInputData, setFormValidationErrors, inputData, }: FormInputProps): react_jsx_runtime.JSX.Element;
|
|
766
761
|
|
|
767
762
|
interface Overrides extends Record<string, Overrides | CSSProperties> {
|
|
768
763
|
}
|
|
@@ -772,14 +767,14 @@ type BoxProps<T extends ElementType = 'div'> = {
|
|
|
772
767
|
children?: ReactNode;
|
|
773
768
|
overrides?: Overrides;
|
|
774
769
|
} & BorderProps & ColorProps & Exclude<LayoutProps, 'size'> & ShadowProps & SpaceProps & TypographyProps & ComponentPropsWithoutRef<T>;
|
|
775
|
-
declare const Box: <T extends React__default.ElementType<any> = "div">({ as, children, overrides, ...rest }: any) =>
|
|
770
|
+
declare const Box: <T extends React__default.ElementType<any> = "div">({ as, children, overrides, ...rest }: any) => react_jsx_runtime.JSX.Element;
|
|
776
771
|
|
|
777
772
|
interface ButtonProps extends BoxProps {
|
|
778
773
|
title: string;
|
|
779
774
|
}
|
|
780
775
|
declare const Button: React.FC<ButtonProps> & {
|
|
781
776
|
[k: string]: {
|
|
782
|
-
(props: ButtonProps):
|
|
777
|
+
(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
783
778
|
displayName: string;
|
|
784
779
|
};
|
|
785
780
|
};
|
|
@@ -870,7 +865,7 @@ interface BaseTextProps extends BoxProps, Partial<Pick<FontProps, 'fontWeight'>>
|
|
|
870
865
|
}
|
|
871
866
|
declare const Text: React__default.FC<BaseTextProps> & {
|
|
872
867
|
[k: string]: {
|
|
873
|
-
(props: BaseTextProps):
|
|
868
|
+
(props: BaseTextProps): react_jsx_runtime.JSX.Element;
|
|
874
869
|
displayName: string;
|
|
875
870
|
};
|
|
876
871
|
};
|
|
@@ -884,7 +879,7 @@ declare const ProgressBar: ({ count, total, display, textLocation, style, textSt
|
|
|
884
879
|
style?: CSSProperties;
|
|
885
880
|
textStyle?: CSSProperties;
|
|
886
881
|
appearance?: Appearance;
|
|
887
|
-
}) =>
|
|
882
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
888
883
|
|
|
889
884
|
declare const tokens: {
|
|
890
885
|
colors: {
|