@uniformdev/context-ui 20.34.3-alpha.70 → 20.35.1-alpha.188
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 +15 -7
- package/dist/index.d.ts +15 -7
- package/dist/index.esm.js +239 -219
- package/dist/index.js +251 -232
- package/dist/index.mjs +239 -219
- package/package.json +13 -14
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import * as _emotion_react from '@emotion/react';
|
|
3
3
|
import { DimensionDefinition, Test, ManifestGetResponse, Quirk, QuirkGetResponse } from '@uniformdev/context/api';
|
|
4
4
|
import { DimensionMatch, QuirkMatch, EnrichmentData, VariantMatchCriteria } from '@uniformdev/context';
|
|
@@ -33,12 +33,14 @@ interface AbTestSelectorProps {
|
|
|
33
33
|
contextConfig: ContextConfig;
|
|
34
34
|
loading?: boolean;
|
|
35
35
|
}
|
|
36
|
-
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) =>
|
|
36
|
+
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
37
37
|
|
|
38
38
|
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;
|
|
@@ -55,7 +57,7 @@ declare function getValidCriteriaOperatorsFor(rhsType: ResolvedDimensionDefiniti
|
|
|
55
57
|
description?: string;
|
|
56
58
|
value: DimensionMatch["op"];
|
|
57
59
|
}[];
|
|
58
|
-
declare function CriteriaOperatorMenu({ onChange, value, rhsType, ...props }: CriteriaOperatorMenuProps):
|
|
60
|
+
declare function CriteriaOperatorMenu({ onChange, value, rhsType, ...props }: CriteriaOperatorMenuProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
59
61
|
|
|
60
62
|
interface UseContextDataResult {
|
|
61
63
|
result: ManifestGetResponse | null;
|
|
@@ -93,8 +95,10 @@ type CriteriaMatchMenuProps = {
|
|
|
93
95
|
dimensions: DimensionsData;
|
|
94
96
|
errorMessage?: string;
|
|
95
97
|
onChange: (newCriteria: DimensionMatch) => void;
|
|
98
|
+
/** sets the disabled state of the component */
|
|
99
|
+
disabled?: boolean;
|
|
96
100
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange' | 'inputValue' | 'value' | 'onInputChange'>;
|
|
97
|
-
declare function CriteriaMatchMenu({ onChange, criteriaMatch, dimensions, errorMessage, ...props }: CriteriaMatchMenuProps):
|
|
101
|
+
declare function CriteriaMatchMenu({ onChange, criteriaMatch, dimensions, errorMessage, ...props }: CriteriaMatchMenuProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
98
102
|
|
|
99
103
|
type DimensionMenuOption = InputComboBoxOption & {
|
|
100
104
|
original?: ResolvedDimensionDefinition | Quirk;
|
|
@@ -106,20 +110,22 @@ type DimensionMenuProps = {
|
|
|
106
110
|
quirks?: QuirkGetResponse['quirks'];
|
|
107
111
|
errorMessage?: string;
|
|
108
112
|
onChange: (newValue: ResolvedDimensionDefinition | Quirk | undefined) => void;
|
|
113
|
+
/** sets the disabled state of the component */
|
|
114
|
+
disabled?: boolean;
|
|
109
115
|
} & Omit<InputComboBoxProps<DimensionMenuOption, false>, 'value' | 'options' | 'onChange'>;
|
|
110
|
-
declare function DimensionMenu({ onChange, value, dimensions, errorMessage, quirks, ...props }: DimensionMenuProps):
|
|
116
|
+
declare function DimensionMenu({ onChange, value, dimensions, errorMessage, quirks, ...props }: DimensionMenuProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
111
117
|
|
|
112
118
|
type DimensionValueProps = {
|
|
113
119
|
displayName: string | undefined;
|
|
114
120
|
};
|
|
115
|
-
declare function DimensionValue({ displayName }: DimensionValueProps):
|
|
121
|
+
declare function DimensionValue({ displayName }: DimensionValueProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
116
122
|
|
|
117
123
|
type EditLinkProps = {
|
|
118
124
|
linkTo: string;
|
|
119
125
|
name?: string;
|
|
120
126
|
linkText?: string;
|
|
121
127
|
};
|
|
122
|
-
declare const EditLink: ({ linkTo, name, linkText }: EditLinkProps) =>
|
|
128
|
+
declare const EditLink: ({ linkTo, name, linkText }: EditLinkProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
123
129
|
|
|
124
130
|
declare const addEnrichmentLink: _emotion_react.SerializedStyles;
|
|
125
131
|
interface EnrichmentTagProps {
|
|
@@ -150,6 +156,8 @@ interface PersonalizationCriteriaStaticProps {
|
|
|
150
156
|
lhs?: Array<string | undefined>;
|
|
151
157
|
rhs?: Array<string | undefined>;
|
|
152
158
|
};
|
|
159
|
+
/** sets the disabled state of the component */
|
|
160
|
+
readOnly?: boolean;
|
|
153
161
|
}
|
|
154
162
|
declare const PersonalizationCriteriaStatic: React.FC<PersonalizationCriteriaStaticProps>;
|
|
155
163
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import * as _emotion_react from '@emotion/react';
|
|
3
3
|
import { DimensionDefinition, Test, ManifestGetResponse, Quirk, QuirkGetResponse } from '@uniformdev/context/api';
|
|
4
4
|
import { DimensionMatch, QuirkMatch, EnrichmentData, VariantMatchCriteria } from '@uniformdev/context';
|
|
@@ -33,12 +33,14 @@ interface AbTestSelectorProps {
|
|
|
33
33
|
contextConfig: ContextConfig;
|
|
34
34
|
loading?: boolean;
|
|
35
35
|
}
|
|
36
|
-
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) =>
|
|
36
|
+
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
37
37
|
|
|
38
38
|
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;
|
|
@@ -55,7 +57,7 @@ declare function getValidCriteriaOperatorsFor(rhsType: ResolvedDimensionDefiniti
|
|
|
55
57
|
description?: string;
|
|
56
58
|
value: DimensionMatch["op"];
|
|
57
59
|
}[];
|
|
58
|
-
declare function CriteriaOperatorMenu({ onChange, value, rhsType, ...props }: CriteriaOperatorMenuProps):
|
|
60
|
+
declare function CriteriaOperatorMenu({ onChange, value, rhsType, ...props }: CriteriaOperatorMenuProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
59
61
|
|
|
60
62
|
interface UseContextDataResult {
|
|
61
63
|
result: ManifestGetResponse | null;
|
|
@@ -93,8 +95,10 @@ type CriteriaMatchMenuProps = {
|
|
|
93
95
|
dimensions: DimensionsData;
|
|
94
96
|
errorMessage?: string;
|
|
95
97
|
onChange: (newCriteria: DimensionMatch) => void;
|
|
98
|
+
/** sets the disabled state of the component */
|
|
99
|
+
disabled?: boolean;
|
|
96
100
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange' | 'inputValue' | 'value' | 'onInputChange'>;
|
|
97
|
-
declare function CriteriaMatchMenu({ onChange, criteriaMatch, dimensions, errorMessage, ...props }: CriteriaMatchMenuProps):
|
|
101
|
+
declare function CriteriaMatchMenu({ onChange, criteriaMatch, dimensions, errorMessage, ...props }: CriteriaMatchMenuProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
98
102
|
|
|
99
103
|
type DimensionMenuOption = InputComboBoxOption & {
|
|
100
104
|
original?: ResolvedDimensionDefinition | Quirk;
|
|
@@ -106,20 +110,22 @@ type DimensionMenuProps = {
|
|
|
106
110
|
quirks?: QuirkGetResponse['quirks'];
|
|
107
111
|
errorMessage?: string;
|
|
108
112
|
onChange: (newValue: ResolvedDimensionDefinition | Quirk | undefined) => void;
|
|
113
|
+
/** sets the disabled state of the component */
|
|
114
|
+
disabled?: boolean;
|
|
109
115
|
} & Omit<InputComboBoxProps<DimensionMenuOption, false>, 'value' | 'options' | 'onChange'>;
|
|
110
|
-
declare function DimensionMenu({ onChange, value, dimensions, errorMessage, quirks, ...props }: DimensionMenuProps):
|
|
116
|
+
declare function DimensionMenu({ onChange, value, dimensions, errorMessage, quirks, ...props }: DimensionMenuProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
111
117
|
|
|
112
118
|
type DimensionValueProps = {
|
|
113
119
|
displayName: string | undefined;
|
|
114
120
|
};
|
|
115
|
-
declare function DimensionValue({ displayName }: DimensionValueProps):
|
|
121
|
+
declare function DimensionValue({ displayName }: DimensionValueProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
116
122
|
|
|
117
123
|
type EditLinkProps = {
|
|
118
124
|
linkTo: string;
|
|
119
125
|
name?: string;
|
|
120
126
|
linkText?: string;
|
|
121
127
|
};
|
|
122
|
-
declare const EditLink: ({ linkTo, name, linkText }: EditLinkProps) =>
|
|
128
|
+
declare const EditLink: ({ linkTo, name, linkText }: EditLinkProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
123
129
|
|
|
124
130
|
declare const addEnrichmentLink: _emotion_react.SerializedStyles;
|
|
125
131
|
interface EnrichmentTagProps {
|
|
@@ -150,6 +156,8 @@ interface PersonalizationCriteriaStaticProps {
|
|
|
150
156
|
lhs?: Array<string | undefined>;
|
|
151
157
|
rhs?: Array<string | undefined>;
|
|
152
158
|
};
|
|
159
|
+
/** sets the disabled state of the component */
|
|
160
|
+
readOnly?: boolean;
|
|
153
161
|
}
|
|
154
162
|
declare const PersonalizationCriteriaStatic: React.FC<PersonalizationCriteriaStaticProps>;
|
|
155
163
|
|