@harbour-enterprises/superdoc 0.14.5 → 0.14.6-next.2
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-BbUeKf5t.es.js → super-editor.es-BjxeFkQ0.es.js} +8 -5
- package/dist/chunks/{super-editor.es-Cqq7P8zd.cjs → super-editor.es-DdwWl3Cy.cjs} +8 -5
- package/dist/core/SuperDoc.d.ts +5 -0
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +33 -33
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BMZIDPQ7.js → converter-Bict6sIJ.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-ByXoxeIR.js → docx-zipper-DzMTHmjd.js} +1 -1
- package/dist/super-editor/chunks/{editor-ClOD8-QH.js → editor-BCHYVPtn.js} +6 -3
- package/dist/super-editor/chunks/{toolbar-B-FZu2s0.js → toolbar-DZ4p0Wch.js} +2 -2
- package/dist/super-editor/converter.es.js +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/extensions/slash-menu/slash-menu.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +6 -6
- package/dist/super-editor/super-editor.es.js +8 -8
- 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 +7 -4
- package/dist/superdoc.es.js +8 -5
- package/dist/superdoc.umd.js +14 -8
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -24331,7 +24331,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24331
24331
|
return;
|
|
24332
24332
|
}
|
|
24333
24333
|
}
|
|
24334
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.
|
|
24334
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.6-next.2") {
|
|
24335
24335
|
const customLocation = "docProps/custom.xml";
|
|
24336
24336
|
if (!docx[customLocation]) {
|
|
24337
24337
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24807,7 +24807,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24807
24807
|
function generateCustomXml() {
|
|
24808
24808
|
return DEFAULT_CUSTOM_XML;
|
|
24809
24809
|
}
|
|
24810
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.
|
|
24810
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.6-next.2") {
|
|
24811
24811
|
return {
|
|
24812
24812
|
type: "element",
|
|
24813
24813
|
name: "property",
|
|
@@ -42401,7 +42401,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42401
42401
|
* @returns {Object | void} Migration results
|
|
42402
42402
|
*/
|
|
42403
42403
|
processCollaborationMigrations() {
|
|
42404
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.
|
|
42404
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.6-next.2");
|
|
42405
42405
|
if (!this.options.ydoc) return;
|
|
42406
42406
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42407
42407
|
let docVersion = metaMap.get("version");
|
|
@@ -43983,6 +43983,9 @@ const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
|
43983
43983
|
const SlashMenu = Extension.create({
|
|
43984
43984
|
name: "slashMenu",
|
|
43985
43985
|
addPmPlugins() {
|
|
43986
|
+
if (this.editor.options?.disableContextMenu) {
|
|
43987
|
+
return [];
|
|
43988
|
+
}
|
|
43986
43989
|
const editor = this.editor;
|
|
43987
43990
|
let slashCooldown = false;
|
|
43988
43991
|
let slashCooldownTimeout = null;
|
|
@@ -71903,7 +71906,7 @@ const _sfc_main$2 = {
|
|
|
71903
71906
|
class: "editor-element super-editor__element",
|
|
71904
71907
|
role: "presentation"
|
|
71905
71908
|
}, null, 512),
|
|
71906
|
-
editorReady.value && editor.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
71909
|
+
!props.options.disableContextMenu && editorReady.value && editor.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
71907
71910
|
key: 0,
|
|
71908
71911
|
editor: editor.value,
|
|
71909
71912
|
popoverControls,
|
|
@@ -71972,7 +71975,7 @@ const _sfc_main$2 = {
|
|
|
71972
71975
|
};
|
|
71973
71976
|
}
|
|
71974
71977
|
};
|
|
71975
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
71978
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-14919226"]]);
|
|
71976
71979
|
const _sfc_main$1 = {
|
|
71977
71980
|
__name: "BasicUpload",
|
|
71978
71981
|
emits: ["file-change"],
|
|
@@ -24348,7 +24348,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24348
24348
|
return;
|
|
24349
24349
|
}
|
|
24350
24350
|
}
|
|
24351
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.
|
|
24351
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.6-next.2") {
|
|
24352
24352
|
const customLocation = "docProps/custom.xml";
|
|
24353
24353
|
if (!docx[customLocation]) {
|
|
24354
24354
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24824,7 +24824,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24824
24824
|
function generateCustomXml() {
|
|
24825
24825
|
return DEFAULT_CUSTOM_XML;
|
|
24826
24826
|
}
|
|
24827
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.
|
|
24827
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.6-next.2") {
|
|
24828
24828
|
return {
|
|
24829
24829
|
type: "element",
|
|
24830
24830
|
name: "property",
|
|
@@ -42418,7 +42418,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42418
42418
|
* @returns {Object | void} Migration results
|
|
42419
42419
|
*/
|
|
42420
42420
|
processCollaborationMigrations() {
|
|
42421
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.
|
|
42421
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.6-next.2");
|
|
42422
42422
|
if (!this.options.ydoc) return;
|
|
42423
42423
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42424
42424
|
let docVersion = metaMap.get("version");
|
|
@@ -44000,6 +44000,9 @@ const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
|
44000
44000
|
const SlashMenu = Extension.create({
|
|
44001
44001
|
name: "slashMenu",
|
|
44002
44002
|
addPmPlugins() {
|
|
44003
|
+
if (this.editor.options?.disableContextMenu) {
|
|
44004
|
+
return [];
|
|
44005
|
+
}
|
|
44003
44006
|
const editor = this.editor;
|
|
44004
44007
|
let slashCooldown = false;
|
|
44005
44008
|
let slashCooldownTimeout = null;
|
|
@@ -71920,7 +71923,7 @@ const _sfc_main$2 = {
|
|
|
71920
71923
|
class: "editor-element super-editor__element",
|
|
71921
71924
|
role: "presentation"
|
|
71922
71925
|
}, null, 512),
|
|
71923
|
-
editorReady.value && editor.value ? (vue.openBlock(), vue.createBlock(_sfc_main$5, {
|
|
71926
|
+
!props.options.disableContextMenu && editorReady.value && editor.value ? (vue.openBlock(), vue.createBlock(_sfc_main$5, {
|
|
71924
71927
|
key: 0,
|
|
71925
71928
|
editor: editor.value,
|
|
71926
71929
|
popoverControls,
|
|
@@ -71989,7 +71992,7 @@ const _sfc_main$2 = {
|
|
|
71989
71992
|
};
|
|
71990
71993
|
}
|
|
71991
71994
|
};
|
|
71992
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
71995
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-14919226"]]);
|
|
71993
71996
|
const _sfc_main$1 = {
|
|
71994
71997
|
__name: "BasicUpload",
|
|
71995
71998
|
emits: ["file-change"],
|
package/dist/core/SuperDoc.d.ts
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
* @property {boolean} [rulers] Whether to show the ruler in the editor
|
|
84
84
|
* @property {boolean} [suppressDefaultDocxStyles] Whether to suppress default styles in docx mode
|
|
85
85
|
* @property {boolean} [jsonOverride] Whether to override content with provided JSON
|
|
86
|
+
* @property {boolean} [disableContextMenu] Whether to disable slash / right-click custom context menu
|
|
86
87
|
*/
|
|
87
88
|
/**
|
|
88
89
|
* SuperDoc class
|
|
@@ -613,6 +614,10 @@ export type Config = {
|
|
|
613
614
|
* Whether to override content with provided JSON
|
|
614
615
|
*/
|
|
615
616
|
jsonOverride?: boolean;
|
|
617
|
+
/**
|
|
618
|
+
* Whether to disable slash / right-click custom context menu
|
|
619
|
+
*/
|
|
620
|
+
disableContextMenu?: boolean;
|
|
616
621
|
};
|
|
617
622
|
import { EventEmitter } from 'eventemitter3';
|
|
618
623
|
import { Telemetry } from '@harbour-enterprises/common/Telemetry.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../src/core/SuperDoc.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;GAQG;AAEH,2EAA2E;AAE3E;;;;;GAKG;AAEH
|
|
1
|
+
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../src/core/SuperDoc.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;GAQG;AAEH,2EAA2E;AAE3E;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH;;;;;;GAMG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IAyExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IA7ED,qBAAqB;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AAI,CAAA;KAAE,KAAK,IAAI;;;;yBACvD,MAAM,IAAI;;;;sBACV,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI;;;;2BAC3B,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;qBACpC,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;kBACpC,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,KAAK,IAAI;;;;2BAClC,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI;;;;aACzC,MAAM;;;;uBACN,KAAQ;;;;iBACR,OAAO;;;;YACP,MAAM;;;;oBACN,KAAQ;;;;eACR,OAAO;;;;;;;;wBAEP,CAAS,IAAI,EAAJ,IAAI,KAAG,OAAO,CAAC,MAAM,CAAC;;;;eAC/B,IAAI;;;;aACJ,OAAO;;;;gCACP,OAAO;;;;mBACP,OAAO;;;;yBACP,OAAO;;6BAxGQ,eAAe;0BASlB,0CAA0C;6BAJ5B,mCAAmC;8BAC7C,iEAAiE"}
|
package/dist/style.css
CHANGED
|
@@ -1780,10 +1780,10 @@ on the right if it is inside shape textbox.
|
|
|
1780
1780
|
min-height: 40px;
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
-
.editor-element[data-v-
|
|
1783
|
+
.editor-element[data-v-14919226] {
|
|
1784
1784
|
position: relative;
|
|
1785
1785
|
}
|
|
1786
|
-
.super-editor-container[data-v-
|
|
1786
|
+
.super-editor-container[data-v-14919226] {
|
|
1787
1787
|
width: auto;
|
|
1788
1788
|
height: auto;
|
|
1789
1789
|
min-width: 8in;
|
|
@@ -1792,13 +1792,13 @@ on the right if it is inside shape textbox.
|
|
|
1792
1792
|
display: flex;
|
|
1793
1793
|
flex-direction: column;
|
|
1794
1794
|
}
|
|
1795
|
-
.ruler[data-v-
|
|
1795
|
+
.ruler[data-v-14919226] {
|
|
1796
1796
|
margin-bottom: 2px;
|
|
1797
1797
|
}
|
|
1798
|
-
.super-editor[data-v-
|
|
1798
|
+
.super-editor[data-v-14919226] {
|
|
1799
1799
|
color: initial;
|
|
1800
1800
|
}
|
|
1801
|
-
.placeholder-editor[data-v-
|
|
1801
|
+
.placeholder-editor[data-v-14919226] {
|
|
1802
1802
|
position: absolute;
|
|
1803
1803
|
top: 0;
|
|
1804
1804
|
left: 0;
|
|
@@ -1810,7 +1810,7 @@ on the right if it is inside shape textbox.
|
|
|
1810
1810
|
background-color: white;
|
|
1811
1811
|
box-sizing: border-box;
|
|
1812
1812
|
}
|
|
1813
|
-
.placeholder-title[data-v-
|
|
1813
|
+
.placeholder-title[data-v-14919226] {
|
|
1814
1814
|
display: flex;
|
|
1815
1815
|
justify-content: center;
|
|
1816
1816
|
margin-bottom: 40px;
|
|
@@ -4598,46 +4598,46 @@ img[data-v-7dd69850] {
|
|
|
4598
4598
|
box-shadow: 0 0 5px hsla(0, 0%, 0%, .05);
|
|
4599
4599
|
}
|
|
4600
4600
|
|
|
4601
|
-
.superdoc[data-v-
|
|
4601
|
+
.superdoc[data-v-bedc7a86] {
|
|
4602
4602
|
display: flex;
|
|
4603
4603
|
}
|
|
4604
|
-
.right-sidebar[data-v-
|
|
4604
|
+
.right-sidebar[data-v-bedc7a86] {
|
|
4605
4605
|
min-width: 320px;
|
|
4606
4606
|
}
|
|
4607
|
-
.floating-comments[data-v-
|
|
4607
|
+
.floating-comments[data-v-bedc7a86] {
|
|
4608
4608
|
min-width: 300px;
|
|
4609
4609
|
width: 300px;
|
|
4610
4610
|
}
|
|
4611
|
-
.superdoc__layers[data-v-
|
|
4611
|
+
.superdoc__layers[data-v-bedc7a86] {
|
|
4612
4612
|
height: 100%;
|
|
4613
4613
|
position: relative;
|
|
4614
4614
|
box-sizing: border-box;
|
|
4615
4615
|
}
|
|
4616
|
-
.superdoc__document[data-v-
|
|
4616
|
+
.superdoc__document[data-v-bedc7a86] {
|
|
4617
4617
|
width: 100%;
|
|
4618
4618
|
position: relative;
|
|
4619
4619
|
}
|
|
4620
|
-
.superdoc__sub-document[data-v-
|
|
4620
|
+
.superdoc__sub-document[data-v-bedc7a86] {
|
|
4621
4621
|
width: 100%;
|
|
4622
4622
|
position: relative;
|
|
4623
4623
|
}
|
|
4624
|
-
.superdoc__selection-layer[data-v-
|
|
4624
|
+
.superdoc__selection-layer[data-v-bedc7a86] {
|
|
4625
4625
|
position: absolute;
|
|
4626
4626
|
min-width: 100%;
|
|
4627
4627
|
min-height: 100%;
|
|
4628
4628
|
z-index: 10;
|
|
4629
4629
|
pointer-events: none;
|
|
4630
4630
|
}
|
|
4631
|
-
.superdoc__temp-selection[data-v-
|
|
4631
|
+
.superdoc__temp-selection[data-v-bedc7a86] {
|
|
4632
4632
|
position: absolute;
|
|
4633
4633
|
}
|
|
4634
|
-
.superdoc__comments-layer[data-v-
|
|
4634
|
+
.superdoc__comments-layer[data-v-bedc7a86] {
|
|
4635
4635
|
/* position: absolute; */
|
|
4636
4636
|
top: 0;
|
|
4637
4637
|
height: 100%;
|
|
4638
4638
|
position: relative;
|
|
4639
4639
|
}
|
|
4640
|
-
.superdoc__right-sidebar[data-v-
|
|
4640
|
+
.superdoc__right-sidebar[data-v-bedc7a86] {
|
|
4641
4641
|
width: 320px;
|
|
4642
4642
|
min-width: 320px;
|
|
4643
4643
|
padding: 0 10px;
|
|
@@ -4647,14 +4647,14 @@ img[data-v-7dd69850] {
|
|
|
4647
4647
|
}
|
|
4648
4648
|
|
|
4649
4649
|
/* Tools styles */
|
|
4650
|
-
.tools[data-v-
|
|
4650
|
+
.tools[data-v-bedc7a86] {
|
|
4651
4651
|
position: absolute;
|
|
4652
4652
|
z-index: 3;
|
|
4653
4653
|
display: flex;
|
|
4654
4654
|
flex-direction: column;
|
|
4655
4655
|
gap: 6px;
|
|
4656
4656
|
}
|
|
4657
|
-
.tools .tool-icon[data-v-
|
|
4657
|
+
.tools .tool-icon[data-v-bedc7a86] {
|
|
4658
4658
|
font-size: 20px;
|
|
4659
4659
|
border-radius: 12px;
|
|
4660
4660
|
border: none;
|
|
@@ -4662,7 +4662,7 @@ img[data-v-7dd69850] {
|
|
|
4662
4662
|
background-color: #dbdbdb;
|
|
4663
4663
|
cursor: pointer;
|
|
4664
4664
|
}
|
|
4665
|
-
.tools-item[data-v-
|
|
4665
|
+
.tools-item[data-v-bedc7a86] {
|
|
4666
4666
|
display: flex;
|
|
4667
4667
|
align-items: center;
|
|
4668
4668
|
justify-content: center;
|
|
@@ -4672,10 +4672,10 @@ img[data-v-7dd69850] {
|
|
|
4672
4672
|
border-radius: 12px;
|
|
4673
4673
|
cursor: pointer;
|
|
4674
4674
|
}
|
|
4675
|
-
.tools-item i[data-v-
|
|
4675
|
+
.tools-item i[data-v-bedc7a86] {
|
|
4676
4676
|
cursor: pointer;
|
|
4677
4677
|
}
|
|
4678
|
-
.superdoc__tools-icon[data-v-
|
|
4678
|
+
.superdoc__tools-icon[data-v-bedc7a86] {
|
|
4679
4679
|
width: 20px;
|
|
4680
4680
|
height: 20px;
|
|
4681
4681
|
flex-shrink: 0;
|
|
@@ -4689,15 +4689,15 @@ img[data-v-7dd69850] {
|
|
|
4689
4689
|
|
|
4690
4690
|
/* 834px is iPad screen size in portrait orientation */
|
|
4691
4691
|
@media (max-width: 834px) {
|
|
4692
|
-
.superdoc .superdoc__layers[data-v-
|
|
4692
|
+
.superdoc .superdoc__layers[data-v-bedc7a86] {
|
|
4693
4693
|
margin: 0;
|
|
4694
4694
|
border: 0 !important;
|
|
4695
4695
|
box-shadow: none;
|
|
4696
4696
|
}
|
|
4697
|
-
.superdoc__sub-document[data-v-
|
|
4697
|
+
.superdoc__sub-document[data-v-bedc7a86] {
|
|
4698
4698
|
max-width: 100%;
|
|
4699
4699
|
}
|
|
4700
|
-
.superdoc__right-sidebar[data-v-
|
|
4700
|
+
.superdoc__right-sidebar[data-v-bedc7a86] {
|
|
4701
4701
|
padding: 10px;
|
|
4702
4702
|
width: 55px;
|
|
4703
4703
|
position: relative;
|
|
@@ -4705,7 +4705,7 @@ img[data-v-7dd69850] {
|
|
|
4705
4705
|
}
|
|
4706
4706
|
|
|
4707
4707
|
/* AI Writer styles */
|
|
4708
|
-
.ai-writer-container[data-v-
|
|
4708
|
+
.ai-writer-container[data-v-bedc7a86] {
|
|
4709
4709
|
position: fixed;
|
|
4710
4710
|
z-index: 1000;
|
|
4711
4711
|
background: white;
|
|
@@ -4723,13 +4723,13 @@ img[data-v-7dd69850] {
|
|
|
4723
4723
|
} */
|
|
4724
4724
|
|
|
4725
4725
|
/* Tools styles */
|
|
4726
|
-
.tools[data-v-
|
|
4726
|
+
.tools[data-v-bedc7a86] {
|
|
4727
4727
|
position: absolute;
|
|
4728
4728
|
z-index: 3;
|
|
4729
4729
|
display: flex;
|
|
4730
4730
|
gap: 6px;
|
|
4731
4731
|
}
|
|
4732
|
-
.tools .tool-icon[data-v-
|
|
4732
|
+
.tools .tool-icon[data-v-bedc7a86] {
|
|
4733
4733
|
font-size: 20px;
|
|
4734
4734
|
border-radius: 12px;
|
|
4735
4735
|
border: none;
|
|
@@ -4737,7 +4737,7 @@ img[data-v-7dd69850] {
|
|
|
4737
4737
|
background-color: #dbdbdb;
|
|
4738
4738
|
cursor: pointer;
|
|
4739
4739
|
}
|
|
4740
|
-
.tools-item[data-v-
|
|
4740
|
+
.tools-item[data-v-bedc7a86] {
|
|
4741
4741
|
display: flex;
|
|
4742
4742
|
align-items: center;
|
|
4743
4743
|
justify-content: center;
|
|
@@ -4748,18 +4748,18 @@ img[data-v-7dd69850] {
|
|
|
4748
4748
|
border-radius: 12px;
|
|
4749
4749
|
cursor: pointer;
|
|
4750
4750
|
}
|
|
4751
|
-
.tools-item i[data-v-
|
|
4751
|
+
.tools-item i[data-v-bedc7a86] {
|
|
4752
4752
|
cursor: pointer;
|
|
4753
4753
|
}
|
|
4754
|
-
.superdoc__tools-icon[data-v-
|
|
4754
|
+
.superdoc__tools-icon[data-v-bedc7a86] {
|
|
4755
4755
|
width: 20px;
|
|
4756
4756
|
height: 20px;
|
|
4757
4757
|
flex-shrink: 0;
|
|
4758
4758
|
}
|
|
4759
|
-
.ai-tool > svg[data-v-
|
|
4759
|
+
.ai-tool > svg[data-v-bedc7a86] {
|
|
4760
4760
|
fill: transparent;
|
|
4761
4761
|
}
|
|
4762
|
-
.ai-tool[data-v-
|
|
4762
|
+
.ai-tool[data-v-bedc7a86]::before {
|
|
4763
4763
|
content: "";
|
|
4764
4764
|
position: absolute;
|
|
4765
4765
|
width: 20px;
|
|
@@ -4778,7 +4778,7 @@ img[data-v-7dd69850] {
|
|
|
4778
4778
|
filter: brightness(1.2);
|
|
4779
4779
|
transition: filter 0.2s ease;
|
|
4780
4780
|
}
|
|
4781
|
-
.ai-tool[data-v-
|
|
4781
|
+
.ai-tool[data-v-bedc7a86]:hover::before {
|
|
4782
4782
|
filter: brightness(1.3);
|
|
4783
4783
|
}
|
|
4784
4784
|
/* Tools styles - end */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
|
|
2
|
-
import { T as TextSelection } from "./chunks/converter-
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
2
|
+
import { T as TextSelection } from "./chunks/converter-Bict6sIJ.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-BCHYVPtn.js";
|
|
4
4
|
const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
|
|
5
5
|
const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
|
|
6
6
|
async function baseInsightsFetch(payload, options = {}) {
|
|
@@ -24350,7 +24350,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
24350
24350
|
return;
|
|
24351
24351
|
}
|
|
24352
24352
|
}
|
|
24353
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.
|
|
24353
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.6-next.2") {
|
|
24354
24354
|
const customLocation = "docProps/custom.xml";
|
|
24355
24355
|
if (!docx[customLocation]) {
|
|
24356
24356
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24829,7 +24829,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24829
24829
|
function generateCustomXml() {
|
|
24830
24830
|
return DEFAULT_CUSTOM_XML;
|
|
24831
24831
|
}
|
|
24832
|
-
function generateSuperdocVersion(pid = 2, version = "0.14.
|
|
24832
|
+
function generateSuperdocVersion(pid = 2, version = "0.14.6-next.2") {
|
|
24833
24833
|
return {
|
|
24834
24834
|
type: "element",
|
|
24835
24835
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as process$1, aa as commonjsGlobal, E as Buffer, ab as getDefaultExportFromCjs, ac as getContentTypesFromXml, ad as xmljs } from "./converter-
|
|
1
|
+
import { C as process$1, aa as commonjsGlobal, E as Buffer, ab as getDefaultExportFromCjs, ac as getContentTypesFromXml, ad as xmljs } from "./converter-Bict6sIJ.js";
|
|
2
2
|
function commonjsRequire(path) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_fn, createView_fn, onCollaborationReady_fn, initComments_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _ListItemNodeView_instances, init_fn2, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, i as isEmptyObject, S as Schema$1, T as TextSelection, b as canSplit, l as liftTarget, A as AllSelection, d as canJoin, j as joinPoint, N as NodeSelection, e as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as generateDocxRandomId, p as minMax, q as chainableEditorState, s as generateRandom32BitHex, t as getStyleTagFromStyleId, u as getAbstractDefinition, v as getDefinitionForLevel, w as isMacOS, x as isIOS, y as DOMSerializer, z as Mark$1, B as dropPoint, C as process$1, E as Buffer2, G as inputRulesPlugin, H as TrackDeleteMarkName, I as TrackInsertMarkName, J as v4, K as TrackFormatMarkName, L as comments_module_events, O as AddMarkStep, Q as RemoveMarkStep, U as twipsToLines, V as pixelsToTwips, W as CommandService, X as SuperConverter, Y as EditorState, Z as hasSomeParentWithClass, _ as parseSizeUnit, $ as getLineHeightValueString, a0 as InputRule, a1 as toKebabCase, a2 as kebabCase, a3 as docxNumberigHelpers, a4 as parseIndentElement, a5 as combineIndents, a6 as getColStyleDeclaration, a7 as SelectionRange, a8 as Transform, a9 as createColGroup } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, i as isEmptyObject, S as Schema$1, T as TextSelection, b as canSplit, l as liftTarget, A as AllSelection, d as canJoin, j as joinPoint, N as NodeSelection, e as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as generateDocxRandomId, p as minMax, q as chainableEditorState, s as generateRandom32BitHex, t as getStyleTagFromStyleId, u as getAbstractDefinition, v as getDefinitionForLevel, w as isMacOS, x as isIOS, y as DOMSerializer, z as Mark$1, B as dropPoint, C as process$1, E as Buffer2, G as inputRulesPlugin, H as TrackDeleteMarkName, I as TrackInsertMarkName, J as v4, K as TrackFormatMarkName, L as comments_module_events, O as AddMarkStep, Q as RemoveMarkStep, U as twipsToLines, V as pixelsToTwips, W as CommandService, X as SuperConverter, Y as EditorState, Z as hasSomeParentWithClass, _ as parseSizeUnit, $ as getLineHeightValueString, a0 as InputRule, a1 as toKebabCase, a2 as kebabCase, a3 as docxNumberigHelpers, a4 as parseIndentElement, a5 as combineIndents, a6 as getColStyleDeclaration, a7 as SelectionRange, a8 as Transform, a9 as createColGroup } from "./converter-Bict6sIJ.js";
|
|
16
16
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
17
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
17
|
+
import { D as DocxZipper } from "./docx-zipper-DzMTHmjd.js";
|
|
18
18
|
function getMarksFromSelection(state) {
|
|
19
19
|
const { from: from2, to, empty: empty2 } = state.selection;
|
|
20
20
|
const marks = [];
|
|
@@ -15112,7 +15112,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15112
15112
|
* @returns {Object | void} Migration results
|
|
15113
15113
|
*/
|
|
15114
15114
|
processCollaborationMigrations() {
|
|
15115
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.
|
|
15115
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.6-next.2");
|
|
15116
15116
|
if (!this.options.ydoc) return;
|
|
15117
15117
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
15118
15118
|
let docVersion = metaMap.get("version");
|
|
@@ -16831,6 +16831,9 @@ const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
|
16831
16831
|
const SlashMenu = Extension.create({
|
|
16832
16832
|
name: "slashMenu",
|
|
16833
16833
|
addPmPlugins() {
|
|
16834
|
+
if (this.editor.options?.disableContextMenu) {
|
|
16835
|
+
return [];
|
|
16836
|
+
}
|
|
16834
16837
|
const editor = this.editor;
|
|
16835
16838
|
let slashCooldown = false;
|
|
16836
16839
|
let slashCooldownTimeout = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { C as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { C as process$1 } from "./converter-Bict6sIJ.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BCHYVPtn.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-BCHYVPtn.js";
|
|
2
|
+
import "./chunks/converter-Bict6sIJ.js";
|
|
3
|
+
import "./chunks/docx-zipper-DzMTHmjd.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slash-menu.d.ts","sourceRoot":"","sources":["../../../src/extensions/slash-menu/slash-menu.js"],"names":[],"mappings":"AA6BA,gDAA6D;AAE7D,
|
|
1
|
+
{"version":3,"file":"slash-menu.d.ts","sourceRoot":"","sources":["../../../src/extensions/slash-menu/slash-menu.js"],"names":[],"mappings":"AA6BA,gDAA6D;AAE7D,4BAuKG;0BAtM+B,mBAAmB"}
|
|
@@ -1700,10 +1700,10 @@ on the right if it is inside shape textbox.
|
|
|
1700
1700
|
min-height: 40px;
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
|
-
.editor-element[data-v-
|
|
1703
|
+
.editor-element[data-v-14919226] {
|
|
1704
1704
|
position: relative;
|
|
1705
1705
|
}
|
|
1706
|
-
.super-editor-container[data-v-
|
|
1706
|
+
.super-editor-container[data-v-14919226] {
|
|
1707
1707
|
width: auto;
|
|
1708
1708
|
height: auto;
|
|
1709
1709
|
min-width: 8in;
|
|
@@ -1712,13 +1712,13 @@ on the right if it is inside shape textbox.
|
|
|
1712
1712
|
display: flex;
|
|
1713
1713
|
flex-direction: column;
|
|
1714
1714
|
}
|
|
1715
|
-
.ruler[data-v-
|
|
1715
|
+
.ruler[data-v-14919226] {
|
|
1716
1716
|
margin-bottom: 2px;
|
|
1717
1717
|
}
|
|
1718
|
-
.super-editor[data-v-
|
|
1718
|
+
.super-editor[data-v-14919226] {
|
|
1719
1719
|
color: initial;
|
|
1720
1720
|
}
|
|
1721
|
-
.placeholder-editor[data-v-
|
|
1721
|
+
.placeholder-editor[data-v-14919226] {
|
|
1722
1722
|
position: absolute;
|
|
1723
1723
|
top: 0;
|
|
1724
1724
|
left: 0;
|
|
@@ -1730,7 +1730,7 @@ on the right if it is inside shape textbox.
|
|
|
1730
1730
|
background-color: white;
|
|
1731
1731
|
box-sizing: border-box;
|
|
1732
1732
|
}
|
|
1733
|
-
.placeholder-title[data-v-
|
|
1733
|
+
.placeholder-title[data-v-14919226] {
|
|
1734
1734
|
display: flex;
|
|
1735
1735
|
justify-content: center;
|
|
1736
1736
|
margin-bottom: 40px;
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { ab as getDefaultExportFromCjs, J as v4, T as TextSelection$1, ae as vClickOutside, af as readFromClipboard, ag as serializeSelectionToClipboard, ah as writeToClipboard, ai as handleClipboardPaste, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { X } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getMarkRange, f as findParentNode, d as getFileOpener, s as startImageUpload, e as getActiveFormatting, i as isInTable, h as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, j as getStarterExtensions, P as Placeholder, k as getRichTextExtensions, M as Mark, l as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { p, C, T, n, t, q, m, o } from "./chunks/editor-
|
|
12
|
+
import { ab as getDefaultExportFromCjs, J as v4, T as TextSelection$1, ae as vClickOutside, af as readFromClipboard, ag as serializeSelectionToClipboard, ah as writeToClipboard, ai as handleClipboardPaste, a as Plugin } from "./chunks/converter-Bict6sIJ.js";
|
|
13
|
+
import { X } from "./chunks/converter-Bict6sIJ.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getMarkRange, f as findParentNode, d as getFileOpener, s as startImageUpload, e as getActiveFormatting, i as isInTable, h as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, j as getStarterExtensions, P as Placeholder, k as getRichTextExtensions, M as Mark, l as Extension, A as Attribute, N as Node } from "./chunks/editor-BCHYVPtn.js";
|
|
15
|
+
import { p, C, T, n, t, q, m, o } from "./chunks/editor-BCHYVPtn.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, l as linkIconSvg, a as tableIconSvg, b as scissorsIconSvg, c as copyIconSvg, p as pasteIconSvg, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, l as linkIconSvg, a as tableIconSvg, b as scissorsIconSvg, c as copyIconSvg, p as pasteIconSvg, N as NSkeleton } from "./chunks/toolbar-DZ4p0Wch.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-DzMTHmjd.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
(function(module) {
|
|
@@ -4177,7 +4177,7 @@ const _sfc_main$2 = {
|
|
|
4177
4177
|
class: "editor-element super-editor__element",
|
|
4178
4178
|
role: "presentation"
|
|
4179
4179
|
}, null, 512),
|
|
4180
|
-
editorReady.value && editor.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
4180
|
+
!props.options.disableContextMenu && editorReady.value && editor.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
4181
4181
|
key: 0,
|
|
4182
4182
|
editor: editor.value,
|
|
4183
4183
|
popoverControls,
|
|
@@ -4246,7 +4246,7 @@ const _sfc_main$2 = {
|
|
|
4246
4246
|
};
|
|
4247
4247
|
}
|
|
4248
4248
|
};
|
|
4249
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
4249
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-14919226"]]);
|
|
4250
4250
|
const _sfc_main$1 = {
|
|
4251
4251
|
__name: "BasicUpload",
|
|
4252
4252
|
emits: ["file-change"],
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-DdwWl3Cy.cjs");
|
|
4
4
|
require("./chunks/vue-tQYF719J.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, c, S, d, e, f, T, g, h, i, j, k, l, m, n, o, p } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, c, S, d, e, f, T, g, h, i, j, k, l, m, n, o, p } from "./chunks/super-editor.es-BjxeFkQ0.es.js";
|
|
2
2
|
import "./chunks/vue-lU0o_RlU.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-DdwWl3Cy.cjs");
|
|
4
4
|
const vue = require("./chunks/vue-tQYF719J.cjs");
|
|
5
5
|
const jszip = require("./chunks/jszip-D5XoMX4C.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
|
@@ -47381,6 +47381,7 @@ const _sfc_main = {
|
|
|
47381
47381
|
telemetry: proxy.$superdoc.telemetry,
|
|
47382
47382
|
externalExtensions: proxy.$superdoc.config.editorExtensions || [],
|
|
47383
47383
|
suppressDefaultDocxStyles: proxy.$superdoc.config.suppressDefaultDocxStyles,
|
|
47384
|
+
disableContextMenu: proxy.$superdoc.config.disableContextMenu,
|
|
47384
47385
|
jsonOverride: proxy.$superdoc.config.jsonOverride
|
|
47385
47386
|
};
|
|
47386
47387
|
return options;
|
|
@@ -47708,7 +47709,7 @@ const _sfc_main = {
|
|
|
47708
47709
|
};
|
|
47709
47710
|
}
|
|
47710
47711
|
};
|
|
47711
|
-
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
47712
|
+
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bedc7a86"]]);
|
|
47712
47713
|
const createSuperdocVueApp = () => {
|
|
47713
47714
|
const app = vue.createApp(App);
|
|
47714
47715
|
const pinia = createPinia();
|
|
@@ -47790,7 +47791,9 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47790
47791
|
onException: () => null,
|
|
47791
47792
|
// Image upload handler
|
|
47792
47793
|
// async (file) => url;
|
|
47793
|
-
handleImageUpload: null
|
|
47794
|
+
handleImageUpload: null,
|
|
47795
|
+
// Disable context menus (slash and right-click) globally
|
|
47796
|
+
disableContextMenu: false
|
|
47794
47797
|
};
|
|
47795
47798
|
/**
|
|
47796
47799
|
* @param {Config} config
|
|
@@ -47807,7 +47810,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47807
47810
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47808
47811
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47809
47812
|
this.colorIndex = 0;
|
|
47810
|
-
this.version = "0.14.
|
|
47813
|
+
this.version = "0.14.6-next.2";
|
|
47811
47814
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47812
47815
|
this.superdocId = config.superdocId || uuid.v4();
|
|
47813
47816
|
this.colors = this.config.colors;
|