@uniformdev/context-ui 14.2.1-alpha.256 → 16.0.1-alpha.164
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.txt +2 -0
- package/dist/index.d.ts +51 -141
- package/dist/index.esm.js +69 -1
- package/dist/index.js +69 -1
- package/dist/index.mjs +69 -1
- package/package.json +29 -33
- package/dist/tailwind/plugin.d.ts +0 -3
- package/dist/tailwind/plugin.js +0 -6
- package/dist/tailwind/plugin.mjs +0 -6
package/LICENSE.txt
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,16 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
2
|
+
import * as _emotion_react from '@emotion/react';
|
|
3
|
+
import React, { ReactElement, ComponentType } from 'react';
|
|
3
4
|
import { DimensionDefinition, ManifestGetResponse } from '@uniformdev/context/api';
|
|
4
|
-
import { EnrichmentData, VariantMatchCriteria } from '@uniformdev/context';
|
|
5
|
-
|
|
6
|
-
import { GroupBase } from 'react-select';
|
|
7
|
-
import { StateManagerProps } from 'react-select/dist/declarations/src/useStateManager';
|
|
8
|
-
import InternalSelect from 'react-select/dist/declarations/src/Select';
|
|
9
|
-
|
|
10
|
-
declare type CalloutType = 'caution' | 'danger' | 'info' | 'note' | 'success' | 'tip' | 'error';
|
|
11
|
-
interface CalloutProps {
|
|
12
|
-
type: CalloutType;
|
|
13
|
-
title?: ReactNode;
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const Callout: React__default.FC<CalloutProps>;
|
|
18
|
-
|
|
19
|
-
declare const LoadingIndicator: () => JSX.Element;
|
|
5
|
+
import { EnrichmentData, DimensionMatch, VariantMatchCriteria } from '@uniformdev/context';
|
|
6
|
+
export * from '@uniformdev/design-system';
|
|
20
7
|
|
|
21
8
|
declare type EditLinkProps = {
|
|
22
9
|
linkTo: string;
|
|
23
10
|
name?: string;
|
|
24
11
|
linkText?: string;
|
|
25
12
|
};
|
|
26
|
-
declare const EditLink: ({ linkTo, name, linkText }: EditLinkProps) =>
|
|
13
|
+
declare const EditLink: ({ linkTo, name, linkText }: EditLinkProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
27
14
|
|
|
28
15
|
interface ContextConfig {
|
|
29
16
|
projectId?: string;
|
|
@@ -38,144 +25,36 @@ declare type ResolvedDimensionDefinition = DimensionDefinition & {
|
|
|
38
25
|
displayName: string;
|
|
39
26
|
};
|
|
40
27
|
|
|
28
|
+
declare const addEnrichmentLink: _emotion_react.SerializedStyles;
|
|
41
29
|
interface EnrichmentTagProps {
|
|
42
30
|
value: EnrichmentData[] | null | undefined;
|
|
43
31
|
setValue: (value: EnrichmentData[] | null) => void;
|
|
44
32
|
contextConfig: ContextConfig;
|
|
33
|
+
displayTitle?: boolean;
|
|
45
34
|
}
|
|
46
|
-
declare const EnrichmentTag:
|
|
35
|
+
declare const EnrichmentTag: React.FC<EnrichmentTagProps>;
|
|
47
36
|
|
|
37
|
+
declare const equality: Array<{
|
|
38
|
+
name: string;
|
|
39
|
+
value: DimensionMatch['op'];
|
|
40
|
+
}>;
|
|
48
41
|
interface PersonalizationCriteriaProps {
|
|
49
42
|
value: VariantMatchCriteria | null | undefined;
|
|
50
43
|
setValue: (value: VariantMatchCriteria | null) => void;
|
|
51
44
|
contextConfig: ContextConfig;
|
|
45
|
+
displayTitle?: boolean;
|
|
46
|
+
onMenuOpen?: () => void;
|
|
47
|
+
onMenuClose?: () => void;
|
|
52
48
|
}
|
|
53
|
-
declare const PersonalizationCriteria:
|
|
54
|
-
|
|
55
|
-
interface ButtonProps extends ButtonProps$1 {
|
|
56
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
57
|
-
buttonType?: 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'unimportant';
|
|
58
|
-
disablePadding?: boolean;
|
|
59
|
-
rounded?: boolean;
|
|
60
|
-
}
|
|
61
|
-
declare const Button: React__default.FC<ButtonProps>;
|
|
62
|
-
|
|
63
|
-
declare type InputProps = InputProps$1 & {
|
|
64
|
-
label?: string;
|
|
65
|
-
classNameContainer?: string;
|
|
66
|
-
classNameControl?: string;
|
|
67
|
-
classNameLabel?: string;
|
|
68
|
-
icon?: React__default.ReactElement;
|
|
69
|
-
capture?: boolean | 'user' | 'environment';
|
|
70
|
-
};
|
|
71
|
-
declare const Input: React__default.FC<InputProps>;
|
|
72
|
-
|
|
73
|
-
declare type SelectInputProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
|
|
74
|
-
defaultOption?: string;
|
|
75
|
-
options: Array<React.OptionHTMLAttributes<HTMLOptionElement> & {
|
|
76
|
-
label: string;
|
|
77
|
-
}>;
|
|
78
|
-
caption?: string;
|
|
79
|
-
label: string;
|
|
80
|
-
showLabel?: boolean;
|
|
81
|
-
classNameContainer?: string;
|
|
82
|
-
classNameControl?: string;
|
|
83
|
-
classNameLabel?: string;
|
|
84
|
-
};
|
|
85
|
-
declare const SelectInput: ({ label, defaultOption, options, caption, classNameContainer, classNameControl, classNameLabel, showLabel, ...props }: SelectInputProps) => JSX.Element;
|
|
86
|
-
|
|
87
|
-
declare type ComboBoxOption = {
|
|
88
|
-
label: string;
|
|
89
|
-
value: string;
|
|
90
|
-
isDisabled?: boolean;
|
|
91
|
-
};
|
|
92
|
-
declare type ComboBoxProps<TOption, IsMulti extends boolean, TGroup extends GroupBase<TOption> = GroupBase<TOption>> = StateManagerProps<TOption, IsMulti, TGroup> & React.RefAttributes<InternalSelect<TOption, IsMulti, TGroup>>;
|
|
93
|
-
declare type ComboBoxGroupBase<TOption> = GroupBase<TOption>;
|
|
94
|
-
declare function ComboBox<TOption = ComboBoxOption, IsMulti extends boolean = false, TGroup extends ComboBoxGroupBase<TOption> = ComboBoxGroupBase<TOption>>(props: ComboBoxProps<TOption, IsMulti, TGroup>): JSX.Element;
|
|
95
|
-
|
|
96
|
-
declare type InlineSelectInputOption = {
|
|
97
|
-
label: string;
|
|
98
|
-
value: string;
|
|
99
|
-
};
|
|
100
|
-
declare type InlineSelectInputProps = Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange'> & {
|
|
101
|
-
disabled?: boolean;
|
|
102
|
-
value: string;
|
|
103
|
-
options: Array<InlineSelectInputOption>;
|
|
104
|
-
onChange: (option: InlineSelectInputOption) => void;
|
|
105
|
-
classNameContainer?: string;
|
|
106
|
-
};
|
|
107
|
-
declare const InlineSelectInput: ({ classNameContainer, disabled, options, value, onChange, ...props }: InlineSelectInputProps) => JSX.Element;
|
|
108
|
-
|
|
109
|
-
interface LoadingOverlayProps {
|
|
110
|
-
isActive: boolean;
|
|
111
|
-
statusMessage?: string | JSX.Element;
|
|
112
|
-
}
|
|
113
|
-
declare const LoadingOverlay: React__default.FC<LoadingOverlayProps>;
|
|
114
|
-
interface LoadingIconProps {
|
|
115
|
-
width?: number;
|
|
116
|
-
height?: number;
|
|
117
|
-
}
|
|
118
|
-
declare const LoadingIcon: React__default.FC<LoadingIconProps>;
|
|
119
|
-
|
|
120
|
-
declare type ComponentIconNames = 'add-r' | 'add' | 'airplane' | 'alarm' | 'album' | 'align-bottom' | 'align-center' | 'align-left' | 'align-middle' | 'align-right' | 'align-top' | 'anchor' | 'apple-watch' | 'arrange-back' | 'arrange-front' | 'arrow-align-h' | 'arrow-align-v' | 'arrow-bottom-left-o' | 'arrow-bottom-left-r' | 'arrow-bottom-left' | 'arrow-bottom-right-o' | 'arrow-bottom-right-r' | 'arrow-bottom-right' | 'arrow-down-o' | 'arrow-down-r' | 'arrow-down' | 'arrow-left-o' | 'arrow-left-r' | 'arrow-left' | 'arrow-long-down-c' | 'arrow-long-down-e' | 'arrow-long-down-l' | 'arrow-long-down-r' | 'arrow-long-down' | 'arrow-long-left-c' | 'arrow-long-left-e' | 'arrow-long-left-l' | 'arrow-long-left-r' | 'arrow-long-left' | 'arrow-long-right-c' | 'arrow-long-right-e' | 'arrow-long-right-l' | 'arrow-long-right-r' | 'arrow-long-right' | 'arrow-long-up-c' | 'arrow-long-up-e' | 'arrow-long-up-l' | 'arrow-long-up-r' | 'arrow-long-up' | 'arrow-right-o' | 'arrow-right-r' | 'arrow-right' | 'arrow-top-left-o' | 'arrow-top-left-r' | 'arrow-top-left' | 'arrow-top-right-o' | 'arrow-top-right-r' | 'arrow-top-right' | 'arrow-up-o' | 'arrow-up-r' | 'arrow-up' | 'arrows-breake-h' | 'arrows-breake-v' | 'arrows-exchange-alt-v' | 'arrows-exchange-alt' | 'arrows-exchange-v' | 'arrows-exchange' | 'arrows-expand-down-left' | 'arrows-expand-down-right' | 'arrows-expand-left-alt' | 'arrows-expand-left' | 'arrows-expand-right-alt' | 'arrows-expand-right' | 'arrows-expand-up-left' | 'arrows-expand-up-right' | 'arrows-h-alt' | 'arrows-h' | 'arrows-merge-alt-h' | 'arrows-merge-alt-v' | 'arrows-scroll-h' | 'arrows-scroll-v' | 'arrows-shrink-h' | 'arrows-shrink-v' | 'arrows-v-alt' | 'arrows-v' | 'assign' | 'asterisk' | 'attachment' | 'attribution' | 'awards' | 'backspace' | 'band-aid' | 'battery-empty' | 'battery-full' | 'battery' | 'bee' | 'bell' | 'bitbucket' | 'block' | 'board' | 'bolt' | 'bookmark' | 'border-all' | 'border-bottom' | 'border-left' | 'border-right' | 'border-style-dashed' | 'border-style-dotted' | 'border-style-solid' | 'border-top' | 'bot' | 'bowl' | 'box' | 'boy' | 'briefcase' | 'browse' | 'browser' | 'brush' | 'bulb' | 'c-plus-plus' | 'calculator' | 'calendar-dates' | 'calendar-due' | 'calendar-next' | 'calendar-today' | 'calendar-two' | 'calendar' | 'calibrate' | 'camera' | 'cap' | 'captions' | 'card-clubs' | 'card-diamonds' | 'card-hearts' | 'card-spades' | 'carousel' | 'cast' | 'chart' | 'check-o' | 'check-r' | 'check' | 'chevron-double-down-o' | 'chevron-double-down-r' | 'chevron-double-down' | 'chevron-double-left-o' | 'chevron-double-left-r' | 'chevron-double-left' | 'chevron-double-right-o' | 'chevron-double-right-r' | 'chevron-double-right' | 'chevron-double-up-o' | 'chevron-double-up-r' | 'chevron-double-up' | 'chevron-down-o' | 'chevron-down-r' | 'chevron-down' | 'chevron-left-o' | 'chevron-left-r' | 'chevron-left' | 'chevron-right-o' | 'chevron-right-r' | 'chevron-right' | 'chevron-up-o' | 'chevron-up-r' | 'chevron-up' | 'clapper-board' | 'clipboard' | 'close-o' | 'close-r' | 'close' | 'cloud' | 'code-slash' | 'code' | 'coffee' | 'collage' | 'color-bucket' | 'color-picker' | 'comment' | 'community' | 'components' | 'compress-left' | 'compress-right' | 'compress-v' | 'compress' | 'controller' | 'copy' | 'copyright' | 'corner-double-down-left' | 'corner-double-down-right' | 'corner-double-left-down' | 'corner-double-left-up' | 'corner-double-right-down' | 'corner-double-right-up' | 'corner-double-up-left' | 'corner-double-up-right' | 'corner-down-left' | 'corner-down-right' | 'corner-left-down' | 'corner-left-up' | 'corner-right-down' | 'corner-right-up' | 'corner-up-left' | 'corner-up-right' | 'credit-card' | 'crop' | 'cross' | 'crown' | 'danger' | 'dark-mode' | 'data' | 'database' | 'debug' | 'desktop' | 'details-less' | 'details-more' | 'dialpad' | 'dice-1' | 'dice-2' | 'dice-3' | 'dice-4' | 'dice-5' | 'dice-6' | 'disc' | 'display-flex' | 'display-fullwidth' | 'display-grid' | 'display-spacing' | 'distribute-horizontal' | 'distribute-vertical' | 'dock-bottom' | 'dock-left' | 'dock-right' | 'dock-window' | 'dollar' | 'drive' | 'drop-invert' | 'drop-opacity' | 'drop' | 'duplicate' | 'edit-black-point' | 'edit-contrast' | 'edit-exposure' | 'edit-fade' | 'edit-flip-h' | 'edit-flip-v' | 'edit-highlight' | 'edit-markup' | 'edit-mask' | 'edit-noise' | 'edit-shadows' | 'edit-straight' | 'edit-unmask' | 'eject' | 'enter' | 'erase' | 'ereader' | 'ericsson' | 'ethernet' | 'euro' | 'expand' | 'export' | 'extension-add' | 'extension-alt' | 'extension-remove' | 'extension' | 'external' | 'eye-alt' | 'eye' | 'feed' | 'file-add' | 'file-document' | 'file-remove' | 'file' | 'film' | 'filters' | 'flag-alt' | 'flag' | 'folder-add' | 'folder-remove' | 'folder' | 'font-height' | 'font-spacing' | 'format-bold' | 'format-center' | 'format-color' | 'format-heading' | 'format-indent-decrease' | 'format-indent-increase' | 'format-italic' | 'format-justify' | 'format-left' | 'format-line-height' | 'format-right' | 'format-separator' | 'format-slash' | 'format-strike' | 'format-text' | 'format-underline' | 'format-uppercase' | 'games' | 'gender-female' | 'gender-male' | 'ghost-character' | 'gift' | 'girl' | 'git-branch' | 'git-commit' | 'git-fork' | 'git-pull' | 'glass-alt' | 'glass' | 'globe-alt' | 'globe' | 'gym' | 'hashtag' | 'headset' | 'heart' | 'home-alt' | 'home-screen' | 'home' | 'icecream' | 'image' | 'import' | 'inbox' | 'infinity' | 'info' | 'inpicture' | 'insert-after-o' | 'insert-after-r' | 'insert-after' | 'insert-before-o' | 'insert-before-r' | 'insert-before' | 'insights' | 'internal' | 'key' | 'keyboard' | 'keyhole' | 'laptop' | 'layout-grid-small' | 'layout-grid' | 'layout-list' | 'layout-pin' | 'link' | 'list-tree' | 'list' | 'live-photo' | 'loadbar-alt' | 'loadbar-doc' | 'loadbar-sound' | 'loadbar' | 'lock-unlock' | 'lock' | 'log-in' | 'log-off' | 'log-out' | 'loupe' | 'magnet' | 'mail-forward' | 'mail-open' | 'mail-reply' | 'mail' | 'math-divide' | 'math-equal' | 'math-minus' | 'math-percent' | 'math-plus' | 'maximize-alt' | 'maximize' | 'media-live' | 'media-podcast' | 'menu-boxed' | 'menu-cake' | 'menu-cheese' | 'menu-grid-o' | 'menu-grid-r' | 'menu-hotdog' | 'menu-left-alt' | 'menu-left' | 'menu-motion' | 'menu-oreos' | 'menu-right-alt' | 'menu-right' | 'menu-round' | 'menu' | 'merge-horizontal' | 'merge-vertical' | 'mic' | 'mini-player' | 'minimize-alt' | 'minimize' | 'modem' | 'moon' | 'more-alt' | 'more-o' | 'more-r' | 'more-vertical-alt' | 'more-vertical-o' | 'more-vertical-r' | 'more-vertical' | 'more' | 'mouse' | 'move-down' | 'move-left' | 'move-right' | 'move-task' | 'move-up' | 'music-note' | 'music-speaker' | 'music' | 'nametag' | 'notes' | 'notifications' | 'options' | 'organisation' | 'password' | 'path-back' | 'path-crop' | 'path-divide' | 'path-exclude' | 'path-front' | 'path-intersect' | 'path-outline' | 'path-trim' | 'path-unite' | 'pen' | 'pentagon-bottom-left' | 'pentagon-bottom-right' | 'pentagon-down' | 'pentagon-left' | 'pentagon-right' | 'pentagon-top-left' | 'pentagon-top-right' | 'pentagon-up' | 'performance' | 'phone' | 'photoscan' | 'piano' | 'pill' | 'pin-alt' | 'pin-bottom' | 'pin-top' | 'pin' | 'play-backwards' | 'play-button-o' | 'play-button-r' | 'play-button' | 'play-forwards' | 'play-list-add' | 'play-list-check' | 'play-list-remove' | 'play-list-search' | 'play-list' | 'play-pause-o' | 'play-pause-r' | 'play-pause' | 'play-stop-o' | 'play-stop-r' | 'play-stop' | 'play-track-next-o' | 'play-track-next-r' | 'play-track-next' | 'play-track-prev-o' | 'play-track-prev-r' | 'play-track-prev' | 'plug' | 'polaroid' | 'poll' | 'presentation' | 'printer' | 'profile' | 'pull-clear' | 'push-chevron-down-o' | 'push-chevron-down-r' | 'push-chevron-down' | 'push-chevron-left-o' | 'push-chevron-left-r' | 'push-chevron-left' | 'push-chevron-right-o' | 'push-chevron-right-r' | 'push-chevron-right' | 'push-chevron-up-o' | 'push-chevron-up-r' | 'push-chevron-up' | 'push-down' | 'push-left' | 'push-right' | 'push-up' | 'qr' | 'quote-o' | 'quote' | 'radio-check' | 'radio-checked' | 'ratio' | 'read' | 'readme' | 'record' | 'redo' | 'remote' | 'remove-r' | 'remove' | 'rename' | 'reorder' | 'repeat' | 'ring' | 'row-first' | 'row-last' | 'ruler' | 'sand-clock' | 'scan' | 'screen-mirror' | 'screen-shot' | 'screen-wide' | 'screen' | 'scroll-h' | 'scroll-v' | 'search-found' | 'search-loading' | 'search' | 'select-o' | 'select-r' | 'select' | 'server' | 'shape-circle' | 'shape-half-circle' | 'shape-hexagon' | 'shape-rhombus' | 'shape-square' | 'shape-triangle' | 'shape-zigzag' | 'share' | 'shield' | 'shopping-bag' | 'shopping-cart' | 'shortcut' | 'sidebar-open' | 'sidebar-right' | 'sidebar' | 'signal' | 'size' | 'sleep' | 'smart-home-boiler' | 'smart-home-cooker' | 'smart-home-heat' | 'smart-home-light' | 'smart-home-refrigerator' | 'smart-home-wash-machine' | 'smartphone-chip' | 'smartphone-ram' | 'smartphone-shake' | 'smartphone' | 'smile-mouth-open' | 'smile-neutral' | 'smile-no-mouth' | 'smile-none' | 'smile-sad' | 'smile-upside' | 'smile' | 'software-download' | 'software-upload' | 'sort-az' | 'sort-za' | 'space-between-v' | 'space-between' | 'spinner-alt' | 'spinner-two-alt' | 'spinner-two' | 'spinner' | 'stack' | 'stopwatch' | 'stories' | 'style' | 'sun' | 'support' | 'swap-vertical' | 'swap' | 'sweden' | 'swiss' | 'sync' | 'tab' | 'tag' | 'tap-double' | 'tap-single' | 'template' | 'tennis' | 'terminal' | 'terrain' | 'thermometer' | 'thermostat' | 'tikcode' | 'time' | 'timelapse' | 'timer' | 'today' | 'toggle-off' | 'toggle-on' | 'toggle-square-off' | 'toggle-square' | 'toolbar-bottom' | 'toolbar-left' | 'toolbar-right' | 'toolbar-top' | 'toolbox' | 'touchpad' | 'track' | 'transcript' | 'trash-empty' | 'trash' | 'tree' | 'trees' | 'trending-down' | 'trending' | 'trophy' | 'tv' | 'ui-kit' | 'umbrella' | 'unavailable' | 'unblock' | 'undo' | 'unsplash' | 'usb-c' | 'usb' | 'user-add' | 'user-list' | 'user-remove' | 'user' | 'view-cols' | 'view-comfortable' | 'view-day' | 'view-grid' | 'view-list' | 'view-month' | 'view-split' | 'vinyl' | 'voicemail-o' | 'voicemail-r' | 'voicemail' | 'volume' | 'webcam' | 'website' | 'work-alt' | 'yinyang' | 'zoom-in' | 'zoom-out' | 'settings';
|
|
121
|
-
interface IconProps {
|
|
122
|
-
iconType: ComponentIconNames | null | undefined;
|
|
123
|
-
iconColorClass?: string;
|
|
124
|
-
onIconSelect?: (iconType: string) => void;
|
|
125
|
-
}
|
|
126
|
-
declare const Icon: React__default.NamedExoticComponent<IconProps>;
|
|
127
|
-
|
|
128
|
-
declare function useIconContext(): {
|
|
129
|
-
loading: boolean | null;
|
|
130
|
-
};
|
|
131
|
-
declare function IconsProvider({ children }: {
|
|
132
|
-
children: ReactNode;
|
|
133
|
-
}): JSX.Element;
|
|
49
|
+
declare const PersonalizationCriteria: React.FC<PersonalizationCriteriaProps>;
|
|
134
50
|
|
|
135
51
|
declare type UIVersionProps = {
|
|
136
|
-
versionMap: Record<number,
|
|
137
|
-
children?:
|
|
52
|
+
versionMap: Record<number, React.ComponentType>;
|
|
53
|
+
children?: React.ReactNode;
|
|
138
54
|
contextConfig: ContextConfig;
|
|
139
55
|
};
|
|
140
56
|
declare function ProjectUIVersion({ children, versionMap, contextConfig }: UIVersionProps): ReactElement;
|
|
141
57
|
|
|
142
|
-
declare const SvgCaution: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
143
|
-
|
|
144
|
-
declare const SvgCheckmark: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
145
|
-
|
|
146
|
-
declare const SvgDanger: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
147
|
-
|
|
148
|
-
declare const SvgExclamationPoint: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
149
|
-
|
|
150
|
-
declare const SvgInfo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
151
|
-
|
|
152
|
-
declare const SvgLightbulb: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
153
|
-
|
|
154
|
-
declare const SvgUniformBadge: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
155
|
-
|
|
156
|
-
declare namespace index {
|
|
157
|
-
export {
|
|
158
|
-
SvgCaution as Caution,
|
|
159
|
-
SvgCheckmark as Checkmark,
|
|
160
|
-
SvgDanger as Danger,
|
|
161
|
-
SvgExclamationPoint as ExclamationPoint,
|
|
162
|
-
SvgInfo as Info,
|
|
163
|
-
SvgLightbulb as Lightbulb,
|
|
164
|
-
SvgUniformBadge as UniformBadge,
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
declare const validateContextConfig: (ContextConfig?: ContextConfig | undefined) => Promise<{
|
|
169
|
-
valid: boolean;
|
|
170
|
-
error?: Error;
|
|
171
|
-
}>;
|
|
172
|
-
|
|
173
|
-
interface UseValidateContextConfigResult {
|
|
174
|
-
validating: boolean;
|
|
175
|
-
error?: Error;
|
|
176
|
-
}
|
|
177
|
-
declare const useValidateContextConfig: (ContextConfig?: ContextConfig | undefined) => UseValidateContextConfigResult;
|
|
178
|
-
|
|
179
58
|
interface UseContextDataResult {
|
|
180
59
|
result: ManifestGetResponse | null;
|
|
181
60
|
error: string | null;
|
|
@@ -192,4 +71,35 @@ interface UseDimensionsResult {
|
|
|
192
71
|
}
|
|
193
72
|
declare function useDimensions({ apiHost, apiKey, projectId }: ContextConfig): UseDimensionsResult;
|
|
194
73
|
|
|
195
|
-
|
|
74
|
+
interface DataContextErrorProps {
|
|
75
|
+
contextConfig: ContextConfig;
|
|
76
|
+
result: UseContextDataResult | UseDimensionsResult;
|
|
77
|
+
}
|
|
78
|
+
interface ContextDataProps {
|
|
79
|
+
loadingComponent?: ComponentType;
|
|
80
|
+
errorComponent?: ComponentType<DataContextErrorProps>;
|
|
81
|
+
noIntentsComponent?: ComponentType<DataContextErrorProps>;
|
|
82
|
+
contextConfig: ContextConfig;
|
|
83
|
+
}
|
|
84
|
+
declare const ContextData: React.FC<React.PropsWithChildren<ContextDataProps>>;
|
|
85
|
+
declare function useContextConfig(): ContextConfig;
|
|
86
|
+
declare function useManifest(): ManifestGetResponse;
|
|
87
|
+
declare function useDimensionsDataContext(): DimensionsData;
|
|
88
|
+
|
|
89
|
+
declare const validateContextConfig: (contextConfig?: ContextConfig | undefined) => Promise<{
|
|
90
|
+
valid: boolean;
|
|
91
|
+
error?: Error;
|
|
92
|
+
result?: ManifestGetResponse;
|
|
93
|
+
}>;
|
|
94
|
+
|
|
95
|
+
interface UseValidateContextConfigResult {
|
|
96
|
+
validating: boolean;
|
|
97
|
+
error?: Error;
|
|
98
|
+
result?: ManifestGetResponse;
|
|
99
|
+
}
|
|
100
|
+
declare const useValidateContextConfig: (contextConfig?: ContextConfig | undefined) => UseValidateContextConfigResult;
|
|
101
|
+
|
|
102
|
+
declare function isEnrichmentTagData(obj: any): obj is EnrichmentData[];
|
|
103
|
+
declare function isPersonalizationCriteriaData(obj: any): obj is VariantMatchCriteria;
|
|
104
|
+
|
|
105
|
+
export { ContextConfig, ContextData, ContextDataProps, DataContextErrorProps, DimensionsData, EditLink, EditLinkProps, EnrichmentTag, EnrichmentTagProps, PersonalizationCriteria, PersonalizationCriteriaProps, ProjectUIVersion, ResolvedDimensionDefinition, UseContextDataResult, UseDimensionsResult, UseValidateContextConfigResult, addEnrichmentLink, equality, isEnrichmentTagData, isPersonalizationCriteriaData, useContextConfig, useContextData, useDimensions, useDimensionsDataContext, useManifest, useValidateContextConfig, validateContextConfig };
|