@juit/vue-tiny-editor 1.0.11 → 1.0.13

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -11
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as y, createElementBlock as N, createElementVNode as C, defineComponent as Qe, mergeModels as je, useModel as Ye, watch as T, shallowRef as q, ref as E, computed as H, onMounted as Ze, nextTick as Le, onUnmounted as et, normalizeClass as M, Fragment as tt, renderList as nt, createTextVNode as ot, toDisplayString as V, createCommentVNode as Me, createVNode as P, unref as A, withDirectives as De, vModelText as Be } from "vue";
1
+ import { createElementBlock as y, openBlock as N, createElementVNode as C, defineComponent as Qe, mergeModels as je, useModel as Ye, watch as T, shallowRef as q, ref as E, computed as H, onMounted as Ze, nextTick as Le, onUnmounted as et, normalizeClass as M, createCommentVNode as Me, Fragment as tt, renderList as nt, createTextVNode as ot, toDisplayString as V, createVNode as P, withDirectives as De, unref as A, vModelText as Be } from "vue";
2
2
  function ie(n, e) {
3
3
  return n instanceof Node && (n = I(n)), n.isPointInRange(e.startContainer, e.startOffset) && n.isPointInRange(e.endContainer, e.endOffset) ? e : null;
4
4
  }
@@ -219,7 +219,7 @@ const ut = {
219
219
  viewBox: "0 -960 960 960"
220
220
  };
221
221
  function ct(n, e) {
222
- return y(), N("svg", ut, e[0] || (e[0] = [
222
+ return N(), y("svg", ut, e[0] || (e[0] = [
223
223
  C("path", { d: "M272-200v-560h221q65 0 120 40t55 111q0 51-23 78.5T602-491q25 11 55.5 41t30.5 90q0 89-65 124.5T501-200zm121-112h104q48 0 58.5-24.5T566-372t-10.5-35.5T494-432H393zm0-228h93q33 0 48-17t15-38q0-24-17-39t-44-15h-95z" }, null, -1)
224
224
  ]));
225
225
  }
@@ -229,7 +229,7 @@ const dt = { render: ct }, ft = {
229
229
  viewBox: "0 -960 960 960"
230
230
  };
231
231
  function pt(n, e) {
232
- return y(), N("svg", ft, e[0] || (e[0] = [
232
+ return N(), y("svg", ft, e[0] || (e[0] = [
233
233
  C("path", { d: "M200-200v-100h160l120-360H320v-100h400v100H580L460-300h140v100z" }, null, -1)
234
234
  ]));
235
235
  }
@@ -239,7 +239,7 @@ const vt = { render: pt }, mt = {
239
239
  viewBox: "0 -960 960 960"
240
240
  };
241
241
  function ht(n, e) {
242
- return y(), N("svg", mt, e[0] || (e[0] = [
242
+ return N(), y("svg", mt, e[0] || (e[0] = [
243
243
  C("path", { d: "M440-280H280q-83 0-141.5-58.5T80-480t58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85 35 85 85 35h160zM320-440v-80h320v80zm200 160v-80h160q50 0 85-35t35-85-35-85-85-35H520v-80h160q83 0 141.5 58.5T880-480t-58.5 141.5T680-280z" }, null, -1)
244
244
  ]));
245
245
  }
@@ -249,7 +249,7 @@ const Ae = { render: ht }, gt = {
249
249
  viewBox: "0 -960 960 960"
250
250
  };
251
251
  function bt(n, e) {
252
- return y(), N("svg", gt, e[0] || (e[0] = [
252
+ return N(), y("svg", gt, e[0] || (e[0] = [
253
253
  C("path", { d: "M480-80q-83 0-156-31.5T197-197t-85.5-127T80-480t31.5-156T197-763t127-85.5T480-880t156 31.5T763-763t85.5 127T880-480v58q0 59-40.5 100.5T740-280q-35 0-66-15t-52-43q-29 29-65.5 43.5T480-280q-83 0-141.5-58.5T280-480t58.5-141.5T480-680t141.5 58.5T680-480v58q0 26 17 44t43 18 43-18 17-44v-58q0-134-93-227t-227-93-227 93-93 227 93 227 227 93h200v80zm0-280q50 0 85-35t35-85-35-85-85-35-85 35-35 85 35 85 85 35" }, null, -1)
254
254
  ]));
255
255
  }
@@ -259,7 +259,7 @@ const Ct = { render: bt }, xt = {
259
259
  viewBox: "0 -960 960 960"
260
260
  };
261
261
  function wt(n, e) {
262
- return y(), N("svg", xt, e[0] || (e[0] = [
262
+ return N(), y("svg", xt, e[0] || (e[0] = [
263
263
  C("path", { d: "M792-443 176-183q-20 8-38-3.5T120-220v-520q0-22 18-33.5t38-3.5l616 260q25 11 25 37t-25 37M200-280l474-200-474-200v140l240 60-240 60zm0 0v-400z" }, null, -1)
264
264
  ]));
265
265
  }
@@ -269,7 +269,7 @@ const yt = { render: wt }, Nt = {
269
269
  viewBox: "0 -960 960 960"
270
270
  };
271
271
  function Tt(n, e) {
272
- return y(), N("svg", Nt, e[0] || (e[0] = [
272
+ return N(), y("svg", Nt, e[0] || (e[0] = [
273
273
  C("path", { d: "M280-160v-520H80v-120h520v120H400v520zm360 0v-320H520v-120h360v120H760v320z" }, null, -1)
274
274
  ]));
275
275
  }
@@ -567,7 +567,7 @@ const Et = { render: Tt }, Rt = ["onMousedown"], kt = { class: "-jte-mentions-en
567
567
  const Te = e;
568
568
  return T(S, (o) => o && Te("mention", o)), (o, t) => {
569
569
  var p;
570
- return y(), N("div", {
570
+ return N(), y("div", {
571
571
  class: M(["juit-tiny-edit", { "-jte-editable": n.editable, "-jte-dark": n.dark }])
572
572
  }, [
573
573
  C("div", {
@@ -584,7 +584,7 @@ const Et = { render: Tt }, Rt = ["onMousedown"], kt = { class: "-jte-mentions-en
584
584
  ref_key: "mentionsListRef",
585
585
  ref: f
586
586
  }, [
587
- (y(!0), N(tt, null, nt(D.value, (u, b) => (y(), N("li", {
587
+ (N(!0), y(tt, null, nt(D.value, (u, b) => (N(), y("li", {
588
588
  key: b,
589
589
  class: M({ "-jte-mentions-selected": v.value === b }),
590
590
  onMousedown: (d) => ye(u.name, u.value)
@@ -595,7 +595,7 @@ const Et = { render: Tt }, Rt = ["onMousedown"], kt = { class: "-jte-mentions-en
595
595
  ])
596
596
  ], 42, Rt))), 128))
597
597
  ], 512),
598
- xe.value ? D.value.length ? Me("", !0) : (y(), N("div", jt, V(S.value), 1)) : (y(), N("div", Ot, V(S.value) + V(_e.value), 1))
598
+ xe.value ? D.value.length ? Me("", !0) : (N(), y("div", jt, V(S.value), 1)) : (N(), y("div", Ot, V(S.value) + V(_e.value), 1))
599
599
  ], 512),
600
600
  C("div", {
601
601
  ref_key: "linksPopupRef",
@@ -625,7 +625,7 @@ const Et = { render: Tt }, Rt = ["onMousedown"], kt = { class: "-jte-mentions-en
625
625
  ])
626
626
  ], 2)
627
627
  ], 544),
628
- n.placeholder && !g.value ? (y(), N("div", Lt, V(n.placeholder), 1)) : Me("", !0),
628
+ n.placeholder && !g.value ? (N(), y("div", Lt, V(n.placeholder), 1)) : Me("", !0),
629
629
  C("div", {
630
630
  ref_key: "editorRef",
631
631
  ref: l,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juit/vue-tiny-editor",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -20,19 +20,19 @@
20
20
  "vue": "^3.5.13"
21
21
  },
22
22
  "devDependencies": {
23
- "@plugjs/eslint-plugin": "^0.3.9",
23
+ "@plugjs/eslint-plugin": "^0.3.11",
24
24
  "@types/node": "<21",
25
25
  "@vitejs/plugin-vue": "^5.2.1",
26
- "@vitest/coverage-v8": "^3.0.4",
26
+ "@vitest/coverage-v8": "^3.0.5",
27
27
  "@vue/test-utils": "^2.4.6",
28
- "eslint": "^9.19.0",
28
+ "eslint": "^9.20.1",
29
29
  "eslint-plugin-vue": "^9.32.0",
30
30
  "jsdom": "^26.0.0",
31
31
  "typescript": "<5.7",
32
32
  "vite": "<6",
33
33
  "vite-plugin-dts": "^4.5.0",
34
34
  "vite-svg-loader": "^5.1.0",
35
- "vitest": "^3.0.4",
35
+ "vitest": "^3.0.5",
36
36
  "vue": "^3.5.13",
37
37
  "vue-tsc": "^2.2.0"
38
38
  },