@dotcms/vue 26.10.26-2 → 26.10.26-2-next.2946
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/index.js +13 -14
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as ee, isRef as ce, isReactive as ie, toRaw as j, shallowRef as ue, toValue as L, watch as V, onMounted as S, onBeforeUnmount as
|
|
1
|
+
import { inject as ee, isRef as ce, isReactive as ie, toRaw as j, shallowRef as ue, toValue as L, watch as V, onMounted as S, onBeforeUnmount as W, ref as w, computed as c, defineComponent as p, unref as k, renderSlot as N, createCommentVNode as T, provide as de, openBlock as r, createElementBlock as u, createElementVNode as y, createTextVNode as g, normalizeStyle as M, toDisplayString as O, mergeProps as $, Fragment as E, createBlock as f, resolveDynamicComponent as D, normalizeProps as R, getCurrentInstance as me, renderList as h, normalizeClass as K, markRaw as te, useSlots as pe, createVNode as b, withCtx as B, resolveComponent as ne } from "vue";
|
|
2
2
|
import { createDotCMSClient as ve } from "@dotcms/client";
|
|
3
3
|
import { UVEEventType as fe, UVE_MODE as U, DotCMSUVEAction as z } from "@dotcms/types";
|
|
4
4
|
import { createUVESubscription as ye, getUVEState as A, initUVE as _e, updateNavigation as ge, sendMessageToUVE as X } from "@dotcms/uve";
|
|
@@ -71,7 +71,7 @@ function tn(t) {
|
|
|
71
71
|
e.value = s;
|
|
72
72
|
}
|
|
73
73
|
));
|
|
74
|
-
}),
|
|
74
|
+
}), W(() => {
|
|
75
75
|
n?.(), a?.();
|
|
76
76
|
}), e;
|
|
77
77
|
}
|
|
@@ -146,7 +146,7 @@ function Ge() {
|
|
|
146
146
|
};
|
|
147
147
|
return S(() => {
|
|
148
148
|
t.value = Q(), window.addEventListener(J, e);
|
|
149
|
-
}),
|
|
149
|
+
}), W(() => {
|
|
150
150
|
window.removeEventListener(J, e);
|
|
151
151
|
}), t;
|
|
152
152
|
}
|
|
@@ -172,7 +172,7 @@ const je = /* @__PURE__ */ p({
|
|
|
172
172
|
style: M(k(oe))
|
|
173
173
|
}, " This container with identifier " + O(t.identifier) + " was not found. ", 5)) : T("", !0);
|
|
174
174
|
}
|
|
175
|
-
}),
|
|
175
|
+
}), We = /* @__PURE__ */ p({
|
|
176
176
|
inheritAttrs: !1,
|
|
177
177
|
__name: "EmptyContainer",
|
|
178
178
|
setup(t) {
|
|
@@ -185,7 +185,7 @@ const je = /* @__PURE__ */ p({
|
|
|
185
185
|
])], 16)) : T("", !0);
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
|
-
function
|
|
188
|
+
function Ke(t) {
|
|
189
189
|
const e = w(!1);
|
|
190
190
|
return S(() => {
|
|
191
191
|
const n = t()?.getBoundingClientRect().height ?? 0;
|
|
@@ -218,7 +218,7 @@ const qe = "dotcms-contentlet", ze = {
|
|
|
218
218
|
container: {}
|
|
219
219
|
},
|
|
220
220
|
setup(t) {
|
|
221
|
-
const e = t, n = x(), a = c(() => n.value.isDevMode), o = me(), s =
|
|
221
|
+
const e = t, n = x(), a = c(() => n.value.isDevMode), o = me(), s = Ke(
|
|
222
222
|
() => o?.proxy?.$el
|
|
223
223
|
), l = c(() => n.value.isDevMode ? {
|
|
224
224
|
...Ee(e.contentlet, e.container),
|
|
@@ -256,7 +256,7 @@ const qe = "dotcms-contentlet", ze = {
|
|
|
256
256
|
), i = c(
|
|
257
257
|
() => n.value.isDevMode ? JSON.stringify(a.value) : ""
|
|
258
258
|
);
|
|
259
|
-
return (v, d) => a.value ? s.value ? (r(), f(
|
|
259
|
+
return (v, d) => a.value ? s.value ? (r(), f(We, R($({ key: 1 }, l.value)), null, 16)) : (r(), u("div", R($({ key: 2 }, l.value)), [
|
|
260
260
|
(r(!0), u(E, null, h(o.value, (_) => (r(), f(Qe, {
|
|
261
261
|
key: _.identifier,
|
|
262
262
|
contentlet: _,
|
|
@@ -282,7 +282,7 @@ const qe = "dotcms-contentlet", ze = {
|
|
|
282
282
|
style: M(n.value)
|
|
283
283
|
}, [
|
|
284
284
|
y("div", {
|
|
285
|
-
class:
|
|
285
|
+
class: K(t.column.styleClass)
|
|
286
286
|
}, [
|
|
287
287
|
(r(!0), u(E, null, h(t.column.containers, (s) => (r(), f(Je, {
|
|
288
288
|
key: `${s.identifier}-${s.uuid}`,
|
|
@@ -305,7 +305,7 @@ const qe = "dotcms-contentlet", ze = {
|
|
|
305
305
|
};
|
|
306
306
|
return (s, l) => (r(), u("div", {
|
|
307
307
|
id: a.value,
|
|
308
|
-
class:
|
|
308
|
+
class: K(n.value)
|
|
309
309
|
}, [
|
|
310
310
|
y("div", {
|
|
311
311
|
class: "dotcms-row",
|
|
@@ -356,9 +356,7 @@ const qe = "dotcms-contentlet", ze = {
|
|
|
356
356
|
}, null, 8, ["row", "index"]))), 128)) : (r(), f(Fe, { key: 1 }));
|
|
357
357
|
}
|
|
358
358
|
}), Y = {
|
|
359
|
-
...we
|
|
360
|
-
licenseKey: "gpl"
|
|
361
|
-
// Self-hosted GPL license.
|
|
359
|
+
...we
|
|
362
360
|
}, nt = {
|
|
363
361
|
full: {
|
|
364
362
|
...Y,
|
|
@@ -438,11 +436,12 @@ const qe = "dotcms-contentlet", ze = {
|
|
|
438
436
|
return;
|
|
439
437
|
}
|
|
440
438
|
m?.dotCMSHost && (a.value = new URL($e, m.dotCMSHost).toString(), window.addEventListener("message", _));
|
|
441
|
-
}),
|
|
439
|
+
}), W(() => {
|
|
442
440
|
window.removeEventListener("message", _);
|
|
443
441
|
}), (m, C) => o.value ? (r(), u("div", rt, [
|
|
444
442
|
b(k(Ae), {
|
|
445
443
|
"tinymce-script-src": a.value,
|
|
444
|
+
"license-key": "gpl",
|
|
446
445
|
inline: !0,
|
|
447
446
|
init: l.value,
|
|
448
447
|
"initial-value": s.value,
|
|
@@ -922,7 +921,7 @@ const It = /* @__PURE__ */ F(At, [["render", xt]]), Rt = ["aria-label", "aria-la
|
|
|
922
921
|
{ immediate: !0 }
|
|
923
922
|
), (s, l) => o.value && t.isDevMode ? (r(), u("div", Yt, O(o.value), 1)) : o.value ? T("", !0) : (r(), u("div", {
|
|
924
923
|
key: 1,
|
|
925
|
-
class:
|
|
924
|
+
class: K(t.className),
|
|
926
925
|
style: M(t.style),
|
|
927
926
|
"data-testid": "dot-block-editor-container"
|
|
928
927
|
}, [
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/vue",
|
|
3
|
-
"version": "26.10.26-2",
|
|
3
|
+
"version": "26.10.26-2-next.2946",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"vue": ">=3.4",
|
|
6
|
-
"@dotcms/uve": "26.10.26-2",
|
|
7
|
-
"@dotcms/client": "26.10.26-2",
|
|
8
|
-
"@dotcms/types": "26.10.26-2"
|
|
6
|
+
"@dotcms/uve": "26.10.26-2-next.2946",
|
|
7
|
+
"@dotcms/client": "26.10.26-2-next.2946",
|
|
8
|
+
"@dotcms/types": "26.10.26-2-next.2946"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@tinymce/tinymce-vue": "^6.1.0"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@dotcms/types": "26.10.26-2"
|
|
14
|
+
"@dotcms/types": "26.10.26-2-next.2946"
|
|
15
15
|
},
|
|
16
16
|
"description": "Official Vue components library to render a dotCMS page.",
|
|
17
17
|
"repository": {
|