@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.
- package/LICENSE +201 -0
- package/README.md +28 -0
- package/dist/aquarium.js +23748 -0
- package/dist/aquarium.umd.cjs +195 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/components/data-display/Avatar/Avatar.d.ts +8 -0
- package/dist/src/components/data-display/Badge/Badge.d.ts +8 -0
- package/dist/src/components/data-display/Card/Card.d.ts +9 -0
- package/dist/src/components/data-display/Collapse/Collapse.d.ts +8 -0
- package/dist/src/components/data-display/Descriptions/Descriptions.d.ts +8 -0
- package/dist/src/components/data-display/Empty/Empty.d.ts +9 -0
- package/dist/src/components/data-display/Image/Image.d.ts +8 -0
- package/dist/src/components/data-display/List/List.d.ts +7 -0
- package/dist/src/components/data-display/Popover/Popover.d.ts +4 -0
- package/dist/src/components/data-display/Segmented/Segmented.d.ts +6 -0
- package/dist/src/components/data-display/Table/Table.d.ts +18 -0
- package/dist/src/components/data-display/Tabs/Tabs.d.ts +8 -0
- package/dist/src/components/data-display/Tag/Tag.d.ts +12 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.d.ts +4 -0
- package/dist/src/components/data-display/Tour/Tour.d.ts +4 -0
- package/dist/src/components/data-entry/AutoComplete/AutoComplete.d.ts +4 -0
- package/dist/src/components/data-entry/Cascader/Cascader.d.ts +9 -0
- package/dist/src/components/data-entry/Checkbox/Checkbox.d.ts +8 -0
- package/dist/src/components/data-entry/DatePicker/DatePicker.d.ts +66 -0
- package/dist/src/components/data-entry/Form/Form.d.ts +22 -0
- package/dist/src/components/data-entry/Input/Input.d.ts +14 -0
- package/dist/src/components/data-entry/InputNumber/InputNumber.d.ts +4 -0
- package/dist/src/components/data-entry/QueryItem/Action.d.ts +9 -0
- package/dist/src/components/data-entry/QueryItem/Cascader.d.ts +26 -0
- package/dist/src/components/data-entry/QueryItem/NumberInput.d.ts +15 -0
- package/dist/src/components/data-entry/QueryItem/Qualifier.d.ts +11 -0
- package/dist/src/components/data-entry/QueryItem/QueryItem.d.ts +12 -0
- package/dist/src/components/data-entry/QueryItem/Text.d.ts +6 -0
- package/dist/src/components/data-entry/QueryItem/TextInput.d.ts +9 -0
- package/dist/src/components/data-entry/QueryItem/ValueSelector.d.ts +7 -0
- package/dist/src/components/data-entry/Radio/Radio.d.ts +8 -0
- package/dist/src/components/data-entry/Radio/RadioButton.d.ts +4 -0
- package/dist/src/components/data-entry/Radio/RadioGroup.d.ts +4 -0
- package/dist/src/components/data-entry/Select/Select.d.ts +10 -0
- package/dist/src/components/data-entry/Switch/Switch.d.ts +4 -0
- package/dist/src/components/data-entry/TimePicker/TimePicker.d.ts +8 -0
- package/dist/src/components/data-entry/TreeSelect/TreeSelect.d.ts +11 -0
- package/dist/src/components/data-entry/Upload/Upload.d.ts +13 -0
- package/dist/src/components/feedback/Alert/Alert.d.ts +7 -0
- package/dist/src/components/feedback/Drawer/Drawer.d.ts +4 -0
- package/dist/src/components/feedback/LoadingModal/LoadingModal.d.ts +7 -0
- package/dist/src/components/feedback/Message/Message.d.ts +19 -0
- package/dist/src/components/feedback/Modal/Modal.d.ts +14 -0
- package/dist/src/components/feedback/Notification/Notification.d.ts +18 -0
- package/dist/src/components/feedback/Popconfirm/Popconfirm.d.ts +4 -0
- package/dist/src/components/feedback/Progress/Progress.d.ts +4 -0
- package/dist/src/components/feedback/Result/Result.d.ts +10 -0
- package/dist/src/components/feedback/Skeleton/Skeleton.d.ts +12 -0
- package/dist/src/components/feedback/Spin/Spin.d.ts +8 -0
- package/dist/src/components/general/Button/Button.d.ts +16 -0
- package/dist/src/components/general/FloatButton/FloatButton.d.ts +9 -0
- package/dist/src/components/general/Icon/Icon.d.ts +12 -0
- package/dist/src/components/general/Typography/Typography.d.ts +30 -0
- package/dist/src/components/icons/index.d.ts +88 -0
- package/dist/src/components/index.d.ts +86 -0
- package/dist/src/components/layout/Center/Center.d.ts +2 -0
- package/dist/src/components/layout/Divider/Divider.d.ts +4 -0
- package/dist/src/components/layout/Flex/Flex.d.ts +4 -0
- package/dist/src/components/layout/Grid/Grid.d.ts +6 -0
- package/dist/src/components/layout/Layout/Layout.d.ts +11 -0
- package/dist/src/components/layout/Space/Space.d.ts +8 -0
- package/dist/src/components/navigation/Anchor/Anchor.d.ts +8 -0
- package/dist/src/components/navigation/Breadcrumb/Breadcrumb.d.ts +10 -0
- package/dist/src/components/navigation/Dropdown/Dropdown.d.ts +13 -0
- package/dist/src/components/navigation/GlobalNavigation/GlobalNavigation.d.ts +37 -0
- package/dist/src/components/navigation/GlobalNavigation/HomeButton.d.ts +5 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationButtonItem.d.ts +9 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationCreate.d.ts +19 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationIcon.d.ts +10 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationItem.d.ts +14 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationList.d.ts +5 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationSearch.d.ts +5 -0
- package/dist/src/components/navigation/GlobalNavigation/NotificationCenter.d.ts +7 -0
- package/dist/src/components/navigation/GlobalNavigation/SuiteLogo.d.ts +6 -0
- package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelector.d.ts +10 -0
- package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelectorContent.d.ts +4 -0
- package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelectorSuiteLink.d.ts +9 -0
- package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceNoResults.d.ts +1 -0
- package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelector.d.ts +11 -0
- package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelectorContent.d.ts +17 -0
- package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelectorContentItems.d.ts +6 -0
- package/dist/src/components/navigation/GlobalNavigation/stories-utils.d.ts +2 -0
- package/dist/src/components/navigation/Menu/Menu.d.ts +20 -0
- package/dist/src/components/navigation/Pagination/Pagination.d.ts +4 -0
- package/dist/src/components/navigation/Steps/Steps.d.ts +4 -0
- package/dist/src/components/not-prod-ready/Affix/Affix.d.ts +4 -0
- package/dist/src/components/not-prod-ready/Calendar/Calendar.d.ts +9 -0
- package/dist/src/components/not-prod-ready/Carousel/Carousel.d.ts +4 -0
- package/dist/src/components/not-prod-ready/ColorPicker/ColorPicker.d.ts +4 -0
- package/dist/src/components/not-prod-ready/QRCode/QRCode.d.ts +4 -0
- package/dist/src/components/not-prod-ready/Rate/Rate.d.ts +4 -0
- package/dist/src/components/not-prod-ready/Slider/Slider.d.ts +4 -0
- package/dist/src/components/not-prod-ready/Statistic/Statistic.d.ts +13 -0
- package/dist/src/components/not-prod-ready/Timeline/Timeline.d.ts +8 -0
- package/dist/src/components/not-prod-ready/Transfer/Transfer.d.ts +13 -0
- package/dist/src/components/not-prod-ready/Tree/Tree.d.ts +15 -0
- package/dist/src/components/not-prod-ready/Watermark/Watermark.d.ts +4 -0
- package/dist/src/constants/Icons.d.ts +2 -0
- package/dist/src/hooks/NewExperienceReminder/useNewExperienceReminder.d.ts +14 -0
- package/dist/src/hooks/useInitData.d.ts +1 -0
- package/dist/src/hooks/useMount.d.ts +1 -0
- package/dist/src/hooks/useUnMount.d.ts +1 -0
- package/dist/src/services/user-preferences/composite-user-preferences-service/composite-user-preferences-service.d.ts +13 -0
- package/dist/src/services/user-preferences/composite-user-preferences-service/composite-user-preferences-service.spec.d.ts +1 -0
- package/dist/src/services/user-preferences/composite-user-preferences-service/index.d.ts +1 -0
- package/dist/src/services/user-preferences/models/definitions/index.d.ts +3 -0
- package/dist/src/services/user-preferences/models/definitions/user-preference-definition.d.ts +5 -0
- package/dist/src/services/user-preferences/models/definitions/user-preference-definitions.d.ts +4 -0
- package/dist/src/services/user-preferences/models/definitions/user-preference-scope-type.d.ts +6 -0
- package/dist/src/services/user-preferences/models/storage-models/index.d.ts +3 -0
- package/dist/src/services/user-preferences/models/storage-models/user-preference-scope.d.ts +8 -0
- package/dist/src/services/user-preferences/models/storage-models/user-preference.d.ts +3 -0
- package/dist/src/services/user-preferences/models/storage-models/user-preferences.d.ts +7 -0
- package/dist/src/services/user-preferences/models/user-preferences/composite-user-preferences.d.ts +4 -0
- package/dist/src/services/user-preferences/user-preferences-service.spec.d.ts +22 -0
- package/dist/src/services/user-preferences/user-preferences.d.ts +21 -0
- package/dist/src/styles/style.d.ts +425 -0
- package/dist/src/types/icons.d.ts +10 -0
- package/dist/src/utils/Cookies.d.ts +15 -0
- package/dist/src/utils/ExampleStory.d.ts +8 -0
- package/dist/src/utils/GetGlobalToken.d.ts +2 -0
- package/dist/src/utils/debounce.d.ts +1 -0
- package/dist/src/utils/svg-prettifier/SvgPrettifier.d.ts +1 -0
- package/dist/src/utils/utils.d.ts +16 -0
- package/dist/src/utils/utils.spec.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/style.ts +425 -0
- 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 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,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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './composite-user-preferences-service';
|
|
@@ -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,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,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
|
+
}
|