@uniformdev/canvas-react 20.39.3-alpha.11 → 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 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
  };
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
  };
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.3-alpha.11+b3ab5fb305",
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.39.3-alpha.11+b3ab5fb305",
49
- "@uniformdev/context": "20.39.3-alpha.11+b3ab5fb305",
50
- "@uniformdev/context-react": "20.39.3-alpha.11+b3ab5fb305",
51
- "@uniformdev/richtext": "20.39.3-alpha.11+b3ab5fb305"
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": "b3ab5fb305533690de4bbd859a69196b6c26ee2f"
70
+ "gitHead": "5a63373f91355d8865feac0d3fc11be59a5e38bd"
71
71
  }