@templatical/editor 0.7.0 → 0.7.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/dist/{CloudEditor-DdZatjUe.js → CloudEditor-S7AzuNwC.js} +1 -1
- package/dist/bundle-stats.json +5 -5
- package/dist/cdn/chunks/{CloudEditor-h5JXI8WQ.js → CloudEditor-BGiN3M_f.js} +2 -2
- package/dist/cdn/chunks/{CloudEditor-h5JXI8WQ.js.map → CloudEditor-BGiN3M_f.js.map} +1 -1
- package/dist/cdn/chunks/renderer-eDlxzlJI.js +501 -0
- package/dist/cdn/chunks/renderer-eDlxzlJI.js.map +1 -0
- package/dist/cdn/chunks/{styles-DaTht5d7.js → styles-lcwmaOou.js} +124 -138
- package/dist/cdn/chunks/{styles-DaTht5d7.js.map → styles-lcwmaOou.js.map} +1 -1
- package/dist/cdn/editor.js +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/{styles-D_fEz49o.js → styles-DeNciUTX.js} +123 -137
- package/dist/templatical-editor.js +2 -2
- package/package.json +7 -7
- package/dist/cdn/chunks/renderer-DYpHh_uV.js +0 -548
- package/dist/cdn/chunks/renderer-DYpHh_uV.js.map +0 -1
package/dist/cdn/editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, C as t, H as n, M as r, V as i, Z as a, ct as o, g as s, h as c, it as l, j as u, m as d, n as f, ot as p, p as m, r as h, s as g, st as _, v, x as y, y as b } from "./chunks/draggable-P6QWzy4g.js";
|
|
2
2
|
import { A as ee, Rn as x, Y as S, fn as te, nt as ne } from "./chunks/features-DzIN-Nua.js";
|
|
3
3
|
import { C as re } from "./chunks/icons-Nvr6w13E.js";
|
|
4
|
-
import { a as ie, c as C, i as ae, n as w, o as T, r as E, s as D, t as O } from "./chunks/styles-
|
|
4
|
+
import { a as ie, c as C, i as ae, n as w, o as T, r as E, s as D, t as O } from "./chunks/styles-lcwmaOou.js";
|
|
5
5
|
//#region src/Editor.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var k = ["data-tpl-theme"], A = {
|
|
7
7
|
class: "tpl-header tpl:absolute tpl:top-0 tpl:right-0 tpl:left-0 tpl:z-50 tpl:grid tpl:h-14 tpl:grid-cols-[1fr_auto_1fr] tpl:items-center tpl:px-4 tpl:shadow-[var(--tpl-shadow-md)] tpl:border-b tpl:border-[var(--tpl-border)]",
|
|
@@ -185,7 +185,7 @@ function de() {
|
|
|
185
185
|
async function fe(e) {
|
|
186
186
|
let t;
|
|
187
187
|
try {
|
|
188
|
-
t = await import("./chunks/renderer-
|
|
188
|
+
t = await import("./chunks/renderer-eDlxzlJI.js").then((e) => e.t);
|
|
189
189
|
} catch {
|
|
190
190
|
throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
191
191
|
}
|
|
@@ -269,7 +269,7 @@ function $(e) {
|
|
|
269
269
|
async function _e(e) {
|
|
270
270
|
let n = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
|
|
271
271
|
if (!n) throw Error(`[Templatical] Container element not found: ${e.container}`);
|
|
272
|
-
let { default: r } = await import("./chunks/CloudEditor-
|
|
272
|
+
let { default: r } = await import("./chunks/CloudEditor-BGiN3M_f.js"), [i, o] = await Promise.all([U(e.locale ?? "en"), W(e.locale ?? "en")]), s = S(e.fonts);
|
|
273
273
|
$(n);
|
|
274
274
|
let c = q(n, e.shadowDom ?? !0), l = a(null);
|
|
275
275
|
return await new Promise((a, u) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -321,8 +321,9 @@ declare module "@tiptap/core" {
|
|
|
321
321
|
|
|
322
322
|
declare module "@tiptap/core" {
|
|
323
323
|
interface Commands<ReturnType> {
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
lineHeight: {
|
|
325
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
326
|
+
unsetLineHeight: () => ReturnType;
|
|
326
327
|
};
|
|
327
328
|
}
|
|
328
329
|
}
|
|
@@ -330,9 +331,8 @@ declare module "@tiptap/core" {
|
|
|
330
331
|
|
|
331
332
|
declare module "@tiptap/core" {
|
|
332
333
|
interface Commands<ReturnType> {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
unsetLineHeight: () => ReturnType;
|
|
334
|
+
mergeTagNode: {
|
|
335
|
+
insertMergeTag: (attrs: MergeTag) => ReturnType;
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
}
|