@harbour-enterprises/superdoc 0.14.0-next.22 → 0.14.0-next.23
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-MJ-5Yknb.es.js → index-CkQHKEgn.es.js} +1 -1
- package/dist/chunks/{index-CZuIe8A3.cjs → index-D6RjEz8a.cjs} +1 -1
- package/dist/chunks/{index-BMwK7kM5.es.js → index-D7aY71G5.es.js} +2 -2
- package/dist/chunks/{index-Oz4X1zyg.cjs → index-II_Qdnwl.cjs} +2 -2
- package/dist/chunks/{super-editor.es-DhwDTEg8.cjs → super-editor.es-ABvcvbqb.cjs} +6 -5
- package/dist/chunks/{super-editor.es-IVrLetiB.es.js → super-editor.es-BeDFSLBk.es.js} +6 -5
- package/dist/chunks/{url-CRVat8D5.cjs → url-BC6S5h-Q.cjs} +1 -1
- package/dist/chunks/{url-Cqg2Hljl.es.js → url-DeG9-4We.es.js} +1 -1
- package/dist/chunks/{xml-js-t28wMlyv.cjs → xml-js-CcBd1QVe.cjs} +237 -223
- package/dist/chunks/{xml-js-D78KIQHL.es.js → xml-js-De0zAx2n.es.js} +237 -223
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CvGwhK1D.js → converter--BoP99ql.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DC3wIxhf.js → docx-zipper-BYyWCA4H.js} +1 -1
- package/dist/super-editor/chunks/{editor-BaVxxcf5.js → editor-BrZg9zC8.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-DLwnM2xB.js → toolbar-CrXk-V2Y.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/super-editor.es.js +9 -8
- package/dist/super-editor/tests/toolbar/updateToolbarState.test.d.ts +2 -0
- package/dist/super-editor/tests/toolbar/updateToolbarState.test.d.ts.map +1 -0
- 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 +5 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +7 -6
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { s as streamHttp, r as require$$1 } from "./index-
|
|
2
|
+
import { s as streamHttp, r as require$$1 } from "./index-D7aY71G5.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
2
|
import { p as process$1 } from "./vue-lU0o_RlU.es.js";
|
|
3
|
-
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-
|
|
4
|
-
import { u as url } from "./url-
|
|
3
|
+
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-De0zAx2n.es.js";
|
|
4
|
+
import { u as url } from "./url-DeG9-4We.es.js";
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
for (var i = 0; i < m.length; i++) {
|
|
7
7
|
const e = m[i];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
3
|
const vue = require("./vue-tQYF719J.cjs");
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
4
|
+
const xmlJs = require("./xml-js-CcBd1QVe.cjs");
|
|
5
|
+
const url = require("./url-BC6S5h-Q.cjs");
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -24317,7 +24317,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24317
24317
|
return;
|
|
24318
24318
|
}
|
|
24319
24319
|
}
|
|
24320
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.
|
|
24320
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.23") {
|
|
24321
24321
|
const customLocation = "docProps/custom.xml";
|
|
24322
24322
|
if (!docx[customLocation]) {
|
|
24323
24323
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24793,7 +24793,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24793
24793
|
function generateCustomXml() {
|
|
24794
24794
|
return DEFAULT_CUSTOM_XML;
|
|
24795
24795
|
}
|
|
24796
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.
|
|
24796
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.23") {
|
|
24797
24797
|
return {
|
|
24798
24798
|
type: "element",
|
|
24799
24799
|
name: "property",
|
|
@@ -42198,7 +42198,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42198
42198
|
* @returns {Object | void} Migration results
|
|
42199
42199
|
*/
|
|
42200
42200
|
processCollaborationMigrations() {
|
|
42201
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.
|
|
42201
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.23");
|
|
42202
42202
|
if (!this.options.ydoc) return;
|
|
42203
42203
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42204
42204
|
let docVersion = metaMap.get("version");
|
|
@@ -69950,7 +69950,7 @@ class SuperToolbar extends EventEmitter2 {
|
|
|
69950
69950
|
item.deactivate();
|
|
69951
69951
|
}
|
|
69952
69952
|
const styleIdMark = marks.find((mark) => mark.name === "styleId");
|
|
69953
|
-
if (styleIdMark?.attrs.styleId) {
|
|
69953
|
+
if (!activeMark && styleIdMark?.attrs.styleId) {
|
|
69954
69954
|
const markToStyleMap = {
|
|
69955
69955
|
fontSize: "font-size",
|
|
69956
69956
|
fontFamily: "font-family",
|
|
@@ -69959,8 +69959,9 @@ class SuperToolbar extends EventEmitter2 {
|
|
|
69959
69959
|
};
|
|
69960
69960
|
const linkedStyles = this.activeEditor.converter?.linkedStyles.find((style2) => style2.id === styleIdMark.attrs.styleId);
|
|
69961
69961
|
if (linkedStyles && markToStyleMap[item.name.value] in linkedStyles?.definition.styles) {
|
|
69962
|
+
const linkedStylesItem = linkedStyles?.definition.styles[markToStyleMap[item.name.value]];
|
|
69962
69963
|
const value = {
|
|
69963
|
-
[item.name.value]:
|
|
69964
|
+
[item.name.value]: linkedStylesItem
|
|
69964
69965
|
};
|
|
69965
69966
|
item.activate(value);
|
|
69966
69967
|
}
|
|
@@ -24300,7 +24300,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24300
24300
|
return;
|
|
24301
24301
|
}
|
|
24302
24302
|
}
|
|
24303
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.
|
|
24303
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.23") {
|
|
24304
24304
|
const customLocation = "docProps/custom.xml";
|
|
24305
24305
|
if (!docx[customLocation]) {
|
|
24306
24306
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24776,7 +24776,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24776
24776
|
function generateCustomXml() {
|
|
24777
24777
|
return DEFAULT_CUSTOM_XML;
|
|
24778
24778
|
}
|
|
24779
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.
|
|
24779
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.23") {
|
|
24780
24780
|
return {
|
|
24781
24781
|
type: "element",
|
|
24782
24782
|
name: "property",
|
|
@@ -42181,7 +42181,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42181
42181
|
* @returns {Object | void} Migration results
|
|
42182
42182
|
*/
|
|
42183
42183
|
processCollaborationMigrations() {
|
|
42184
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.
|
|
42184
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.23");
|
|
42185
42185
|
if (!this.options.ydoc) return;
|
|
42186
42186
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42187
42187
|
let docVersion = metaMap.get("version");
|
|
@@ -69933,7 +69933,7 @@ class SuperToolbar extends EventEmitter2 {
|
|
|
69933
69933
|
item.deactivate();
|
|
69934
69934
|
}
|
|
69935
69935
|
const styleIdMark = marks.find((mark) => mark.name === "styleId");
|
|
69936
|
-
if (styleIdMark?.attrs.styleId) {
|
|
69936
|
+
if (!activeMark && styleIdMark?.attrs.styleId) {
|
|
69937
69937
|
const markToStyleMap = {
|
|
69938
69938
|
fontSize: "font-size",
|
|
69939
69939
|
fontFamily: "font-family",
|
|
@@ -69942,8 +69942,9 @@ class SuperToolbar extends EventEmitter2 {
|
|
|
69942
69942
|
};
|
|
69943
69943
|
const linkedStyles = this.activeEditor.converter?.linkedStyles.find((style2) => style2.id === styleIdMark.attrs.styleId);
|
|
69944
69944
|
if (linkedStyles && markToStyleMap[item.name.value] in linkedStyles?.definition.styles) {
|
|
69945
|
+
const linkedStylesItem = linkedStyles?.definition.styles[markToStyleMap[item.name.value]];
|
|
69945
69946
|
const value = {
|
|
69946
|
-
[item.name.value]:
|
|
69947
|
+
[item.name.value]: linkedStylesItem
|
|
69947
69948
|
};
|
|
69948
69949
|
item.activate(value);
|
|
69949
69950
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
3
|
+
const xmlJs = require("./xml-js-CcBd1QVe.cjs");
|
|
4
4
|
const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
|
|
5
5
|
var punycode$1 = { exports: {} };
|
|
6
6
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-
|
|
2
|
+
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-De0zAx2n.es.js";
|
|
3
3
|
import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
|
|
4
4
|
var punycode$1 = { exports: {} };
|
|
5
5
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|