@harbour-enterprises/superdoc 0.27.3 → 0.28.0-next.10
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-CCrMOIpU.cjs → PdfViewer-BnsPYL5w.cjs} +1 -1
- package/dist/chunks/{PdfViewer-DXMcf_Mb.es.js → PdfViewer-DBL2mtV7.es.js} +1 -1
- package/dist/chunks/{index-GJg72zc5.es.js → index-B5RApJzM.es.js} +10 -4
- package/dist/chunks/{index-CIFHwmHR.cjs → index-Bn2uXv1T.cjs} +10 -4
- package/dist/chunks/{super-editor.es-BYmNnbzd.es.js → super-editor.es-BZcjzGbD.es.js} +35261 -17398
- package/dist/chunks/{super-editor.es-BlDrv5SU.cjs → super-editor.es-C2gjIEyc.cjs} +35171 -17308
- package/dist/chunks/uuid-CjlX8hrF.es.js +35 -0
- package/dist/chunks/uuid-R7L08bOx.cjs +34 -0
- package/dist/components/CommentsLayer/use-comment.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +7 -6
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/images/altText_disclaimer.svg +3 -0
- package/dist/images/altText_spinner.svg +30 -0
- package/dist/images/altText_warning.svg +3 -0
- package/dist/images/messageBar_closingButton.svg +3 -0
- package/dist/images/messageBar_warning.svg +3 -0
- package/dist/stores/comments-store.d.ts +1 -1
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-GcMLdei-.js → converter-DJPby8Vf.js} +2525 -2509
- package/dist/super-editor/chunks/{docx-zipper-Y0x9TJvc.js → docx-zipper-BES4h7U3.js} +1 -1
- package/dist/super-editor/chunks/{editor-Bm6n8ccl.js → editor-DS_Pp30R.js} +21621 -3778
- package/dist/super-editor/chunks/{toolbar-0L9P26Ib.js → toolbar-BrhEM0st.js} +2 -2
- package/dist/super-editor/converter.es.js +2 -2
- 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/src/components/toolbar/use-toolbar-item.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/Editor.d.ts +7 -1
- package/dist/super-editor/super-editor/src/core/commands/decreaseListIndent.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/commands/getSelectionMarks.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/commands/increaseListIndent.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/commands/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/commands/list-helpers/list-indent-helpers.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/commands/setTextSelection.d.ts +4 -0
- package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +0 -16
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/types/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +2 -2
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/t-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +2 -1
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +2 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts +8 -6
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts +8 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +11 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +11 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTablesById.d.ts +8 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +11 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +12 -5
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +7 -6
- package/dist/super-editor/super-editor/src/tests/helpers/helpers.d.ts +1 -1
- package/dist/super-editor/super-editor.es.js +31 -31
- 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 +37123 -19256
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +5 -8
- package/dist/chunks/uuid-CQzaMNgL.cjs +0 -36
- package/dist/chunks/uuid-DIIKH5Zc.es.js +0 -37
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harbour-enterprises/superdoc",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.28.0-next.10",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"readme": "README.md",
|
|
7
7
|
"files": [
|
|
@@ -45,8 +45,6 @@
|
|
|
45
45
|
"build:es": "cd ../super-editor && npm run build && cd ../superdoc && vite build",
|
|
46
46
|
"watch:es": "nodemon --watch src --watch ../super-editor/src --ext js,ts,vue --exec \"npm run build:es\" --delay 100ms",
|
|
47
47
|
"build:umd": "vite build --config vite.config.umd.js",
|
|
48
|
-
"release": "release-it --ci --increment=patch",
|
|
49
|
-
"release:next": "release-it --config .release-it.next.json",
|
|
50
48
|
"clean": "rm -rf dist",
|
|
51
49
|
"pack:local": "npm run build:es && npm pack && mv $(ls superdoc-*.tgz) ./superdoc.tgz",
|
|
52
50
|
"pack": "npm run build:es && npm pack && mv $(ls superdoc-*.tgz) ./superdoc.tgz",
|
|
@@ -59,7 +57,7 @@
|
|
|
59
57
|
"naive-ui": "^2.43.1",
|
|
60
58
|
"pinia": "^2.1.7",
|
|
61
59
|
"rollup-plugin-copy": "^3.5.0",
|
|
62
|
-
"
|
|
60
|
+
"uuid": "^9.0.1",
|
|
63
61
|
"vue": "^3.5.20",
|
|
64
62
|
"y-websocket": "^3.0.0"
|
|
65
63
|
},
|
|
@@ -71,18 +69,17 @@
|
|
|
71
69
|
},
|
|
72
70
|
"devDependencies": {
|
|
73
71
|
"@hocuspocus/provider": "^2.13.6",
|
|
74
|
-
"@rollup/plugin-replace": "^6.0.2",
|
|
75
72
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
76
73
|
"@vue/test-utils": "^2.4.6",
|
|
77
74
|
"nodemon": "^3.1.10",
|
|
78
75
|
"pdfjs-dist": "4.3.136",
|
|
79
76
|
"postcss-nested": "^6.0.1",
|
|
80
|
-
"postcss-nested-import": "^1.3.0",
|
|
81
77
|
"postcss-prefixwrap": "^1.56.2",
|
|
78
|
+
"rollup-plugin-visualizer": "^5.12.0",
|
|
82
79
|
"typescript": "^5.7.3",
|
|
83
80
|
"vite": "^6.3.5",
|
|
84
|
-
"
|
|
85
|
-
"
|
|
81
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
82
|
+
"vitest": "^3.2.4"
|
|
86
83
|
},
|
|
87
84
|
"publishConfig": {
|
|
88
85
|
"access": "public"
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var getRandomValues;
|
|
3
|
-
var rnds8 = new Uint8Array(16);
|
|
4
|
-
function rng() {
|
|
5
|
-
if (!getRandomValues) {
|
|
6
|
-
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== "undefined" && typeof msCrypto.getRandomValues === "function" && msCrypto.getRandomValues.bind(msCrypto);
|
|
7
|
-
if (!getRandomValues) {
|
|
8
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return getRandomValues(rnds8);
|
|
12
|
-
}
|
|
13
|
-
const REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
14
|
-
function validate(uuid) {
|
|
15
|
-
return typeof uuid === "string" && REGEX.test(uuid);
|
|
16
|
-
}
|
|
17
|
-
var byteToHex = [];
|
|
18
|
-
for (var i = 0; i < 256; ++i) {
|
|
19
|
-
byteToHex.push((i + 256).toString(16).substr(1));
|
|
20
|
-
}
|
|
21
|
-
function stringify(arr) {
|
|
22
|
-
var offset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
23
|
-
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
24
|
-
if (!validate(uuid)) {
|
|
25
|
-
throw TypeError("Stringified UUID is invalid");
|
|
26
|
-
}
|
|
27
|
-
return uuid;
|
|
28
|
-
}
|
|
29
|
-
function v4(options, buf, offset) {
|
|
30
|
-
options = options || {};
|
|
31
|
-
var rnds = options.random || (options.rng || rng)();
|
|
32
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
33
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
34
|
-
return stringify(rnds);
|
|
35
|
-
}
|
|
36
|
-
exports.v4 = v4;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var getRandomValues;
|
|
2
|
-
var rnds8 = new Uint8Array(16);
|
|
3
|
-
function rng() {
|
|
4
|
-
if (!getRandomValues) {
|
|
5
|
-
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== "undefined" && typeof msCrypto.getRandomValues === "function" && msCrypto.getRandomValues.bind(msCrypto);
|
|
6
|
-
if (!getRandomValues) {
|
|
7
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
return getRandomValues(rnds8);
|
|
11
|
-
}
|
|
12
|
-
const REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
13
|
-
function validate(uuid) {
|
|
14
|
-
return typeof uuid === "string" && REGEX.test(uuid);
|
|
15
|
-
}
|
|
16
|
-
var byteToHex = [];
|
|
17
|
-
for (var i = 0; i < 256; ++i) {
|
|
18
|
-
byteToHex.push((i + 256).toString(16).substr(1));
|
|
19
|
-
}
|
|
20
|
-
function stringify(arr) {
|
|
21
|
-
var offset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
22
|
-
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
23
|
-
if (!validate(uuid)) {
|
|
24
|
-
throw TypeError("Stringified UUID is invalid");
|
|
25
|
-
}
|
|
26
|
-
return uuid;
|
|
27
|
-
}
|
|
28
|
-
function v4(options, buf, offset) {
|
|
29
|
-
options = options || {};
|
|
30
|
-
var rnds = options.random || (options.rng || rng)();
|
|
31
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
32
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
33
|
-
return stringify(rnds);
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
v4 as v
|
|
37
|
-
};
|