@livetiles/reach-plugin-types 0.5.0-preview.1125 → 0.5.0-preview.1127
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 +31 -28
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -860,6 +860,30 @@ declare module "libs/reach/util/context/src/MemoryCache" {
|
|
|
860
860
|
}
|
|
861
861
|
export const memoryStorageInstance: MemoryStorage;
|
|
862
862
|
}
|
|
863
|
+
declare module "libs/reach/util/context/src/useNewExperienceStorage" {
|
|
864
|
+
export function useNewUserExperienceStorage(): {
|
|
865
|
+
getUseNewUserExperience: (subscriptionId: string) => Promise<boolean>;
|
|
866
|
+
setUseNewUserExperience: (subscriptionId: string, enabled: boolean) => Promise<void>;
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
declare module "libs/reach/util/context/src/NewUserExperienceContext" {
|
|
870
|
+
import { Dispatch, FC, SetStateAction } from 'react';
|
|
871
|
+
export function useNewUserExperience(): {
|
|
872
|
+
brandColor?: string;
|
|
873
|
+
isLoading?: boolean;
|
|
874
|
+
isNewUXEnabled?: boolean;
|
|
875
|
+
setBrandColor?: Dispatch<SetStateAction<string>>;
|
|
876
|
+
setIsNewUXEnabled?: (enabled: boolean) => void;
|
|
877
|
+
};
|
|
878
|
+
export const NewUserExperienceContext: import("react").Context<{
|
|
879
|
+
brandColor?: string;
|
|
880
|
+
isLoading?: boolean;
|
|
881
|
+
isNewUXEnabled?: boolean;
|
|
882
|
+
setBrandColor?: Dispatch<SetStateAction<string>>;
|
|
883
|
+
setIsNewUXEnabled?: (enabled: boolean) => void;
|
|
884
|
+
}>;
|
|
885
|
+
export const NewUserExperienceContextProvider: FC;
|
|
886
|
+
}
|
|
863
887
|
declare module "libs/reach/util/context/src/ResourceContext" {
|
|
864
888
|
import { FC } from 'react';
|
|
865
889
|
import { IntlShape } from 'react-intl';
|
|
@@ -890,19 +914,22 @@ declare module "libs/reach/util/context/src/SubscriptionIdContext" {
|
|
|
890
914
|
}
|
|
891
915
|
declare module "libs/reach/util/context/src/SubscriptionIdContextProvider" {
|
|
892
916
|
import { FC } from 'react';
|
|
893
|
-
|
|
917
|
+
interface ISubscriptionContextProvider {
|
|
894
918
|
subscriptionId?: string;
|
|
895
|
-
}
|
|
919
|
+
}
|
|
920
|
+
export const SubscriptionIdContextProvider: FC<ISubscriptionContextProvider>;
|
|
896
921
|
}
|
|
897
922
|
declare module "libs/reach/util/context/src/index" {
|
|
898
923
|
export * from "libs/reach/util/context/src/ChromeSettingsContext";
|
|
899
924
|
export * from "libs/reach/util/context/src/ErrorContext";
|
|
900
925
|
export * from "libs/reach/util/context/src/LinkContext";
|
|
901
926
|
export * from "libs/reach/util/context/src/MemoryCache";
|
|
927
|
+
export * from "libs/reach/util/context/src/NewUserExperienceContext";
|
|
902
928
|
export * from "libs/reach/util/context/src/ResourceContext";
|
|
903
929
|
export * from "libs/reach/util/context/src/StorageContext";
|
|
904
930
|
export * from "libs/reach/util/context/src/SubscriptionIdContext";
|
|
905
931
|
export * from "libs/reach/util/context/src/SubscriptionIdContextProvider";
|
|
932
|
+
export * from "libs/reach/util/context/src/useNewExperienceStorage";
|
|
906
933
|
}
|
|
907
934
|
declare module "libs/reach/util/common/src/user/Audience" {
|
|
908
935
|
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
@@ -3377,30 +3404,6 @@ declare module "libs/reach/util/common/src/reach-2/GlobalStyles" {
|
|
|
3377
3404
|
export const BorderStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
3378
3405
|
export const EditorScrollbarStyles: (hideWhenNotHovered?: boolean, showBackground?: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
3379
3406
|
}
|
|
3380
|
-
declare module "libs/reach/util/common/src/reach-2/useNewExperienceStorage" {
|
|
3381
|
-
export function useNewUserExperienceStorage(): {
|
|
3382
|
-
getUseNewUserExperience: () => Promise<boolean>;
|
|
3383
|
-
setUseNewUserExperience: (b: boolean) => Promise<void>;
|
|
3384
|
-
};
|
|
3385
|
-
}
|
|
3386
|
-
declare module "libs/reach/util/common/src/reach-2/NewUserExperienceContext" {
|
|
3387
|
-
import { Dispatch, FC, SetStateAction } from 'react';
|
|
3388
|
-
export function useNewUserExperience(): {
|
|
3389
|
-
brandColor?: string;
|
|
3390
|
-
isLoading?: boolean;
|
|
3391
|
-
isNewUXEnabled?: boolean;
|
|
3392
|
-
setBrandColor?: Dispatch<SetStateAction<string>>;
|
|
3393
|
-
setIsNewUXEnabled?: (enabled: boolean) => void;
|
|
3394
|
-
};
|
|
3395
|
-
export const NewUserExperienceContext: import("react").Context<{
|
|
3396
|
-
brandColor?: string;
|
|
3397
|
-
isLoading?: boolean;
|
|
3398
|
-
isNewUXEnabled?: boolean;
|
|
3399
|
-
setBrandColor?: Dispatch<SetStateAction<string>>;
|
|
3400
|
-
setIsNewUXEnabled?: (enabled: boolean) => void;
|
|
3401
|
-
}>;
|
|
3402
|
-
export const NewUserExperienceContextProvider: FC;
|
|
3403
|
-
}
|
|
3404
3407
|
declare module "libs/reach/util/common/src/reach-2/ThemeContext" {
|
|
3405
3408
|
import { FC, ReactNode } from 'react';
|
|
3406
3409
|
import { Theme } from "libs/reach/util/common/src/user/Subscription";
|
|
@@ -3962,13 +3965,11 @@ declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogg
|
|
|
3962
3965
|
declare module "libs/reach/util/common/src/reach-2/index" {
|
|
3963
3966
|
export * from "libs/reach/util/common/src/reach-2/FocusStyles";
|
|
3964
3967
|
export * from "libs/reach/util/common/src/reach-2/GlobalStyles";
|
|
3965
|
-
export * from "libs/reach/util/common/src/reach-2/NewUserExperienceContext";
|
|
3966
3968
|
export * from "libs/reach/util/common/src/reach-2/ThemeContext";
|
|
3967
3969
|
export * from "libs/reach/util/common/src/reach-2/members/IMember";
|
|
3968
3970
|
export * from "libs/reach/util/common/src/reach-2/members/useMembersQuery";
|
|
3969
3971
|
export * from "libs/reach/util/common/src/reach-2/nested-groups/index";
|
|
3970
3972
|
export * from "libs/reach/util/common/src/reach-2/resources/index";
|
|
3971
|
-
export * from "libs/reach/util/common/src/reach-2/useNewExperienceStorage";
|
|
3972
3973
|
export * from "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls";
|
|
3973
3974
|
}
|
|
3974
3975
|
declare module "libs/reach/util/common/src/reachClassNames" {
|
|
@@ -6110,6 +6111,7 @@ declare module "libs/reach/ui/common/src/reach-2/avatar/Avatar" {
|
|
|
6110
6111
|
backgroundColor?: string;
|
|
6111
6112
|
className?: string;
|
|
6112
6113
|
displayName: string;
|
|
6114
|
+
isHovered?: boolean;
|
|
6113
6115
|
noInitials?: boolean;
|
|
6114
6116
|
size?: AvatarSize;
|
|
6115
6117
|
tenantId?: string;
|
|
@@ -6138,6 +6140,7 @@ declare module "libs/reach/ui/common/src/reach-2/avatar/Persona" {
|
|
|
6138
6140
|
interface IProps {
|
|
6139
6141
|
className?: string;
|
|
6140
6142
|
displayName: string;
|
|
6143
|
+
isHovered?: boolean;
|
|
6141
6144
|
onClick?: () => void;
|
|
6142
6145
|
onMouseLeave?: () => void;
|
|
6143
6146
|
onMouseOver?: () => void;
|