@uniformdev/context-ui 20.6.2-alpha.11 → 20.7.1-alpha.4

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 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, Quirk, QuirkGetResponse } from '@uniformdev/context/api';
4
- import { DimensionMatch, QuirkMatch, EnrichmentData, VariantMatchCriteria } from '@uniformdev/context';
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'] | QuirkMatch['op'];
40
- onChange: (newValue: DimensionMatch['op'] | QuirkMatch['op']) => void;
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 const enrichmentCriteriaMenuOperators: Array<{
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 | Quirk;
89
+ value?: ResolvedDimensionDefinition;
100
90
  dimensions: ResolvedDimensionDefinition[];
101
- quirks?: QuirkGetResponse['quirks'];
102
91
  errorMessage?: string;
103
- onChange: (newValue: ResolvedDimensionDefinition | Quirk | undefined) => void;
104
- } & Omit<InputComboBoxProps<DimensionMenuOption, false>, 'value' | 'options' | 'onChange'>;
105
- declare function DimensionMenu({ onChange, value, dimensions, errorMessage, quirks, ...props }: DimensionMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
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 | undefined;
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, enrichmentCriteriaMenuOperators, isEnrichmentTagData, isPersonalizationCriteriaData, opHasRhs, useContextConfig, useContextData, useDimensions, useDimensionsDataContext, useManifest, useValidateContextConfig, validateContextConfig };
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, Quirk, QuirkGetResponse } from '@uniformdev/context/api';
4
- import { DimensionMatch, QuirkMatch, EnrichmentData, VariantMatchCriteria } from '@uniformdev/context';
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'] | QuirkMatch['op'];
40
- onChange: (newValue: DimensionMatch['op'] | QuirkMatch['op']) => void;
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 const enrichmentCriteriaMenuOperators: Array<{
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 | Quirk;
89
+ value?: ResolvedDimensionDefinition;
100
90
  dimensions: ResolvedDimensionDefinition[];
101
- quirks?: QuirkGetResponse['quirks'];
102
91
  errorMessage?: string;
103
- onChange: (newValue: ResolvedDimensionDefinition | Quirk | undefined) => void;
104
- } & Omit<InputComboBoxProps<DimensionMenuOption, false>, 'value' | 'options' | 'onChange'>;
105
- declare function DimensionMenu({ onChange, value, dimensions, errorMessage, quirks, ...props }: DimensionMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
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 | undefined;
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, enrichmentCriteriaMenuOperators, isEnrichmentTagData, isPersonalizationCriteriaData, opHasRhs, useContextConfig, useContextData, useDimensions, useDimensionsDataContext, useManifest, useValidateContextConfig, validateContextConfig };
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 };