@uniformdev/canvas-react 20.39.3-alpha.1 → 20.40.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 +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -159,6 +159,13 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
|
|
|
159
159
|
name: string;
|
|
160
160
|
value?: string;
|
|
161
161
|
helpText?: string;
|
|
162
|
+
optionsSource?: {
|
|
163
|
+
source: "static";
|
|
164
|
+
options: {
|
|
165
|
+
name: string;
|
|
166
|
+
value: string;
|
|
167
|
+
}[];
|
|
168
|
+
};
|
|
162
169
|
}[];
|
|
163
170
|
previewValue?: string;
|
|
164
171
|
};
|
|
@@ -749,9 +756,7 @@ declare function useUniformCurrentComposition(): UniformCompositionContextValue;
|
|
|
749
756
|
* It renders the full tree of components, and provides some services to the children, such as `useUniformCurrentComposition`.
|
|
750
757
|
* It also takes care of enabling [Contextual Editing](https://docs.uniform.app/capabilities/composition/contextual-editing).
|
|
751
758
|
*/
|
|
752
|
-
declare function UniformComposition<TRenderProps = unknown>({ data, behaviorTracking, children, resolveRenderer, contextualEditingEnhancer, contextualEditingDefaultPlaceholder,
|
|
753
|
-
/** provide default non-undefined values to avoid serialization issues */
|
|
754
|
-
matchedRoute, dynamicInputs, }: UniformCompositionProps<TRenderProps>): React$1.JSX.Element;
|
|
759
|
+
declare function UniformComposition<TRenderProps = unknown>({ data, behaviorTracking, children, resolveRenderer, contextualEditingEnhancer, contextualEditingDefaultPlaceholder, matchedRoute, dynamicInputs, }: UniformCompositionProps<TRenderProps>): React$1.JSX.Element;
|
|
755
760
|
|
|
756
761
|
type UniformPlaygroundDecorator = (props: {
|
|
757
762
|
/** The rendered component instance, needs to be wrapped and rendered by the decorator */
|
package/dist/index.d.ts
CHANGED
|
@@ -159,6 +159,13 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
|
|
|
159
159
|
name: string;
|
|
160
160
|
value?: string;
|
|
161
161
|
helpText?: string;
|
|
162
|
+
optionsSource?: {
|
|
163
|
+
source: "static";
|
|
164
|
+
options: {
|
|
165
|
+
name: string;
|
|
166
|
+
value: string;
|
|
167
|
+
}[];
|
|
168
|
+
};
|
|
162
169
|
}[];
|
|
163
170
|
previewValue?: string;
|
|
164
171
|
};
|
|
@@ -749,9 +756,7 @@ declare function useUniformCurrentComposition(): UniformCompositionContextValue;
|
|
|
749
756
|
* It renders the full tree of components, and provides some services to the children, such as `useUniformCurrentComposition`.
|
|
750
757
|
* It also takes care of enabling [Contextual Editing](https://docs.uniform.app/capabilities/composition/contextual-editing).
|
|
751
758
|
*/
|
|
752
|
-
declare function UniformComposition<TRenderProps = unknown>({ data, behaviorTracking, children, resolveRenderer, contextualEditingEnhancer, contextualEditingDefaultPlaceholder,
|
|
753
|
-
/** provide default non-undefined values to avoid serialization issues */
|
|
754
|
-
matchedRoute, dynamicInputs, }: UniformCompositionProps<TRenderProps>): React$1.JSX.Element;
|
|
759
|
+
declare function UniformComposition<TRenderProps = unknown>({ data, behaviorTracking, children, resolveRenderer, contextualEditingEnhancer, contextualEditingDefaultPlaceholder, matchedRoute, dynamicInputs, }: UniformCompositionProps<TRenderProps>): React$1.JSX.Element;
|
|
755
760
|
|
|
756
761
|
type UniformPlaygroundDecorator = (props: {
|
|
757
762
|
/** The rendered component instance, needs to be wrapped and rendered by the decorator */
|
package/dist/index.esm.js
CHANGED
|
@@ -392,7 +392,7 @@ function UniformComposition({
|
|
|
392
392
|
resolveRenderer,
|
|
393
393
|
contextualEditingEnhancer,
|
|
394
394
|
contextualEditingDefaultPlaceholder,
|
|
395
|
-
|
|
395
|
+
// provide default non-undefined values to avoid serialization issues
|
|
396
396
|
matchedRoute = "",
|
|
397
397
|
dynamicInputs = {}
|
|
398
398
|
}) {
|
package/dist/index.js
CHANGED
|
@@ -415,7 +415,7 @@ function UniformComposition({
|
|
|
415
415
|
resolveRenderer,
|
|
416
416
|
contextualEditingEnhancer,
|
|
417
417
|
contextualEditingDefaultPlaceholder,
|
|
418
|
-
|
|
418
|
+
// provide default non-undefined values to avoid serialization issues
|
|
419
419
|
matchedRoute = "",
|
|
420
420
|
dynamicInputs = {}
|
|
421
421
|
}) {
|
package/dist/index.mjs
CHANGED
|
@@ -392,7 +392,7 @@ function UniformComposition({
|
|
|
392
392
|
resolveRenderer,
|
|
393
393
|
contextualEditingEnhancer,
|
|
394
394
|
contextualEditingDefaultPlaceholder,
|
|
395
|
-
|
|
395
|
+
// provide default non-undefined values to avoid serialization issues
|
|
396
396
|
matchedRoute = "",
|
|
397
397
|
dynamicInputs = {}
|
|
398
398
|
}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-react",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.40.0",
|
|
4
4
|
"description": "React SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"document:prebuild": "api-extractor run --local"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@uniformdev/canvas": "20.
|
|
49
|
-
"@uniformdev/context": "20.
|
|
50
|
-
"@uniformdev/context-react": "20.
|
|
51
|
-
"@uniformdev/richtext": "20.
|
|
48
|
+
"@uniformdev/canvas": "20.40.0",
|
|
49
|
+
"@uniformdev/context": "20.40.0",
|
|
50
|
+
"@uniformdev/context-react": "20.40.0",
|
|
51
|
+
"@uniformdev/richtext": "20.40.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"immer": ">= 10",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "5a63373f91355d8865feac0d3fc11be59a5e38bd"
|
|
71
71
|
}
|