smart-editor-v3 1.8.3 → 1.8.5

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.
@@ -5,7 +5,7 @@ import "./style.css";
5
5
  import { NTooltip as Mp, NButton as Er, NEmpty as t8, NTag as n8, NDrawerContent as Wy, NDrawer as jy, NPopover as r8, NInput as qy, NCheckbox as i8, NCard as o8, NDropdown as cc, NSelect as Ky, NColorPicker as Gy, NBackTop as s8, NModal as a8, NFormItem as l8, NInputNumber as Yy, useMessage as c8, zhCN as Jy, enUS as Xy, dateZhCN as Qy, dateEnUS as Zy, darkTheme as e4, NMessageProvider as u8, NConfigProvider as t4 } from "naive-ui";
6
6
  import { defineComponent as ro, h as jt, getCurrentInstance as ga, effectScope as d8, inject as n4, onMounted as Xr, onUnmounted as r4, computed as Ye, watch as Yt, Fragment as Ze, isRef as Oo, ref as ue, shallowRef as f8, createVNode as V, Text as h8, openBlock as I, createElementBlock as le, renderList as Mn, unref as m, createElementVNode as W, toDisplayString as xe, normalizeClass as ft, createBlock as X, resolveDynamicComponent as qt, withCtx as ne, createTextVNode as At, renderSlot as vn, onBeforeUnmount as io, watchEffect as p8, nextTick as i4, provide as Eu, markRaw as o4, reactive as m8, render as N1, customRef as g8, withDirectives as El, normalizeStyle as Jt, vShow as Mu, createCommentVNode as Ve, useAttrs as Np, mergeProps as Pn, onBeforeMount as s4, mergeModels as O1, useModel as b8 } from "vue";
7
7
  import { useStorage as D1, createGlobalState as v8, onClickOutside as Wd, useElementBounding as y8, useWindowSize as Op, useThrottleFn as a4, useTimeAgo as w8, useFullscreen as l4, useOnline as _8, useClipboard as k8, useResizeObserver as x8, useFileDialog as Dp, useDark as c4, useTimestamp as C8, createInjectionState as S8 } from "@vueuse/core";
8
- import { createEditor as T8 } from "/Users/chenyinjie/Desktop/smart-editor-v3/node_modules/.pnpm/prism-code-editor@3.4.0/node_modules/prism-code-editor/dist/index.js";
8
+ import { createEditor as T8 } from "prism-code-editor";
9
9
  import { defaultCommands as A8, editHistory as E8 } from "prism-code-editor/commands";
10
10
  import { cursorPosition as M8 } from "prism-code-editor/cursor";
11
11
  import { indentGuides as N8 } from "prism-code-editor/guides";
@@ -37637,7 +37637,7 @@ const ER = new St(
37637
37637
  }
37638
37638
  };
37639
37639
  }
37640
- }), L6 = ["table", "orderedList", "bulletList", "section"], OR = ["iframe", "file", "gallery", "video", "audio", "recorder", "paper", "read"], DR = ht.create({
37640
+ }), L6 = ["table", "orderedList", "bulletList", "section"], OR = ["iframe", "file", "gallery", "video", "audio", "recorder", "paper", "read", "codeBlock"], DR = ht.create({
37641
37641
  name: "selection",
37642
37642
  addProseMirrorPlugins() {
37643
37643
  const { editor: n } = this;
@@ -40380,7 +40380,6 @@ function cp({ history: n }) {
40380
40380
  return [
40381
40381
  x6,
40382
40382
  C6,
40383
- // GlobalDragHandle,
40384
40383
  HL,
40385
40384
  VL,
40386
40385
  VI,
@@ -54267,7 +54266,7 @@ const tU = {
54267
54266
  }, zU = { class: "smart-text-align-group" }, HU = {
54268
54267
  __name: "align-dropdown",
54269
54268
  setup(n) {
54270
- const { popupVisible: e, togglePopup: t } = Jn(), { editor: r } = de(), i = Ye(() => !r.value || r.value.isActive({ textAlign: "justify" }) ? "left" : r.value.isActive({ textAlign: "center" }) ? "center" : r.value.isActive({ textAlign: "right" }) ? "right" : r.value.isActive({ textAlign: "justify" }) ? "justify" : "left");
54269
+ const { popupVisible: e, togglePopup: t } = Jn(), { editor: r } = de(), i = Ye(() => !r.value || r.value.isActive({ textAlign: "left" }) ? "left" : r.value.isActive({ textAlign: "center" }) ? "center" : r.value.isActive({ textAlign: "right" }) ? "right" : r.value.isActive({ textAlign: "justify" }) ? "justify" : "left");
54271
54270
  return (o, s) => {
54272
54271
  var f;
54273
54272
  const a = FU, l = $U, c = PU, u = BU, d = Ie;
@@ -57329,7 +57328,7 @@ const pj = {
57329
57328
  }, Ij = { class: "smart-text-align-group" }, Lj = {
57330
57329
  __name: "align-dropdown",
57331
57330
  setup(n) {
57332
- const { popupVisible: e, togglePopup: t } = Jn(), { editor: r } = Ke(), i = Ye(() => !r.value || r.value.isActive({ textAlign: "justify" }) ? "left" : r.value.isActive({ textAlign: "center" }) ? "center" : r.value.isActive({ textAlign: "right" }) ? "right" : r.value.isActive({ textAlign: "justify" }) ? "justify" : "left");
57331
+ const { popupVisible: e, togglePopup: t } = Jn(), { editor: r } = Ke(), i = Ye(() => !r.value || r.value.isActive({ textAlign: "left" }) ? "left" : r.value.isActive({ textAlign: "center" }) ? "center" : r.value.isActive({ textAlign: "right" }) ? "right" : r.value.isActive({ textAlign: "justify" }) ? "justify" : "left");
57333
57332
  return (o, s) => {
57334
57333
  var f;
57335
57334
  const a = Dj, l = Oj, c = Nj, u = Mj, d = et;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "smart-editor-v3",
3
3
  "type": "module",
4
- "version": "1.8.3",
4
+ "version": "1.8.5",
5
5
  "exports": {
6
6
  ".": {
7
7
  "import": "./dist/smart-editor-package.js"
@@ -74,9 +74,7 @@
74
74
  "@tiptap-pro/extension-details": "^2.11.9",
75
75
  "@tiptap-pro/extension-details-content": "^2.11.9",
76
76
  "@tiptap-pro/extension-details-summary": "^2.11.9",
77
- "@tiptap-pro/extension-drag-handle": "^2.11.9",
78
77
  "@tiptap-pro/extension-mathematics": "^2.11.3",
79
- "@tiptap-pro/extension-node-range": "^2.11.9",
80
78
  "@tiptap-pro/extension-table-of-contents": "^2.11.3",
81
79
  "@unocss/eslint-config": "^0.62.3",
82
80
  "@unocss/eslint-plugin": "^0.62.3",