@dotcms/vue 26.8.14-1-next.2533 → 26.8.19-1

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 CHANGED
@@ -1,22 +1,22 @@
1
- import { inject as ee, isRef as le, isReactive as ie, toRaw as j, shallowRef as ue, toValue as L, watch as V, onMounted as b, onBeforeUnmount as K, ref as N, computed as c, defineComponent as p, unref as E, renderSlot as S, createCommentVNode as T, provide as de, openBlock as r, createElementBlock as i, createElementVNode as y, createTextVNode as g, normalizeStyle as w, toDisplayString as O, mergeProps as $, Fragment as k, createBlock as f, resolveDynamicComponent as D, normalizeProps as R, getCurrentInstance as me, renderList as M, normalizeClass as W, markRaw as te, useSlots as pe, createVNode as h, withCtx as B, resolveComponent as ne } from "vue";
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 K, 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 W, 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";
5
- import { registerStyleEditorSchemas as Ce, isDotAnalyticsActive as Q, ANALYTICS_READY_EVENT as J, DEVELOPMENT_MODE as Ee, EMPTY_CONTAINER_STYLE_REACT as oe, getDotContentletAttributes as ke, getAnalyticsContentletAttributes as De, CUSTOM_NO_COMPONENT as Te, getContainersData as Me, getContentletsInContainer as he, getDotContainerAttributes as be, combineClasses as Se, DOT_SECTION_ID_PREFIX as Ne, __DEFAULT_TINYMCE_CONFIG__ as we, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ as H, __TINYMCE_PATH_ON_DOTCMS__ as $e, isValidBlocks as Oe } from "@dotcms/uve/internal";
5
+ import { registerStyleEditorSchemas as Ce, isDotAnalyticsActive as Q, ANALYTICS_READY_EVENT as J, DEVELOPMENT_MODE as ke, EMPTY_CONTAINER_STYLE_REACT as oe, getDotContentletAttributes as Ee, getAnalyticsContentletAttributes as De, CUSTOM_NO_COMPONENT as Te, getContainersData as Me, getContentletsInContainer as he, getDotContainerAttributes as be, combineClasses as Se, DOT_SECTION_ID_PREFIX as Ne, __DEFAULT_TINYMCE_CONFIG__ as we, __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ as H, __TINYMCE_PATH_ON_DOTCMS__ as $e, isValidBlocks as Oe } from "@dotcms/uve/internal";
6
6
  import Ae from "@tinymce/tinymce-vue";
7
7
  import { __DOTCMS_UVE_EVENT__ as xe, BlockEditorDefaultBlocks as Ie } from "@dotcms/types/internal";
8
- const se = /* @__PURE__ */ Symbol("DotCMSClient");
9
- function Qt(t) {
8
+ const re = /* @__PURE__ */ Symbol("DotCMSClient");
9
+ function Zt(t) {
10
10
  const e = ve(t);
11
11
  return {
12
12
  client: e,
13
13
  install(n) {
14
- n.provide(se, e);
14
+ n.provide(re, e);
15
15
  }
16
16
  };
17
17
  }
18
- function Jt() {
19
- const t = ee(se, null);
18
+ function en() {
19
+ const t = ee(re, null);
20
20
  if (!t)
21
21
  throw new Error(
22
22
  "[useDotCMSClient] No dotCMS client found. Did you install the plugin with `app.use(createDotCMSVue({ ... }))`?"
@@ -25,27 +25,27 @@ function Jt() {
25
25
  }
26
26
  function Re(t) {
27
27
  const e = /* @__PURE__ */ new WeakMap(), n = (a) => {
28
- const o = le(a) ? a.value : ie(a) ? j(a) : a;
28
+ const o = ce(a) ? a.value : ie(a) ? j(a) : a;
29
29
  if (o === null || typeof o != "object")
30
30
  return o;
31
31
  if (e.has(o))
32
32
  return e.get(o);
33
33
  if (Array.isArray(o)) {
34
- const d = [];
35
- return e.set(o, d), o.forEach((v) => d.push(n(v))), d;
34
+ const i = [];
35
+ return e.set(o, i), o.forEach((v) => i.push(n(v))), i;
36
36
  }
37
37
  const s = Object.getPrototypeOf(o);
38
38
  if (s !== Object.prototype && s !== null)
39
39
  return o;
40
40
  const l = {};
41
41
  e.set(o, l);
42
- for (const d of Object.keys(o))
43
- l[d] = n(o[d]);
42
+ for (const i of Object.keys(o))
43
+ l[i] = n(o[i]);
44
44
  return l;
45
45
  };
46
46
  return n(t);
47
47
  }
48
- function Zt(t) {
48
+ function tn(t) {
49
49
  const e = ue(L(t));
50
50
  let n, a;
51
51
  const o = (s) => {
@@ -55,8 +55,8 @@ function Zt(t) {
55
55
  console.warn("[useEditableDotCMSPage]: No page response provided");
56
56
  return;
57
57
  }
58
- const l = Re(s), d = l?.pageAsset?.page?.pageURI;
59
- ({ destroyUVESubscriptions: n } = _e(l)), d && ge(d), l.styleEditorSchemas?.length && Ce(l.styleEditorSchemas);
58
+ const l = Re(s), i = l?.pageAsset?.page?.pageURI;
59
+ ({ destroyUVESubscriptions: n } = _e(l)), i && ge(i), l.styleEditorSchemas?.length && Ce(l.styleEditorSchemas);
60
60
  };
61
61
  return V(
62
62
  () => L(t),
@@ -64,7 +64,7 @@ function Zt(t) {
64
64
  e.value = s, o(s);
65
65
  },
66
66
  { immediate: !0 }
67
- ), b(() => {
67
+ ), S(() => {
68
68
  ({ unsubscribe: a } = ye(
69
69
  fe.CONTENT_CHANGES,
70
70
  (s) => {
@@ -76,33 +76,33 @@ function Zt(t) {
76
76
  }), e;
77
77
  }
78
78
  function Le(t) {
79
- const e = N(!1);
80
- return b(() => {
79
+ const e = w(!1);
80
+ return S(() => {
81
81
  e.value = !0;
82
82
  }), c(() => e.value ? A()?.mode === L(t) : !1);
83
83
  }
84
84
  const Be = /^https?:\/\//;
85
- function en(t = "") {
85
+ function nn(t = "") {
86
86
  const e = t ? new URL(t).origin : "";
87
87
  return (n, a = {}) => {
88
88
  if (Be.test(n))
89
89
  return n;
90
- const { width: o, quality: s = 50, languageId: l = "1" } = a, d = n.includes("/dA/") ? n : `/dA/${n}`, v = o ? `/${o}w` : "";
91
- return `${e}${d}${v}/${s}q?language_id=${l}`;
90
+ const { width: o, quality: s = 50, languageId: l = "1" } = a, i = n.includes("/dA/") ? n : `/dA/${n}`, v = o ? `/${o}w` : "";
91
+ return `${e}${i}${v}/${s}q?language_id=${l}`;
92
92
  };
93
93
  }
94
- const tn = /* @__PURE__ */ p({
94
+ const on = /* @__PURE__ */ p({
95
95
  __name: "DotCMSShow",
96
96
  props: {
97
97
  when: { default: U.EDIT }
98
98
  },
99
99
  setup(t) {
100
100
  const e = t, n = Le(() => e.when);
101
- return (a, o) => E(n) ? S(a.$slots, "default", { key: 0 }) : T("", !0);
101
+ return (a, o) => k(n) ? N(a.$slots, "default", { key: 0 }) : T("", !0);
102
102
  }
103
- }), re = /* @__PURE__ */ Symbol("DotCMSPageContext");
103
+ }), se = /* @__PURE__ */ Symbol("DotCMSPageContext");
104
104
  function Ue(t) {
105
- de(re, t);
105
+ de(se, t);
106
106
  }
107
107
  const Pe = {
108
108
  pageAsset: {},
@@ -114,7 +114,7 @@ const Pe = {
114
114
  };
115
115
  function x() {
116
116
  return ee(
117
- re,
117
+ se,
118
118
  c(() => Pe)
119
119
  );
120
120
  }
@@ -126,9 +126,9 @@ const Ve = {
126
126
  __name: "ErrorMessage",
127
127
  setup(t) {
128
128
  const e = x(), n = c(() => e.value.isDevMode);
129
- return b(() => {
129
+ return S(() => {
130
130
  console.warn("Missing required layout.body property in page");
131
- }), (a, o) => n.value ? (r(), i("div", Ve, [...o[0] || (o[0] = [
131
+ }), (a, o) => n.value ? (r(), u("div", Ve, [...o[0] || (o[0] = [
132
132
  y("p", { style: { margin: "0 0 0.5rem", color: "#666" } }, [
133
133
  g(" The "),
134
134
  y("code", null, "page"),
@@ -141,10 +141,10 @@ const Ve = {
141
141
  }
142
142
  }), Z = "contentlet-";
143
143
  function Ge() {
144
- const t = N(!1), e = () => {
144
+ const t = w(!1), e = () => {
145
145
  t.value = Q();
146
146
  };
147
- return b(() => {
147
+ return S(() => {
148
148
  t.value = Q(), window.addEventListener(J, e);
149
149
  }), K(() => {
150
150
  window.removeEventListener(J, e);
@@ -152,7 +152,7 @@ function Ge() {
152
152
  }
153
153
  function He(t) {
154
154
  const e = A()?.mode;
155
- return e ? e === U.EDIT : t === Ee;
155
+ return e ? e === U.EDIT : t === ke;
156
156
  }
157
157
  function Ye(t) {
158
158
  return c(() => He(L(t)));
@@ -164,12 +164,12 @@ const je = /* @__PURE__ */ p({
164
164
  },
165
165
  setup(t) {
166
166
  const e = t, n = x(), a = c(() => n.value.isDevMode);
167
- return b(() => {
167
+ return S(() => {
168
168
  a.value && console.error(`Container with identifier ${e.identifier} not found`);
169
- }), (o, s) => a.value ? (r(), i("div", {
169
+ }), (o, s) => a.value ? (r(), u("div", {
170
170
  key: 0,
171
171
  "data-testid": "container-not-found",
172
- style: w(E(oe))
172
+ style: M(k(oe))
173
173
  }, " This container with identifier " + O(t.identifier) + " was not found. ", 5)) : T("", !0);
174
174
  }
175
175
  }), Ke = /* @__PURE__ */ p({
@@ -177,7 +177,7 @@ const je = /* @__PURE__ */ p({
177
177
  __name: "EmptyContainer",
178
178
  setup(t) {
179
179
  const e = x(), n = c(() => e.value.isDevMode);
180
- return (a, o) => n.value ? (r(), i("div", $({ key: 0 }, a.$attrs, { style: E(oe) }), [...o[0] || (o[0] = [
180
+ return (a, o) => n.value ? (r(), u("div", $({ key: 0 }, a.$attrs, { style: k(oe) }), [...o[0] || (o[0] = [
181
181
  y("span", {
182
182
  "data-testid": "empty-container-message",
183
183
  "data-dot-object": "empty-content"
@@ -186,8 +186,8 @@ const je = /* @__PURE__ */ p({
186
186
  }
187
187
  });
188
188
  function We(t) {
189
- const e = N(!1);
190
- return b(() => {
189
+ const e = w(!1);
190
+ return S(() => {
191
191
  const n = t()?.getBoundingClientRect().height ?? 0;
192
192
  e.value = n > 0;
193
193
  }), e;
@@ -203,8 +203,8 @@ const qe = "dotcms-contentlet", ze = {
203
203
  },
204
204
  setup(t) {
205
205
  const e = t, n = x(), a = c(() => n.value.isDevMode), o = c(() => !!e.userNoComponent);
206
- return (s, l) => a.value ? (r(), i(k, { key: 0 }, [
207
- o.value ? (r(), f(D(t.userNoComponent), R($({ key: 0 }, t.contentlet)), null, 16)) : (r(), i("div", ze, [
206
+ return (s, l) => a.value ? (r(), u(E, { key: 0 }, [
207
+ o.value ? (r(), f(D(t.userNoComponent), R($({ key: 0 }, t.contentlet)), null, 16)) : (r(), u("div", ze, [
208
208
  l[0] || (l[0] = g(" No Component for ", -1)),
209
209
  y("strong", null, O(t.contentlet.contentType), 1),
210
210
  l[1] || (l[1] = g(" . ", -1))
@@ -221,24 +221,24 @@ const qe = "dotcms-contentlet", ze = {
221
221
  const e = t, n = x(), a = c(() => n.value.isDevMode), o = me(), s = We(
222
222
  () => o?.proxy?.$el
223
223
  ), l = c(() => n.value.isDevMode ? {
224
- ...ke(e.contentlet, e.container),
224
+ ...Ee(e.contentlet, e.container),
225
225
  "data-dot-object": "contentlet"
226
- } : n.value.isAnalyticsActive ? De(e.contentlet) : {}), d = c(
226
+ } : n.value.isAnalyticsActive ? De(e.contentlet) : {}), i = c(
227
227
  () => a.value ? { minHeight: s.value ? void 0 : "4rem" } : {}
228
228
  ), v = c(() => {
229
229
  const m = e.contentlet?.identifier, C = m ? n.value.slots?.[m] : void 0;
230
230
  if (C)
231
231
  return () => C({ contentlet: e.contentlet });
232
- }), u = c(
232
+ }), d = c(
233
233
  () => n.value.userComponents[e.contentlet?.contentType]
234
234
  ), _ = c(
235
235
  () => n.value.userComponents[Te]
236
236
  );
237
- return (m, C) => (r(), i("div", $(l.value, {
238
- class: E(qe),
239
- style: d.value
237
+ return (m, C) => (r(), u("div", $(l.value, {
238
+ class: k(qe),
239
+ style: i.value
240
240
  }), [
241
- v.value ? (r(), f(D(v.value), { key: 0 })) : u.value ? (r(), f(D(u.value), R($({ key: 1 }, t.contentlet)), null, 16)) : (r(), f(Xe, {
241
+ v.value ? (r(), f(D(v.value), { key: 0 })) : d.value ? (r(), f(D(d.value), R($({ key: 1 }, t.contentlet)), null, 16)) : (r(), f(Xe, {
242
242
  key: 2,
243
243
  "user-no-component": _.value,
244
244
  contentlet: t.contentlet
@@ -253,14 +253,14 @@ const qe = "dotcms-contentlet", ze = {
253
253
  setup(t) {
254
254
  const e = t, n = x(), a = c(() => Me(n.value.pageAsset, e.container)), o = c(() => he(n.value.pageAsset, e.container)), s = c(() => o.value.length === 0), l = c(
255
255
  () => n.value.isDevMode && a.value ? be(a.value) : {}
256
- ), d = c(
256
+ ), i = c(
257
257
  () => n.value.isDevMode ? JSON.stringify(a.value) : ""
258
258
  );
259
- return (v, u) => a.value ? s.value ? (r(), f(Ke, R($({ key: 1 }, l.value)), null, 16)) : (r(), i("div", R($({ key: 2 }, l.value)), [
260
- (r(!0), i(k, null, M(o.value, (_) => (r(), f(Qe, {
259
+ return (v, d) => a.value ? s.value ? (r(), f(Ke, R($({ key: 1 }, l.value)), null, 16)) : (r(), u("div", R($({ key: 2 }, l.value)), [
260
+ (r(!0), u(E, null, h(o.value, (_) => (r(), f(Qe, {
261
261
  key: _.identifier,
262
262
  contentlet: _,
263
- container: d.value
263
+ container: i.value
264
264
  }, null, 8, ["contentlet", "container"]))), 128))
265
265
  ], 16)) : (r(), f(je, {
266
266
  key: 0,
@@ -277,14 +277,14 @@ const qe = "dotcms-contentlet", ze = {
277
277
  gridColumnStart: e.column.leftOffset,
278
278
  gridColumnEnd: e.column.leftOffset + e.column.width
279
279
  }));
280
- return (a, o) => (r(), i("div", {
280
+ return (a, o) => (r(), u("div", {
281
281
  "data-dot": "column",
282
- style: w(n.value)
282
+ style: M(n.value)
283
283
  }, [
284
284
  y("div", {
285
285
  class: W(t.column.styleClass)
286
286
  }, [
287
- (r(!0), i(k, null, M(t.column.containers, (s) => (r(), f(Je, {
287
+ (r(!0), u(E, null, h(t.column.containers, (s) => (r(), f(Je, {
288
288
  key: `${s.identifier}-${s.uuid}`,
289
289
  container: s
290
290
  }, null, 8, ["container"]))), 128))
@@ -303,7 +303,7 @@ const qe = "dotcms-contentlet", ze = {
303
303
  gridTemplateColumns: "repeat(12, 1fr)",
304
304
  gap: "1rem"
305
305
  };
306
- return (s, l) => (r(), i("div", {
306
+ return (s, l) => (r(), u("div", {
307
307
  id: a.value,
308
308
  class: W(n.value)
309
309
  }, [
@@ -312,14 +312,14 @@ const qe = "dotcms-contentlet", ze = {
312
312
  "data-dot-object": "row",
313
313
  style: o
314
314
  }, [
315
- (r(!0), i(k, null, M(t.row.columns, (d, v) => (r(), f(Ze, {
315
+ (r(!0), u(E, null, h(t.row.columns, (i, v) => (r(), f(Ze, {
316
316
  key: v,
317
- column: d
317
+ column: i
318
318
  }, null, 8, ["column"]))), 128))
319
319
  ])
320
320
  ], 10, et));
321
321
  }
322
- }), nn = /* @__PURE__ */ p({
322
+ }), rn = /* @__PURE__ */ p({
323
323
  __name: "DotCMSLayoutBody",
324
324
  props: {
325
325
  page: {},
@@ -329,12 +329,12 @@ const qe = "dotcms-contentlet", ze = {
329
329
  setup(t) {
330
330
  const e = t, n = Ye(() => e.mode), a = Ge(), o = c(() => {
331
331
  const v = {};
332
- for (const u of Object.keys(e.components))
333
- v[u] = j(e.components[u]);
332
+ for (const d of Object.keys(e.components))
333
+ v[d] = j(e.components[d]);
334
334
  return te(v);
335
335
  }), s = pe(), l = c(() => {
336
- const v = {}, u = Object.entries(s);
337
- for (const [_, m] of u)
336
+ const v = {}, d = Object.entries(s);
337
+ for (const [_, m] of d)
338
338
  m && _.startsWith(Z) && (v[_.slice(Z.length)] = m);
339
339
  return v;
340
340
  });
@@ -348,8 +348,8 @@ const qe = "dotcms-contentlet", ze = {
348
348
  slots: l.value
349
349
  }))
350
350
  );
351
- const d = c(() => e.page?.layout?.body?.rows);
352
- return (v, u) => d.value ? (r(!0), i(k, { key: 0 }, M(d.value, (_, m) => (r(), f(tt, {
351
+ const i = c(() => e.page?.layout?.body?.rows);
352
+ return (v, d) => i.value ? (r(!0), u(E, { key: 0 }, h(i.value, (_, m) => (r(), f(tt, {
353
353
  key: m,
354
354
  row: _,
355
355
  index: m + 1
@@ -372,10 +372,10 @@ const qe = "dotcms-contentlet", ze = {
372
372
  ...Y,
373
373
  ...H.minimal
374
374
  }
375
- }, ot = ["innerHTML"], st = {
375
+ }, ot = ["innerHTML"], rt = {
376
376
  key: 1,
377
377
  style: { outline: "2px solid #006ce7", borderRadius: "4px" }
378
- }, on = /* @__PURE__ */ p({
378
+ }, sn = /* @__PURE__ */ p({
379
379
  __name: "DotCMSEditableText",
380
380
  props: {
381
381
  contentlet: {},
@@ -384,14 +384,14 @@ const qe = "dotcms-contentlet", ze = {
384
384
  mode: { default: "plain" }
385
385
  },
386
386
  setup(t) {
387
- const e = t, n = N(null), a = N(""), o = N(!1), s = N(e.contentlet?.[e.fieldName] || ""), l = c(() => nt[e.mode]);
387
+ const e = t, n = w(null), a = w(""), o = w(!1), s = w(e.contentlet?.[e.fieldName] || ""), l = c(() => nt[e.mode]);
388
388
  V(
389
389
  () => [e.fieldName, e.contentlet],
390
390
  () => {
391
391
  s.value = e.contentlet?.[e.fieldName] || "", n.value?.setContent(s.value, { format: e.format });
392
392
  }
393
393
  );
394
- const d = (m, C) => {
394
+ const i = (m, C) => {
395
395
  n.value = C;
396
396
  }, v = (m) => {
397
397
  if (Number(
@@ -406,7 +406,7 @@ const qe = "dotcms-contentlet", ze = {
406
406
  dataset: { inode: I, language: G, fieldName: e.fieldName }
407
407
  }
408
408
  });
409
- }, u = () => {
409
+ }, d = () => {
410
410
  const m = n.value?.getContent({ format: e.format }) || "";
411
411
  if (!n.value?.isDirty() || m === s.value)
412
412
  return;
@@ -422,10 +422,10 @@ const qe = "dotcms-contentlet", ze = {
422
422
  const { name: C, payload: I } = m ?? {};
423
423
  if (C !== xe.UVE_COPY_CONTENTLET_INLINE_EDITING_SUCCESS)
424
424
  return;
425
- const { oldInode: G, inode: ae, fieldName: ce } = I ?? {}, q = e.contentlet.inode;
426
- (q === G || q === ae) && ce === e.fieldName && n.value?.focus();
425
+ const { oldInode: G, inode: ae, fieldName: le } = I ?? {}, q = e.contentlet.inode;
426
+ (q === G || q === ae) && le === e.fieldName && n.value?.focus();
427
427
  };
428
- return b(() => {
428
+ return S(() => {
429
429
  const m = A();
430
430
  if (o.value = m?.mode === U.EDIT && !!m?.dotCMSHost?.length, !e.contentlet || !e.fieldName) {
431
431
  console.error(
@@ -440,17 +440,17 @@ const qe = "dotcms-contentlet", ze = {
440
440
  m?.dotCMSHost && (a.value = new URL($e, m.dotCMSHost).toString(), window.addEventListener("message", _));
441
441
  }), K(() => {
442
442
  window.removeEventListener("message", _);
443
- }), (m, C) => o.value ? (r(), i("div", st, [
444
- h(E(Ae), {
443
+ }), (m, C) => o.value ? (r(), u("div", rt, [
444
+ b(k(Ae), {
445
445
  "tinymce-script-src": a.value,
446
446
  inline: !0,
447
447
  init: l.value,
448
448
  "initial-value": s.value,
449
- onInit: d,
449
+ onInit: i,
450
450
  onMousedown: v,
451
- onFocusout: u
451
+ onFocusout: d
452
452
  }, null, 8, ["tinymce-script-src", "init", "initial-value"])
453
- ])) : (r(), i("span", {
453
+ ])) : (r(), u("span", {
454
454
  key: 0,
455
455
  innerHTML: s.value
456
456
  }, null, 8, ot));
@@ -460,24 +460,24 @@ const qe = "dotcms-contentlet", ze = {
460
460
  for (const [a, o] of e)
461
461
  n[a] = o;
462
462
  return n;
463
- }, rt = {};
463
+ }, st = {};
464
464
  function at(t, e) {
465
- return r(), i("ul", null, [
466
- S(t.$slots, "default")
465
+ return r(), u("ul", null, [
466
+ N(t.$slots, "default")
467
467
  ]);
468
468
  }
469
- const ct = /* @__PURE__ */ F(rt, [["render", at]]), lt = ["data-language"], it = /* @__PURE__ */ p({
469
+ const lt = /* @__PURE__ */ F(st, [["render", at]]), ct = ["data-language"], it = /* @__PURE__ */ p({
470
470
  __name: "CodeBlock",
471
471
  props: {
472
472
  node: {}
473
473
  },
474
474
  setup(t) {
475
475
  const e = t, n = c(() => e.node?.attrs?.language || "");
476
- return (a, o) => (r(), i("pre", { "data-language": n.value }, [
476
+ return (a, o) => (r(), u("pre", { "data-language": n.value }, [
477
477
  y("code", null, [
478
- S(a.$slots, "default")
478
+ N(a.$slots, "default")
479
479
  ])
480
- ], 8, lt));
480
+ ], 8, ct));
481
481
  }
482
482
  }), ut = {
483
483
  controls: "",
@@ -489,7 +489,7 @@ const ct = /* @__PURE__ */ F(rt, [["render", at]]), lt = ["data-language"], it =
489
489
  },
490
490
  setup(t) {
491
491
  const e = t, n = c(() => e.node.attrs ?? {});
492
- return (a, o) => (r(), i("audio", ut, [
492
+ return (a, o) => (r(), u("audio", ut, [
493
493
  y("source", {
494
494
  src: n.value.src,
495
495
  type: n.value.mimeType
@@ -514,7 +514,7 @@ const ct = /* @__PURE__ */ F(rt, [["render", at]]), lt = ["data-language"], it =
514
514
  marginTop: "1rem",
515
515
  border: "1px solid #ed8936"
516
516
  }, n = { color: "#c05621" };
517
- return (a, o) => (r(), i("div", {
517
+ return (a, o) => (r(), u("div", {
518
518
  "data-testid": "no-component-provided",
519
519
  style: e
520
520
  }, [
@@ -541,14 +541,14 @@ const ct = /* @__PURE__ */ F(rt, [["render", at]]), lt = ["data-language"], it =
541
541
  isDevMode: { type: Boolean }
542
542
  },
543
543
  setup(t) {
544
- const e = (d) => `[DotCMSBlockEditorRenderer]: No matching component found for content type: ${d}. Provide a custom renderer for this content type to fix this error.`, n = t, a = c(() => n.node.attrs?.data), o = c(() => a.value?.contentType ?? "Unknown Content Type"), s = c(() => n.customRenderers?.[o.value]), l = c(() => a.value ? n.isDevMode && !s.value ? "dev-warning" : s.value ? "render" : "no-component" : "no-data");
544
+ const e = (i) => `[DotCMSBlockEditorRenderer]: No matching component found for content type: ${i}. Provide a custom renderer for this content type to fix this error.`, n = t, a = c(() => n.node.attrs?.data), o = c(() => a.value?.contentType ?? "Unknown Content Type"), s = c(() => n.customRenderers?.[o.value]), l = c(() => a.value ? n.isDevMode && !s.value ? "dev-warning" : s.value ? "render" : "no-component" : "no-data");
545
545
  return V(
546
546
  l,
547
- (d) => {
548
- d === "no-data" ? console.error(vt) : d === "no-component" && console.warn(e(o.value));
547
+ (i) => {
548
+ i === "no-data" ? console.error(vt) : i === "no-component" && console.warn(e(o.value));
549
549
  },
550
550
  { immediate: !0 }
551
- ), (d, v) => l.value === "dev-warning" ? (r(), f(pt, {
551
+ ), (i, v) => l.value === "dev-warning" ? (r(), f(pt, {
552
552
  key: 0,
553
553
  "content-type": o.value
554
554
  }, null, 8, ["content-type"])) : l.value === "render" ? (r(), f(D(s.value), {
@@ -556,36 +556,55 @@ const ct = /* @__PURE__ */ F(rt, [["render", at]]), lt = ["data-language"], it =
556
556
  node: t.node
557
557
  }, null, 8, ["node"])) : T("", !0);
558
558
  }
559
- }), yt = ["alt", "src"], _t = /* @__PURE__ */ p({
559
+ }), yt = ["href", "target", "rel"], _t = ["alt", "src"], gt = ["alt", "src"], Ct = /* @__PURE__ */ p({
560
560
  __name: "DotImage",
561
561
  props: {
562
562
  node: {}
563
563
  },
564
564
  setup(t) {
565
565
  const e = t, n = c(() => e.node.attrs ?? {}), a = c(() => {
566
- const { textWrap: s, textAlign: l } = n.value;
567
- return s === "left" ? { float: "left", width: "50%", margin: "0 1rem 1rem 0" } : s === "right" ? { float: "right", width: "50%", margin: "0 0 1rem 1rem" } : l ? { textAlign: l } : {};
566
+ const { textWrap: l, textAlign: i } = n.value;
567
+ return l === "left" ? { float: "left", width: "50%", margin: "0 1rem 1rem 0" } : l === "right" ? { float: "right", width: "50%", margin: "0 0 1rem 1rem" } : i ? { textAlign: i } : {};
568
568
  }), o = c(
569
569
  () => n.value.textWrap ? { maxWidth: "100%", height: "auto" } : void 0
570
- );
571
- return (s, l) => (r(), i("figure", {
572
- style: w(a.value)
570
+ ), s = c(() => {
571
+ const { href: l, target: i } = n.value;
572
+ return l ? {
573
+ href: l,
574
+ target: i ?? void 0,
575
+ rel: i === "_blank" ? "noopener noreferrer" : void 0
576
+ } : null;
577
+ });
578
+ return (l, i) => (r(), u("figure", {
579
+ style: M(a.value)
573
580
  }, [
574
- y("img", {
581
+ s.value ? (r(), u("a", {
582
+ key: 0,
583
+ href: s.value.href,
584
+ target: s.value.target,
585
+ rel: s.value.rel
586
+ }, [
587
+ y("img", {
588
+ alt: n.value.alt,
589
+ src: n.value.src,
590
+ style: M(o.value)
591
+ }, null, 12, _t)
592
+ ], 8, yt)) : (r(), u("img", {
593
+ key: 1,
575
594
  alt: n.value.alt,
576
595
  src: n.value.src,
577
- style: w(o.value)
578
- }, null, 12, yt)
596
+ style: M(o.value)
597
+ }, null, 12, gt))
579
598
  ], 4));
580
599
  }
581
- }), gt = ["width", "height", "poster"], Ct = ["src", "type"], Et = /* @__PURE__ */ p({
600
+ }), kt = ["width", "height", "poster"], Et = ["src", "type"], Dt = /* @__PURE__ */ p({
582
601
  __name: "DotVideo",
583
602
  props: {
584
603
  node: {}
585
604
  },
586
605
  setup(t) {
587
606
  const e = t, n = c(() => e.node.attrs ?? {}), a = c(() => n.value.data?.thumbnail);
588
- return (o, s) => (r(), i("video", {
607
+ return (o, s) => (r(), u("video", {
589
608
  controls: "",
590
609
  preload: "metadata",
591
610
  width: n.value.width,
@@ -600,13 +619,13 @@ const ct = /* @__PURE__ */ F(rt, [["render", at]]), lt = ["data-language"], it =
600
619
  y("source", {
601
620
  src: n.value.src,
602
621
  type: n.value.mimeType
603
- }, null, 8, Ct),
622
+ }, null, 8, Et),
604
623
  s[1] || (s[1] = g(" Your browser does not support the ", -1)),
605
624
  s[2] || (s[2] = y("code", null, "video", -1)),
606
625
  s[3] || (s[3] = g(" element. ", -1))
607
- ], 8, gt));
626
+ ], 8, kt));
608
627
  }
609
- }), kt = /* @__PURE__ */ p({
628
+ }), Tt = /* @__PURE__ */ p({
610
629
  __name: "GridBlock",
611
630
  props: {
612
631
  node: {},
@@ -622,18 +641,18 @@ const ct = /* @__PURE__ */ F(rt, [["render", at]]), lt = ["data-language"], it =
622
641
  gridTemplateColumns: "repeat(12, 1fr)",
623
642
  gap: "1rem"
624
643
  };
625
- return (o, s) => (r(), i("div", {
644
+ return (o, s) => (r(), u("div", {
626
645
  "data-type": "gridBlock",
627
646
  class: "grid-block",
628
647
  style: a
629
648
  }, [
630
- (r(!0), i(k, null, M(t.node.content ?? [], (l, d) => (r(), i("div", {
631
- key: `gridColumn-${d}`,
649
+ (r(!0), u(E, null, h(t.node.content ?? [], (l, i) => (r(), u("div", {
650
+ key: `gridColumn-${i}`,
632
651
  "data-type": "gridColumn",
633
652
  class: "grid-block__column",
634
- style: w({ gridColumn: `span ${n.value[d] ?? 6}` })
653
+ style: M({ gridColumn: `span ${n.value[i] ?? 6}` })
635
654
  }, [
636
- h(P, {
655
+ b(P, {
637
656
  content: l.content,
638
657
  "custom-renderers": t.customRenderers,
639
658
  "is-dev-mode": t.isDevMode
@@ -641,7 +660,7 @@ const ct = /* @__PURE__ */ F(rt, [["render", at]]), lt = ["data-language"], it =
641
660
  ], 4))), 128))
642
661
  ]));
643
662
  }
644
- }), Dt = /* @__PURE__ */ p({
663
+ }), Mt = /* @__PURE__ */ p({
645
664
  __name: "Heading",
646
665
  props: {
647
666
  node: {}
@@ -650,43 +669,43 @@ const ct = /* @__PURE__ */ F(rt, [["render", at]]), lt = ["data-language"], it =
650
669
  const e = t, n = c(() => `h${e.node?.attrs?.level || 1}`);
651
670
  return (a, o) => (r(), f(D(n.value), null, {
652
671
  default: B(() => [
653
- S(a.$slots, "default")
672
+ N(a.$slots, "default")
654
673
  ]),
655
674
  _: 3
656
675
  }));
657
676
  }
658
- }), Tt = {};
659
- function Mt(t, e) {
660
- return r(), i("li", null, [
661
- S(t.$slots, "default")
677
+ }), ht = {};
678
+ function bt(t, e) {
679
+ return r(), u("li", null, [
680
+ N(t.$slots, "default")
662
681
  ]);
663
682
  }
664
- const ht = /* @__PURE__ */ F(Tt, [["render", Mt]]), bt = {};
665
- function St(t, e) {
666
- return r(), i("ol", null, [
667
- S(t.$slots, "default")
683
+ const St = /* @__PURE__ */ F(ht, [["render", bt]]), Nt = {};
684
+ function wt(t, e) {
685
+ return r(), u("ol", null, [
686
+ N(t.$slots, "default")
668
687
  ]);
669
688
  }
670
- const Nt = /* @__PURE__ */ F(bt, [["render", St]]), wt = /* @__PURE__ */ p({
689
+ const $t = /* @__PURE__ */ F(Nt, [["render", wt]]), Ot = /* @__PURE__ */ p({
671
690
  __name: "Paragraph",
672
691
  props: {
673
692
  node: {}
674
693
  },
675
694
  setup(t) {
676
695
  const e = t, n = c(() => e.node?.attrs ?? {});
677
- return (a, o) => (r(), i("p", {
678
- style: w(n.value)
696
+ return (a, o) => (r(), u("p", {
697
+ style: M(n.value)
679
698
  }, [
680
- S(a.$slots, "default")
699
+ N(a.$slots, "default")
681
700
  ], 4));
682
701
  }
683
- }), $t = {};
684
- function Ot(t, e) {
685
- return r(), i("blockquote", null, [
686
- S(t.$slots, "default")
702
+ }), At = {};
703
+ function xt(t, e) {
704
+ return r(), u("blockquote", null, [
705
+ N(t.$slots, "default")
687
706
  ]);
688
707
  }
689
- const At = /* @__PURE__ */ F($t, [["render", Ot]]), xt = ["aria-label", "aria-labelledby"], It = { key: 0 }, Rt = ["colspan", "rowspan", "scope"], Lt = ["colspan", "rowspan"], Bt = /* @__PURE__ */ p({
708
+ const It = /* @__PURE__ */ F(At, [["render", xt]]), Rt = ["aria-label", "aria-labelledby"], Lt = { key: 0 }, Bt = ["colspan", "rowspan", "scope"], Ut = ["colspan", "rowspan"], Pt = /* @__PURE__ */ p({
690
709
  __name: "TableRenderer",
691
710
  props: {
692
711
  content: {},
@@ -695,47 +714,47 @@ const At = /* @__PURE__ */ F($t, [["render", Ot]]), xt = ["aria-label", "aria-la
695
714
  isDevMode: { type: Boolean }
696
715
  },
697
716
  setup(t) {
698
- const e = t, n = c(() => e.attrs?.caption || void 0), a = c(() => e.attrs?.ariaLabel || void 0), o = c(() => e.attrs?.ariaLabelledby || void 0), s = (d) => Number(d.attrs?.colspan || 1), l = (d) => Number(d.attrs?.rowspan || 1);
699
- return (d, v) => (r(), i("table", {
717
+ const e = t, n = c(() => e.attrs?.caption || void 0), a = c(() => e.attrs?.ariaLabel || void 0), o = c(() => e.attrs?.ariaLabelledby || void 0), s = (i) => Number(i.attrs?.colspan || 1), l = (i) => Number(i.attrs?.rowspan || 1);
718
+ return (i, v) => (r(), u("table", {
700
719
  "aria-label": a.value,
701
720
  "aria-labelledby": o.value
702
721
  }, [
703
- n.value ? (r(), i("caption", It, O(n.value), 1)) : T("", !0),
722
+ n.value ? (r(), u("caption", Lt, O(n.value), 1)) : T("", !0),
704
723
  y("tbody", null, [
705
- (r(!0), i(k, null, M(t.content, (u, _) => (r(), i("tr", {
724
+ (r(!0), u(E, null, h(t.content, (d, _) => (r(), u("tr", {
706
725
  key: `row-${_}`
707
726
  }, [
708
- (r(!0), i(k, null, M(u.content ?? [], (m, C) => (r(), i(k, {
727
+ (r(!0), u(E, null, h(d.content ?? [], (m, C) => (r(), u(E, {
709
728
  key: `cell-${C}`
710
729
  }, [
711
- m.type === "tableHeader" ? (r(), i("th", {
730
+ m.type === "tableHeader" ? (r(), u("th", {
712
731
  key: 0,
713
732
  colspan: s(m),
714
733
  rowspan: l(m),
715
734
  scope: m.attrs?.scope || void 0
716
735
  }, [
717
- h(P, {
736
+ b(P, {
718
737
  content: m.content ?? [],
719
738
  "custom-renderers": t.customRenderers,
720
739
  "is-dev-mode": t.isDevMode
721
740
  }, null, 8, ["content", "custom-renderers", "is-dev-mode"])
722
- ], 8, Rt)) : (r(), i("td", {
741
+ ], 8, Bt)) : (r(), u("td", {
723
742
  key: 1,
724
743
  colspan: s(m),
725
744
  rowspan: l(m)
726
745
  }, [
727
- h(P, {
746
+ b(P, {
728
747
  content: m.content ?? [],
729
748
  "custom-renderers": t.customRenderers,
730
749
  "is-dev-mode": t.isDevMode
731
750
  }, null, 8, ["content", "custom-renderers", "is-dev-mode"])
732
- ], 8, Lt))
751
+ ], 8, Ut))
733
752
  ], 64))), 128))
734
753
  ]))), 128))
735
754
  ])
736
- ], 8, xt));
755
+ ], 8, Rt));
737
756
  }
738
- }), Ut = /* @__PURE__ */ p({
757
+ }), Vt = /* @__PURE__ */ p({
739
758
  __name: "TextBlock",
740
759
  props: {
741
760
  text: {},
@@ -750,23 +769,23 @@ const At = /* @__PURE__ */ F($t, [["render", Ot]]), xt = ["aria-label", "aria-la
750
769
  superscript: "sup",
751
770
  subscript: "sub",
752
771
  link: "a"
753
- }, a = c(() => e.marks ?? []), o = c(() => a.value[0]), s = c(() => a.value.slice(1)), l = c(() => o.value ? n[o.value.type] : void 0), d = c(() => o.value?.attrs ?? {});
754
- return (v, u) => {
772
+ }, a = c(() => e.marks ?? []), o = c(() => a.value[0]), s = c(() => a.value.slice(1)), l = c(() => o.value ? n[o.value.type] : void 0), i = c(() => o.value?.attrs ?? {});
773
+ return (v, d) => {
755
774
  const _ = ne("TextBlock", !0);
756
- return l.value ? (r(), f(D(l.value), R($({ key: 0 }, d.value)), {
775
+ return l.value ? (r(), f(D(l.value), R($({ key: 0 }, i.value)), {
757
776
  default: B(() => [
758
- h(_, {
777
+ b(_, {
759
778
  text: t.text,
760
779
  marks: s.value
761
780
  }, null, 8, ["text", "marks"])
762
781
  ]),
763
782
  _: 1
764
- }, 16)) : (r(), i(k, { key: 1 }, [
783
+ }, 16)) : (r(), u(E, { key: 1 }, [
765
784
  g(O(t.text), 1)
766
785
  ], 64));
767
786
  };
768
787
  }
769
- }), Pt = /* @__PURE__ */ p({
788
+ }), Ft = /* @__PURE__ */ p({
770
789
  __name: "UnknownBlock",
771
790
  props: {
772
791
  node: {}
@@ -781,11 +800,11 @@ const At = /* @__PURE__ */ F($t, [["render", Ot]]), xt = ["aria-label", "aria-la
781
800
  marginTop: "1rem",
782
801
  border: "1px solid #fc8181"
783
802
  };
784
- return b(() => {
803
+ return S(() => {
785
804
  A() || console.warn(
786
805
  `[DotCMSBlockEditorRenderer]: Unknown block type "${e.node?.type}". No renderer was found for it.`
787
806
  );
788
- }), (a, o) => E(A)() ? (r(), i("div", {
807
+ }), (a, o) => k(A)() ? (r(), u("div", {
789
808
  key: 0,
790
809
  "data-testid": "unknown-block",
791
810
  style: n
@@ -794,7 +813,7 @@ const At = /* @__PURE__ */ F($t, [["render", Ot]]), xt = ["aria-label", "aria-la
794
813
  y("strong", null, O(t.node?.type), 1)
795
814
  ])) : T("", !0);
796
815
  }
797
- }), Vt = { key: 4 }, Ft = { key: 5 }, P = /* @__PURE__ */ p({
816
+ }), Gt = { key: 4 }, Ht = { key: 5 }, P = /* @__PURE__ */ p({
798
817
  __name: "BlockEditorBlock",
799
818
  props: {
800
819
  content: {},
@@ -803,81 +822,81 @@ const At = /* @__PURE__ */ F($t, [["render", Ot]]), xt = ["aria-label", "aria-la
803
822
  },
804
823
  setup(t) {
805
824
  const e = Ie, n = {
806
- [e.PARAGRAPH]: wt,
807
- [e.HEADING]: Dt,
808
- [e.BULLET_LIST]: ct,
809
- [e.ORDERED_LIST]: Nt,
810
- [e.LIST_ITEM]: ht,
811
- [e.BLOCK_QUOTE]: At,
825
+ [e.PARAGRAPH]: Ot,
826
+ [e.HEADING]: Mt,
827
+ [e.BULLET_LIST]: lt,
828
+ [e.ORDERED_LIST]: $t,
829
+ [e.LIST_ITEM]: St,
830
+ [e.BLOCK_QUOTE]: It,
812
831
  [e.CODE_BLOCK]: it
813
832
  }, a = {
814
- [e.DOT_IMAGE]: _t,
815
- [e.DOT_VIDEO]: Et,
833
+ [e.DOT_IMAGE]: Ct,
834
+ [e.DOT_VIDEO]: Dt,
816
835
  [e.DOT_AUDIO]: mt
817
836
  }, o = (l) => n[l], s = (l) => a[l];
818
- return (l, d) => {
837
+ return (l, i) => {
819
838
  const v = ne("BlockEditorBlock", !0);
820
- return r(!0), i(k, null, M(t.content ?? [], (u, _) => (r(), i(k, {
821
- key: `${u.type}-${_}`
839
+ return r(!0), u(E, null, h(t.content ?? [], (d, _) => (r(), u(E, {
840
+ key: `${d.type}-${_}`
822
841
  }, [
823
- t.customRenderers && t.customRenderers[u.type] ? (r(), f(D(t.customRenderers[u.type]), {
842
+ t.customRenderers && t.customRenderers[d.type] ? (r(), f(D(t.customRenderers[d.type]), {
824
843
  key: 0,
825
- node: u
844
+ node: d
826
845
  }, {
827
846
  default: B(() => [
828
- h(v, {
829
- content: u.content,
847
+ b(v, {
848
+ content: d.content,
830
849
  "custom-renderers": t.customRenderers,
831
850
  "is-dev-mode": t.isDevMode
832
851
  }, null, 8, ["content", "custom-renderers", "is-dev-mode"])
833
852
  ]),
834
853
  _: 2
835
- }, 1032, ["node"])) : o(u.type) ? (r(), f(D(o(u.type)), {
854
+ }, 1032, ["node"])) : o(d.type) ? (r(), f(D(o(d.type)), {
836
855
  key: 1,
837
- node: u
856
+ node: d
838
857
  }, {
839
858
  default: B(() => [
840
- h(v, {
841
- content: u.content,
859
+ b(v, {
860
+ content: d.content,
842
861
  "custom-renderers": t.customRenderers,
843
862
  "is-dev-mode": t.isDevMode
844
863
  }, null, 8, ["content", "custom-renderers", "is-dev-mode"])
845
864
  ]),
846
865
  _: 2
847
- }, 1032, ["node"])) : u.type === E(e).TEXT ? (r(), f(Ut, {
866
+ }, 1032, ["node"])) : d.type === k(e).TEXT ? (r(), f(Vt, {
848
867
  key: 2,
849
- text: u.text,
850
- marks: u.marks
851
- }, null, 8, ["text", "marks"])) : s(u.type) ? (r(), f(D(s(u.type)), {
868
+ text: d.text,
869
+ marks: d.marks
870
+ }, null, 8, ["text", "marks"])) : s(d.type) ? (r(), f(D(s(d.type)), {
852
871
  key: 3,
853
- node: u
854
- }, null, 8, ["node"])) : u.type === E(e).HARDBREAK ? (r(), i("br", Vt)) : u.type === E(e).HORIZONTAL_RULE ? (r(), i("hr", Ft)) : u.type === E(e).TABLE ? (r(), f(Bt, {
872
+ node: d
873
+ }, null, 8, ["node"])) : d.type === k(e).HARDBREAK ? (r(), u("br", Gt)) : d.type === k(e).HORIZONTAL_RULE ? (r(), u("hr", Ht)) : d.type === k(e).TABLE ? (r(), f(Pt, {
855
874
  key: 6,
856
- content: u.content ?? [],
857
- attrs: u.attrs,
875
+ content: d.content ?? [],
876
+ attrs: d.attrs,
858
877
  "custom-renderers": t.customRenderers,
859
878
  "is-dev-mode": t.isDevMode
860
- }, null, 8, ["content", "attrs", "custom-renderers", "is-dev-mode"])) : u.type === E(e).GRID_BLOCK ? (r(), f(kt, {
879
+ }, null, 8, ["content", "attrs", "custom-renderers", "is-dev-mode"])) : d.type === k(e).GRID_BLOCK ? (r(), f(Tt, {
861
880
  key: 7,
862
- node: u,
881
+ node: d,
863
882
  "custom-renderers": t.customRenderers,
864
883
  "is-dev-mode": t.isDevMode
865
- }, null, 8, ["node", "custom-renderers", "is-dev-mode"])) : u.type === E(e).DOT_CONTENT ? (r(), f(ft, {
884
+ }, null, 8, ["node", "custom-renderers", "is-dev-mode"])) : d.type === k(e).DOT_CONTENT ? (r(), f(ft, {
866
885
  key: 8,
867
- node: u,
886
+ node: d,
868
887
  "custom-renderers": t.customRenderers,
869
888
  "is-dev-mode": t.isDevMode
870
- }, null, 8, ["node", "custom-renderers", "is-dev-mode"])) : (r(), f(Pt, {
889
+ }, null, 8, ["node", "custom-renderers", "is-dev-mode"])) : (r(), f(Ft, {
871
890
  key: 9,
872
- node: u
891
+ node: d
873
892
  }, null, 8, ["node"]))
874
893
  ], 64))), 128);
875
894
  };
876
895
  }
877
- }), Gt = {
896
+ }), Yt = {
878
897
  key: 0,
879
898
  "data-testid": "invalid-blocks-message"
880
- }, sn = /* @__PURE__ */ p({
899
+ }, an = /* @__PURE__ */ p({
881
900
  __name: "DotCMSBlockEditorRenderer",
882
901
  props: {
883
902
  blocks: {},
@@ -901,13 +920,13 @@ const At = /* @__PURE__ */ F($t, [["render", Ot]]), xt = ["aria-label", "aria-la
901
920
  s && console.error(s);
902
921
  },
903
922
  { immediate: !0 }
904
- ), (s, l) => o.value && t.isDevMode ? (r(), i("div", Gt, O(o.value), 1)) : o.value ? T("", !0) : (r(), i("div", {
923
+ ), (s, l) => o.value && t.isDevMode ? (r(), u("div", Yt, O(o.value), 1)) : o.value ? T("", !0) : (r(), u("div", {
905
924
  key: 1,
906
925
  class: W(t.className),
907
- style: w(t.style),
926
+ style: M(t.style),
908
927
  "data-testid": "dot-block-editor-container"
909
928
  }, [
910
- h(P, {
929
+ b(P, {
911
930
  content: t.blocks?.content,
912
931
  "custom-renderers": n.value,
913
932
  "is-dev-mode": t.isDevMode
@@ -916,18 +935,18 @@ const At = /* @__PURE__ */ F($t, [["render", Ot]]), xt = ["aria-label", "aria-la
916
935
  }
917
936
  });
918
937
  export {
919
- se as DOTCMS_CLIENT,
920
- re as DOTCMS_PAGE_CONTEXT,
921
- sn as DotCMSBlockEditorRenderer,
922
- on as DotCMSEditableText,
923
- nn as DotCMSLayoutBody,
924
- tn as DotCMSShow,
925
- en as createDotCMSImageLoader,
926
- Qt as createDotCMSVue,
938
+ re as DOTCMS_CLIENT,
939
+ se as DOTCMS_PAGE_CONTEXT,
940
+ an as DotCMSBlockEditorRenderer,
941
+ sn as DotCMSEditableText,
942
+ rn as DotCMSLayoutBody,
943
+ on as DotCMSShow,
944
+ nn as createDotCMSImageLoader,
945
+ Zt as createDotCMSVue,
927
946
  Ue as provideDotCMSPageContext,
928
947
  Re as toPlain,
929
- Jt as useDotCMSClient,
948
+ en as useDotCMSClient,
930
949
  x as useDotCMSPageContext,
931
950
  Le as useDotCMSShowWhen,
932
- Zt as useEditableDotCMSPage
951
+ tn as useEditableDotCMSPage
933
952
  };
@@ -1,5 +1,5 @@
1
1
  import { BlockEditorNode } from '@dotcms/types';
2
- /** Renders a dotCMS image block with optional text-wrap / alignment. */
2
+ /** Renders a dotCMS image block with optional link, text-wrap / alignment. */
3
3
  type __VLS_Props = {
4
4
  node: BlockEditorNode;
5
5
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dotcms/vue",
3
- "version": "26.8.14-1-next.2533",
3
+ "version": "26.08.19-01",
4
4
  "peerDependencies": {
5
5
  "vue": ">=3.4"
6
6
  },
7
7
  "dependencies": {
8
- "@dotcms/uve": "26.8.14-1-next.2533",
9
- "@dotcms/client": "26.8.14-1-next.2533",
8
+ "@dotcms/uve": "26.08.19-01",
9
+ "@dotcms/client": "26.08.19-01",
10
10
  "@tinymce/tinymce-vue": "^6.1.0"
11
11
  },
12
12
  "devDependencies": {