@harbour-enterprises/superdoc 0.8.10 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{super-editor.es-CnpejCPC.js → super-editor.es-DIeHC3Si.js} +484 -168
- package/dist/chunks/super-editor.es-DIeHC3Si.js.map +1 -0
- package/dist/super-editor/chunks/{converter-B5SRaBp5.js → converter-CVSaF15S.js} +28 -27
- package/dist/super-editor/chunks/converter-CVSaF15S.js.map +1 -0
- package/dist/super-editor/chunks/{docx-zipper-fdMcchlI.js → docx-zipper-BHwY_rz6.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-fdMcchlI.js.map → docx-zipper-BHwY_rz6.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-nlt5JeOJ.js → editor-H6Apbtdi.js} +481 -165
- package/dist/super-editor/chunks/editor-H6Apbtdi.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-COfngBDY.js → toolbar-D9ELD8Tt.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-COfngBDY.js.map → toolbar-D9ELD8Tt.js.map} +1 -1
- package/dist/super-editor/converter.es.js +2 -2
- package/dist/super-editor/core/Editor.d.ts +1 -0
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/ExtensionService.d.ts.map +1 -1
- package/dist/super-editor/core/InputRule.d.ts +11 -0
- package/dist/super-editor/core/InputRule.d.ts.map +1 -0
- package/dist/super-editor/core/commands/index.d.ts +1 -0
- package/dist/super-editor/core/commands/undoInputRule.d.ts +5 -0
- package/dist/super-editor/core/commands/undoInputRule.d.ts.map +1 -0
- package/dist/super-editor/core/extensions/keymap.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/getHTMLFromFragment.d.ts +2 -0
- package/dist/super-editor/core/helpers/getHTMLFromFragment.d.ts.map +1 -0
- package/dist/super-editor/core/helpers/getTextContentFromNodes.d.ts +2 -0
- package/dist/super-editor/core/helpers/getTextContentFromNodes.d.ts.map +1 -0
- package/dist/super-editor/core/helpers/isExtentionRulesEnabled.d.ts +2 -0
- package/dist/super-editor/core/helpers/isExtentionRulesEnabled.d.ts.map +1 -0
- package/dist/super-editor/core/inputRules/wrappingInputRule.d.ts +9 -0
- package/dist/super-editor/core/inputRules/wrappingInputRule.d.ts.map +1 -0
- package/dist/super-editor/core/utilities/isRegExp.d.ts +2 -0
- package/dist/super-editor/core/utilities/isRegExp.d.ts.map +1 -0
- package/dist/super-editor/core/utilities/objectIncludes.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/bullet-list/bullet-list.d.ts.map +1 -1
- package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +7 -7
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +495 -179
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-CnpejCPC.js.map +0 -1
- package/dist/super-editor/chunks/converter-B5SRaBp5.js.map +0 -1
- package/dist/super-editor/chunks/editor-nlt5JeOJ.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAwBA;;GAEG;AACH;
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAwBA;;GAEG;AACH;IAudE;;;OAGG;IACH,oDAQC;IAED,6CAGC;IAED,8DAGC;IA+gBD,sDAKC;IAv7BD,0BAkBC;IAzFD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyDE;IA6GF,+BAEC;IADC,aAAsB;IAgBxB;;OAEG;IACH,iBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,uBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,aAEC;IAED;;OAEG;IACH,WAEC;IAED,yCA8BC;IAED;;;OAGG;IACH,oCAYC;IA0BD;;;OAGG;IACH,+BAmBC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IAgCG,eAAuC;IAqI3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAcC;IAED;;;;OAIG;IACH,uCA+CC;IAED,qCAkDC;IA2HD;;;;OAIG;IACH,oCAEC;IAED;;;;;;OAMG;IACH,qEAKC;IAED;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,kBAMC;IAED;;OAEG;IACH,qBAEC;IAED;;;;;;OAMG;IACH,iCAHG;QAAuB,WAAW;KAClC,GAAU,IAAI,CAiBhB;IA6CD;;OAEG;IACH;;;qBA2DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCAwBC;;CACF;6BAtlC4B,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionService.d.ts","sourceRoot":"","sources":["../../src/core/ExtensionService.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExtensionService.d.ts","sourceRoot":"","sources":["../../src/core/ExtensionService.js"],"names":[],"mappings":"AAUA;;GAEG;AACH;IAoBE;;;OAGG;IACH,gDAEC;IAED;;;;OAIG;IACH,mDAGC;IAED;;;;OAIG;IACH,4CASC;IAzCD,+DAOC;IAjBD,YAAO;IAEP,2DAAO;IAEP,gBAAW;IAEX,0BAAwB;IAExB,uBAAqB;IA6CrB;;;OAGG;IACH,wBAEC;IAED;;;OAGG;IACH,mBAsBC;IAED;;;;OAIG;IACH,qBAuDC;IAED;;;OAGG;IACH;;MAoCC;;CA6DF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class InputRule {
|
|
2
|
+
constructor(config: any);
|
|
3
|
+
match: any;
|
|
4
|
+
handler: any;
|
|
5
|
+
}
|
|
6
|
+
export function inputRulesPlugin({ editor, rules }: {
|
|
7
|
+
editor: any;
|
|
8
|
+
rules: any;
|
|
9
|
+
}): Plugin<any>;
|
|
10
|
+
import { Plugin } from 'prosemirror-state';
|
|
11
|
+
//# sourceMappingURL=InputRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputRule.d.ts","sourceRoot":"","sources":["../../src/core/InputRule.js"],"names":[],"mappings":"AAQA;IAIE,yBAGC;IAND,WAAM;IACN,aAAQ;CAMT;AAgHM;;;gBAqFN;uBArNiC,mBAAmB"}
|
|
@@ -29,6 +29,7 @@ export * from "./selectTextblockStart.js";
|
|
|
29
29
|
export * from "./selectTextblockEnd.js";
|
|
30
30
|
export * from "./insertContent.js";
|
|
31
31
|
export * from "./insertContentAt.js";
|
|
32
|
+
export * from "./undoInputRule.js";
|
|
32
33
|
export * from "./wrapInList.js";
|
|
33
34
|
export * from "./toggleList.js";
|
|
34
35
|
export * from "./splitListItem.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undoInputRule.d.ts","sourceRoot":"","sources":["../../../src/core/commands/undoInputRule.js"],"names":[],"mappings":"AAAO,kCAA6B;;;CAAmB,aA+BtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keymap.d.ts","sourceRoot":"","sources":["../../../src/core/extensions/keymap.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH,+
|
|
1
|
+
{"version":3,"file":"keymap.d.ts","sourceRoot":"","sources":["../../../src/core/extensions/keymap.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH,+BAkEG;0BA1EuB,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHTMLFromFragment.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/getHTMLFromFragment.js"],"names":[],"mappings":"AAEA,wEASC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTextContentFromNodes.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/getTextContentFromNodes.js"],"names":[],"mappings":"AAMO,+EAuBN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isExtentionRulesEnabled.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/isExtentionRulesEnabled.js"],"names":[],"mappings":"AAAA,2EAYC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build an input rule for automatically wrapping a textblock when a
|
|
3
|
+
* given string is typed. When using a regular expresion you’ll
|
|
4
|
+
* probably want the regexp to start with `^`, so that the pattern can
|
|
5
|
+
* only occur at the start of a textblock.
|
|
6
|
+
*/
|
|
7
|
+
export function wrappingInputRule(config: any): InputRule;
|
|
8
|
+
import { InputRule } from '../InputRule.js';
|
|
9
|
+
//# sourceMappingURL=wrappingInputRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrappingInputRule.d.ts","sourceRoot":"","sources":["../../../src/core/inputRules/wrappingInputRule.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,0DAgDC;0BAzDyB,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isRegExp.d.ts","sourceRoot":"","sources":["../../../src/core/utilities/isRegExp.js"],"names":[],"mappings":"AAAO,8CAEN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectIncludes.d.ts","sourceRoot":"","sources":["../../../src/core/utilities/objectIncludes.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"objectIncludes.d.ts","sourceRoot":"","sources":["../../../src/core/utilities/objectIncludes.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH;;YAQC"}
|
|
@@ -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-H6Apbtdi.js";
|
|
2
|
+
import "./chunks/converter-CVSaF15S.js";
|
|
3
|
+
import "./chunks/docx-zipper-BHwY_rz6.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bullet-list.d.ts","sourceRoot":"","sources":["../../../src/extensions/bullet-list/bullet-list.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bullet-list.d.ts","sourceRoot":"","sources":["../../../src/extensions/bullet-list/bullet-list.js"],"names":[],"mappings":"AASA,6BAiFG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../../src/extensions/ordered-list/ordered-list.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../../src/extensions/ordered-list/ordered-list.js"],"names":[],"mappings":"AAYA,8BA6OG"}
|
|
@@ -9,13 +9,13 @@ 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 _interceptedCommands, _SuperToolbar_instances, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, j as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
13
|
-
import { C, T, l, n, k, m } from "./chunks/editor-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, j as Extension, A as Attribute, N as Node } from "./chunks/editor-H6Apbtdi.js";
|
|
13
|
+
import { C, T, l, n, k, m } from "./chunks/editor-H6Apbtdi.js";
|
|
14
|
+
import { Q as getDefaultExportFromCjs, v as v4, T as TextSelection, V as vClickOutside, a as Plugin } from "./chunks/converter-CVSaF15S.js";
|
|
15
|
+
import { E } from "./chunks/converter-CVSaF15S.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
18
|
-
import { D } from "./chunks/docx-zipper-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-D9ELD8Tt.js";
|
|
18
|
+
import { D } from "./chunks/docx-zipper-BHwY_rz6.js";
|
|
19
19
|
import { createZip } from "./file-zipper.es.js";
|
|
20
20
|
var eventemitter3 = { exports: {} };
|
|
21
21
|
(function(module) {
|
|
@@ -2746,7 +2746,7 @@ export {
|
|
|
2746
2746
|
D as DocxZipper,
|
|
2747
2747
|
Editor,
|
|
2748
2748
|
Extensions,
|
|
2749
|
-
|
|
2749
|
+
E as SuperConverter,
|
|
2750
2750
|
SuperEditor,
|
|
2751
2751
|
SuperInput,
|
|
2752
2752
|
SuperToolbar,
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-
|
|
1
|
+
import { _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-DIeHC3Si.js";
|
|
2
2
|
import "./chunks/vue-BjMDYCe1.js";
|
|
3
3
|
export {
|
|
4
4
|
_ as BasicUpload,
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as index$1, C as CommentsPluginKey, e as TrackChangesBasePluginKey, E as Editor, k as getRichTextExtensions, c as SuperInput, b as SuperEditor, d as SuperToolbar, f as createZip } from "./chunks/super-editor.es-
|
|
2
|
-
import { S, i, m } from "./chunks/super-editor.es-
|
|
1
|
+
import { n as index$1, C as CommentsPluginKey, e as TrackChangesBasePluginKey, E as Editor, k as getRichTextExtensions, c as SuperInput, b as SuperEditor, d as SuperToolbar, f as createZip } from "./chunks/super-editor.es-DIeHC3Si.js";
|
|
2
|
+
import { S, i, m } from "./chunks/super-editor.es-DIeHC3Si.js";
|
|
3
3
|
import { Y as effectScope, r as ref, Z as markRaw, p as process$1, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, C as toRef, i as inject, q as getCurrentInstance, l as watch, x as unref, a1 as hasInjectionContext, L as reactive, R as nextTick, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, N as shallowRef, M as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, U as onActivated, s as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, G as withDirectives, B as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, E as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, f as createBaseVNode, A as normalizeStyle, e as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-BjMDYCe1.js";
|
|
4
4
|
import { B as Buffer$2 } from "./chunks/jszip-Df6uKve1.js";
|
|
5
5
|
import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.js";
|
|
@@ -45872,7 +45872,7 @@ class SuperDoc extends EventEmitter {
|
|
|
45872
45872
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45873
45873
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45874
45874
|
this.colorIndex = 0;
|
|
45875
|
-
this.version = "0.8.
|
|
45875
|
+
this.version = "0.8.11";
|
|
45876
45876
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45877
45877
|
this.superdocId = config.superdocId || v4();
|
|
45878
45878
|
this.colors = this.config.colors;
|