antdv-next-tiptap 1.0.2 → 1.0.3
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.
- package/dist/index.mjs +29 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -18,20 +18,19 @@ import Oe from "@tiptap/extension-code";
|
|
|
18
18
|
import ke from "@tiptap/extension-code-block-lowlight";
|
|
19
19
|
import { Color as Ae } from "@tiptap/extension-color";
|
|
20
20
|
import je from "@tiptap/extension-font-family";
|
|
21
|
-
import { FontSize as Me } from "@tiptap/extension-
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { Link as
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { Table as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import { TextStyle as Je } from "@tiptap/extension-text-style";
|
|
21
|
+
import { FontSize as Me, TextStyle as Ne } from "@tiptap/extension-text-style";
|
|
22
|
+
import Pe from "@tiptap/extension-heading";
|
|
23
|
+
import Fe from "@tiptap/extension-highlight";
|
|
24
|
+
import Ie from "@tiptap/extension-horizontal-rule";
|
|
25
|
+
import Le from "@tiptap/extension-image";
|
|
26
|
+
import Re from "@tiptap/extension-italic";
|
|
27
|
+
import { Link as ze } from "@tiptap/extension-link";
|
|
28
|
+
import Be from "@tiptap/extension-ordered-list";
|
|
29
|
+
import Ve from "@tiptap/extension-strike";
|
|
30
|
+
import { Table as He, TableCell as Ue, TableHeader as We, TableRow as Ge } from "@tiptap/extension-table";
|
|
31
|
+
import Ke from "@tiptap/extension-task-item";
|
|
32
|
+
import qe from "@tiptap/extension-task-list";
|
|
33
|
+
import Je from "@tiptap/extension-text-align";
|
|
35
34
|
import Ye from "@tiptap/extension-underline";
|
|
36
35
|
//#region \0rolldown/runtime.js
|
|
37
36
|
var Xe = Object.create, Ze = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, $e = Object.getOwnPropertyNames, et = Object.getPrototypeOf, tt = Object.prototype.hasOwnProperty, nt = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), rt = (e, t, n, r) => {
|
|
@@ -43,7 +42,7 @@ var Xe = Object.create, Ze = Object.defineProperty, Qe = Object.getOwnPropertyDe
|
|
|
43
42
|
}, it = (e, t, n) => (n = e == null ? {} : Xe(et(e)), rt(t || !e || !e.__esModule ? Ze(n, "default", {
|
|
44
43
|
value: e,
|
|
45
44
|
enumerable: !0
|
|
46
|
-
}) : n, e)), at = "1.0.
|
|
45
|
+
}) : n, e)), at = "1.0.3";
|
|
47
46
|
//#endregion
|
|
48
47
|
//#region src/composables/useHighlight.ts
|
|
49
48
|
function ot() {
|
|
@@ -8309,7 +8308,7 @@ var Kr = class {
|
|
|
8309
8308
|
}
|
|
8310
8309
|
}), [["__scopeId", "data-v-d1aa64d7"]]), ti = {
|
|
8311
8310
|
name: "heading",
|
|
8312
|
-
extensions: [
|
|
8311
|
+
extensions: [Pe.configure({ levels: [
|
|
8313
8312
|
1,
|
|
8314
8313
|
2,
|
|
8315
8314
|
3
|
|
@@ -8320,7 +8319,7 @@ var Kr = class {
|
|
|
8320
8319
|
}]
|
|
8321
8320
|
}, ni = {
|
|
8322
8321
|
name: "highlight",
|
|
8323
|
-
extensions: [
|
|
8322
|
+
extensions: [Fe.configure({ multicolor: !0 })],
|
|
8324
8323
|
toolbar: [{
|
|
8325
8324
|
type: "component",
|
|
8326
8325
|
render: (e) => E(_t, {
|
|
@@ -8333,7 +8332,7 @@ var Kr = class {
|
|
|
8333
8332
|
}]
|
|
8334
8333
|
}, ri = {
|
|
8335
8334
|
name: "horizontalRule",
|
|
8336
|
-
extensions: [
|
|
8335
|
+
extensions: [Ie],
|
|
8337
8336
|
toolbar: [{
|
|
8338
8337
|
icon: "ri:separator",
|
|
8339
8338
|
title: "分割线",
|
|
@@ -8658,7 +8657,7 @@ var Kr = class {
|
|
|
8658
8657
|
}
|
|
8659
8658
|
}), [["__scopeId", "data-v-8c741472"]]), mi = {
|
|
8660
8659
|
name: "image",
|
|
8661
|
-
extensions: [
|
|
8660
|
+
extensions: [Le.extend({
|
|
8662
8661
|
addAttributes() {
|
|
8663
8662
|
return {
|
|
8664
8663
|
...this.parent?.(),
|
|
@@ -8708,7 +8707,7 @@ var Kr = class {
|
|
|
8708
8707
|
}]
|
|
8709
8708
|
}, hi = {
|
|
8710
8709
|
name: "italic",
|
|
8711
|
-
extensions: [
|
|
8710
|
+
extensions: [Re],
|
|
8712
8711
|
toolbar: [{
|
|
8713
8712
|
icon: "ri:italic",
|
|
8714
8713
|
title: "斜体",
|
|
@@ -8818,17 +8817,17 @@ var Kr = class {
|
|
|
8818
8817
|
}
|
|
8819
8818
|
}), [["__scopeId", "data-v-60dcce95"]]), _i = {
|
|
8820
8819
|
name: "link",
|
|
8821
|
-
extensions: [
|
|
8820
|
+
extensions: [ze.configure({ openOnClick: !1 })],
|
|
8822
8821
|
toolbar: [{ divider: !0 }, {
|
|
8823
8822
|
type: "component",
|
|
8824
8823
|
render: (e) => E(gi, { editor: e }, null)
|
|
8825
8824
|
}]
|
|
8826
8825
|
}, vi = {
|
|
8827
8826
|
name: "orderedList",
|
|
8828
|
-
extensions: [
|
|
8827
|
+
extensions: [Be]
|
|
8829
8828
|
}, yi = {
|
|
8830
8829
|
name: "strike",
|
|
8831
|
-
extensions: [
|
|
8830
|
+
extensions: [Ve],
|
|
8832
8831
|
toolbar: [{
|
|
8833
8832
|
icon: "ri:strikethrough",
|
|
8834
8833
|
title: "删除线",
|
|
@@ -8885,7 +8884,7 @@ var Kr = class {
|
|
|
8885
8884
|
}, 8, ["open"]);
|
|
8886
8885
|
};
|
|
8887
8886
|
}
|
|
8888
|
-
}), [["__scopeId", "data-v-ae679706"]]), Ti =
|
|
8887
|
+
}), [["__scopeId", "data-v-ae679706"]]), Ti = Ge.extend({ addAttributes() {
|
|
8889
8888
|
return {
|
|
8890
8889
|
...this.parent?.(),
|
|
8891
8890
|
height: {
|
|
@@ -8897,10 +8896,10 @@ var Kr = class {
|
|
|
8897
8896
|
} }), Ei = {
|
|
8898
8897
|
name: "table",
|
|
8899
8898
|
extensions: [
|
|
8900
|
-
|
|
8899
|
+
He.configure({ resizable: !0 }),
|
|
8901
8900
|
Ti,
|
|
8902
|
-
|
|
8903
|
-
|
|
8901
|
+
We,
|
|
8902
|
+
Ue
|
|
8904
8903
|
],
|
|
8905
8904
|
toolbar: [{ divider: !0 }, {
|
|
8906
8905
|
type: "component",
|
|
@@ -8945,12 +8944,12 @@ var Kr = class {
|
|
|
8945
8944
|
}
|
|
8946
8945
|
}), [["__scopeId", "data-v-26025aef"]]), Oi = {
|
|
8947
8946
|
name: "taskList",
|
|
8948
|
-
extensions: [
|
|
8947
|
+
extensions: [qe, Ke.extend({ addNodeView() {
|
|
8949
8948
|
return K(Di);
|
|
8950
8949
|
} }).configure({ nested: !0 })]
|
|
8951
8950
|
}, ki = {
|
|
8952
8951
|
name: "textAlign",
|
|
8953
|
-
extensions: [
|
|
8952
|
+
extensions: [Je.configure({ types: ["heading", "paragraph"] })],
|
|
8954
8953
|
toolbar: [
|
|
8955
8954
|
{ divider: !0 },
|
|
8956
8955
|
{
|
|
@@ -8978,7 +8977,7 @@ var Kr = class {
|
|
|
8978
8977
|
isActive: (e) => e.isActive({ textAlign: "justify" })
|
|
8979
8978
|
}
|
|
8980
8979
|
]
|
|
8981
|
-
}, Ai = { extensions: [
|
|
8980
|
+
}, Ai = { extensions: [Ne] }, ji = {
|
|
8982
8981
|
name: "underline",
|
|
8983
8982
|
extensions: [Ye],
|
|
8984
8983
|
toolbar: [{
|