@uniformdev/context-ui 19.61.1 → 19.62.1-alpha.127

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/LICENSE.txt CHANGED
@@ -1,2 +1,2 @@
1
- © 2023 Uniform Systems, Inc. All Rights Reserved.
1
+ © 2024 Uniform Systems, Inc. All Rights Reserved.
2
2
  See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
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;
@@ -112,6 +127,7 @@ interface PersonalizationCriteriaStaticProps {
112
127
  NoDimensionsDefined?: React.ComponentType;
113
128
  Title?: React.ComponentType;
114
129
  CustomVariantName?: React.ComponentType;
130
+ ControlPercentage?: React.ComponentType;
115
131
  };
116
132
  errors?: {
117
133
  lhs?: Array<string | undefined>;
@@ -153,4 +169,4 @@ declare const validateContextConfig: (contextConfig?: ContextConfig) => Promise<
153
169
  result?: ManifestGetResponse;
154
170
  }>;
155
171
 
156
- export { ContextConfig, ContextData, ContextDataProps, CriteriaMatchMenu, CriteriaMatchMenuProps, CriteriaOperatorMenu, CriteriaOperatorMenuProps, DataContextErrorProps, DimensionMenu, DimensionMenuProps, DimensionValue, DimensionValueProps, DimensionsData, EditLink, EditLinkProps, EnrichmentTag, EnrichmentTagProps, PersonalizationCriteria, PersonalizationCriteriaProps, PersonalizationCriteriaStatic, PersonalizationCriteriaStaticProps, ProjectUIVersion, ResolvedDimensionDefinition, UseContextDataResult, UseDimensionsResult, UseValidateContextConfigResult, addEnrichmentLink, contextCriteriaMenuOperators, convertErrorsToObj, 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,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;
@@ -112,6 +127,7 @@ interface PersonalizationCriteriaStaticProps {
112
127
  NoDimensionsDefined?: React.ComponentType;
113
128
  Title?: React.ComponentType;
114
129
  CustomVariantName?: React.ComponentType;
130
+ ControlPercentage?: React.ComponentType;
115
131
  };
116
132
  errors?: {
117
133
  lhs?: Array<string | undefined>;
@@ -153,4 +169,4 @@ declare const validateContextConfig: (contextConfig?: ContextConfig) => Promise<
153
169
  result?: ManifestGetResponse;
154
170
  }>;
155
171
 
156
- export { ContextConfig, ContextData, ContextDataProps, CriteriaMatchMenu, CriteriaMatchMenuProps, CriteriaOperatorMenu, CriteriaOperatorMenuProps, DataContextErrorProps, DimensionMenu, DimensionMenuProps, DimensionValue, DimensionValueProps, DimensionsData, EditLink, EditLinkProps, EnrichmentTag, EnrichmentTagProps, PersonalizationCriteria, PersonalizationCriteriaProps, PersonalizationCriteriaStatic, PersonalizationCriteriaStaticProps, ProjectUIVersion, ResolvedDimensionDefinition, UseContextDataResult, UseDimensionsResult, UseValidateContextConfigResult, addEnrichmentLink, contextCriteriaMenuOperators, convertErrorsToObj, 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 };