@uniformdev/canvas-react 20.39.1 → 20.39.3-alpha.1

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 CHANGED
@@ -749,7 +749,9 @@ declare function useUniformCurrentComposition(): UniformCompositionContextValue;
749
749
  * It renders the full tree of components, and provides some services to the children, such as `useUniformCurrentComposition`.
750
750
  * It also takes care of enabling [Contextual Editing](https://docs.uniform.app/capabilities/composition/contextual-editing).
751
751
  */
752
- declare function UniformComposition<TRenderProps = unknown>({ data, behaviorTracking, children, resolveRenderer, contextualEditingEnhancer, contextualEditingDefaultPlaceholder, matchedRoute, dynamicInputs, }: UniformCompositionProps<TRenderProps>): React$1.JSX.Element;
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;
753
755
 
754
756
  type UniformPlaygroundDecorator = (props: {
755
757
  /** The rendered component instance, needs to be wrapped and rendered by the decorator */
package/dist/index.d.ts CHANGED
@@ -749,7 +749,9 @@ declare function useUniformCurrentComposition(): UniformCompositionContextValue;
749
749
  * It renders the full tree of components, and provides some services to the children, such as `useUniformCurrentComposition`.
750
750
  * It also takes care of enabling [Contextual Editing](https://docs.uniform.app/capabilities/composition/contextual-editing).
751
751
  */
752
- declare function UniformComposition<TRenderProps = unknown>({ data, behaviorTracking, children, resolveRenderer, contextualEditingEnhancer, contextualEditingDefaultPlaceholder, matchedRoute, dynamicInputs, }: UniformCompositionProps<TRenderProps>): React$1.JSX.Element;
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;
753
755
 
754
756
  type UniformPlaygroundDecorator = (props: {
755
757
  /** The rendered component instance, needs to be wrapped and rendered by the decorator */
package/dist/index.esm.js CHANGED
@@ -392,8 +392,9 @@ function UniformComposition({
392
392
  resolveRenderer,
393
393
  contextualEditingEnhancer,
394
394
  contextualEditingDefaultPlaceholder,
395
- matchedRoute,
396
- dynamicInputs
395
+ /** provide default non-undefined values to avoid serialization issues */
396
+ matchedRoute = "",
397
+ dynamicInputs = {}
397
398
  }) {
398
399
  const maybeContext = useUniformContext({ throwOnMissingProvider: false });
399
400
  useEffect2(() => {
package/dist/index.js CHANGED
@@ -415,8 +415,9 @@ function UniformComposition({
415
415
  resolveRenderer,
416
416
  contextualEditingEnhancer,
417
417
  contextualEditingDefaultPlaceholder,
418
- matchedRoute,
419
- dynamicInputs
418
+ /** provide default non-undefined values to avoid serialization issues */
419
+ matchedRoute = "",
420
+ dynamicInputs = {}
420
421
  }) {
421
422
  const maybeContext = (0, import_context_react2.useUniformContext)({ throwOnMissingProvider: false });
422
423
  (0, import_react7.useEffect)(() => {
package/dist/index.mjs CHANGED
@@ -392,8 +392,9 @@ function UniformComposition({
392
392
  resolveRenderer,
393
393
  contextualEditingEnhancer,
394
394
  contextualEditingDefaultPlaceholder,
395
- matchedRoute,
396
- dynamicInputs
395
+ /** provide default non-undefined values to avoid serialization issues */
396
+ matchedRoute = "",
397
+ dynamicInputs = {}
397
398
  }) {
398
399
  const maybeContext = useUniformContext({ throwOnMissingProvider: false });
399
400
  useEffect2(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "20.39.1",
3
+ "version": "20.39.3-alpha.1+5c5ebdb625",
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.39.1",
49
- "@uniformdev/context": "20.39.1",
50
- "@uniformdev/context-react": "20.39.1",
51
- "@uniformdev/richtext": "20.39.1"
48
+ "@uniformdev/canvas": "20.39.3-alpha.1+5c5ebdb625",
49
+ "@uniformdev/context": "20.39.3-alpha.1+5c5ebdb625",
50
+ "@uniformdev/context-react": "20.39.3-alpha.1+5c5ebdb625",
51
+ "@uniformdev/richtext": "20.39.3-alpha.1+5c5ebdb625"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "immer": ">= 10",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "b30fa1c0f65428db041678384bc2565fed1e34e6"
70
+ "gitHead": "5c5ebdb6256f19b67d7941890176e63f3d60b8f4"
71
71
  }