@uniformdev/canvas-vue 18.2.0 → 18.2.2
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 +75 -1
- package/dist/index.esm.js +2 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +2 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -401,6 +401,80 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
|
|
|
401
401
|
}>;
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
+
/** @deprecated use useUniformContextualEditing instead */
|
|
405
|
+
declare const useContextualEditing: ({ initialCompositionValue, enhance, }: UseUniformContextualEditingProps) => {
|
|
406
|
+
composition: vue_demi.ComputedRef<{
|
|
407
|
+
type: string;
|
|
408
|
+
parameters?: {
|
|
409
|
+
[key: string]: {
|
|
410
|
+
value: unknown;
|
|
411
|
+
type: string;
|
|
412
|
+
connectedData?: {
|
|
413
|
+
pointer: string;
|
|
414
|
+
syntax: "jptr";
|
|
415
|
+
required?: boolean | undefined;
|
|
416
|
+
} | undefined;
|
|
417
|
+
};
|
|
418
|
+
} | undefined;
|
|
419
|
+
variant?: string | undefined;
|
|
420
|
+
slots?: {
|
|
421
|
+
[key: string]: {
|
|
422
|
+
type: string;
|
|
423
|
+
parameters?: {
|
|
424
|
+
[key: string]: {
|
|
425
|
+
value: unknown;
|
|
426
|
+
type: string;
|
|
427
|
+
connectedData?: {
|
|
428
|
+
pointer: string;
|
|
429
|
+
syntax: "jptr";
|
|
430
|
+
required?: boolean | undefined;
|
|
431
|
+
} | undefined;
|
|
432
|
+
};
|
|
433
|
+
} | undefined;
|
|
434
|
+
variant?: string | undefined;
|
|
435
|
+
slots?: {
|
|
436
|
+
[key: string]: any[];
|
|
437
|
+
} | undefined;
|
|
438
|
+
_id?: string | undefined;
|
|
439
|
+
_pattern?: string | undefined;
|
|
440
|
+
_dataResources?: {
|
|
441
|
+
[key: string]: {
|
|
442
|
+
type: string;
|
|
443
|
+
isPatternParameter?: boolean | undefined;
|
|
444
|
+
variables?: {
|
|
445
|
+
[key: string]: string;
|
|
446
|
+
} | undefined;
|
|
447
|
+
};
|
|
448
|
+
} | undefined;
|
|
449
|
+
_patternDataResources?: {
|
|
450
|
+
[key: string]: {
|
|
451
|
+
type: string;
|
|
452
|
+
isPatternParameter?: boolean | undefined;
|
|
453
|
+
variables?: {
|
|
454
|
+
[key: string]: string;
|
|
455
|
+
} | undefined;
|
|
456
|
+
};
|
|
457
|
+
} | undefined;
|
|
458
|
+
_patternError?: "NOTFOUND" | "CYCLIC" | undefined;
|
|
459
|
+
}[];
|
|
460
|
+
} | undefined;
|
|
461
|
+
_id: string;
|
|
462
|
+
_slug?: string | null | undefined;
|
|
463
|
+
_name: string;
|
|
464
|
+
_dataResources?: {
|
|
465
|
+
[key: string]: {
|
|
466
|
+
type: string;
|
|
467
|
+
isPatternParameter?: boolean | undefined;
|
|
468
|
+
variables?: {
|
|
469
|
+
[key: string]: string;
|
|
470
|
+
} | undefined;
|
|
471
|
+
};
|
|
472
|
+
} | undefined;
|
|
473
|
+
}>;
|
|
474
|
+
};
|
|
475
|
+
/** @deprecated use UseUniformContextualEditingProps instead */
|
|
476
|
+
type UseContextualEditingProps = UseUniformContextualEditingProps;
|
|
477
|
+
|
|
404
478
|
type UniformCompositionProps = UniformComponentProps & {
|
|
405
479
|
/** The composition data */
|
|
406
480
|
data: RootComponentInstance;
|
|
@@ -1634,4 +1708,4 @@ declare const globalCompositionEnhancerInjectionKey = "uniformGlobalCompositionE
|
|
|
1634
1708
|
*/
|
|
1635
1709
|
declare function convertComponentToProps<T = unknown>(component: ComponentInstance): ComponentProps<T>;
|
|
1636
1710
|
|
|
1637
|
-
export { ComponentProps, Composition, CompositionProps, DefaultNotImplementedComponent, DefaultNotImplementedComponentProps, PersonalizeComponent, ResolveRenderer, SlotComponentProps, SlotContent, TestComponent, UniformComponent, UniformComponentProps, UniformComposition, UniformCompositionProps, UniformSlot, UniformSlotProps, UseCompositionEventEffectOptions, UseUniformContextualEditingProps, convertComponentToProps, createApiEnhancer, globalCompositionEnhancerInjectionKey, useCompositionEventEffect, useUniformContextualEditing, useUniformCurrentComponent, useUniformCurrentComposition };
|
|
1711
|
+
export { ComponentProps, Composition, CompositionProps, DefaultNotImplementedComponent, DefaultNotImplementedComponentProps, PersonalizeComponent, ResolveRenderer, SlotComponentProps, SlotContent, TestComponent, UniformComponent, UniformComponentProps, UniformComposition, UniformCompositionProps, UniformSlot, UniformSlotProps, UseCompositionEventEffectOptions, UseContextualEditingProps, UseUniformContextualEditingProps, convertComponentToProps, createApiEnhancer, globalCompositionEnhancerInjectionKey, useCompositionEventEffect, useContextualEditing, useUniformContextualEditing, useUniformCurrentComponent, useUniformCurrentComposition };
|
package/dist/index.esm.js
CHANGED
|
@@ -242,6 +242,7 @@ function isInContextEditingMode() {
|
|
|
242
242
|
);
|
|
243
243
|
return isOpenedByInContextEditor && isAllowlistedReferrer;
|
|
244
244
|
}
|
|
245
|
+
var useContextualEditing = useUniformContextualEditing;
|
|
245
246
|
|
|
246
247
|
// src/utils/constants.ts
|
|
247
248
|
var globalCompositionEnhancerInjectionKey = "uniformGlobalCompositionEnhancer";
|
|
@@ -503,6 +504,7 @@ export {
|
|
|
503
504
|
createUniformApiEnhancer,
|
|
504
505
|
globalCompositionEnhancerInjectionKey,
|
|
505
506
|
useCompositionEventEffect,
|
|
507
|
+
useContextualEditing,
|
|
506
508
|
useUniformContextualEditing,
|
|
507
509
|
useUniformCurrentComponent,
|
|
508
510
|
useUniformCurrentComposition
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __export(src_exports, {
|
|
|
31
31
|
createUniformApiEnhancer: () => import_canvas3.createUniformApiEnhancer,
|
|
32
32
|
globalCompositionEnhancerInjectionKey: () => globalCompositionEnhancerInjectionKey,
|
|
33
33
|
useCompositionEventEffect: () => useCompositionEventEffect,
|
|
34
|
+
useContextualEditing: () => useContextualEditing,
|
|
34
35
|
useUniformContextualEditing: () => useUniformContextualEditing,
|
|
35
36
|
useUniformCurrentComponent: () => useUniformCurrentComponent,
|
|
36
37
|
useUniformCurrentComposition: () => useUniformCurrentComposition
|
|
@@ -260,6 +261,7 @@ function isInContextEditingMode() {
|
|
|
260
261
|
);
|
|
261
262
|
return isOpenedByInContextEditor && isAllowlistedReferrer;
|
|
262
263
|
}
|
|
264
|
+
var useContextualEditing = useUniformContextualEditing;
|
|
263
265
|
|
|
264
266
|
// src/utils/constants.ts
|
|
265
267
|
var globalCompositionEnhancerInjectionKey = "uniformGlobalCompositionEnhancer";
|
|
@@ -511,6 +513,7 @@ async function useCompositionEventEffect({
|
|
|
511
513
|
createUniformApiEnhancer,
|
|
512
514
|
globalCompositionEnhancerInjectionKey,
|
|
513
515
|
useCompositionEventEffect,
|
|
516
|
+
useContextualEditing,
|
|
514
517
|
useUniformContextualEditing,
|
|
515
518
|
useUniformCurrentComponent,
|
|
516
519
|
useUniformCurrentComposition
|
package/dist/index.mjs
CHANGED
|
@@ -242,6 +242,7 @@ function isInContextEditingMode() {
|
|
|
242
242
|
);
|
|
243
243
|
return isOpenedByInContextEditor && isAllowlistedReferrer;
|
|
244
244
|
}
|
|
245
|
+
var useContextualEditing = useUniformContextualEditing;
|
|
245
246
|
|
|
246
247
|
// src/utils/constants.ts
|
|
247
248
|
var globalCompositionEnhancerInjectionKey = "uniformGlobalCompositionEnhancer";
|
|
@@ -503,6 +504,7 @@ export {
|
|
|
503
504
|
createUniformApiEnhancer,
|
|
504
505
|
globalCompositionEnhancerInjectionKey,
|
|
505
506
|
useCompositionEventEffect,
|
|
507
|
+
useContextualEditing,
|
|
506
508
|
useUniformContextualEditing,
|
|
507
509
|
useUniformCurrentComponent,
|
|
508
510
|
useUniformCurrentComposition
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-vue",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.2",
|
|
4
4
|
"description": "Vue SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\""
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@uniformdev/canvas": "18.2.
|
|
25
|
+
"@uniformdev/canvas": "18.2.2",
|
|
26
26
|
"@vue/test-utils": "2.2.7",
|
|
27
27
|
"vue-demi": "^0.13.11"
|
|
28
28
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@testing-library/vue": "6.6.1",
|
|
41
41
|
"@types/uuid": "9.0.0",
|
|
42
|
-
"@uniformdev/context-vue": "18.2.
|
|
42
|
+
"@uniformdev/context-vue": "18.2.2",
|
|
43
43
|
"@vue/server-test-utils": "1.3.0",
|
|
44
44
|
"vue": "3.2.45",
|
|
45
45
|
"vue-server-renderer": "2.7.14",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"last 2 versions",
|
|
63
63
|
"not dead"
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "eb69f934f799579fdd71d5dc7dba0375bbb5c265"
|
|
66
66
|
}
|