@harbour-enterprises/superdoc 0.14.9-next.3 → 0.14.9-next.4
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/{index-BvK-G6B1.es.js → index-BMwK7kM5.es.js} +2 -2
- package/dist/chunks/{index-CCRVYhTn.cjs → index-CZuIe8A3.cjs} +1 -1
- package/dist/chunks/{index-oHslWah4.es.js → index-MJ-5Yknb.es.js} +1 -1
- package/dist/chunks/{index-CgJ5KVh6.cjs → index-Oz4X1zyg.cjs} +2 -2
- package/dist/chunks/{super-editor.es-Cm485wgf.es.js → super-editor.es-BLipGLuU.es.js} +8 -4
- package/dist/chunks/{super-editor.es-D4w4gOxp.cjs → super-editor.es-BhS65olb.cjs} +8 -4
- package/dist/chunks/{url-BG1Z_Z2_.cjs → url-CRVat8D5.cjs} +1 -1
- package/dist/chunks/{url-Dvx6wrNT.es.js → url-Cqg2Hljl.es.js} +1 -1
- package/dist/chunks/{xml-js-DNISVjNF.es.js → xml-js-D78KIQHL.es.js} +4 -11
- package/dist/chunks/{xml-js-BHJlXtfU.cjs → xml-js-t28wMlyv.cjs} +4 -11
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-wprLSvGf.js → converter-BA-KDEVJ.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-XpZaObsQ.js → docx-zipper-DGmEYrh3.js} +1 -1
- package/dist/super-editor/chunks/{editor-B-syl6XT.js → editor-BXXmxa6X.js} +8 -4
- package/dist/super-editor/chunks/{toolbar-D0Pksjxw.js → toolbar-BZNpDE3m.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/migrations/0.14-listsv2/listsv2migration.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 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +9 -5
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
2
|
import { p as process$1 } from "./vue-lU0o_RlU.es.js";
|
|
3
|
-
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-
|
|
4
|
-
import { u as url } from "./url-
|
|
3
|
+
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-D78KIQHL.es.js";
|
|
4
|
+
import { u as url } from "./url-Cqg2Hljl.es.js";
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
for (var i = 0; i < m.length; i++) {
|
|
7
7
|
const e = m[i];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { s as streamHttp, r as require$$1 } from "./index-
|
|
2
|
+
import { s as streamHttp, r as require$$1 } from "./index-BMwK7kM5.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
3
|
const vue = require("./vue-tQYF719J.cjs");
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
4
|
+
const xmlJs = require("./xml-js-t28wMlyv.cjs");
|
|
5
|
+
const url = require("./url-CRVat8D5.cjs");
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -26359,7 +26359,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
26359
26359
|
return;
|
|
26360
26360
|
}
|
|
26361
26361
|
}
|
|
26362
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.
|
|
26362
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.4") {
|
|
26363
26363
|
const customLocation = "docProps/custom.xml";
|
|
26364
26364
|
if (!docx[customLocation]) {
|
|
26365
26365
|
docx[customLocation] = generateCustomXml();
|
|
@@ -26835,7 +26835,7 @@ function storeSuperdocVersion(docx) {
|
|
|
26835
26835
|
function generateCustomXml() {
|
|
26836
26836
|
return DEFAULT_CUSTOM_XML;
|
|
26837
26837
|
}
|
|
26838
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.
|
|
26838
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.4") {
|
|
26839
26839
|
return {
|
|
26840
26840
|
type: "element",
|
|
26841
26841
|
name: "property",
|
|
@@ -42096,6 +42096,9 @@ const generateMissingListDefinition = (listNode, editor) => {
|
|
|
42096
42096
|
const migrateParagraphFieldsListsV2 = async (annotationValues = [], editor) => {
|
|
42097
42097
|
const annotations = getAllFieldAnnotations(editor.state);
|
|
42098
42098
|
const newValues = [];
|
|
42099
|
+
if (!annotations.length) {
|
|
42100
|
+
return annotationValues;
|
|
42101
|
+
}
|
|
42099
42102
|
for (const annotation of annotations) {
|
|
42100
42103
|
const type2 = annotation.node?.attrs?.type;
|
|
42101
42104
|
const matchedAnnotation = annotationValues.find((v) => v.input_id === annotation.node.attrs.fieldId);
|
|
@@ -42922,7 +42925,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42922
42925
|
* @returns {Object | void} Migration results
|
|
42923
42926
|
*/
|
|
42924
42927
|
processCollaborationMigrations() {
|
|
42925
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.
|
|
42928
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.4");
|
|
42926
42929
|
if (!this.options.ydoc) return;
|
|
42927
42930
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42928
42931
|
let docVersion = metaMap.get("version");
|
|
@@ -43052,7 +43055,8 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
43052
43055
|
*/
|
|
43053
43056
|
async migrateParagraphFields(annotationValues = []) {
|
|
43054
43057
|
if (!Array.isArray(annotationValues) || !annotationValues.length) return annotationValues;
|
|
43055
|
-
|
|
43058
|
+
const result = await migrateParagraphFieldsListsV2(annotationValues, this);
|
|
43059
|
+
return result;
|
|
43056
43060
|
}
|
|
43057
43061
|
/**
|
|
43058
43062
|
* Annotate the document with the given annotation values.
|
|
@@ -26376,7 +26376,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
26376
26376
|
return;
|
|
26377
26377
|
}
|
|
26378
26378
|
}
|
|
26379
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.
|
|
26379
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.4") {
|
|
26380
26380
|
const customLocation = "docProps/custom.xml";
|
|
26381
26381
|
if (!docx[customLocation]) {
|
|
26382
26382
|
docx[customLocation] = generateCustomXml();
|
|
@@ -26852,7 +26852,7 @@ function storeSuperdocVersion(docx) {
|
|
|
26852
26852
|
function generateCustomXml() {
|
|
26853
26853
|
return DEFAULT_CUSTOM_XML;
|
|
26854
26854
|
}
|
|
26855
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.
|
|
26855
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.4") {
|
|
26856
26856
|
return {
|
|
26857
26857
|
type: "element",
|
|
26858
26858
|
name: "property",
|
|
@@ -42113,6 +42113,9 @@ const generateMissingListDefinition = (listNode, editor) => {
|
|
|
42113
42113
|
const migrateParagraphFieldsListsV2 = async (annotationValues = [], editor) => {
|
|
42114
42114
|
const annotations = getAllFieldAnnotations(editor.state);
|
|
42115
42115
|
const newValues = [];
|
|
42116
|
+
if (!annotations.length) {
|
|
42117
|
+
return annotationValues;
|
|
42118
|
+
}
|
|
42116
42119
|
for (const annotation of annotations) {
|
|
42117
42120
|
const type2 = annotation.node?.attrs?.type;
|
|
42118
42121
|
const matchedAnnotation = annotationValues.find((v) => v.input_id === annotation.node.attrs.fieldId);
|
|
@@ -42939,7 +42942,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42939
42942
|
* @returns {Object | void} Migration results
|
|
42940
42943
|
*/
|
|
42941
42944
|
processCollaborationMigrations() {
|
|
42942
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.
|
|
42945
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.4");
|
|
42943
42946
|
if (!this.options.ydoc) return;
|
|
42944
42947
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42945
42948
|
let docVersion = metaMap.get("version");
|
|
@@ -43069,7 +43072,8 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
43069
43072
|
*/
|
|
43070
43073
|
async migrateParagraphFields(annotationValues = []) {
|
|
43071
43074
|
if (!Array.isArray(annotationValues) || !annotationValues.length) return annotationValues;
|
|
43072
|
-
|
|
43075
|
+
const result = await migrateParagraphFieldsListsV2(annotationValues, this);
|
|
43076
|
+
return result;
|
|
43073
43077
|
}
|
|
43074
43078
|
/**
|
|
43075
43079
|
* Annotate the document with the given annotation values.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
3
|
+
const xmlJs = require("./xml-js-t28wMlyv.cjs");
|
|
4
4
|
const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
|
|
5
5
|
var punycode$1 = { exports: {} };
|
|
6
6
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-
|
|
2
|
+
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-D78KIQHL.es.js";
|
|
3
3
|
import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
|
|
4
4
|
var punycode$1 = { exports: {} };
|
|
5
5
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -514,15 +514,8 @@ function requireHasSymbols() {
|
|
|
514
514
|
return hasSymbols$1;
|
|
515
515
|
}
|
|
516
516
|
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
517
|
-
var
|
|
518
|
-
var
|
|
519
|
-
function requireObject_getPrototypeOf() {
|
|
520
|
-
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
521
|
-
hasRequiredObject_getPrototypeOf = 1;
|
|
522
|
-
var $Object2 = esObjectAtoms;
|
|
523
|
-
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
524
|
-
return Object_getPrototypeOf;
|
|
525
|
-
}
|
|
517
|
+
var $Object$2 = esObjectAtoms;
|
|
518
|
+
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
526
519
|
var implementation;
|
|
527
520
|
var hasRequiredImplementation;
|
|
528
521
|
function requireImplementation() {
|
|
@@ -665,7 +658,7 @@ var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : type
|
|
|
665
658
|
}
|
|
666
659
|
) : false;
|
|
667
660
|
var reflectGetProto = Reflect_getPrototypeOf;
|
|
668
|
-
var originalGetProto =
|
|
661
|
+
var originalGetProto = Object_getPrototypeOf;
|
|
669
662
|
var getDunderProto = get;
|
|
670
663
|
var getProto$3 = reflectGetProto ? function getProto(O) {
|
|
671
664
|
return reflectGetProto(O);
|
|
@@ -730,7 +723,7 @@ var ThrowTypeError = $gOPD ? function() {
|
|
|
730
723
|
}() : throwTypeError;
|
|
731
724
|
var hasSymbols2 = requireHasSymbols()();
|
|
732
725
|
var getProto$2 = getProto$3;
|
|
733
|
-
var $ObjectGPO =
|
|
726
|
+
var $ObjectGPO = Object_getPrototypeOf;
|
|
734
727
|
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
735
728
|
var $apply$1 = requireFunctionApply();
|
|
736
729
|
var $call = requireFunctionCall();
|
|
@@ -515,15 +515,8 @@ function requireHasSymbols() {
|
|
|
515
515
|
return hasSymbols$1;
|
|
516
516
|
}
|
|
517
517
|
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
518
|
-
var
|
|
519
|
-
var
|
|
520
|
-
function requireObject_getPrototypeOf() {
|
|
521
|
-
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
522
|
-
hasRequiredObject_getPrototypeOf = 1;
|
|
523
|
-
var $Object2 = esObjectAtoms;
|
|
524
|
-
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
525
|
-
return Object_getPrototypeOf;
|
|
526
|
-
}
|
|
518
|
+
var $Object$2 = esObjectAtoms;
|
|
519
|
+
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
527
520
|
var implementation;
|
|
528
521
|
var hasRequiredImplementation;
|
|
529
522
|
function requireImplementation() {
|
|
@@ -666,7 +659,7 @@ var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : type
|
|
|
666
659
|
}
|
|
667
660
|
) : false;
|
|
668
661
|
var reflectGetProto = Reflect_getPrototypeOf;
|
|
669
|
-
var originalGetProto =
|
|
662
|
+
var originalGetProto = Object_getPrototypeOf;
|
|
670
663
|
var getDunderProto = get;
|
|
671
664
|
var getProto$3 = reflectGetProto ? function getProto(O) {
|
|
672
665
|
return reflectGetProto(O);
|
|
@@ -731,7 +724,7 @@ var ThrowTypeError = $gOPD ? function() {
|
|
|
731
724
|
}() : throwTypeError;
|
|
732
725
|
var hasSymbols2 = requireHasSymbols()();
|
|
733
726
|
var getProto$2 = getProto$3;
|
|
734
|
-
var $ObjectGPO =
|
|
727
|
+
var $ObjectGPO = Object_getPrototypeOf;
|
|
735
728
|
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
736
729
|
var $apply$1 = requireFunctionApply();
|
|
737
730
|
var $call = requireFunctionCall();
|
|
@@ -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-BA-KDEVJ.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-BXXmxa6X.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 = {}) {
|
|
@@ -26378,7 +26378,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
26378
26378
|
return;
|
|
26379
26379
|
}
|
|
26380
26380
|
}
|
|
26381
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.9-next.
|
|
26381
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.9-next.4") {
|
|
26382
26382
|
const customLocation = "docProps/custom.xml";
|
|
26383
26383
|
if (!docx[customLocation]) {
|
|
26384
26384
|
docx[customLocation] = generateCustomXml();
|
|
@@ -26857,7 +26857,7 @@ function storeSuperdocVersion(docx) {
|
|
|
26857
26857
|
function generateCustomXml() {
|
|
26858
26858
|
return DEFAULT_CUSTOM_XML;
|
|
26859
26859
|
}
|
|
26860
|
-
function generateSuperdocVersion(pid = 2, version = "0.14.9-next.
|
|
26860
|
+
function generateSuperdocVersion(pid = 2, version = "0.14.9-next.4") {
|
|
26861
26861
|
return {
|
|
26862
26862
|
type: "element",
|
|
26863
26863
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as process$1, aq as commonjsGlobal, I as Buffer, ar as getDefaultExportFromCjs, as as getContentTypesFromXml, at as xmljs } from "./converter-
|
|
1
|
+
import { H as process$1, aq as commonjsGlobal, I as Buffer, ar as getDefaultExportFromCjs, as as getContentTypesFromXml, at as xmljs } from "./converter-BA-KDEVJ.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, 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 findParentNodeClosestToPos, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as EditorState, a8 as hasSomeParentWithClass, a9 as isActive, 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 isInTable$1, ao as createColGroup, ap as generateDocxRandomId } 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 findParentNodeClosestToPos, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as EditorState, a8 as hasSomeParentWithClass, a9 as isActive, 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 isInTable$1, ao as createColGroup, ap as generateDocxRandomId } from "./converter-BA-KDEVJ.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-DGmEYrh3.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -12751,6 +12751,9 @@ const generateMissingListDefinition = (listNode, editor) => {
|
|
|
12751
12751
|
const migrateParagraphFieldsListsV2 = async (annotationValues = [], editor) => {
|
|
12752
12752
|
const annotations = getAllFieldAnnotations(editor.state);
|
|
12753
12753
|
const newValues = [];
|
|
12754
|
+
if (!annotations.length) {
|
|
12755
|
+
return annotationValues;
|
|
12756
|
+
}
|
|
12754
12757
|
for (const annotation of annotations) {
|
|
12755
12758
|
const type = annotation.node?.attrs?.type;
|
|
12756
12759
|
const matchedAnnotation = annotationValues.find((v) => v.input_id === annotation.node.attrs.fieldId);
|
|
@@ -13605,7 +13608,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13605
13608
|
* @returns {Object | void} Migration results
|
|
13606
13609
|
*/
|
|
13607
13610
|
processCollaborationMigrations() {
|
|
13608
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.
|
|
13611
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.4");
|
|
13609
13612
|
if (!this.options.ydoc) return;
|
|
13610
13613
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
13611
13614
|
let docVersion = metaMap.get("version");
|
|
@@ -13735,7 +13738,8 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13735
13738
|
*/
|
|
13736
13739
|
async migrateParagraphFields(annotationValues = []) {
|
|
13737
13740
|
if (!Array.isArray(annotationValues) || !annotationValues.length) return annotationValues;
|
|
13738
|
-
|
|
13741
|
+
const result = await migrateParagraphFieldsListsV2(annotationValues, this);
|
|
13742
|
+
return result;
|
|
13739
13743
|
}
|
|
13740
13744
|
/**
|
|
13741
13745
|
* Annotate the document with the given annotation values.
|
|
@@ -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-BA-KDEVJ.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BXXmxa6X.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAmCA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AAEF;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH;;;;GAIG;AACH;IA+sBE;;;;;;;;;;;;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;IA8vBD;;;;;OAKG;IACH,2CAFa,OAAO,CAOnB;IAj5CD;;;;OAIG;IACH,qBAHW,aAAa,EAwBvB;IAtID;;;OAGG;IACH,sBAAiB;IAEjB;;;OAGG;IACH,sBAAsB;IAEtB;;;OAGG;IACH,YAAO;IAEP;;;OAGG;IACH,UAAK;IAEL;;;OAGG;IACH,WAFU,OAAO,CAEC;IAQlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsEE;IA0BA,0CAA8C;IAIhD;;;OAGG;IACH,kBAFa,OAAO,CAInB;I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0CAHW,UAAU,EAAE,GACV,OAAO,CAAC,UAAU,EAAE,CAAC,CAMjC;IAED;;;;;;OAMG;IACH,4BAJW,UAAU,EAAE,cACZ,QAAQ,gCACN,IAAI,CAkBhB;IAED;;;;;;;OAOG;IACH,sCAJW,KAAQ,cACR,MAAM,EAAE,GACN,IAAI,CAKhB;IAFC,mBAAoC;IAItC;;;;OAIG;IACH,gBAFa,IAAI,CAKhB;;CAEF;;;;;cA5yDa,MAAM;;;;iBACN,MAAM;;;;;;;;;UAWP,MAAM;;;;WACN,MAAM;;;;WACN,MAAM,GAAG,IAAI;;;;;;;;;;cASZ,WAAW;;;;eACX,MAAM;;;;iBACN,OAAO;;;;mBACP,QAAQ;;;;iBACR,MAAM;;;;cACN,MAAM;;;;WACN,IAAI;;;;YACJ,KAAK,CAAE,IAAI,CAAC;;;;;;;;;;;;;;;;mBAIZ,MAAM;;;;WACN,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;;;;;;;iBAKN,MAAM;;;;;;;;eAEN,OAAO;;;;;;;;;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;uBAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAuBP,OAAO;;;;mBACP,OAAO;;;;WACP,MAAM;;6BAhHS,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listsv2migration.d.ts","sourceRoot":"","sources":["../../../../src/core/migrations/0.14-listsv2/listsv2migration.js"],"names":[],"mappings":"AAkBO,oDANI,MAAM,OAyEhB;AA0MM,qFAHO,OAAO,OAAO,
|
|
1
|
+
{"version":3,"file":"listsv2migration.d.ts","sourceRoot":"","sources":["../../../../src/core/migrations/0.14-listsv2/listsv2migration.js"],"names":[],"mappings":"AAkBO,oDANI,MAAM,OAyEhB;AA0MM,qFAHO,OAAO,OAAO,CAiD3B"}
|
|
@@ -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-BXXmxa6X.js";
|
|
2
|
+
import "./chunks/converter-BA-KDEVJ.js";
|
|
3
|
+
import "./chunks/docx-zipper-DGmEYrh3.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 { ar as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, au as vClickOutside, y as findParentNode, av as getActiveFormatting, an as isInTable, aw as readFromClipboard, ax as handleClipboardPaste, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { a5, d, a2 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, 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 { ar as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, au as vClickOutside, y as findParentNode, av as getActiveFormatting, an as isInTable, aw as readFromClipboard, ax as handleClipboardPaste, a as Plugin } from "./chunks/converter-BA-KDEVJ.js";
|
|
13
|
+
import { a5, d, a2 } from "./chunks/converter-BA-KDEVJ.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, 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-BXXmxa6X.js";
|
|
15
|
+
import { k, C, T, i, l, j } from "./chunks/editor-BXXmxa6X.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-BZNpDE3m.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-DGmEYrh3.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-BhS65olb.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-BLipGLuU.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-BhS65olb.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");
|
|
@@ -24406,13 +24406,13 @@ var __webpack_exports__$1 = globalThis.pdfjsLib = {};
|
|
|
24406
24406
|
"./chunks/empty-lth7LH78.cjs"
|
|
24407
24407
|
)), http = await Promise.resolve().then(() => require(
|
|
24408
24408
|
/*webpackIgnore: true*/
|
|
24409
|
-
"./chunks/index-
|
|
24409
|
+
"./chunks/index-Oz4X1zyg.cjs"
|
|
24410
24410
|
)).then((n) => n.index), https = await Promise.resolve().then(() => require(
|
|
24411
24411
|
/*webpackIgnore: true*/
|
|
24412
|
-
"./chunks/index-
|
|
24412
|
+
"./chunks/index-CZuIe8A3.cjs"
|
|
24413
24413
|
)).then((n) => n.index), url = await Promise.resolve().then(() => require(
|
|
24414
24414
|
/*webpackIgnore: true*/
|
|
24415
|
-
"./chunks/url-
|
|
24415
|
+
"./chunks/url-CRVat8D5.cjs"
|
|
24416
24416
|
)).then((n) => n.url);
|
|
24417
24417
|
let canvas, path2d;
|
|
24418
24418
|
try {
|
|
@@ -47815,7 +47815,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47815
47815
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47816
47816
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47817
47817
|
this.colorIndex = 0;
|
|
47818
|
-
this.version = "0.14.9-next.
|
|
47818
|
+
this.version = "0.14.9-next.4";
|
|
47819
47819
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47820
47820
|
this.superdocId = config.superdocId || uuid.v4();
|
|
47821
47821
|
this.colors = this.config.colors;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as index$1, C as CommentsPluginKey, g as TrackChangesBasePluginKey, E as Editor, m as getRichTextExtensions, e as SuperInput, d as SuperEditor, A as AIWriter, f as SuperToolbar, h as createZip } from "./chunks/super-editor.es-
|
|
2
|
-
import { a, S, i, o } from "./chunks/super-editor.es-
|
|
1
|
+
import { p as index$1, C as CommentsPluginKey, g as TrackChangesBasePluginKey, E as Editor, m as getRichTextExtensions, e as SuperInput, d as SuperEditor, A as AIWriter, f as SuperToolbar, h as createZip } from "./chunks/super-editor.es-BLipGLuU.es.js";
|
|
2
|
+
import { a, S, i, o } from "./chunks/super-editor.es-BLipGLuU.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-lU0o_RlU.es.js";
|
|
4
4
|
import { B as Buffer$2 } from "./chunks/jszip-CYDYUNnI.es.js";
|
|
5
5
|
import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.es.js";
|
|
@@ -24389,13 +24389,13 @@ var __webpack_exports__$1 = globalThis.pdfjsLib = {};
|
|
|
24389
24389
|
"./chunks/empty-smM22Y5N.es.js"
|
|
24390
24390
|
), http = await import(
|
|
24391
24391
|
/*webpackIgnore: true*/
|
|
24392
|
-
"./chunks/index-
|
|
24392
|
+
"./chunks/index-BMwK7kM5.es.js"
|
|
24393
24393
|
).then((n) => n.i), https = await import(
|
|
24394
24394
|
/*webpackIgnore: true*/
|
|
24395
|
-
"./chunks/index-
|
|
24395
|
+
"./chunks/index-MJ-5Yknb.es.js"
|
|
24396
24396
|
).then((n) => n.i), url = await import(
|
|
24397
24397
|
/*webpackIgnore: true*/
|
|
24398
|
-
"./chunks/url-
|
|
24398
|
+
"./chunks/url-Cqg2Hljl.es.js"
|
|
24399
24399
|
).then((n) => n.u);
|
|
24400
24400
|
let canvas, path2d;
|
|
24401
24401
|
try {
|
|
@@ -47798,7 +47798,7 @@ class SuperDoc extends EventEmitter {
|
|
|
47798
47798
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47799
47799
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47800
47800
|
this.colorIndex = 0;
|
|
47801
|
-
this.version = "0.14.9-next.
|
|
47801
|
+
this.version = "0.14.9-next.4";
|
|
47802
47802
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47803
47803
|
this.superdocId = config.superdocId || v4();
|
|
47804
47804
|
this.colors = this.config.colors;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -33754,7 +33754,7 @@
|
|
|
33754
33754
|
return;
|
|
33755
33755
|
}
|
|
33756
33756
|
}
|
|
33757
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.
|
|
33757
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.4") {
|
|
33758
33758
|
const customLocation = "docProps/custom.xml";
|
|
33759
33759
|
if (!docx[customLocation]) {
|
|
33760
33760
|
docx[customLocation] = generateCustomXml();
|
|
@@ -34230,7 +34230,7 @@
|
|
|
34230
34230
|
function generateCustomXml() {
|
|
34231
34231
|
return DEFAULT_CUSTOM_XML;
|
|
34232
34232
|
}
|
|
34233
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.
|
|
34233
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.4") {
|
|
34234
34234
|
return {
|
|
34235
34235
|
type: "element",
|
|
34236
34236
|
name: "property",
|
|
@@ -49491,6 +49491,9 @@
|
|
|
49491
49491
|
const migrateParagraphFieldsListsV2 = async (annotationValues = [], editor) => {
|
|
49492
49492
|
const annotations = getAllFieldAnnotations(editor.state);
|
|
49493
49493
|
const newValues = [];
|
|
49494
|
+
if (!annotations.length) {
|
|
49495
|
+
return annotationValues;
|
|
49496
|
+
}
|
|
49494
49497
|
for (const annotation of annotations) {
|
|
49495
49498
|
const type2 = annotation.node?.attrs?.type;
|
|
49496
49499
|
const matchedAnnotation = annotationValues.find((v) => v.input_id === annotation.node.attrs.fieldId);
|
|
@@ -50317,7 +50320,7 @@
|
|
|
50317
50320
|
* @returns {Object | void} Migration results
|
|
50318
50321
|
*/
|
|
50319
50322
|
processCollaborationMigrations() {
|
|
50320
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.
|
|
50323
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.4");
|
|
50321
50324
|
if (!this.options.ydoc) return;
|
|
50322
50325
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
50323
50326
|
let docVersion = metaMap.get("version");
|
|
@@ -50447,7 +50450,8 @@
|
|
|
50447
50450
|
*/
|
|
50448
50451
|
async migrateParagraphFields(annotationValues = []) {
|
|
50449
50452
|
if (!Array.isArray(annotationValues) || !annotationValues.length) return annotationValues;
|
|
50450
|
-
|
|
50453
|
+
const result = await migrateParagraphFieldsListsV2(annotationValues, this);
|
|
50454
|
+
return result;
|
|
50451
50455
|
}
|
|
50452
50456
|
/**
|
|
50453
50457
|
* Annotate the document with the given annotation values.
|
|
@@ -96088,7 +96092,7 @@ ${style2}
|
|
|
96088
96092
|
this.config.colors = shuffleArray(this.config.colors);
|
|
96089
96093
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
96090
96094
|
this.colorIndex = 0;
|
|
96091
|
-
this.version = "0.14.9-next.
|
|
96095
|
+
this.version = "0.14.9-next.4";
|
|
96092
96096
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
96093
96097
|
this.superdocId = config.superdocId || v4();
|
|
96094
96098
|
this.colors = this.config.colors;
|