@uniformdev/context-ui 20.6.2-alpha.11 → 20.7.1-alpha.14
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.mts +11 -23
- package/dist/index.d.ts +11 -23
- package/dist/index.esm.js +115 -223
- package/dist/index.js +140 -240
- package/dist/index.mjs +115 -223
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
2
2
|
import * as _emotion_react from '@emotion/react';
|
|
3
|
-
import { DimensionDefinition, Test, ManifestGetResponse
|
|
4
|
-
import { DimensionMatch,
|
|
3
|
+
import { DimensionDefinition, Test, ManifestGetResponse } from '@uniformdev/context/api';
|
|
4
|
+
import { DimensionMatch, EnrichmentData, VariantMatchCriteria } from '@uniformdev/context';
|
|
5
5
|
import { InputComboBoxProps, InputComboBoxOption } from '@uniformdev/design-system';
|
|
6
6
|
export * from '@uniformdev/design-system';
|
|
7
7
|
import React, { ComponentType, ReactElement } from 'react';
|
|
@@ -36,21 +36,15 @@ interface AbTestSelectorProps {
|
|
|
36
36
|
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
37
37
|
|
|
38
38
|
type CriteriaOperatorMenuProps = {
|
|
39
|
-
value: DimensionMatch['op']
|
|
40
|
-
onChange: (newValue: DimensionMatch['op']
|
|
41
|
-
rhsType?: ResolvedDimensionDefinition['category'] | 'QUIRK';
|
|
39
|
+
value: DimensionMatch['op'];
|
|
40
|
+
onChange: (newValue: DimensionMatch['op']) => void;
|
|
42
41
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
43
42
|
declare const contextCriteriaMenuOperators: Array<{
|
|
44
43
|
name: string;
|
|
45
44
|
description?: string;
|
|
46
45
|
value: DimensionMatch['op'];
|
|
47
46
|
}>;
|
|
48
|
-
declare
|
|
49
|
-
name: string;
|
|
50
|
-
description?: string;
|
|
51
|
-
value: DimensionMatch['op'];
|
|
52
|
-
}>;
|
|
53
|
-
declare function CriteriaOperatorMenu({ onChange, value, rhsType, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
47
|
+
declare function CriteriaOperatorMenu({ onChange, value, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
54
48
|
|
|
55
49
|
interface UseContextDataResult {
|
|
56
50
|
result: ManifestGetResponse | null;
|
|
@@ -91,21 +85,16 @@ type CriteriaMatchMenuProps = {
|
|
|
91
85
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange' | 'inputValue' | 'value' | 'onInputChange'>;
|
|
92
86
|
declare function CriteriaMatchMenu({ onChange, criteriaMatch, dimensions, errorMessage, ...props }: CriteriaMatchMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
93
87
|
|
|
94
|
-
type DimensionMenuOption = InputComboBoxOption & {
|
|
95
|
-
original?: ResolvedDimensionDefinition | Quirk;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
88
|
type DimensionMenuProps = {
|
|
99
|
-
value?: ResolvedDimensionDefinition
|
|
89
|
+
value?: ResolvedDimensionDefinition;
|
|
100
90
|
dimensions: ResolvedDimensionDefinition[];
|
|
101
|
-
quirks?: QuirkGetResponse['quirks'];
|
|
102
91
|
errorMessage?: string;
|
|
103
|
-
onChange: (newValue: ResolvedDimensionDefinition
|
|
104
|
-
} & Omit<InputComboBoxProps<
|
|
105
|
-
declare function DimensionMenu({ onChange, value, dimensions, errorMessage,
|
|
92
|
+
onChange: (newValue: ResolvedDimensionDefinition) => void;
|
|
93
|
+
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
94
|
+
declare function DimensionMenu({ onChange, value, dimensions, errorMessage, ...props }: DimensionMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
106
95
|
|
|
107
96
|
type DimensionValueProps = {
|
|
108
|
-
displayName: string
|
|
97
|
+
displayName: string;
|
|
109
98
|
};
|
|
110
99
|
declare function DimensionValue({ displayName }: DimensionValueProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
111
100
|
|
|
@@ -129,7 +118,6 @@ interface PersonalizationCriteriaStaticProps {
|
|
|
129
118
|
value: VariantMatchCriteria | null | undefined;
|
|
130
119
|
setValue: (value: VariantMatchCriteria | null) => void;
|
|
131
120
|
dimensions: DimensionsData;
|
|
132
|
-
quirks?: QuirkGetResponse['quirks'];
|
|
133
121
|
displayTitle?: boolean;
|
|
134
122
|
onMenuOpen?: () => void;
|
|
135
123
|
onMenuClose?: () => void;
|
|
@@ -181,4 +169,4 @@ declare const validateContextConfig: (contextConfig?: ContextConfig) => Promise<
|
|
|
181
169
|
result?: ManifestGetResponse;
|
|
182
170
|
}>;
|
|
183
171
|
|
|
184
|
-
export { type AbTestListProps, AbTestSelector, type AbTestSelectorProps, type ContextConfig, ContextData, type ContextDataProps, CriteriaMatchMenu, type CriteriaMatchMenuProps, CriteriaOperatorMenu, type CriteriaOperatorMenuProps, type DataContextErrorProps, DimensionMenu, type DimensionMenuProps, DimensionValue, type DimensionValueProps, type DimensionsData, EditLink, type EditLinkProps, EnrichmentTag, type EnrichmentTagProps, PersonalizationCriteria, type PersonalizationCriteriaProps, PersonalizationCriteriaStatic, type PersonalizationCriteriaStaticProps, ProjectUIVersion, type ResolvedDimensionDefinition, type UseContextDataResult, type UseDimensionsResult, type UseValidateContextConfigResult, addAbTestLink, addEnrichmentLink, contextCriteriaMenuOperators, convertErrorsToObj,
|
|
172
|
+
export { type AbTestListProps, AbTestSelector, type AbTestSelectorProps, type ContextConfig, ContextData, type ContextDataProps, CriteriaMatchMenu, type CriteriaMatchMenuProps, CriteriaOperatorMenu, type CriteriaOperatorMenuProps, type DataContextErrorProps, DimensionMenu, type DimensionMenuProps, DimensionValue, type DimensionValueProps, type DimensionsData, EditLink, type EditLinkProps, EnrichmentTag, type EnrichmentTagProps, PersonalizationCriteria, type PersonalizationCriteriaProps, PersonalizationCriteriaStatic, type PersonalizationCriteriaStaticProps, ProjectUIVersion, type ResolvedDimensionDefinition, type UseContextDataResult, type UseDimensionsResult, type UseValidateContextConfigResult, addAbTestLink, addEnrichmentLink, contextCriteriaMenuOperators, convertErrorsToObj, isEnrichmentTagData, isPersonalizationCriteriaData, opHasRhs, useContextConfig, useContextData, useDimensions, useDimensionsDataContext, useManifest, useValidateContextConfig, validateContextConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
2
2
|
import * as _emotion_react from '@emotion/react';
|
|
3
|
-
import { DimensionDefinition, Test, ManifestGetResponse
|
|
4
|
-
import { DimensionMatch,
|
|
3
|
+
import { DimensionDefinition, Test, ManifestGetResponse } from '@uniformdev/context/api';
|
|
4
|
+
import { DimensionMatch, EnrichmentData, VariantMatchCriteria } from '@uniformdev/context';
|
|
5
5
|
import { InputComboBoxProps, InputComboBoxOption } from '@uniformdev/design-system';
|
|
6
6
|
export * from '@uniformdev/design-system';
|
|
7
7
|
import React, { ComponentType, ReactElement } from 'react';
|
|
@@ -36,21 +36,15 @@ interface AbTestSelectorProps {
|
|
|
36
36
|
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
37
37
|
|
|
38
38
|
type CriteriaOperatorMenuProps = {
|
|
39
|
-
value: DimensionMatch['op']
|
|
40
|
-
onChange: (newValue: DimensionMatch['op']
|
|
41
|
-
rhsType?: ResolvedDimensionDefinition['category'] | 'QUIRK';
|
|
39
|
+
value: DimensionMatch['op'];
|
|
40
|
+
onChange: (newValue: DimensionMatch['op']) => void;
|
|
42
41
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
43
42
|
declare const contextCriteriaMenuOperators: Array<{
|
|
44
43
|
name: string;
|
|
45
44
|
description?: string;
|
|
46
45
|
value: DimensionMatch['op'];
|
|
47
46
|
}>;
|
|
48
|
-
declare
|
|
49
|
-
name: string;
|
|
50
|
-
description?: string;
|
|
51
|
-
value: DimensionMatch['op'];
|
|
52
|
-
}>;
|
|
53
|
-
declare function CriteriaOperatorMenu({ onChange, value, rhsType, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
47
|
+
declare function CriteriaOperatorMenu({ onChange, value, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
54
48
|
|
|
55
49
|
interface UseContextDataResult {
|
|
56
50
|
result: ManifestGetResponse | null;
|
|
@@ -91,21 +85,16 @@ type CriteriaMatchMenuProps = {
|
|
|
91
85
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange' | 'inputValue' | 'value' | 'onInputChange'>;
|
|
92
86
|
declare function CriteriaMatchMenu({ onChange, criteriaMatch, dimensions, errorMessage, ...props }: CriteriaMatchMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
93
87
|
|
|
94
|
-
type DimensionMenuOption = InputComboBoxOption & {
|
|
95
|
-
original?: ResolvedDimensionDefinition | Quirk;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
88
|
type DimensionMenuProps = {
|
|
99
|
-
value?: ResolvedDimensionDefinition
|
|
89
|
+
value?: ResolvedDimensionDefinition;
|
|
100
90
|
dimensions: ResolvedDimensionDefinition[];
|
|
101
|
-
quirks?: QuirkGetResponse['quirks'];
|
|
102
91
|
errorMessage?: string;
|
|
103
|
-
onChange: (newValue: ResolvedDimensionDefinition
|
|
104
|
-
} & Omit<InputComboBoxProps<
|
|
105
|
-
declare function DimensionMenu({ onChange, value, dimensions, errorMessage,
|
|
92
|
+
onChange: (newValue: ResolvedDimensionDefinition) => void;
|
|
93
|
+
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
94
|
+
declare function DimensionMenu({ onChange, value, dimensions, errorMessage, ...props }: DimensionMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
106
95
|
|
|
107
96
|
type DimensionValueProps = {
|
|
108
|
-
displayName: string
|
|
97
|
+
displayName: string;
|
|
109
98
|
};
|
|
110
99
|
declare function DimensionValue({ displayName }: DimensionValueProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
111
100
|
|
|
@@ -129,7 +118,6 @@ interface PersonalizationCriteriaStaticProps {
|
|
|
129
118
|
value: VariantMatchCriteria | null | undefined;
|
|
130
119
|
setValue: (value: VariantMatchCriteria | null) => void;
|
|
131
120
|
dimensions: DimensionsData;
|
|
132
|
-
quirks?: QuirkGetResponse['quirks'];
|
|
133
121
|
displayTitle?: boolean;
|
|
134
122
|
onMenuOpen?: () => void;
|
|
135
123
|
onMenuClose?: () => void;
|
|
@@ -181,4 +169,4 @@ declare const validateContextConfig: (contextConfig?: ContextConfig) => Promise<
|
|
|
181
169
|
result?: ManifestGetResponse;
|
|
182
170
|
}>;
|
|
183
171
|
|
|
184
|
-
export { type AbTestListProps, AbTestSelector, type AbTestSelectorProps, type ContextConfig, ContextData, type ContextDataProps, CriteriaMatchMenu, type CriteriaMatchMenuProps, CriteriaOperatorMenu, type CriteriaOperatorMenuProps, type DataContextErrorProps, DimensionMenu, type DimensionMenuProps, DimensionValue, type DimensionValueProps, type DimensionsData, EditLink, type EditLinkProps, EnrichmentTag, type EnrichmentTagProps, PersonalizationCriteria, type PersonalizationCriteriaProps, PersonalizationCriteriaStatic, type PersonalizationCriteriaStaticProps, ProjectUIVersion, type ResolvedDimensionDefinition, type UseContextDataResult, type UseDimensionsResult, type UseValidateContextConfigResult, addAbTestLink, addEnrichmentLink, contextCriteriaMenuOperators, convertErrorsToObj,
|
|
172
|
+
export { type AbTestListProps, AbTestSelector, type AbTestSelectorProps, type ContextConfig, ContextData, type ContextDataProps, CriteriaMatchMenu, type CriteriaMatchMenuProps, CriteriaOperatorMenu, type CriteriaOperatorMenuProps, type DataContextErrorProps, DimensionMenu, type DimensionMenuProps, DimensionValue, type DimensionValueProps, type DimensionsData, EditLink, type EditLinkProps, EnrichmentTag, type EnrichmentTagProps, PersonalizationCriteria, type PersonalizationCriteriaProps, PersonalizationCriteriaStatic, type PersonalizationCriteriaStaticProps, ProjectUIVersion, type ResolvedDimensionDefinition, type UseContextDataResult, type UseDimensionsResult, type UseValidateContextConfigResult, addAbTestLink, addEnrichmentLink, contextCriteriaMenuOperators, convertErrorsToObj, isEnrichmentTagData, isPersonalizationCriteriaData, opHasRhs, useContextConfig, useContextData, useDimensions, useDimensionsDataContext, useManifest, useValidateContextConfig, validateContextConfig };
|