@harbour-enterprises/superdoc 2.0.0-next.2 → 2.0.0-next.20
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-CWO98Qls.cjs → PdfViewer-Y5Q3KpNr.cjs} +1 -1
- package/dist/chunks/{PdfViewer-C4xgIIbF.es.js → PdfViewer-ag_ZFG_a.es.js} +1 -1
- package/dist/chunks/{index-BY-3Vl72.cjs → index-CWNzyoyI.cjs} +4 -6
- package/dist/chunks/{index-s9GUR_Gc.es.js → index-Dymes5hN.es.js} +4 -6
- package/dist/chunks/{index-BqPa6D4q-8U4x8RP6.es.js → index-XnRj2biz-CWqMvtJZ.es.js} +1 -1
- package/dist/chunks/{index-BqPa6D4q-Dulj8zfc.cjs → index-XnRj2biz-DiLIwrZX.cjs} +1 -1
- package/dist/chunks/{super-editor.es-CT28vUbx.es.js → super-editor.es-BBUBeVVw.es.js} +950 -202
- package/dist/chunks/{super-editor.es-BM-ulSRj.cjs → super-editor.es-DwEkOdPH.cjs} +950 -202
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts +3 -3
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts +173 -0
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
- package/dist/style.css +14 -6
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CDlAWcRu.js → converter-CFpzAUl1.js} +49 -9
- package/dist/super-editor/chunks/{docx-zipper-B2VXuf8h.js → docx-zipper-B4U-khNy.js} +1 -1
- package/dist/super-editor/chunks/{editor-B4Q_tNET.js → editor-CUCVDSiG.js} +894 -196
- package/dist/super-editor/chunks/{index-BqPa6D4q.js → index-XnRj2biz.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-BD-lDCLr.js → toolbar-DXUz-ZeU.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/style.css +14 -6
- package/dist/super-editor/super-editor.es.js +19 -9
- 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 +953 -207
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-gvuFr0vx.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-CWNzyoyI.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { y as defineComponent, A as h, P as Transition, a0 as process$1, K as watchEffect, a as computed, r as ref, j as onMounted, X as onUnmounted, b as createElementBlock, o as openBlock, f as createBaseVNode, e as createCommentVNode, s as createVNode, x as unref } from "./vue-CLFbn_1r.es.js";
|
|
2
|
-
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-
|
|
2
|
+
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-Dymes5hN.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-DwEkOdPH.cjs");
|
|
3
3
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
4
4
|
const eventemitter3 = require("./eventemitter3-DIclNhoR.cjs");
|
|
5
5
|
const provider = require("@hocuspocus/provider");
|
|
@@ -4313,12 +4313,10 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4313
4313
|
return processedComments;
|
|
4314
4314
|
};
|
|
4315
4315
|
const convertHtmlToSchema = (commentHTML) => {
|
|
4316
|
-
const div = document.createElement("div");
|
|
4317
|
-
div.innerHTML = commentHTML;
|
|
4318
4316
|
const editor = new superEditor_es.Editor({
|
|
4319
4317
|
mode: "text",
|
|
4320
4318
|
isHeadless: true,
|
|
4321
|
-
content:
|
|
4319
|
+
content: commentHTML,
|
|
4322
4320
|
extensions: superEditor_es.getRichTextExtensions()
|
|
4323
4321
|
});
|
|
4324
4322
|
return editor.getJSON().content[0];
|
|
@@ -17487,7 +17485,7 @@ const _sfc_main = {
|
|
|
17487
17485
|
__name: "SuperDoc",
|
|
17488
17486
|
emits: ["selection-update"],
|
|
17489
17487
|
setup(__props, { emit: __emit }) {
|
|
17490
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17488
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Y5Q3KpNr.cjs")));
|
|
17491
17489
|
const superdocStore = useSuperdocStore();
|
|
17492
17490
|
const commentsStore = useCommentsStore();
|
|
17493
17491
|
const {
|
|
@@ -18391,7 +18389,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
18391
18389
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18392
18390
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18393
18391
|
this.colorIndex = 0;
|
|
18394
|
-
this.version = "2.0.0-next.
|
|
18392
|
+
this.version = "2.0.0-next.20";
|
|
18395
18393
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18396
18394
|
this.superdocId = config.superdocId || uuid.v4();
|
|
18397
18395
|
this.colors = this.config.colors;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-
|
|
1
|
+
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-BBUBeVVw.es.js";
|
|
2
2
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
3
3
|
import { E as EventEmitter } from "./eventemitter3-D_2kqkfV.es.js";
|
|
4
4
|
import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
|
|
@@ -4296,12 +4296,10 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4296
4296
|
return processedComments;
|
|
4297
4297
|
};
|
|
4298
4298
|
const convertHtmlToSchema = (commentHTML) => {
|
|
4299
|
-
const div = document.createElement("div");
|
|
4300
|
-
div.innerHTML = commentHTML;
|
|
4301
4299
|
const editor = new Editor({
|
|
4302
4300
|
mode: "text",
|
|
4303
4301
|
isHeadless: true,
|
|
4304
|
-
content:
|
|
4302
|
+
content: commentHTML,
|
|
4305
4303
|
extensions: getRichTextExtensions()
|
|
4306
4304
|
});
|
|
4307
4305
|
return editor.getJSON().content[0];
|
|
@@ -17470,7 +17468,7 @@ const _sfc_main = {
|
|
|
17470
17468
|
__name: "SuperDoc",
|
|
17471
17469
|
emits: ["selection-update"],
|
|
17472
17470
|
setup(__props, { emit: __emit }) {
|
|
17473
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17471
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-ag_ZFG_a.es.js"));
|
|
17474
17472
|
const superdocStore = useSuperdocStore();
|
|
17475
17473
|
const commentsStore = useCommentsStore();
|
|
17476
17474
|
const {
|
|
@@ -18374,7 +18372,7 @@ class SuperDoc extends EventEmitter {
|
|
|
18374
18372
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18375
18373
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18376
18374
|
this.colorIndex = 0;
|
|
18377
|
-
this.version = "2.0.0-next.
|
|
18375
|
+
this.version = "2.0.0-next.20";
|
|
18378
18376
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18379
18377
|
this.superdocId = config.superdocId || v4();
|
|
18380
18378
|
this.colors = this.config.colors;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./super-editor.es-
|
|
3
|
+
const superEditor_es = require("./super-editor.es-DwEkOdPH.cjs");
|
|
4
4
|
const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
|
|
5
5
|
function bail(error) {
|
|
6
6
|
if (error) {
|