@uniformdev/context-ui 17.7.1-alpha.34 → 18.0.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/LICENSE.txt +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.esm.js +1493 -19
- package/dist/index.js +1541 -19
- package/dist/index.mjs +1493 -19
- package/package.json +17 -17
package/LICENSE.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
©
|
|
1
|
+
© 2023 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.ts
CHANGED
|
@@ -7,7 +7,7 @@ import React, { ComponentType, ReactElement } from 'react';
|
|
|
7
7
|
import * as _emotion_react from '@emotion/react';
|
|
8
8
|
import * as yup from 'yup';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
type CriteriaOperatorMenuProps = {
|
|
11
11
|
value: DimensionMatch['op'];
|
|
12
12
|
onChange: (newValue: DimensionMatch['op']) => void;
|
|
13
13
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
@@ -23,11 +23,11 @@ interface ContextConfig {
|
|
|
23
23
|
apiHost: string;
|
|
24
24
|
apiKey: string;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
type DimensionsData = {
|
|
27
27
|
dimensions: ResolvedDimensionDefinition[];
|
|
28
28
|
dimIndex: Record<string, ResolvedDimensionDefinition | undefined>;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
type ResolvedDimensionDefinition = DimensionDefinition & {
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -62,7 +62,7 @@ declare function useContextConfig(): ContextConfig;
|
|
|
62
62
|
declare function useManifest(): ManifestGetResponse;
|
|
63
63
|
declare function useDimensionsDataContext(): DimensionsData;
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
type CriteriaMatchMenuProps = {
|
|
66
66
|
criteriaMatch: DimensionMatch;
|
|
67
67
|
dimensions: DimensionsData;
|
|
68
68
|
errorMessage?: string;
|
|
@@ -70,7 +70,7 @@ declare type CriteriaMatchMenuProps = {
|
|
|
70
70
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange' | 'inputValue' | 'value' | 'onInputChange'>;
|
|
71
71
|
declare function CriteriaMatchMenu({ onChange, criteriaMatch, dimensions, errorMessage, ...props }: CriteriaMatchMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
type DimensionMenuProps = {
|
|
74
74
|
value?: ResolvedDimensionDefinition;
|
|
75
75
|
dimensions: ResolvedDimensionDefinition[];
|
|
76
76
|
errorMessage?: string;
|
|
@@ -78,12 +78,12 @@ declare type DimensionMenuProps = {
|
|
|
78
78
|
} & Omit<InputComboBoxProps<InputComboBoxOption, false>, 'value' | 'options' | 'onChange'>;
|
|
79
79
|
declare function DimensionMenu({ onChange, value, dimensions, errorMessage, ...props }: DimensionMenuProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
type DimensionValueProps = {
|
|
82
82
|
displayName: string;
|
|
83
83
|
};
|
|
84
84
|
declare function DimensionValue({ displayName }: DimensionValueProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
type EditLinkProps = {
|
|
87
87
|
linkTo: string;
|
|
88
88
|
name?: string;
|
|
89
89
|
linkText?: string;
|
|
@@ -120,16 +120,16 @@ interface PersonalizationCriteriaStaticProps {
|
|
|
120
120
|
}
|
|
121
121
|
declare const PersonalizationCriteriaStatic: React.FC<PersonalizationCriteriaStaticProps>;
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
type ParameterValidationError<TValue> = TValue extends string | number | boolean ? string : {
|
|
124
124
|
[key in keyof TValue]: ParameterValidationError<TValue[key]> | undefined;
|
|
125
125
|
};
|
|
126
126
|
declare function convertErrorsToObj(errors: yup.ValidationError[]): ParameterValidationError<VariantMatchCriteria>;
|
|
127
|
-
|
|
127
|
+
type PersonalizationCriteriaProps = {
|
|
128
128
|
contextConfig: ContextConfig;
|
|
129
129
|
} & Omit<PersonalizationCriteriaStaticProps, 'dimensions'>;
|
|
130
130
|
declare const PersonalizationCriteria: React.FC<PersonalizationCriteriaProps>;
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
type UIVersionProps = {
|
|
133
133
|
versionMap: Record<number, React.ComponentType>;
|
|
134
134
|
children?: React.ReactNode;
|
|
135
135
|
contextConfig: ContextConfig;
|