@harbour-enterprises/superdoc 0.12.3 → 0.12.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-kAA2CRkl.es.js → index-BTkgQgI7.es.js} +1 -1
- package/dist/chunks/{index-71EH9929.cjs → index-C6SLw2ph.cjs} +1 -1
- package/dist/chunks/{index-DJ2cGnRl.cjs → index-CbUTRvRk.cjs} +1 -1
- package/dist/chunks/{index-DRzufgTV.es.js → index-kWwSELc2.es.js} +2 -2
- package/dist/chunks/{super-editor.es-Di7L9sdJ.cjs → super-editor.es-Bqp77LuU.cjs} +57 -57
- package/dist/chunks/{super-editor.es-DXcOd-nD.es.js → super-editor.es-uFc1kYwr.es.js} +3571 -3547
- package/dist/chunks/{url-BcsmChMq.es.js → url-C29KYeaj.es.js} +1 -1
- package/dist/chunks/{url-CHPOWQEe.cjs → url-DRGmEUtI.cjs} +1 -1
- package/dist/chunks/xml-js-CMQ3QRee.cjs +10 -0
- package/dist/chunks/{xml-js-CiXFCQBs.es.js → xml-js-CgHhGhcJ.es.js} +355 -366
- package/dist/style.css +28 -28
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BJtjyWXx.js → converter-Cid1Ewvn.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BVv8YIej.js → docx-zipper-CldOGPZ9.js} +1 -1
- package/dist/super-editor/chunks/{editor-C4x0LU8R.js → editor-DfsXlTev.js} +1635 -1611
- package/dist/super-editor/chunks/{toolbar-C3dMNXWg.js → toolbar-1h7-NG3P.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +16 -0
- package/dist/super-editor/core/Editor.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/collaboration/collaboration.d.ts +3 -0
- package/dist/super-editor/extensions/collaboration/collaboration.d.ts.map +1 -1
- 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 +18 -18
- package/dist/superdoc.es.js +295 -294
- package/dist/superdoc.umd.js +1941 -1916
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-jS9zLULc.cjs +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as A, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
|
|
2
|
-
import { x as rn } from "./converter-
|
|
3
|
-
import { _ as mt, g as kt } from "./editor-
|
|
2
|
+
import { x as rn } from "./converter-Cid1Ewvn.js";
|
|
3
|
+
import { _ as mt, g as kt } from "./editor-DfsXlTev.js";
|
|
4
4
|
const O0 = (e, t) => {
|
|
5
5
|
let n = e.replace(/[^0-9.]/g, "");
|
|
6
6
|
return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
|
|
@@ -70,6 +70,8 @@
|
|
|
70
70
|
* @property {Function} [onException] - Called when an exception occurs
|
|
71
71
|
* @property {Function} [handleImageUpload] - Handler for image uploads
|
|
72
72
|
* @property {Object} [telemetry] - Telemetry configuration
|
|
73
|
+
* @property {boolean} [htmlOverride] - Whether to override content with provided html
|
|
74
|
+
* @property {string} [html] - HTML content to initialize the editor with
|
|
73
75
|
*/
|
|
74
76
|
/**
|
|
75
77
|
* Main editor class that manages document state, extensions, and user interactions
|
|
@@ -177,6 +179,7 @@ export class Editor extends EventEmitter {
|
|
|
177
179
|
isInternal: boolean;
|
|
178
180
|
externalExtensions: any[];
|
|
179
181
|
numbering: {};
|
|
182
|
+
htmlOverride: boolean;
|
|
180
183
|
onBeforeCreate: () => any;
|
|
181
184
|
onCreate: () => any;
|
|
182
185
|
onUpdate: () => any;
|
|
@@ -263,6 +266,11 @@ export class Editor extends EventEmitter {
|
|
|
263
266
|
* @param {string} documentMode - The document mode ('editing', 'viewing', 'suggesting')
|
|
264
267
|
*/
|
|
265
268
|
setDocumentMode(documentMode: string): void;
|
|
269
|
+
/**
|
|
270
|
+
* Export the yjs binary from the current state.
|
|
271
|
+
* @returns {Uint8Array} The exported yjs binary
|
|
272
|
+
*/
|
|
273
|
+
generateCollaborationUpdate(): Uint8Array;
|
|
266
274
|
/**
|
|
267
275
|
* Initialize data for collaborative editing
|
|
268
276
|
* If we are replacing data and have a valid provider, listen for synced event
|
|
@@ -680,6 +688,14 @@ export type EditorOptions = {
|
|
|
680
688
|
* - Telemetry configuration
|
|
681
689
|
*/
|
|
682
690
|
telemetry?: any;
|
|
691
|
+
/**
|
|
692
|
+
* - Whether to override content with provided html
|
|
693
|
+
*/
|
|
694
|
+
htmlOverride?: boolean;
|
|
695
|
+
/**
|
|
696
|
+
* - HTML content to initialize the editor with
|
|
697
|
+
*/
|
|
698
|
+
html?: string;
|
|
683
699
|
};
|
|
684
700
|
import { EventEmitter } from './EventEmitter.js';
|
|
685
701
|
//# sourceMappingURL=Editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":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MAAM;;;;;;;;;UAWP,MAAM;;;;WACN,MAAM;;;;WACN,MAAM,GAAG,IAAI;;;;;;cAIZ,WAAW;;;;eACX,MAAM;;;;iBACN,OAAO;;;;mBACP,QAAQ;;;;iBACR,MAAM;;;;cACN,MAAM;;;;WACN,IAAI;;;;YACJ,KAAK,CAAE,IAAI,CAAC;;;;;;;;;;;;;;;;mBAIZ,MAAM;;;;WACN,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;;;;;;;iBAKN,MAAM;;;;;;;;eAEN,OAAO;;;;;;;;;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAwBP,OAAO;;;;WACP,MAAM;;6BAhGS,mBAAmB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as m } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E as m } from "./chunks/editor-DfsXlTev.js";
|
|
2
|
+
import "./chunks/converter-Cid1Ewvn.js";
|
|
3
|
+
import "./chunks/docx-zipper-CldOGPZ9.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export const CollaborationPluginKey: PluginKey<any>;
|
|
2
2
|
export const Collaboration: any;
|
|
3
|
+
export function createSyncPlugin(ydoc: any, editor: any): any[];
|
|
4
|
+
export function initializeMetaMap(ydoc: any, editor: any): void;
|
|
5
|
+
export function generateCollaborationData(editor: any): Uint8Array<ArrayBufferLike>;
|
|
3
6
|
import { PluginKey } from 'prosemirror-state';
|
|
4
7
|
//# sourceMappingURL=collaboration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../../../src/extensions/collaboration/collaboration.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../../../src/extensions/collaboration/collaboration.js"],"names":[],"mappings":"AAKA,oDAAqE;AAErE,gCA8EG;AAEI,gEAQN;AAEM,gEAIN;AAiDM,oFAIN;0BAzJyB,mBAAmB"}
|
|
@@ -6,14 +6,14 @@ var Ct = (e, s, t) => s in e ? wt(e, s, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var ze = (e, s, t) => Ct(e, typeof s != "symbol" ? s + "" : s, t), Ge = (e, s, t) => s.has(e) || qe("Cannot " + t);
|
|
7
7
|
var Te = (e, s, t) => (Ge(e, s, "read from private field"), t ? t.call(e) : s.get(e)), Re = (e, s, t) => s.has(e) ? qe("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t);
|
|
8
8
|
var N = (e, s, t) => (Ge(e, s, "access private method"), t);
|
|
9
|
-
import { _ as q, a as Ye, b as kt, I as Oe, f as _t, c as Ke, d as xt, i as St, u as Et, r as At, E as Ne, e as Tt, P as Ft, h as It, M as Lt, j as Mt, A as Dt, N as Bt } from "./chunks/editor-
|
|
10
|
-
import { C as Vo, T as Po, l as jo, n as Uo, k as qo, m as Go } from "./chunks/editor-
|
|
11
|
-
import { a1 as Ht, E as $t, a4 as zt, T as Je, a as Rt } from "./chunks/converter-
|
|
12
|
-
import { O as Xo } from "./chunks/converter-
|
|
9
|
+
import { _ as q, a as Ye, b as kt, I as Oe, f as _t, c as Ke, d as xt, i as St, u as Et, r as At, E as Ne, e as Tt, P as Ft, h as It, M as Lt, j as Mt, A as Dt, N as Bt } from "./chunks/editor-DfsXlTev.js";
|
|
10
|
+
import { C as Vo, T as Po, l as jo, n as Uo, k as qo, m as Go } from "./chunks/editor-DfsXlTev.js";
|
|
11
|
+
import { a1 as Ht, E as $t, a4 as zt, T as Je, a as Rt } from "./chunks/converter-Cid1Ewvn.js";
|
|
12
|
+
import { O as Xo } from "./chunks/converter-Cid1Ewvn.js";
|
|
13
13
|
import { ref as h, createElementBlock as k, openBlock as C, createElementVNode as _, unref as M, getCurrentInstance as Ot, computed as j, watch as Nt, onMounted as Ce, createCommentVNode as ee, withDirectives as Qe, withKeys as et, normalizeClass as oe, withModifiers as he, vModelText as tt, createTextVNode as nt, toDisplayString as ie, Fragment as U, renderList as te, normalizeStyle as Q, createVNode as P, h as $, createApp as Wt, reactive as Xe, onUnmounted as Vt, shallowRef as ot, onBeforeUnmount as it, createBlock as Pt } from "vue";
|
|
14
|
-
import { t as Z, s as jt, T as Ut, N as J } from "./chunks/toolbar-
|
|
14
|
+
import { t as Z, s as jt, T as Ut, N as J } from "./chunks/toolbar-1h7-NG3P.js";
|
|
15
15
|
import qt from "./ai-writer.es.js";
|
|
16
|
-
import { D as Yo } from "./chunks/docx-zipper-
|
|
16
|
+
import { D as Yo } from "./chunks/docx-zipper-CldOGPZ9.js";
|
|
17
17
|
import { createZip as Qo } from "./file-zipper.es.js";
|
|
18
18
|
var st = { exports: {} };
|
|
19
19
|
(function(e) {
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-Bqp77LuU.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.zo;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Pt;exports.Editor=e.ns;exports.Extensions=e.Oo;exports.SuperConverter=e.Ot;exports.SuperEditor=e.$o;exports.SuperInput=e.Ro;exports.SuperToolbar=e.Ho;exports.Toolbar=e.R0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.dS;exports.getActiveFormatting=e.up;exports.getAllowedImageDimensions=e.ho;exports.getMarksFromSelection=e.Vi;exports.getRichTextExtensions=e.Zx;exports.getStarterExtensions=e.Qx;exports.helpers=e.Rs;exports.trackChangesHelpers=e.fS;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as r, z as t, g as o, P as i, n, O as p, a as g, $ as l, R as c, H as m, b as u, c as x, d,
|
|
1
|
+
import { x as r, z as t, g as o, P as i, n, O as p, a as g, $ as l, R as c, H as m, b as u, c as x, d, e as S, u as h, h as E, V as A, Z as C, Q as T, f as b, i as f } from "./chunks/super-editor.es-uFc1kYwr.es.js";
|
|
2
2
|
import "./chunks/vue-DKS68Dra.es.js";
|
|
3
3
|
export {
|
|
4
4
|
r as AIWriter,
|