@mparticle/aquarium 1.0.0-fix-semantic-release.1

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.
Files changed (133) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +28 -0
  3. package/dist/aquarium.js +23748 -0
  4. package/dist/aquarium.umd.cjs +195 -0
  5. package/dist/index.d.ts +1 -0
  6. package/dist/src/components/data-display/Avatar/Avatar.d.ts +8 -0
  7. package/dist/src/components/data-display/Badge/Badge.d.ts +8 -0
  8. package/dist/src/components/data-display/Card/Card.d.ts +9 -0
  9. package/dist/src/components/data-display/Collapse/Collapse.d.ts +8 -0
  10. package/dist/src/components/data-display/Descriptions/Descriptions.d.ts +8 -0
  11. package/dist/src/components/data-display/Empty/Empty.d.ts +9 -0
  12. package/dist/src/components/data-display/Image/Image.d.ts +8 -0
  13. package/dist/src/components/data-display/List/List.d.ts +7 -0
  14. package/dist/src/components/data-display/Popover/Popover.d.ts +4 -0
  15. package/dist/src/components/data-display/Segmented/Segmented.d.ts +6 -0
  16. package/dist/src/components/data-display/Table/Table.d.ts +18 -0
  17. package/dist/src/components/data-display/Tabs/Tabs.d.ts +8 -0
  18. package/dist/src/components/data-display/Tag/Tag.d.ts +12 -0
  19. package/dist/src/components/data-display/Tooltip/Tooltip.d.ts +4 -0
  20. package/dist/src/components/data-display/Tour/Tour.d.ts +4 -0
  21. package/dist/src/components/data-entry/AutoComplete/AutoComplete.d.ts +4 -0
  22. package/dist/src/components/data-entry/Cascader/Cascader.d.ts +9 -0
  23. package/dist/src/components/data-entry/Checkbox/Checkbox.d.ts +8 -0
  24. package/dist/src/components/data-entry/DatePicker/DatePicker.d.ts +66 -0
  25. package/dist/src/components/data-entry/Form/Form.d.ts +22 -0
  26. package/dist/src/components/data-entry/Input/Input.d.ts +14 -0
  27. package/dist/src/components/data-entry/InputNumber/InputNumber.d.ts +4 -0
  28. package/dist/src/components/data-entry/QueryItem/Action.d.ts +9 -0
  29. package/dist/src/components/data-entry/QueryItem/Cascader.d.ts +26 -0
  30. package/dist/src/components/data-entry/QueryItem/NumberInput.d.ts +15 -0
  31. package/dist/src/components/data-entry/QueryItem/Qualifier.d.ts +11 -0
  32. package/dist/src/components/data-entry/QueryItem/QueryItem.d.ts +12 -0
  33. package/dist/src/components/data-entry/QueryItem/Text.d.ts +6 -0
  34. package/dist/src/components/data-entry/QueryItem/TextInput.d.ts +9 -0
  35. package/dist/src/components/data-entry/QueryItem/ValueSelector.d.ts +7 -0
  36. package/dist/src/components/data-entry/Radio/Radio.d.ts +8 -0
  37. package/dist/src/components/data-entry/Radio/RadioButton.d.ts +4 -0
  38. package/dist/src/components/data-entry/Radio/RadioGroup.d.ts +4 -0
  39. package/dist/src/components/data-entry/Select/Select.d.ts +10 -0
  40. package/dist/src/components/data-entry/Switch/Switch.d.ts +4 -0
  41. package/dist/src/components/data-entry/TimePicker/TimePicker.d.ts +8 -0
  42. package/dist/src/components/data-entry/TreeSelect/TreeSelect.d.ts +11 -0
  43. package/dist/src/components/data-entry/Upload/Upload.d.ts +13 -0
  44. package/dist/src/components/feedback/Alert/Alert.d.ts +7 -0
  45. package/dist/src/components/feedback/Drawer/Drawer.d.ts +4 -0
  46. package/dist/src/components/feedback/LoadingModal/LoadingModal.d.ts +7 -0
  47. package/dist/src/components/feedback/Message/Message.d.ts +19 -0
  48. package/dist/src/components/feedback/Modal/Modal.d.ts +14 -0
  49. package/dist/src/components/feedback/Notification/Notification.d.ts +18 -0
  50. package/dist/src/components/feedback/Popconfirm/Popconfirm.d.ts +4 -0
  51. package/dist/src/components/feedback/Progress/Progress.d.ts +4 -0
  52. package/dist/src/components/feedback/Result/Result.d.ts +10 -0
  53. package/dist/src/components/feedback/Skeleton/Skeleton.d.ts +12 -0
  54. package/dist/src/components/feedback/Spin/Spin.d.ts +8 -0
  55. package/dist/src/components/general/Button/Button.d.ts +16 -0
  56. package/dist/src/components/general/FloatButton/FloatButton.d.ts +9 -0
  57. package/dist/src/components/general/Icon/Icon.d.ts +12 -0
  58. package/dist/src/components/general/Typography/Typography.d.ts +30 -0
  59. package/dist/src/components/icons/index.d.ts +88 -0
  60. package/dist/src/components/index.d.ts +86 -0
  61. package/dist/src/components/layout/Center/Center.d.ts +2 -0
  62. package/dist/src/components/layout/Divider/Divider.d.ts +4 -0
  63. package/dist/src/components/layout/Flex/Flex.d.ts +4 -0
  64. package/dist/src/components/layout/Grid/Grid.d.ts +6 -0
  65. package/dist/src/components/layout/Layout/Layout.d.ts +11 -0
  66. package/dist/src/components/layout/Space/Space.d.ts +8 -0
  67. package/dist/src/components/navigation/Anchor/Anchor.d.ts +8 -0
  68. package/dist/src/components/navigation/Breadcrumb/Breadcrumb.d.ts +10 -0
  69. package/dist/src/components/navigation/Dropdown/Dropdown.d.ts +13 -0
  70. package/dist/src/components/navigation/GlobalNavigation/GlobalNavigation.d.ts +37 -0
  71. package/dist/src/components/navigation/GlobalNavigation/HomeButton.d.ts +5 -0
  72. package/dist/src/components/navigation/GlobalNavigation/NavigationButtonItem.d.ts +9 -0
  73. package/dist/src/components/navigation/GlobalNavigation/NavigationCreate.d.ts +19 -0
  74. package/dist/src/components/navigation/GlobalNavigation/NavigationIcon.d.ts +10 -0
  75. package/dist/src/components/navigation/GlobalNavigation/NavigationItem.d.ts +14 -0
  76. package/dist/src/components/navigation/GlobalNavigation/NavigationList.d.ts +5 -0
  77. package/dist/src/components/navigation/GlobalNavigation/NavigationSearch.d.ts +5 -0
  78. package/dist/src/components/navigation/GlobalNavigation/NotificationCenter.d.ts +7 -0
  79. package/dist/src/components/navigation/GlobalNavigation/SuiteLogo.d.ts +6 -0
  80. package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelector.d.ts +10 -0
  81. package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelectorContent.d.ts +4 -0
  82. package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelectorSuiteLink.d.ts +9 -0
  83. package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceNoResults.d.ts +1 -0
  84. package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelector.d.ts +11 -0
  85. package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelectorContent.d.ts +17 -0
  86. package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelectorContentItems.d.ts +6 -0
  87. package/dist/src/components/navigation/GlobalNavigation/stories-utils.d.ts +2 -0
  88. package/dist/src/components/navigation/Menu/Menu.d.ts +20 -0
  89. package/dist/src/components/navigation/Pagination/Pagination.d.ts +4 -0
  90. package/dist/src/components/navigation/Steps/Steps.d.ts +4 -0
  91. package/dist/src/components/not-prod-ready/Affix/Affix.d.ts +4 -0
  92. package/dist/src/components/not-prod-ready/Calendar/Calendar.d.ts +9 -0
  93. package/dist/src/components/not-prod-ready/Carousel/Carousel.d.ts +4 -0
  94. package/dist/src/components/not-prod-ready/ColorPicker/ColorPicker.d.ts +4 -0
  95. package/dist/src/components/not-prod-ready/QRCode/QRCode.d.ts +4 -0
  96. package/dist/src/components/not-prod-ready/Rate/Rate.d.ts +4 -0
  97. package/dist/src/components/not-prod-ready/Slider/Slider.d.ts +4 -0
  98. package/dist/src/components/not-prod-ready/Statistic/Statistic.d.ts +13 -0
  99. package/dist/src/components/not-prod-ready/Timeline/Timeline.d.ts +8 -0
  100. package/dist/src/components/not-prod-ready/Transfer/Transfer.d.ts +13 -0
  101. package/dist/src/components/not-prod-ready/Tree/Tree.d.ts +15 -0
  102. package/dist/src/components/not-prod-ready/Watermark/Watermark.d.ts +4 -0
  103. package/dist/src/constants/Icons.d.ts +2 -0
  104. package/dist/src/hooks/NewExperienceReminder/useNewExperienceReminder.d.ts +14 -0
  105. package/dist/src/hooks/useInitData.d.ts +1 -0
  106. package/dist/src/hooks/useMount.d.ts +1 -0
  107. package/dist/src/hooks/useUnMount.d.ts +1 -0
  108. package/dist/src/services/user-preferences/composite-user-preferences-service/composite-user-preferences-service.d.ts +13 -0
  109. package/dist/src/services/user-preferences/composite-user-preferences-service/composite-user-preferences-service.spec.d.ts +1 -0
  110. package/dist/src/services/user-preferences/composite-user-preferences-service/index.d.ts +1 -0
  111. package/dist/src/services/user-preferences/models/definitions/index.d.ts +3 -0
  112. package/dist/src/services/user-preferences/models/definitions/user-preference-definition.d.ts +5 -0
  113. package/dist/src/services/user-preferences/models/definitions/user-preference-definitions.d.ts +4 -0
  114. package/dist/src/services/user-preferences/models/definitions/user-preference-scope-type.d.ts +6 -0
  115. package/dist/src/services/user-preferences/models/storage-models/index.d.ts +3 -0
  116. package/dist/src/services/user-preferences/models/storage-models/user-preference-scope.d.ts +8 -0
  117. package/dist/src/services/user-preferences/models/storage-models/user-preference.d.ts +3 -0
  118. package/dist/src/services/user-preferences/models/storage-models/user-preferences.d.ts +7 -0
  119. package/dist/src/services/user-preferences/models/user-preferences/composite-user-preferences.d.ts +4 -0
  120. package/dist/src/services/user-preferences/user-preferences-service.spec.d.ts +22 -0
  121. package/dist/src/services/user-preferences/user-preferences.d.ts +21 -0
  122. package/dist/src/styles/style.d.ts +425 -0
  123. package/dist/src/types/icons.d.ts +10 -0
  124. package/dist/src/utils/Cookies.d.ts +15 -0
  125. package/dist/src/utils/ExampleStory.d.ts +8 -0
  126. package/dist/src/utils/GetGlobalToken.d.ts +2 -0
  127. package/dist/src/utils/debounce.d.ts +1 -0
  128. package/dist/src/utils/svg-prettifier/SvgPrettifier.d.ts +1 -0
  129. package/dist/src/utils/utils.d.ts +16 -0
  130. package/dist/src/utils/utils.spec.d.ts +1 -0
  131. package/dist/style.css +1 -0
  132. package/dist/style.ts +425 -0
  133. package/package.json +130 -0
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { type CalendarProps as AntCalendarProps } from 'antd';
3
+ import { type Dayjs } from 'dayjs';
4
+ export interface ICalendarProps extends AntCalendarProps<Dayjs> {
5
+ }
6
+ export declare const Calendar: {
7
+ (props: ICalendarProps): import("react/jsx-runtime").JSX.Element;
8
+ generateCalendar: <DateType extends import("antd/es/_util/type").AnyObject>(generateConfig: import("rc-picker/lib/generate").GenerateConfig<DateType>) => import("react").FC<Readonly<AntCalendarProps<DateType>>>;
9
+ };
@@ -0,0 +1,4 @@
1
+ import { type CarouselProps as AntCarouselProps } from 'antd';
2
+ export interface ICarouselProps extends AntCarouselProps {
3
+ }
4
+ export declare const Carousel: (props: ICarouselProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { ColorPickerProps as AntColorPickerProps } from 'antd';
2
+ export interface IColorPickerProps extends AntColorPickerProps {
3
+ }
4
+ export declare const ColorPicker: (props: IColorPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type QRCodeProps as AntQRCodeProps } from 'antd';
2
+ export interface IQRCodeProps extends AntQRCodeProps {
3
+ }
4
+ export declare const QRCode: (props: IQRCodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { RateProps as AntRateProps } from 'antd';
2
+ export interface IRateProps extends AntRateProps {
3
+ }
4
+ export declare const Rate: (props: IRateProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type SliderRangeProps } from 'antd/es/slider';
2
+ import { type SliderSingleProps } from 'antd/es/slider';
3
+ export type ISliderProps = SliderSingleProps | SliderRangeProps;
4
+ export declare const Slider: (props: ISliderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { type StatisticProps as AntStatisticProps } from 'antd';
3
+ import { type CountdownProps as AntCountdownProps } from 'antd';
4
+ import { type valueType as AntValueType } from 'antd/es/statistic/utils';
5
+ export interface IStatisticProps extends AntStatisticProps {
6
+ }
7
+ export interface ICountdownProps extends AntCountdownProps {
8
+ }
9
+ export type valueType = AntValueType;
10
+ export declare const Statistic: {
11
+ (props: IStatisticProps): import("react/jsx-runtime").JSX.Element;
12
+ Countdown: import("react").NamedExoticComponent<AntCountdownProps>;
13
+ };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { type TimelineProps as AntTimelineProps } from 'antd';
3
+ export interface ITimelineProps extends AntTimelineProps {
4
+ }
5
+ export declare const Timeline: {
6
+ (props: ITimelineProps): import("react/jsx-runtime").JSX.Element;
7
+ Item: import("react").FC<import("antd").TimelineItemProps>;
8
+ };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { type TransferProps as AntTransferProps } from 'antd';
3
+ export interface ITransferProps extends AntTransferProps {
4
+ }
5
+ export declare const Transfer: {
6
+ (props: ITransferProps): import("react/jsx-runtime").JSX.Element;
7
+ List: {
8
+ <RecordType extends import("antd/es/transfer").KeyWiseTransferItem>(props: import("antd/es/transfer").TransferListProps<RecordType>): import("react").JSX.Element;
9
+ displayName: string;
10
+ };
11
+ Search: import("react").FC<import("antd/es/transfer").TransferSearchProps>;
12
+ Operation: import("react").FC<import("antd/es/transfer").TransferOperationProps>;
13
+ };
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { type TreeDataNode } from 'antd';
3
+ import { type TreeProps as AntTreeProps } from 'antd';
4
+ import type { BasicDataNode, DataNode } from 'antd/es/tree';
5
+ export interface ITreeProps<T extends BasicDataNode = DataNode> extends AntTreeProps<T> {
6
+ }
7
+ export interface ITreeData extends TreeDataNode {
8
+ }
9
+ export declare const Tree: {
10
+ <T extends BasicDataNode = TreeDataNode>(props: ITreeProps<T>): import("react/jsx-runtime").JSX.Element;
11
+ DirectoryTree: (<T_1 extends BasicDataNode | TreeDataNode = TreeDataNode>(props: import("antd/es/tree").DirectoryTreeProps<T_1> & {
12
+ children?: import("react").ReactNode;
13
+ } & import("react").RefAttributes<import("rc-tree/lib/Tree").default<TreeDataNode>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Pick<import("react").FC<{}>, "displayName">;
14
+ TreeNode: import("react").FC<import("rc-tree").TreeNodeProps<TreeDataNode>>;
15
+ };
@@ -0,0 +1,4 @@
1
+ import type { WatermarkProps as AntWatermarkProps } from 'antd';
2
+ export interface IWatermarkProps extends AntWatermarkProps {
3
+ }
4
+ export declare const Watermark: (props: IWatermarkProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type IconOptions, type IconNames } from '../../../../../../../src/types/icons';
2
+ export declare const Icons: Record<IconNames, IconOptions>;
@@ -0,0 +1,14 @@
1
+ import { type ReactNode } from 'react';
2
+ export interface INewExperienceReminderOptions {
3
+ onClose: () => void;
4
+ onRemindMeLater: () => void;
5
+ onTakeMeThere: () => void;
6
+ duration?: number;
7
+ title?: string;
8
+ message?: string;
9
+ }
10
+ type OpenNotificationFn = () => void;
11
+ type ContextHolder = ReactNode;
12
+ export type NewExperienceReminderHook = [OpenNotificationFn, ContextHolder];
13
+ export declare const useNewExperienceReminder: (options: INewExperienceReminderOptions) => NewExperienceReminderHook;
14
+ export {};
@@ -0,0 +1 @@
1
+ export declare function useInitData<T>(fetchData: () => Promise<T>): [boolean, boolean, T];
@@ -0,0 +1 @@
1
+ export declare const useMount: (mount: () => void) => void;
@@ -0,0 +1 @@
1
+ export declare const useUnMount: (unmount: () => void) => void;
@@ -0,0 +1,13 @@
1
+ import { type UserPreferences } from '../../../../../../../../../src/services/user-preferences/models/storage-models/user-preferences';
2
+ import { type UserPreferenceScope } from '../../../../../../../../../src/services/user-preferences/models/storage-models/user-preference-scope';
3
+ import { type UserPreferenceDefinitions } from '../../../../../../../../../src/services/user-preferences/models/definitions/user-preference-definitions';
4
+ import { type CompositeUserPreferences } from '../../../../../../../../../src/services/user-preferences/models/user-preferences/composite-user-preferences';
5
+ import { UserPreferenceScopeType } from '../../../../../../../../../src/services/user-preferences/models/definitions/user-preference-scope-type';
6
+ export declare class CompositeUserPreferencesService<TPreferenceIds extends PropertyKey> {
7
+ getScopedUserPreferences(storedPreferences: UserPreferences<TPreferenceIds>, currentScope: UserPreferenceScope, definitions: UserPreferenceDefinitions<TPreferenceIds>): CompositeUserPreferences<TPreferenceIds>;
8
+ getUpdatedUserPreferenceStorageObject(preferenceId: TPreferenceIds, isOptedIn: boolean, currentScope: UserPreferenceScope, currentPreferences: UserPreferences<TPreferenceIds>, allowedScope: UserPreferenceScopeType): UserPreferences<TPreferenceIds>;
9
+ private createUserPreferenceEntryFromDefinition;
10
+ private getEffectiveScope;
11
+ private createPreferenceEntry;
12
+ private createCompositePreferencesFromEntries;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './composite-user-preferences-service';
@@ -0,0 +1,3 @@
1
+ export * from './user-preference-definition';
2
+ export * from './user-preference-definitions';
3
+ export * from './user-preference-scope-type';
@@ -0,0 +1,5 @@
1
+ import { type UserPreferenceScopeType } from './user-preference-scope-type';
2
+ export interface UserPreferenceDefinition {
3
+ isOptedInByDefault: boolean;
4
+ allowedScope: UserPreferenceScopeType;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { type UserPreferenceDefinition } from './user-preference-definition';
2
+ export type UserPreferenceDefinitions<UserPreferenceId extends PropertyKey> = {
3
+ [Id in UserPreferenceId]?: UserPreferenceDefinition;
4
+ };
@@ -0,0 +1,6 @@
1
+ export declare enum UserPreferenceScopeType {
2
+ Global = 0,
3
+ LevelOneScope = 1,
4
+ LevelTwoScope = 2,
5
+ LevelThreeScope = 3
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './user-preference';
2
+ export * from './user-preference-scope';
3
+ export * from './user-preferences';
@@ -0,0 +1,8 @@
1
+ export declare const USER_PREFERENCE_SCOPE_SEPARATOR = "-";
2
+ export declare const UserPreferenceGlobalScope: "global";
3
+ type UserPreferenceGlobalScopeType = `global`;
4
+ type UserPreferenceLevelOneScopeType = `${number}`;
5
+ type UserPreferenceLevelTwoScopeType = `${number}-${number}`;
6
+ type UserPreferenceLevelThreeScopeType = `${number}-${number}-${number}`;
7
+ export type UserPreferenceScope = UserPreferenceLevelOneScopeType | UserPreferenceLevelTwoScopeType | UserPreferenceLevelThreeScopeType | UserPreferenceGlobalScopeType;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface UserPreference {
2
+ optedIn: boolean;
3
+ }
@@ -0,0 +1,7 @@
1
+ import { type UserPreferenceScope } from './user-preference-scope';
2
+ import { type UserPreference } from './user-preference';
3
+ export type UserPreferences<UserPreferenceId extends PropertyKey> = {
4
+ [K in UserPreferenceScope]?: {
5
+ [Id in UserPreferenceId]: UserPreference;
6
+ };
7
+ };
@@ -0,0 +1,4 @@
1
+ import { type UserPreference } from '../storage-models/user-preference';
2
+ export type CompositeUserPreferences<UserPreferenceId extends PropertyKey> = {
3
+ [Id in UserPreferenceId]: UserPreference;
4
+ };
@@ -0,0 +1,22 @@
1
+ import { type UserPreferenceScope } from '../../../../../../../../src/services/user-preferences/models/storage-models/user-preference-scope';
2
+ import { type UserPreferences } from '../../../../../../../../src/services/user-preferences/models/storage-models/user-preferences';
3
+ import { type UserPreferenceDefinitions } from '../../../../../../../../src/services/user-preferences/models/definitions/user-preference-definitions';
4
+ import { UserPreferenceScopeType } from '../../../../../../../../src/services/user-preferences/models/definitions/user-preference-scope-type';
5
+ import { type Sync } from 'factory.ts';
6
+ export declare enum TestUserPreferenceId {
7
+ Default = "default-id",
8
+ PreferenceOne = "preference-one"
9
+ }
10
+ export declare function TestUserPreferenceDefinitionsFakeFactory(config?: Array<{
11
+ id: TestUserPreferenceId;
12
+ isOptedInByDefault?: boolean;
13
+ allowedScope?: UserPreferenceScopeType;
14
+ }>): Sync.Builder<UserPreferenceDefinitions<TestUserPreferenceId>, keyof UserPreferenceDefinitions<TestUserPreferenceId>>;
15
+ export interface TestUserPreferencesFakeBuilder {
16
+ wantsRandom?: boolean;
17
+ scope?: UserPreferenceScope;
18
+ userPreferenceIds?: TestUserPreferenceId[];
19
+ optedIns?: boolean[];
20
+ }
21
+ export declare function makeBuilderFromDefinition(definitions: UserPreferenceDefinitions<TestUserPreferenceId>, scope?: UserPreferenceScope): TestUserPreferencesFakeBuilder;
22
+ export declare function TestUserPreferencesFakeFactory(scopes?: TestUserPreferencesFakeBuilder[]): Sync.Builder<UserPreferences<TestUserPreferenceId>, keyof UserPreferences<TestUserPreferenceId>>;
@@ -0,0 +1,21 @@
1
+ import { type CompositeUserPreferences } from '../../../../../../../../src/services/user-preferences/models/user-preferences/composite-user-preferences';
2
+ import { type UserPreferenceScope } from '../../../../../../../../src/services/user-preferences/models/storage-models/user-preference-scope';
3
+ import { type UserPreferenceDefinitions } from '../../../../../../../../src/services/user-preferences/models/definitions/user-preference-definitions';
4
+ import { type CompositeUserPreferencesService } from '../../../../../../../../src/services/user-preferences/composite-user-preferences-service';
5
+ import { type CookieOptions } from '../../../../../../../../src/utils/Cookies';
6
+ export declare class UserPreferencesService<TUserPreferenceId extends PropertyKey> {
7
+ private readonly definitions;
8
+ private readonly compositeUserPreferencesService;
9
+ private readonly currentScope;
10
+ private readonly cookieOptions;
11
+ private readonly onUpdate?;
12
+ preferences: CompositeUserPreferences<TUserPreferenceId>;
13
+ constructor(definitions: UserPreferenceDefinitions<TUserPreferenceId>, compositeUserPreferencesService: CompositeUserPreferencesService<TUserPreferenceId>, currentScope: UserPreferenceScope, cookieOptions: CookieOptions & {
14
+ key: string;
15
+ }, onUpdate?: ((resolvedPreferences: CompositeUserPreferences<TUserPreferenceId>) => void) | undefined);
16
+ init(): Promise<void>;
17
+ isOptedIn(userPreferenceId: TUserPreferenceId): Promise<boolean | undefined>;
18
+ setPreference(userPreferenceId: TUserPreferenceId, isOptedIn: boolean): Promise<void>;
19
+ private getStoredPreferences;
20
+ private setStoredPreferences;
21
+ }