@uniformdev/context-ui 19.92.3 → 19.93.1-alpha.40
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 +29 -14
- package/dist/index.d.ts +29 -14
- package/dist/index.esm.js +339 -167
- package/dist/index.js +354 -189
- package/dist/index.mjs +339 -167
- 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 } 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;
|
|
@@ -153,4 +168,4 @@ declare const validateContextConfig: (contextConfig?: ContextConfig) => Promise<
|
|
|
153
168
|
result?: ManifestGetResponse;
|
|
154
169
|
}>;
|
|
155
170
|
|
|
156
|
-
export { 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, addEnrichmentLink, contextCriteriaMenuOperators, convertErrorsToObj, isEnrichmentTagData, isPersonalizationCriteriaData, opHasRhs, useContextConfig, useContextData, useDimensions, useDimensionsDataContext, useManifest, useValidateContextConfig, validateContextConfig };
|
|
171
|
+
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,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 } 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;
|
|
@@ -153,4 +168,4 @@ declare const validateContextConfig: (contextConfig?: ContextConfig) => Promise<
|
|
|
153
168
|
result?: ManifestGetResponse;
|
|
154
169
|
}>;
|
|
155
170
|
|
|
156
|
-
export { 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, addEnrichmentLink, contextCriteriaMenuOperators, convertErrorsToObj, isEnrichmentTagData, isPersonalizationCriteriaData, opHasRhs, useContextConfig, useContextData, useDimensions, useDimensionsDataContext, useManifest, useValidateContextConfig, validateContextConfig };
|
|
171
|
+
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 };
|