@harbour-enterprises/superdoc 0.12.17 → 0.12.18
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-C5seifML.es.js → super-editor.es-DIiFOcde.es.js} +7 -5
- package/dist/chunks/{super-editor.es-bzN38eJ6.cjs → super-editor.es-DK2NC1Gl.cjs} +7 -5
- package/dist/core/SuperDoc.d.ts +10 -0
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +28 -28
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DOKQJqK4.js → converter-BbPgOxa0.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CeXxI7BH.js → docx-zipper-Ce0B_FTd.js} +1 -1
- package/dist/super-editor/chunks/{editor-BDrgQZvS.js → editor-CU4NcQRP.js} +7 -5
- package/dist/super-editor/chunks/{toolbar-Syznaamh.js → toolbar-BhjcMYDy.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +10 -4
- 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/super-editor.es.js +6 -6
- 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 +5 -4
- package/dist/superdoc.es.js +6 -5
- package/dist/superdoc.umd.js +11 -8
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -23287,7 +23287,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
23287
23287
|
return;
|
|
23288
23288
|
}
|
|
23289
23289
|
}
|
|
23290
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.12.
|
|
23290
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.12.18") {
|
|
23291
23291
|
const customLocation = "docProps/custom.xml";
|
|
23292
23292
|
if (!docx[customLocation]) {
|
|
23293
23293
|
docx[customLocation] = generateCustomXml();
|
|
@@ -23753,7 +23753,7 @@ function storeSuperdocVersion(docx) {
|
|
|
23753
23753
|
function generateCustomXml() {
|
|
23754
23754
|
return DEFAULT_CUSTOM_XML;
|
|
23755
23755
|
}
|
|
23756
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.12.
|
|
23756
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.12.18") {
|
|
23757
23757
|
return {
|
|
23758
23758
|
type: "element",
|
|
23759
23759
|
name: "property",
|
|
@@ -40321,7 +40321,8 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
40321
40321
|
numbering: {},
|
|
40322
40322
|
isHeaderOrFooter: false,
|
|
40323
40323
|
lastSelection: null,
|
|
40324
|
-
|
|
40324
|
+
suppressDefaultDocxStyles: false,
|
|
40325
|
+
jsonOverride: false,
|
|
40325
40326
|
onBeforeCreate: () => null,
|
|
40326
40327
|
onCreate: () => null,
|
|
40327
40328
|
onUpdate: () => null,
|
|
@@ -40650,7 +40651,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
40650
40651
|
* @returns {void}
|
|
40651
40652
|
*/
|
|
40652
40653
|
initDefaultStyles(element = this.element) {
|
|
40653
|
-
if (this.options.isHeadless || this.options.
|
|
40654
|
+
if (this.options.isHeadless || this.options.suppressDefaultDocxStyles) return;
|
|
40654
40655
|
const proseMirror = element?.querySelector(".ProseMirror");
|
|
40655
40656
|
const { pageSize, pageMargins } = this.converter.pageStyles ?? {};
|
|
40656
40657
|
if (!proseMirror || !pageSize || !pageMargins) {
|
|
@@ -40907,7 +40908,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
40907
40908
|
* @returns {Object | void} Migration results
|
|
40908
40909
|
*/
|
|
40909
40910
|
processCollaborationMigrations() {
|
|
40910
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.12.
|
|
40911
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.12.18");
|
|
40911
40912
|
if (!this.options.ydoc) return;
|
|
40912
40913
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
40913
40914
|
let docVersion = metaMap.get("version");
|
|
@@ -41224,6 +41225,7 @@ generatePmData_fn = function() {
|
|
|
41224
41225
|
doc2 = createDocument(this.converter, this.schema, this);
|
|
41225
41226
|
doc2 = __privateMethod$1(this, _Editor_instances, prepareDocumentForImport_fn).call(this, doc2);
|
|
41226
41227
|
if (this.options.html) doc2 = __privateMethod$1(this, _Editor_instances, createDocFromHTML_fn).call(this, this.options.html);
|
|
41228
|
+
else if (this.options.jsonOverride) doc2 = this.schema.nodeFromJSON(this.options.jsonOverride);
|
|
41227
41229
|
if (fragment) doc2 = yXmlFragmentToProseMirrorRootNode(fragment, this.schema);
|
|
41228
41230
|
}
|
|
41229
41231
|
} else if (mode === "text" || mode === "html") {
|
|
@@ -23304,7 +23304,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
23304
23304
|
return;
|
|
23305
23305
|
}
|
|
23306
23306
|
}
|
|
23307
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.12.
|
|
23307
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.12.18") {
|
|
23308
23308
|
const customLocation = "docProps/custom.xml";
|
|
23309
23309
|
if (!docx[customLocation]) {
|
|
23310
23310
|
docx[customLocation] = generateCustomXml();
|
|
@@ -23770,7 +23770,7 @@ function storeSuperdocVersion(docx) {
|
|
|
23770
23770
|
function generateCustomXml() {
|
|
23771
23771
|
return DEFAULT_CUSTOM_XML;
|
|
23772
23772
|
}
|
|
23773
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.12.
|
|
23773
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.12.18") {
|
|
23774
23774
|
return {
|
|
23775
23775
|
type: "element",
|
|
23776
23776
|
name: "property",
|
|
@@ -40338,7 +40338,8 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
40338
40338
|
numbering: {},
|
|
40339
40339
|
isHeaderOrFooter: false,
|
|
40340
40340
|
lastSelection: null,
|
|
40341
|
-
|
|
40341
|
+
suppressDefaultDocxStyles: false,
|
|
40342
|
+
jsonOverride: false,
|
|
40342
40343
|
onBeforeCreate: () => null,
|
|
40343
40344
|
onCreate: () => null,
|
|
40344
40345
|
onUpdate: () => null,
|
|
@@ -40667,7 +40668,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
40667
40668
|
* @returns {void}
|
|
40668
40669
|
*/
|
|
40669
40670
|
initDefaultStyles(element = this.element) {
|
|
40670
|
-
if (this.options.isHeadless || this.options.
|
|
40671
|
+
if (this.options.isHeadless || this.options.suppressDefaultDocxStyles) return;
|
|
40671
40672
|
const proseMirror = element?.querySelector(".ProseMirror");
|
|
40672
40673
|
const { pageSize, pageMargins } = this.converter.pageStyles ?? {};
|
|
40673
40674
|
if (!proseMirror || !pageSize || !pageMargins) {
|
|
@@ -40924,7 +40925,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
40924
40925
|
* @returns {Object | void} Migration results
|
|
40925
40926
|
*/
|
|
40926
40927
|
processCollaborationMigrations() {
|
|
40927
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.12.
|
|
40928
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.12.18");
|
|
40928
40929
|
if (!this.options.ydoc) return;
|
|
40929
40930
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
40930
40931
|
let docVersion = metaMap.get("version");
|
|
@@ -41241,6 +41242,7 @@ generatePmData_fn = function() {
|
|
|
41241
41242
|
doc2 = createDocument(this.converter, this.schema, this);
|
|
41242
41243
|
doc2 = __privateMethod$1(this, _Editor_instances, prepareDocumentForImport_fn).call(this, doc2);
|
|
41243
41244
|
if (this.options.html) doc2 = __privateMethod$1(this, _Editor_instances, createDocFromHTML_fn).call(this, this.options.html);
|
|
41245
|
+
else if (this.options.jsonOverride) doc2 = this.schema.nodeFromJSON(this.options.jsonOverride);
|
|
41244
41246
|
if (fragment) doc2 = yXmlFragmentToProseMirrorRootNode(fragment, this.schema);
|
|
41245
41247
|
}
|
|
41246
41248
|
} else if (mode === "text" || mode === "html") {
|
package/dist/core/SuperDoc.d.ts
CHANGED
|
@@ -81,6 +81,8 @@
|
|
|
81
81
|
* @property {User} [lockedBy] The user who locked the SuperDoc
|
|
82
82
|
* @property {HocuspocusProviderWebsocket} [socket] The socket connection for collaboration
|
|
83
83
|
* @property {boolean} [rulers] Whether to show the ruler in the editor
|
|
84
|
+
* @property {boolean} [suppressDefaultDocxStyles] Whether to suppress default styles in docx mode
|
|
85
|
+
* @property {boolean} [jsonOverride] Whether to override content with provided JSON
|
|
84
86
|
*/
|
|
85
87
|
/**
|
|
86
88
|
* SuperDoc class
|
|
@@ -591,6 +593,14 @@ export type Config = {
|
|
|
591
593
|
* Whether to show the ruler in the editor
|
|
592
594
|
*/
|
|
593
595
|
rulers?: boolean;
|
|
596
|
+
/**
|
|
597
|
+
* Whether to suppress default styles in docx mode
|
|
598
|
+
*/
|
|
599
|
+
suppressDefaultDocxStyles?: boolean;
|
|
600
|
+
/**
|
|
601
|
+
* Whether to override content with provided JSON
|
|
602
|
+
*/
|
|
603
|
+
jsonOverride?: boolean;
|
|
594
604
|
};
|
|
595
605
|
import { EventEmitter } from 'eventemitter3';
|
|
596
606
|
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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A;KAAC,KAAK,IAAI;;;;wBAC/C,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,QAAQ,CAAC;QAAC,MAAM,QAAO;KAAE,KAAK,IAAI;;;;eACtD,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,IAAI,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,2BAA2B;;;;aAC3B,OAAO;;;;gCACP,OAAO;;;;mBACP,OAAO;;6BAvGQ,eAAe;0BASlB,0CAA0C;6BAJ5B,mCAAmC;8BAC7C,iEAAiE;4CAJnD,sBAAsB"}
|
package/dist/style.css
CHANGED
|
@@ -4306,48 +4306,48 @@ img[data-v-7dd69850] {
|
|
|
4306
4306
|
box-shadow:0 0 5px hsla( 0,0%,0%,.05);
|
|
4307
4307
|
}
|
|
4308
4308
|
|
|
4309
|
-
.superdoc[data-v-
|
|
4309
|
+
.superdoc[data-v-e620aa2b] {
|
|
4310
4310
|
display: flex;
|
|
4311
4311
|
}
|
|
4312
|
-
.right-sidebar[data-v-
|
|
4312
|
+
.right-sidebar[data-v-e620aa2b] {
|
|
4313
4313
|
min-width: 320px;
|
|
4314
4314
|
}
|
|
4315
|
-
.floating-comments[data-v-
|
|
4315
|
+
.floating-comments[data-v-e620aa2b] {
|
|
4316
4316
|
min-width: 300px;
|
|
4317
4317
|
width: 300px;
|
|
4318
4318
|
}
|
|
4319
|
-
.superdoc--with-sidebar[data-v-
|
|
4319
|
+
.superdoc--with-sidebar[data-v-e620aa2b] { /* */
|
|
4320
4320
|
}
|
|
4321
|
-
.superdoc__layers[data-v-
|
|
4321
|
+
.superdoc__layers[data-v-e620aa2b] {
|
|
4322
4322
|
height: 100%;
|
|
4323
4323
|
position: relative;
|
|
4324
4324
|
box-sizing: border-box;
|
|
4325
4325
|
}
|
|
4326
|
-
.superdoc__document[data-v-
|
|
4326
|
+
.superdoc__document[data-v-e620aa2b] {
|
|
4327
4327
|
width: 100%;
|
|
4328
4328
|
position: relative;
|
|
4329
4329
|
}
|
|
4330
|
-
.superdoc__sub-document[data-v-
|
|
4330
|
+
.superdoc__sub-document[data-v-e620aa2b] {
|
|
4331
4331
|
width: 100%;
|
|
4332
4332
|
position: relative;
|
|
4333
4333
|
}
|
|
4334
|
-
.superdoc__selection-layer[data-v-
|
|
4334
|
+
.superdoc__selection-layer[data-v-e620aa2b] {
|
|
4335
4335
|
position: absolute;
|
|
4336
4336
|
min-width: 100%;
|
|
4337
4337
|
min-height: 100%;
|
|
4338
4338
|
z-index: 10;
|
|
4339
4339
|
pointer-events: none;
|
|
4340
4340
|
}
|
|
4341
|
-
.superdoc__temp-selection[data-v-
|
|
4341
|
+
.superdoc__temp-selection[data-v-e620aa2b] {
|
|
4342
4342
|
position: absolute;
|
|
4343
4343
|
}
|
|
4344
|
-
.superdoc__comments-layer[data-v-
|
|
4344
|
+
.superdoc__comments-layer[data-v-e620aa2b] {
|
|
4345
4345
|
/* position: absolute; */
|
|
4346
4346
|
top: 0;
|
|
4347
4347
|
height: 100%;
|
|
4348
4348
|
position: relative;
|
|
4349
4349
|
}
|
|
4350
|
-
.superdoc__right-sidebar[data-v-
|
|
4350
|
+
.superdoc__right-sidebar[data-v-e620aa2b] {
|
|
4351
4351
|
width: 320px;
|
|
4352
4352
|
min-width: 320px;
|
|
4353
4353
|
padding: 0 10px;
|
|
@@ -4357,14 +4357,14 @@ img[data-v-7dd69850] {
|
|
|
4357
4357
|
}
|
|
4358
4358
|
|
|
4359
4359
|
/* Tools styles */
|
|
4360
|
-
.tools[data-v-
|
|
4360
|
+
.tools[data-v-e620aa2b] {
|
|
4361
4361
|
position: absolute;
|
|
4362
4362
|
z-index: 3;
|
|
4363
4363
|
display: flex;
|
|
4364
4364
|
flex-direction: column;
|
|
4365
4365
|
gap: 6px;
|
|
4366
4366
|
}
|
|
4367
|
-
.tools .tool-icon[data-v-
|
|
4367
|
+
.tools .tool-icon[data-v-e620aa2b] {
|
|
4368
4368
|
font-size: 20px;
|
|
4369
4369
|
border-radius: 12px;
|
|
4370
4370
|
border: none;
|
|
@@ -4372,7 +4372,7 @@ img[data-v-7dd69850] {
|
|
|
4372
4372
|
background-color: #dbdbdb;
|
|
4373
4373
|
cursor: pointer;
|
|
4374
4374
|
}
|
|
4375
|
-
.tools-item[data-v-
|
|
4375
|
+
.tools-item[data-v-e620aa2b] {
|
|
4376
4376
|
display: flex;
|
|
4377
4377
|
align-items: center;
|
|
4378
4378
|
justify-content: center;
|
|
@@ -4382,10 +4382,10 @@ img[data-v-7dd69850] {
|
|
|
4382
4382
|
border-radius: 12px;
|
|
4383
4383
|
cursor: pointer;
|
|
4384
4384
|
}
|
|
4385
|
-
.tools-item i[data-v-
|
|
4385
|
+
.tools-item i[data-v-e620aa2b] {
|
|
4386
4386
|
cursor: pointer;
|
|
4387
4387
|
}
|
|
4388
|
-
.superdoc__tools-icon[data-v-
|
|
4388
|
+
.superdoc__tools-icon[data-v-e620aa2b] {
|
|
4389
4389
|
width: 20px;
|
|
4390
4390
|
height: 20px;
|
|
4391
4391
|
flex-shrink: 0;
|
|
@@ -4399,15 +4399,15 @@ img[data-v-7dd69850] {
|
|
|
4399
4399
|
|
|
4400
4400
|
/* 834px is iPad screen size in portrait orientation */
|
|
4401
4401
|
@media (max-width: 834px) {
|
|
4402
|
-
.superdoc .superdoc__layers[data-v-
|
|
4402
|
+
.superdoc .superdoc__layers[data-v-e620aa2b] {
|
|
4403
4403
|
margin: 0;
|
|
4404
4404
|
border: 0 !important;
|
|
4405
4405
|
box-shadow: none;
|
|
4406
4406
|
}
|
|
4407
|
-
.superdoc__sub-document[data-v-
|
|
4407
|
+
.superdoc__sub-document[data-v-e620aa2b] {
|
|
4408
4408
|
max-width: 100%;
|
|
4409
4409
|
}
|
|
4410
|
-
.superdoc__right-sidebar[data-v-
|
|
4410
|
+
.superdoc__right-sidebar[data-v-e620aa2b] {
|
|
4411
4411
|
padding: 10px;
|
|
4412
4412
|
width: 55px;
|
|
4413
4413
|
position: relative;
|
|
@@ -4415,7 +4415,7 @@ img[data-v-7dd69850] {
|
|
|
4415
4415
|
}
|
|
4416
4416
|
|
|
4417
4417
|
/* AI Writer styles */
|
|
4418
|
-
.ai-writer-container[data-v-
|
|
4418
|
+
.ai-writer-container[data-v-e620aa2b] {
|
|
4419
4419
|
position: fixed;
|
|
4420
4420
|
z-index: 1000;
|
|
4421
4421
|
background: white;
|
|
@@ -4433,13 +4433,13 @@ img[data-v-7dd69850] {
|
|
|
4433
4433
|
} */
|
|
4434
4434
|
|
|
4435
4435
|
/* Tools styles */
|
|
4436
|
-
.tools[data-v-
|
|
4436
|
+
.tools[data-v-e620aa2b] {
|
|
4437
4437
|
position: absolute;
|
|
4438
4438
|
z-index: 3;
|
|
4439
4439
|
display: flex;
|
|
4440
4440
|
gap: 6px;
|
|
4441
4441
|
}
|
|
4442
|
-
.tools .tool-icon[data-v-
|
|
4442
|
+
.tools .tool-icon[data-v-e620aa2b] {
|
|
4443
4443
|
font-size: 20px;
|
|
4444
4444
|
border-radius: 12px;
|
|
4445
4445
|
border: none;
|
|
@@ -4447,7 +4447,7 @@ img[data-v-7dd69850] {
|
|
|
4447
4447
|
background-color: #dbdbdb;
|
|
4448
4448
|
cursor: pointer;
|
|
4449
4449
|
}
|
|
4450
|
-
.tools-item[data-v-
|
|
4450
|
+
.tools-item[data-v-e620aa2b] {
|
|
4451
4451
|
display: flex;
|
|
4452
4452
|
align-items: center;
|
|
4453
4453
|
justify-content: center;
|
|
@@ -4458,18 +4458,18 @@ img[data-v-7dd69850] {
|
|
|
4458
4458
|
border-radius: 12px;
|
|
4459
4459
|
cursor: pointer;
|
|
4460
4460
|
}
|
|
4461
|
-
.tools-item i[data-v-
|
|
4461
|
+
.tools-item i[data-v-e620aa2b] {
|
|
4462
4462
|
cursor: pointer;
|
|
4463
4463
|
}
|
|
4464
|
-
.superdoc__tools-icon[data-v-
|
|
4464
|
+
.superdoc__tools-icon[data-v-e620aa2b] {
|
|
4465
4465
|
width: 20px;
|
|
4466
4466
|
height: 20px;
|
|
4467
4467
|
flex-shrink: 0;
|
|
4468
4468
|
}
|
|
4469
|
-
.ai-tool > svg[data-v-
|
|
4469
|
+
.ai-tool > svg[data-v-e620aa2b] {
|
|
4470
4470
|
fill: transparent;
|
|
4471
4471
|
}
|
|
4472
|
-
.ai-tool[data-v-
|
|
4472
|
+
.ai-tool[data-v-e620aa2b]::before {
|
|
4473
4473
|
content: "";
|
|
4474
4474
|
position: absolute;
|
|
4475
4475
|
width: 20px;
|
|
@@ -4488,7 +4488,7 @@ img[data-v-7dd69850] {
|
|
|
4488
4488
|
filter: brightness(1.2);
|
|
4489
4489
|
transition: filter 0.2s ease;
|
|
4490
4490
|
}
|
|
4491
|
-
.ai-tool[data-v-
|
|
4491
|
+
.ai-tool[data-v-e620aa2b]:hover::before {
|
|
4492
4492
|
filter: brightness(1.3);
|
|
4493
4493
|
}
|
|
4494
4494
|
/* 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-BbPgOxa0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-CU4NcQRP.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 = {}) {
|
|
@@ -23306,7 +23306,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
23306
23306
|
return;
|
|
23307
23307
|
}
|
|
23308
23308
|
}
|
|
23309
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.12.
|
|
23309
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.12.18") {
|
|
23310
23310
|
const customLocation = "docProps/custom.xml";
|
|
23311
23311
|
if (!docx[customLocation]) {
|
|
23312
23312
|
docx[customLocation] = generateCustomXml();
|
|
@@ -23775,7 +23775,7 @@ function storeSuperdocVersion(docx) {
|
|
|
23775
23775
|
function generateCustomXml() {
|
|
23776
23776
|
return DEFAULT_CUSTOM_XML;
|
|
23777
23777
|
}
|
|
23778
|
-
function generateSuperdocVersion(pid = 2, version = "0.12.
|
|
23778
|
+
function generateSuperdocVersion(pid = 2, version = "0.12.18") {
|
|
23779
23779
|
return {
|
|
23780
23780
|
type: "element",
|
|
23781
23781
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as process$1, a1 as commonjsGlobal, B as Buffer, a2 as getDefaultExportFromCjs, a3 as getContentTypesFromXml, a4 as xmljs } from "./converter-
|
|
1
|
+
import { x as process$1, a1 as commonjsGlobal, B as Buffer, a2 as getDefaultExportFromCjs, a3 as getContentTypesFromXml, a4 as xmljs } from "./converter-BbPgOxa0.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, initPagination_fn, dispatchTransaction_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _FieldAnnotationView_instances, createAnnotation_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, r as replaceStep$1, e as Selection, F as Fragment, R as ReplaceAroundStep, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as isMacOS, p as isIOS, q as generateDocxRandomId, s as minMax, t as generateRandom32BitHex, u as DOMSerializer, v as Mark$1, w as dropPoint, x as process$1, B as Buffer2, y as isRegExp, z as TrackDeleteMarkName, C as TrackInsertMarkName, E as v4, G as TrackFormatMarkName, H as comments_module_events, I as AddMarkStep, J as RemoveMarkStep, K as twipsToLines, L as pixelsToTwips, O as SuperConverter, Q as EditorState, U as hasSomeParentWithClass, V as parseSizeUnit, W as getLineHeightValueString, X as toKebabCase, Y as kebabCase, Z as getColStyleDeclaration, _ as SelectionRange, $ as Transform, a0 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, r as replaceStep$1, e as Selection, F as Fragment, R as ReplaceAroundStep, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as isMacOS, p as isIOS, q as generateDocxRandomId, s as minMax, t as generateRandom32BitHex, u as DOMSerializer, v as Mark$1, w as dropPoint, x as process$1, B as Buffer2, y as isRegExp, z as TrackDeleteMarkName, C as TrackInsertMarkName, E as v4, G as TrackFormatMarkName, H as comments_module_events, I as AddMarkStep, J as RemoveMarkStep, K as twipsToLines, L as pixelsToTwips, O as SuperConverter, Q as EditorState, U as hasSomeParentWithClass, V as parseSizeUnit, W as getLineHeightValueString, X as toKebabCase, Y as kebabCase, Z as getColStyleDeclaration, _ as SelectionRange, $ as Transform, a0 as createColGroup } from "./converter-BbPgOxa0.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-Ce0B_FTd.js";
|
|
18
18
|
function getMarksFromSelection(state) {
|
|
19
19
|
const { from: from2, to, empty: empty2 } = state.selection;
|
|
20
20
|
const marks = [];
|
|
@@ -14090,7 +14090,8 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14090
14090
|
numbering: {},
|
|
14091
14091
|
isHeaderOrFooter: false,
|
|
14092
14092
|
lastSelection: null,
|
|
14093
|
-
|
|
14093
|
+
suppressDefaultDocxStyles: false,
|
|
14094
|
+
jsonOverride: false,
|
|
14094
14095
|
onBeforeCreate: () => null,
|
|
14095
14096
|
onCreate: () => null,
|
|
14096
14097
|
onUpdate: () => null,
|
|
@@ -14419,7 +14420,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14419
14420
|
* @returns {void}
|
|
14420
14421
|
*/
|
|
14421
14422
|
initDefaultStyles(element = this.element) {
|
|
14422
|
-
if (this.options.isHeadless || this.options.
|
|
14423
|
+
if (this.options.isHeadless || this.options.suppressDefaultDocxStyles) return;
|
|
14423
14424
|
const proseMirror = element?.querySelector(".ProseMirror");
|
|
14424
14425
|
const { pageSize, pageMargins } = this.converter.pageStyles ?? {};
|
|
14425
14426
|
if (!proseMirror || !pageSize || !pageMargins) {
|
|
@@ -14676,7 +14677,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14676
14677
|
* @returns {Object | void} Migration results
|
|
14677
14678
|
*/
|
|
14678
14679
|
processCollaborationMigrations() {
|
|
14679
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.12.
|
|
14680
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.12.18");
|
|
14680
14681
|
if (!this.options.ydoc) return;
|
|
14681
14682
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
14682
14683
|
let docVersion = metaMap.get("version");
|
|
@@ -15078,6 +15079,7 @@ generatePmData_fn = function() {
|
|
|
15078
15079
|
doc2 = createDocument(this.converter, this.schema, this);
|
|
15079
15080
|
doc2 = __privateMethod(this, _Editor_instances, prepareDocumentForImport_fn).call(this, doc2);
|
|
15080
15081
|
if (this.options.html) doc2 = __privateMethod(this, _Editor_instances, createDocFromHTML_fn).call(this, this.options.html);
|
|
15082
|
+
else if (this.options.jsonOverride) doc2 = this.schema.nodeFromJSON(this.options.jsonOverride);
|
|
15081
15083
|
if (fragment) doc2 = yXmlFragmentToProseMirrorRootNode(fragment, this.schema);
|
|
15082
15084
|
}
|
|
15083
15085
|
} else if (mode === "text" || mode === "html") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, unref, createBlock, toDisplayString, withDirectives, withKeys, withModifiers, vModelText, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { x as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, g as global$1 } from "./editor-
|
|
2
|
+
import { x as process$1 } from "./converter-BbPgOxa0.js";
|
|
3
|
+
import { _ as _export_sfc, g as global$1 } from "./editor-CU4NcQRP.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
* @property {Function} [onException] - Called when an exception occurs
|
|
72
72
|
* @property {Function} [handleImageUpload] - Handler for image uploads
|
|
73
73
|
* @property {Object} [telemetry] - Telemetry configuration
|
|
74
|
-
* @property {boolean} [
|
|
74
|
+
* @property {boolean} [suppressDefaultDocxStyles] - Prevent default styles from being applied in docx mode
|
|
75
|
+
* @property {boolean} [jsonOverride] - Whether to override content with provided json
|
|
75
76
|
* @property {string} [html] - HTML content to initialize the editor with
|
|
76
77
|
*/
|
|
77
78
|
/**
|
|
@@ -182,7 +183,8 @@ export class Editor extends EventEmitter {
|
|
|
182
183
|
numbering: {};
|
|
183
184
|
isHeaderOrFooter: boolean;
|
|
184
185
|
lastSelection: any;
|
|
185
|
-
|
|
186
|
+
suppressDefaultDocxStyles: boolean;
|
|
187
|
+
jsonOverride: boolean;
|
|
186
188
|
onBeforeCreate: () => any;
|
|
187
189
|
onCreate: () => any;
|
|
188
190
|
onUpdate: () => any;
|
|
@@ -723,9 +725,13 @@ export type EditorOptions = {
|
|
|
723
725
|
*/
|
|
724
726
|
telemetry?: any;
|
|
725
727
|
/**
|
|
726
|
-
* -
|
|
728
|
+
* - Prevent default styles from being applied in docx mode
|
|
727
729
|
*/
|
|
728
|
-
|
|
730
|
+
suppressDefaultDocxStyles?: boolean;
|
|
731
|
+
/**
|
|
732
|
+
* - Whether to override content with provided json
|
|
733
|
+
*/
|
|
734
|
+
jsonOverride?: boolean;
|
|
729
735
|
/**
|
|
730
736
|
* - HTML content to initialize the editor with
|
|
731
737
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA6BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AACF
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA6BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH;;;;GAIG;AACH;IAqqBE;;;;;;;;;;;;OAYG;IACH,+BARW,IAAI,GAAC,IAAI,GAAC,MAAM,WAChB,OAAO,GACL,OAAO,OAAO,CAc1B;IAED;;;;;OAKG;IACH,qCAFa,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,gDAHW,MAAM,OAMhB;IAwpBD;;;;;OAKG;IACH,2CAFa,OAAO,CAOnB;IAxwCD;;;;OAIG;IACH,qBAHW,aAAa,EAsBvB;IA7HD;;;OAGG;IACH,sBAAiB;IAEjB;;;OAGG;IACH,sBAAsB;IAEtB;;;OAGG;IACH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;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;uBAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsBP,OAAO;;;;mBACP,OAAO;;;;WACP,MAAM;;6BApGS,mBAAmB"}
|
|
@@ -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-CU4NcQRP.js";
|
|
2
|
+
import "./chunks/converter-BbPgOxa0.js";
|
|
3
|
+
import "./chunks/docx-zipper-Ce0B_FTd.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -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 { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, M as Mark, j as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
13
|
-
import { C, T, l, n, k, m } from "./chunks/editor-
|
|
14
|
-
import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-
|
|
15
|
-
import { O } from "./chunks/converter-
|
|
12
|
+
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, M as Mark, j as Extension, A as Attribute, N as Node } from "./chunks/editor-CU4NcQRP.js";
|
|
13
|
+
import { C, T, l, n, k, m } from "./chunks/editor-CU4NcQRP.js";
|
|
14
|
+
import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-BbPgOxa0.js";
|
|
15
|
+
import { O } from "./chunks/converter-BbPgOxa0.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-BhjcMYDy.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-Ce0B_FTd.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
(function(module) {
|
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-DK2NC1Gl.cjs");
|
|
4
4
|
require("./chunks/vue-DPZkajuO.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.BasicUpload = superEditor_es._sfc_main$1;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-DIiFOcde.es.js";
|
|
2
2
|
import "./chunks/vue-IIIZMHTg.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-DK2NC1Gl.cjs");
|
|
4
4
|
const vue = require("./chunks/vue-DPZkajuO.cjs");
|
|
5
5
|
const jszip = require("./chunks/jszip-Bwu_om3F.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
|
@@ -46132,7 +46132,8 @@ const _sfc_main = {
|
|
|
46132
46132
|
handleImageUpload: proxy.$superdoc.config.handleImageUpload,
|
|
46133
46133
|
telemetry: proxy.$superdoc.telemetry,
|
|
46134
46134
|
externalExtensions: proxy.$superdoc.config.editorExtensions || [],
|
|
46135
|
-
|
|
46135
|
+
suppressDefaultDocxStyles: proxy.$superdoc.config.suppressDefaultDocxStyles,
|
|
46136
|
+
jsonOverride: proxy.$superdoc.config.jsonOverride
|
|
46136
46137
|
};
|
|
46137
46138
|
return options;
|
|
46138
46139
|
};
|
|
@@ -46461,7 +46462,7 @@ const _sfc_main = {
|
|
|
46461
46462
|
};
|
|
46462
46463
|
}
|
|
46463
46464
|
};
|
|
46464
|
-
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
46465
|
+
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e620aa2b"]]);
|
|
46465
46466
|
const createSuperdocVueApp = () => {
|
|
46466
46467
|
const app = vue.createApp(App);
|
|
46467
46468
|
const pinia = createPinia();
|
|
@@ -46558,7 +46559,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
46558
46559
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46559
46560
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46560
46561
|
this.colorIndex = 0;
|
|
46561
|
-
this.version = "0.12.
|
|
46562
|
+
this.version = "0.12.18";
|
|
46562
46563
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46563
46564
|
this.superdocId = config.superdocId || uuid.v4();
|
|
46564
46565
|
this.colors = this.config.colors;
|