@harbour-enterprises/superdoc 0.14.9-next.4 → 0.14.9-next.5
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-BMwK7kM5.es.js → index-BvK-G6B1.es.js} +2 -2
- package/dist/chunks/{index-CZuIe8A3.cjs → index-CCRVYhTn.cjs} +1 -1
- package/dist/chunks/{index-Oz4X1zyg.cjs → index-CgJ5KVh6.cjs} +2 -2
- package/dist/chunks/{index-MJ-5Yknb.es.js → index-oHslWah4.es.js} +1 -1
- package/dist/chunks/{super-editor.es-BLipGLuU.es.js → super-editor.es-BqxptPXi.es.js} +119 -16
- package/dist/chunks/{super-editor.es-BhS65olb.cjs → super-editor.es-CEXGZ_L5.cjs} +119 -16
- package/dist/chunks/{url-CRVat8D5.cjs → url-BG1Z_Z2_.cjs} +1 -1
- package/dist/chunks/{url-Cqg2Hljl.es.js → url-Dvx6wrNT.es.js} +1 -1
- package/dist/chunks/{xml-js-t28wMlyv.cjs → xml-js-BHJlXtfU.cjs} +11 -4
- package/dist/chunks/{xml-js-D78KIQHL.es.js → xml-js-DNISVjNF.es.js} +11 -4
- package/dist/core/SuperDoc.d.ts +1 -1
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BA-KDEVJ.js → converter-BzUe-JDb.js} +134 -26
- package/dist/super-editor/chunks/{docx-zipper-DGmEYrh3.js → docx-zipper-DuNhxEi5.js} +1 -1
- package/dist/super-editor/chunks/{editor-BXXmxa6X.js → editor-D24ByYzx.js} +12 -16
- package/dist/super-editor/chunks/{toolbar-BZNpDE3m.js → toolbar-CCP8GEjh.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +3 -10
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/inputRules/html/html-helpers.d.ts +4 -0
- package/dist/super-editor/core/inputRules/html/html-helpers.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 +7 -7
- package/dist/superdoc.es.js +8 -8
- package/dist/superdoc.umd.js +122 -19
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -22734,6 +22734,113 @@ function createSingleItemList(li, tag, rootNumId, level, editor, NodeInterface)
|
|
|
22734
22734
|
newList.appendChild(newLi);
|
|
22735
22735
|
return newList;
|
|
22736
22736
|
}
|
|
22737
|
+
function unflattenListsInHtml(html) {
|
|
22738
|
+
const parser = new DOMParser();
|
|
22739
|
+
const doc2 = parser.parseFromString(html, "text/html");
|
|
22740
|
+
const allNodes = [...doc2.body.children];
|
|
22741
|
+
const listSequences = [];
|
|
22742
|
+
let currentSequence = null;
|
|
22743
|
+
allNodes.forEach((node2, index) => {
|
|
22744
|
+
const isFlattenList = node2.tagName && (node2.tagName === "OL" || node2.tagName === "UL") && node2.hasAttribute("data-list-id");
|
|
22745
|
+
if (isFlattenList) {
|
|
22746
|
+
const listId = node2.getAttribute("data-list-id");
|
|
22747
|
+
if (currentSequence && currentSequence.id === listId) {
|
|
22748
|
+
currentSequence.lists.push({ element: node2, index });
|
|
22749
|
+
} else {
|
|
22750
|
+
currentSequence = {
|
|
22751
|
+
id: listId,
|
|
22752
|
+
lists: [{ element: node2, index }]
|
|
22753
|
+
};
|
|
22754
|
+
listSequences.push(currentSequence);
|
|
22755
|
+
}
|
|
22756
|
+
} else {
|
|
22757
|
+
currentSequence = null;
|
|
22758
|
+
}
|
|
22759
|
+
});
|
|
22760
|
+
listSequences.reverse().forEach((sequence) => {
|
|
22761
|
+
const sequenceLists = sequence.lists;
|
|
22762
|
+
if (sequenceLists.length === 0) {
|
|
22763
|
+
return;
|
|
22764
|
+
}
|
|
22765
|
+
const items = sequenceLists.map(({ element: list }) => {
|
|
22766
|
+
const liElement = list.querySelector("li");
|
|
22767
|
+
if (!liElement) return null;
|
|
22768
|
+
return {
|
|
22769
|
+
element: liElement,
|
|
22770
|
+
level: parseInt(liElement.getAttribute("data-level") || "0"),
|
|
22771
|
+
numFmt: liElement.getAttribute("data-num-fmt") || "bullet",
|
|
22772
|
+
listLevel: JSON.parse(liElement.getAttribute("data-list-level") || "[1]")
|
|
22773
|
+
};
|
|
22774
|
+
}).filter((item) => item !== null);
|
|
22775
|
+
if (items.length === 0) {
|
|
22776
|
+
return;
|
|
22777
|
+
}
|
|
22778
|
+
const rootList = buildNestedList({ items });
|
|
22779
|
+
const firstOriginalList = sequenceLists[0].element;
|
|
22780
|
+
firstOriginalList?.parentNode?.insertBefore(rootList, firstOriginalList);
|
|
22781
|
+
sequenceLists.forEach(({ element: list }) => {
|
|
22782
|
+
if (list.parentNode) list.parentNode.removeChild(list);
|
|
22783
|
+
});
|
|
22784
|
+
});
|
|
22785
|
+
return doc2.body.innerHTML;
|
|
22786
|
+
}
|
|
22787
|
+
function buildNestedList({ items }) {
|
|
22788
|
+
if (!items.length) {
|
|
22789
|
+
return null;
|
|
22790
|
+
}
|
|
22791
|
+
const [rootItem] = items;
|
|
22792
|
+
const doc2 = rootItem.element.ownerDocument;
|
|
22793
|
+
const isOrderedList = rootItem.numFmt && !["bullet", "none"].includes(rootItem.numFmt);
|
|
22794
|
+
const rootList = doc2.createElement(isOrderedList ? "ol" : "ul");
|
|
22795
|
+
if (isOrderedList && rootItem.listLevel?.[0] && rootItem.listLevel[0] > 1) {
|
|
22796
|
+
rootList.setAttribute("start", rootItem.listLevel[0]);
|
|
22797
|
+
}
|
|
22798
|
+
const lastLevelItem = /* @__PURE__ */ new Map();
|
|
22799
|
+
items.forEach((item) => {
|
|
22800
|
+
const { element: liElement, level, numFmt, listLevel } = item;
|
|
22801
|
+
const cleanLi = cleanListItem(liElement.cloneNode(true));
|
|
22802
|
+
if (level === 0) {
|
|
22803
|
+
rootList.append(cleanLi);
|
|
22804
|
+
lastLevelItem.set(0, cleanLi);
|
|
22805
|
+
} else {
|
|
22806
|
+
const parentLi = lastLevelItem.get(level - 1);
|
|
22807
|
+
if (!parentLi) {
|
|
22808
|
+
rootList.append(cleanLi);
|
|
22809
|
+
lastLevelItem.set(level, cleanLi);
|
|
22810
|
+
return;
|
|
22811
|
+
}
|
|
22812
|
+
let nestedList = null;
|
|
22813
|
+
[...parentLi.children].forEach((child) => {
|
|
22814
|
+
if (child.tagName && (child.tagName === "OL" || child.tagName === "UL")) {
|
|
22815
|
+
nestedList = child;
|
|
22816
|
+
}
|
|
22817
|
+
});
|
|
22818
|
+
if (!nestedList) {
|
|
22819
|
+
const listType = numFmt && !["bullet", "none"].includes(numFmt) ? "ol" : "ul";
|
|
22820
|
+
nestedList = doc2.createElement(listType);
|
|
22821
|
+
parentLi.append(nestedList);
|
|
22822
|
+
}
|
|
22823
|
+
nestedList.append(cleanLi);
|
|
22824
|
+
lastLevelItem.set(level, cleanLi);
|
|
22825
|
+
}
|
|
22826
|
+
});
|
|
22827
|
+
return rootList;
|
|
22828
|
+
}
|
|
22829
|
+
function cleanListItem(listItem) {
|
|
22830
|
+
const attrs = [
|
|
22831
|
+
"data-num-id",
|
|
22832
|
+
"data-level",
|
|
22833
|
+
"data-num-fmt",
|
|
22834
|
+
"data-lvl-text",
|
|
22835
|
+
"data-list-level",
|
|
22836
|
+
"data-marker-type",
|
|
22837
|
+
"aria-label"
|
|
22838
|
+
];
|
|
22839
|
+
attrs.forEach((attr) => {
|
|
22840
|
+
listItem.removeAttribute(attr);
|
|
22841
|
+
});
|
|
22842
|
+
return listItem;
|
|
22843
|
+
}
|
|
22737
22844
|
class InputRule {
|
|
22738
22845
|
constructor(config) {
|
|
22739
22846
|
__publicField(this, "match");
|
|
@@ -26378,7 +26485,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
26378
26485
|
return;
|
|
26379
26486
|
}
|
|
26380
26487
|
}
|
|
26381
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.9-next.
|
|
26488
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.14.9-next.5") {
|
|
26382
26489
|
const customLocation = "docProps/custom.xml";
|
|
26383
26490
|
if (!docx[customLocation]) {
|
|
26384
26491
|
docx[customLocation] = generateCustomXml();
|
|
@@ -26857,7 +26964,7 @@ function storeSuperdocVersion(docx) {
|
|
|
26857
26964
|
function generateCustomXml() {
|
|
26858
26965
|
return DEFAULT_CUSTOM_XML;
|
|
26859
26966
|
}
|
|
26860
|
-
function generateSuperdocVersion(pid = 2, version = "0.14.9-next.
|
|
26967
|
+
function generateSuperdocVersion(pid = 2, version = "0.14.9-next.5") {
|
|
26861
26968
|
return {
|
|
26862
26969
|
type: "element",
|
|
26863
26970
|
name: "property",
|
|
@@ -26920,30 +27027,31 @@ export {
|
|
|
26920
27027
|
EditorState as a7,
|
|
26921
27028
|
hasSomeParentWithClass as a8,
|
|
26922
27029
|
isActive as a9,
|
|
26923
|
-
|
|
26924
|
-
|
|
26925
|
-
|
|
26926
|
-
|
|
26927
|
-
|
|
26928
|
-
|
|
26929
|
-
|
|
26930
|
-
|
|
26931
|
-
|
|
26932
|
-
|
|
26933
|
-
|
|
26934
|
-
|
|
26935
|
-
|
|
26936
|
-
|
|
26937
|
-
|
|
26938
|
-
|
|
26939
|
-
|
|
26940
|
-
|
|
26941
|
-
|
|
26942
|
-
|
|
26943
|
-
|
|
26944
|
-
|
|
26945
|
-
|
|
26946
|
-
|
|
27030
|
+
unflattenListsInHtml as aa,
|
|
27031
|
+
parseSizeUnit as ab,
|
|
27032
|
+
minMax as ac,
|
|
27033
|
+
getLineHeightValueString as ad,
|
|
27034
|
+
InputRule as ae,
|
|
27035
|
+
kebabCase as af,
|
|
27036
|
+
generateOrderedListIndex as ag,
|
|
27037
|
+
getListItemStyleDefinitions as ah,
|
|
27038
|
+
docxNumberigHelpers as ai,
|
|
27039
|
+
parseIndentElement as aj,
|
|
27040
|
+
combineIndents as ak,
|
|
27041
|
+
getColStyleDeclaration as al,
|
|
27042
|
+
SelectionRange as am,
|
|
27043
|
+
Transform as an,
|
|
27044
|
+
isInTable as ao,
|
|
27045
|
+
createColGroup as ap,
|
|
27046
|
+
generateDocxRandomId as aq,
|
|
27047
|
+
commonjsGlobal as ar,
|
|
27048
|
+
getDefaultExportFromCjs$1 as as,
|
|
27049
|
+
getContentTypesFromXml as at,
|
|
27050
|
+
xmljs as au,
|
|
27051
|
+
vClickOutside as av,
|
|
27052
|
+
getActiveFormatting as aw,
|
|
27053
|
+
readFromClipboard as ax,
|
|
27054
|
+
handleClipboardPaste as ay,
|
|
26947
27055
|
getMarkType as b,
|
|
26948
27056
|
callOrGet as c,
|
|
26949
27057
|
getMarksFromSelection as d,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as process$1,
|
|
1
|
+
import { H as process$1, ar as commonjsGlobal, I as Buffer, as as getDefaultExportFromCjs, at as getContentTypesFromXml, au as xmljs } from "./converter-BzUe-JDb.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
|
|
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-BzUe-JDb.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-DuNhxEi5.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -13408,9 +13408,6 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13408
13408
|
const attributes = typeof nameOrAttributes === "string" ? attributesOrUndefined : nameOrAttributes;
|
|
13409
13409
|
return isActive(this.state, name, attributes);
|
|
13410
13410
|
}
|
|
13411
|
-
/**
|
|
13412
|
-
* Get the document as JSON.
|
|
13413
|
-
*/
|
|
13414
13411
|
/**
|
|
13415
13412
|
* Get the editor content as JSON
|
|
13416
13413
|
* @returns {Object} Editor content as JSON
|
|
@@ -13418,18 +13415,20 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13418
13415
|
getJSON() {
|
|
13419
13416
|
return this.state.doc.toJSON();
|
|
13420
13417
|
}
|
|
13421
|
-
/**
|
|
13422
|
-
* Get HTML string of the document
|
|
13423
|
-
*/
|
|
13424
13418
|
/**
|
|
13425
13419
|
* Get the editor content as HTML
|
|
13426
13420
|
* @returns {string} Editor content as HTML
|
|
13427
13421
|
*/
|
|
13428
|
-
getHTML() {
|
|
13429
|
-
const
|
|
13422
|
+
getHTML({ unflattenLists = false } = {}) {
|
|
13423
|
+
const tempDocument = document.implementation.createHTMLDocument();
|
|
13424
|
+
const container = tempDocument.createElement("div");
|
|
13430
13425
|
const fragment = DOMSerializer.fromSchema(this.schema).serializeFragment(this.state.doc.content);
|
|
13431
|
-
|
|
13432
|
-
|
|
13426
|
+
container.appendChild(fragment);
|
|
13427
|
+
let html = container.innerHTML;
|
|
13428
|
+
if (unflattenLists) {
|
|
13429
|
+
html = unflattenListsInHtml(html);
|
|
13430
|
+
}
|
|
13431
|
+
return html;
|
|
13433
13432
|
}
|
|
13434
13433
|
/**
|
|
13435
13434
|
* Create a child editor linked to this editor.
|
|
@@ -13441,9 +13440,6 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13441
13440
|
createChildEditor(options) {
|
|
13442
13441
|
return createLinkedChildEditor(this, options);
|
|
13443
13442
|
}
|
|
13444
|
-
/**
|
|
13445
|
-
* Get page styles
|
|
13446
|
-
*/
|
|
13447
13443
|
/**
|
|
13448
13444
|
* Get page styles
|
|
13449
13445
|
* @returns {Object} Page styles
|
|
@@ -13608,7 +13604,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13608
13604
|
* @returns {Object | void} Migration results
|
|
13609
13605
|
*/
|
|
13610
13606
|
processCollaborationMigrations() {
|
|
13611
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.
|
|
13607
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.5");
|
|
13612
13608
|
if (!this.options.ydoc) return;
|
|
13613
13609
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
13614
13610
|
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-BzUe-JDb.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-D24ByYzx.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -390,22 +390,18 @@ export class Editor extends EventEmitter {
|
|
|
390
390
|
* editor.isActive({ textAlign: 'center' })
|
|
391
391
|
*/
|
|
392
392
|
isActive(nameOrAttributes: string | any, attributesOrUndefined?: any): boolean;
|
|
393
|
-
/**
|
|
394
|
-
* Get the document as JSON.
|
|
395
|
-
*/
|
|
396
393
|
/**
|
|
397
394
|
* Get the editor content as JSON
|
|
398
395
|
* @returns {Object} Editor content as JSON
|
|
399
396
|
*/
|
|
400
397
|
getJSON(): any;
|
|
401
|
-
/**
|
|
402
|
-
* Get HTML string of the document
|
|
403
|
-
*/
|
|
404
398
|
/**
|
|
405
399
|
* Get the editor content as HTML
|
|
406
400
|
* @returns {string} Editor content as HTML
|
|
407
401
|
*/
|
|
408
|
-
getHTML(
|
|
402
|
+
getHTML({ unflattenLists }?: {
|
|
403
|
+
unflattenLists?: boolean;
|
|
404
|
+
}): string;
|
|
409
405
|
/**
|
|
410
406
|
* Create a child editor linked to this editor.
|
|
411
407
|
* This is useful for creating header/footer editors that are linked to the main editor.
|
|
@@ -414,9 +410,6 @@ export class Editor extends EventEmitter {
|
|
|
414
410
|
* @returns {Editor} A new child editor instance linked to this editor
|
|
415
411
|
*/
|
|
416
412
|
createChildEditor(options: EditorOptions): Editor;
|
|
417
|
-
/**
|
|
418
|
-
* Get page styles
|
|
419
|
-
*/
|
|
420
413
|
/**
|
|
421
414
|
* Get page styles
|
|
422
415
|
* @returns {Object} Page styles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"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"}
|
|
@@ -4,4 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export function flattenListsInHtml(html: any, editor: any): any;
|
|
6
6
|
export function flattenSingleList(listElem: any, editor: any, level: number, parentNumId: any, NodeInterface: any): any[];
|
|
7
|
+
/**
|
|
8
|
+
* Converts flatten lists back to normal list structure.
|
|
9
|
+
*/
|
|
10
|
+
export function unflattenListsInHtml(html: any): string;
|
|
7
11
|
//# sourceMappingURL=html-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-helpers.d.ts","sourceRoot":"","sources":["../../../../src/core/inputRules/html/html-helpers.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,gEAqBC;AAmKD,0HAgBC"}
|
|
1
|
+
{"version":3,"file":"html-helpers.d.ts","sourceRoot":"","sources":["../../../../src/core/inputRules/html/html-helpers.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,gEAqBC;AAmKD,0HAgBC;AAED;;GAEG;AACH,wDAoEC"}
|
|
@@ -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-D24ByYzx.js";
|
|
2
|
+
import "./chunks/converter-BzUe-JDb.js";
|
|
3
|
+
import "./chunks/docx-zipper-DuNhxEi5.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 {
|
|
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-BzUe-JDb.js";
|
|
13
|
+
import { a5, d, a2 } from "./chunks/converter-BzUe-JDb.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-D24ByYzx.js";
|
|
15
|
+
import { k, C, T, i, l, j } from "./chunks/editor-D24ByYzx.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-CCP8GEjh.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-DuNhxEi5.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-CEXGZ_L5.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-BqxptPXi.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-CEXGZ_L5.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-CgJ5KVh6.cjs"
|
|
24410
24410
|
)).then((n) => n.index), https = await Promise.resolve().then(() => require(
|
|
24411
24411
|
/*webpackIgnore: true*/
|
|
24412
|
-
"./chunks/index-
|
|
24412
|
+
"./chunks/index-CCRVYhTn.cjs"
|
|
24413
24413
|
)).then((n) => n.index), url = await Promise.resolve().then(() => require(
|
|
24414
24414
|
/*webpackIgnore: true*/
|
|
24415
|
-
"./chunks/url-
|
|
24415
|
+
"./chunks/url-BG1Z_Z2_.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.5";
|
|
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;
|
|
@@ -48227,7 +48227,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
48227
48227
|
* Get the HTML content of all editors
|
|
48228
48228
|
* @returns {Array<string>} The HTML content of all editors
|
|
48229
48229
|
*/
|
|
48230
|
-
getHTML() {
|
|
48230
|
+
getHTML(options = {}) {
|
|
48231
48231
|
const editors = [];
|
|
48232
48232
|
this.superdocStore.documents.forEach((doc) => {
|
|
48233
48233
|
const editor = doc.getEditor();
|
|
@@ -48235,7 +48235,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
48235
48235
|
editors.push(editor);
|
|
48236
48236
|
}
|
|
48237
48237
|
});
|
|
48238
|
-
return editors.map((editor) => editor.getHTML());
|
|
48238
|
+
return editors.map((editor) => editor.getHTML(options));
|
|
48239
48239
|
}
|
|
48240
48240
|
/**
|
|
48241
48241
|
* Lock the current superdoc
|
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-BqxptPXi.es.js";
|
|
2
|
+
import { a, S, i, o } from "./chunks/super-editor.es-BqxptPXi.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-BvK-G6B1.es.js"
|
|
24393
24393
|
).then((n) => n.i), https = await import(
|
|
24394
24394
|
/*webpackIgnore: true*/
|
|
24395
|
-
"./chunks/index-
|
|
24395
|
+
"./chunks/index-oHslWah4.es.js"
|
|
24396
24396
|
).then((n) => n.i), url = await import(
|
|
24397
24397
|
/*webpackIgnore: true*/
|
|
24398
|
-
"./chunks/url-
|
|
24398
|
+
"./chunks/url-Dvx6wrNT.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.5";
|
|
47802
47802
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47803
47803
|
this.superdocId = config.superdocId || v4();
|
|
47804
47804
|
this.colors = this.config.colors;
|
|
@@ -48210,7 +48210,7 @@ class SuperDoc extends EventEmitter {
|
|
|
48210
48210
|
* Get the HTML content of all editors
|
|
48211
48211
|
* @returns {Array<string>} The HTML content of all editors
|
|
48212
48212
|
*/
|
|
48213
|
-
getHTML() {
|
|
48213
|
+
getHTML(options = {}) {
|
|
48214
48214
|
const editors = [];
|
|
48215
48215
|
this.superdocStore.documents.forEach((doc) => {
|
|
48216
48216
|
const editor = doc.getEditor();
|
|
@@ -48218,7 +48218,7 @@ class SuperDoc extends EventEmitter {
|
|
|
48218
48218
|
editors.push(editor);
|
|
48219
48219
|
}
|
|
48220
48220
|
});
|
|
48221
|
-
return editors.map((editor) => editor.getHTML());
|
|
48221
|
+
return editors.map((editor) => editor.getHTML(options));
|
|
48222
48222
|
}
|
|
48223
48223
|
/**
|
|
48224
48224
|
* Lock the current superdoc
|