@uniformdev/canvas-react 18.17.1-alpha.13 → 18.19.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.ts CHANGED
@@ -135,6 +135,26 @@ declare const createApiEnhancer: ({ apiUrl }: {
135
135
  };
136
136
  } | undefined;
137
137
  _patternError?: "NOTFOUND" | "CYCLIC" | undefined;
138
+ _overrides?: {
139
+ [key: string]: {
140
+ parameters?: {
141
+ [key: string]: {
142
+ value: unknown;
143
+ type: string;
144
+ connectedData?: {
145
+ pointer: string;
146
+ syntax: "jptr";
147
+ required?: boolean | undefined;
148
+ } | undefined;
149
+ };
150
+ } | undefined;
151
+ };
152
+ } | undefined;
153
+ _overridability?: {
154
+ parameters?: {
155
+ [key: string]: "yes" | "no";
156
+ } | undefined;
157
+ } | undefined;
138
158
  }[];
139
159
  } | undefined;
140
160
  _id: string;
@@ -149,6 +169,26 @@ declare const createApiEnhancer: ({ apiUrl }: {
149
169
  } | undefined;
150
170
  };
151
171
  } | undefined;
172
+ _overrides?: {
173
+ [key: string]: {
174
+ parameters?: {
175
+ [key: string]: {
176
+ value: unknown;
177
+ type: string;
178
+ connectedData?: {
179
+ pointer: string;
180
+ syntax: "jptr";
181
+ required?: boolean | undefined;
182
+ } | undefined;
183
+ };
184
+ } | undefined;
185
+ };
186
+ } | undefined;
187
+ _overridability?: {
188
+ parameters?: {
189
+ [key: string]: "yes" | "no";
190
+ } | undefined;
191
+ } | undefined;
152
192
  }>;
153
193
  type UseUniformContextualEditingProps = {
154
194
  initialCompositionValue?: RootComponentInstance;
@@ -221,6 +261,26 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
221
261
  };
222
262
  } | undefined;
223
263
  _patternError?: "NOTFOUND" | "CYCLIC" | undefined;
264
+ _overrides?: {
265
+ [key: string]: {
266
+ parameters?: {
267
+ [key: string]: {
268
+ value: unknown;
269
+ type: string;
270
+ connectedData?: {
271
+ pointer: string;
272
+ syntax: "jptr";
273
+ required?: boolean | undefined;
274
+ } | undefined;
275
+ };
276
+ } | undefined;
277
+ };
278
+ } | undefined;
279
+ _overridability?: {
280
+ parameters?: {
281
+ [key: string]: "yes" | "no";
282
+ } | undefined;
283
+ } | undefined;
224
284
  }[];
225
285
  } | undefined;
226
286
  _id: string;
@@ -235,6 +295,26 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
235
295
  } | undefined;
236
296
  };
237
297
  } | undefined;
298
+ _overrides?: {
299
+ [key: string]: {
300
+ parameters?: {
301
+ [key: string]: {
302
+ value: unknown;
303
+ type: string;
304
+ connectedData?: {
305
+ pointer: string;
306
+ syntax: "jptr";
307
+ required?: boolean | undefined;
308
+ } | undefined;
309
+ };
310
+ } | undefined;
311
+ };
312
+ } | undefined;
313
+ _overridability?: {
314
+ parameters?: {
315
+ [key: string]: "yes" | "no";
316
+ } | undefined;
317
+ } | undefined;
238
318
  } | undefined;
239
319
  };
240
320
  /** @deprecated use useUniformContextualEditing instead */
@@ -297,6 +377,26 @@ declare const useContextualEditing: ({ initialCompositionValue, enhance, }: UseU
297
377
  };
298
378
  } | undefined;
299
379
  _patternError?: "NOTFOUND" | "CYCLIC" | undefined;
380
+ _overrides?: {
381
+ [key: string]: {
382
+ parameters?: {
383
+ [key: string]: {
384
+ value: unknown;
385
+ type: string;
386
+ connectedData?: {
387
+ pointer: string;
388
+ syntax: "jptr";
389
+ required?: boolean | undefined;
390
+ } | undefined;
391
+ };
392
+ } | undefined;
393
+ };
394
+ } | undefined;
395
+ _overridability?: {
396
+ parameters?: {
397
+ [key: string]: "yes" | "no";
398
+ } | undefined;
399
+ } | undefined;
300
400
  }[];
301
401
  } | undefined;
302
402
  _id: string;
@@ -311,6 +411,26 @@ declare const useContextualEditing: ({ initialCompositionValue, enhance, }: UseU
311
411
  } | undefined;
312
412
  };
313
413
  } | undefined;
414
+ _overrides?: {
415
+ [key: string]: {
416
+ parameters?: {
417
+ [key: string]: {
418
+ value: unknown;
419
+ type: string;
420
+ connectedData?: {
421
+ pointer: string;
422
+ syntax: "jptr";
423
+ required?: boolean | undefined;
424
+ } | undefined;
425
+ };
426
+ } | undefined;
427
+ };
428
+ } | undefined;
429
+ _overridability?: {
430
+ parameters?: {
431
+ [key: string]: "yes" | "no";
432
+ } | undefined;
433
+ } | undefined;
314
434
  } | undefined;
315
435
  };
316
436
  /** @deprecated use UseUniformContextualEditingProps instead */
package/dist/index.esm.js CHANGED
@@ -262,7 +262,8 @@ function renderComponent({
262
262
  ), isPlaceholder && emptyPlaceholder !== void 0 ? emptyPlaceholder : /* @__PURE__ */ React3.createElement(RenderComponent, { ...props }), !shouldRenderContextualEditingTags ? null : /* @__PURE__ */ React3.createElement("script", { "data-role": "component-end" }));
263
263
  } else if (process.env.NODE_ENV !== "production") {
264
264
  console.warn(
265
- `[canvas] found component of type '${component.type}' which the resolveRenderer prop returned no component for. Nothing will be rendered. The resolveRenderer function may need to be extended to handle the new type.`,
265
+ `[canvas] found component of type '${component.type}'${component.variant ? ` with variant '${component.variant}'` : ""}. Nothing will be rendered. Check your resolveRenderer function or add registerUniformComponent to your component.
266
+ See documentation https://docs.uniform.app/guides/dev/rendering`,
266
267
  component
267
268
  );
268
269
  }
@@ -306,7 +307,10 @@ function UniformComponent({
306
307
  data,
307
308
  hasParentLayout: Boolean(parentData.data)
308
309
  });
309
- return /* @__PURE__ */ React4.createElement(UniformComponentContext.Provider, { value: contextValue }, contextContextProviderPresent ? /* @__PURE__ */ React4.createElement(TrackComponent, { behavior: enrichmentTags }, resolvedChildren) : resolvedChildren);
310
+ return /* @__PURE__ */ React4.createElement(UniformComponentContext.Provider, { value: contextValue }, contextContextProviderPresent ? (
311
+ /* auto-track behavior signals when in a Canvas context */
312
+ /* @__PURE__ */ React4.createElement(TrackComponent, { behavior: enrichmentTags }, resolvedChildren)
313
+ ) : resolvedChildren);
310
314
  }
311
315
  function resolveChildren({
312
316
  children,
package/dist/index.js CHANGED
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -300,7 +304,8 @@ function renderComponent({
300
304
  ), isPlaceholder && emptyPlaceholder !== void 0 ? emptyPlaceholder : /* @__PURE__ */ import_react2.default.createElement(RenderComponent, { ...props }), !shouldRenderContextualEditingTags ? null : /* @__PURE__ */ import_react2.default.createElement("script", { "data-role": "component-end" }));
301
305
  } else if (process.env.NODE_ENV !== "production") {
302
306
  console.warn(
303
- `[canvas] found component of type '${component.type}' which the resolveRenderer prop returned no component for. Nothing will be rendered. The resolveRenderer function may need to be extended to handle the new type.`,
307
+ `[canvas] found component of type '${component.type}'${component.variant ? ` with variant '${component.variant}'` : ""}. Nothing will be rendered. Check your resolveRenderer function or add registerUniformComponent to your component.
308
+ See documentation https://docs.uniform.app/guides/dev/rendering`,
304
309
  component
305
310
  );
306
311
  }
@@ -344,7 +349,10 @@ function UniformComponent({
344
349
  data,
345
350
  hasParentLayout: Boolean(parentData.data)
346
351
  });
347
- return /* @__PURE__ */ import_react3.default.createElement(UniformComponentContext.Provider, { value: contextValue }, contextContextProviderPresent ? /* @__PURE__ */ import_react3.default.createElement(TrackComponent, { behavior: enrichmentTags }, resolvedChildren) : resolvedChildren);
352
+ return /* @__PURE__ */ import_react3.default.createElement(UniformComponentContext.Provider, { value: contextValue }, contextContextProviderPresent ? (
353
+ /* auto-track behavior signals when in a Canvas context */
354
+ /* @__PURE__ */ import_react3.default.createElement(TrackComponent, { behavior: enrichmentTags }, resolvedChildren)
355
+ ) : resolvedChildren);
348
356
  }
349
357
  function resolveChildren({
350
358
  children,
package/dist/index.mjs CHANGED
@@ -262,7 +262,8 @@ function renderComponent({
262
262
  ), isPlaceholder && emptyPlaceholder !== void 0 ? emptyPlaceholder : /* @__PURE__ */ React3.createElement(RenderComponent, { ...props }), !shouldRenderContextualEditingTags ? null : /* @__PURE__ */ React3.createElement("script", { "data-role": "component-end" }));
263
263
  } else if (process.env.NODE_ENV !== "production") {
264
264
  console.warn(
265
- `[canvas] found component of type '${component.type}' which the resolveRenderer prop returned no component for. Nothing will be rendered. The resolveRenderer function may need to be extended to handle the new type.`,
265
+ `[canvas] found component of type '${component.type}'${component.variant ? ` with variant '${component.variant}'` : ""}. Nothing will be rendered. Check your resolveRenderer function or add registerUniformComponent to your component.
266
+ See documentation https://docs.uniform.app/guides/dev/rendering`,
266
267
  component
267
268
  );
268
269
  }
@@ -306,7 +307,10 @@ function UniformComponent({
306
307
  data,
307
308
  hasParentLayout: Boolean(parentData.data)
308
309
  });
309
- return /* @__PURE__ */ React4.createElement(UniformComponentContext.Provider, { value: contextValue }, contextContextProviderPresent ? /* @__PURE__ */ React4.createElement(TrackComponent, { behavior: enrichmentTags }, resolvedChildren) : resolvedChildren);
310
+ return /* @__PURE__ */ React4.createElement(UniformComponentContext.Provider, { value: contextValue }, contextContextProviderPresent ? (
311
+ /* auto-track behavior signals when in a Canvas context */
312
+ /* @__PURE__ */ React4.createElement(TrackComponent, { behavior: enrichmentTags }, resolvedChildren)
313
+ ) : resolvedChildren);
310
314
  }
311
315
  function resolveChildren({
312
316
  children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "18.17.1-alpha.13+77f2eaabc",
3
+ "version": "18.19.0",
4
4
  "description": "React SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -20,12 +20,13 @@
20
20
  "clean": "rimraf dist",
21
21
  "test": "jest --maxWorkers=1",
22
22
  "lint": "eslint \"src/**/*.{js,ts,tsx}\"",
23
- "format": "prettier --write \"src/**/*.{js,ts,tsx}\""
23
+ "format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
24
+ "document": "api-extractor run --local"
24
25
  },
25
26
  "dependencies": {
26
- "@uniformdev/canvas": "18.17.1-alpha.13+77f2eaabc",
27
- "@uniformdev/context": "18.17.1-alpha.13+77f2eaabc",
28
- "@uniformdev/context-react": "18.17.1-alpha.13+77f2eaabc"
27
+ "@uniformdev/canvas": "18.19.0",
28
+ "@uniformdev/context": "18.19.0",
29
+ "@uniformdev/context-react": "18.19.0"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "react": ">= 16 || 17 || 18",
@@ -42,5 +43,5 @@
42
43
  "publishConfig": {
43
44
  "access": "public"
44
45
  },
45
- "gitHead": "77f2eaabc380a8251c040f8bdd21d5451351022f"
46
+ "gitHead": "bd4414826a6d38b928b5ba2ea68e58160b784562"
46
47
  }