@harbour-enterprises/superdoc 0.8.27 → 0.8.29
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/@harbour-enterprises/{super-editor-DkN9Dv8X.es.js → super-editor-D1Xk5Yrd.es.js} +8 -5
- package/dist/chunks/{super-editor.es-3mCiAAji.cjs → super-editor.es-DOk_Y-T9.cjs} +3 -3
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +9 -9
- package/dist/super-editor/chunks/{converter-Bzv8MkSI.js → converter-14D5Azcr.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-B9ETswWY.js → docx-zipper-DgX4zdaV.js} +1 -1
- package/dist/super-editor/chunks/{editor-CJuJmppY.js → editor-CPMoG7gE.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-C5ZpQcA3.js → toolbar-BDRxH8WI.js} +2 -2
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- 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/super-editor.es.js +11 -8
- 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 +308 -308
- package/dist/superdoc.umd.js +11 -9
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../src/core/SuperDoc.js"],"names":[],"mappings":"AAqBA;;;;;GAKG;AAEH;;;;;GAKG;AAGH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;GAIG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IAgExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IApED,qBAAqB;IACrB,SADW,MAAM,CACT;IAER,WAAM;IAEN,qBAAqB;IACrB,QADW,MAAM,CAuDf;IAiBA,4BAA6B;IAC7B,mBAAmB;IAKnB,gBAA+C;IAC/C,iBAAgC;IAShC,WAA4B;IAE5B,YAAkB;IAElB,eAAuC;IAEvC,kBAAwB;IACxB,gBAAkB;
|
|
1
|
+
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../src/core/SuperDoc.js"],"names":[],"mappings":"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"}
|
package/dist/style.css
CHANGED
|
@@ -383,16 +383,16 @@ span[data-v-53e13009] {
|
|
|
383
383
|
background-color: #1355ff7f;
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
.superdoc-pdf-viewer-container[data-v-
|
|
386
|
+
.superdoc-pdf-viewer-container[data-v-33ecc09d] {
|
|
387
387
|
width: 100%;
|
|
388
388
|
}
|
|
389
|
-
.superdoc-pdf-viewer[data-v-
|
|
389
|
+
.superdoc-pdf-viewer[data-v-33ecc09d] {
|
|
390
390
|
display: flex;
|
|
391
391
|
flex-direction: column;
|
|
392
392
|
width: 100%;
|
|
393
393
|
position: relative;
|
|
394
394
|
}
|
|
395
|
-
.superdoc-pdf-viewer__loader[data-v-
|
|
395
|
+
.superdoc-pdf-viewer__loader[data-v-33ecc09d] {
|
|
396
396
|
display: flex;
|
|
397
397
|
justify-content: center;
|
|
398
398
|
align-items: center;
|
|
@@ -400,30 +400,30 @@ span[data-v-53e13009] {
|
|
|
400
400
|
min-width: 150px;
|
|
401
401
|
min-height: 150px;
|
|
402
402
|
}
|
|
403
|
-
.superdoc-pdf-viewer__loader[data-v-
|
|
403
|
+
.superdoc-pdf-viewer__loader[data-v-33ecc09d] .n-spin {
|
|
404
404
|
--n-color: #1354ff !important;
|
|
405
405
|
--n-text-color: #1354ff !important;
|
|
406
406
|
}
|
|
407
|
-
.superdoc-pdf-viewer[data-v-
|
|
407
|
+
.superdoc-pdf-viewer[data-v-33ecc09d] .pdf-page {
|
|
408
408
|
border-top: 1px solid #dfdfdf;
|
|
409
409
|
border-bottom: 1px solid #dfdfdf;
|
|
410
410
|
margin: 0 0 20px 0;
|
|
411
411
|
position: relative;
|
|
412
412
|
overflow: hidden;
|
|
413
413
|
}
|
|
414
|
-
.superdoc-pdf-viewer[data-v-
|
|
414
|
+
.superdoc-pdf-viewer[data-v-33ecc09d] .pdf-page:first-child {
|
|
415
415
|
border-radius: 16px 16px 0 0;
|
|
416
416
|
border-top: none;
|
|
417
417
|
}
|
|
418
|
-
.superdoc-pdf-viewer[data-v-
|
|
418
|
+
.superdoc-pdf-viewer[data-v-33ecc09d] .pdf-page:last-child {
|
|
419
419
|
border-radius: 0 0 16px 16px;
|
|
420
420
|
border-bottom: none;
|
|
421
421
|
}
|
|
422
|
-
.superdoc-pdf-viewer[data-v-
|
|
422
|
+
.superdoc-pdf-viewer[data-v-33ecc09d] .textLayer {
|
|
423
423
|
z-index: 2;
|
|
424
424
|
position: absolute;
|
|
425
425
|
}
|
|
426
|
-
.superdoc-pdf-viewer[data-v-
|
|
426
|
+
.superdoc-pdf-viewer[data-v-33ecc09d] .textLayer::selection {
|
|
427
427
|
background-color: #1355ff66;
|
|
428
428
|
mix-blend-mode: difference;
|
|
429
429
|
}
|
|
@@ -14711,7 +14711,7 @@ const dt = class dt {
|
|
|
14711
14711
|
return;
|
|
14712
14712
|
}
|
|
14713
14713
|
}
|
|
14714
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.8.
|
|
14714
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.8.29") {
|
|
14715
14715
|
const n = "docProps/custom.xml";
|
|
14716
14716
|
e[n] || (e[n] = yu());
|
|
14717
14717
|
const i = e["docProps/custom.xml"];
|
|
@@ -14911,7 +14911,7 @@ function Mp(r) {
|
|
|
14911
14911
|
function yu() {
|
|
14912
14912
|
return Tf;
|
|
14913
14913
|
}
|
|
14914
|
-
function wu(r = 2, e = "0.8.
|
|
14914
|
+
function wu(r = 2, e = "0.8.29") {
|
|
14915
14915
|
return {
|
|
14916
14916
|
type: "element",
|
|
14917
14917
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Tt, L as wt, O as ut, Q as Bt, U as Rt } from "./converter-
|
|
1
|
+
import { p as Tt, L as wt, O as ut, Q as Bt, U as Rt } from "./converter-14D5Azcr.js";
|
|
2
2
|
function kt(bt) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + bt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -7,9 +7,9 @@ var I = (t, e, n) => ju(t, typeof e != "symbol" ? e + "" : e, n), Po = (t, e, n)
|
|
|
7
7
|
var Je = (t, e, n) => (Po(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ct = (t, e, n) => e.has(t) ? $s("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Io = (t, e, n, r) => (Po(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), P = (t, e, n) => (Po(t, e, "access private method"), n);
|
|
8
8
|
import * as T from "yjs";
|
|
9
9
|
import { UndoManager as Hu, Item as Wu, ContentType as Uu, Text as qu, XmlElement as Ku } from "yjs";
|
|
10
|
-
import { P as G, a as J, M as nr, N as B, S as Y, T as V, b as _, D as Ln, F as E, c as Sn, d as Xu, e as Pl, A as mr, p as oe, f as Il, i as Yu, g as gt, l as gr, h as Vt, j as Rl, r as Ll, R as on, o as rr, k as Ft, m as li, n as Bl, q as ue, s as Ve, v as ko, t as yn, u as Gu, w as Me, x as Wr, y as Fl, z as bn, B as Ro, C as Lo, E as Bo, G as Ur, H as Ju, I as Vs, J as Zu, K as Qu } from "./converter-
|
|
10
|
+
import { P as G, a as J, M as nr, N as B, S as Y, T as V, b as _, D as Ln, F as E, c as Sn, d as Xu, e as Pl, A as mr, p as oe, f as Il, i as Yu, g as gt, l as gr, h as Vt, j as Rl, r as Ll, R as on, o as rr, k as Ft, m as li, n as Bl, q as ue, s as Ve, v as ko, t as yn, u as Gu, w as Me, x as Wr, y as Fl, z as bn, B as Ro, C as Lo, E as Bo, G as Ur, H as Ju, I as Vs, J as Zu, K as Qu } from "./converter-14D5Azcr.js";
|
|
11
11
|
import { ref as _s, computed as ef, createElementBlock as Ut, openBlock as qt, withModifiers as Fo, Fragment as tf, renderList as nf, normalizeClass as rf, createCommentVNode as js, toDisplayString as zo, createElementVNode as of, createApp as sf } from "vue";
|
|
12
|
-
import { D as Hs } from "./docx-zipper-
|
|
12
|
+
import { D as Hs } from "./docx-zipper-DgX4zdaV.js";
|
|
13
13
|
function vo(t) {
|
|
14
14
|
const { from: e, to: n, empty: r } = t.selection, o = [];
|
|
15
15
|
return r ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (i) => {
|
|
@@ -8550,7 +8550,7 @@ const Fs = class Fs extends Gh {
|
|
|
8550
8550
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
8551
8551
|
*/
|
|
8552
8552
|
processCollaborationMigrations() {
|
|
8553
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.8.
|
|
8553
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.8.29"), !this.options.ydoc) return;
|
|
8554
8554
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
8555
8555
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
8556
8556
|
const o = Fa(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as _, createElementBlock as se, openBlock as q, createElementVNode as pn, createCommentVNode as pe, normalizeClass as Zt, normalizeStyle as Jt, ref as R, unref as W, createBlock as Ge, toDisplayString as ni, withDirectives as dt, withKeys as Nr, withModifiers as Hr, vModelText as jr, getCurrentInstance as _t, createVNode as Et, readonly as Qt, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Ks, onBeforeMount as dr, inject as te, onActivated as Vs, onDeactivated as ri, createTextVNode as At, Fragment as _e, Comment as fr, defineComponent as ee, provide as Se, h as E, Teleport as Us, toRef as ie, nextTick as Gs, renderSlot as Xs, isVNode as qs, shallowRef as Ys, watchEffect as ft, mergeProps as pt, Transition as en, vShow as Zs, cloneVNode as Js, Text as Qs, renderList as el, withCtx as Bn } from "vue";
|
|
2
|
-
import { p as tn } from "./converter-
|
|
3
|
-
import { _ as vt, g as Pt } from "./editor-
|
|
2
|
+
import { p as tn } from "./converter-14D5Azcr.js";
|
|
3
|
+
import { _ as vt, g as Pt } from "./editor-CPMoG7gE.js";
|
|
4
4
|
const Mp = (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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAeA;IAWE,yBAqCC;IA/CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAMA,oBAAsB;IACtB,qBAAuB;IACvB,kBAAoD;IACpD,WAAkC;IAClC,cAA+B;IAC/B,UAAmC;IAsBnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;
|
|
1
|
+
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAeA;IAWE,yBAqCC;IA/CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAMA,oBAAsB;IACtB,qBAAuB;IACvB,kBAAoD;IACpD,WAAkC;IAClC,cAA+B;IAC/B,UAAmC;IAsBnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;IAsL3C,0BAEC;IAED,gCAIC;IAED;;;OAGG;IACH,wBAFW,GAAC,QAKX;IAED,6CAEC;IA2DD;;;OAGG;IACH,2BAyCC;IAED,4BAKE;IAaA,eAAmD;IACnD,eAAmD;IAGrD;;OAEG;IACH;;;aAGC;IAED;;;;;OAKG;IACH,0CAoBC;;CAYF;yBAtbwB,eAAe"}
|
|
@@ -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-CPMoG7gE.js";
|
|
2
|
+
import "./chunks/converter-14D5Azcr.js";
|
|
3
|
+
import "./chunks/docx-zipper-DgX4zdaV.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -6,13 +6,13 @@ var rt = (t, s, o) => s in t ? at(t, s, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var Ie = (t, s, o) => rt(t, typeof s != "symbol" ? s + "" : s, o), Pe = (t, s, o) => s.has(t) || Ne("Cannot " + o);
|
|
7
7
|
var we = (t, s, o) => (Pe(t, s, "read from private field"), o ? o.call(t) : s.get(t)), Le = (t, s, o) => s.has(t) ? Ne("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, o);
|
|
8
8
|
var O = (t, s, o) => (Pe(t, s, "access private method"), o);
|
|
9
|
-
import { _ as K, a as Ue, b as ct, I as Me, f as dt, c as ze, d as ut, i as mt, u as pt, r as ft, E as De, e as ht, P as vt, h as gt, j as yt, A as bt, N as kt } from "./chunks/editor-
|
|
10
|
-
import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-
|
|
11
|
-
import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-
|
|
12
|
-
import { E as To } from "./chunks/converter-
|
|
9
|
+
import { _ as K, a as Ue, b as ct, I as Me, f as dt, c as ze, d as ut, i as mt, u as pt, r as ft, E as De, e as ht, P as vt, h as gt, j as yt, A as bt, N as kt } from "./chunks/editor-CPMoG7gE.js";
|
|
10
|
+
import { C as ko, T as Co, l as _o, n as wo, k as xo, m as Eo } from "./chunks/editor-CPMoG7gE.js";
|
|
11
|
+
import { Q as Ct, v as _t, V as wt, T as Ve, a as xt } from "./chunks/converter-14D5Azcr.js";
|
|
12
|
+
import { E as To } from "./chunks/converter-14D5Azcr.js";
|
|
13
13
|
import { ref as g, createElementBlock as C, openBlock as k, createElementVNode as x, unref as $, getCurrentInstance as Et, computed as j, watch as St, onMounted as ke, createCommentVNode as ee, withDirectives as Tt, withKeys as At, normalizeClass as te, withModifiers as be, vModelText as Ft, createTextVNode as It, toDisplayString as ne, Fragment as U, renderList as J, normalizeStyle as Y, createVNode as z, h as W, createApp as Lt, reactive as We, onUnmounted as Mt, shallowRef as qe, onBeforeUnmount as Ge, createBlock as Dt } from "vue";
|
|
14
|
-
import { t as G, s as $t, T as Bt, N as Z } from "./chunks/toolbar-
|
|
15
|
-
import { D as Fo } from "./chunks/docx-zipper-
|
|
14
|
+
import { t as G, s as $t, T as Bt, N as Z } from "./chunks/toolbar-BDRxH8WI.js";
|
|
15
|
+
import { D as Fo } from "./chunks/docx-zipper-DgX4zdaV.js";
|
|
16
16
|
import { createZip as Lo } from "./file-zipper.es.js";
|
|
17
17
|
var Ke = { exports: {} };
|
|
18
18
|
(function(t) {
|
|
@@ -1590,10 +1590,13 @@ class po extends Rt {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
1592
|
L = new WeakSet(), Ze = function() {
|
|
1593
|
-
this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length
|
|
1593
|
+
this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length ? this.config.toolbarGroups = Object.keys(this.config.groups) : this.config.toolbarGroups = ["left", "center", "right"];
|
|
1594
1594
|
}, fe = new WeakMap(), Be = function(o, n, e = !1) {
|
|
1595
1595
|
const i = document.documentElement.clientWidth, { defaultItems: c, overflowItems: l } = Wn(o, e, i, this.role, n);
|
|
1596
|
-
let a =
|
|
1596
|
+
let a = [
|
|
1597
|
+
...c.map((u) => u.name.value),
|
|
1598
|
+
...l.map((u) => u.name.value)
|
|
1599
|
+
];
|
|
1597
1600
|
this.config.groups && (a = Object.values(this.config.groups).flatMap((u) => u));
|
|
1598
1601
|
const d = c.filter((u) => a.includes(u.name.value)).filter((u) => !this.config.excludeItems.includes(u.name.value));
|
|
1599
1602
|
this.toolbarItems = d, this.overflowItems = l.filter((u) => a.includes(u.name.value));
|
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-DOk_Y-T9.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.BasicUpload=e.ho;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.Ni;exports.Extensions=e.go;exports.SuperConverter=e.Ft;exports.SuperEditor=e.fo;exports.SuperInput=e.vo;exports.SuperToolbar=e.po;exports.Toolbar=e._p;exports.TrackChangesBasePluginKey=e.de;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Av;exports.getActiveFormatting=e.af;exports.getAllowedImageDimensions=e.Gn;exports.getMarksFromSelection=e.vo$1;exports.getRichTextExtensions=e.hv;exports.getStarterExtensions=e.mv;exports.helpers=e.td;exports.trackChangesHelpers=e.Tv;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as t, a as r, N as o, b as i, g as n, F as p, f as g, v as l, p as c, _ as m, d as u, c as d, A as x, e as S, G as h, i as E, j as T, m as A, t as C, T as b } from "./chunks/@harbour-enterprises/super-editor-
|
|
1
|
+
import { h as t, a as r, N as o, b as i, g as n, F as p, f as g, v as l, p as c, _ as m, d as u, c as d, A as x, e as S, G as h, i as E, j as T, m as A, t as C, T as b } from "./chunks/@harbour-enterprises/super-editor-D1Xk5Yrd.es.js";
|
|
2
2
|
import "./chunks/vue-BEXwSXMc.es.js";
|
|
3
3
|
export {
|
|
4
4
|
t as BasicUpload,
|