@uniformdev/canvas-react 18.18.1-alpha.12 → 18.19.1-alpha.7
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 +120 -0
- package/dist/index.esm.js +4 -1
- package/dist/index.js +8 -1
- package/dist/index.mjs +4 -1
- package/package.json +7 -6
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
|
@@ -307,7 +307,10 @@ function UniformComponent({
|
|
|
307
307
|
data,
|
|
308
308
|
hasParentLayout: Boolean(parentData.data)
|
|
309
309
|
});
|
|
310
|
-
return /* @__PURE__ */ React4.createElement(UniformComponentContext.Provider, { value: contextValue }, contextContextProviderPresent ?
|
|
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);
|
|
311
314
|
}
|
|
312
315
|
function resolveChildren({
|
|
313
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
|
));
|
|
@@ -345,7 +349,10 @@ function UniformComponent({
|
|
|
345
349
|
data,
|
|
346
350
|
hasParentLayout: Boolean(parentData.data)
|
|
347
351
|
});
|
|
348
|
-
return /* @__PURE__ */ import_react3.default.createElement(UniformComponentContext.Provider, { value: contextValue }, contextContextProviderPresent ?
|
|
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);
|
|
349
356
|
}
|
|
350
357
|
function resolveChildren({
|
|
351
358
|
children,
|
package/dist/index.mjs
CHANGED
|
@@ -307,7 +307,10 @@ function UniformComponent({
|
|
|
307
307
|
data,
|
|
308
308
|
hasParentLayout: Boolean(parentData.data)
|
|
309
309
|
});
|
|
310
|
-
return /* @__PURE__ */ React4.createElement(UniformComponentContext.Provider, { value: contextValue }, contextContextProviderPresent ?
|
|
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);
|
|
311
314
|
}
|
|
312
315
|
function resolveChildren({
|
|
313
316
|
children,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-react",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.19.1-alpha.7+b4918b2f5",
|
|
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.
|
|
27
|
-
"@uniformdev/context": "18.
|
|
28
|
-
"@uniformdev/context-react": "18.
|
|
27
|
+
"@uniformdev/canvas": "18.19.1-alpha.7+b4918b2f5",
|
|
28
|
+
"@uniformdev/context": "18.19.1-alpha.7+b4918b2f5",
|
|
29
|
+
"@uniformdev/context-react": "18.19.1-alpha.7+b4918b2f5"
|
|
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": "
|
|
46
|
+
"gitHead": "b4918b2f547ebb0b889528bbbacbc930cbb66694"
|
|
46
47
|
}
|