@harbour-enterprises/superdoc 0.14.16 → 0.14.17
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-BqH3eQTm.es.js → index-BAysJGB4.es.js} +1 -1
- package/dist/chunks/index-CXnGrIkh.es.js +2956 -0
- package/dist/chunks/{index-DhQaJbc2.cjs → index-CsCJAG9Q.cjs} +1 -1
- package/dist/chunks/{index-DzFLdJgk.es.js → index-D40l9uDK.es.js} +1 -1
- package/dist/chunks/index-Drl2YGAZ.cjs +2955 -0
- package/dist/chunks/{index-B5xS6OKK.cjs → index-FmrzO61m.cjs} +1 -1
- package/dist/chunks/{super-editor.es-BMEPPjoP.cjs → super-editor.es-CD1J7J1S.cjs} +27 -20
- package/dist/chunks/{super-editor.es-DgSN0Pjh.es.js → super-editor.es-DZNEocN0.es.js} +27 -20
- package/dist/chunks/{url-CNqDAz7z.es.js → url-BGS7DYX5.es.js} +1 -1
- package/dist/chunks/{url-7PXI9_kJ.cjs → url-CXyMtOuA.cjs} +1 -1
- package/dist/chunks/{xml-js-Bn0K9fTK.es.js → xml-js-BC-eqb4d.es.js} +24 -2257
- package/dist/chunks/{xml-js-B_rfwhrZ.cjs → xml-js-D24l3ypz.cjs} +20 -2253
- package/dist/style.css +8 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-fWl4mnxk.js → converter-Cb4ybypu.js} +12 -6
- package/dist/super-editor/chunks/{docx-zipper-BD70NG3a.js → docx-zipper-Da0EppdO.js} +1 -1
- package/dist/super-editor/chunks/{editor-BJCoXUyT.js → editor-BsKovpPN.js} +17 -16
- package/dist/super-editor/chunks/{toolbar-CfZV_bo8.js → toolbar-CHJXE6J5.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/commands/splitListItem.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/imageImporter.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/extensions/list-item/list-item.d.ts.map +1 -1
- package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +8 -0
- 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.css +8 -0
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +28 -21
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-D612mw4O.es.js +0 -727
- package/dist/chunks/index-ibuaxW1X.cjs +0 -726
package/dist/style.css
CHANGED
|
@@ -1114,6 +1114,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1114
1114
|
.pagination-section-header {
|
|
1115
1115
|
cursor: default;
|
|
1116
1116
|
}
|
|
1117
|
+
/* To not inherit styles from the wrapper paragraph */
|
|
1118
|
+
.pagination-section-header p {
|
|
1119
|
+
text-align: initial;
|
|
1120
|
+
}
|
|
1117
1121
|
.pagination-section-footer {
|
|
1118
1122
|
position: relative;
|
|
1119
1123
|
width: 100%;
|
|
@@ -1123,6 +1127,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1123
1127
|
justify-content: flex-end;
|
|
1124
1128
|
cursor: default;
|
|
1125
1129
|
}
|
|
1130
|
+
/* To not inherit styles from the wrapper paragraph */
|
|
1131
|
+
.pagination-section-footer p {
|
|
1132
|
+
text-align: initial;
|
|
1133
|
+
}
|
|
1126
1134
|
.pagination-break-wrapper {
|
|
1127
1135
|
width: 100%;
|
|
1128
1136
|
margin: 0;
|
|
@@ -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-Cb4ybypu.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-BsKovpPN.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 = {}) {
|
|
@@ -7492,7 +7492,6 @@ function require_stream_duplex() {
|
|
|
7492
7492
|
}
|
|
7493
7493
|
var string_decoder = {};
|
|
7494
7494
|
var safeBuffer = { exports: {} };
|
|
7495
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
7496
7495
|
var hasRequiredSafeBuffer;
|
|
7497
7496
|
function requireSafeBuffer() {
|
|
7498
7497
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
@@ -7514,7 +7513,6 @@ function requireSafeBuffer() {
|
|
|
7514
7513
|
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
7515
7514
|
return Buffer3(arg, encodingOrOffset, length);
|
|
7516
7515
|
}
|
|
7517
|
-
SafeBuffer.prototype = Object.create(Buffer3.prototype);
|
|
7518
7516
|
copyProps(Buffer3, SafeBuffer);
|
|
7519
7517
|
SafeBuffer.from = function(arg, encodingOrOffset, length) {
|
|
7520
7518
|
if (typeof arg === "number") {
|
|
@@ -26377,7 +26375,7 @@ class DocxExporter {
|
|
|
26377
26375
|
}
|
|
26378
26376
|
}
|
|
26379
26377
|
_DocxExporter_instances = new WeakSet();
|
|
26380
|
-
generate_xml_as_list_fn = function(data, debug =
|
|
26378
|
+
generate_xml_as_list_fn = function(data, debug = false) {
|
|
26381
26379
|
const json = JSON.parse(JSON.stringify(data));
|
|
26382
26380
|
const declaration = this.converter.declaration.attributes;
|
|
26383
26381
|
const xmlTag = `<?xml${Object.entries(declaration).map(([key, value]) => ` ${key}="${value}"`).join("")}?>`;
|
|
@@ -27014,6 +27012,7 @@ function handleImageImport(node2, currentFileName, params) {
|
|
|
27014
27012
|
const relationships = rels.elements.find((el) => el.name === "Relationships");
|
|
27015
27013
|
const { elements } = relationships;
|
|
27016
27014
|
const rel = elements.find((el) => el.attributes["Id"] === rEmbed);
|
|
27015
|
+
if (!rel) return null;
|
|
27017
27016
|
const { attributes: relAttributes } = rel;
|
|
27018
27017
|
const path = `word/${relAttributes["Target"]}`;
|
|
27019
27018
|
return {
|
|
@@ -28238,11 +28237,18 @@ function getNumberingDefinitions(docx) {
|
|
|
28238
28237
|
const abstractId = Number(el.attributes["w:abstractNumId"]);
|
|
28239
28238
|
abstractDefinitions[abstractId] = el;
|
|
28240
28239
|
});
|
|
28241
|
-
|
|
28240
|
+
let importListDefs = {};
|
|
28242
28241
|
definitions.forEach((el) => {
|
|
28243
28242
|
const numId = Number(el.attributes["w:numId"]);
|
|
28244
28243
|
importListDefs[numId] = el;
|
|
28245
28244
|
});
|
|
28245
|
+
const listDefsEntries = Object.entries(importListDefs);
|
|
28246
|
+
const foundByDurableId = listDefsEntries.filter(([_id, def]) => def.attributes?.["w16cid:durableId"] === "485517411");
|
|
28247
|
+
if (foundByDurableId.length > 1) {
|
|
28248
|
+
importListDefs = Object.fromEntries(
|
|
28249
|
+
listDefsEntries.filter(([_id, def]) => def.attributes?.["w16cid:durableId"] !== "485517411")
|
|
28250
|
+
);
|
|
28251
|
+
}
|
|
28246
28252
|
return {
|
|
28247
28253
|
abstracts: abstractDefinitions,
|
|
28248
28254
|
definitions: importListDefs
|
|
@@ -28329,7 +28335,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
28329
28335
|
return;
|
|
28330
28336
|
}
|
|
28331
28337
|
}
|
|
28332
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.
|
|
28338
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.17") {
|
|
28333
28339
|
const customLocation = "docProps/custom.xml";
|
|
28334
28340
|
if (!docx[customLocation]) {
|
|
28335
28341
|
docx[customLocation] = generateCustomXml();
|
|
@@ -28810,7 +28816,7 @@ function storeSuperdocVersion(docx) {
|
|
|
28810
28816
|
function generateCustomXml() {
|
|
28811
28817
|
return DEFAULT_CUSTOM_XML;
|
|
28812
28818
|
}
|
|
28813
|
-
function generateSuperdocVersion(pid = 2, version = "0.14.
|
|
28819
|
+
function generateSuperdocVersion(pid = 2, version = "0.14.17") {
|
|
28814
28820
|
return {
|
|
28815
28821
|
type: "element",
|
|
28816
28822
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as process$1, ar as commonjsGlobal, I as Buffer, as as getDefaultExportFromCjs, at as getContentTypesFromXml, au as xmljs } from "./converter-
|
|
1
|
+
import { H as process$1, ar as commonjsGlobal, I as Buffer, as as getDefaultExportFromCjs, at as getContentTypesFromXml, au as xmljs } from "./converter-Cb4ybypu.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 unflattenListsInHtml, ab as parseSizeUnit, ac as minMax, ad as getLineHeightValueString, ae as InputRule, af as kebabCase, ag as generateOrderedListIndex, ah as getListItemStyleDefinitions, ai as docxNumberigHelpers, aj as parseIndentElement, ak as combineIndents, al as getColStyleDeclaration, am as SelectionRange, an as Transform, ao as isInTable$1, ap as createColGroup, aq 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 unflattenListsInHtml, ab as parseSizeUnit, ac as minMax, ad as getLineHeightValueString, ae as InputRule, af as kebabCase, ag as generateOrderedListIndex, ah as getListItemStyleDefinitions, ai as docxNumberigHelpers, aj as parseIndentElement, ak as combineIndents, al as getColStyleDeclaration, am as SelectionRange, an as Transform, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId } from "./converter-Cb4ybypu.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-Da0EppdO.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -2388,6 +2388,7 @@ const splitListItem = () => (props) => {
|
|
|
2388
2388
|
const paraOffset = $from.parentOffset;
|
|
2389
2389
|
const beforeCursor = paragraphNode.content.cut(0, paraOffset);
|
|
2390
2390
|
const afterCursor = paragraphNode.content.cut(paraOffset);
|
|
2391
|
+
let firstList, secondList;
|
|
2391
2392
|
const listItemHasMultipleParagraphs = listItemNode.childCount > 1;
|
|
2392
2393
|
if (listItemHasMultipleParagraphs) {
|
|
2393
2394
|
const paragraphIndex = $from.index(-1);
|
|
@@ -2425,19 +2426,19 @@ const splitListItem = () => (props) => {
|
|
|
2425
2426
|
{ ...listItemNode.attrs },
|
|
2426
2427
|
Fragment.from(firstListContent)
|
|
2427
2428
|
);
|
|
2428
|
-
|
|
2429
|
+
firstList = editor.schema.nodes.orderedList.createAndFill(parentListNode.attrs, Fragment.from(firstListItem));
|
|
2429
2430
|
const secondListItem = editor.schema.nodes.listItem.create(
|
|
2430
2431
|
{ ...listItemNode.attrs },
|
|
2431
2432
|
Fragment.from(secondListContent)
|
|
2432
2433
|
);
|
|
2433
|
-
|
|
2434
|
+
secondList = editor.schema.nodes.orderedList.createAndFill(parentListNode.attrs, Fragment.from(secondListItem));
|
|
2434
2435
|
} else {
|
|
2435
2436
|
const firstParagraph = editor.schema.nodes.paragraph.create(paragraphNode.attrs, beforeCursor);
|
|
2436
2437
|
const firstListItem = editor.schema.nodes.listItem.create({ ...listItemNode.attrs }, firstParagraph);
|
|
2437
|
-
|
|
2438
|
+
firstList = editor.schema.nodes.orderedList.createAndFill(parentListNode.attrs, Fragment.from(firstListItem));
|
|
2438
2439
|
const secondParagraph = editor.schema.nodes.paragraph.create(paragraphNode.attrs, afterCursor);
|
|
2439
2440
|
const secondListItem = editor.schema.nodes.listItem.create({ ...listItemNode.attrs }, secondParagraph);
|
|
2440
|
-
|
|
2441
|
+
secondList = editor.schema.nodes.orderedList.createAndFill(parentListNode.attrs, Fragment.from(secondListItem));
|
|
2441
2442
|
}
|
|
2442
2443
|
if (!firstList || !secondList) return false;
|
|
2443
2444
|
const listStart = matchedParentList.pos;
|
|
@@ -3146,7 +3147,7 @@ function posFromCaret(view, node, offset2, coords) {
|
|
|
3146
3147
|
return null;
|
|
3147
3148
|
if (desc.dom.nodeType == 1 && (desc.node.isBlock && desc.parent || !desc.contentDOM) && // Ignore elements with zero-size bounding rectangles
|
|
3148
3149
|
((rect = desc.dom.getBoundingClientRect()).width || rect.height)) {
|
|
3149
|
-
if (desc.node.isBlock && desc.parent) {
|
|
3150
|
+
if (desc.node.isBlock && desc.parent && !/^T(R|BODY|HEAD|FOOT)$/.test(desc.dom.nodeName)) {
|
|
3150
3151
|
if (!sawBlock && rect.left > coords.left || rect.top > coords.top)
|
|
3151
3152
|
outsideBlock = desc.posBefore;
|
|
3152
3153
|
else if (!sawBlock && rect.right < coords.left || rect.bottom < coords.top)
|
|
@@ -7174,7 +7175,7 @@ function ruleFromNode(dom) {
|
|
|
7174
7175
|
}
|
|
7175
7176
|
return null;
|
|
7176
7177
|
}
|
|
7177
|
-
const isInline = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
7178
|
+
const isInline = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
7178
7179
|
function readDOMChange(view, from2, to, typeOver, addedNodes) {
|
|
7179
7180
|
let compositionID = view.input.compositionPendingChanges || (view.composing ? view.input.compositionID : 0);
|
|
7180
7181
|
view.input.compositionPendingChanges = 0;
|
|
@@ -10954,7 +10955,6 @@ const createHeaderFooterEditor = ({
|
|
|
10954
10955
|
});
|
|
10955
10956
|
if (appendToBody) document.body.appendChild(editorContainer);
|
|
10956
10957
|
const headerFooterEditor = new Editor({
|
|
10957
|
-
documentMode: editor.options.documentMode,
|
|
10958
10958
|
role: editor.options.role,
|
|
10959
10959
|
loadFromSchema: true,
|
|
10960
10960
|
mode: "docx",
|
|
@@ -12716,7 +12716,7 @@ const shouldMigrateList = (listItem) => {
|
|
|
12716
12716
|
if (firstChild && firstChild.type.name === "listItem") {
|
|
12717
12717
|
const { attrs } = firstChild;
|
|
12718
12718
|
const { level, listNumberingType } = attrs || {};
|
|
12719
|
-
if (typeof level ===
|
|
12719
|
+
if (typeof level === "undefined" || !listNumberingType) {
|
|
12720
12720
|
return true;
|
|
12721
12721
|
}
|
|
12722
12722
|
const childContent = firstChild?.content?.content;
|
|
@@ -13599,9 +13599,9 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13599
13599
|
* @returns {boolean} Whether migrations are needed
|
|
13600
13600
|
*/
|
|
13601
13601
|
static checkIfMigrationsNeeded(data) {
|
|
13602
|
-
|
|
13603
|
-
const migrations = getNecessaryMigrations(
|
|
13604
|
-
console.debug("[checkVersionMigrations] Migrations needed:",
|
|
13602
|
+
const dataVersion = version || "initial";
|
|
13603
|
+
const migrations = getNecessaryMigrations(dataVersion) || [];
|
|
13604
|
+
console.debug("[checkVersionMigrations] Migrations needed:", dataVersion, migrations.length);
|
|
13605
13605
|
return migrations.length > 0;
|
|
13606
13606
|
}
|
|
13607
13607
|
/**
|
|
@@ -13609,7 +13609,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13609
13609
|
* @returns {Object | void} Migration results
|
|
13610
13610
|
*/
|
|
13611
13611
|
processCollaborationMigrations() {
|
|
13612
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.
|
|
13612
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.17");
|
|
13613
13613
|
if (!this.options.ydoc) return;
|
|
13614
13614
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
13615
13615
|
let docVersion = metaMap.get("version");
|
|
@@ -14000,6 +14000,7 @@ createConverter_fn = function() {
|
|
|
14000
14000
|
* @returns {void}
|
|
14001
14001
|
*/
|
|
14002
14002
|
initMedia_fn = function() {
|
|
14003
|
+
if (this.options.isChildEditor) return;
|
|
14003
14004
|
if (!this.options.ydoc) return this.storage.image.media = this.options.mediaFiles;
|
|
14004
14005
|
const mediaMap = this.options.ydoc.getMap("media");
|
|
14005
14006
|
if (this.options.isNewFile) {
|
|
@@ -14149,6 +14150,7 @@ onCollaborationReady_fn = function({ editor, ydoc }) {
|
|
|
14149
14150
|
if (!this.options.isNewFile) {
|
|
14150
14151
|
this.initPagination();
|
|
14151
14152
|
__privateMethod(this, _Editor_instances, initComments_fn).call(this);
|
|
14153
|
+
updateYdocDocxData(this);
|
|
14152
14154
|
}
|
|
14153
14155
|
};
|
|
14154
14156
|
/**
|
|
@@ -16299,7 +16301,6 @@ const ListItem = Node$1.create({
|
|
|
16299
16301
|
},
|
|
16300
16302
|
styleId: {
|
|
16301
16303
|
rendered: false,
|
|
16302
|
-
keepOnSplit: true,
|
|
16303
16304
|
keepOnSplit: true
|
|
16304
16305
|
},
|
|
16305
16306
|
customFormat: {
|
|
@@ -20799,7 +20800,7 @@ const FieldAnnotation = Node$1.create({
|
|
|
20799
20800
|
...node.attrs,
|
|
20800
20801
|
// reset displayLabel to default.
|
|
20801
20802
|
displayLabel,
|
|
20802
|
-
// reset attrs
|
|
20803
|
+
// reset attrs for specific types.
|
|
20803
20804
|
imageSrc: null,
|
|
20804
20805
|
rawHtml: null,
|
|
20805
20806
|
linkUrl: null
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { 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-Cb4ybypu.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BsKovpPN.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":"AAuCA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH;;;;GAIG;AACH;
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitListItem.d.ts","sourceRoot":"","sources":["../../../src/core/commands/splitListItem.js"],"names":[],"mappings":"AAgBO,kCAA6B,UAAK,
|
|
1
|
+
{"version":3,"file":"splitListItem.d.ts","sourceRoot":"","sources":["../../../src/core/commands/splitListItem.js"],"names":[],"mappings":"AAgBO,kCAA6B,UAAK,aA0IxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/imageImporter.js"],"names":[],"mappings":"AAwCA,
|
|
1
|
+
{"version":3,"file":"imageImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/imageImporter.js"],"names":[],"mappings":"AAwCA,qFAiHC;AAvJD;;GAEG;AACH,oCAiCE;AAmLF;;GAEG;AACH,2CAGE"}
|
|
@@ -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-BsKovpPN.js";
|
|
2
|
+
import "./chunks/converter-Cb4ybypu.js";
|
|
3
|
+
import "./chunks/docx-zipper-Da0EppdO.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/extensions/list-item/list-item.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/extensions/list-item/list-item.js"],"names":[],"mappings":"AAKA,2BAiPG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination-helpers.js"],"names":[],"mappings":"AAKA,iDAAqE;AAQ9D,2CAHI,WAAW,OAuCrB;AA8BM;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination-helpers.js"],"names":[],"mappings":"AAKA,iDAAqE;AAQ9D,2CAHI,WAAW,OAuCrB;AA8BM;;;;;;;;;QA4EN;AAEM,6EAeN;AAEM;;;;;SAsBN;AAEM;;;8DAoBN;0BA1NyB,mBAAmB"}
|
|
@@ -831,6 +831,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
831
831
|
.pagination-section-header {
|
|
832
832
|
cursor: default;
|
|
833
833
|
}
|
|
834
|
+
/* To not inherit styles from the wrapper paragraph */
|
|
835
|
+
.pagination-section-header p {
|
|
836
|
+
text-align: initial;
|
|
837
|
+
}
|
|
834
838
|
.pagination-section-footer {
|
|
835
839
|
position: relative;
|
|
836
840
|
width: 100%;
|
|
@@ -840,6 +844,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
840
844
|
justify-content: flex-end;
|
|
841
845
|
cursor: default;
|
|
842
846
|
}
|
|
847
|
+
/* To not inherit styles from the wrapper paragraph */
|
|
848
|
+
.pagination-section-footer p {
|
|
849
|
+
text-align: initial;
|
|
850
|
+
}
|
|
843
851
|
.pagination-break-wrapper {
|
|
844
852
|
width: 100%;
|
|
845
853
|
margin: 0;
|
|
@@ -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 as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, av as vClickOutside, y as findParentNode, aw as getActiveFormatting, ao as isInTable, ax as readFromClipboard, ay 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 { as as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, av as vClickOutside, y as findParentNode, aw as getActiveFormatting, ao as isInTable, ax as readFromClipboard, ay as handleClipboardPaste, a as Plugin } from "./chunks/converter-Cb4ybypu.js";
|
|
13
|
+
import { a5, d, a2 } from "./chunks/converter-Cb4ybypu.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-BsKovpPN.js";
|
|
15
|
+
import { k, C, T, i, l, j } from "./chunks/editor-BsKovpPN.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, d as plusIconSvg, e as trashIconSvg, 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, l as linkIconSvg, a as tableIconSvg, b as scissorsIconSvg, c as copyIconSvg, p as pasteIconSvg, d as plusIconSvg, e as trashIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, N as NSkeleton } from "./chunks/toolbar-CHJXE6J5.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-Da0EppdO.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-CD1J7J1S.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, 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-DZNEocN0.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-CD1J7J1S.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");
|
|
@@ -24419,13 +24419,13 @@ var __webpack_exports__$1 = globalThis.pdfjsLib = {};
|
|
|
24419
24419
|
"./chunks/empty-lth7LH78.cjs"
|
|
24420
24420
|
)), http = await Promise.resolve().then(() => require(
|
|
24421
24421
|
/*webpackIgnore: true*/
|
|
24422
|
-
"./chunks/index-
|
|
24422
|
+
"./chunks/index-FmrzO61m.cjs"
|
|
24423
24423
|
)).then((n) => n.index), https = await Promise.resolve().then(() => require(
|
|
24424
24424
|
/*webpackIgnore: true*/
|
|
24425
|
-
"./chunks/index-
|
|
24425
|
+
"./chunks/index-CsCJAG9Q.cjs"
|
|
24426
24426
|
)).then((n) => n.index), url = await Promise.resolve().then(() => require(
|
|
24427
24427
|
/*webpackIgnore: true*/
|
|
24428
|
-
"./chunks/url-
|
|
24428
|
+
"./chunks/url-CXyMtOuA.cjs"
|
|
24429
24429
|
)).then((n) => n.url);
|
|
24430
24430
|
let canvas, path2d;
|
|
24431
24431
|
try {
|
|
@@ -47818,7 +47818,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47818
47818
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47819
47819
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47820
47820
|
this.colorIndex = 0;
|
|
47821
|
-
this.version = "0.14.
|
|
47821
|
+
this.version = "0.14.17";
|
|
47822
47822
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47823
47823
|
this.superdocId = config.superdocId || uuid.v4();
|
|
47824
47824
|
this.colors = this.config.colors;
|
package/dist/superdoc.css
CHANGED
|
@@ -1114,6 +1114,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1114
1114
|
.pagination-section-header {
|
|
1115
1115
|
cursor: default;
|
|
1116
1116
|
}
|
|
1117
|
+
/* To not inherit styles from the wrapper paragraph */
|
|
1118
|
+
.pagination-section-header p {
|
|
1119
|
+
text-align: initial;
|
|
1120
|
+
}
|
|
1117
1121
|
.pagination-section-footer {
|
|
1118
1122
|
position: relative;
|
|
1119
1123
|
width: 100%;
|
|
@@ -1123,6 +1127,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1123
1127
|
justify-content: flex-end;
|
|
1124
1128
|
cursor: default;
|
|
1125
1129
|
}
|
|
1130
|
+
/* To not inherit styles from the wrapper paragraph */
|
|
1131
|
+
.pagination-section-footer p {
|
|
1132
|
+
text-align: initial;
|
|
1133
|
+
}
|
|
1126
1134
|
.pagination-break-wrapper {
|
|
1127
1135
|
width: 100%;
|
|
1128
1136
|
margin: 0;
|
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-DZNEocN0.es.js";
|
|
2
|
+
import { a, S, i, o } from "./chunks/super-editor.es-DZNEocN0.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";
|
|
@@ -24402,13 +24402,13 @@ var __webpack_exports__$1 = globalThis.pdfjsLib = {};
|
|
|
24402
24402
|
"./chunks/empty-smM22Y5N.es.js"
|
|
24403
24403
|
), http = await import(
|
|
24404
24404
|
/*webpackIgnore: true*/
|
|
24405
|
-
"./chunks/index-
|
|
24405
|
+
"./chunks/index-BAysJGB4.es.js"
|
|
24406
24406
|
).then((n) => n.i), https = await import(
|
|
24407
24407
|
/*webpackIgnore: true*/
|
|
24408
|
-
"./chunks/index-
|
|
24408
|
+
"./chunks/index-D40l9uDK.es.js"
|
|
24409
24409
|
).then((n) => n.i), url = await import(
|
|
24410
24410
|
/*webpackIgnore: true*/
|
|
24411
|
-
"./chunks/url-
|
|
24411
|
+
"./chunks/url-BGS7DYX5.es.js"
|
|
24412
24412
|
).then((n) => n.u);
|
|
24413
24413
|
let canvas, path2d;
|
|
24414
24414
|
try {
|
|
@@ -47801,7 +47801,7 @@ class SuperDoc extends EventEmitter {
|
|
|
47801
47801
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47802
47802
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47803
47803
|
this.colorIndex = 0;
|
|
47804
|
-
this.version = "0.14.
|
|
47804
|
+
this.version = "0.14.17";
|
|
47805
47805
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47806
47806
|
this.superdocId = config.superdocId || v4();
|
|
47807
47807
|
this.colors = this.config.colors;
|