@harbour-enterprises/superdoc 0.10.5 → 0.10.6
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/chunks/{super-editor.es-C-0jzk6B.cjs → super-editor.es-7olJy4mN.cjs} +3 -3
- package/dist/chunks/{super-editor.es-C7VxrH4T.es.js → super-editor.es-C8XueA65.es.js} +7 -7
- package/dist/style.css +1 -1
- package/dist/super-editor/chunks/{converter-D8pLTGtP.js → converter-DCsYaMdA.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BEeS4FhN.js → docx-zipper-C9g7hQVX.js} +1 -1
- package/dist/super-editor/chunks/{editor-vcOlYDin.js → editor-6r7PwC_U.js} +4 -4
- package/dist/super-editor/chunks/{toolbar-CCw0S8RT.js → toolbar-7qxBOf0W.js} +2 -2
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +71 -71
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +132 -132
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +4 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -13580,7 +13580,7 @@ Actual: ` + p3.attribValue
|
|
|
13580
13580
|
}
|
|
13581
13581
|
return true;
|
|
13582
13582
|
}
|
|
13583
|
-
let ge$
|
|
13583
|
+
let ge$2 = class ge2 {
|
|
13584
13584
|
/**
|
|
13585
13585
|
@internal
|
|
13586
13586
|
*/
|
|
@@ -13685,7 +13685,7 @@ Actual: ` + p3.attribValue
|
|
|
13685
13685
|
return t.sort((n, i3) => n.type.rank - i3.type.rank), t;
|
|
13686
13686
|
}
|
|
13687
13687
|
};
|
|
13688
|
-
ge$
|
|
13688
|
+
ge$2.none = [];
|
|
13689
13689
|
class dr extends Error {
|
|
13690
13690
|
}
|
|
13691
13691
|
class ue {
|
|
@@ -13983,7 +13983,7 @@ Actual: ` + p3.attribValue
|
|
|
13983
13983
|
marks() {
|
|
13984
13984
|
let e = this.parent, t = this.index();
|
|
13985
13985
|
if (e.content.size == 0)
|
|
13986
|
-
return ge$
|
|
13986
|
+
return ge$2.none;
|
|
13987
13987
|
if (this.textOffset)
|
|
13988
13988
|
return e.child(t).marks;
|
|
13989
13989
|
let n = e.maybeChild(t - 1), i3 = e.maybeChild(t);
|
|
@@ -14150,7 +14150,7 @@ Actual: ` + p3.attribValue
|
|
|
14150
14150
|
/**
|
|
14151
14151
|
@internal
|
|
14152
14152
|
*/
|
|
14153
|
-
constructor(e, t, n, i3 = ge$
|
|
14153
|
+
constructor(e, t, n, i3 = ge$2.none) {
|
|
14154
14154
|
this.type = e, this.attrs = t, this.marks = i3, this.content = n || Q$2.empty;
|
|
14155
14155
|
}
|
|
14156
14156
|
/**
|
|
@@ -14264,7 +14264,7 @@ Actual: ` + p3.attribValue
|
|
|
14264
14264
|
attributes, and marks.
|
|
14265
14265
|
*/
|
|
14266
14266
|
hasMarkup(e, t, n) {
|
|
14267
|
-
return this.type == e && fr$1(this.attrs, t || e.defaultAttrs || Lc$2) && ge$
|
|
14267
|
+
return this.type == e && fr$1(this.attrs, t || e.defaultAttrs || Lc$2) && ge$2.sameSet(this.marks, n || ge$2.none);
|
|
14268
14268
|
}
|
|
14269
14269
|
/**
|
|
14270
14270
|
Create a new node with the same markup as this node, containing
|
|
@@ -14474,12 +14474,12 @@ Actual: ` + p3.attribValue
|
|
|
14474
14474
|
*/
|
|
14475
14475
|
check() {
|
|
14476
14476
|
this.type.checkContent(this.content), this.type.checkAttrs(this.attrs);
|
|
14477
|
-
let e = ge$
|
|
14477
|
+
let e = ge$2.none;
|
|
14478
14478
|
for (let t = 0; t < this.marks.length; t++) {
|
|
14479
14479
|
let n = this.marks[t];
|
|
14480
14480
|
n.type.checkAttrs(n.attrs), e = n.addToSet(e);
|
|
14481
14481
|
}
|
|
14482
|
-
if (!ge$
|
|
14482
|
+
if (!ge$2.sameSet(e, this.marks))
|
|
14483
14483
|
throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((t) => t.type.name)}`);
|
|
14484
14484
|
this.content.forEach((t) => t.check());
|
|
14485
14485
|
}
|
|
@@ -15022,7 +15022,7 @@ Actual: ` + p3.attribValue
|
|
|
15022
15022
|
create(e = null, t, n) {
|
|
15023
15023
|
if (this.isText)
|
|
15024
15024
|
throw new Error("NodeType.create can't construct text nodes");
|
|
15025
|
-
return new rt$2(this, this.computeAttrs(e), Q$2.from(t), ge$
|
|
15025
|
+
return new rt$2(this, this.computeAttrs(e), Q$2.from(t), ge$2.setFrom(n));
|
|
15026
15026
|
}
|
|
15027
15027
|
/**
|
|
15028
15028
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -15030,7 +15030,7 @@ Actual: ` + p3.attribValue
|
|
|
15030
15030
|
if it doesn't match.
|
|
15031
15031
|
*/
|
|
15032
15032
|
createChecked(e = null, t, n) {
|
|
15033
|
-
return t = Q$2.from(t), this.checkContent(t), new rt$2(this, this.computeAttrs(e), t, ge$
|
|
15033
|
+
return t = Q$2.from(t), this.checkContent(t), new rt$2(this, this.computeAttrs(e), t, ge$2.setFrom(n));
|
|
15034
15034
|
}
|
|
15035
15035
|
/**
|
|
15036
15036
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -15048,7 +15048,7 @@ Actual: ` + p3.attribValue
|
|
|
15048
15048
|
t = o.append(t);
|
|
15049
15049
|
}
|
|
15050
15050
|
let i3 = this.contentMatch.matchFragment(t), s = i3 && i3.fillBefore(Q$2.empty, true);
|
|
15051
|
-
return s ? new rt$2(this, e, t.append(s), ge$
|
|
15051
|
+
return s ? new rt$2(this, e, t.append(s), ge$2.setFrom(n)) : null;
|
|
15052
15052
|
}
|
|
15053
15053
|
/**
|
|
15054
15054
|
Returns true if the given fragment is valid content for this node
|
|
@@ -15104,7 +15104,7 @@ Actual: ` + p3.attribValue
|
|
|
15104
15104
|
let t;
|
|
15105
15105
|
for (let n = 0; n < e.length; n++)
|
|
15106
15106
|
this.allowsMarkType(e[n].type) ? t && t.push(e[n]) : t || (t = e.slice(0, n));
|
|
15107
|
-
return t ? t.length ? t : ge$
|
|
15107
|
+
return t ? t.length ? t : ge$2.none : e;
|
|
15108
15108
|
}
|
|
15109
15109
|
/**
|
|
15110
15110
|
@internal
|
|
@@ -15145,7 +15145,7 @@ Actual: ` + p3.attribValue
|
|
|
15145
15145
|
constructor(e, t, n, i3) {
|
|
15146
15146
|
this.name = e, this.rank = t, this.schema = n, this.spec = i3, this.attrs = Pa$2(e, i3.attrs), this.excluded = null;
|
|
15147
15147
|
let s = Na$2(this.attrs);
|
|
15148
|
-
this.instance = s ? new ge$
|
|
15148
|
+
this.instance = s ? new ge$2(this, s) : null;
|
|
15149
15149
|
}
|
|
15150
15150
|
/**
|
|
15151
15151
|
Create a mark of this type. `attrs` may be `null` or an object
|
|
@@ -15153,7 +15153,7 @@ Actual: ` + p3.attribValue
|
|
|
15153
15153
|
they have defaults, will be added.
|
|
15154
15154
|
*/
|
|
15155
15155
|
create(e = null) {
|
|
15156
|
-
return !e && this.instance ? this.instance : new ge$
|
|
15156
|
+
return !e && this.instance ? this.instance : new ge$2(this, Ia$2(this.attrs, e));
|
|
15157
15157
|
}
|
|
15158
15158
|
/**
|
|
15159
15159
|
@internal
|
|
@@ -15244,7 +15244,7 @@ Actual: ` + p3.attribValue
|
|
|
15244
15244
|
*/
|
|
15245
15245
|
text(e, t) {
|
|
15246
15246
|
let n = this.nodes.text;
|
|
15247
|
-
return new pr$2(n, n.defaultAttrs, e, ge$
|
|
15247
|
+
return new pr$2(n, n.defaultAttrs, e, ge$2.setFrom(t));
|
|
15248
15248
|
}
|
|
15249
15249
|
/**
|
|
15250
15250
|
Create a mark with the given type and attributes.
|
|
@@ -15264,7 +15264,7 @@ Actual: ` + p3.attribValue
|
|
|
15264
15264
|
bound.
|
|
15265
15265
|
*/
|
|
15266
15266
|
markFromJSON(e) {
|
|
15267
|
-
return ge$
|
|
15267
|
+
return ge$2.fromJSON(this, e);
|
|
15268
15268
|
}
|
|
15269
15269
|
/**
|
|
15270
15270
|
@internal
|
|
@@ -15325,7 +15325,7 @@ Actual: ` + p3.attribValue
|
|
|
15325
15325
|
*/
|
|
15326
15326
|
parse(e, t = {}) {
|
|
15327
15327
|
let n = new lo$3(this, t, false);
|
|
15328
|
-
return n.addAll(e, ge$
|
|
15328
|
+
return n.addAll(e, ge$2.none, t.from, t.to), n.finish();
|
|
15329
15329
|
}
|
|
15330
15330
|
/**
|
|
15331
15331
|
Parses the content of the given DOM node, like
|
|
@@ -15337,7 +15337,7 @@ Actual: ` + p3.attribValue
|
|
|
15337
15337
|
*/
|
|
15338
15338
|
parseSlice(e, t = {}) {
|
|
15339
15339
|
let n = new lo$3(this, t, true);
|
|
15340
|
-
return n.addAll(e, ge$
|
|
15340
|
+
return n.addAll(e, ge$2.none, t.from, t.to), ue.maxOpen(n.finish());
|
|
15341
15341
|
}
|
|
15342
15342
|
/**
|
|
15343
15343
|
@internal
|
|
@@ -15459,7 +15459,7 @@ Actual: ` + p3.attribValue
|
|
|
15459
15459
|
}
|
|
15460
15460
|
let rr$2 = class rr {
|
|
15461
15461
|
constructor(e, t, n, i3, s, o) {
|
|
15462
|
-
this.type = e, this.attrs = t, this.marks = n, this.solid = i3, this.options = o, this.content = [], this.activeMarks = ge$
|
|
15462
|
+
this.type = e, this.attrs = t, this.marks = n, this.solid = i3, this.options = o, this.content = [], this.activeMarks = ge$2.none, this.match = s || (o & or$2 ? null : e.contentMatch);
|
|
15463
15463
|
}
|
|
15464
15464
|
findWrapping(e) {
|
|
15465
15465
|
if (!this.match) {
|
|
@@ -15494,7 +15494,7 @@ Actual: ` + p3.attribValue
|
|
|
15494
15494
|
constructor(e, t, n) {
|
|
15495
15495
|
this.parser = e, this.options = t, this.isOpen = n, this.open = 0, this.localPreserveWS = false;
|
|
15496
15496
|
let i3 = t.topNode, s, o = uo$2(null, t.preserveWhitespace, 0) | (n ? or$2 : 0);
|
|
15497
|
-
i3 ? s = new rr$2(i3.type, i3.attrs, ge$
|
|
15497
|
+
i3 ? s = new rr$2(i3.type, i3.attrs, ge$2.none, true, t.topMatch || i3.type.contentMatch, o) : n ? s = new rr$2(null, null, ge$2.none, true, null, o) : s = new rr$2(e.schema.topNodeType, null, ge$2.none, true, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = false;
|
|
15498
15498
|
}
|
|
15499
15499
|
get top() {
|
|
15500
15500
|
return this.nodes[this.open];
|
|
@@ -15644,7 +15644,7 @@ Actual: ` + p3.attribValue
|
|
|
15644
15644
|
this.closeExtra();
|
|
15645
15645
|
let i3 = this.top;
|
|
15646
15646
|
i3.match && (i3.match = i3.match.matchType(e.type));
|
|
15647
|
-
let s = ge$
|
|
15647
|
+
let s = ge$2.none;
|
|
15648
15648
|
for (let o of n.concat(e.marks))
|
|
15649
15649
|
(i3.type ? i3.type.allowsMarkType(o.type) : fo$1(o.type, e.type)) && (s = o.addToSet(s));
|
|
15650
15650
|
return i3.content.push(e.mark(s)), true;
|
|
@@ -15664,7 +15664,7 @@ Actual: ` + p3.attribValue
|
|
|
15664
15664
|
o.match = o.match && o.match.matchType(e);
|
|
15665
15665
|
let a = uo$2(e, s, o.options);
|
|
15666
15666
|
o.options & or$2 && o.content.length == 0 && (a |= or$2);
|
|
15667
|
-
let u = ge$
|
|
15667
|
+
let u = ge$2.none;
|
|
15668
15668
|
return n = n.filter((f3) => (o.type ? o.type.allowsMarkType(f3.type) : fo$1(f3.type, e)) ? (u = f3.addToSet(u), false) : true), this.nodes.push(new rr$2(e, t, u, i3, null, a)), this.open++, n;
|
|
15669
15669
|
}
|
|
15670
15670
|
// Make sure all nodes above this.open are finished and added to
|
|
@@ -17412,7 +17412,7 @@ Actual: ` + p3.attribValue
|
|
|
17412
17412
|
position `pos`.
|
|
17413
17413
|
*/
|
|
17414
17414
|
removeNodeMark(e, t) {
|
|
17415
|
-
if (!(t instanceof ge$
|
|
17415
|
+
if (!(t instanceof ge$2)) {
|
|
17416
17416
|
let n = this.doc.nodeAt(e);
|
|
17417
17417
|
if (!n)
|
|
17418
17418
|
throw new RangeError("No node at position " + e);
|
|
@@ -17457,7 +17457,7 @@ Actual: ` + p3.attribValue
|
|
|
17457
17457
|
}
|
|
17458
17458
|
};
|
|
17459
17459
|
const ni$1 = /* @__PURE__ */ Object.create(null);
|
|
17460
|
-
let ve$
|
|
17460
|
+
let ve$1 = class ve {
|
|
17461
17461
|
/**
|
|
17462
17462
|
Initialize a selection with the head and anchor and ranges. If no
|
|
17463
17463
|
ranges are given, constructs a single range across `$anchor` and
|
|
@@ -17621,7 +17621,7 @@ Actual: ` + p3.attribValue
|
|
|
17621
17621
|
return tt$3.between(this.$anchor, this.$head).getBookmark();
|
|
17622
17622
|
}
|
|
17623
17623
|
};
|
|
17624
|
-
ve$
|
|
17624
|
+
ve$1.prototype.visible = true;
|
|
17625
17625
|
let Tf$1 = class Tf {
|
|
17626
17626
|
/**
|
|
17627
17627
|
Create a range.
|
|
@@ -17634,7 +17634,7 @@ Actual: ` + p3.attribValue
|
|
|
17634
17634
|
function yo$2(r22) {
|
|
17635
17635
|
!wo$2 && !r22.parent.inlineContent && (wo$2 = true, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r22.parent.type.name + ")"));
|
|
17636
17636
|
}
|
|
17637
|
-
let tt$3 = class tt2 extends ve$
|
|
17637
|
+
let tt$3 = class tt2 extends ve$1 {
|
|
17638
17638
|
/**
|
|
17639
17639
|
Construct a text selection between the given points.
|
|
17640
17640
|
*/
|
|
@@ -17651,7 +17651,7 @@ Actual: ` + p3.attribValue
|
|
|
17651
17651
|
map(e, t) {
|
|
17652
17652
|
let n = e.resolve(t.map(this.head));
|
|
17653
17653
|
if (!n.parent.inlineContent)
|
|
17654
|
-
return ve$
|
|
17654
|
+
return ve$1.near(n);
|
|
17655
17655
|
let i3 = e.resolve(t.map(this.anchor));
|
|
17656
17656
|
return new tt2(i3.parent.inlineContent ? i3 : n, n);
|
|
17657
17657
|
}
|
|
@@ -17696,16 +17696,16 @@ Actual: ` + p3.attribValue
|
|
|
17696
17696
|
static between(e, t, n) {
|
|
17697
17697
|
let i3 = e.pos - t.pos;
|
|
17698
17698
|
if ((!n || i3) && (n = i3 >= 0 ? 1 : -1), !t.parent.inlineContent) {
|
|
17699
|
-
let s = ve$
|
|
17699
|
+
let s = ve$1.findFrom(t, n, true) || ve$1.findFrom(t, -n, true);
|
|
17700
17700
|
if (s)
|
|
17701
17701
|
t = s.$head;
|
|
17702
17702
|
else
|
|
17703
|
-
return ve$
|
|
17703
|
+
return ve$1.near(t, n);
|
|
17704
17704
|
}
|
|
17705
|
-
return e.parent.inlineContent || (i3 == 0 ? e = t : (e = (ve$
|
|
17705
|
+
return e.parent.inlineContent || (i3 == 0 ? e = t : (e = (ve$1.findFrom(e, -n, true) || ve$1.findFrom(e, n, true)).$anchor, e.pos < t.pos != i3 < 0 && (e = t))), new tt2(e, t);
|
|
17706
17706
|
}
|
|
17707
17707
|
};
|
|
17708
|
-
ve$
|
|
17708
|
+
ve$1.jsonID("text", tt$3);
|
|
17709
17709
|
let Tr$2 = class Tr2 {
|
|
17710
17710
|
constructor(e, t) {
|
|
17711
17711
|
this.anchor = e, this.head = t;
|
|
@@ -17717,7 +17717,7 @@ Actual: ` + p3.attribValue
|
|
|
17717
17717
|
return tt$3.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
17718
17718
|
}
|
|
17719
17719
|
};
|
|
17720
|
-
let Ge$1 = class Ge2 extends ve$
|
|
17720
|
+
let Ge$1 = class Ge2 extends ve$1 {
|
|
17721
17721
|
/**
|
|
17722
17722
|
Create a node selection. Does not verify the validity of its
|
|
17723
17723
|
argument.
|
|
@@ -17728,7 +17728,7 @@ Actual: ` + p3.attribValue
|
|
|
17728
17728
|
}
|
|
17729
17729
|
map(e, t) {
|
|
17730
17730
|
let { deleted: n, pos: i3 } = t.mapResult(this.anchor), s = e.resolve(i3);
|
|
17731
|
-
return n ? ve$
|
|
17731
|
+
return n ? ve$1.near(s) : new Ge2(s);
|
|
17732
17732
|
}
|
|
17733
17733
|
content() {
|
|
17734
17734
|
return new ue(Q$2.from(this.node), 0, 0);
|
|
@@ -17765,7 +17765,7 @@ Actual: ` + p3.attribValue
|
|
|
17765
17765
|
}
|
|
17766
17766
|
};
|
|
17767
17767
|
Ge$1.prototype.visible = false;
|
|
17768
|
-
ve$
|
|
17768
|
+
ve$1.jsonID("node", Ge$1);
|
|
17769
17769
|
let ki$2 = class ki2 {
|
|
17770
17770
|
constructor(e) {
|
|
17771
17771
|
this.anchor = e;
|
|
@@ -17776,10 +17776,10 @@ Actual: ` + p3.attribValue
|
|
|
17776
17776
|
}
|
|
17777
17777
|
resolve(e) {
|
|
17778
17778
|
let t = e.resolve(this.anchor), n = t.nodeAfter;
|
|
17779
|
-
return n && Ge$1.isSelectable(n) ? new Ge$1(t) : ve$
|
|
17779
|
+
return n && Ge$1.isSelectable(n) ? new Ge$1(t) : ve$1.near(t);
|
|
17780
17780
|
}
|
|
17781
17781
|
};
|
|
17782
|
-
let at$2 = class at2 extends ve$
|
|
17782
|
+
let at$2 = class at2 extends ve$1 {
|
|
17783
17783
|
/**
|
|
17784
17784
|
Create an all-selection over the given document.
|
|
17785
17785
|
*/
|
|
@@ -17789,7 +17789,7 @@ Actual: ` + p3.attribValue
|
|
|
17789
17789
|
replace(e, t = ue.empty) {
|
|
17790
17790
|
if (t == ue.empty) {
|
|
17791
17791
|
e.delete(0, e.doc.content.size);
|
|
17792
|
-
let n = ve$
|
|
17792
|
+
let n = ve$1.atStart(e.doc);
|
|
17793
17793
|
n.eq(e.selection) || e.setSelection(n);
|
|
17794
17794
|
} else
|
|
17795
17795
|
super.replace(e, t);
|
|
@@ -17813,7 +17813,7 @@ Actual: ` + p3.attribValue
|
|
|
17813
17813
|
return Ff$1;
|
|
17814
17814
|
}
|
|
17815
17815
|
};
|
|
17816
|
-
ve$
|
|
17816
|
+
ve$1.jsonID("all", at$2);
|
|
17817
17817
|
const Ff$1 = {
|
|
17818
17818
|
map() {
|
|
17819
17819
|
return this;
|
|
@@ -17849,7 +17849,7 @@ Actual: ` + p3.attribValue
|
|
|
17849
17849
|
let s = r22.mapping.maps[n], o;
|
|
17850
17850
|
s.forEach((a, u, f3, c3) => {
|
|
17851
17851
|
o == null && (o = c3);
|
|
17852
|
-
}), r22.setSelection(ve$
|
|
17852
|
+
}), r22.setSelection(ve$1.near(r22.doc.resolve(o), t));
|
|
17853
17853
|
}
|
|
17854
17854
|
const xo$2 = 1, Ao$2 = 2, Do$1 = 4;
|
|
17855
17855
|
let Bf$2 = class Bf extends Sf$1 {
|
|
@@ -17895,7 +17895,7 @@ Actual: ` + p3.attribValue
|
|
|
17895
17895
|
this is already the case.
|
|
17896
17896
|
*/
|
|
17897
17897
|
ensureMarks(e) {
|
|
17898
|
-
return ge$
|
|
17898
|
+
return ge$2.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
|
|
17899
17899
|
}
|
|
17900
17900
|
/**
|
|
17901
17901
|
Add a mark to the set of stored marks.
|
|
@@ -17940,7 +17940,7 @@ Actual: ` + p3.attribValue
|
|
|
17940
17940
|
*/
|
|
17941
17941
|
replaceSelectionWith(e, t = true) {
|
|
17942
17942
|
let n = this.selection;
|
|
17943
|
-
return t && (e = e.mark(this.storedMarks || (n.empty ? n.$from.marks() : n.$from.marksAcross(n.$to) || ge$
|
|
17943
|
+
return t && (e = e.mark(this.storedMarks || (n.empty ? n.$from.marks() : n.$from.marksAcross(n.$to) || ge$2.none))), n.replaceWith(this, e), this;
|
|
17944
17944
|
}
|
|
17945
17945
|
/**
|
|
17946
17946
|
Delete the selection.
|
|
@@ -17964,7 +17964,7 @@ Actual: ` + p3.attribValue
|
|
|
17964
17964
|
let o = this.doc.resolve(t);
|
|
17965
17965
|
s = n == t ? o.marks() : o.marksAcross(this.doc.resolve(n));
|
|
17966
17966
|
}
|
|
17967
|
-
return this.replaceRangeWith(t, n, i3.text(e, s)), this.selection.empty || this.setSelection(ve$
|
|
17967
|
+
return this.replaceRangeWith(t, n, i3.text(e, s)), this.selection.empty || this.setSelection(ve$1.near(this.selection.$to)), this;
|
|
17968
17968
|
}
|
|
17969
17969
|
}
|
|
17970
17970
|
/**
|
|
@@ -18022,7 +18022,7 @@ Actual: ` + p3.attribValue
|
|
|
18022
18022
|
}),
|
|
18023
18023
|
new jt$3("selection", {
|
|
18024
18024
|
init(r22, e) {
|
|
18025
|
-
return r22.selection || ve$
|
|
18025
|
+
return r22.selection || ve$1.atStart(e.doc);
|
|
18026
18026
|
},
|
|
18027
18027
|
apply(r22) {
|
|
18028
18028
|
return r22.selection;
|
|
@@ -18202,7 +18202,7 @@ Actual: ` + p3.attribValue
|
|
|
18202
18202
|
if (o.name == "doc")
|
|
18203
18203
|
s.doc = rt$2.fromJSON(e.schema, t.doc);
|
|
18204
18204
|
else if (o.name == "selection")
|
|
18205
|
-
s.selection = ve$
|
|
18205
|
+
s.selection = ve$1.fromJSON(s.doc, t.selection);
|
|
18206
18206
|
else if (o.name == "storedMarks")
|
|
18207
18207
|
t.storedMarks && (s.storedMarks = t.storedMarks.map(e.schema.markFromJSON));
|
|
18208
18208
|
else {
|
|
@@ -23613,7 +23613,7 @@ Actual: ` + p3.attribValue
|
|
|
23613
23613
|
return;
|
|
23614
23614
|
}
|
|
23615
23615
|
}
|
|
23616
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
23616
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.6") {
|
|
23617
23617
|
const n = "docProps/custom.xml";
|
|
23618
23618
|
e[n] || (e[n] = Fu$2());
|
|
23619
23619
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -23838,7 +23838,7 @@ Actual: ` + p3.attribValue
|
|
|
23838
23838
|
function Fu$2() {
|
|
23839
23839
|
return zf$2;
|
|
23840
23840
|
}
|
|
23841
|
-
function Bu$2(r22 = 2, e = "0.10.
|
|
23841
|
+
function Bu$2(r22 = 2, e = "0.10.6") {
|
|
23842
23842
|
return {
|
|
23843
23843
|
type: "element",
|
|
23844
23844
|
name: "property",
|
|
@@ -27719,7 +27719,7 @@ Actual: ` + p3.attribValue
|
|
|
27719
27719
|
updateChildren(e, n) {
|
|
27720
27720
|
let r = this.node.inlineContent, o = n, i3 = e.composing ? this.localCompositionInfo(e, n) : null, s = i3 && i3.pos > -1 ? i3 : null, a = i3 && i3.pos < 0, l = new Cp$1(this, s && s.node, e);
|
|
27721
27721
|
Mp(this.node, this.innerDeco, (c3, d, u) => {
|
|
27722
|
-
c3.spec.marks ? l.syncToMarks(c3.spec.marks, r, e) : c3.type.side >= 0 && !u && l.syncToMarks(d == this.node.childCount ? ge$
|
|
27722
|
+
c3.spec.marks ? l.syncToMarks(c3.spec.marks, r, e) : c3.type.side >= 0 && !u && l.syncToMarks(d == this.node.childCount ? ge$2.none : this.node.child(d).marks, r, e), l.placeWidget(c3, e, o);
|
|
27723
27723
|
}, (c3, d, u, f3) => {
|
|
27724
27724
|
l.syncToMarks(c3.marks, r, e);
|
|
27725
27725
|
let p3;
|
|
@@ -28359,7 +28359,7 @@ Actual: ` + p3.attribValue
|
|
|
28359
28359
|
}
|
|
28360
28360
|
function Mi$1(t, e) {
|
|
28361
28361
|
let { $anchor: n, $head: r } = t.selection, o = e > 0 ? n.max(r) : n.min(r), i3 = o.parent.inlineContent ? o.depth ? t.doc.resolve(e > 0 ? o.after() : o.before()) : null : o;
|
|
28362
|
-
return i3 && ve$
|
|
28362
|
+
return i3 && ve$1.findFrom(i3, e);
|
|
28363
28363
|
}
|
|
28364
28364
|
function Dt$1(t, e) {
|
|
28365
28365
|
return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), true;
|
|
@@ -28546,7 +28546,7 @@ Actual: ` + p3.attribValue
|
|
|
28546
28546
|
return Dt$1(t, s);
|
|
28547
28547
|
}
|
|
28548
28548
|
if (!o.parent.inlineContent) {
|
|
28549
|
-
let s = e < 0 ? o : i3, a = r instanceof at$2 ? ve$
|
|
28549
|
+
let s = e < 0 ? o : i3, a = r instanceof at$2 ? ve$1.near(s, e) : ve$1.findFrom(s, e);
|
|
28550
28550
|
return a ? Dt$1(t, a) : false;
|
|
28551
28551
|
}
|
|
28552
28552
|
return false;
|
|
@@ -28992,7 +28992,7 @@ Actual: ` + p3.attribValue
|
|
|
28992
28992
|
// (hidden) cursor is doesn't change the selection, and
|
|
28993
28993
|
// thus doesn't get a reaction from ProseMirror. This
|
|
28994
28994
|
// works around that.
|
|
28995
|
-
be$1 && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (On$2(this.view, ve$
|
|
28995
|
+
be$1 && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (On$2(this.view, ve$1.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : It$1(this.view, "pointer");
|
|
28996
28996
|
}
|
|
28997
28997
|
move(e) {
|
|
28998
28998
|
this.updateAllowDefault(e), It$1(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -29863,7 +29863,7 @@ Actual: ` + p3.attribValue
|
|
|
29863
29863
|
}
|
|
29864
29864
|
}
|
|
29865
29865
|
let c3 = null;
|
|
29866
|
-
i3 < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Io$1(r) && (c3 = bs(e)) && c3.eq(ve$
|
|
29866
|
+
i3 < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Io$1(r) && (c3 = bs(e)) && c3.eq(ve$1.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, kt$1(e), this.currentSelection.set(r), e.scrollToSelection()) : (i3 > -1 || o) && (i3 > -1 && (e.docView.markDirty(i3, s), yh$1(e)), this.handleDOMChange(i3, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || kt$1(e), this.currentSelection.set(r));
|
|
29867
29867
|
}
|
|
29868
29868
|
registerMutation(e, n) {
|
|
29869
29869
|
if (n.indexOf(e.target) > -1)
|
|
@@ -30010,7 +30010,7 @@ Actual: ` + p3.attribValue
|
|
|
30010
30010
|
}
|
|
30011
30011
|
t.state.selection.from < t.state.selection.to && h3.start == h3.endB && t.state.selection instanceof tt$3 && (h3.start > t.state.selection.from && h3.start <= t.state.selection.from + 2 && t.state.selection.from >= c3.from ? h3.start = t.state.selection.from : h3.endA < t.state.selection.to && h3.endA >= t.state.selection.to - 2 && t.state.selection.to <= c3.to && (h3.endB += t.state.selection.to - h3.endA, h3.endA = t.state.selection.to)), Oe$2 && Lt$1 <= 11 && h3.endB == h3.start + 1 && h3.endA == h3.start && h3.start > c3.from && c3.doc.textBetween(h3.start - c3.from - 1, h3.start - c3.from + 1) == " " && (h3.start--, h3.endA--, h3.endB--);
|
|
30012
30012
|
let m = c3.doc.resolveNoCache(h3.start - c3.from), g = c3.doc.resolveNoCache(h3.endB - c3.from), b = d.resolve(h3.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= h3.endA, C;
|
|
30013
|
-
if ((Dn$2 && t.input.lastIOSEnter > Date.now() - 225 && (!w || o.some((x3) => x3.nodeName == "DIV" || x3.nodeName == "P")) || !w && m.pos < c3.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && (C = ve$
|
|
30013
|
+
if ((Dn$2 && t.input.lastIOSEnter > Date.now() - 225 && (!w || o.some((x3) => x3.nodeName == "DIV" || x3.nodeName == "P")) || !w && m.pos < c3.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && (C = ve$1.findFrom(c3.doc.resolve(m.pos + 1), 1, true)) && C.head > m.pos) && t.someProp("handleKeyDown", (x3) => x3(t, Gt$2(13, "Enter")))) {
|
|
30014
30014
|
t.input.lastIOSEnter = 0;
|
|
30015
30015
|
return;
|
|
30016
30016
|
}
|
|
@@ -31917,10 +31917,10 @@ Actual: ` + p3.attribValue
|
|
|
31917
31917
|
221: "}",
|
|
31918
31918
|
222: '"'
|
|
31919
31919
|
}, hg = typeof navigator < "u" && /Mac/.test(navigator.platform), mg = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
31920
|
-
for (var ge = 0; ge < 10; ge++) $t$1[48 + ge] = $t$1[96 + ge] = String(ge);
|
|
31921
|
-
for (var ge = 1; ge <= 24; ge++) $t$1[ge + 111] = "F" + ge;
|
|
31922
|
-
for (var ge = 65; ge <= 90; ge++)
|
|
31923
|
-
$t$1[ge] = String.fromCharCode(ge + 32), Co$1[ge] = String.fromCharCode(ge);
|
|
31920
|
+
for (var ge$1 = 0; ge$1 < 10; ge$1++) $t$1[48 + ge$1] = $t$1[96 + ge$1] = String(ge$1);
|
|
31921
|
+
for (var ge$1 = 1; ge$1 <= 24; ge$1++) $t$1[ge$1 + 111] = "F" + ge$1;
|
|
31922
|
+
for (var ge$1 = 65; ge$1 <= 90; ge$1++)
|
|
31923
|
+
$t$1[ge$1] = String.fromCharCode(ge$1 + 32), Co$1[ge$1] = String.fromCharCode(ge$1);
|
|
31924
31924
|
for (var oi$1 in $t$1) Co$1.hasOwnProperty(oi$1) || (Co$1[oi$1] = $t$1[oi$1]);
|
|
31925
31925
|
function gg(t) {
|
|
31926
31926
|
var e = hg && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || mg && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Co$1 : $t$1)[t.keyCode] || t.key || "Unidentified";
|
|
@@ -32724,7 +32724,7 @@ Actual: ` + p3.attribValue
|
|
|
32724
32724
|
if (a && a.slice.size < a.to - a.from) {
|
|
32725
32725
|
if (e) {
|
|
32726
32726
|
let l = t.tr.step(a);
|
|
32727
|
-
l.setSelection(In$2(i3, "end") ? ve$
|
|
32727
|
+
l.setSelection(In$2(i3, "end") ? ve$1.findFrom(l.doc.resolve(l.mapping.map(o.pos, -1)), -1) : Ge$1.create(l.doc, o.pos - i3.nodeSize)), e(l.scrollIntoView());
|
|
32728
32728
|
}
|
|
32729
32729
|
return true;
|
|
32730
32730
|
}
|
|
@@ -32783,7 +32783,7 @@ Actual: ` + p3.attribValue
|
|
|
32783
32783
|
if (s && s.slice.size < s.to - s.from) {
|
|
32784
32784
|
if (e) {
|
|
32785
32785
|
let a = t.tr.step(s);
|
|
32786
|
-
a.setSelection(In$2(i3, "start") ? ve$
|
|
32786
|
+
a.setSelection(In$2(i3, "start") ? ve$1.findFrom(a.doc.resolve(a.mapping.map(o.pos)), 1) : Ge$1.create(a.doc, a.mapping.map(o.pos))), e(a.scrollIntoView());
|
|
32787
32787
|
}
|
|
32788
32788
|
return true;
|
|
32789
32789
|
}
|
|
@@ -32856,7 +32856,7 @@ Actual: ` + p3.attribValue
|
|
|
32856
32856
|
return false;
|
|
32857
32857
|
if (e) {
|
|
32858
32858
|
let a = n.after(), l = t.tr.replaceWith(a, a, s.createAndFill());
|
|
32859
|
-
l.setSelection(ve$
|
|
32859
|
+
l.setSelection(ve$1.near(l.doc.resolve(a), 1)), e(l.scrollIntoView());
|
|
32860
32860
|
}
|
|
32861
32861
|
return true;
|
|
32862
32862
|
}, ud$1 = (t, e) => {
|
|
@@ -32931,7 +32931,7 @@ Actual: ` + p3.attribValue
|
|
|
32931
32931
|
}
|
|
32932
32932
|
return true;
|
|
32933
32933
|
}
|
|
32934
|
-
let d = i3.type.spec.isolating || r > 0 && l ? null : ve$
|
|
32934
|
+
let d = i3.type.spec.isolating || r > 0 && l ? null : ve$1.findFrom(e, 1), u = d && d.$from.blockRange(d.$to), f3 = u && hp$2(u);
|
|
32935
32935
|
if (f3 != null && f3 >= e.depth)
|
|
32936
32936
|
return n && n(t.tr.lift(u, f3).scrollIntoView()), true;
|
|
32937
32937
|
if (c3 && In$2(i3, "start", true) && In$2(o, "end")) {
|
|
@@ -33290,7 +33290,7 @@ Actual: ` + p3.attribValue
|
|
|
33290
33290
|
let s = 0;
|
|
33291
33291
|
i3.forEach((a, l, c3, d) => {
|
|
33292
33292
|
s === 0 && (s = d);
|
|
33293
|
-
}), t.setSelection(ve$
|
|
33293
|
+
}), t.setSelection(ve$1.near(t.doc.resolve(s), n));
|
|
33294
33294
|
}
|
|
33295
33295
|
const yy = (t) => !("type" in t), by = (t, e, n) => ({ tr: r, dispatch: o, editor: i3 }) => {
|
|
33296
33296
|
if (o) {
|
|
@@ -36304,7 +36304,7 @@ Actual: ` + p3.attribValue
|
|
|
36304
36304
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36305
36305
|
*/
|
|
36306
36306
|
processCollaborationMigrations() {
|
|
36307
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
36307
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.6"), !this.options.ydoc) return;
|
|
36308
36308
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36309
36309
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36310
36310
|
const o = tl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -36332,7 +36332,7 @@ Actual: ` + p3.attribValue
|
|
|
36332
36332
|
en$1 = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakSet(), Rd$1 = function(n) {
|
|
36333
36333
|
if (!n.element && n.selector) {
|
|
36334
36334
|
const { selector: r } = n;
|
|
36335
|
-
r.startsWith("#") ? n.element = document.
|
|
36335
|
+
r.startsWith("#") || r.startsWith(".") ? n.element = document.querySelector(r) : n.element = document.getElementById(r), ["text", "html"].includes(n.mode) && n.element && n.element.classList.add("sd-super-editor-html");
|
|
36336
36336
|
}
|
|
36337
36337
|
n.element = n.isHeadless ? null : n.element || document.createElement("div");
|
|
36338
36338
|
}, Ld$1 = function(n) {
|
|
@@ -36975,7 +36975,7 @@ Actual: ` + p3.attribValue
|
|
|
36975
36975
|
return [cb(this.options)];
|
|
36976
36976
|
}
|
|
36977
36977
|
});
|
|
36978
|
-
let re$2 = class re2 extends ve$
|
|
36978
|
+
let re$2 = class re2 extends ve$1 {
|
|
36979
36979
|
/**
|
|
36980
36980
|
Create a gap cursor.
|
|
36981
36981
|
*/
|
|
@@ -36984,7 +36984,7 @@ Actual: ` + p3.attribValue
|
|
|
36984
36984
|
}
|
|
36985
36985
|
map(e, n) {
|
|
36986
36986
|
let r = e.resolve(n.map(this.head));
|
|
36987
|
-
return re2.valid(r) ? new re2(r) : ve$
|
|
36987
|
+
return re2.valid(r) ? new re2(r) : ve$1.near(r);
|
|
36988
36988
|
}
|
|
36989
36989
|
content() {
|
|
36990
36990
|
return ue.empty;
|
|
@@ -37062,7 +37062,7 @@ Actual: ` + p3.attribValue
|
|
|
37062
37062
|
};
|
|
37063
37063
|
re$2.prototype.visible = false;
|
|
37064
37064
|
re$2.findFrom = re$2.findGapCursorFrom;
|
|
37065
|
-
ve$
|
|
37065
|
+
ve$1.jsonID("gapcursor", re$2);
|
|
37066
37066
|
class _s {
|
|
37067
37067
|
constructor(e) {
|
|
37068
37068
|
this.pos = e;
|
|
@@ -37072,7 +37072,7 @@ Actual: ` + p3.attribValue
|
|
|
37072
37072
|
}
|
|
37073
37073
|
resolve(e) {
|
|
37074
37074
|
let n = e.resolve(this.pos);
|
|
37075
|
-
return re$2.valid(n) ? new re$2(n) : ve$
|
|
37075
|
+
return re$2.valid(n) ? new re$2(n) : ve$1.near(n);
|
|
37076
37076
|
}
|
|
37077
37077
|
}
|
|
37078
37078
|
function ub(t) {
|
|
@@ -38827,7 +38827,7 @@ Actual: ` + p3.attribValue
|
|
|
38827
38827
|
return false;
|
|
38828
38828
|
return true;
|
|
38829
38829
|
}
|
|
38830
|
-
var X$1 = class ht2 extends ve$
|
|
38830
|
+
var X$1 = class ht2 extends ve$1 {
|
|
38831
38831
|
// A table selection is identified by its anchor and head cells. The
|
|
38832
38832
|
// positions given to this constructor should point _before_ two
|
|
38833
38833
|
// cells in the same table. They may be the same, to select a single
|
|
@@ -38914,7 +38914,7 @@ Actual: ` + p3.attribValue
|
|
|
38914
38914
|
s ? ue.empty : n
|
|
38915
38915
|
);
|
|
38916
38916
|
}
|
|
38917
|
-
const i3 = ve$
|
|
38917
|
+
const i3 = ve$1.findFrom(
|
|
38918
38918
|
e.doc.resolve(e.mapping.slice(r).map(this.to)),
|
|
38919
38919
|
-1
|
|
38920
38920
|
);
|
|
@@ -38992,7 +38992,7 @@ Actual: ` + p3.attribValue
|
|
|
38992
38992
|
}
|
|
38993
38993
|
};
|
|
38994
38994
|
X$1.prototype.visible = false;
|
|
38995
|
-
ve$
|
|
38995
|
+
ve$1.jsonID("cell", X$1);
|
|
38996
38996
|
var g0 = class uu2 {
|
|
38997
38997
|
constructor(e, n) {
|
|
38998
38998
|
this.anchor = e, this.head = n;
|
|
@@ -39002,7 +39002,7 @@ Actual: ` + p3.attribValue
|
|
|
39002
39002
|
}
|
|
39003
39003
|
resolve(e) {
|
|
39004
39004
|
const n = e.resolve(this.anchor), r = e.resolve(this.head);
|
|
39005
|
-
return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && $s(n, r) ? new X$1(n, r) : ve$
|
|
39005
|
+
return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && $s(n, r) ? new X$1(n, r) : ve$1.near(r, 1);
|
|
39006
39006
|
}
|
|
39007
39007
|
};
|
|
39008
39008
|
function y0(t) {
|
|
@@ -39792,7 +39792,7 @@ Actual: ` + p3.attribValue
|
|
|
39792
39792
|
return so$2(
|
|
39793
39793
|
n,
|
|
39794
39794
|
r,
|
|
39795
|
-
ve$
|
|
39795
|
+
ve$1.near(i3.$headCell, e)
|
|
39796
39796
|
);
|
|
39797
39797
|
if (t != "horiz" && !i3.empty) return false;
|
|
39798
39798
|
const s = gu$1(o, t, e);
|
|
@@ -39801,12 +39801,12 @@ Actual: ` + p3.attribValue
|
|
|
39801
39801
|
return so$2(
|
|
39802
39802
|
n,
|
|
39803
39803
|
r,
|
|
39804
|
-
ve$
|
|
39804
|
+
ve$1.near(n.doc.resolve(i3.head + e), e)
|
|
39805
39805
|
);
|
|
39806
39806
|
{
|
|
39807
39807
|
const a = n.doc.resolve(s), l = cu$1(a, t, e);
|
|
39808
39808
|
let c3;
|
|
39809
|
-
return l ? c3 = ve$
|
|
39809
|
+
return l ? c3 = ve$1.near(l, 1) : e < 0 ? c3 = ve$1.near(n.doc.resolve(a.before(-1)), -1) : c3 = ve$1.near(n.doc.resolve(a.after(-1)), 1), so$2(n, r, c3);
|
|
39810
39810
|
}
|
|
39811
39811
|
};
|
|
39812
39812
|
}
|
|
@@ -41220,7 +41220,7 @@ Actual: ` + p3.attribValue
|
|
|
41220
41220
|
let { schema: a } = r, l = s.mapping.map(t), d = i3.doc.resolve(l).marks();
|
|
41221
41221
|
d = d.length ? [...d] : null;
|
|
41222
41222
|
let u = Ow(d), f3 = a.nodes[this.name].create({ ...e, ...u }, null, null);
|
|
41223
|
-
i3.tr.insert(l, f3).setSelection(ve$
|
|
41223
|
+
i3.tr.insert(l, f3).setSelection(ve$1.near(s.doc.resolve(l + f3.nodeSize))), n && this.editor.view.focus();
|
|
41224
41224
|
}
|
|
41225
41225
|
return true;
|
|
41226
41226
|
},
|
|
@@ -45339,7 +45339,7 @@ ${o}
|
|
|
45339
45339
|
let r = t * Math.min(n, 1 - n), o = (i3, s = (i3 + e / 30) % 12) => n - r * Math.max(Math.min(s - 3, 9 - s, 1), -1);
|
|
45340
45340
|
return [o(0) * 255, o(8) * 255, o(4) * 255];
|
|
45341
45341
|
}
|
|
45342
|
-
const ze$1 = "^\\s*", Fe = "\\s*$", He$1 = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", ve
|
|
45342
|
+
const ze$1 = "^\\s*", Fe = "\\s*$", He$1 = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", ve = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*", Xe = "([0-9A-Fa-f])", qe$1 = "([0-9A-Fa-f]{2})", di = new RegExp(`${ze$1}hsl\\s*\\(${ve},${He$1},${He$1}\\)${Fe}`), fi = new RegExp(`${ze$1}hsv\\s*\\(${ve},${He$1},${He$1}\\)${Fe}`), hi = new RegExp(`${ze$1}hsla\\s*\\(${ve},${He$1},${He$1},${ve}\\)${Fe}`), pi = new RegExp(`${ze$1}hsva\\s*\\(${ve},${He$1},${He$1},${ve}\\)${Fe}`), Ia = new RegExp(`${ze$1}rgb\\s*\\(${ve},${ve},${ve}\\)${Fe}`), Oa = new RegExp(`${ze$1}rgba\\s*\\(${ve},${ve},${ve},${ve}\\)${Fe}`), Pa = new RegExp(`${ze$1}#${Xe}${Xe}${Xe}${Fe}`), La = new RegExp(`${ze$1}#${qe$1}${qe$1}${qe$1}${Fe}`), Ra = new RegExp(`${ze$1}#${Xe}${Xe}${Xe}${Xe}${Fe}`), ka = new RegExp(`${ze$1}#${qe$1}${qe$1}${qe$1}${qe$1}${Fe}`);
|
|
45343
45343
|
function fe(e) {
|
|
45344
45344
|
return parseInt(e, 16);
|
|
45345
45345
|
}
|
|
@@ -51884,45 +51884,45 @@ ${t}
|
|
|
51884
51884
|
}, s.prototype.emit = function(d, u, r, b, h3, y) {
|
|
51885
51885
|
var _ = o ? o + d : d;
|
|
51886
51886
|
if (!this._events[_]) return false;
|
|
51887
|
-
var
|
|
51888
|
-
if (
|
|
51889
|
-
switch (
|
|
51887
|
+
var g = this._events[_], M3 = arguments.length, D3, p3;
|
|
51888
|
+
if (g.fn) {
|
|
51889
|
+
switch (g.once && this.removeListener(d, g.fn, void 0, true), M3) {
|
|
51890
51890
|
case 1:
|
|
51891
|
-
return
|
|
51891
|
+
return g.fn.call(g.context), true;
|
|
51892
51892
|
case 2:
|
|
51893
|
-
return
|
|
51893
|
+
return g.fn.call(g.context, u), true;
|
|
51894
51894
|
case 3:
|
|
51895
|
-
return
|
|
51895
|
+
return g.fn.call(g.context, u, r), true;
|
|
51896
51896
|
case 4:
|
|
51897
|
-
return
|
|
51897
|
+
return g.fn.call(g.context, u, r, b), true;
|
|
51898
51898
|
case 5:
|
|
51899
|
-
return
|
|
51899
|
+
return g.fn.call(g.context, u, r, b, h3), true;
|
|
51900
51900
|
case 6:
|
|
51901
|
-
return
|
|
51901
|
+
return g.fn.call(g.context, u, r, b, h3, y), true;
|
|
51902
51902
|
}
|
|
51903
51903
|
for (p3 = 1, D3 = new Array(M3 - 1); p3 < M3; p3++)
|
|
51904
51904
|
D3[p3 - 1] = arguments[p3];
|
|
51905
|
-
|
|
51905
|
+
g.fn.apply(g.context, D3);
|
|
51906
51906
|
} else {
|
|
51907
|
-
var C =
|
|
51907
|
+
var C = g.length, A3;
|
|
51908
51908
|
for (p3 = 0; p3 < C; p3++)
|
|
51909
|
-
switch (
|
|
51909
|
+
switch (g[p3].once && this.removeListener(d, g[p3].fn, void 0, true), M3) {
|
|
51910
51910
|
case 1:
|
|
51911
|
-
|
|
51911
|
+
g[p3].fn.call(g[p3].context);
|
|
51912
51912
|
break;
|
|
51913
51913
|
case 2:
|
|
51914
|
-
|
|
51914
|
+
g[p3].fn.call(g[p3].context, u);
|
|
51915
51915
|
break;
|
|
51916
51916
|
case 3:
|
|
51917
|
-
|
|
51917
|
+
g[p3].fn.call(g[p3].context, u, r);
|
|
51918
51918
|
break;
|
|
51919
51919
|
case 4:
|
|
51920
|
-
|
|
51920
|
+
g[p3].fn.call(g[p3].context, u, r, b);
|
|
51921
51921
|
break;
|
|
51922
51922
|
default:
|
|
51923
51923
|
if (!D3) for (A3 = 1, D3 = new Array(M3 - 1); A3 < M3; A3++)
|
|
51924
51924
|
D3[A3 - 1] = arguments[A3];
|
|
51925
|
-
|
|
51925
|
+
g[p3].fn.apply(g[p3].context, D3);
|
|
51926
51926
|
}
|
|
51927
51927
|
}
|
|
51928
51928
|
return true;
|
|
@@ -51939,9 +51939,9 @@ ${t}
|
|
|
51939
51939
|
if (y.fn)
|
|
51940
51940
|
y.fn === u && (!b || y.once) && (!r || y.context === r) && c3(this, h3);
|
|
51941
51941
|
else {
|
|
51942
|
-
for (var _ = 0,
|
|
51943
|
-
(y[_].fn !== u || b && !y[_].once || r && y[_].context !== r) &&
|
|
51944
|
-
|
|
51942
|
+
for (var _ = 0, g = [], M3 = y.length; _ < M3; _++)
|
|
51943
|
+
(y[_].fn !== u || b && !y[_].once || r && y[_].context !== r) && g.push(y[_]);
|
|
51944
|
+
g.length ? this._events[h3] = g.length === 1 ? g[0] : g : c3(this, h3);
|
|
51945
51945
|
}
|
|
51946
51946
|
return this;
|
|
51947
51947
|
}, s.prototype.removeAllListeners = function(d) {
|
|
@@ -51976,7 +51976,7 @@ ${t}
|
|
|
51976
51976
|
throw new Error("Toolbar button item needs either icon or label - " + t.name);
|
|
51977
51977
|
if (!t.name)
|
|
51978
51978
|
throw new Error("Invalid toolbar item name - " + t.name);
|
|
51979
|
-
const o = ref(xa$2()), n = t.type, e = ref(t.name), i3 = t.command, c3 = ref(t.icon), s = ref(t.group || "center"), a = ref(t.allowWithoutEditor), d = ref(t.attributes || {}), u = t.disabled || false, r = ref(t.disabled), b = ref(false), h3 = ref(false), y = ref(t.style), _ = ref(t.isNarrow),
|
|
51979
|
+
const o = ref(xa$2()), n = t.type, e = ref(t.name), i3 = t.command, c3 = ref(t.icon), s = ref(t.group || "center"), a = ref(t.allowWithoutEditor), d = ref(t.attributes || {}), u = t.disabled || false, r = ref(t.disabled), b = ref(false), h3 = ref(false), y = ref(t.style), _ = ref(t.isNarrow), g = ref(t.isWide), M3 = ref(t.minWidth), D3 = ref(t.suppressActiveHighlight || false), p3 = ref(t.argument), C = ref(null), A3 = ref(null), H3 = ref(t.iconColor), N3 = ref(t.hasCaret), Q3 = ref(t.tooltip), ve2 = ref(t.tooltipVisible), ce2 = ref(t.tooltipTimeout), de2 = ref(t.defaultLabel), se = ref(t.label), T3 = ref(t.hideLabel), I3 = ref(t.inlineTextInputVisible), B = ref(t.hasInlineTextInput), R = ref(t.markName), U = ref(t.labelAttr), K3 = ref(t.selectedValue), ue2 = ref(t.dropdownValueKey), le2 = ref([]);
|
|
51980
51980
|
if (t.options) {
|
|
51981
51981
|
if (!Array.isArray(t.options)) throw new Error("Invalid toolbar item options - " + t.options);
|
|
51982
51982
|
le2.value.push(...t.options);
|
|
@@ -52009,13 +52009,13 @@ ${t}
|
|
|
52009
52009
|
nestedOptions: le2,
|
|
52010
52010
|
style: y,
|
|
52011
52011
|
isNarrow: _,
|
|
52012
|
-
isWide:
|
|
52012
|
+
isWide: g,
|
|
52013
52013
|
minWidth: M3,
|
|
52014
52014
|
argument: p3,
|
|
52015
52015
|
parentItem: A3,
|
|
52016
52016
|
iconColor: H3,
|
|
52017
52017
|
hasCaret: N3,
|
|
52018
|
-
tooltipVisible:
|
|
52018
|
+
tooltipVisible: ve2,
|
|
52019
52019
|
tooltipTimeout: ce2,
|
|
52020
52020
|
defaultLabel: de2,
|
|
52021
52021
|
label: se,
|
|
@@ -52122,7 +52122,7 @@ ${t}
|
|
|
52122
52122
|
}, s = ref(false), a = ref(n.initialText), d = ref(n.href), u = computed(() => d.value?.startsWith("http") ? d.value : "http://" + d.value), r = computed(() => {
|
|
52123
52123
|
const p3 = u.value.split(".").filter(Boolean);
|
|
52124
52124
|
return u.value.includes(".") && p3.length > 1;
|
|
52125
|
-
}), b = computed(() => y.value ? "Apply" : "Remove"), h3 = computed(() => !r.value), y = computed(() => !_.value), _ = computed(() => n.href && !d.value),
|
|
52125
|
+
}), b = computed(() => y.value ? "Apply" : "Remove"), h3 = computed(() => !r.value), y = computed(() => !_.value), _ = computed(() => n.href && !d.value), g = computed(() => n.href.startsWith("#")), M3 = () => {
|
|
52126
52126
|
window.open(u.value, "_blank");
|
|
52127
52127
|
};
|
|
52128
52128
|
watch(
|
|
@@ -52138,8 +52138,8 @@ ${t}
|
|
|
52138
52138
|
return onMounted(() => {
|
|
52139
52139
|
n.showInput && D3();
|
|
52140
52140
|
}), (p3, C) => (openBlock(), createElementBlock("div", Xt, [
|
|
52141
|
-
t.href ?
|
|
52142
|
-
t.showInput && !
|
|
52141
|
+
t.href ? g.value ? (openBlock(), createElementBlock("div", Yt, "Page anchor")) : (openBlock(), createElementBlock("div", Jt, "Edit link")) : (openBlock(), createElementBlock("div", Zt, "Add link")),
|
|
52142
|
+
t.showInput && !g.value ? (openBlock(), createElementBlock("div", Qt, [
|
|
52143
52143
|
createBaseVNode("div", en, [
|
|
52144
52144
|
createBaseVNode("div", {
|
|
52145
52145
|
class: "input-icon",
|
|
@@ -52181,14 +52181,14 @@ ${t}
|
|
|
52181
52181
|
onClick: i3
|
|
52182
52182
|
}, toDisplayString(b.value), 3)) : createCommentVNode("", true)
|
|
52183
52183
|
])
|
|
52184
|
-
])) :
|
|
52184
|
+
])) : g.value ? (openBlock(), createElementBlock("div", an, [
|
|
52185
52185
|
createBaseVNode("a", {
|
|
52186
52186
|
onClick: C[2] || (C[2] = withModifiers((...A3) => t.goToAnchor && t.goToAnchor(...A3), ["stop", "prevent"]))
|
|
52187
52187
|
}, "Go to " + toDisplayString(t.href.startsWith("#_") ? t.href.substring(2) : t.href), 1)
|
|
52188
52188
|
])) : createCommentVNode("", true)
|
|
52189
52189
|
]));
|
|
52190
52190
|
}
|
|
52191
|
-
}, cn = /* @__PURE__ */ yk(rn, [["__scopeId", "data-v-6990d5b2"]]), dn = { class: "document-mode" }, un = ["onClick"], mn = { class: "document-mode-column icon-column" }, pn = ["innerHTML"], fn = { class: "document-mode-column text-column" }, hn = { class: "document-mode-type" },
|
|
52191
|
+
}, cn = /* @__PURE__ */ yk(rn, [["__scopeId", "data-v-6990d5b2"]]), dn = { class: "document-mode" }, un = ["onClick"], mn = { class: "document-mode-column icon-column" }, pn = ["innerHTML"], fn = { class: "document-mode-column text-column" }, hn = { class: "document-mode-type" }, gn = { class: "document-mode-description" }, vn = {
|
|
52192
52192
|
__name: "DocumentMode",
|
|
52193
52193
|
props: {
|
|
52194
52194
|
options: {
|
|
@@ -52213,12 +52213,12 @@ ${t}
|
|
|
52213
52213
|
]),
|
|
52214
52214
|
createBaseVNode("div", fn, [
|
|
52215
52215
|
createBaseVNode("div", hn, toDisplayString(c3.label), 1),
|
|
52216
|
-
createBaseVNode("div",
|
|
52216
|
+
createBaseVNode("div", gn, toDisplayString(c3.description), 1)
|
|
52217
52217
|
])
|
|
52218
52218
|
], 10, un))), 256))
|
|
52219
52219
|
]));
|
|
52220
52220
|
}
|
|
52221
|
-
}, yn = /* @__PURE__ */ yk(
|
|
52221
|
+
}, yn = /* @__PURE__ */ yk(vn, [["__scopeId", "data-v-f86e1477"]]), bn = {
|
|
52222
52222
|
key: 0,
|
|
52223
52223
|
class: "linked-style-buttons"
|
|
52224
52224
|
}, kn = ["onClick"], wn = {
|
|
@@ -52432,8 +52432,8 @@ ${t}
|
|
|
52432
52432
|
let r = [...a.parentElement.querySelectorAll("[data-item]")], b = parseInt(a.dataset.cols, 10), h3 = parseInt(a.dataset.rows, 10);
|
|
52433
52433
|
e.value = b, n.value = h3;
|
|
52434
52434
|
for (let y = 0; y < r.length; y++) {
|
|
52435
|
-
let _ = r[y],
|
|
52436
|
-
|
|
52435
|
+
let _ = r[y], g = parseInt(_.dataset.cols, 10), M3 = parseInt(_.dataset.rows, 10);
|
|
52436
|
+
g <= b && M3 <= h3 ? _.classList.add("selected") : _.classList.remove("selected");
|
|
52437
52437
|
}
|
|
52438
52438
|
}, c3 = ({ cols: s, rows: a }) => {
|
|
52439
52439
|
o("select", { cols: s, rows: a });
|
|
@@ -52684,7 +52684,7 @@ ${t}
|
|
|
52684
52684
|
command: "toggleLink"
|
|
52685
52685
|
});
|
|
52686
52686
|
h$1.childItem = _, _.parentItem = h$1;
|
|
52687
|
-
const
|
|
52687
|
+
const g = x({
|
|
52688
52688
|
type: "button",
|
|
52689
52689
|
name: "image",
|
|
52690
52690
|
command: "startImageUpload",
|
|
@@ -52844,7 +52844,7 @@ ${t}
|
|
|
52844
52844
|
command: "toggleBulletList",
|
|
52845
52845
|
icon: e.bulletList,
|
|
52846
52846
|
tooltip: "Bullet list"
|
|
52847
|
-
}),
|
|
52847
|
+
}), ve2 = x({
|
|
52848
52848
|
type: "button",
|
|
52849
52849
|
name: "numberedlist",
|
|
52850
52850
|
command: "toggleOrderedList",
|
|
@@ -53145,13 +53145,13 @@ ${t}
|
|
|
53145
53145
|
r,
|
|
53146
53146
|
a,
|
|
53147
53147
|
h$1,
|
|
53148
|
-
|
|
53148
|
+
g,
|
|
53149
53149
|
M3,
|
|
53150
53150
|
p3,
|
|
53151
53151
|
a,
|
|
53152
53152
|
H3,
|
|
53153
53153
|
Q3,
|
|
53154
|
-
|
|
53154
|
+
ve2,
|
|
53155
53155
|
ce2,
|
|
53156
53156
|
de2,
|
|
53157
53157
|
ae2,
|
|
@@ -53265,12 +53265,12 @@ ${t}
|
|
|
53265
53265
|
let b = o.name.replace(" ", "_"), h3 = qk(l.state, s);
|
|
53266
53266
|
if (h3 == null)
|
|
53267
53267
|
return;
|
|
53268
|
-
let y = { type: "remove", id: s }, _ = `word/media/${b}`,
|
|
53268
|
+
let y = { type: "remove", id: s }, _ = `word/media/${b}`, g = d.nodes.image.create({
|
|
53269
53269
|
src: _,
|
|
53270
53270
|
size: { width: i3, height: c3 }
|
|
53271
53271
|
});
|
|
53272
53272
|
t.storage.image.media = Object.assign(t.storage.image.media, { [_]: r }), t.options.ydoc && t.commands.addImageToCollaboration({ mediaPath: _, fileData: r }), l.dispatch(
|
|
53273
|
-
l.state.tr.replaceWith(h3, h3,
|
|
53273
|
+
l.state.tr.replaceWith(h3, h3, g).setMeta(Ao$1, y)
|
|
53274
53274
|
);
|
|
53275
53275
|
},
|
|
53276
53276
|
() => {
|
|
@@ -53279,8 +53279,8 @@ ${t}
|
|
|
53279
53279
|
}
|
|
53280
53280
|
);
|
|
53281
53281
|
};
|
|
53282
|
-
var L, Qe,
|
|
53283
|
-
class
|
|
53282
|
+
var L, Qe, ge, Ne, et, tt, ze, nt, he;
|
|
53283
|
+
class go extends Nt {
|
|
53284
53284
|
constructor(o) {
|
|
53285
53285
|
super();
|
|
53286
53286
|
He(this, L);
|
|
@@ -53295,7 +53295,7 @@ ${t}
|
|
|
53295
53295
|
groups: null,
|
|
53296
53296
|
editor: null
|
|
53297
53297
|
});
|
|
53298
|
-
He(this,
|
|
53298
|
+
He(this, ge, {
|
|
53299
53299
|
setZoom: ({ item: o22, argument: n22 }) => {
|
|
53300
53300
|
if (!n22) return;
|
|
53301
53301
|
o22.onActivate({ zoom: n22 }), this.emit("superdoc-command", { item: o22, argument: n22 });
|
|
@@ -53386,7 +53386,7 @@ ${t}
|
|
|
53386
53386
|
...o.icons
|
|
53387
53387
|
}, !this.config.selector && this.config.element && (this.config.selector = this.config.element), O(this, L, Qe).call(this), O(this, L, Ne).call(this, this, this.config.icons, o.isDev);
|
|
53388
53388
|
let n = null;
|
|
53389
|
-
if (this.config.selector && (n = document.getElementById(this.config.selector), !n)) {
|
|
53389
|
+
if (this.config.selector && (this.config.selector.startsWith("#") || this.config.selector.startsWith(".") ? n = document.querySelector(this.config.selector) : n = document.getElementById(this.config.selector), !n)) {
|
|
53390
53390
|
console.warn(`[super-toolbar 🎨] Element not found: ${this.config.selector}`);
|
|
53391
53391
|
return;
|
|
53392
53392
|
}
|
|
@@ -53397,7 +53397,7 @@ ${t}
|
|
|
53397
53397
|
}
|
|
53398
53398
|
setZoom(o) {
|
|
53399
53399
|
const e = [...this.toolbarItems, ...this.overflowItems].find((i3) => i3.name.value === "zoom");
|
|
53400
|
-
Ee(this,
|
|
53400
|
+
Ee(this, ge).setZoom({ item: e, argument: o });
|
|
53401
53401
|
}
|
|
53402
53402
|
/**
|
|
53403
53403
|
* The toolbar expects an active Super Editor instance.
|
|
@@ -53443,8 +53443,8 @@ ${t}
|
|
|
53443
53443
|
emitCommand({ item: o, argument: n }) {
|
|
53444
53444
|
const { command: e } = o;
|
|
53445
53445
|
if (e) {
|
|
53446
|
-
if (this.log("(emmitCommand) Command:", e, o, n), e in Ee(this,
|
|
53447
|
-
return Ee(this,
|
|
53446
|
+
if (this.log("(emmitCommand) Command:", e, o, n), e in Ee(this, ge))
|
|
53447
|
+
return Ee(this, ge)[e]({ item: o, argument: n });
|
|
53448
53448
|
if (e in this.activeEditor?.commands)
|
|
53449
53449
|
this.activeEditor.commands[e](n), this.updateToolbarState();
|
|
53450
53450
|
else
|
|
@@ -53454,7 +53454,7 @@ ${t}
|
|
|
53454
53454
|
}
|
|
53455
53455
|
L = /* @__PURE__ */ new WeakSet(), Qe = function() {
|
|
53456
53456
|
this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length && (this.config.toolbarGroups = Object.keys(this.config.groups));
|
|
53457
|
-
},
|
|
53457
|
+
}, ge = /* @__PURE__ */ new WeakMap(), Ne = function(o, n, e = false) {
|
|
53458
53458
|
const i3 = document.documentElement.clientWidth, { defaultItems: c3, overflowItems: s } = Un(o, e, i3, this.role, n);
|
|
53459
53459
|
let a = [
|
|
53460
53460
|
...c3.map((u) => u.name.value),
|
|
@@ -53542,7 +53542,7 @@ ${t}
|
|
|
53542
53542
|
emits: ["margin-change"],
|
|
53543
53543
|
setup(t, { emit: l }) {
|
|
53544
53544
|
const o = l, n = t, e = ref(null), i3 = ref([]), c3 = ref("#CCCCCC"), s = ref("#2563EB66"), a = ref(null), d = ref(null), u = ref(false), r = ref(null), b = reactive({ side: "left", x: 0 }), h3 = reactive({ side: "right", x: 0 }), y = ref(false), _ = ref(0);
|
|
53545
|
-
let
|
|
53545
|
+
let g = 0;
|
|
53546
53546
|
const M3 = () => {
|
|
53547
53547
|
if (n.editor.options.mode !== "docx") return;
|
|
53548
53548
|
const T3 = [], { pageMargins: I3, pageSize: B } = n.editor.getPageStyles();
|
|
@@ -53578,12 +53578,12 @@ ${t}
|
|
|
53578
53578
|
minHeight: `${B.height}px`
|
|
53579
53579
|
};
|
|
53580
53580
|
}), H3 = (T3) => {
|
|
53581
|
-
u.value = true,
|
|
53581
|
+
u.value = true, ve2();
|
|
53582
53582
|
const I3 = T3.currentTarget.id;
|
|
53583
|
-
r.value = I3 === "left-margin-handle" ? b : h3, _.value = r.value.x,
|
|
53583
|
+
r.value = I3 === "left-margin-handle" ? b : h3, _.value = r.value.x, g = T3.clientX - r.value.x, y.value = true;
|
|
53584
53584
|
}, N3 = (T3) => {
|
|
53585
53585
|
if (!u.value) return;
|
|
53586
|
-
const I3 = T3.clientX -
|
|
53586
|
+
const I3 = T3.clientX - g;
|
|
53587
53587
|
r.value.x = I3, r.value.side === "left" ? I3 <= 0 ? r.value.x = 0 : I3 >= h3.x - Se && (r.value.x = h3.x - Se) : I3 >= a.value.width * 96 ? r.value.x = a.value.width * 96 : I3 <= b.x + Se && (r.value.x = b.x + Se);
|
|
53588
53588
|
}, Q3 = () => {
|
|
53589
53589
|
if (u.value = false, y.value = false, ce2(), r.value && r.value.x !== _.value) {
|
|
@@ -53593,7 +53593,7 @@ ${t}
|
|
|
53593
53593
|
value: T3
|
|
53594
53594
|
});
|
|
53595
53595
|
}
|
|
53596
|
-
},
|
|
53596
|
+
}, ve2 = () => {
|
|
53597
53597
|
c3.value = s.value;
|
|
53598
53598
|
}, ce2 = () => {
|
|
53599
53599
|
c3.value = "#CCC";
|
|
@@ -53732,7 +53732,7 @@ ${t}
|
|
|
53732
53732
|
});
|
|
53733
53733
|
}, _ = (p3) => {
|
|
53734
53734
|
o("editor-keydown", { editor: i3.value });
|
|
53735
|
-
},
|
|
53735
|
+
}, g = (p3) => {
|
|
53736
53736
|
o("editor-click", { editor: i3.value });
|
|
53737
53737
|
let C = s.value?.querySelector(".ProseMirror");
|
|
53738
53738
|
if (!C || !i3.value)
|
|
@@ -53763,7 +53763,7 @@ ${t}
|
|
|
53763
53763
|
ref_key: "editorWrapper",
|
|
53764
53764
|
ref: c3,
|
|
53765
53765
|
onKeydown: _,
|
|
53766
|
-
onClick:
|
|
53766
|
+
onClick: g,
|
|
53767
53767
|
onMousedown: M3
|
|
53768
53768
|
}, [
|
|
53769
53769
|
createBaseVNode("div", {
|
|
@@ -53819,7 +53819,7 @@ ${t}
|
|
|
53819
53819
|
]))
|
|
53820
53820
|
]));
|
|
53821
53821
|
}
|
|
53822
|
-
},
|
|
53822
|
+
}, vo = /* @__PURE__ */ yk(ao, [["__scopeId", "data-v-ff8f86f4"]]), ro = ["innerHTML"], co = {
|
|
53823
53823
|
__name: "SuperInput",
|
|
53824
53824
|
props: {
|
|
53825
53825
|
modelValue: {
|
|
@@ -68498,7 +68498,7 @@ ${style2}
|
|
|
68498
68498
|
onPageLoaded: unref(handlePageReady),
|
|
68499
68499
|
onBypassSelection: handlePdfClick
|
|
68500
68500
|
}, null, 8, ["document-data", "onPageLoaded"])) : createCommentVNode("", true),
|
|
68501
|
-
doc2.type === unref(DOCX) ? (openBlock(), createBlock(unref(
|
|
68501
|
+
doc2.type === unref(DOCX) ? (openBlock(), createBlock(unref(vo), {
|
|
68502
68502
|
key: 1,
|
|
68503
68503
|
"file-source": doc2.data,
|
|
68504
68504
|
state: doc2.state,
|
|
@@ -68631,7 +68631,7 @@ ${style2}
|
|
|
68631
68631
|
this.config.colors = shuffleArray(this.config.colors);
|
|
68632
68632
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
68633
68633
|
this.colorIndex = 0;
|
|
68634
|
-
this.version = "0.10.
|
|
68634
|
+
this.version = "0.10.6";
|
|
68635
68635
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
68636
68636
|
this.superdocId = config.superdocId || v4();
|
|
68637
68637
|
this.colors = this.config.colors;
|
|
@@ -68793,7 +68793,7 @@ ${style2}
|
|
|
68793
68793
|
superdoc: this,
|
|
68794
68794
|
...moduleConfig
|
|
68795
68795
|
};
|
|
68796
|
-
this.toolbar = new
|
|
68796
|
+
this.toolbar = new go(config);
|
|
68797
68797
|
this.toolbar.on("superdoc-command", this.onToolbarCommand.bind(this));
|
|
68798
68798
|
this.once("editorCreate", () => this.toolbar.updateToolbarState());
|
|
68799
68799
|
}
|