@uniformdev/context-ui 20.7.1-alpha.81 → 20.7.1-alpha.85
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 +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.esm.js +256 -220
- package/dist/index.js +264 -228
- package/dist/index.mjs +256 -220
- package/package.json +7 -8
package/dist/index.d.mts
CHANGED
|
@@ -39,6 +39,8 @@ type CriteriaOperatorMenuProps = {
|
|
|
39
39
|
value: DimensionMatch['op'] | QuirkMatch['op'];
|
|
40
40
|
onChange: (newValue: DimensionMatch['op'] | QuirkMatch['op']) => void;
|
|
41
41
|
rhsType?: ResolvedDimensionDefinition['category'] | 'QUIRK';
|
|
42
|
+
/** sets the disabled state of the component */
|
|
43
|
+
disabled?: boolean;
|
|
42
44
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
43
45
|
declare const contextCriteriaMenuOperators: Array<{
|
|
44
46
|
name: string;
|
|
@@ -50,6 +52,11 @@ declare const enrichmentCriteriaMenuOperators: Array<{
|
|
|
50
52
|
description?: string;
|
|
51
53
|
value: DimensionMatch['op'];
|
|
52
54
|
}>;
|
|
55
|
+
declare function getValidCriteriaOperatorsFor(rhsType: ResolvedDimensionDefinition['category'] | 'QUIRK' | undefined): {
|
|
56
|
+
name: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
value: DimensionMatch["op"];
|
|
59
|
+
}[];
|
|
53
60
|
declare function CriteriaOperatorMenu({ onChange, value, rhsType, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
54
61
|
|
|
55
62
|
interface UseContextDataResult {
|
|
@@ -88,6 +95,8 @@ type CriteriaMatchMenuProps = {
|
|
|
88
95
|
dimensions: DimensionsData;
|
|
89
96
|
errorMessage?: string;
|
|
90
97
|
onChange: (newCriteria: DimensionMatch) => void;
|
|
98
|
+
/** sets the disabled state of the component */
|
|
99
|
+
disabled?: boolean;
|
|
91
100
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange' | 'inputValue' | 'value' | 'onInputChange'>;
|
|
92
101
|
declare function CriteriaMatchMenu({ onChange, criteriaMatch, dimensions, errorMessage, ...props }: CriteriaMatchMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
93
102
|
|
|
@@ -101,6 +110,8 @@ type DimensionMenuProps = {
|
|
|
101
110
|
quirks?: QuirkGetResponse['quirks'];
|
|
102
111
|
errorMessage?: string;
|
|
103
112
|
onChange: (newValue: ResolvedDimensionDefinition | Quirk | undefined) => void;
|
|
113
|
+
/** sets the disabled state of the component */
|
|
114
|
+
disabled?: boolean;
|
|
104
115
|
} & Omit<InputComboBoxProps<DimensionMenuOption, false>, 'value' | 'options' | 'onChange'>;
|
|
105
116
|
declare function DimensionMenu({ onChange, value, dimensions, errorMessage, quirks, ...props }: DimensionMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
106
117
|
|
|
@@ -145,6 +156,8 @@ interface PersonalizationCriteriaStaticProps {
|
|
|
145
156
|
lhs?: Array<string | undefined>;
|
|
146
157
|
rhs?: Array<string | undefined>;
|
|
147
158
|
};
|
|
159
|
+
/** sets the disabled state of the component */
|
|
160
|
+
readOnly?: boolean;
|
|
148
161
|
}
|
|
149
162
|
declare const PersonalizationCriteriaStatic: React.FC<PersonalizationCriteriaStaticProps>;
|
|
150
163
|
|
|
@@ -181,4 +194,4 @@ declare const validateContextConfig: (contextConfig?: ContextConfig) => Promise<
|
|
|
181
194
|
result?: ManifestGetResponse;
|
|
182
195
|
}>;
|
|
183
196
|
|
|
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 };
|
|
197
|
+
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, getValidCriteriaOperatorsFor, isEnrichmentTagData, isPersonalizationCriteriaData, opHasRhs, useContextConfig, useContextData, useDimensions, useDimensionsDataContext, useManifest, useValidateContextConfig, validateContextConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ type CriteriaOperatorMenuProps = {
|
|
|
39
39
|
value: DimensionMatch['op'] | QuirkMatch['op'];
|
|
40
40
|
onChange: (newValue: DimensionMatch['op'] | QuirkMatch['op']) => void;
|
|
41
41
|
rhsType?: ResolvedDimensionDefinition['category'] | 'QUIRK';
|
|
42
|
+
/** sets the disabled state of the component */
|
|
43
|
+
disabled?: boolean;
|
|
42
44
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
43
45
|
declare const contextCriteriaMenuOperators: Array<{
|
|
44
46
|
name: string;
|
|
@@ -50,6 +52,11 @@ declare const enrichmentCriteriaMenuOperators: Array<{
|
|
|
50
52
|
description?: string;
|
|
51
53
|
value: DimensionMatch['op'];
|
|
52
54
|
}>;
|
|
55
|
+
declare function getValidCriteriaOperatorsFor(rhsType: ResolvedDimensionDefinition['category'] | 'QUIRK' | undefined): {
|
|
56
|
+
name: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
value: DimensionMatch["op"];
|
|
59
|
+
}[];
|
|
53
60
|
declare function CriteriaOperatorMenu({ onChange, value, rhsType, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
54
61
|
|
|
55
62
|
interface UseContextDataResult {
|
|
@@ -88,6 +95,8 @@ type CriteriaMatchMenuProps = {
|
|
|
88
95
|
dimensions: DimensionsData;
|
|
89
96
|
errorMessage?: string;
|
|
90
97
|
onChange: (newCriteria: DimensionMatch) => void;
|
|
98
|
+
/** sets the disabled state of the component */
|
|
99
|
+
disabled?: boolean;
|
|
91
100
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange' | 'inputValue' | 'value' | 'onInputChange'>;
|
|
92
101
|
declare function CriteriaMatchMenu({ onChange, criteriaMatch, dimensions, errorMessage, ...props }: CriteriaMatchMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
93
102
|
|
|
@@ -101,6 +110,8 @@ type DimensionMenuProps = {
|
|
|
101
110
|
quirks?: QuirkGetResponse['quirks'];
|
|
102
111
|
errorMessage?: string;
|
|
103
112
|
onChange: (newValue: ResolvedDimensionDefinition | Quirk | undefined) => void;
|
|
113
|
+
/** sets the disabled state of the component */
|
|
114
|
+
disabled?: boolean;
|
|
104
115
|
} & Omit<InputComboBoxProps<DimensionMenuOption, false>, 'value' | 'options' | 'onChange'>;
|
|
105
116
|
declare function DimensionMenu({ onChange, value, dimensions, errorMessage, quirks, ...props }: DimensionMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
106
117
|
|
|
@@ -145,6 +156,8 @@ interface PersonalizationCriteriaStaticProps {
|
|
|
145
156
|
lhs?: Array<string | undefined>;
|
|
146
157
|
rhs?: Array<string | undefined>;
|
|
147
158
|
};
|
|
159
|
+
/** sets the disabled state of the component */
|
|
160
|
+
readOnly?: boolean;
|
|
148
161
|
}
|
|
149
162
|
declare const PersonalizationCriteriaStatic: React.FC<PersonalizationCriteriaStaticProps>;
|
|
150
163
|
|
|
@@ -181,4 +194,4 @@ declare const validateContextConfig: (contextConfig?: ContextConfig) => Promise<
|
|
|
181
194
|
result?: ManifestGetResponse;
|
|
182
195
|
}>;
|
|
183
196
|
|
|
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 };
|
|
197
|
+
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, getValidCriteriaOperatorsFor, isEnrichmentTagData, isPersonalizationCriteriaData, opHasRhs, useContextConfig, useContextData, useDimensions, useDimensionsDataContext, useManifest, useValidateContextConfig, validateContextConfig };
|