reactjs-tiptap-editor 0.2.12 → 0.2.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.
- package/lib/{RichTextEditor-DJJ5SBya.cjs → RichTextEditor-DBjHuER_.cjs} +92 -89
- package/lib/{RichTextEditor-CIenLXbH.js → RichTextEditor-DqXFuGeI.js} +91 -88
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +65 -65
- package/lib/extension-bundle.d.ts +65 -65
- package/lib/extension-bundle.js +5 -4
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +65 -65
- package/lib/index.d.ts +65 -65
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +65 -65
- package/lib/locale-bundle.d.ts +65 -65
- package/lib/style.css +1 -1
- package/lib/{tiptap-DKUVyykT.js → tiptap-24JNJPT1.js} +204 -203
- package/lib/{tiptap-BjxGiEhB.cjs → tiptap-DaE4Kxno.cjs} +12 -12
- package/package.json +54 -54
|
@@ -1371,7 +1371,7 @@ function as(e) {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
return null;
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function oi(e, t) {
|
|
1375
1375
|
const n = [];
|
|
1376
1376
|
return e.descendants((r, s) => {
|
|
1377
1377
|
t(r) && n.push({
|
|
@@ -1938,13 +1938,13 @@ const Is = P.create({
|
|
|
1938
1938
|
})
|
|
1939
1939
|
];
|
|
1940
1940
|
}
|
|
1941
|
-
}), Bs = P.create({
|
|
1941
|
+
}), Bs = new $("focusEvents"), js = P.create({
|
|
1942
1942
|
name: "focusEvents",
|
|
1943
1943
|
addProseMirrorPlugins() {
|
|
1944
1944
|
const { editor: e } = this;
|
|
1945
1945
|
return [
|
|
1946
1946
|
new H({
|
|
1947
|
-
key:
|
|
1947
|
+
key: Bs,
|
|
1948
1948
|
props: {
|
|
1949
1949
|
handleDOMEvents: {
|
|
1950
1950
|
focus: (t, n) => {
|
|
@@ -1962,7 +1962,7 @@ const Is = P.create({
|
|
|
1962
1962
|
})
|
|
1963
1963
|
];
|
|
1964
1964
|
}
|
|
1965
|
-
}),
|
|
1965
|
+
}), Fs = P.create({
|
|
1966
1966
|
name: "keymap",
|
|
1967
1967
|
addKeyboardShortcuts() {
|
|
1968
1968
|
const e = () => this.editor.commands.first(({ commands: i }) => [
|
|
@@ -2040,7 +2040,7 @@ const Is = P.create({
|
|
|
2040
2040
|
})
|
|
2041
2041
|
];
|
|
2042
2042
|
}
|
|
2043
|
-
}),
|
|
2043
|
+
}), zs = P.create({
|
|
2044
2044
|
name: "paste",
|
|
2045
2045
|
addProseMirrorPlugins() {
|
|
2046
2046
|
return [
|
|
@@ -2058,7 +2058,7 @@ const Is = P.create({
|
|
|
2058
2058
|
})
|
|
2059
2059
|
];
|
|
2060
2060
|
}
|
|
2061
|
-
}),
|
|
2061
|
+
}), Vs = P.create({
|
|
2062
2062
|
name: "tabindex",
|
|
2063
2063
|
addProseMirrorPlugins() {
|
|
2064
2064
|
return [
|
|
@@ -2194,7 +2194,7 @@ class q {
|
|
|
2194
2194
|
}), this.editor.view.dispatch(n);
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
2197
|
-
const
|
|
2197
|
+
const Ws = `.ProseMirror {
|
|
2198
2198
|
position: relative;
|
|
2199
2199
|
}
|
|
2200
2200
|
|
|
@@ -2269,14 +2269,14 @@ img.ProseMirror-separator {
|
|
|
2269
2269
|
.tippy-box[data-animation=fade][data-state=hidden] {
|
|
2270
2270
|
opacity: 0
|
|
2271
2271
|
}`;
|
|
2272
|
-
function
|
|
2272
|
+
function Ks(e, t, n) {
|
|
2273
2273
|
const r = document.querySelector("style[data-tiptap-style]");
|
|
2274
2274
|
if (r !== null)
|
|
2275
2275
|
return r;
|
|
2276
2276
|
const s = document.createElement("style");
|
|
2277
2277
|
return t && s.setAttribute("nonce", t), s.setAttribute("data-tiptap-style", ""), s.innerHTML = e, document.getElementsByTagName("head")[0].appendChild(s), s;
|
|
2278
2278
|
}
|
|
2279
|
-
class
|
|
2279
|
+
class Us extends nr {
|
|
2280
2280
|
constructor(t = {}) {
|
|
2281
2281
|
super(), this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.options = {
|
|
2282
2282
|
element: document.createElement("div"),
|
|
@@ -2338,7 +2338,7 @@ class Ks extends nr {
|
|
|
2338
2338
|
* Inject CSS styles.
|
|
2339
2339
|
*/
|
|
2340
2340
|
injectCSS() {
|
|
2341
|
-
this.options.injectCSS && document && (this.css = Ws
|
|
2341
|
+
this.options.injectCSS && document && (this.css = Ks(Ws, this.options.injectNonce));
|
|
2342
2342
|
}
|
|
2343
2343
|
/**
|
|
2344
2344
|
* Update editor options.
|
|
@@ -2412,11 +2412,11 @@ class Ks extends nr {
|
|
|
2412
2412
|
blockSeparator: (n = (t = this.options.coreExtensionOptions) === null || t === void 0 ? void 0 : t.clipboardTextSerializer) === null || n === void 0 ? void 0 : n.blockSeparator
|
|
2413
2413
|
}),
|
|
2414
2414
|
Is,
|
|
2415
|
-
Bs,
|
|
2416
2415
|
js,
|
|
2417
|
-
|
|
2416
|
+
Fs,
|
|
2417
|
+
Vs,
|
|
2418
2418
|
Ds,
|
|
2419
|
-
|
|
2419
|
+
zs
|
|
2420
2420
|
].filter((o) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[o.name] !== !1 : !0) : [], ...this.options.extensions].filter((o) => ["extension", "node", "mark"].includes(o == null ? void 0 : o.type));
|
|
2421
2421
|
this.extensionManager = new Z(s, this);
|
|
2422
2422
|
}
|
|
@@ -2731,7 +2731,7 @@ class _ {
|
|
|
2731
2731
|
})), n;
|
|
2732
2732
|
}
|
|
2733
2733
|
}
|
|
2734
|
-
class
|
|
2734
|
+
class qs {
|
|
2735
2735
|
constructor(t, n, r) {
|
|
2736
2736
|
this.isDragging = !1, this.component = t, this.editor = n.editor, this.options = {
|
|
2737
2737
|
stopEvent: null,
|
|
@@ -2754,15 +2754,16 @@ class Us {
|
|
|
2754
2754
|
return;
|
|
2755
2755
|
let p = 0, h = 0;
|
|
2756
2756
|
if (this.dom !== d) {
|
|
2757
|
-
const
|
|
2758
|
-
p =
|
|
2757
|
+
const M = this.dom.getBoundingClientRect(), v = d.getBoundingClientRect(), b = (s = t.offsetX) !== null && s !== void 0 ? s : (o = t.nativeEvent) === null || o === void 0 ? void 0 : o.offsetX, w = (i = t.offsetY) !== null && i !== void 0 ? i : (a = t.nativeEvent) === null || a === void 0 ? void 0 : a.offsetY;
|
|
2758
|
+
p = v.x - M.x + b, h = v.y - M.y + w;
|
|
2759
2759
|
}
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2760
|
+
const m = this.dom.cloneNode(!0);
|
|
2761
|
+
(c = t.dataTransfer) === null || c === void 0 || c.setDragImage(m, p, h);
|
|
2762
|
+
const f = this.getPos();
|
|
2763
|
+
if (typeof f != "number")
|
|
2763
2764
|
return;
|
|
2764
|
-
const
|
|
2765
|
-
l.dispatch(
|
|
2765
|
+
const g = tt.create(l.state.doc, f), y = l.state.tr.setSelection(g);
|
|
2766
|
+
l.dispatch(y);
|
|
2766
2767
|
}
|
|
2767
2768
|
stopEvent(t) {
|
|
2768
2769
|
var n;
|
|
@@ -2843,10 +2844,10 @@ function W(e) {
|
|
|
2843
2844
|
}
|
|
2844
2845
|
});
|
|
2845
2846
|
}
|
|
2846
|
-
function
|
|
2847
|
+
function Gs(e) {
|
|
2847
2848
|
return e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
2848
2849
|
}
|
|
2849
|
-
function
|
|
2850
|
+
function ii(e) {
|
|
2850
2851
|
return new Re({
|
|
2851
2852
|
find: e.find,
|
|
2852
2853
|
handler({ match: t, chain: n, range: r, pasteEvent: s }) {
|
|
@@ -2858,7 +2859,7 @@ function oi(e) {
|
|
|
2858
2859
|
}
|
|
2859
2860
|
});
|
|
2860
2861
|
}
|
|
2861
|
-
class
|
|
2862
|
+
class Js {
|
|
2862
2863
|
constructor({ editor: t, element: n, view: r, tippyOptions: s = {}, updateDelay: o = 250, shouldShow: i }) {
|
|
2863
2864
|
this.preventHide = !1, this.shouldShow = ({ view: a, state: c, from: l, to: u }) => {
|
|
2864
2865
|
const { doc: d, selection: p } = c, { empty: h } = p, m = !d.textBetween(l, u).length && Jt(c.selection), f = this.element.contains(document.activeElement);
|
|
@@ -2954,7 +2955,7 @@ class Gs {
|
|
|
2954
2955
|
}
|
|
2955
2956
|
const Ue = (e) => new H({
|
|
2956
2957
|
key: typeof e.pluginKey == "string" ? new $(e.pluginKey) : e.pluginKey,
|
|
2957
|
-
view: (t) => new
|
|
2958
|
+
view: (t) => new Js({ view: t, ...e })
|
|
2958
2959
|
});
|
|
2959
2960
|
P.create({
|
|
2960
2961
|
name: "bubbleMenu",
|
|
@@ -2980,7 +2981,7 @@ P.create({
|
|
|
2980
2981
|
] : [];
|
|
2981
2982
|
}
|
|
2982
2983
|
});
|
|
2983
|
-
function
|
|
2984
|
+
function Ys(e) {
|
|
2984
2985
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2985
2986
|
}
|
|
2986
2987
|
var Nt = { exports: {} }, _t = {};
|
|
@@ -2994,7 +2995,7 @@ var Nt = { exports: {} }, _t = {};
|
|
|
2994
2995
|
* LICENSE file in the root directory of this source tree.
|
|
2995
2996
|
*/
|
|
2996
2997
|
var he;
|
|
2997
|
-
function
|
|
2998
|
+
function Xs() {
|
|
2998
2999
|
if (he) return _t;
|
|
2999
3000
|
he = 1;
|
|
3000
3001
|
var e = O;
|
|
@@ -3039,7 +3040,7 @@ var Pt = {};
|
|
|
3039
3040
|
* LICENSE file in the root directory of this source tree.
|
|
3040
3041
|
*/
|
|
3041
3042
|
var fe;
|
|
3042
|
-
function
|
|
3043
|
+
function Qs() {
|
|
3043
3044
|
return fe || (fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3044
3045
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
3045
3046
|
var e = O, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -3109,17 +3110,17 @@ function Xs() {
|
|
|
3109
3110
|
Pt.useSyncExternalStore = M, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
3110
3111
|
}()), Pt;
|
|
3111
3112
|
}
|
|
3112
|
-
process.env.NODE_ENV === "production" ? Nt.exports =
|
|
3113
|
+
process.env.NODE_ENV === "production" ? Nt.exports = Xs() : Nt.exports = Qs();
|
|
3113
3114
|
var Et = Nt.exports;
|
|
3114
|
-
const
|
|
3115
|
+
const Zs = (...e) => (t) => {
|
|
3115
3116
|
e.forEach((n) => {
|
|
3116
3117
|
typeof n == "function" ? n(t) : n && (n.current = t);
|
|
3117
3118
|
});
|
|
3118
|
-
},
|
|
3119
|
+
}, to = ({ contentComponent: e }) => {
|
|
3119
3120
|
const t = Et.useSyncExternalStore(e.subscribe, e.getSnapshot, e.getServerSnapshot);
|
|
3120
3121
|
return O.createElement(O.Fragment, null, Object.values(t));
|
|
3121
3122
|
};
|
|
3122
|
-
function
|
|
3123
|
+
function eo() {
|
|
3123
3124
|
const e = /* @__PURE__ */ new Set();
|
|
3124
3125
|
let t = {};
|
|
3125
3126
|
return {
|
|
@@ -3155,7 +3156,7 @@ function to() {
|
|
|
3155
3156
|
}
|
|
3156
3157
|
};
|
|
3157
3158
|
}
|
|
3158
|
-
class
|
|
3159
|
+
class no extends O.Component {
|
|
3159
3160
|
constructor(t) {
|
|
3160
3161
|
var n;
|
|
3161
3162
|
super(t), this.editorContentRef = O.createRef(), this.initialized = !1, this.state = {
|
|
@@ -3176,7 +3177,7 @@ class eo extends O.Component {
|
|
|
3176
3177
|
const n = this.editorContentRef.current;
|
|
3177
3178
|
n.append(...t.options.element.childNodes), t.setOptions({
|
|
3178
3179
|
element: n
|
|
3179
|
-
}), t.contentComponent =
|
|
3180
|
+
}), t.contentComponent = eo(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = t.contentComponent.subscribe(() => {
|
|
3180
3181
|
this.setState((r) => r.hasContentComponentInitialized ? r : {
|
|
3181
3182
|
hasContentComponentInitialized: !0
|
|
3182
3183
|
}), this.unsubscribeToContentComponent && this.unsubscribeToContentComponent();
|
|
@@ -3199,20 +3200,20 @@ class eo extends O.Component {
|
|
|
3199
3200
|
return O.createElement(
|
|
3200
3201
|
O.Fragment,
|
|
3201
3202
|
null,
|
|
3202
|
-
O.createElement("div", { ref:
|
|
3203
|
-
(t == null ? void 0 : t.contentComponent) && O.createElement(
|
|
3203
|
+
O.createElement("div", { ref: Zs(n, this.editorContentRef), ...r }),
|
|
3204
|
+
(t == null ? void 0 : t.contentComponent) && O.createElement(to, { contentComponent: t.contentComponent })
|
|
3204
3205
|
);
|
|
3205
3206
|
}
|
|
3206
3207
|
}
|
|
3207
|
-
const
|
|
3208
|
+
const ro = Qn((e, t) => {
|
|
3208
3209
|
const n = O.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
|
|
3209
|
-
return O.createElement(
|
|
3210
|
+
return O.createElement(no, {
|
|
3210
3211
|
key: n,
|
|
3211
3212
|
innerRef: t,
|
|
3212
3213
|
...e
|
|
3213
3214
|
});
|
|
3214
|
-
}),
|
|
3215
|
-
var
|
|
3215
|
+
}), ai = O.memo(ro);
|
|
3216
|
+
var so = function e(t, n) {
|
|
3216
3217
|
if (t === n) return !0;
|
|
3217
3218
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
3218
3219
|
if (t.constructor !== n.constructor) return !1;
|
|
@@ -3257,7 +3258,7 @@ var ro = function e(t, n) {
|
|
|
3257
3258
|
return !0;
|
|
3258
3259
|
}
|
|
3259
3260
|
return t !== t && n !== n;
|
|
3260
|
-
},
|
|
3261
|
+
}, oo = /* @__PURE__ */ Ys(so), Bt = { exports: {} }, Rt = {};
|
|
3261
3262
|
/**
|
|
3262
3263
|
* @license React
|
|
3263
3264
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -3268,7 +3269,7 @@ var ro = function e(t, n) {
|
|
|
3268
3269
|
* LICENSE file in the root directory of this source tree.
|
|
3269
3270
|
*/
|
|
3270
3271
|
var me;
|
|
3271
|
-
function
|
|
3272
|
+
function io() {
|
|
3272
3273
|
if (me) return Rt;
|
|
3273
3274
|
me = 1;
|
|
3274
3275
|
var e = O, t = Et;
|
|
@@ -3319,7 +3320,7 @@ var Ht = {};
|
|
|
3319
3320
|
* LICENSE file in the root directory of this source tree.
|
|
3320
3321
|
*/
|
|
3321
3322
|
var ge;
|
|
3322
|
-
function
|
|
3323
|
+
function ao() {
|
|
3323
3324
|
return ge || (ge = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3324
3325
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
3325
3326
|
var e = O, t = Et;
|
|
@@ -3364,10 +3365,10 @@ function io() {
|
|
|
3364
3365
|
Ht.useSyncExternalStoreWithSelector = l, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
3365
3366
|
}()), Ht;
|
|
3366
3367
|
}
|
|
3367
|
-
process.env.NODE_ENV === "production" ? Bt.exports =
|
|
3368
|
-
var
|
|
3369
|
-
const
|
|
3370
|
-
class
|
|
3368
|
+
process.env.NODE_ENV === "production" ? Bt.exports = io() : Bt.exports = ao();
|
|
3369
|
+
var lo = Bt.exports;
|
|
3370
|
+
const co = typeof window < "u" ? Zn : Kt;
|
|
3371
|
+
class uo {
|
|
3371
3372
|
constructor(t) {
|
|
3372
3373
|
this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = t, this.lastSnapshot = { editor: t, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
|
|
3373
3374
|
}
|
|
@@ -3405,12 +3406,12 @@ class co {
|
|
|
3405
3406
|
}
|
|
3406
3407
|
}
|
|
3407
3408
|
}
|
|
3408
|
-
function
|
|
3409
|
+
function po(e) {
|
|
3409
3410
|
var t;
|
|
3410
|
-
const [n] = Wt(() => new
|
|
3411
|
-
return
|
|
3411
|
+
const [n] = Wt(() => new uo(e.editor)), r = lo.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, e.selector, (t = e.equalityFn) !== null && t !== void 0 ? t : oo);
|
|
3412
|
+
return co(() => n.watch(e.editor), [e.editor, n]), Ae(r), r;
|
|
3412
3413
|
}
|
|
3413
|
-
const ye = process.env.NODE_ENV !== "production", jt = typeof window > "u",
|
|
3414
|
+
const ye = process.env.NODE_ENV !== "production", jt = typeof window > "u", ho = jt || !!(typeof window < "u" && window.next);
|
|
3414
3415
|
class Qt {
|
|
3415
3416
|
constructor(t) {
|
|
3416
3417
|
this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = t, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
|
|
@@ -3420,7 +3421,7 @@ class Qt {
|
|
|
3420
3421
|
}
|
|
3421
3422
|
getInitialEditor() {
|
|
3422
3423
|
if (this.options.current.immediatelyRender === void 0)
|
|
3423
|
-
return jt ||
|
|
3424
|
+
return jt || ho ? (ye && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
|
|
3424
3425
|
if (this.options.current.immediatelyRender && jt && ye)
|
|
3425
3426
|
throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");
|
|
3426
3427
|
return this.options.current.immediatelyRender ? this.createEditor() : null;
|
|
@@ -3477,7 +3478,7 @@ class Qt {
|
|
|
3477
3478
|
return (o = (s = this.options.current).onPaste) === null || o === void 0 ? void 0 : o.call(s, ...r);
|
|
3478
3479
|
}
|
|
3479
3480
|
};
|
|
3480
|
-
return new
|
|
3481
|
+
return new Us(t);
|
|
3481
3482
|
}
|
|
3482
3483
|
/**
|
|
3483
3484
|
* Get the current editor instance.
|
|
@@ -3548,11 +3549,11 @@ class Qt {
|
|
|
3548
3549
|
}, 1);
|
|
3549
3550
|
}
|
|
3550
3551
|
}
|
|
3551
|
-
function
|
|
3552
|
+
function li(e = {}, t = []) {
|
|
3552
3553
|
const n = Xn(e);
|
|
3553
3554
|
n.current = e;
|
|
3554
3555
|
const [r] = Wt(() => new Qt(n)), s = Et.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
|
3555
|
-
return Ae(s), Kt(r.onRender(t)),
|
|
3556
|
+
return Ae(s), Kt(r.onRender(t)), po({
|
|
3556
3557
|
editor: s,
|
|
3557
3558
|
selector: ({ transactionNumber: o }) => e.shouldRerenderOnTransaction === !1 ? null : e.immediatelyRender && o === 0 ? 0 : o + 1
|
|
3558
3559
|
}), s;
|
|
@@ -3561,8 +3562,8 @@ const qe = Le({
|
|
|
3561
3562
|
editor: null
|
|
3562
3563
|
});
|
|
3563
3564
|
qe.Consumer;
|
|
3564
|
-
const
|
|
3565
|
-
const [t, n] = Wt(null), { editor: r } =
|
|
3565
|
+
const fo = () => Oe(qe), ci = (e) => {
|
|
3566
|
+
const [t, n] = Wt(null), { editor: r } = fo();
|
|
3566
3567
|
return Kt(() => {
|
|
3567
3568
|
var s;
|
|
3568
3569
|
if (!t || !((s = e.editor) === null || s === void 0) && s.isDestroyed || r != null && r.isDestroyed)
|
|
@@ -3586,7 +3587,7 @@ const ho = () => Oe(qe), li = (e) => {
|
|
|
3586
3587
|
}, [e.editor, r, t]), O.createElement("div", { ref: n, className: e.className, style: { visibility: "hidden" } }, e.children);
|
|
3587
3588
|
}, Ge = Le({
|
|
3588
3589
|
onDragStart: void 0
|
|
3589
|
-
}), Je = () => Oe(Ge),
|
|
3590
|
+
}), Je = () => Oe(Ge), di = (e) => {
|
|
3590
3591
|
const t = e.as || "div", { nodeViewContentRef: n } = Je();
|
|
3591
3592
|
return (
|
|
3592
3593
|
// @ts-ignore
|
|
@@ -3595,7 +3596,7 @@ const ho = () => Oe(qe), li = (e) => {
|
|
|
3595
3596
|
...e.style
|
|
3596
3597
|
} })
|
|
3597
3598
|
);
|
|
3598
|
-
},
|
|
3599
|
+
}, ui = O.forwardRef((e, t) => {
|
|
3599
3600
|
const { onDragStart: n } = Je(), r = e.as || "div";
|
|
3600
3601
|
return (
|
|
3601
3602
|
// @ts-ignore
|
|
@@ -3605,14 +3606,14 @@ const ho = () => Oe(qe), li = (e) => {
|
|
|
3605
3606
|
} })
|
|
3606
3607
|
);
|
|
3607
3608
|
});
|
|
3608
|
-
function
|
|
3609
|
+
function mo(e) {
|
|
3609
3610
|
return !!(typeof e == "function" && e.prototype && e.prototype.isReactComponent);
|
|
3610
3611
|
}
|
|
3611
|
-
function
|
|
3612
|
+
function go(e) {
|
|
3612
3613
|
var t;
|
|
3613
3614
|
return typeof e == "object" && ((t = e.$$typeof) === null || t === void 0 ? void 0 : t.toString()) === "Symbol(react.forward_ref)";
|
|
3614
3615
|
}
|
|
3615
|
-
class
|
|
3616
|
+
class yo {
|
|
3616
3617
|
/**
|
|
3617
3618
|
* Immediately creates element and renders the provided React component.
|
|
3618
3619
|
*/
|
|
@@ -3627,7 +3628,7 @@ class go {
|
|
|
3627
3628
|
render() {
|
|
3628
3629
|
var t;
|
|
3629
3630
|
const n = this.component, r = this.props, s = this.editor;
|
|
3630
|
-
(
|
|
3631
|
+
(mo(n) || go(n)) && (r.ref = (o) => {
|
|
3631
3632
|
this.ref = o;
|
|
3632
3633
|
}), this.reactElement = O.createElement(n, { ...r }), (t = s == null ? void 0 : s.contentComponent) === null || t === void 0 || t.setRenderer(this.id, this);
|
|
3633
3634
|
}
|
|
@@ -3657,7 +3658,7 @@ class go {
|
|
|
3657
3658
|
});
|
|
3658
3659
|
}
|
|
3659
3660
|
}
|
|
3660
|
-
class
|
|
3661
|
+
class vo extends qs {
|
|
3661
3662
|
/**
|
|
3662
3663
|
* Setup the React component.
|
|
3663
3664
|
* Called on initialization.
|
|
@@ -3687,7 +3688,7 @@ class yo extends Us {
|
|
|
3687
3688
|
let a = this.node.isInline ? "span" : "div";
|
|
3688
3689
|
this.options.as && (a = this.options.as);
|
|
3689
3690
|
const { className: c = "" } = this.options;
|
|
3690
|
-
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.renderer = new
|
|
3691
|
+
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.renderer = new yo(i, {
|
|
3691
3692
|
editor: this.editor,
|
|
3692
3693
|
props: t,
|
|
3693
3694
|
as: a,
|
|
@@ -3792,10 +3793,10 @@ class yo extends Us {
|
|
|
3792
3793
|
}
|
|
3793
3794
|
}
|
|
3794
3795
|
}
|
|
3795
|
-
function
|
|
3796
|
-
return (n) => n.editor.contentComponent ? new
|
|
3796
|
+
function pi(e, t) {
|
|
3797
|
+
return (n) => n.editor.contentComponent ? new vo(e, n, t) : {};
|
|
3797
3798
|
}
|
|
3798
|
-
const
|
|
3799
|
+
const bo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Mo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, So = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, ko = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, hi = N.create({
|
|
3799
3800
|
name: "bold",
|
|
3800
3801
|
addOptions() {
|
|
3801
3802
|
return {
|
|
@@ -3840,11 +3841,11 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
3840
3841
|
addInputRules() {
|
|
3841
3842
|
return [
|
|
3842
3843
|
J({
|
|
3843
|
-
find:
|
|
3844
|
+
find: bo,
|
|
3844
3845
|
type: this.type
|
|
3845
3846
|
}),
|
|
3846
3847
|
J({
|
|
3847
|
-
find:
|
|
3848
|
+
find: So,
|
|
3848
3849
|
type: this.type
|
|
3849
3850
|
})
|
|
3850
3851
|
];
|
|
@@ -3852,16 +3853,16 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
3852
3853
|
addPasteRules() {
|
|
3853
3854
|
return [
|
|
3854
3855
|
W({
|
|
3855
|
-
find:
|
|
3856
|
+
find: Mo,
|
|
3856
3857
|
type: this.type
|
|
3857
3858
|
}),
|
|
3858
3859
|
W({
|
|
3859
|
-
find:
|
|
3860
|
+
find: ko,
|
|
3860
3861
|
type: this.type
|
|
3861
3862
|
})
|
|
3862
3863
|
];
|
|
3863
3864
|
}
|
|
3864
|
-
}),
|
|
3865
|
+
}), wo = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Eo = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, To = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Co = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, fi = N.create({
|
|
3865
3866
|
name: "italic",
|
|
3866
3867
|
addOptions() {
|
|
3867
3868
|
return {
|
|
@@ -3905,11 +3906,11 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
3905
3906
|
addInputRules() {
|
|
3906
3907
|
return [
|
|
3907
3908
|
J({
|
|
3908
|
-
find:
|
|
3909
|
+
find: wo,
|
|
3909
3910
|
type: this.type
|
|
3910
3911
|
}),
|
|
3911
3912
|
J({
|
|
3912
|
-
find:
|
|
3913
|
+
find: To,
|
|
3913
3914
|
type: this.type
|
|
3914
3915
|
})
|
|
3915
3916
|
];
|
|
@@ -3917,16 +3918,16 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
3917
3918
|
addPasteRules() {
|
|
3918
3919
|
return [
|
|
3919
3920
|
W({
|
|
3920
|
-
find:
|
|
3921
|
+
find: Eo,
|
|
3921
3922
|
type: this.type
|
|
3922
3923
|
}),
|
|
3923
3924
|
W({
|
|
3924
|
-
find:
|
|
3925
|
+
find: Co,
|
|
3925
3926
|
type: this.type
|
|
3926
3927
|
})
|
|
3927
3928
|
];
|
|
3928
3929
|
}
|
|
3929
|
-
}),
|
|
3930
|
+
}), mi = N.create({
|
|
3930
3931
|
name: "underline",
|
|
3931
3932
|
addOptions() {
|
|
3932
3933
|
return {
|
|
@@ -3961,7 +3962,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
3961
3962
|
"Mod-U": () => this.editor.commands.toggleUnderline()
|
|
3962
3963
|
};
|
|
3963
3964
|
}
|
|
3964
|
-
}),
|
|
3965
|
+
}), xo = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Ao = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, gi = N.create({
|
|
3965
3966
|
name: "strike",
|
|
3966
3967
|
addOptions() {
|
|
3967
3968
|
return {
|
|
@@ -4004,7 +4005,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4004
4005
|
addInputRules() {
|
|
4005
4006
|
return [
|
|
4006
4007
|
J({
|
|
4007
|
-
find:
|
|
4008
|
+
find: xo,
|
|
4008
4009
|
type: this.type
|
|
4009
4010
|
})
|
|
4010
4011
|
];
|
|
@@ -4012,12 +4013,12 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4012
4013
|
addPasteRules() {
|
|
4013
4014
|
return [
|
|
4014
4015
|
W({
|
|
4015
|
-
find:
|
|
4016
|
+
find: Ao,
|
|
4016
4017
|
type: this.type
|
|
4017
4018
|
})
|
|
4018
4019
|
];
|
|
4019
4020
|
}
|
|
4020
|
-
}),
|
|
4021
|
+
}), Oo = /(^|[^`])`([^`]+)`(?!`)/, Lo = /(^|[^`])`([^`]+)`(?!`)/g, yi = N.create({
|
|
4021
4022
|
name: "code",
|
|
4022
4023
|
addOptions() {
|
|
4023
4024
|
return {
|
|
@@ -4050,7 +4051,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4050
4051
|
addInputRules() {
|
|
4051
4052
|
return [
|
|
4052
4053
|
J({
|
|
4053
|
-
find:
|
|
4054
|
+
find: Oo,
|
|
4054
4055
|
type: this.type
|
|
4055
4056
|
})
|
|
4056
4057
|
];
|
|
@@ -4058,12 +4059,12 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4058
4059
|
addPasteRules() {
|
|
4059
4060
|
return [
|
|
4060
4061
|
W({
|
|
4061
|
-
find:
|
|
4062
|
+
find: Lo,
|
|
4062
4063
|
type: this.type
|
|
4063
4064
|
})
|
|
4064
4065
|
];
|
|
4065
4066
|
}
|
|
4066
|
-
}),
|
|
4067
|
+
}), _o = /^```([a-z]+)?[\s\n]$/, Po = /^~~~([a-z]+)?[\s\n]$/, vi = _.create({
|
|
4067
4068
|
name: "codeBlock",
|
|
4068
4069
|
addOptions() {
|
|
4069
4070
|
return {
|
|
@@ -4154,14 +4155,14 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4154
4155
|
addInputRules() {
|
|
4155
4156
|
return [
|
|
4156
4157
|
Dt({
|
|
4157
|
-
find:
|
|
4158
|
+
find: _o,
|
|
4158
4159
|
type: this.type,
|
|
4159
4160
|
getAttributes: (e) => ({
|
|
4160
4161
|
language: e[1]
|
|
4161
4162
|
})
|
|
4162
4163
|
}),
|
|
4163
4164
|
Dt({
|
|
4164
|
-
find:
|
|
4165
|
+
find: Po,
|
|
4165
4166
|
type: this.type,
|
|
4166
4167
|
getAttributes: (e) => ({
|
|
4167
4168
|
language: e[1]
|
|
@@ -4190,7 +4191,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4190
4191
|
})
|
|
4191
4192
|
];
|
|
4192
4193
|
}
|
|
4193
|
-
}),
|
|
4194
|
+
}), Ro = (e) => {
|
|
4194
4195
|
if (!e.children.length)
|
|
4195
4196
|
return;
|
|
4196
4197
|
const t = e.querySelectorAll("span");
|
|
@@ -4199,7 +4200,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4199
4200
|
const o = n.getAttribute("style"), i = (s = (r = n.parentElement) === null || r === void 0 ? void 0 : r.closest("span")) === null || s === void 0 ? void 0 : s.getAttribute("style");
|
|
4200
4201
|
n.setAttribute("style", `${i};${o}`);
|
|
4201
4202
|
});
|
|
4202
|
-
},
|
|
4203
|
+
}, bi = N.create({
|
|
4203
4204
|
name: "textStyle",
|
|
4204
4205
|
priority: 101,
|
|
4205
4206
|
addOptions() {
|
|
@@ -4212,7 +4213,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4212
4213
|
return [
|
|
4213
4214
|
{
|
|
4214
4215
|
tag: "span",
|
|
4215
|
-
getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles &&
|
|
4216
|
+
getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && Ro(e), {}) : !1
|
|
4216
4217
|
}
|
|
4217
4218
|
];
|
|
4218
4219
|
},
|
|
@@ -4231,7 +4232,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4231
4232
|
}
|
|
4232
4233
|
};
|
|
4233
4234
|
}
|
|
4234
|
-
}),
|
|
4235
|
+
}), Mi = P.create({
|
|
4235
4236
|
name: "fontFamily",
|
|
4236
4237
|
addOptions() {
|
|
4237
4238
|
return {
|
|
@@ -4260,7 +4261,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4260
4261
|
unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
|
|
4261
4262
|
};
|
|
4262
4263
|
}
|
|
4263
|
-
}),
|
|
4264
|
+
}), Si = _.create({
|
|
4264
4265
|
name: "heading",
|
|
4265
4266
|
addOptions() {
|
|
4266
4267
|
return {
|
|
@@ -4309,7 +4310,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4309
4310
|
}
|
|
4310
4311
|
}));
|
|
4311
4312
|
}
|
|
4312
|
-
}),
|
|
4313
|
+
}), ki = P.create({
|
|
4313
4314
|
name: "textAlign",
|
|
4314
4315
|
addOptions() {
|
|
4315
4316
|
return {
|
|
@@ -4349,7 +4350,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4349
4350
|
"Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
|
|
4350
4351
|
};
|
|
4351
4352
|
}
|
|
4352
|
-
}),
|
|
4353
|
+
}), wi = P.create({
|
|
4353
4354
|
name: "color",
|
|
4354
4355
|
addOptions() {
|
|
4355
4356
|
return {
|
|
@@ -4381,7 +4382,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4381
4382
|
unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
|
|
4382
4383
|
};
|
|
4383
4384
|
}
|
|
4384
|
-
}),
|
|
4385
|
+
}), Ho = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, $o = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, Ei = N.create({
|
|
4385
4386
|
name: "highlight",
|
|
4386
4387
|
addOptions() {
|
|
4387
4388
|
return {
|
|
@@ -4426,7 +4427,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4426
4427
|
addInputRules() {
|
|
4427
4428
|
return [
|
|
4428
4429
|
J({
|
|
4429
|
-
find:
|
|
4430
|
+
find: Ho,
|
|
4430
4431
|
type: this.type
|
|
4431
4432
|
})
|
|
4432
4433
|
];
|
|
@@ -4434,12 +4435,12 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4434
4435
|
addPasteRules() {
|
|
4435
4436
|
return [
|
|
4436
4437
|
W({
|
|
4437
|
-
find:
|
|
4438
|
+
find: $o,
|
|
4438
4439
|
type: this.type
|
|
4439
4440
|
})
|
|
4440
4441
|
];
|
|
4441
4442
|
}
|
|
4442
|
-
}),
|
|
4443
|
+
}), Io = "listItem", ve = "textStyle", be = /^\s*([-+*])\s$/, Ti = _.create({
|
|
4443
4444
|
name: "bulletList",
|
|
4444
4445
|
addOptions() {
|
|
4445
4446
|
return {
|
|
@@ -4463,7 +4464,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4463
4464
|
},
|
|
4464
4465
|
addCommands() {
|
|
4465
4466
|
return {
|
|
4466
|
-
toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
4467
|
+
toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Io, this.editor.getAttributes(ve)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
4467
4468
|
};
|
|
4468
4469
|
},
|
|
4469
4470
|
addKeyboardShortcuts() {
|
|
@@ -4487,7 +4488,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4487
4488
|
e
|
|
4488
4489
|
];
|
|
4489
4490
|
}
|
|
4490
|
-
}),
|
|
4491
|
+
}), Do = "listItem", Me = "textStyle", Se = /^(\d+)\.\s$/, Ci = _.create({
|
|
4491
4492
|
name: "orderedList",
|
|
4492
4493
|
addOptions() {
|
|
4493
4494
|
return {
|
|
@@ -4508,7 +4509,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4508
4509
|
parseHTML: (e) => e.hasAttribute("start") ? parseInt(e.getAttribute("start") || "", 10) : 1
|
|
4509
4510
|
},
|
|
4510
4511
|
type: {
|
|
4511
|
-
default:
|
|
4512
|
+
default: null,
|
|
4512
4513
|
parseHTML: (e) => e.getAttribute("type")
|
|
4513
4514
|
}
|
|
4514
4515
|
};
|
|
@@ -4526,7 +4527,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4526
4527
|
},
|
|
4527
4528
|
addCommands() {
|
|
4528
4529
|
return {
|
|
4529
|
-
toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
4530
|
+
toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Do, this.editor.getAttributes(Me)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
4530
4531
|
};
|
|
4531
4532
|
},
|
|
4532
4533
|
addKeyboardShortcuts() {
|
|
@@ -4553,7 +4554,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4553
4554
|
e
|
|
4554
4555
|
];
|
|
4555
4556
|
}
|
|
4556
|
-
}),
|
|
4557
|
+
}), No = /^\s*(\[([( |x])?\])\s$/, xi = _.create({
|
|
4557
4558
|
name: "taskItem",
|
|
4558
4559
|
addOptions() {
|
|
4559
4560
|
return {
|
|
@@ -4652,7 +4653,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4652
4653
|
addInputRules() {
|
|
4653
4654
|
return [
|
|
4654
4655
|
et({
|
|
4655
|
-
find:
|
|
4656
|
+
find: No,
|
|
4656
4657
|
type: this.type,
|
|
4657
4658
|
getAttributes: (e) => ({
|
|
4658
4659
|
checked: e[e.length - 1] === "x"
|
|
@@ -4660,7 +4661,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4660
4661
|
})
|
|
4661
4662
|
];
|
|
4662
4663
|
}
|
|
4663
|
-
}),
|
|
4664
|
+
}), Ai = _.create({
|
|
4664
4665
|
name: "taskList",
|
|
4665
4666
|
addOptions() {
|
|
4666
4667
|
return {
|
|
@@ -4693,7 +4694,7 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4693
4694
|
"Mod-Shift-9": () => this.editor.commands.toggleTaskList()
|
|
4694
4695
|
};
|
|
4695
4696
|
}
|
|
4696
|
-
}),
|
|
4697
|
+
}), Bo = /^\s*>\s$/, Oi = _.create({
|
|
4697
4698
|
name: "blockquote",
|
|
4698
4699
|
addOptions() {
|
|
4699
4700
|
return {
|
|
@@ -4726,16 +4727,16 @@ const vo = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, bo = /(?:^|\s
|
|
|
4726
4727
|
addInputRules() {
|
|
4727
4728
|
return [
|
|
4728
4729
|
et({
|
|
4729
|
-
find:
|
|
4730
|
+
find: Bo,
|
|
4730
4731
|
type: this.type
|
|
4731
4732
|
})
|
|
4732
4733
|
];
|
|
4733
4734
|
}
|
|
4734
4735
|
});
|
|
4735
|
-
function
|
|
4736
|
+
function jo(e) {
|
|
4736
4737
|
return e.length === 1 ? e[0].isLink : e.length === 3 && e[1].isLink ? ["()", "[]"].includes(e[0].value + e[2].value) : !1;
|
|
4737
4738
|
}
|
|
4738
|
-
function
|
|
4739
|
+
function Fo(e) {
|
|
4739
4740
|
return new H({
|
|
4740
4741
|
key: new $("autolink"),
|
|
4741
4742
|
appendTransaction: (t, n, r) => {
|
|
@@ -4754,7 +4755,7 @@ function jo(e) {
|
|
|
4754
4755
|
if (!m)
|
|
4755
4756
|
return !1;
|
|
4756
4757
|
const g = Pn(m).map((y) => y.toObject(e.defaultProtocol));
|
|
4757
|
-
if (!
|
|
4758
|
+
if (!jo(g))
|
|
4758
4759
|
return !1;
|
|
4759
4760
|
g.filter((y) => y.isLink).map((y) => ({
|
|
4760
4761
|
...y,
|
|
@@ -4771,7 +4772,7 @@ function jo(e) {
|
|
|
4771
4772
|
}
|
|
4772
4773
|
});
|
|
4773
4774
|
}
|
|
4774
|
-
function
|
|
4775
|
+
function zo(e) {
|
|
4775
4776
|
return new H({
|
|
4776
4777
|
key: new $("handleClickLink"),
|
|
4777
4778
|
props: {
|
|
@@ -4791,7 +4792,7 @@ function Fo(e) {
|
|
|
4791
4792
|
}
|
|
4792
4793
|
});
|
|
4793
4794
|
}
|
|
4794
|
-
function
|
|
4795
|
+
function Vo(e) {
|
|
4795
4796
|
return new H({
|
|
4796
4797
|
key: new $("handlePasteLink"),
|
|
4797
4798
|
props: {
|
|
@@ -4811,7 +4812,7 @@ function zo(e) {
|
|
|
4811
4812
|
}
|
|
4812
4813
|
});
|
|
4813
4814
|
}
|
|
4814
|
-
const
|
|
4815
|
+
const Wo = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
|
|
4815
4816
|
function U(e, t) {
|
|
4816
4817
|
const n = [
|
|
4817
4818
|
"http",
|
|
@@ -4828,13 +4829,13 @@ function U(e, t) {
|
|
|
4828
4829
|
return t && t.forEach((r) => {
|
|
4829
4830
|
const s = typeof r == "string" ? r : r.scheme;
|
|
4830
4831
|
s && n.push(s);
|
|
4831
|
-
}), !e || e.replace(
|
|
4832
|
+
}), !e || e.replace(Wo, "").match(new RegExp(
|
|
4832
4833
|
// eslint-disable-next-line no-useless-escape
|
|
4833
4834
|
`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,
|
|
4834
4835
|
"i"
|
|
4835
4836
|
));
|
|
4836
4837
|
}
|
|
4837
|
-
const
|
|
4838
|
+
const Li = N.create({
|
|
4838
4839
|
name: "link",
|
|
4839
4840
|
priority: 1e3,
|
|
4840
4841
|
keepOnSplit: !1,
|
|
@@ -4970,7 +4971,7 @@ const Oi = N.create({
|
|
|
4970
4971
|
},
|
|
4971
4972
|
addProseMirrorPlugins() {
|
|
4972
4973
|
const e = [], { protocols: t, defaultProtocol: n } = this.options;
|
|
4973
|
-
return this.options.autolink && e.push(
|
|
4974
|
+
return this.options.autolink && e.push(Fo({
|
|
4974
4975
|
type: this.type,
|
|
4975
4976
|
defaultProtocol: this.options.defaultProtocol,
|
|
4976
4977
|
validate: (r) => this.options.isAllowedUri(r, {
|
|
@@ -4979,15 +4980,15 @@ const Oi = N.create({
|
|
|
4979
4980
|
defaultProtocol: n
|
|
4980
4981
|
}),
|
|
4981
4982
|
shouldAutoLink: this.options.shouldAutoLink
|
|
4982
|
-
})), this.options.openOnClick === !0 && e.push(
|
|
4983
|
+
})), this.options.openOnClick === !0 && e.push(zo({
|
|
4983
4984
|
type: this.type
|
|
4984
|
-
})), this.options.linkOnPaste && e.push(
|
|
4985
|
+
})), this.options.linkOnPaste && e.push(Vo({
|
|
4985
4986
|
editor: this.editor,
|
|
4986
4987
|
defaultProtocol: this.options.defaultProtocol,
|
|
4987
4988
|
type: this.type
|
|
4988
4989
|
})), e;
|
|
4989
4990
|
}
|
|
4990
|
-
}),
|
|
4991
|
+
}), _i = _.create({
|
|
4991
4992
|
name: "horizontalRule",
|
|
4992
4993
|
addOptions() {
|
|
4993
4994
|
return {
|
|
@@ -5037,7 +5038,7 @@ const Oi = N.create({
|
|
|
5037
5038
|
})
|
|
5038
5039
|
];
|
|
5039
5040
|
}
|
|
5040
|
-
}),
|
|
5041
|
+
}), Pi = P.create({
|
|
5041
5042
|
name: "history",
|
|
5042
5043
|
addOptions() {
|
|
5043
5044
|
return {
|
|
@@ -5066,7 +5067,7 @@ const Oi = N.create({
|
|
|
5066
5067
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
5067
5068
|
};
|
|
5068
5069
|
}
|
|
5069
|
-
}),
|
|
5070
|
+
}), Ri = P.create({
|
|
5070
5071
|
name: "characterCount",
|
|
5071
5072
|
addOptions() {
|
|
5072
5073
|
return {
|
|
@@ -5132,7 +5133,7 @@ const Oi = N.create({
|
|
|
5132
5133
|
})
|
|
5133
5134
|
];
|
|
5134
5135
|
}
|
|
5135
|
-
}),
|
|
5136
|
+
}), Hi = P.create({
|
|
5136
5137
|
name: "dropCursor",
|
|
5137
5138
|
addOptions() {
|
|
5138
5139
|
return {
|
|
@@ -5146,7 +5147,7 @@ const Oi = N.create({
|
|
|
5146
5147
|
Dn(this.options)
|
|
5147
5148
|
];
|
|
5148
5149
|
}
|
|
5149
|
-
}),
|
|
5150
|
+
}), $i = P.create({
|
|
5150
5151
|
name: "focus",
|
|
5151
5152
|
addOptions() {
|
|
5152
5153
|
return {
|
|
@@ -5186,7 +5187,7 @@ const Oi = N.create({
|
|
|
5186
5187
|
})
|
|
5187
5188
|
];
|
|
5188
5189
|
}
|
|
5189
|
-
}),
|
|
5190
|
+
}), Ii = P.create({
|
|
5190
5191
|
name: "gapCursor",
|
|
5191
5192
|
addProseMirrorPlugins() {
|
|
5192
5193
|
return [
|
|
@@ -5204,7 +5205,7 @@ const Oi = N.create({
|
|
|
5204
5205
|
allowGapCursor: (t = E(S(e, "allowGapCursor", n))) !== null && t !== void 0 ? t : null
|
|
5205
5206
|
};
|
|
5206
5207
|
}
|
|
5207
|
-
}),
|
|
5208
|
+
}), Di = _.create({
|
|
5208
5209
|
name: "hardBreak",
|
|
5209
5210
|
addOptions() {
|
|
5210
5211
|
return {
|
|
@@ -5254,7 +5255,7 @@ const Oi = N.create({
|
|
|
5254
5255
|
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
5255
5256
|
};
|
|
5256
5257
|
}
|
|
5257
|
-
}),
|
|
5258
|
+
}), Ni = _.create({
|
|
5258
5259
|
name: "listItem",
|
|
5259
5260
|
addOptions() {
|
|
5260
5261
|
return {
|
|
@@ -5282,7 +5283,7 @@ const Oi = N.create({
|
|
|
5282
5283
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
5283
5284
|
};
|
|
5284
5285
|
}
|
|
5285
|
-
}),
|
|
5286
|
+
}), Bi = _.create({
|
|
5286
5287
|
name: "paragraph",
|
|
5287
5288
|
priority: 1e3,
|
|
5288
5289
|
addOptions() {
|
|
@@ -5310,7 +5311,7 @@ const Oi = N.create({
|
|
|
5310
5311
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
5311
5312
|
};
|
|
5312
5313
|
}
|
|
5313
|
-
}),
|
|
5314
|
+
}), ji = P.create({
|
|
5314
5315
|
name: "placeholder",
|
|
5315
5316
|
addOptions() {
|
|
5316
5317
|
return {
|
|
@@ -5355,14 +5356,14 @@ const Oi = N.create({
|
|
|
5355
5356
|
})
|
|
5356
5357
|
];
|
|
5357
5358
|
}
|
|
5358
|
-
}),
|
|
5359
|
+
}), Fi = _.create({
|
|
5359
5360
|
name: "text",
|
|
5360
5361
|
group: "inline"
|
|
5361
|
-
}),
|
|
5362
|
+
}), zi = _.create({
|
|
5362
5363
|
name: "doc",
|
|
5363
5364
|
topNode: !0,
|
|
5364
5365
|
content: "block+"
|
|
5365
|
-
}),
|
|
5366
|
+
}), Vi = N.create({
|
|
5366
5367
|
name: "subscript",
|
|
5367
5368
|
addOptions() {
|
|
5368
5369
|
return {
|
|
@@ -5397,7 +5398,7 @@ const Oi = N.create({
|
|
|
5397
5398
|
"Mod-,": () => this.editor.commands.toggleSubscript()
|
|
5398
5399
|
};
|
|
5399
5400
|
}
|
|
5400
|
-
}),
|
|
5401
|
+
}), Wi = N.create({
|
|
5401
5402
|
name: "superscript",
|
|
5402
5403
|
addOptions() {
|
|
5403
5404
|
return {
|
|
@@ -5433,9 +5434,9 @@ const Oi = N.create({
|
|
|
5433
5434
|
};
|
|
5434
5435
|
}
|
|
5435
5436
|
});
|
|
5436
|
-
function
|
|
5437
|
+
function Ko(e) {
|
|
5437
5438
|
var t;
|
|
5438
|
-
const { char: n, allowSpaces: r, allowToIncludeChar: s, allowedPrefixes: o, startOfLine: i, $position: a } = e, c = r && !s, l =
|
|
5439
|
+
const { char: n, allowSpaces: r, allowToIncludeChar: s, allowedPrefixes: o, startOfLine: i, $position: a } = e, c = r && !s, l = Gs(n), u = new RegExp(`\\s${l}$`), d = i ? "^" : "", p = s ? "" : l, h = c ? new RegExp(`${d}${l}.*?(?=\\s${p}|$)`, "gm") : new RegExp(`${d}(?:^)?${l}[^\\s${p}]*`, "gm"), m = ((t = a.nodeBefore) === null || t === void 0 ? void 0 : t.isText) && a.nodeBefore.text;
|
|
5439
5440
|
if (!m)
|
|
5440
5441
|
return null;
|
|
5441
5442
|
const f = a.pos - m.length, g = Array.from(m.matchAll(h)).pop();
|
|
@@ -5455,8 +5456,8 @@ function Wo(e) {
|
|
|
5455
5456
|
text: g[0]
|
|
5456
5457
|
} : null;
|
|
5457
5458
|
}
|
|
5458
|
-
const
|
|
5459
|
-
function
|
|
5459
|
+
const Uo = new $("suggestion");
|
|
5460
|
+
function qo({ pluginKey: e = Uo, editor: t, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: s = !1, allowedPrefixes: o = [" "], startOfLine: i = !1, decorationTag: a = "span", decorationClass: c = "suggestion", command: l = () => null, items: u = () => [], render: d = () => ({}), allow: p = () => !0, findSuggestionMatch: h = Ko }) {
|
|
5460
5461
|
let m;
|
|
5461
5462
|
const f = d == null ? void 0 : d(), g = new H({
|
|
5462
5463
|
key: e,
|
|
@@ -5558,7 +5559,7 @@ function Uo({ pluginKey: e = Ko, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
5558
5559
|
});
|
|
5559
5560
|
return g;
|
|
5560
5561
|
}
|
|
5561
|
-
const
|
|
5562
|
+
const Go = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Ki = _.create({
|
|
5562
5563
|
name: "image",
|
|
5563
5564
|
addOptions() {
|
|
5564
5565
|
return {
|
|
@@ -5608,7 +5609,7 @@ const qo = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Wi = _.cr
|
|
|
5608
5609
|
addInputRules() {
|
|
5609
5610
|
return [
|
|
5610
5611
|
Ke({
|
|
5611
|
-
find:
|
|
5612
|
+
find: Go,
|
|
5612
5613
|
type: this.type,
|
|
5613
5614
|
getAttributes: (e) => {
|
|
5614
5615
|
const [, , t, n, r] = e;
|
|
@@ -5617,7 +5618,7 @@ const qo = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Wi = _.cr
|
|
|
5617
5618
|
})
|
|
5618
5619
|
];
|
|
5619
5620
|
}
|
|
5620
|
-
}),
|
|
5621
|
+
}), Ui = _.create({
|
|
5621
5622
|
name: "tableRow",
|
|
5622
5623
|
addOptions() {
|
|
5623
5624
|
return {
|
|
@@ -5665,7 +5666,7 @@ function ke(e, t, n, r, s, o) {
|
|
|
5665
5666
|
}
|
|
5666
5667
|
c ? (n.style.width = `${a}px`, n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = `${a}px`);
|
|
5667
5668
|
}
|
|
5668
|
-
class
|
|
5669
|
+
class Jo {
|
|
5669
5670
|
constructor(t, n) {
|
|
5670
5671
|
this.node = t, this.cellMinWidth = n, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")), ke(t, this.colgroup, this.table, n), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
|
|
5671
5672
|
}
|
|
@@ -5676,7 +5677,7 @@ class Go {
|
|
|
5676
5677
|
return t.type === "attributes" && (t.target === this.table || this.colgroup.contains(t.target));
|
|
5677
5678
|
}
|
|
5678
5679
|
}
|
|
5679
|
-
function
|
|
5680
|
+
function Yo(e, t, n, r) {
|
|
5680
5681
|
let s = 0, o = !0;
|
|
5681
5682
|
const i = [], a = e.firstChild;
|
|
5682
5683
|
if (!a)
|
|
@@ -5699,7 +5700,7 @@ function Jo(e, t, n, r) {
|
|
|
5699
5700
|
function we(e, t) {
|
|
5700
5701
|
return e.createAndFill();
|
|
5701
5702
|
}
|
|
5702
|
-
function
|
|
5703
|
+
function Xo(e) {
|
|
5703
5704
|
if (e.cached.tableNodeTypes)
|
|
5704
5705
|
return e.cached.tableNodeTypes;
|
|
5705
5706
|
const t = {};
|
|
@@ -5708,8 +5709,8 @@ function Yo(e) {
|
|
|
5708
5709
|
r.spec.tableRole && (t[r.spec.tableRole] = r);
|
|
5709
5710
|
}), e.cached.tableNodeTypes = t, t;
|
|
5710
5711
|
}
|
|
5711
|
-
function
|
|
5712
|
-
const o =
|
|
5712
|
+
function Qo(e, t, n, r, s) {
|
|
5713
|
+
const o = Xo(e), i = [], a = [];
|
|
5713
5714
|
for (let l = 0; l < n; l += 1) {
|
|
5714
5715
|
const u = we(o.cell);
|
|
5715
5716
|
if (u && a.push(u), r) {
|
|
@@ -5722,12 +5723,12 @@ function Xo(e, t, n, r, s) {
|
|
|
5722
5723
|
c.push(o.row.createChecked(null, r && l === 0 ? i : a));
|
|
5723
5724
|
return o.table.createChecked(null, c);
|
|
5724
5725
|
}
|
|
5725
|
-
function
|
|
5726
|
+
function Zo(e) {
|
|
5726
5727
|
return e instanceof xe;
|
|
5727
5728
|
}
|
|
5728
5729
|
const ct = ({ editor: e }) => {
|
|
5729
5730
|
const { selection: t } = e.state;
|
|
5730
|
-
if (!
|
|
5731
|
+
if (!Zo(t))
|
|
5731
5732
|
return !1;
|
|
5732
5733
|
let n = 0;
|
|
5733
5734
|
const r = ze(t.ranges[0].$from, (o) => o.type.name === "table");
|
|
@@ -5736,7 +5737,7 @@ const ct = ({ editor: e }) => {
|
|
|
5736
5737
|
return !1;
|
|
5737
5738
|
["tableCell", "tableHeader"].includes(o.type.name) && (n += 1);
|
|
5738
5739
|
}), n === t.ranges.length ? (e.commands.deleteTable(), !0) : !1;
|
|
5739
|
-
},
|
|
5740
|
+
}, qi = _.create({
|
|
5740
5741
|
name: "table",
|
|
5741
5742
|
// @ts-ignore
|
|
5742
5743
|
addOptions() {
|
|
@@ -5746,7 +5747,7 @@ const ct = ({ editor: e }) => {
|
|
|
5746
5747
|
handleWidth: 5,
|
|
5747
5748
|
cellMinWidth: 25,
|
|
5748
5749
|
// TODO: fix
|
|
5749
|
-
View:
|
|
5750
|
+
View: Jo,
|
|
5750
5751
|
lastColumnResizable: !0,
|
|
5751
5752
|
allowTableNodeSelection: !1
|
|
5752
5753
|
};
|
|
@@ -5759,7 +5760,7 @@ const ct = ({ editor: e }) => {
|
|
|
5759
5760
|
return [{ tag: "table" }];
|
|
5760
5761
|
},
|
|
5761
5762
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
5762
|
-
const { colgroup: n, tableWidth: r, tableMinWidth: s } =
|
|
5763
|
+
const { colgroup: n, tableWidth: r, tableMinWidth: s } = Yo(e, this.options.cellMinWidth);
|
|
5763
5764
|
return [
|
|
5764
5765
|
"table",
|
|
5765
5766
|
C(this.options.HTMLAttributes, t, {
|
|
@@ -5772,7 +5773,7 @@ const ct = ({ editor: e }) => {
|
|
|
5772
5773
|
addCommands() {
|
|
5773
5774
|
return {
|
|
5774
5775
|
insertTable: ({ rows: e = 3, cols: t = 3, withHeaderRow: n = !0 } = {}) => ({ tr: r, dispatch: s, editor: o }) => {
|
|
5775
|
-
const i =
|
|
5776
|
+
const i = Qo(o.schema, e, t, n);
|
|
5776
5777
|
if (s) {
|
|
5777
5778
|
const a = r.selection.from + 1;
|
|
5778
5779
|
r.replaceSelectionWith(i).scrollIntoView().setSelection(D.near(r.doc.resolve(a)));
|
|
@@ -5841,7 +5842,7 @@ const ct = ({ editor: e }) => {
|
|
|
5841
5842
|
tableRole: E(S(e, "tableRole", t))
|
|
5842
5843
|
};
|
|
5843
5844
|
}
|
|
5844
|
-
}),
|
|
5845
|
+
}), Gi = _.create({
|
|
5845
5846
|
name: "tableCell",
|
|
5846
5847
|
addOptions() {
|
|
5847
5848
|
return {
|
|
@@ -5876,7 +5877,7 @@ const ct = ({ editor: e }) => {
|
|
|
5876
5877
|
renderHTML({ HTMLAttributes: e }) {
|
|
5877
5878
|
return ["td", C(this.options.HTMLAttributes, e), 0];
|
|
5878
5879
|
}
|
|
5879
|
-
}),
|
|
5880
|
+
}), Ji = _.create({
|
|
5880
5881
|
name: "tableHeader",
|
|
5881
5882
|
addOptions() {
|
|
5882
5883
|
return {
|
|
@@ -5911,7 +5912,7 @@ const ct = ({ editor: e }) => {
|
|
|
5911
5912
|
renderHTML({ HTMLAttributes: e }) {
|
|
5912
5913
|
return ["th", C(this.options.HTMLAttributes, e), 0];
|
|
5913
5914
|
}
|
|
5914
|
-
}),
|
|
5915
|
+
}), ti = new $("mention"), Yi = _.create({
|
|
5915
5916
|
name: "mention",
|
|
5916
5917
|
priority: 101,
|
|
5917
5918
|
addOptions() {
|
|
@@ -5932,7 +5933,7 @@ const ct = ({ editor: e }) => {
|
|
|
5932
5933
|
},
|
|
5933
5934
|
suggestion: {
|
|
5934
5935
|
char: "@",
|
|
5935
|
-
pluginKey:
|
|
5936
|
+
pluginKey: ti,
|
|
5936
5937
|
command: ({ editor: e, range: t, props: n }) => {
|
|
5937
5938
|
var r, s, o;
|
|
5938
5939
|
const i = e.view.state.selection.$to.nodeAfter;
|
|
@@ -6028,7 +6029,7 @@ const ct = ({ editor: e }) => {
|
|
|
6028
6029
|
},
|
|
6029
6030
|
addProseMirrorPlugins() {
|
|
6030
6031
|
return [
|
|
6031
|
-
|
|
6032
|
+
qo({
|
|
6032
6033
|
editor: this.editor,
|
|
6033
6034
|
...this.options.suggestion
|
|
6034
6035
|
})
|
|
@@ -6036,61 +6037,61 @@ const ct = ({ editor: e }) => {
|
|
|
6036
6037
|
}
|
|
6037
6038
|
});
|
|
6038
6039
|
export {
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6040
|
+
ii as $,
|
|
6041
|
+
yo as A,
|
|
6042
|
+
ci as B,
|
|
6043
|
+
yi as C,
|
|
6044
|
+
zi as D,
|
|
6044
6045
|
P as E,
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6046
|
+
Mi as F,
|
|
6047
|
+
Ii as G,
|
|
6048
|
+
Si as H,
|
|
6049
|
+
fi as I,
|
|
6050
|
+
Ki as J,
|
|
6051
|
+
qi as K,
|
|
6052
|
+
Li as L,
|
|
6053
|
+
Ui as M,
|
|
6054
|
+
ui as N,
|
|
6055
|
+
Ci as O,
|
|
6056
|
+
ji as P,
|
|
6057
|
+
Ji as Q,
|
|
6058
|
+
pi as R,
|
|
6059
|
+
gi as S,
|
|
6060
|
+
ki as T,
|
|
6061
|
+
mi as U,
|
|
6062
|
+
Gi as V,
|
|
6063
|
+
Yi as W,
|
|
6063
6064
|
Yt as X,
|
|
6064
6065
|
ue as Y,
|
|
6065
6066
|
Ke as Z,
|
|
6066
6067
|
dr as _,
|
|
6067
|
-
|
|
6068
|
+
hi as a,
|
|
6068
6069
|
fs as a0,
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6070
|
+
li as a1,
|
|
6071
|
+
ai as a2,
|
|
6072
|
+
di as b,
|
|
6073
|
+
vi as c,
|
|
6074
|
+
wi as d,
|
|
6075
|
+
Ei as e,
|
|
6076
|
+
oi as f,
|
|
6077
|
+
Ti as g,
|
|
6077
6078
|
_ as h,
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6079
|
+
Ai as i,
|
|
6080
|
+
xi as j,
|
|
6081
|
+
Oi as k,
|
|
6081
6082
|
Gt as l,
|
|
6082
6083
|
C as m,
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6084
|
+
_i as n,
|
|
6085
|
+
Pi as o,
|
|
6086
|
+
$i as p,
|
|
6087
|
+
Fi as q,
|
|
6088
|
+
Hi as r,
|
|
6089
|
+
Ri as s,
|
|
6090
|
+
Bi as t,
|
|
6091
|
+
Di as u,
|
|
6092
|
+
Ni as v,
|
|
6093
|
+
bi as w,
|
|
6094
|
+
Vi as x,
|
|
6095
|
+
Wi as y,
|
|
6096
|
+
qo as z
|
|
6096
6097
|
};
|