@harbour-enterprises/superdoc 0.19.0-next.9 → 0.19.0
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/{PdfViewer-Dt_ISEZh.es.js → PdfViewer-D0lSSW0x.es.js} +1 -1
- package/dist/chunks/{PdfViewer-Br7tqQjO.cjs → PdfViewer-DJb0akn3.cjs} +1 -1
- package/dist/chunks/{index-BijsfKdg.es.js → index-BZOsYVVo.es.js} +2 -3
- package/dist/chunks/{index-DroNZHhs.cjs → index-CeLW_JxI.cjs} +2 -3
- package/dist/chunks/{super-editor.es-DT9O7SCK.es.js → super-editor.es-B1rC4GHL.es.js} +13874 -14082
- package/dist/chunks/{super-editor.es-D7MlgnUc.cjs → super-editor.es-FNewwzSy.cjs} +13874 -14082
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +6 -6
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DPiYwzDY.js → converter-CFVPKGqT.js} +12921 -12996
- package/dist/super-editor/chunks/{docx-zipper-CS-lB2JG.js → docx-zipper-CGdYHGDa.js} +1 -1
- package/dist/super-editor/chunks/{editor-BqdYfCl0.js → editor-DrhZRXX9.js} +99 -227
- package/dist/super-editor/chunks/{toolbar-Dr4JWMZ7.js → toolbar-CKQ-GucL.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/src/core/Editor.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/exporter.d.ts +1 -19
- package/dist/super-editor/src/core/super-converter/v2/exporter/documentSectionExporter.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v2/exporter/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/annotationImporter.d.ts +9 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/docPartGalleryImporter.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/docPartObjImporter.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +8 -8
- package/dist/super-editor/style.css +6 -6
- package/dist/super-editor/super-editor.es.js +8 -13
- 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 +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +13997 -14206
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/core/inputRules/html/transform-copied-lists.d.ts +0 -3
- package/dist/super-editor/src/core/super-converter/v2/importer/sdtNodeImporter.d.ts +0 -8
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-annotation-node.d.ts +0 -22
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +0 -9
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +0 -80
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +0 -6
|
@@ -10,7 +10,7 @@ export const TranslatorTypes: Readonly<{
|
|
|
10
10
|
* @typedef {keyof typeof TranslatorTypes} TranslatorTypeKey
|
|
11
11
|
* @typedef {typeof TranslatorTypes[TranslatorTypeKey]} TranslatorType
|
|
12
12
|
* @typedef {string} XmlNodeName
|
|
13
|
-
* @typedef {string
|
|
13
|
+
* @typedef {string} SuperDocNodeOrKeyName
|
|
14
14
|
*/
|
|
15
15
|
/**
|
|
16
16
|
* @typedef {Object} AttrConfig
|
|
@@ -46,7 +46,7 @@ export const TranslatorTypes: Readonly<{
|
|
|
46
46
|
/**
|
|
47
47
|
* @typedef {Object} NodeTranslatorConfig
|
|
48
48
|
* @property {string} xmlName - The name of the node in OOXML
|
|
49
|
-
* @property {
|
|
49
|
+
* @property {string} sdNodeOrKeyName - The name of the node in SuperDoc
|
|
50
50
|
* @property {TranslatorType} [type="node"] - The type of the translator.
|
|
51
51
|
* @property {NodeTranslatorEncodeFn} encode - The function to encode the data.
|
|
52
52
|
* @property {NodeTranslatorDecodeFn} [decode] - The function to decode the data.
|
|
@@ -66,7 +66,7 @@ export class NodeTranslator {
|
|
|
66
66
|
static from(config: NodeTranslatorConfig): NodeTranslator;
|
|
67
67
|
/**
|
|
68
68
|
* @param {string} xmlName
|
|
69
|
-
* @param {
|
|
69
|
+
* @param {string} sdNodeOrKeyName
|
|
70
70
|
* @param {NodeTranslatorEncodeFn} encode
|
|
71
71
|
* @param {NodeTranslatorDecodeFn} decode
|
|
72
72
|
* @param {number} [priority]
|
|
@@ -74,11 +74,11 @@ export class NodeTranslator {
|
|
|
74
74
|
* @param {MatchesDecodeFn} [matchesDecode]
|
|
75
75
|
* @param {AttrConfig[]} [attributes]
|
|
76
76
|
*/
|
|
77
|
-
constructor(xmlName: string, sdNodeOrKeyName:
|
|
77
|
+
constructor(xmlName: string, sdNodeOrKeyName: string, encode: NodeTranslatorEncodeFn, decode: NodeTranslatorDecodeFn, priority?: number, matchesEncode?: MatchesEncodeFn, matchesDecode?: MatchesDecodeFn, attributes?: AttrConfig[]);
|
|
78
78
|
/** @type {string} */
|
|
79
79
|
xmlName: string;
|
|
80
|
-
/** @type {
|
|
81
|
-
sdNodeOrKeyName:
|
|
80
|
+
/** @type {string} */
|
|
81
|
+
sdNodeOrKeyName: string;
|
|
82
82
|
/** @type {number} */
|
|
83
83
|
priority: number;
|
|
84
84
|
/** @type {NodeTranslatorEncodeFn} */
|
|
@@ -124,7 +124,7 @@ export class NodeTranslator {
|
|
|
124
124
|
export type TranslatorTypeKey = keyof typeof TranslatorTypes;
|
|
125
125
|
export type TranslatorType = (typeof TranslatorTypes)[TranslatorTypeKey];
|
|
126
126
|
export type XmlNodeName = string;
|
|
127
|
-
export type SuperDocNodeOrKeyName = string
|
|
127
|
+
export type SuperDocNodeOrKeyName = string;
|
|
128
128
|
export type AttrConfig = {
|
|
129
129
|
/**
|
|
130
130
|
* - The name of the attribute in OOXML
|
|
@@ -173,7 +173,7 @@ export type NodeTranslatorConfig = {
|
|
|
173
173
|
/**
|
|
174
174
|
* - The name of the node in SuperDoc
|
|
175
175
|
*/
|
|
176
|
-
sdNodeOrKeyName:
|
|
176
|
+
sdNodeOrKeyName: string;
|
|
177
177
|
/**
|
|
178
178
|
* - The type of the translator.
|
|
179
179
|
*/
|
|
@@ -1798,10 +1798,10 @@ on the right if it is inside shape textbox.
|
|
|
1798
1798
|
min-height: 40px;
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
|
-
.editor-element[data-v-
|
|
1801
|
+
.editor-element[data-v-8b2f8c17] {
|
|
1802
1802
|
position: relative;
|
|
1803
1803
|
}
|
|
1804
|
-
.super-editor-container[data-v-
|
|
1804
|
+
.super-editor-container[data-v-8b2f8c17] {
|
|
1805
1805
|
width: auto;
|
|
1806
1806
|
height: auto;
|
|
1807
1807
|
min-width: 8in;
|
|
@@ -1810,13 +1810,13 @@ on the right if it is inside shape textbox.
|
|
|
1810
1810
|
display: flex;
|
|
1811
1811
|
flex-direction: column;
|
|
1812
1812
|
}
|
|
1813
|
-
.ruler[data-v-
|
|
1813
|
+
.ruler[data-v-8b2f8c17] {
|
|
1814
1814
|
margin-bottom: 2px;
|
|
1815
1815
|
}
|
|
1816
|
-
.super-editor[data-v-
|
|
1816
|
+
.super-editor[data-v-8b2f8c17] {
|
|
1817
1817
|
color: initial;
|
|
1818
1818
|
}
|
|
1819
|
-
.placeholder-editor[data-v-
|
|
1819
|
+
.placeholder-editor[data-v-8b2f8c17] {
|
|
1820
1820
|
position: absolute;
|
|
1821
1821
|
top: 0;
|
|
1822
1822
|
left: 0;
|
|
@@ -1828,7 +1828,7 @@ on the right if it is inside shape textbox.
|
|
|
1828
1828
|
background-color: white;
|
|
1829
1829
|
box-sizing: border-box;
|
|
1830
1830
|
}
|
|
1831
|
-
.placeholder-title[data-v-
|
|
1831
|
+
.placeholder-title[data-v-8b2f8c17] {
|
|
1832
1832
|
display: flex;
|
|
1833
1833
|
justify-content: center;
|
|
1834
1834
|
margin-bottom: 40px;
|
|
@@ -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 { ax as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aA as vClickOutside, H as findParentNode, aB as getActiveFormatting, ar as isInTable, aC as readFromClipboard, aD as handleClipboardPaste, aE as getFileObject, aF as translator, aG as translator$1, aH as translator$2, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { aI, a5, i, a2 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { k, C, l, T, i as i2, m, j } from "./chunks/editor-
|
|
12
|
+
import { ax as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aA as vClickOutside, H as findParentNode, aB as getActiveFormatting, ar as isInTable, aC as readFromClipboard, aD as handleClipboardPaste, aE as getFileObject, aF as translator, aG as translator$1, aH as translator$2, a as Plugin } from "./chunks/converter-CFVPKGqT.js";
|
|
13
|
+
import { aI, a5, i, a2 } from "./chunks/converter-CFVPKGqT.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-DrhZRXX9.js";
|
|
15
|
+
import { k, C, l, T, i as i2, m, j } from "./chunks/editor-DrhZRXX9.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-CKQ-GucL.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-CGdYHGDa.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -3003,9 +3003,7 @@ class SuperToolbar extends EventEmitter {
|
|
|
3003
3003
|
} else if (typeof command === "function") {
|
|
3004
3004
|
command({ item, argument, option });
|
|
3005
3005
|
} else {
|
|
3006
|
-
|
|
3007
|
-
this.emit("exception", { error, editor: this.activeEditor });
|
|
3008
|
-
throw error;
|
|
3006
|
+
throw new Error(`[super-toolbar 🎨] Command not found: ${command}`);
|
|
3009
3007
|
}
|
|
3010
3008
|
this.updateToolbarState();
|
|
3011
3009
|
}
|
|
@@ -4305,9 +4303,6 @@ const _sfc_main$1 = {
|
|
|
4305
4303
|
return { content: docx, media, mediaFiles, fonts };
|
|
4306
4304
|
} catch (err) {
|
|
4307
4305
|
console.debug("Error loading new file data:", err);
|
|
4308
|
-
if (typeof props.options.onException === "function") {
|
|
4309
|
-
props.options.onException({ error: err, editor: null });
|
|
4310
|
-
}
|
|
4311
4306
|
}
|
|
4312
4307
|
};
|
|
4313
4308
|
const initializeData = async () => {
|
|
@@ -4510,7 +4505,7 @@ const _sfc_main$1 = {
|
|
|
4510
4505
|
};
|
|
4511
4506
|
}
|
|
4512
4507
|
};
|
|
4513
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
4508
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8b2f8c17"]]);
|
|
4514
4509
|
const _hoisted_1 = ["innerHTML"];
|
|
4515
4510
|
const _sfc_main = {
|
|
4516
4511
|
__name: "SuperInput",
|
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-FNewwzSy.cjs");
|
|
4
4
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-B1rC4GHL.es.js";
|
|
2
2
|
import "./chunks/vue-CXxsqYcP.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-FNewwzSy.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-CeLW_JxI.cjs");
|
|
5
5
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
6
6
|
require("./chunks/jszip-b7l8QkfH.cjs");
|
|
7
7
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-B1rC4GHL.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-BZOsYVVo.es.js";
|
|
3
3
|
import "./chunks/vue-CXxsqYcP.es.js";
|
|
4
4
|
import "./chunks/jszip-B8KIZSNe.es.js";
|
|
5
5
|
import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";
|