@uniformdev/context-ui 19.95.0 → 19.96.1-alpha.0
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 +28 -28
- package/dist/index.d.ts +28 -28
- package/dist/index.esm.js +334 -334
- package/dist/index.js +345 -345
- package/dist/index.mjs +334 -334
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
2
|
+
import * as _emotion_react from '@emotion/react';
|
|
3
|
+
import { DimensionDefinition, Test, ManifestGetResponse } from '@uniformdev/context/api';
|
|
2
4
|
import { DimensionMatch, EnrichmentData, VariantMatchCriteria } from '@uniformdev/context';
|
|
3
5
|
import { InputComboBoxProps, InputComboBoxOption } from '@uniformdev/design-system';
|
|
4
6
|
export * from '@uniformdev/design-system';
|
|
5
|
-
import { DimensionDefinition, ManifestGetResponse, Test } from '@uniformdev/context/api';
|
|
6
7
|
import React, { ComponentType, ReactElement } from 'react';
|
|
7
|
-
import * as _emotion_react from '@emotion/react';
|
|
8
8
|
import * as yup from 'yup';
|
|
9
9
|
|
|
10
|
-
type CriteriaOperatorMenuProps = {
|
|
11
|
-
value: DimensionMatch['op'];
|
|
12
|
-
onChange: (newValue: DimensionMatch['op']) => void;
|
|
13
|
-
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
14
|
-
declare const contextCriteriaMenuOperators: Array<{
|
|
15
|
-
name: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
value: DimensionMatch['op'];
|
|
18
|
-
}>;
|
|
19
|
-
declare function CriteriaOperatorMenu({ onChange, value, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
20
|
-
|
|
21
10
|
interface ContextConfig {
|
|
22
11
|
projectId?: string;
|
|
23
12
|
apiHost: string;
|
|
@@ -31,6 +20,32 @@ type ResolvedDimensionDefinition = DimensionDefinition & {
|
|
|
31
20
|
displayName: string;
|
|
32
21
|
};
|
|
33
22
|
|
|
23
|
+
declare const addAbTestLink: _emotion_react.SerializedStyles;
|
|
24
|
+
interface AbTestListProps {
|
|
25
|
+
contextConfig: ContextConfig;
|
|
26
|
+
abTests?: Test[];
|
|
27
|
+
onSelect: (abTest: Test) => void;
|
|
28
|
+
value?: Test;
|
|
29
|
+
}
|
|
30
|
+
interface AbTestSelectorProps {
|
|
31
|
+
value?: Test;
|
|
32
|
+
setValue: (value?: Test) => void;
|
|
33
|
+
contextConfig: ContextConfig;
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
}
|
|
36
|
+
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
37
|
+
|
|
38
|
+
type CriteriaOperatorMenuProps = {
|
|
39
|
+
value: DimensionMatch['op'];
|
|
40
|
+
onChange: (newValue: DimensionMatch['op']) => void;
|
|
41
|
+
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
42
|
+
declare const contextCriteriaMenuOperators: Array<{
|
|
43
|
+
name: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
value: DimensionMatch['op'];
|
|
46
|
+
}>;
|
|
47
|
+
declare function CriteriaOperatorMenu({ onChange, value, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
48
|
+
|
|
34
49
|
interface UseContextDataResult {
|
|
35
50
|
result: ManifestGetResponse | null;
|
|
36
51
|
error: string | null;
|
|
@@ -136,21 +151,6 @@ type UIVersionProps = {
|
|
|
136
151
|
};
|
|
137
152
|
declare function ProjectUIVersion({ children, versionMap, contextConfig }: UIVersionProps): ReactElement;
|
|
138
153
|
|
|
139
|
-
declare const addAbTestLink: _emotion_react.SerializedStyles;
|
|
140
|
-
interface AbTestListProps {
|
|
141
|
-
contextConfig: ContextConfig;
|
|
142
|
-
abTests?: Test[];
|
|
143
|
-
onSelect: (abTest: Test) => void;
|
|
144
|
-
value?: Test;
|
|
145
|
-
}
|
|
146
|
-
interface AbTestSelectorProps {
|
|
147
|
-
value?: Test;
|
|
148
|
-
setValue: (value?: Test) => void;
|
|
149
|
-
contextConfig: ContextConfig;
|
|
150
|
-
loading?: boolean;
|
|
151
|
-
}
|
|
152
|
-
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
153
|
-
|
|
154
154
|
interface UseValidateContextConfigResult {
|
|
155
155
|
validating: boolean;
|
|
156
156
|
error?: Error;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
2
|
+
import * as _emotion_react from '@emotion/react';
|
|
3
|
+
import { DimensionDefinition, Test, ManifestGetResponse } from '@uniformdev/context/api';
|
|
2
4
|
import { DimensionMatch, EnrichmentData, VariantMatchCriteria } from '@uniformdev/context';
|
|
3
5
|
import { InputComboBoxProps, InputComboBoxOption } from '@uniformdev/design-system';
|
|
4
6
|
export * from '@uniformdev/design-system';
|
|
5
|
-
import { DimensionDefinition, ManifestGetResponse, Test } from '@uniformdev/context/api';
|
|
6
7
|
import React, { ComponentType, ReactElement } from 'react';
|
|
7
|
-
import * as _emotion_react from '@emotion/react';
|
|
8
8
|
import * as yup from 'yup';
|
|
9
9
|
|
|
10
|
-
type CriteriaOperatorMenuProps = {
|
|
11
|
-
value: DimensionMatch['op'];
|
|
12
|
-
onChange: (newValue: DimensionMatch['op']) => void;
|
|
13
|
-
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
14
|
-
declare const contextCriteriaMenuOperators: Array<{
|
|
15
|
-
name: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
value: DimensionMatch['op'];
|
|
18
|
-
}>;
|
|
19
|
-
declare function CriteriaOperatorMenu({ onChange, value, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
20
|
-
|
|
21
10
|
interface ContextConfig {
|
|
22
11
|
projectId?: string;
|
|
23
12
|
apiHost: string;
|
|
@@ -31,6 +20,32 @@ type ResolvedDimensionDefinition = DimensionDefinition & {
|
|
|
31
20
|
displayName: string;
|
|
32
21
|
};
|
|
33
22
|
|
|
23
|
+
declare const addAbTestLink: _emotion_react.SerializedStyles;
|
|
24
|
+
interface AbTestListProps {
|
|
25
|
+
contextConfig: ContextConfig;
|
|
26
|
+
abTests?: Test[];
|
|
27
|
+
onSelect: (abTest: Test) => void;
|
|
28
|
+
value?: Test;
|
|
29
|
+
}
|
|
30
|
+
interface AbTestSelectorProps {
|
|
31
|
+
value?: Test;
|
|
32
|
+
setValue: (value?: Test) => void;
|
|
33
|
+
contextConfig: ContextConfig;
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
}
|
|
36
|
+
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
37
|
+
|
|
38
|
+
type CriteriaOperatorMenuProps = {
|
|
39
|
+
value: DimensionMatch['op'];
|
|
40
|
+
onChange: (newValue: DimensionMatch['op']) => void;
|
|
41
|
+
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
42
|
+
declare const contextCriteriaMenuOperators: Array<{
|
|
43
|
+
name: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
value: DimensionMatch['op'];
|
|
46
|
+
}>;
|
|
47
|
+
declare function CriteriaOperatorMenu({ onChange, value, ...props }: CriteriaOperatorMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
48
|
+
|
|
34
49
|
interface UseContextDataResult {
|
|
35
50
|
result: ManifestGetResponse | null;
|
|
36
51
|
error: string | null;
|
|
@@ -136,21 +151,6 @@ type UIVersionProps = {
|
|
|
136
151
|
};
|
|
137
152
|
declare function ProjectUIVersion({ children, versionMap, contextConfig }: UIVersionProps): ReactElement;
|
|
138
153
|
|
|
139
|
-
declare const addAbTestLink: _emotion_react.SerializedStyles;
|
|
140
|
-
interface AbTestListProps {
|
|
141
|
-
contextConfig: ContextConfig;
|
|
142
|
-
abTests?: Test[];
|
|
143
|
-
onSelect: (abTest: Test) => void;
|
|
144
|
-
value?: Test;
|
|
145
|
-
}
|
|
146
|
-
interface AbTestSelectorProps {
|
|
147
|
-
value?: Test;
|
|
148
|
-
setValue: (value?: Test) => void;
|
|
149
|
-
contextConfig: ContextConfig;
|
|
150
|
-
loading?: boolean;
|
|
151
|
-
}
|
|
152
|
-
declare const AbTestSelector: ({ value, setValue, contextConfig, loading }: AbTestSelectorProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
153
|
-
|
|
154
154
|
interface UseValidateContextConfigResult {
|
|
155
155
|
validating: boolean;
|
|
156
156
|
error?: Error;
|