lengyue-editor 1.0.2 → 1.0.4

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.
@@ -64,7 +64,7 @@ import DC from "dom-to-image-more";
64
64
  import xi from "nzh/cn";
65
65
  import { ObjectSchema as f5 } from "@eslint/object-schema";
66
66
  /**
67
- * lengyue-editor 1.0.2
67
+ * lengyue-editor 1.0.4
68
68
  * @license MIT
69
69
  * @author umodoc https://www.umodoc.com
70
70
  * @see https://www.umodoc.com
@@ -44098,7 +44098,7 @@ const rr = /* @__PURE__ */ te({
44098
44098
  const e = J("container", "body"), n = dn(), r = (a) => n.expose = a;
44099
44099
  return (a, o) => (B(), U(SC(yt(k(j1e), { ...a.$attrs, attach: k(e), ref: r }, a.$slots))));
44100
44100
  }
44101
- }), I1e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='460.224'%20height='128'%3e%3cg%20fill='none'%3e%3cpath%20d='M450.627%2039.41l9.597%2013.658c-2.724%2015.076-5.577%2030.28-8.3%2045.486-4.886%204.594-9.771%209.19-14.654%2013.787h-65.878c-3.113-4.768-6.355-9.406-9.467-14.174%202.723-15.076%205.576-30.023%208.3-45.099l14.524-13.658h65.878zm-240.182-1.057l-8.99%2049.222h41.483l4.238-22.936%2020.678%2017.653-2.826%2015.205-14.512%2013.787h-65.244l-9.375-13.787%2010.66-59.144h23.888zm57.537%200l32.574%2029.302%2045.733-29.302h15.636l-16.027%2072.931h-27.492l7.297-33.34-31.662%2017.712-45.213-38.55%204.17-18.753h14.984zM430.397%2062.99H396.16l-4.539%203.866c-1.037%205.798-2.205%2011.725-3.242%2017.653l3.112%204.252h35.014c1.297-1.289%202.594-2.577%203.632-3.737.291-1.514.575-3.028.855-4.542l1.661-9.084.855-4.542-3.112-3.866h.001zM78.005%200L65.638%2082.444l-48.62%206.342-.846%205.496%2062.256-1.48%2011.31-68.28%2041.75-10.464-15.855%2091.851-32.026%2021.985H0L18.074%2015.432%2078.005%200zM56.971%2064.581l-37.523%209.302-.422%202.854%2037.522-9.302.423-2.854zm2.431-15.009L21.88%2058.874l-.423%202.853%2037.522-9.301.423-2.854zm2.431-15.009L24.31%2043.865l-.422%202.853%2037.522-9.301.423-2.854zm2.431-15.115L26.742%2028.75l-.423%202.854%2037.522-9.302.423-2.854z'%20fill='%234376F8'/%3e%3cpath%20fill-opacity='.7'%20fill='%23FFF'%20d='M115.633%20106.015l-28.855-.106L83.607%20128z'/%3e%3c/g%3e%3cscript/%3e%3c/svg%3e", F1e = "1.0.2", R1e = "https://www.umodoc.com", am = {
44101
+ }), I1e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='460.224'%20height='128'%3e%3cg%20fill='none'%3e%3cpath%20d='M450.627%2039.41l9.597%2013.658c-2.724%2015.076-5.577%2030.28-8.3%2045.486-4.886%204.594-9.771%209.19-14.654%2013.787h-65.878c-3.113-4.768-6.355-9.406-9.467-14.174%202.723-15.076%205.576-30.023%208.3-45.099l14.524-13.658h65.878zm-240.182-1.057l-8.99%2049.222h41.483l4.238-22.936%2020.678%2017.653-2.826%2015.205-14.512%2013.787h-65.244l-9.375-13.787%2010.66-59.144h23.888zm57.537%200l32.574%2029.302%2045.733-29.302h15.636l-16.027%2072.931h-27.492l7.297-33.34-31.662%2017.712-45.213-38.55%204.17-18.753h14.984zM430.397%2062.99H396.16l-4.539%203.866c-1.037%205.798-2.205%2011.725-3.242%2017.653l3.112%204.252h35.014c1.297-1.289%202.594-2.577%203.632-3.737.291-1.514.575-3.028.855-4.542l1.661-9.084.855-4.542-3.112-3.866h.001zM78.005%200L65.638%2082.444l-48.62%206.342-.846%205.496%2062.256-1.48%2011.31-68.28%2041.75-10.464-15.855%2091.851-32.026%2021.985H0L18.074%2015.432%2078.005%200zM56.971%2064.581l-37.523%209.302-.422%202.854%2037.522-9.302.423-2.854zm2.431-15.009L21.88%2058.874l-.423%202.853%2037.522-9.301.423-2.854zm2.431-15.009L24.31%2043.865l-.422%202.853%2037.522-9.301.423-2.854zm2.431-15.115L26.742%2028.75l-.423%202.854%2037.522-9.302.423-2.854z'%20fill='%234376F8'/%3e%3cpath%20fill-opacity='.7'%20fill='%23FFF'%20d='M115.633%20106.015l-28.855-.106L83.607%20128z'/%3e%3c/g%3e%3cscript/%3e%3c/svg%3e", F1e = "1.0.4", R1e = "https://www.umodoc.com", am = {
44102
44102
  version: F1e,
44103
44103
  homepage: R1e
44104
44104
  }, B1e = () => {
@@ -56607,7 +56607,7 @@ const fxe = tr.create({
56607
56607
  const e = J("page");
56608
56608
  return (n, r) => {
56609
56609
  const a = Ce;
56610
- return k(e).preview ? (B(), U(a, {
56610
+ return k(e).preview.isShow ? (B(), U(a, {
56611
56611
  key: 0,
56612
56612
  ico: "preview",
56613
56613
  text: n.t("page.preview"),
@@ -60700,6 +60700,9 @@ const f$e = {
60700
60700
  fontFamily: "SimSun",
60701
60701
  fontWeight: "normal",
60702
60702
  text: ""
60703
+ },
60704
+ preview: {
60705
+ isShow: !1
60703
60706
  }
60704
60707
  },
60705
60708
  document: {
@@ -60994,6 +60997,11 @@ const f$e = {
60994
60997
  );
60995
60998
  },
60996
60999
  required: !1
61000
+ },
61001
+ showToggle: {
61002
+ merge: "replace",
61003
+ validate: "boolean",
61004
+ required: !1
60997
61005
  }
60998
61006
  }
60999
61007
  },
@@ -61078,6 +61086,21 @@ const f$e = {
61078
61086
  validate: "boolean",
61079
61087
  required: !1
61080
61088
  },
61089
+ showShortcut: {
61090
+ merge: "replace",
61091
+ validate: "boolean",
61092
+ required: !1
61093
+ },
61094
+ showCurrentLayout: {
61095
+ merge: "replace",
61096
+ validate: "boolean",
61097
+ required: !1
61098
+ },
61099
+ showFullscreen: {
61100
+ merge: "replace",
61101
+ validate: "boolean",
61102
+ required: !1
61103
+ },
61081
61104
  watermark: {
61082
61105
  required: !1,
61083
61106
  merge: "replace",
@@ -61151,6 +61174,28 @@ const f$e = {
61151
61174
  required: !1
61152
61175
  }
61153
61176
  }
61177
+ },
61178
+ preview: {
61179
+ required: !1,
61180
+ merge: "replace",
61181
+ validate: "object",
61182
+ schema: {
61183
+ isShow: {
61184
+ merge: "replace",
61185
+ validate: "boolean",
61186
+ required: !1
61187
+ },
61188
+ enabled: {
61189
+ merge: "replace",
61190
+ validate: "boolean",
61191
+ required: !1
61192
+ },
61193
+ laserPointer: {
61194
+ merge: "replace",
61195
+ validate: "boolean",
61196
+ required: !1
61197
+ }
61198
+ }
61154
61199
  }
61155
61200
  }
61156
61201
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lengyue-editor",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "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.",
6
6
  "keywords": [
package/types/index.d.ts CHANGED
@@ -49,6 +49,7 @@ export interface PageOption {
49
49
  bodyHeight?: number
50
50
  autoWidth?: boolean
51
51
  preview?: {
52
+ isShow?: boolean
52
53
  enabled?: boolean
53
54
  laserPointer?: boolean
54
55
  }