superdoc 1.12.0-next.11 → 1.12.0-next.13
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-1H_e-blH.cjs → PdfViewer-BM8GbrHb.cjs} +2 -2
- package/dist/chunks/{PdfViewer-2GmHPcuP.es.js → PdfViewer-D9duMPBd.es.js} +2 -2
- package/dist/chunks/{SuperConverter-DKC3eAnw.cjs → SuperConverter-BMjvGr5r.cjs} +14 -3
- package/dist/chunks/{SuperConverter-Cyd0kGmJ.es.js → SuperConverter-Dx95dNlr.es.js} +14 -3
- package/dist/chunks/{index-BKXPlsQF.cjs → index-BF7DfWLs.cjs} +756 -390
- package/dist/chunks/{index-BlzZBR33.es.js → index-BTrpAvox.es.js} +4 -4
- package/dist/chunks/{index-C22k0MUW.es.js → index-C-t9SDCr.es.js} +756 -390
- package/dist/chunks/{index-CpgpR-lf.cjs → index-DcUDN9u9.cjs} +4 -4
- package/dist/style.css +39 -29
- package/dist/super-editor/converter.cjs +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/presentation-editor/PresentationEditor.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts.map +1 -1
- package/dist/super-editor/extensions/structured-content/StructuredContentBlockView.d.ts.map +1 -1
- package/dist/super-editor/extensions/structured-content/StructuredContentInlineView.d.ts.map +1 -1
- package/dist/super-editor/extensions/structured-content/StructuredContentViewBase.d.ts +3 -0
- package/dist/super-editor/extensions/structured-content/StructuredContentViewBase.d.ts.map +1 -1
- package/dist/super-editor/extensions/structured-content/structured-content-block.d.ts.map +1 -1
- package/dist/super-editor/extensions/structured-content/structured-content-lock-plugin.d.ts +5 -0
- package/dist/super-editor/extensions/structured-content/structured-content-lock-plugin.d.ts.map +1 -0
- package/dist/super-editor/extensions/structured-content/structured-content-select-plugin.d.ts +14 -0
- package/dist/super-editor/extensions/structured-content/structured-content-select-plugin.d.ts.map +1 -0
- package/dist/super-editor/extensions/structured-content/structured-content.d.ts.map +1 -1
- package/dist/super-editor/extensions/types/node-attributes.d.ts +4 -0
- package/dist/super-editor/extensions/types/node-attributes.d.ts.map +1 -1
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +3 -3
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +770 -393
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-BkoOkkmT.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
5
|
-
const index = require("./index-
|
|
4
|
+
const superdoc = require("./index-DcUDN9u9.cjs");
|
|
5
|
+
const index = require("./index-BF7DfWLs.cjs");
|
|
6
6
|
function self(vars) {
|
|
7
7
|
const {
|
|
8
8
|
opacityDisabled,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as defineComponent, h, T as Transition, p as process$1, w as watchEffect, b as computed, r as ref, e as onMounted, f as onUnmounted, o as openBlock, c as createElementBlock, a as createBaseVNode, g as createVNode, u as unref, i as createCommentVNode } from "./vue-DiPLN5sT.es.js";
|
|
2
|
-
import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-
|
|
3
|
-
import { o as derived, p as c, q as cB, r as fadeInTransition, s as cM, w as warnOnce, u as useConfig, t as useTheme, v as pxfy, x as createKey, y as useThemeClass, z as useCompitable, B as _export_sfc } from "./index-
|
|
2
|
+
import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-BTrpAvox.es.js";
|
|
3
|
+
import { o as derived, p as c, q as cB, r as fadeInTransition, s as cM, w as warnOnce, u as useConfig, t as useTheme, v as pxfy, x as createKey, y as useThemeClass, z as useCompitable, B as _export_sfc } from "./index-C-t9SDCr.es.js";
|
|
4
4
|
function self(vars) {
|
|
5
5
|
const {
|
|
6
6
|
opacityDisabled,
|
|
@@ -10961,6 +10961,10 @@ function handleStructuredContentNode(params) {
|
|
|
10961
10961
|
const id = sdtPr?.elements?.find((el) => el.name === "w:id");
|
|
10962
10962
|
const tag = sdtPr?.elements?.find((el) => el.name === "w:tag");
|
|
10963
10963
|
const alias = sdtPr?.elements?.find((el) => el.name === "w:alias");
|
|
10964
|
+
const lockTag = sdtPr?.elements?.find((el) => el.name === "w:lock");
|
|
10965
|
+
const lockValue = lockTag?.attributes?.["w:val"];
|
|
10966
|
+
const validModes = ["unlocked", "sdtLocked", "contentLocked", "sdtContentLocked"];
|
|
10967
|
+
const lockMode = validModes.includes(lockValue) ? lockValue : "unlocked";
|
|
10964
10968
|
if (!sdtContent) {
|
|
10965
10969
|
return null;
|
|
10966
10970
|
}
|
|
@@ -10982,6 +10986,7 @@ function handleStructuredContentNode(params) {
|
|
|
10982
10986
|
id: id?.attributes?.["w:val"] || null,
|
|
10983
10987
|
tag: tag?.attributes?.["w:val"] || null,
|
|
10984
10988
|
alias: alias?.attributes?.["w:val"] || null,
|
|
10989
|
+
lockMode,
|
|
10985
10990
|
sdtPr
|
|
10986
10991
|
}
|
|
10987
10992
|
};
|
|
@@ -27024,13 +27029,19 @@ function generateSdtPrTagForStructuredContent({ node }) {
|
|
|
27024
27029
|
type: "element",
|
|
27025
27030
|
attributes: { "w:val": attrs.tag }
|
|
27026
27031
|
};
|
|
27032
|
+
const lock = {
|
|
27033
|
+
name: "w:lock",
|
|
27034
|
+
type: "element",
|
|
27035
|
+
attributes: { "w:val": attrs.lockMode }
|
|
27036
|
+
};
|
|
27027
27037
|
const resultElements = [];
|
|
27028
27038
|
if (attrs.id) resultElements.push(id);
|
|
27029
27039
|
if (attrs.alias) resultElements.push(alias);
|
|
27030
27040
|
if (attrs.tag) resultElements.push(tag);
|
|
27041
|
+
if (attrs.lockMode && attrs.lockMode !== "unlocked") resultElements.push(lock);
|
|
27031
27042
|
if (attrs.sdtPr) {
|
|
27032
27043
|
const elements = attrs.sdtPr.elements || [];
|
|
27033
|
-
const elementsToExclude = ["w:id", "w:alias", "w:tag"];
|
|
27044
|
+
const elementsToExclude = ["w:id", "w:alias", "w:tag", "w:lock"];
|
|
27034
27045
|
const restElements = elements.filter((el) => !elementsToExclude.includes(el.name));
|
|
27035
27046
|
const result2 = {
|
|
27036
27047
|
name: "w:sdtPr",
|
|
@@ -32811,7 +32822,7 @@ class DocxExporter {
|
|
|
32811
32822
|
}
|
|
32812
32823
|
#replaceSpecialCharacters(text) {
|
|
32813
32824
|
if (text === void 0 || text === null) return text;
|
|
32814
|
-
return String(text).replace(
|
|
32825
|
+
return String(text).replace(/&(?!#\d+;|#x[0-9a-fA-F]+;|(?:amp|lt|gt|quot|apos);)/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
32815
32826
|
}
|
|
32816
32827
|
/**
|
|
32817
32828
|
* Recursively generates XML string representation from a JSON node structure.
|
|
@@ -33807,7 +33818,7 @@ class SuperConverter {
|
|
|
33807
33818
|
static getStoredSuperdocVersion(docx) {
|
|
33808
33819
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
33809
33820
|
}
|
|
33810
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.12.0-next.
|
|
33821
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.12.0-next.13") {
|
|
33811
33822
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
33812
33823
|
}
|
|
33813
33824
|
/**
|
|
@@ -10960,6 +10960,10 @@ function handleStructuredContentNode(params) {
|
|
|
10960
10960
|
const id = sdtPr?.elements?.find((el) => el.name === "w:id");
|
|
10961
10961
|
const tag = sdtPr?.elements?.find((el) => el.name === "w:tag");
|
|
10962
10962
|
const alias = sdtPr?.elements?.find((el) => el.name === "w:alias");
|
|
10963
|
+
const lockTag = sdtPr?.elements?.find((el) => el.name === "w:lock");
|
|
10964
|
+
const lockValue = lockTag?.attributes?.["w:val"];
|
|
10965
|
+
const validModes = ["unlocked", "sdtLocked", "contentLocked", "sdtContentLocked"];
|
|
10966
|
+
const lockMode = validModes.includes(lockValue) ? lockValue : "unlocked";
|
|
10963
10967
|
if (!sdtContent) {
|
|
10964
10968
|
return null;
|
|
10965
10969
|
}
|
|
@@ -10981,6 +10985,7 @@ function handleStructuredContentNode(params) {
|
|
|
10981
10985
|
id: id?.attributes?.["w:val"] || null,
|
|
10982
10986
|
tag: tag?.attributes?.["w:val"] || null,
|
|
10983
10987
|
alias: alias?.attributes?.["w:val"] || null,
|
|
10988
|
+
lockMode,
|
|
10984
10989
|
sdtPr
|
|
10985
10990
|
}
|
|
10986
10991
|
};
|
|
@@ -27023,13 +27028,19 @@ function generateSdtPrTagForStructuredContent({ node }) {
|
|
|
27023
27028
|
type: "element",
|
|
27024
27029
|
attributes: { "w:val": attrs.tag }
|
|
27025
27030
|
};
|
|
27031
|
+
const lock = {
|
|
27032
|
+
name: "w:lock",
|
|
27033
|
+
type: "element",
|
|
27034
|
+
attributes: { "w:val": attrs.lockMode }
|
|
27035
|
+
};
|
|
27026
27036
|
const resultElements = [];
|
|
27027
27037
|
if (attrs.id) resultElements.push(id);
|
|
27028
27038
|
if (attrs.alias) resultElements.push(alias);
|
|
27029
27039
|
if (attrs.tag) resultElements.push(tag);
|
|
27040
|
+
if (attrs.lockMode && attrs.lockMode !== "unlocked") resultElements.push(lock);
|
|
27030
27041
|
if (attrs.sdtPr) {
|
|
27031
27042
|
const elements = attrs.sdtPr.elements || [];
|
|
27032
|
-
const elementsToExclude = ["w:id", "w:alias", "w:tag"];
|
|
27043
|
+
const elementsToExclude = ["w:id", "w:alias", "w:tag", "w:lock"];
|
|
27033
27044
|
const restElements = elements.filter((el) => !elementsToExclude.includes(el.name));
|
|
27034
27045
|
const result2 = {
|
|
27035
27046
|
name: "w:sdtPr",
|
|
@@ -32810,7 +32821,7 @@ class DocxExporter {
|
|
|
32810
32821
|
}
|
|
32811
32822
|
#replaceSpecialCharacters(text) {
|
|
32812
32823
|
if (text === void 0 || text === null) return text;
|
|
32813
|
-
return String(text).replace(
|
|
32824
|
+
return String(text).replace(/&(?!#\d+;|#x[0-9a-fA-F]+;|(?:amp|lt|gt|quot|apos);)/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
32814
32825
|
}
|
|
32815
32826
|
/**
|
|
32816
32827
|
* Recursively generates XML string representation from a JSON node structure.
|
|
@@ -33806,7 +33817,7 @@ class SuperConverter {
|
|
|
33806
33817
|
static getStoredSuperdocVersion(docx) {
|
|
33807
33818
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
33808
33819
|
}
|
|
33809
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.12.0-next.
|
|
33820
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.12.0-next.13") {
|
|
33810
33821
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
33811
33822
|
}
|
|
33812
33823
|
/**
|