@uniformdev/canvas-vue 20.6.2-alpha.11 → 20.7.1-alpha.14
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 +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +4 -7
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -7
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -337,9 +337,6 @@ var ContextualEditingComponentWrapper = defineComponent3({
|
|
|
337
337
|
|
|
338
338
|
// src/components/UniformSlot.ts
|
|
339
339
|
import {
|
|
340
|
-
CANVAS_PERSONALIZATION_ALGORITHM_PARAM,
|
|
341
|
-
CANVAS_PERSONALIZATION_EVENT_NAME_PARAM,
|
|
342
|
-
CANVAS_PERSONALIZATION_TAKE_PARAM,
|
|
343
340
|
CANVAS_PERSONALIZE_SLOT,
|
|
344
341
|
CANVAS_PERSONALIZE_TYPE,
|
|
345
342
|
CANVAS_TEST_SLOT,
|
|
@@ -415,16 +412,16 @@ var UniformSlot = defineComponent4({
|
|
|
415
412
|
}
|
|
416
413
|
});
|
|
417
414
|
function renderPersonalizeComponent(component, resolveRenderer) {
|
|
418
|
-
var _a, _b, _c, _d, _e, _f
|
|
415
|
+
var _a, _b, _c, _d, _e, _f;
|
|
419
416
|
const parameters = component == null ? void 0 : component.parameters;
|
|
420
417
|
const processedVariants = mapSlotToPersonalizedVariations((_a = component.slots) == null ? void 0 : _a.pz);
|
|
421
|
-
const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b
|
|
418
|
+
const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b.trackingEventName) == null ? void 0 : _c.value) != null ? _d : "Untitled Personalization";
|
|
422
419
|
return h4(Personalize, {
|
|
423
420
|
name,
|
|
421
|
+
// TODO: Fix the `as unknown`
|
|
424
422
|
component: (variant) => resolveRenderer(variant),
|
|
425
423
|
variations: processedVariants,
|
|
426
|
-
count: Number((_f = (_e = parameters == null ? void 0 : parameters
|
|
427
|
-
algorithm: (_g = parameters == null ? void 0 : parameters[CANVAS_PERSONALIZATION_ALGORITHM_PARAM]) == null ? void 0 : _g.value
|
|
424
|
+
count: Number((_f = (_e = parameters == null ? void 0 : parameters.count) == null ? void 0 : _e.value) != null ? _f : 1)
|
|
428
425
|
});
|
|
429
426
|
}
|
|
430
427
|
function renderTestComponent(component, resolveRenderer) {
|
package/dist/index.js
CHANGED
|
@@ -435,16 +435,16 @@ var UniformSlot = (0, import_vue5.defineComponent)({
|
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
function renderPersonalizeComponent(component, resolveRenderer) {
|
|
438
|
-
var _a, _b, _c, _d, _e, _f
|
|
438
|
+
var _a, _b, _c, _d, _e, _f;
|
|
439
439
|
const parameters = component == null ? void 0 : component.parameters;
|
|
440
440
|
const processedVariants = (0, import_canvas5.mapSlotToPersonalizedVariations)((_a = component.slots) == null ? void 0 : _a.pz);
|
|
441
|
-
const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b
|
|
441
|
+
const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b.trackingEventName) == null ? void 0 : _c.value) != null ? _d : "Untitled Personalization";
|
|
442
442
|
return (0, import_vue5.h)(import_context_vue2.Personalize, {
|
|
443
443
|
name,
|
|
444
|
+
// TODO: Fix the `as unknown`
|
|
444
445
|
component: (variant) => resolveRenderer(variant),
|
|
445
446
|
variations: processedVariants,
|
|
446
|
-
count: Number((_f = (_e = parameters == null ? void 0 : parameters
|
|
447
|
-
algorithm: (_g = parameters == null ? void 0 : parameters[import_canvas5.CANVAS_PERSONALIZATION_ALGORITHM_PARAM]) == null ? void 0 : _g.value
|
|
447
|
+
count: Number((_f = (_e = parameters == null ? void 0 : parameters.count) == null ? void 0 : _e.value) != null ? _f : 1)
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
450
|
function renderTestComponent(component, resolveRenderer) {
|
package/dist/index.mjs
CHANGED
|
@@ -337,9 +337,6 @@ var ContextualEditingComponentWrapper = defineComponent3({
|
|
|
337
337
|
|
|
338
338
|
// src/components/UniformSlot.ts
|
|
339
339
|
import {
|
|
340
|
-
CANVAS_PERSONALIZATION_ALGORITHM_PARAM,
|
|
341
|
-
CANVAS_PERSONALIZATION_EVENT_NAME_PARAM,
|
|
342
|
-
CANVAS_PERSONALIZATION_TAKE_PARAM,
|
|
343
340
|
CANVAS_PERSONALIZE_SLOT,
|
|
344
341
|
CANVAS_PERSONALIZE_TYPE,
|
|
345
342
|
CANVAS_TEST_SLOT,
|
|
@@ -415,16 +412,16 @@ var UniformSlot = defineComponent4({
|
|
|
415
412
|
}
|
|
416
413
|
});
|
|
417
414
|
function renderPersonalizeComponent(component, resolveRenderer) {
|
|
418
|
-
var _a, _b, _c, _d, _e, _f
|
|
415
|
+
var _a, _b, _c, _d, _e, _f;
|
|
419
416
|
const parameters = component == null ? void 0 : component.parameters;
|
|
420
417
|
const processedVariants = mapSlotToPersonalizedVariations((_a = component.slots) == null ? void 0 : _a.pz);
|
|
421
|
-
const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b
|
|
418
|
+
const name = (_d = (_c = (_b = component.parameters) == null ? void 0 : _b.trackingEventName) == null ? void 0 : _c.value) != null ? _d : "Untitled Personalization";
|
|
422
419
|
return h4(Personalize, {
|
|
423
420
|
name,
|
|
421
|
+
// TODO: Fix the `as unknown`
|
|
424
422
|
component: (variant) => resolveRenderer(variant),
|
|
425
423
|
variations: processedVariants,
|
|
426
|
-
count: Number((_f = (_e = parameters == null ? void 0 : parameters
|
|
427
|
-
algorithm: (_g = parameters == null ? void 0 : parameters[CANVAS_PERSONALIZATION_ALGORITHM_PARAM]) == null ? void 0 : _g.value
|
|
424
|
+
count: Number((_f = (_e = parameters == null ? void 0 : parameters.count) == null ? void 0 : _e.value) != null ? _f : 1)
|
|
428
425
|
});
|
|
429
426
|
}
|
|
430
427
|
function renderTestComponent(component, resolveRenderer) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-vue",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.7.1-alpha.14+60f5dc825c",
|
|
4
4
|
"description": "Vue SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"document": "api-extractor run --local"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@uniformdev/canvas": "20.
|
|
34
|
-
"@uniformdev/context-vue": "20.
|
|
35
|
-
"@uniformdev/richtext": "20.
|
|
33
|
+
"@uniformdev/canvas": "20.7.1-alpha.14+60f5dc825c",
|
|
34
|
+
"@uniformdev/context-vue": "20.7.1-alpha.14+60f5dc825c",
|
|
35
|
+
"@uniformdev/richtext": "20.7.1-alpha.14+60f5dc825c"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"vue": ">=3.0.0"
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "60f5dc825c94de66d7593877448296c598c3c10d"
|
|
68
68
|
}
|