@harbour-enterprises/superdoc 0.15.6-next.1 → 0.15.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-1DD0pRIB.es.js → super-editor.es-DfQKDYMX.es.js} +3 -3
- package/dist/chunks/{super-editor.es-kGh8Eej3.cjs → super-editor.es-DmmC2s6r.cjs} +3 -3
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/style.css +17 -17
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-C1RKnjnd.js → converter-Inp5Jy0s.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CZ9cEdO7.js → docx-zipper-DVIPDmtc.js} +1 -1
- package/dist/super-editor/chunks/{editor-rW2VAbF4.js → editor-B9yd4rtv.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Bwme8S2R.js → toolbar-C7Xua-ob.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/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 +19 -5
- package/dist/superdoc.es.js +20 -6
- package/dist/superdoc.umd.js +21 -7
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -28783,7 +28783,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
28783
28783
|
return;
|
|
28784
28784
|
}
|
|
28785
28785
|
}
|
|
28786
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.6-next.
|
|
28786
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.6-next.2") {
|
|
28787
28787
|
const customLocation = "docProps/custom.xml";
|
|
28788
28788
|
if (!docx[customLocation]) {
|
|
28789
28789
|
docx[customLocation] = generateCustomXml();
|
|
@@ -29262,7 +29262,7 @@ function storeSuperdocVersion(docx) {
|
|
|
29262
29262
|
function generateCustomXml() {
|
|
29263
29263
|
return DEFAULT_CUSTOM_XML;
|
|
29264
29264
|
}
|
|
29265
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.15.6-next.
|
|
29265
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.15.6-next.2") {
|
|
29266
29266
|
return {
|
|
29267
29267
|
type: "element",
|
|
29268
29268
|
name: "property",
|
|
@@ -45385,7 +45385,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
45385
45385
|
* @returns {Object | void} Migration results
|
|
45386
45386
|
*/
|
|
45387
45387
|
processCollaborationMigrations() {
|
|
45388
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.15.6-next.
|
|
45388
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.15.6-next.2");
|
|
45389
45389
|
if (!this.options.ydoc) return;
|
|
45390
45390
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
45391
45391
|
let docVersion = metaMap.get("version");
|
|
@@ -28800,7 +28800,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
28800
28800
|
return;
|
|
28801
28801
|
}
|
|
28802
28802
|
}
|
|
28803
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.6-next.
|
|
28803
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.6-next.2") {
|
|
28804
28804
|
const customLocation = "docProps/custom.xml";
|
|
28805
28805
|
if (!docx[customLocation]) {
|
|
28806
28806
|
docx[customLocation] = generateCustomXml();
|
|
@@ -29279,7 +29279,7 @@ function storeSuperdocVersion(docx) {
|
|
|
29279
29279
|
function generateCustomXml() {
|
|
29280
29280
|
return DEFAULT_CUSTOM_XML;
|
|
29281
29281
|
}
|
|
29282
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.15.6-next.
|
|
29282
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.15.6-next.2") {
|
|
29283
29283
|
return {
|
|
29284
29284
|
type: "element",
|
|
29285
29285
|
name: "property",
|
|
@@ -45402,7 +45402,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
45402
45402
|
* @returns {Object | void} Migration results
|
|
45403
45403
|
*/
|
|
45404
45404
|
processCollaborationMigrations() {
|
|
45405
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.15.6-next.
|
|
45405
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.15.6-next.2");
|
|
45406
45406
|
if (!this.options.ydoc) return;
|
|
45407
45407
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
45408
45408
|
let docVersion = metaMap.get("version");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments-store.d.ts","sourceRoot":"","sources":["../../src/stores/comments-store.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA2Ce,IAAI;qBAiBN,MAAM;0CAWN,MAAM,GAAG,SAAS,GAAG,IAAI,KACvB,IAAI;;;;;;;
|
|
1
|
+
{"version":3,"file":"comments-store.d.ts","sourceRoot":"","sources":["../../src/stores/comments-store.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA2Ce,IAAI;qBAiBN,MAAM;0CAWN,MAAM,GAAG,SAAS,GAAG,IAAI,KACvB,IAAI;;;;;;;gFA+Nd;QAAuB,SAAS;QACT,UAAU;QACV,eAAe;KACtC;;wCAoDA;QAAuB,QAAQ;KAC/B,KAAU,IAAI;sCA2EJ,IAAI;;;;;6CA3FJ,IAAI;4EAwGd;QAAsB,QAAQ;QACP,UAAU;KACjC,KAAU,IAAI;;oFA0HJ,IAAI;sDAndd;QAAuB,QAAQ;QACR,MAAM;KAC7B,KAAU,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAvDJ,IAAI;qBAiBN,MAAM;0CAWN,MAAM,GAAG,SAAS,GAAG,IAAI,KACvB,IAAI;;;;;;;gFA+Nd;QAAuB,SAAS;QACT,UAAU;QACV,eAAe;KACtC;;wCAoDA;QAAuB,QAAQ;KAC/B,KAAU,IAAI;sCA2EJ,IAAI;;;;;6CA3FJ,IAAI;4EAwGd;QAAsB,QAAQ;QACP,UAAU;KACjC,KAAU,IAAI;;oFA0HJ,IAAI;sDAndd;QAAuB,QAAQ;QACR,MAAM;KAC7B,KAAU,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAvDJ,IAAI;qBAiBN,MAAM;0CAWN,MAAM,GAAG,SAAS,GAAG,IAAI,KACvB,IAAI;;;;;;;gFA+Nd;QAAuB,SAAS;QACT,UAAU;QACV,eAAe;KACtC;;wCAoDA;QAAuB,QAAQ;KAC/B,KAAU,IAAI;sCA2EJ,IAAI;;;;;6CA3FJ,IAAI;4EAwGd;QAAsB,QAAQ;QACP,UAAU;KACjC,KAAU,IAAI;;oFA0HJ,IAAI;sDAndd;QAAuB,QAAQ;QACR,MAAM;KAC7B,KAAU,IAAI;0VAijBhB"}
|
package/dist/style.css
CHANGED
|
@@ -242,32 +242,32 @@ span[data-v-53e13009] {
|
|
|
242
242
|
display: inline-block;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
.change-type[data-v-
|
|
245
|
+
.change-type[data-v-dc5e6675] {
|
|
246
246
|
font-style: italic;
|
|
247
247
|
font-weight: 600;
|
|
248
248
|
font-size: 10px;
|
|
249
249
|
color: #555;
|
|
250
250
|
}
|
|
251
|
-
.tracked-change[data-v-
|
|
251
|
+
.tracked-change[data-v-dc5e6675] {
|
|
252
252
|
font-size: 12px;
|
|
253
253
|
}
|
|
254
|
-
.tracked-change-text[data-v-
|
|
254
|
+
.tracked-change-text[data-v-dc5e6675] {
|
|
255
255
|
color: #111;
|
|
256
256
|
}
|
|
257
|
-
.comment-separator[data-v-
|
|
257
|
+
.comment-separator[data-v-dc5e6675] {
|
|
258
258
|
background-color: #dbdbdb;
|
|
259
259
|
height: 1px;
|
|
260
260
|
width: 100%;
|
|
261
261
|
margin: 10px 0;
|
|
262
262
|
font-weight: 400;
|
|
263
263
|
}
|
|
264
|
-
.existing-internal-input[data-v-
|
|
264
|
+
.existing-internal-input[data-v-dc5e6675] {
|
|
265
265
|
margin-bottom: 10px;
|
|
266
266
|
}
|
|
267
|
-
.initial-internal-dropdown[data-v-
|
|
267
|
+
.initial-internal-dropdown[data-v-dc5e6675] {
|
|
268
268
|
margin-top: 10px;
|
|
269
269
|
}
|
|
270
|
-
.comments-dialog[data-v-
|
|
270
|
+
.comments-dialog[data-v-dc5e6675] {
|
|
271
271
|
display: flex;
|
|
272
272
|
flex-direction: column;
|
|
273
273
|
padding: 10px 15px;
|
|
@@ -282,39 +282,39 @@ span[data-v-53e13009] {
|
|
|
282
282
|
min-width: 200px;
|
|
283
283
|
width: 100%;
|
|
284
284
|
}
|
|
285
|
-
.is-active[data-v-
|
|
285
|
+
.is-active[data-v-dc5e6675] {
|
|
286
286
|
z-index: 10;
|
|
287
287
|
}
|
|
288
|
-
.input-section[data-v-
|
|
288
|
+
.input-section[data-v-dc5e6675] {
|
|
289
289
|
margin-top: 10px;
|
|
290
290
|
}
|
|
291
|
-
.sd-button[data-v-
|
|
291
|
+
.sd-button[data-v-dc5e6675] {
|
|
292
292
|
font-size: 12px;
|
|
293
293
|
margin-left: 5px;
|
|
294
294
|
}
|
|
295
|
-
.comment[data-v-
|
|
295
|
+
.comment[data-v-dc5e6675] {
|
|
296
296
|
font-size: 13px;
|
|
297
297
|
margin: 10px 0;
|
|
298
298
|
}
|
|
299
|
-
.is-resolved[data-v-
|
|
299
|
+
.is-resolved[data-v-dc5e6675] {
|
|
300
300
|
background-color: #f0f0f0;
|
|
301
301
|
}
|
|
302
|
-
.comment-footer[data-v-
|
|
302
|
+
.comment-footer[data-v-dc5e6675] {
|
|
303
303
|
margin: 5px 0 5px;
|
|
304
304
|
display: flex;
|
|
305
305
|
justify-content: flex-end;
|
|
306
306
|
width: 100%;
|
|
307
307
|
}
|
|
308
|
-
.internal-dropdown[data-v-
|
|
308
|
+
.internal-dropdown[data-v-dc5e6675] {
|
|
309
309
|
display: inline-block;
|
|
310
310
|
}
|
|
311
|
-
.comment-editing[data-v-
|
|
311
|
+
.comment-editing[data-v-dc5e6675] {
|
|
312
312
|
padding-bottom: 10px;
|
|
313
313
|
}
|
|
314
|
-
.comment-editing button[data-v-
|
|
314
|
+
.comment-editing button[data-v-dc5e6675] {
|
|
315
315
|
margin-left: 5px;
|
|
316
316
|
}
|
|
317
|
-
.tracked-change[data-v-
|
|
317
|
+
.tracked-change[data-v-dc5e6675] {
|
|
318
318
|
margin: 0;
|
|
319
319
|
}
|
|
320
320
|
|
|
@@ -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-Inp5Jy0s.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-B9yd4rtv.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 = {}) {
|
|
@@ -28781,7 +28781,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
28781
28781
|
return;
|
|
28782
28782
|
}
|
|
28783
28783
|
}
|
|
28784
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.15.6-next.
|
|
28784
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.15.6-next.2") {
|
|
28785
28785
|
const customLocation = "docProps/custom.xml";
|
|
28786
28786
|
if (!docx[customLocation]) {
|
|
28787
28787
|
docx[customLocation] = generateCustomXml();
|
|
@@ -29263,7 +29263,7 @@ function storeSuperdocVersion(docx) {
|
|
|
29263
29263
|
function generateCustomXml() {
|
|
29264
29264
|
return DEFAULT_CUSTOM_XML;
|
|
29265
29265
|
}
|
|
29266
|
-
function generateSuperdocVersion(pid = 2, version = "0.15.6-next.
|
|
29266
|
+
function generateSuperdocVersion(pid = 2, version = "0.15.6-next.2") {
|
|
29267
29267
|
return {
|
|
29268
29268
|
type: "element",
|
|
29269
29269
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as process$1, at as commonjsGlobal, I as Buffer, au as getDefaultExportFromCjs, av as getContentTypesFromXml, aw as xmljs } from "./converter-
|
|
1
|
+
import { H as process$1, at as commonjsGlobal, I as Buffer, au as getDefaultExportFromCjs, av as getContentTypesFromXml, aw as xmljs } from "./converter-Inp5Jy0s.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, _DocumentSectionView_instances, init_fn3, addToolTip_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, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as helpers, a2 as posToDOMRect, a3 as CommandService, a4 as SuperConverter, a5 as createDocument, a6 as EditorState, a7 as hasSomeParentWithClass, a8 as isActive, a9 as unflattenListsInHtml, aa as parseSizeUnit, ab as minMax, ac as getLineHeightValueString, ad as InputRule, ae as kebabCase, af as generateOrderedListIndex, ag as getListItemStyleDefinitions, ah as docxNumberigHelpers, ai as parseIndentElement, aj as combineIndents, ak as getColStyleDeclaration, al as SelectionRange, am as Transform, an as findParentNodeClosestToPos, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId, ar as SectionHelpers, as as htmlHandler } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as helpers, a2 as posToDOMRect, a3 as CommandService, a4 as SuperConverter, a5 as createDocument, a6 as EditorState, a7 as hasSomeParentWithClass, a8 as isActive, a9 as unflattenListsInHtml, aa as parseSizeUnit, ab as minMax, ac as getLineHeightValueString, ad as InputRule, ae as kebabCase, af as generateOrderedListIndex, ag as getListItemStyleDefinitions, ah as docxNumberigHelpers, ai as parseIndentElement, aj as combineIndents, ak as getColStyleDeclaration, al as SelectionRange, am as Transform, an as findParentNodeClosestToPos, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId, ar as SectionHelpers, as as htmlHandler } from "./converter-Inp5Jy0s.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-DVIPDmtc.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -13625,7 +13625,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13625
13625
|
* @returns {Object | void} Migration results
|
|
13626
13626
|
*/
|
|
13627
13627
|
processCollaborationMigrations() {
|
|
13628
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.15.6-next.
|
|
13628
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.15.6-next.2");
|
|
13629
13629
|
if (!this.options.ydoc) return;
|
|
13630
13630
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
13631
13631
|
let docVersion = metaMap.get("version");
|
|
@@ -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 { H as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { H as process$1 } from "./converter-Inp5Jy0s.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-B9yd4rtv.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-B9yd4rtv.js";
|
|
2
|
+
import "./chunks/converter-Inp5Jy0s.js";
|
|
3
|
+
import "./chunks/docx-zipper-DVIPDmtc.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 { au as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, ax as vClickOutside, y as findParentNode, ay as getActiveFormatting, ao as isInTable, az as readFromClipboard, aA as handleClipboardPaste, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { ar, a4, d, a1 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { k, C, T, i, l, j } from "./chunks/editor-
|
|
12
|
+
import { au as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, ax as vClickOutside, y as findParentNode, ay as getActiveFormatting, ao as isInTable, az as readFromClipboard, aA as handleClipboardPaste, a as Plugin } from "./chunks/converter-Inp5Jy0s.js";
|
|
13
|
+
import { ar, a4, d, a1 } from "./chunks/converter-Inp5Jy0s.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-B9yd4rtv.js";
|
|
15
|
+
import { k, C, T, i, l, j } from "./chunks/editor-B9yd4rtv.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, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, N as NSkeleton } from "./chunks/toolbar-C7Xua-ob.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-DVIPDmtc.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
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-DmmC2s6r.cjs");
|
|
4
4
|
require("./chunks/vue-CfKg12kH.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, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, q } from "./chunks/super-editor.es-DfQKDYMX.es.js";
|
|
2
2
|
import "./chunks/vue-B_OPNNfX.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-DmmC2s6r.cjs");
|
|
4
4
|
const vue = require("./chunks/vue-CfKg12kH.cjs");
|
|
5
5
|
const jszip = require("./chunks/jszip-DWfnW2xV.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
|
@@ -4106,6 +4106,10 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4106
4106
|
const setActiveComment = (superdoc2, id) => {
|
|
4107
4107
|
if (id === void 0 || id === null) {
|
|
4108
4108
|
activeComment.value = null;
|
|
4109
|
+
if (superdoc2.activeEditor) {
|
|
4110
|
+
superdoc2.activeEditor.commands?.setActiveComment({ commentId: null });
|
|
4111
|
+
}
|
|
4112
|
+
return;
|
|
4109
4113
|
}
|
|
4110
4114
|
const comment = getComment(id);
|
|
4111
4115
|
if (comment) activeComment.value = comment.commentId;
|
|
@@ -15205,8 +15209,18 @@ const _sfc_main$d = {
|
|
|
15205
15209
|
}
|
|
15206
15210
|
};
|
|
15207
15211
|
const handleClickOutside = (e) => {
|
|
15208
|
-
|
|
15209
|
-
|
|
15212
|
+
const excludedClasses = [
|
|
15213
|
+
"n-dropdown-option-body__label",
|
|
15214
|
+
"sd-editor-comment-highlight",
|
|
15215
|
+
"sd-editor-tracked-change-highlight",
|
|
15216
|
+
"track-insert",
|
|
15217
|
+
"track-insert-dec",
|
|
15218
|
+
"track-delete",
|
|
15219
|
+
"track-delete-dec",
|
|
15220
|
+
"track-format",
|
|
15221
|
+
"track-format-dec"
|
|
15222
|
+
];
|
|
15223
|
+
if (excludedClasses.some((className) => e.target.classList.contains(className))) return;
|
|
15210
15224
|
if (activeComment.value === props.comment.commentId) {
|
|
15211
15225
|
floatingCommentsOffset.value = 0;
|
|
15212
15226
|
emit("dialog-exit");
|
|
@@ -15425,7 +15439,7 @@ const _sfc_main$d = {
|
|
|
15425
15439
|
};
|
|
15426
15440
|
}
|
|
15427
15441
|
};
|
|
15428
|
-
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
15442
|
+
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dc5e6675"]]);
|
|
15429
15443
|
const _hoisted_1$b = { class: "comments-list" };
|
|
15430
15444
|
const _hoisted_2$5 = { key: 0 };
|
|
15431
15445
|
const _hoisted_3$3 = { class: "comment-item" };
|
|
@@ -47833,7 +47847,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47833
47847
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47834
47848
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47835
47849
|
this.colorIndex = 0;
|
|
47836
|
-
this.version = "0.15.6-next.
|
|
47850
|
+
this.version = "0.15.6-next.2";
|
|
47837
47851
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47838
47852
|
this.superdocId = config.superdocId || uuid.v4();
|
|
47839
47853
|
this.colors = this.config.colors;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./chunks/super-editor.es-
|
|
2
|
-
import { a, S, d, j, p } from "./chunks/super-editor.es-
|
|
1
|
+
import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./chunks/super-editor.es-DfQKDYMX.es.js";
|
|
2
|
+
import { a, S, d, j, p } from "./chunks/super-editor.es-DfQKDYMX.es.js";
|
|
3
3
|
import { a0 as effectScope, r as ref, $ as markRaw, p as process$1, a1 as toRaw, a as computed, a2 as isRef, a3 as isReactive, D as toRef, i as inject, q as getCurrentInstance, l as watch, y as unref, a4 as hasInjectionContext, N as reactive, u as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, K as shallowRef, O as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, U as onActivated, s as onDeactivated, A as createTextVNode, F as Fragment, R as Comment, m as defineComponent, E as provide, I as withDirectives, C as h, V as Teleport, S as renderSlot, W as isVNode, J as watchEffect, P as Transition, G as mergeProps, Q as vShow, H as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, x as createVNode, z as withCtx, f as createBaseVNode, B as normalizeStyle, e as createCommentVNode, v as createBlock, w as withModifiers, n as normalizeClass, a8 as resolveDirective, d as renderList, c as createApp, X as onUnmounted, Y as resolveDynamicComponent } from "./chunks/vue-B_OPNNfX.es.js";
|
|
4
4
|
import { B as Buffer$2 } from "./chunks/jszip-BwJb6_S5.es.js";
|
|
5
5
|
import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.es.js";
|
|
@@ -4089,6 +4089,10 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4089
4089
|
const setActiveComment = (superdoc2, id) => {
|
|
4090
4090
|
if (id === void 0 || id === null) {
|
|
4091
4091
|
activeComment.value = null;
|
|
4092
|
+
if (superdoc2.activeEditor) {
|
|
4093
|
+
superdoc2.activeEditor.commands?.setActiveComment({ commentId: null });
|
|
4094
|
+
}
|
|
4095
|
+
return;
|
|
4092
4096
|
}
|
|
4093
4097
|
const comment = getComment(id);
|
|
4094
4098
|
if (comment) activeComment.value = comment.commentId;
|
|
@@ -15188,8 +15192,18 @@ const _sfc_main$d = {
|
|
|
15188
15192
|
}
|
|
15189
15193
|
};
|
|
15190
15194
|
const handleClickOutside = (e) => {
|
|
15191
|
-
|
|
15192
|
-
|
|
15195
|
+
const excludedClasses = [
|
|
15196
|
+
"n-dropdown-option-body__label",
|
|
15197
|
+
"sd-editor-comment-highlight",
|
|
15198
|
+
"sd-editor-tracked-change-highlight",
|
|
15199
|
+
"track-insert",
|
|
15200
|
+
"track-insert-dec",
|
|
15201
|
+
"track-delete",
|
|
15202
|
+
"track-delete-dec",
|
|
15203
|
+
"track-format",
|
|
15204
|
+
"track-format-dec"
|
|
15205
|
+
];
|
|
15206
|
+
if (excludedClasses.some((className) => e.target.classList.contains(className))) return;
|
|
15193
15207
|
if (activeComment.value === props.comment.commentId) {
|
|
15194
15208
|
floatingCommentsOffset.value = 0;
|
|
15195
15209
|
emit("dialog-exit");
|
|
@@ -15408,7 +15422,7 @@ const _sfc_main$d = {
|
|
|
15408
15422
|
};
|
|
15409
15423
|
}
|
|
15410
15424
|
};
|
|
15411
|
-
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
15425
|
+
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dc5e6675"]]);
|
|
15412
15426
|
const _hoisted_1$b = { class: "comments-list" };
|
|
15413
15427
|
const _hoisted_2$5 = { key: 0 };
|
|
15414
15428
|
const _hoisted_3$3 = { class: "comment-item" };
|
|
@@ -47816,7 +47830,7 @@ class SuperDoc extends EventEmitter {
|
|
|
47816
47830
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47817
47831
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47818
47832
|
this.colorIndex = 0;
|
|
47819
|
-
this.version = "0.15.6-next.
|
|
47833
|
+
this.version = "0.15.6-next.2";
|
|
47820
47834
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47821
47835
|
this.superdocId = config.superdocId || v4();
|
|
47822
47836
|
this.colors = this.config.colors;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -36178,7 +36178,7 @@
|
|
|
36178
36178
|
return;
|
|
36179
36179
|
}
|
|
36180
36180
|
}
|
|
36181
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.6-next.
|
|
36181
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.6-next.2") {
|
|
36182
36182
|
const customLocation = "docProps/custom.xml";
|
|
36183
36183
|
if (!docx[customLocation]) {
|
|
36184
36184
|
docx[customLocation] = generateCustomXml();
|
|
@@ -36657,7 +36657,7 @@
|
|
|
36657
36657
|
function generateCustomXml() {
|
|
36658
36658
|
return DEFAULT_CUSTOM_XML;
|
|
36659
36659
|
}
|
|
36660
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.15.6-next.
|
|
36660
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.15.6-next.2") {
|
|
36661
36661
|
return {
|
|
36662
36662
|
type: "element",
|
|
36663
36663
|
name: "property",
|
|
@@ -52780,7 +52780,7 @@
|
|
|
52780
52780
|
* @returns {Object | void} Migration results
|
|
52781
52781
|
*/
|
|
52782
52782
|
processCollaborationMigrations() {
|
|
52783
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.15.6-next.
|
|
52783
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.15.6-next.2");
|
|
52784
52784
|
if (!this.options.ydoc) return;
|
|
52785
52785
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
52786
52786
|
let docVersion = metaMap.get("version");
|
|
@@ -86319,6 +86319,10 @@ ${reason}`);
|
|
|
86319
86319
|
const setActiveComment = (superdoc2, id) => {
|
|
86320
86320
|
if (id === void 0 || id === null) {
|
|
86321
86321
|
activeComment.value = null;
|
|
86322
|
+
if (superdoc2.activeEditor) {
|
|
86323
|
+
superdoc2.activeEditor.commands?.setActiveComment({ commentId: null });
|
|
86324
|
+
}
|
|
86325
|
+
return;
|
|
86322
86326
|
}
|
|
86323
86327
|
const comment = getComment(id);
|
|
86324
86328
|
if (comment) activeComment.value = comment.commentId;
|
|
@@ -97360,8 +97364,18 @@ ${style2}
|
|
|
97360
97364
|
}
|
|
97361
97365
|
};
|
|
97362
97366
|
const handleClickOutside2 = (e) => {
|
|
97363
|
-
|
|
97364
|
-
|
|
97367
|
+
const excludedClasses = [
|
|
97368
|
+
"n-dropdown-option-body__label",
|
|
97369
|
+
"sd-editor-comment-highlight",
|
|
97370
|
+
"sd-editor-tracked-change-highlight",
|
|
97371
|
+
"track-insert",
|
|
97372
|
+
"track-insert-dec",
|
|
97373
|
+
"track-delete",
|
|
97374
|
+
"track-delete-dec",
|
|
97375
|
+
"track-format",
|
|
97376
|
+
"track-format-dec"
|
|
97377
|
+
];
|
|
97378
|
+
if (excludedClasses.some((className) => e.target.classList.contains(className))) return;
|
|
97365
97379
|
if (activeComment.value === props.comment.commentId) {
|
|
97366
97380
|
floatingCommentsOffset.value = 0;
|
|
97367
97381
|
emit2("dialog-exit");
|
|
@@ -97580,7 +97594,7 @@ ${style2}
|
|
|
97580
97594
|
};
|
|
97581
97595
|
}
|
|
97582
97596
|
};
|
|
97583
|
-
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
97597
|
+
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dc5e6675"]]);
|
|
97584
97598
|
const _hoisted_1$b = { class: "comments-list" };
|
|
97585
97599
|
const _hoisted_2$5 = { key: 0 };
|
|
97586
97600
|
const _hoisted_3$3 = { class: "comment-item" };
|
|
@@ -99397,7 +99411,7 @@ ${style2}
|
|
|
99397
99411
|
this.config.colors = shuffleArray(this.config.colors);
|
|
99398
99412
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
99399
99413
|
this.colorIndex = 0;
|
|
99400
|
-
this.version = "0.15.6-next.
|
|
99414
|
+
this.version = "0.15.6-next.2";
|
|
99401
99415
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
99402
99416
|
this.superdocId = config.superdocId || v4();
|
|
99403
99417
|
this.colors = this.config.colors;
|