@unieai/libreoffice-kit-wasm 0.1.5 → 0.2.3
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/README.md +1 -1
- package/assets/dsoffice.cjs +26 -0
- package/assets/{soffice.data → dsoffice.data} +0 -0
- package/assets/dsoffice.wasm +4 -0
- package/assets/manifest.json +21 -20
- package/licenses/Rabi-Harness-MIT.txt +2 -0
- package/package.json +2 -5
- package/prebuilds.json +21 -19
- package/sources/build-autogen.input +1 -1
- package/sources/docs/ui-resources.md +11 -21
- package/sources/engine/ui-resource-policy.mjs +4 -1
- package/sources/engine/wasm-source/build.mjs +12 -8
- package/sources/engine/wasm-source/patches/0047-defer-offscreen-canvas-output.patch +59 -0
- package/sources/scripts/core-checkout.mjs +2 -0
- package/sources/scripts/platform-matrix.mjs +25 -9
- package/sources/scripts/verify-artifacts.mjs +4 -4
- package/sources/source-changes.patch +59 -0
- package/assets/soffice.cjs +0 -26
- package/assets/soffice.wasm +0 -4
- /package/assets/{soffice.data.js.metadata → dsoffice.data.js.metadata} +0 -0
|
Binary file
|
package/assets/manifest.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"runtime": "node",
|
|
4
|
-
"entry": "
|
|
5
|
-
"wasm": "
|
|
6
|
-
"data": "
|
|
7
|
-
"metadata": "
|
|
4
|
+
"entry": "dsoffice.cjs",
|
|
5
|
+
"wasm": "dsoffice.wasm",
|
|
6
|
+
"data": "dsoffice.data",
|
|
7
|
+
"metadata": "dsoffice.data.js.metadata",
|
|
8
8
|
"programPath": "/instdir/program",
|
|
9
9
|
"version": "26.8.0.3",
|
|
10
10
|
"sourceCommit": "bce0998afefdbc355585ca324285661a2170ba77",
|
|
11
|
-
"buildId": "
|
|
11
|
+
"buildId": "b2da01f6c8cb9b85d98e9cb977326135dc73b76606c9480ce6e00e68d742c791",
|
|
12
12
|
"files": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
13
|
+
"dsoffice.cjs": "c9248ef54385015475b15ae2baca41d9f7a8bd0b8538904da6a1fcd16c5305a1",
|
|
14
|
+
"dsoffice.wasm": "bb7d1121c7200020f0b6219e37655719cde0c63f905f9826c43c40bf5a7c17c8",
|
|
15
|
+
"dsoffice.data": "0bea03629341de18dc90bdfc1e67a2f3b791e31ef9fe22888c288226e8bd5b15",
|
|
16
|
+
"dsoffice.data.js.metadata": "ffab1d431c3ecdac3f2438f5e229b2e9a83364fed02b1732e5c327ab43d6b04d"
|
|
17
17
|
},
|
|
18
18
|
"inputs": {
|
|
19
19
|
"buildIdentity": {
|
|
20
20
|
"schemaVersion": 1,
|
|
21
21
|
"vendor": "DeepSeek",
|
|
22
22
|
"recipe": "d8e3032f1a589b0877a3822fe9e4a4363427352e0a024a6824791887cf8644cc",
|
|
23
|
-
"configuration": "
|
|
23
|
+
"configuration": "de53223f60ef5204dbd6635e72b3ad3318ce20782ab8da5d5f7e98003b6b064c",
|
|
24
24
|
"compilerFlags": {
|
|
25
25
|
"CFLAGS": "-ffile-prefix-map=/build/libreoffice-kit/workspace=/build/libreoffice-kit/workspace -fdebug-prefix-map=/build/libreoffice-kit/workspace=/build/libreoffice-kit/workspace -ffile-prefix-map=/build/libreoffice-kit/source=/build/libreoffice-kit/source -fdebug-prefix-map=/build/libreoffice-kit/source=/build/libreoffice-kit/source -ffile-prefix-map=/build/libreoffice-kit/emsdk=/build/libreoffice-kit/emsdk -fdebug-prefix-map=/build/libreoffice-kit/emsdk=/build/libreoffice-kit/emsdk -ffile-prefix-map=/build/libreoffice-kit/build=/build/libreoffice-kit/build -fdebug-prefix-map=/build/libreoffice-kit/build=/build/libreoffice-kit/build -ffile-prefix-map=/build/libreoffice-kit/tarballs=/build/libreoffice-kit/tarballs -fdebug-prefix-map=/build/libreoffice-kit/tarballs=/build/libreoffice-kit/tarballs",
|
|
26
26
|
"CXXFLAGS": "-ffile-prefix-map=/build/libreoffice-kit/workspace=/build/libreoffice-kit/workspace -fdebug-prefix-map=/build/libreoffice-kit/workspace=/build/libreoffice-kit/workspace -ffile-prefix-map=/build/libreoffice-kit/source=/build/libreoffice-kit/source -fdebug-prefix-map=/build/libreoffice-kit/source=/build/libreoffice-kit/source -ffile-prefix-map=/build/libreoffice-kit/emsdk=/build/libreoffice-kit/emsdk -fdebug-prefix-map=/build/libreoffice-kit/emsdk=/build/libreoffice-kit/emsdk -ffile-prefix-map=/build/libreoffice-kit/build=/build/libreoffice-kit/build -fdebug-prefix-map=/build/libreoffice-kit/build=/build/libreoffice-kit/build -ffile-prefix-map=/build/libreoffice-kit/tarballs=/build/libreoffice-kit/tarballs -fdebug-prefix-map=/build/libreoffice-kit/tarballs=/build/libreoffice-kit/tarballs",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"shim": "lok.cxx"
|
|
50
50
|
},
|
|
51
51
|
"recipe": "d2bc5b3f084653e6cce13b79c88eed5f7bba0ba1f5088027fc94c95edafbb0e8",
|
|
52
|
-
"configuration": "
|
|
53
|
-
"hostConfiguration": "
|
|
54
|
-
"buildConfiguration": "
|
|
55
|
-
"sourceChanges": "
|
|
52
|
+
"configuration": "f21c91d2d1c186107251140d56b02be4d9eaed068f0c486fa3d254cfb5d06555",
|
|
53
|
+
"hostConfiguration": "498f2f391670faa1167dd4a47bf67167d01139c981de94a02779cf9837086eaa",
|
|
54
|
+
"buildConfiguration": "84a20716c5615a2ebe8af5ff78701c96cb9c1597e284d9369b99fb73602e9961",
|
|
55
|
+
"sourceChanges": "431525df052ff26b98fa0d7c060095ead99d9032a50287a1a28ac137bfe8912b",
|
|
56
56
|
"shim": "160878b31c5bd4304e257fba0c1e1ce3205896cb692a135369cf6f0510c5789f",
|
|
57
57
|
"operations": "d1762ee80b195f984e9c57372090d14c33d98698dd23fcbf2e94210ac65e7b8b",
|
|
58
58
|
"toolchain": "emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.10 (b7dc6e5747465580df5984e723b9d1f10d8e804b)\nCopyright (C) 2025 the Emscripten authors (see AUTHORS.txt)\nThis is free and open source software under the MIT license.\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",
|
|
@@ -74,19 +74,20 @@
|
|
|
74
74
|
"0028-synchronous-workbook-calculation.patch": "811a5d68a31f5ae451b0753953bac24d5831efbf1f106d8832d4854be32ebc72",
|
|
75
75
|
"0029-unloaded-external-blip.patch": "fe1f0f46cafefef9688dfa086cb3aab89b5deff5d0a0876c2329aad90189ef2e",
|
|
76
76
|
"0030-no-password-strength-ui.patch": "41ef274bf30ba69fa77df364c30171cd593d958a54f5e394edcfc65ec9cb1fe7",
|
|
77
|
-
"0031-size-optimization-lto.patch": "6a358c30d2047ee34bf04e54421dc9e1f1f29d553f17b63f60c22e8eb142c782"
|
|
77
|
+
"0031-size-optimization-lto.patch": "6a358c30d2047ee34bf04e54421dc9e1f1f29d553f17b63f60c22e8eb142c782",
|
|
78
|
+
"0047-defer-offscreen-canvas-output.patch": "b29a3645b238505be0dd6f8c0df487900796a7de410a66ee77bc5717a4dba120"
|
|
78
79
|
},
|
|
79
80
|
"packaging": {
|
|
80
81
|
"recipes": {
|
|
81
|
-
"build.mjs": "
|
|
82
|
+
"build.mjs": "290a5681d98b1ea1c1f0c6bdf9a9d79defb1b06708c41404dd7c389b02bc311f",
|
|
82
83
|
"slim.mjs": "9b8d8482a78f578f625117e62fd6f162c418b86a492ab8bc553d406f5cb4a821",
|
|
83
84
|
"../build-identity.mjs": "d8e3032f1a589b0877a3822fe9e4a4363427352e0a024a6824791887cf8644cc",
|
|
84
|
-
"../ui-resource-policy.mjs": "
|
|
85
|
+
"../ui-resource-policy.mjs": "6001042ff41a7e098ae52b857115586e908e7b1d03668ada7f6e3674e4160868"
|
|
85
86
|
},
|
|
86
87
|
"compiledFiles": {
|
|
87
|
-
"soffice.cjs": "
|
|
88
|
-
"soffice.wasm": "
|
|
89
|
-
"soffice.data": "
|
|
88
|
+
"soffice.cjs": "e3b801fe19153e5b26daa6a601c9114348478206204914fb22edcdae4a1edb37",
|
|
89
|
+
"soffice.wasm": "bb7d1121c7200020f0b6219e37655719cde0c63f905f9826c43c40bf5a7c17c8",
|
|
90
|
+
"soffice.data": "e41d0917f22969c6a8813da2f58a431ce91e67903e49e4a46ecb6d17bfe6b32e",
|
|
90
91
|
"soffice.data.js.metadata": "6baffa996f1895927f9a4058762c13dae5b9c5c3c08b97c5721fedf5745d4399"
|
|
91
92
|
}
|
|
92
93
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
Browser presentation, Electron texture transfer and adapter detection, and GPU diagnostic examples originate from MIT-licensed Rabi Harness commit 21261bee8b9a820c62c9e42cade3ff644b747a29. They retain the frame-forwarding/LICENSE notice. See packages/frame-forwarding/README.md for source locations and API ownership.
|
|
2
|
+
|
|
1
3
|
LibreOffice Kit incorporates font handling and conversion integration derived from Rabi Harness. These portions retain the following notice. LibreOffice engine sources and their separate third-party notices are distributed in the engine packages.
|
|
2
4
|
|
|
3
5
|
The entry package's src/native-font-names.js contains font-name data derived from LibreOffice Core's unotools/source/misc/fontdefs.cxx at commit bce0998afefdbc355585ca324285661a2170ba77. That file retains the upstream Mozilla Public License 2.0 notice and the Apache Software Foundation notice for incorporated work licensed under the Apache License 2.0.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unieai/libreoffice-kit-wasm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"engines": {
|
|
@@ -9,10 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"description": "
|
|
13
|
-
"os": [
|
|
14
|
-
"linux"
|
|
15
|
-
],
|
|
12
|
+
"description": "Portable Node WebAssembly Office-to-PDF engine assets",
|
|
16
13
|
"exports": {
|
|
17
14
|
"./prebuilds.json": "./prebuilds.json",
|
|
18
15
|
"./package.json": "./package.json"
|
package/prebuilds.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"platform": "wasm",
|
|
5
5
|
"status": "built",
|
|
6
6
|
"engine": {
|
|
7
7
|
"kind": "wasm",
|
|
8
|
-
"loader": "assets/
|
|
9
|
-
"wasm": "assets/
|
|
10
|
-
"data": "assets/
|
|
11
|
-
"metadata": "assets/
|
|
8
|
+
"loader": "assets/dsoffice.cjs",
|
|
9
|
+
"wasm": "assets/dsoffice.wasm",
|
|
10
|
+
"data": "assets/dsoffice.data",
|
|
11
|
+
"metadata": "assets/dsoffice.data.js.metadata",
|
|
12
12
|
"programDirectory": "/instdir/program"
|
|
13
13
|
},
|
|
14
14
|
"files": {
|
|
15
|
-
"assets/
|
|
16
|
-
"assets/
|
|
17
|
-
"assets/
|
|
18
|
-
"assets/
|
|
19
|
-
"assets/
|
|
20
|
-
"sources/build-autogen.input": "
|
|
15
|
+
"assets/dsoffice.cjs": "c9248ef54385015475b15ae2baca41d9f7a8bd0b8538904da6a1fcd16c5305a1",
|
|
16
|
+
"assets/dsoffice.data": "0bea03629341de18dc90bdfc1e67a2f3b791e31ef9fe22888c288226e8bd5b15",
|
|
17
|
+
"assets/dsoffice.data.js.metadata": "ffab1d431c3ecdac3f2438f5e229b2e9a83364fed02b1732e5c327ab43d6b04d",
|
|
18
|
+
"assets/dsoffice.wasm": "bb7d1121c7200020f0b6219e37655719cde0c63f905f9826c43c40bf5a7c17c8",
|
|
19
|
+
"assets/manifest.json": "3be04821d18b6a9bd8e5c570173ddc124abb72af3c6df6561492bff4d95a9af9",
|
|
20
|
+
"sources/build-autogen.input": "faca029e22789782244ec291b83f33f7c8f540f4f79e6e0d87b3ca66dbd016eb",
|
|
21
21
|
"sources/core-source.json": "39340edab26fd8f702380a0b9fedcfcc6a181793b46dd6d7dee01fa80a2458f0",
|
|
22
|
-
"sources/docs/ui-resources.md": "
|
|
22
|
+
"sources/docs/ui-resources.md": "9610e6ca8919d0b6638d8d445172c5a1679bdae4bbbeeec35be8b3d7faad36e6",
|
|
23
23
|
"sources/engine/build-identity.mjs": "d8e3032f1a589b0877a3822fe9e4a4363427352e0a024a6824791887cf8644cc",
|
|
24
24
|
"sources/engine/core-source.mjs": "7978aec9b96adb6c98d1804fbccdfdffac16a6387d781e4b5950998b47726bd0",
|
|
25
25
|
"sources/engine/document-operations.hxx": "d1762ee80b195f984e9c57372090d14c33d98698dd23fcbf2e94210ac65e7b8b",
|
|
26
|
-
"sources/engine/ui-resource-policy.mjs": "
|
|
26
|
+
"sources/engine/ui-resource-policy.mjs": "6001042ff41a7e098ae52b857115586e908e7b1d03668ada7f6e3674e4160868",
|
|
27
27
|
"sources/engine/wasm-source/autogen.input": "d2bc5b3f084653e6cce13b79c88eed5f7bba0ba1f5088027fc94c95edafbb0e8",
|
|
28
|
-
"sources/engine/wasm-source/build.mjs": "
|
|
28
|
+
"sources/engine/wasm-source/build.mjs": "290a5681d98b1ea1c1f0c6bdf9a9d79defb1b06708c41404dd7c389b02bc311f",
|
|
29
29
|
"sources/engine/wasm-source/lok.cxx": "160878b31c5bd4304e257fba0c1e1ce3205896cb692a135369cf6f0510c5789f",
|
|
30
30
|
"sources/engine/wasm-source/patches/0001-macos-build-tools.patch": "eeb6258c0dbc386160d904be7001a0bf7d279c9e5d2f91964c4578e26f649374",
|
|
31
31
|
"sources/engine/wasm-source/patches/0002-system-font-demand.patch": "641952185d8801d5de61cb995337a6833f19f1248a89b07835a7b9f55aaa44cf",
|
|
@@ -45,18 +45,19 @@
|
|
|
45
45
|
"sources/engine/wasm-source/patches/0029-unloaded-external-blip.patch": "fe1f0f46cafefef9688dfa086cb3aab89b5deff5d0a0876c2329aad90189ef2e",
|
|
46
46
|
"sources/engine/wasm-source/patches/0030-no-password-strength-ui.patch": "41ef274bf30ba69fa77df364c30171cd593d958a54f5e394edcfc65ec9cb1fe7",
|
|
47
47
|
"sources/engine/wasm-source/patches/0031-size-optimization-lto.patch": "6a358c30d2047ee34bf04e54421dc9e1f1f29d553f17b63f60c22e8eb142c782",
|
|
48
|
+
"sources/engine/wasm-source/patches/0047-defer-offscreen-canvas-output.patch": "b29a3645b238505be0dd6f8c0df487900796a7de410a66ee77bc5717a4dba120",
|
|
48
49
|
"sources/engine/wasm-source/slim.mjs": "9b8d8482a78f578f625117e62fd6f162c418b86a492ab8bc553d406f5cb4a821",
|
|
49
50
|
"sources/engine/wasm-source/source.json": "5cbd80154f0d6a83442335ffec195021709d0ba26319758f9ad9e24c083e1709",
|
|
50
51
|
"sources/engine/wasm-source/source.mjs": "826d22ddff565452db235dd5a574eda666d712fb6f4f9aea12f5352a9f4e9a70",
|
|
51
52
|
"sources/engine/wasm-source/stage.mjs": "06743684076898c2587baea4d9b6b0c1831dc2c6997e7c2f031748880bf30386",
|
|
52
53
|
"sources/scripts/checkout-wasm.mjs": "c11e32ab1720f510c9265d23e9addf2f0679ca581b8c45299094b26cca256278",
|
|
53
|
-
"sources/scripts/core-checkout.mjs": "
|
|
54
|
+
"sources/scripts/core-checkout.mjs": "12dc726a3fe712b77aea1a4ddf2b8a482b984774e2a88f3576fe3eac58effff4",
|
|
54
55
|
"sources/scripts/minimize-ui-resources.py": "91f5f21b8ea240c2dfddd0811e52135526d4542d2375be05f5d2ab2046ebf502",
|
|
55
56
|
"sources/scripts/pack-utils.mjs": "aa5368e0dd38d90459f0ef14e1d4b27740aef2f4e46617aca6d6fafed0577a44",
|
|
56
|
-
"sources/scripts/platform-matrix.mjs": "
|
|
57
|
-
"sources/scripts/verify-artifacts.mjs": "
|
|
58
|
-
"sources/source-changes.patch": "
|
|
59
|
-
"licenses/Rabi-Harness-MIT.txt": "
|
|
57
|
+
"sources/scripts/platform-matrix.mjs": "7e55ab51759e3be7ca4333ff7f10620ef89c9548843ddf690f90fe18a8ed3b29",
|
|
58
|
+
"sources/scripts/verify-artifacts.mjs": "09a7c2803108922060437ef331c291c6db0b23805497356b7ff71cd0fd2d4911",
|
|
59
|
+
"sources/source-changes.patch": "8f94553fe894d02f783f441c21a92b2d0751be15269dd9cd3f2a4d930a7913a4",
|
|
60
|
+
"licenses/Rabi-Harness-MIT.txt": "637f43ba3b0193253cd80de6ce6ed4ed4d8a34eac84f6aaa7cc14f532e36318f",
|
|
60
61
|
"licenses/LICENSE": "31c915ae5b7eafe51f06fc2537d2e7fefdee08e40d6b0d761d03d9f0fd58d660",
|
|
61
62
|
"licenses/NOTICE": "8d34210ebbfaee4ba258ef7b30c3044170f356ab82c8259c81b53860bcdeef7b"
|
|
62
63
|
},
|
|
@@ -93,6 +94,7 @@
|
|
|
93
94
|
"sources/engine/wasm-source/patches/0029-unloaded-external-blip.patch",
|
|
94
95
|
"sources/engine/wasm-source/patches/0030-no-password-strength-ui.patch",
|
|
95
96
|
"sources/engine/wasm-source/patches/0031-size-optimization-lto.patch",
|
|
97
|
+
"sources/engine/wasm-source/patches/0047-defer-offscreen-canvas-output.patch",
|
|
96
98
|
"sources/engine/wasm-source/slim.mjs",
|
|
97
99
|
"sources/engine/wasm-source/source.json",
|
|
98
100
|
"sources/engine/wasm-source/source.mjs",
|
|
@@ -1,35 +1,23 @@
|
|
|
1
1
|
# Headless UI resource qualification
|
|
2
2
|
|
|
3
|
-
Native headless installations retain
|
|
4
|
-
`share/config/soffice.cfg` (`Contents/Resources/config/soffice.cfg` on macOS):
|
|
3
|
+
Native headless installations retain these `.ui` layouts under `share/config/soffice.cfg` (`Contents/Resources/config/soffice.cfg` on macOS), as declared by [the shared policy](../engine/ui-resource-policy.mjs):
|
|
5
4
|
|
|
6
|
-
| Path |
|
|
5
|
+
| Path | Consumer |
|
|
7
6
|
| --- | --- |
|
|
8
7
|
| `modules/scalc/ui/inputbar.ui` | Calc formula bar |
|
|
9
8
|
| `modules/scalc/ui/posbox.ui` | Calc name box |
|
|
10
9
|
| `modules/simpress/ui/tabviewbar.ui` | Impress slide view tabs |
|
|
11
|
-
| `modules/swriter/ui/annotation.ui` | Writer comments
|
|
10
|
+
| `modules/swriter/ui/annotation.ui` | Writer comments |
|
|
11
|
+
| `sfx/ui/extrabutton.ui` | Information-bar action buttons |
|
|
12
|
+
| `sfx/ui/infobar.ui` | Document information bars |
|
|
13
|
+
| `svx/ui/selectionmenu.ui` | Native selection controls |
|
|
12
14
|
| `svt/ui/scrollbars.ui` | Scrollbar adaptor |
|
|
13
15
|
| `svt/ui/tabbuttons.ui` | Tab bar buttons |
|
|
14
16
|
| `svt/ui/tabbuttonsmirrored.ui` | Right-to-left Calc sheet tabs |
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
construct mirrored tab controls even during headless conversion and recalculation.
|
|
20
|
-
The
|
|
21
|
-
shared [policy](../engine/ui-resource-policy.mjs) checks their presence. Native
|
|
22
|
-
packaging removes every other `.ui` file below this root. It does not remove other
|
|
23
|
-
file types or layouts outside this root. Existing toolbar, menubar and image policies still apply.
|
|
24
|
-
|
|
25
|
-
The shared WASM image also powers persistent browser reading and retains ordinary
|
|
26
|
-
`.ui` layouts beyond this conversion allowlist. A 2026-09-18 editor smoke reproduced
|
|
27
|
-
an abort during the first Writer event pump with the six-layout image. The same
|
|
28
|
-
compiled module passed DOCX editing with the complete data image; restoring the
|
|
29
|
-
ordinary layouts fixes this packaging regression. Notebookbars, toolbars, menus
|
|
30
|
-
and image archives remain excluded. A conversion-only minimization result does
|
|
31
|
-
not qualify removal from the reading runtime. Run `scripts/smoke-browser-preview.mjs` against
|
|
32
|
-
packed archives for DOCX/XLSX/PPTX reading, selection/copy, Writer layouts and disposal before release. The rc5 SDK removal does not justify additional `.ui` pruning: ordinary VCL idle work still uses these resources.
|
|
18
|
+
Conversion and editing construct document views and dispatch VCL events even when no desktop window is shown. Headless Calc and Impress use their shell views, Writer loads `annotation.ui` for comments, and RTL Calc sheets construct mirrored tab controls during conversion and recalculation. Missing required layouts can fail document loading or abort an event callback. The shared [policy](../engine/ui-resource-policy.mjs) checks their presence. Native packaging removes every other `.ui` file below this root; it does not remove other file types or layouts outside the root. Toolbar, menubar and image policies apply separately.
|
|
19
|
+
|
|
20
|
+
The shared WASM image retains ordinary `.ui` layouts beyond this native allowlist. Conversion-only minimization does not establish that a layout is unused by document event dispatch. Validate the operations that consume a resource before removing it; the native editor and commented-DOCX conversion checks exercise different dependencies.
|
|
33
21
|
|
|
34
22
|
The initial five-layout policy omitted Writer comments. A real-engine test on
|
|
35
23
|
2026-09-17 confirmed that a standard commented DOCX loaded with the baseline WASM
|
|
@@ -76,6 +64,8 @@ minimizer correctly rejected that unstable baseline before trying deletions.
|
|
|
76
64
|
These macOS ARM64 native and direct-WASM tests do not replace matching-host native
|
|
77
65
|
release qualification or Linux installation checks.
|
|
78
66
|
|
|
67
|
+
`test/runtime-engine.test.mjs` includes a generated commented DOCX. The native editor suites cover document open, input, selection, layout, export and process disposal. Engine-backed tests require the built adapter and `LIBREOFFICE_RUNTIME_ENTRY`; source metadata or a skipped runtime test is not qualification evidence.
|
|
68
|
+
|
|
79
69
|
## Requalify after every Core upgrade
|
|
80
70
|
|
|
81
71
|
Use a complete installation from the new Core build and a matching-host native
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
/** Layouts required by headless conversion, relative to share/config/soffice.cfg. */
|
|
1
|
+
/** Layouts required by headless conversion and native document event dispatch, relative to share/config/soffice.cfg. */
|
|
2
2
|
export const requiredUiResources = Object.freeze([
|
|
3
3
|
'modules/scalc/ui/inputbar.ui',
|
|
4
4
|
'modules/scalc/ui/posbox.ui',
|
|
5
5
|
'modules/simpress/ui/tabviewbar.ui',
|
|
6
6
|
'modules/swriter/ui/annotation.ui',
|
|
7
|
+
'sfx/ui/extrabutton.ui',
|
|
8
|
+
'sfx/ui/infobar.ui',
|
|
9
|
+
'svx/ui/selectionmenu.ui',
|
|
7
10
|
'svt/ui/scrollbars.ui',
|
|
8
11
|
'svt/ui/tabbuttons.ui',
|
|
9
12
|
'svt/ui/tabbuttonsmirrored.ui',
|
|
@@ -216,7 +216,8 @@ function packageArtifacts() {
|
|
|
216
216
|
if (sha256(originalLoader) !== compiledFiles['soffice.cjs']) throw new Error('WASM loader changed during packaging');
|
|
217
217
|
const repacked = {
|
|
218
218
|
// Emscripten embeds the data image's build path in diagnostic dependency names.
|
|
219
|
-
'soffice.cjs': Buffer.from(publicBuildValue(originalLoader.toString('utf8'), identityPaths)
|
|
219
|
+
'soffice.cjs': Buffer.from(publicBuildValue(originalLoader.toString('utf8'), identityPaths)
|
|
220
|
+
.replaceAll('soffice.wasm', 'dsoffice.wasm').replaceAll('soffice.data', 'dsoffice.data')),
|
|
220
221
|
'soffice.data': slimmed.data,
|
|
221
222
|
'soffice.data.js.metadata': Buffer.from(`${JSON.stringify(slimmed.metadata)}\n`),
|
|
222
223
|
};
|
|
@@ -224,14 +225,17 @@ function packageArtifacts() {
|
|
|
224
225
|
recipes: Object.fromEntries(['build.mjs', 'slim.mjs', '../build-identity.mjs', '../ui-resource-policy.mjs'].map(name => [name, hashFile(path.join(owner, name))])),
|
|
225
226
|
compiledFiles,
|
|
226
227
|
} };
|
|
227
|
-
const
|
|
228
|
+
const packagedName = name => name.replace(/^soffice\./, 'dsoffice.');
|
|
229
|
+
const files = Object.fromEntries(Object.entries({ ...compiledFiles,
|
|
230
|
+
...Object.fromEntries(Object.entries(repacked).map(([name, bytes]) => [name, sha256(bytes)])),
|
|
231
|
+
}).map(([name, hash]) => [packagedName(name), hash]));
|
|
228
232
|
const manifest = {
|
|
229
233
|
schemaVersion: 2,
|
|
230
234
|
runtime: 'node',
|
|
231
|
-
entry: '
|
|
232
|
-
wasm: '
|
|
233
|
-
data: '
|
|
234
|
-
metadata: '
|
|
235
|
+
entry: 'dsoffice.cjs',
|
|
236
|
+
wasm: 'dsoffice.wasm',
|
|
237
|
+
data: 'dsoffice.data',
|
|
238
|
+
metadata: 'dsoffice.data.js.metadata',
|
|
235
239
|
programPath: '/instdir/program',
|
|
236
240
|
version: pinned.libreoffice.version,
|
|
237
241
|
sourceCommit: pinned.libreoffice.commit,
|
|
@@ -253,10 +257,10 @@ function packageArtifacts() {
|
|
|
253
257
|
let published = false;
|
|
254
258
|
try {
|
|
255
259
|
for (const [name, filename] of Object.entries(artifacts)) {
|
|
256
|
-
const target = path.join(staging, name);
|
|
260
|
+
const target = path.join(staging, packagedName(name));
|
|
257
261
|
if (repacked[name]) writeFileSync(target, repacked[name]);
|
|
258
262
|
else copyFileSync(path.join(program, filename), target);
|
|
259
|
-
if (hashFile(target) !== files[name]) throw new Error(`LibreOffice asset changed during packaging: ${filename}`);
|
|
263
|
+
if (hashFile(target) !== files[packagedName(name)]) throw new Error(`LibreOffice asset changed during packaging: ${filename}`);
|
|
260
264
|
}
|
|
261
265
|
writeFileSync(path.join(staging, 'manifest.json'), serialized);
|
|
262
266
|
renameSync(staging, output);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx
|
|
2
|
+
index bbef9a909b6ad986618aeb363a6334cade325066..050d721541743e5cb3e9ee032c13af60b6effed0 100644
|
|
3
|
+
--- a/canvas/source/vcl/spritecanvas.cxx
|
|
4
|
+
+++ b/canvas/source/vcl/spritecanvas.cxx
|
|
5
|
+
@@ -58,7 +58,16 @@ namespace vclcanvas
|
|
6
|
+
[this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableUnsafeScrolling(aAny); } )
|
|
7
|
+
("SpriteBounds",
|
|
8
|
+
[this]() { return this->maCanvasHelper.isSpriteBounds(); },
|
|
9
|
+
- [this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableSpriteBounds(aAny); } ));
|
|
10
|
+
+ [this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableSpriteBounds(aAny); } )
|
|
11
|
+
+ ("LOKDeferredUpdate",
|
|
12
|
+
+ [this]() { return uno::Any(mbLOKDeferredUpdate); },
|
|
13
|
+
+ [this](const uno::Any& value) {
|
|
14
|
+
+ ENSURE_ARG_OR_THROW(value >>= mbLOKDeferredUpdate,
|
|
15
|
+
+ "LOKDeferredUpdate requires a boolean");
|
|
16
|
+
+ })
|
|
17
|
+
+ ("LOKUpdatePending",
|
|
18
|
+
+ [this]() { return uno::Any(mbLOKUpdatePending); },
|
|
19
|
+
+ {}));
|
|
20
|
+
|
|
21
|
+
SAL_INFO("canvas.vcl", "VCLSpriteCanvas::initialize called" );
|
|
22
|
+
|
|
23
|
+
@@ -140,11 +149,20 @@ namespace vclcanvas
|
|
24
|
+
{
|
|
25
|
+
SolarMutexGuard aGuard;
|
|
26
|
+
|
|
27
|
+
+ if (mbLOKDeferredUpdate)
|
|
28
|
+
+ {
|
|
29
|
+
+ mbLOKUpdatePending = true;
|
|
30
|
+
+ return true;
|
|
31
|
+
+ }
|
|
32
|
+
+
|
|
33
|
+
// avoid repaints on hidden window (hidden: not mapped to
|
|
34
|
+
// screen). Return failure, since the screen really has _not_
|
|
35
|
+
// been updated (caller should try again later)
|
|
36
|
+
- return mbIsVisible && maCanvasHelper.updateScreen(bUpdateAll,
|
|
37
|
+
- mbSurfaceDirty);
|
|
38
|
+
+ const bool updated = mbIsVisible && maCanvasHelper.updateScreen(bUpdateAll,
|
|
39
|
+
+ mbSurfaceDirty);
|
|
40
|
+
+ if (updated)
|
|
41
|
+
+ mbLOKUpdatePending = false;
|
|
42
|
+
+ return updated;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
OUString SAL_CALL SpriteCanvas::getServiceName( )
|
|
46
|
+
diff --git a/canvas/source/vcl/spritecanvas.hxx b/canvas/source/vcl/spritecanvas.hxx
|
|
47
|
+
index a5942c569a9d84ef524273fb29ede49b407581bc..5685b6d4b7164304d61bcdfe1e5509b27b5bf919 100644
|
|
48
|
+
--- a/canvas/source/vcl/spritecanvas.hxx
|
|
49
|
+
+++ b/canvas/source/vcl/spritecanvas.hxx
|
|
50
|
+
@@ -153,6 +153,9 @@ namespace vclcanvas
|
|
51
|
+
|
|
52
|
+
private:
|
|
53
|
+
css::uno::Sequence< css::uno::Any > maArguments;
|
|
54
|
+
+ // Offscreen owners defer output until a shared target is available.
|
|
55
|
+
+ bool mbLOKDeferredUpdate = false;
|
|
56
|
+
+ bool mbLOKUpdatePending = false;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
typedef ::rtl::Reference< SpriteCanvas > SpriteCanvasRef;
|
|
@@ -32,6 +32,8 @@ export function checkoutCore(directory, repo = root) {
|
|
|
32
32
|
run('git', ['remote', 'add', 'origin', source.repository], { cwd: directory });
|
|
33
33
|
run('git', ['fetch', '--depth=1', 'origin', source.revision], { cwd: directory, timeout: 900_000 });
|
|
34
34
|
}
|
|
35
|
+
run('git', ['config', 'core.autocrlf', 'false'], { cwd: directory });
|
|
36
|
+
run('git', ['config', 'core.eol', 'lf'], { cwd: directory });
|
|
35
37
|
run('git', ['checkout', '--detach', source.revision], { cwd: directory });
|
|
36
38
|
verify(directory);
|
|
37
39
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Package metadata shared by release tooling; runtime selection belongs to the adapter package. */
|
|
2
|
-
import { readFileSync
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
3
|
import { join, resolve } from 'node:path';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
|
|
@@ -9,6 +9,13 @@ export const enginePrefix = '@unieai/libreoffice-kit';
|
|
|
9
9
|
export const releaseRepository = 'rabi-harness/libreoffice-kit';
|
|
10
10
|
/** Repository maintaining the source and Actions builds referenced by release evidence. */
|
|
11
11
|
export const sourceRepository = releaseRepository;
|
|
12
|
+
/**
|
|
13
|
+
* Public mirror whose master fast-forwards from the source repository's `public` branch.
|
|
14
|
+
* Package manifests name it, and npm records provenance only for its publications.
|
|
15
|
+
*/
|
|
16
|
+
export const publicRepository = 'UnieAI/rabi-libreoffice-kit';
|
|
17
|
+
/** Repositories whose publish workflow may hold an npm trusted publisher. */
|
|
18
|
+
export const npmPublishingRepositories = Object.freeze([sourceRepository, publicRepository]);
|
|
12
19
|
export const wasmName = `${enginePrefix}-wasm`;
|
|
13
20
|
export const kitPackageName = '@unieai/libreoffice-kit';
|
|
14
21
|
export const nodeRange = '>=22.19.0';
|
|
@@ -46,6 +53,18 @@ export function releaseTag(version) {
|
|
|
46
53
|
return `libreoffice-kit-v${version}`;
|
|
47
54
|
}
|
|
48
55
|
|
|
56
|
+
/** Prerelease candidates may have immutable revisions while retaining an unpublished npm version. */
|
|
57
|
+
export function matchesReleaseTag(tag, version) {
|
|
58
|
+
const base = releaseTag(version);
|
|
59
|
+
return tag === base || (version.includes('-') && typeof tag === 'string'
|
|
60
|
+
&& tag.startsWith(`${base}+candidate.`) && /^[1-9]\d*$/.test(tag.slice(`${base}+candidate.`.length)));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** Retained 0.1.x helpers provide conversion and raster output without the native preview protocol. */
|
|
64
|
+
export function supportsNativePreview(record) {
|
|
65
|
+
return record.platform !== 'wasm' && !['0.1.1', '0.1.5'].includes(record.version);
|
|
66
|
+
}
|
|
67
|
+
|
|
49
68
|
/**
|
|
50
69
|
* Versioned download URL for one engine archive attached to the family release.
|
|
51
70
|
* @param version - Engine family version.
|
|
@@ -58,13 +77,10 @@ export function releaseAssetUrl(version, file) {
|
|
|
58
77
|
|
|
59
78
|
/** Return the complete declared matrix, including targets without built assets. */
|
|
60
79
|
export function packageMatrix(repo = root) {
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
const dir = join(repo, 'packages', entry.name);
|
|
66
|
-
return { dir, manifest: readJson(join(dir, 'package.json')), prebuild: readJson(join(dir, 'prebuilds.json')) };
|
|
67
|
-
});
|
|
80
|
+
return [...Object.keys(targets), 'wasm'].sort().map((platform) => {
|
|
81
|
+
const dir = join(repo, 'packages', platform);
|
|
82
|
+
return { dir, manifest: readJson(join(dir, 'package.json')), prebuild: readJson(join(dir, 'prebuilds.json')) };
|
|
83
|
+
});
|
|
68
84
|
}
|
|
69
85
|
|
|
70
86
|
/** An unrecognized Linux libc is deliberately not treated as glibc. */
|
|
@@ -77,7 +93,7 @@ export function hostTarget(platform = process.platform, arch = process.arch, rep
|
|
|
77
93
|
|
|
78
94
|
/** The adapter declares released native packages; targets also contains unfinished build recipes. */
|
|
79
95
|
export function kitNativeTargets(manifest) {
|
|
80
|
-
return Object.keys(manifest.optionalDependencies ?? {}).filter(name => name !== wasmName).map((name) => {
|
|
96
|
+
return Object.keys(manifest.optionalDependencies ?? {}).filter(name => name !== wasmName && name !== 'koffi').map((name) => {
|
|
81
97
|
const platform = name.slice(enginePrefix.length + 1);
|
|
82
98
|
if (!name.startsWith(`${enginePrefix}-`) || !Object.hasOwn(targets, platform)) throw new Error(`Unknown native optional dependency: ${name}`);
|
|
83
99
|
return platform;
|
|
@@ -88,14 +88,14 @@ export function verifyEngineMetadata(manifest, prebuild) {
|
|
|
88
88
|
}
|
|
89
89
|
const exact = (actual, expected) => JSON.stringify(actual) === JSON.stringify(expected);
|
|
90
90
|
if (prebuild.platform === 'wasm') {
|
|
91
|
-
assert(
|
|
92
|
-
assert(engine?.kind === 'wasm' && engine.loader === 'assets/
|
|
93
|
-
&& engine.data === 'assets/
|
|
91
|
+
assert(manifest.os === undefined && manifest.cpu === undefined && manifest.libc === undefined, 'WASM package must install on every OS, CPU and libc');
|
|
92
|
+
assert(engine?.kind === 'wasm' && engine.loader === 'assets/dsoffice.cjs' && engine.wasm === 'assets/dsoffice.wasm'
|
|
93
|
+
&& engine.data === 'assets/dsoffice.data' && engine.metadata === 'assets/dsoffice.data.js.metadata'
|
|
94
94
|
&& engine.programDirectory === '/instdir/program', 'Unsupported WASM engine paths');
|
|
95
95
|
} else {
|
|
96
96
|
assert(target && exact(manifest.os, [target.os]) && exact(manifest.cpu, [target.cpu])
|
|
97
97
|
&& (target.libc ? exact(manifest.libc, [target.libc]) : manifest.libc === undefined), 'Native platform disagrees with package os/cpu/libc');
|
|
98
|
-
assert(engine?.kind === 'native' && engine.executable === `bin/
|
|
98
|
+
assert(engine?.kind === 'native' && engine.executable === `bin/dsoffice${target.os === 'win32' ? '.exe' : ''}`
|
|
99
99
|
&& typeof engine.programDirectory === 'string' && (engine.programDirectory === 'program' || engine.programDirectory.startsWith('program/')), 'Unsupported native engine paths');
|
|
100
100
|
safePath(engine.programDirectory);
|
|
101
101
|
}
|
|
@@ -1,3 +1,62 @@
|
|
|
1
|
+
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx
|
|
2
|
+
index a4e46476c..6d4f51952 100644
|
|
3
|
+
--- a/canvas/source/vcl/spritecanvas.cxx
|
|
4
|
+
+++ b/canvas/source/vcl/spritecanvas.cxx
|
|
5
|
+
@@ -58,7 +58,16 @@ namespace vclcanvas
|
|
6
|
+
[this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableUnsafeScrolling(aAny); } )
|
|
7
|
+
("SpriteBounds",
|
|
8
|
+
[this]() { return this->maCanvasHelper.isSpriteBounds(); },
|
|
9
|
+
- [this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableSpriteBounds(aAny); } ));
|
|
10
|
+
+ [this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableSpriteBounds(aAny); } )
|
|
11
|
+
+ ("LOKDeferredUpdate",
|
|
12
|
+
+ [this]() { return uno::Any(mbLOKDeferredUpdate); },
|
|
13
|
+
+ [this](const uno::Any& value) {
|
|
14
|
+
+ ENSURE_ARG_OR_THROW(value >>= mbLOKDeferredUpdate,
|
|
15
|
+
+ "LOKDeferredUpdate requires a boolean");
|
|
16
|
+
+ })
|
|
17
|
+
+ ("LOKUpdatePending",
|
|
18
|
+
+ [this]() { return uno::Any(mbLOKUpdatePending); },
|
|
19
|
+
+ {}));
|
|
20
|
+
|
|
21
|
+
SAL_INFO("canvas.vcl", "VCLSpriteCanvas::initialize called" );
|
|
22
|
+
|
|
23
|
+
@@ -135,11 +144,20 @@ namespace vclcanvas
|
|
24
|
+
{
|
|
25
|
+
SolarMutexGuard aGuard;
|
|
26
|
+
|
|
27
|
+
+ if (mbLOKDeferredUpdate)
|
|
28
|
+
+ {
|
|
29
|
+
+ mbLOKUpdatePending = true;
|
|
30
|
+
+ return true;
|
|
31
|
+
+ }
|
|
32
|
+
+
|
|
33
|
+
// avoid repaints on hidden window (hidden: not mapped to
|
|
34
|
+
// screen). Return failure, since the screen really has _not_
|
|
35
|
+
// been updated (caller should try again later)
|
|
36
|
+
- return mbIsVisible && maCanvasHelper.updateScreen(bUpdateAll,
|
|
37
|
+
- mbSurfaceDirty);
|
|
38
|
+
+ const bool updated = mbIsVisible && maCanvasHelper.updateScreen(bUpdateAll,
|
|
39
|
+
+ mbSurfaceDirty);
|
|
40
|
+
+ if (updated)
|
|
41
|
+
+ mbLOKUpdatePending = false;
|
|
42
|
+
+ return updated;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
OUString SAL_CALL SpriteCanvas::getServiceName( )
|
|
46
|
+
diff --git a/canvas/source/vcl/spritecanvas.hxx b/canvas/source/vcl/spritecanvas.hxx
|
|
47
|
+
index a5942c569..5685b6d4b 100644
|
|
48
|
+
--- a/canvas/source/vcl/spritecanvas.hxx
|
|
49
|
+
+++ b/canvas/source/vcl/spritecanvas.hxx
|
|
50
|
+
@@ -153,6 +153,9 @@ namespace vclcanvas
|
|
51
|
+
|
|
52
|
+
private:
|
|
53
|
+
css::uno::Sequence< css::uno::Any > maArguments;
|
|
54
|
+
+ // Offscreen owners defer output until a shared target is available.
|
|
55
|
+
+ bool mbLOKDeferredUpdate = false;
|
|
56
|
+
+ bool mbLOKUpdatePending = false;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
typedef ::rtl::Reference< SpriteCanvas > SpriteCanvasRef;
|
|
1
60
|
diff --git a/configure.ac b/configure.ac
|
|
2
61
|
index 32651cf64..4b2cc710b 100644
|
|
3
62
|
--- a/configure.ac
|