@umoteam/editor 4.1.0 → 4.1.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.
@@ -60,7 +60,7 @@ import { saveAs as Y0 } from "file-saver";
60
60
  import { toBlob as Z0, toJpeg as cS, toPng as dS } from "dom-to-image-more";
61
61
  import Po from "nzh/cn";
62
62
  /**
63
- * @umoteam/editor 4.1.0
63
+ * @umoteam/editor 4.1.1
64
64
  * @license MIT
65
65
  * @author umodoc https://www.umodoc.com
66
66
  * @see https://editor.umodoc.com/en/docs
@@ -39140,7 +39140,7 @@ const wme = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
39140
39140
  e.ensureMarks(b);
39141
39141
  }
39142
39142
  return !0;
39143
- }, $u = (t) => (ro("data-v-b30b772a"), t = t(), ao(), t), $me = ["title"], kme = {
39143
+ }, $u = (t) => (ro("data-v-d6789f2a"), t = t(), ao(), t), $me = ["title"], kme = {
39144
39144
  class: "page-node-header",
39145
39145
  contenteditable: "false"
39146
39146
  }, Sme = /* @__PURE__ */ $u(() => /* @__PURE__ */ M("div", {
@@ -39162,7 +39162,9 @@ const wme = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
39162
39162
  __name: "node-view",
39163
39163
  props: sr,
39164
39164
  setup(t) {
39165
- const { page: e, exportImage: n } = le(), r = j(null), a = A(() => {
39165
+ const { page: e, exportImage: n } = le(), r = j(null);
39166
+ console.log(t.node.attrs.slots);
39167
+ const a = A(() => {
39166
39168
  const { width: l, height: i } = e.value.size;
39167
39169
  return {
39168
39170
  width: e.value.orientation === "portrait" ? l : i,
@@ -39245,7 +39247,7 @@ const wme = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
39245
39247
  }, 8, ["id", "class", "style"]);
39246
39248
  };
39247
39249
  }
39248
- }, Ime = /* @__PURE__ */ Le(Mme, [["__scopeId", "data-v-b30b772a"]]), I0 = [
39250
+ }, Ime = /* @__PURE__ */ Le(Mme, [["__scopeId", "data-v-d6789f2a"]]), I0 = [
39249
39251
  U2,
39250
39252
  ls,
39251
39253
  Jv,
@@ -39298,10 +39300,26 @@ const wme = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
39298
39300
  default: !1
39299
39301
  },
39300
39302
  slots: {
39301
- default: this.options.slots
39302
- }
39303
- };
39304
- },
39303
+ default: this.options.slots,
39304
+ renderHTML: () => ({})
39305
+ }
39306
+ };
39307
+ },
39308
+ // addGlobalAttributes() {
39309
+ // return [
39310
+ // {
39311
+ // attributes: {
39312
+ // slots: {
39313
+ // default: this.options.slots,
39314
+ // parseHTML: (element) => '',
39315
+ // renderHTML: (attributes) => {
39316
+ // return { x: 1 }
39317
+ // },
39318
+ // },
39319
+ // },
39320
+ // },
39321
+ // ]
39322
+ // },
39305
39323
  parseHTML() {
39306
39324
  return [
39307
39325
  {
@@ -40531,7 +40549,7 @@ const she = /* @__PURE__ */ Le(ahe, [["render", ihe], ["__scopeId", "data-v-191e
40531
40549
  const a = fe;
40532
40550
  return x(), X(a, {
40533
40551
  ico: "page-header",
40534
- text: y(e).header ? n.t("page.footer.hide") : n.t("page.footer.show"),
40552
+ text: y(e).header ? n.t("page.header.hide") : n.t("page.header.show"),
40535
40553
  huge: "",
40536
40554
  onMenuClick: r[0] || (r[0] = (o) => y(e).header = !y(e).header)
40537
40555
  }, null, 8, ["text"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umoteam/editor",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Umo Editor is open-source document editor based on Vue3 and Tiptap. Umo Editor provides comprehensive document editing capabilities and AI creation features, supports pagination, supports Markdown syntax, offers basic rich text editing functions, allows for the insertion of various node types in multiple formats, provides a variety of practical tools, and supports setting page styles. It also supports exporting in various formats, printing and print preview, block-level document editing, adding custom extensions, multi-language settings, and a dark theme.",
5
5
  "keywords": [
6
6
  "umo editor",