@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.
@@ -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-DaTht5d7.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-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-DYpHh_uV.js").then((e) => e.t);
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-h5JXI8WQ.js"), [i, o] = await Promise.all([U(e.locale ?? "en"), W(e.locale ?? "en")]), s = S(e.fonts);
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
- mergeTagNode: {
325
- insertMergeTag: (attrs: MergeTag) => ReturnType;
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
- lineHeight: {
334
- setLineHeight: (lineHeight: string) => ReturnType;
335
- unsetLineHeight: () => ReturnType;
334
+ mergeTagNode: {
335
+ insertMergeTag: (attrs: MergeTag) => ReturnType;
336
336
  };
337
337
  }
338
338
  }