@repa/document-viewer 0.1.0-alpha.20 → 0.1.0-alpha.21
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
CHANGED
|
@@ -89,7 +89,7 @@ viewer.setSelectionMode("text");
|
|
|
89
89
|
|
|
90
90
|
The host owns document/font transport, authorization, caching, storage, and
|
|
91
91
|
persistence. On a repa server integration, obtain an exact authorized version
|
|
92
|
-
with server-only `@repa/
|
|
92
|
+
with server-only `@repa/api`. First select ready version metadata using
|
|
93
93
|
`documents.versions.get` and require its non-null fingerprint:
|
|
94
94
|
|
|
95
95
|
```ts
|
|
@@ -110,7 +110,7 @@ const bytes = await repa.documents.packageBytes({
|
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
Stream or proxy those bytes through an application endpoint. Never put the
|
|
113
|
-
repa API key or `@repa/
|
|
113
|
+
repa API key or `@repa/api` in a browser bundle. The viewer's font callback
|
|
114
114
|
receives exact content hashes and byte lengths from the DSDX closure; it cannot
|
|
115
115
|
substitute a family or system font.
|
|
116
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repa/document-viewer",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.21",
|
|
4
4
|
"description": "Read-only DSDX document rendering, semantic selection, and structure geometry for browsers.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"repaRelease": {
|
|
13
13
|
"train": "document-viewer",
|
|
14
|
-
"coordinatedVersion": "0.1.0-alpha.
|
|
14
|
+
"coordinatedVersion": "0.1.0-alpha.21",
|
|
15
15
|
"channel": "alpha",
|
|
16
16
|
"licenseStatus": "evaluation-only"
|
|
17
17
|
},
|
package/wasm/build-info.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"--enable-sign-ext"
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
|
-
"buildId": "
|
|
14
|
+
"buildId": "7762f0a7ab4443f2",
|
|
15
15
|
"fontReaderCapabilities": {
|
|
16
16
|
"engineParserCompat": "font-core.v1",
|
|
17
17
|
"fontClosureSchemaVersion": "1.2.0",
|
|
@@ -48,61 +48,61 @@
|
|
|
48
48
|
"outputs": {
|
|
49
49
|
"document_viewer_wasm.d.ts": {
|
|
50
50
|
"byteLength": 7988,
|
|
51
|
-
"sha256": "
|
|
51
|
+
"sha256": "a46f6c593c774e1a861caff52cb662f7b33873c5091d8d377fedce90f18c5387"
|
|
52
52
|
},
|
|
53
53
|
"document_viewer_wasm.js": {
|
|
54
54
|
"byteLength": 47456,
|
|
55
|
-
"sha256": "
|
|
55
|
+
"sha256": "7fb509525edae4403e158fd2317bc731687b39ce80c5193838c3a00efb2132f7"
|
|
56
56
|
},
|
|
57
57
|
"document_viewer_wasm_bg.wasm": {
|
|
58
|
-
"byteLength":
|
|
59
|
-
"sha256": "
|
|
58
|
+
"byteLength": 12481020,
|
|
59
|
+
"sha256": "36c0bbe511acedc035ad637602b3bb3cd5587986f23f2f51b1740342b5f81653"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"schemaVersion": 2,
|
|
63
63
|
"sourceFileCount": 1146,
|
|
64
|
-
"sourceHash": "
|
|
64
|
+
"sourceHash": "beccb98399819727f95df447376b203f239d45e894befa6b7bba2a3454f4aeee",
|
|
65
65
|
"toolchains": {
|
|
66
66
|
"binaryenWasmOpt": {
|
|
67
|
-
"executableSha256": "
|
|
67
|
+
"executableSha256": "945bd42c417fadcd7a522919cfee341317c16de7cc47cef8add1e6d7f7f88eea",
|
|
68
68
|
"tool": "wasm-opt",
|
|
69
|
-
"version": "wasm-opt version
|
|
69
|
+
"version": "wasm-opt version 108"
|
|
70
70
|
},
|
|
71
71
|
"cargo": {
|
|
72
|
-
"executableSha256": "
|
|
72
|
+
"executableSha256": "da77c8b33849312255ccde3179198ada4c8deb370488d050286146b1d1b27e14",
|
|
73
73
|
"tool": "cargo",
|
|
74
|
-
"version": "cargo 1.98.1 (797e8a9bc 2026-08-05)\nrelease: 1.98.1\ncommit-hash: 797e8a9bca276c1c9f9f738d2a20f484fa4eea9d\ncommit-date: 2026-08-05\nhost:
|
|
74
|
+
"version": "cargo 1.98.1 (797e8a9bc 2026-08-05)\nrelease: 1.98.1\ncommit-hash: 797e8a9bca276c1c9f9f738d2a20f484fa4eea9d\ncommit-date: 2026-08-05\nhost: x86_64-unknown-linux-gnu\nlibgit2: 1.9.4 (sys:0.21.0 vendored)\nlibcurl: 8.21.0-DEV (sys:0.4.90+curl-8.21.0 vendored ssl:OpenSSL/3.6.3)\nssl: OpenSSL 3.6.3 9 Jun 2026\nos: Ubuntu 24.4.0 (noble) [64-bit]"
|
|
75
75
|
},
|
|
76
76
|
"rustc": {
|
|
77
|
-
"executableSha256": "
|
|
77
|
+
"executableSha256": "859254978c0a0402c32f949f6de0d99aee73be8d15f45aac00ae1448aac51e74",
|
|
78
78
|
"tool": "rustc",
|
|
79
|
-
"version": "rustc 1.98.1 (48a229cea 2026-09-01)\nbinary: rustc\ncommit-hash: 48a229ceaefd4985c50990b14116b6d856af0985\ncommit-date: 2026-09-01\nhost:
|
|
79
|
+
"version": "rustc 1.98.1 (48a229cea 2026-09-01)\nbinary: rustc\ncommit-hash: 48a229ceaefd4985c50990b14116b6d856af0985\ncommit-date: 2026-09-01\nhost: x86_64-unknown-linux-gnu\nrelease: 1.98.1\nLLVM version: 22.1.8"
|
|
80
80
|
},
|
|
81
81
|
"wasiSdk": {
|
|
82
82
|
"clang": {
|
|
83
|
-
"executableSha256": "
|
|
83
|
+
"executableSha256": "6985ec66b1065976616156773f95ed318b1793f7761fe9e9f38f8e771571021c",
|
|
84
84
|
"tool": "clang",
|
|
85
85
|
"version": "clang version 22.1.0-wasi-sdk (https://github.com/llvm/llvm-project 4434dabb69916856b824f68a64b029c67175e532)\nTarget: wasm32-unknown-wasip1\nThread model: posix"
|
|
86
86
|
},
|
|
87
87
|
"clangxx": {
|
|
88
|
-
"executableSha256": "
|
|
88
|
+
"executableSha256": "6985ec66b1065976616156773f95ed318b1793f7761fe9e9f38f8e771571021c",
|
|
89
89
|
"tool": "clang++",
|
|
90
90
|
"version": "clang version 22.1.0-wasi-sdk (https://github.com/llvm/llvm-project 4434dabb69916856b824f68a64b029c67175e532)\nTarget: wasm32-unknown-wasip1\nThread model: posix"
|
|
91
91
|
},
|
|
92
92
|
"llvmAr": {
|
|
93
|
-
"executableSha256": "
|
|
93
|
+
"executableSha256": "0b52c0242b9c3998dd106ce11bcff8ac33b134dd0d05aa9215692ecd7feb1da9",
|
|
94
94
|
"tool": "llvm-ar",
|
|
95
95
|
"version": "LLVM (http://llvm.org/):\n LLVM version 22.1.0-wasi-sdk\n Optimized build."
|
|
96
96
|
},
|
|
97
97
|
"sysroot": {
|
|
98
98
|
"archives": {
|
|
99
99
|
"libc++.a": {
|
|
100
|
-
"byteLength":
|
|
101
|
-
"sha256": "
|
|
100
|
+
"byteLength": 8132070,
|
|
101
|
+
"sha256": "b68666d885ebd77da15e328f8589e64dc878e8174ee9866dac83cb1c7426f171"
|
|
102
102
|
},
|
|
103
103
|
"libc++abi.a": {
|
|
104
|
-
"byteLength":
|
|
105
|
-
"sha256": "
|
|
104
|
+
"byteLength": 1389252,
|
|
105
|
+
"sha256": "36d345420c096fa76fa3d58c560057a2c1236f0a766cf7c5db89c549384905dc"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"headers": {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"version": "32.0\nwasi-libc: 2fc32bc81b9f\nllvm: 4434dabb6991\nllvm-version: 22.1.0\nconfig: f992bcc08219"
|
|
116
116
|
},
|
|
117
117
|
"wasmBindgen": {
|
|
118
|
-
"executableSha256": "
|
|
118
|
+
"executableSha256": "f0bce622baeb9253b729365a6f1764a8c684cbda08358e450336fce738dd757b",
|
|
119
119
|
"tool": "wasm-bindgen",
|
|
120
120
|
"version": "wasm-bindgen 0.2.114"
|
|
121
121
|
}
|
|
@@ -128,8 +128,8 @@ export interface InitOutput {
|
|
|
128
128
|
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
129
129
|
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
130
130
|
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
131
|
+
readonly __wasm_bindgen_func_elem_4021: (a: number, b: number) => void;
|
|
132
|
+
readonly __wasm_bindgen_func_elem_4024: (a: number, b: number) => void;
|
|
133
133
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
134
134
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
135
135
|
readonly __wbindgen_export3: (a: number) => void;
|
|
@@ -838,7 +838,7 @@ function __wbg_get_imports() {
|
|
|
838
838
|
},
|
|
839
839
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
840
840
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 702, function: Function { arguments: [], shim_idx: 703, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
841
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
841
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4021, __wasm_bindgen_func_elem_4024);
|
|
842
842
|
return addHeapObject(ret);
|
|
843
843
|
},
|
|
844
844
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -865,8 +865,8 @@ function __wbg_get_imports() {
|
|
|
865
865
|
};
|
|
866
866
|
}
|
|
867
867
|
|
|
868
|
-
function
|
|
869
|
-
wasm.
|
|
868
|
+
function __wasm_bindgen_func_elem_4024(arg0, arg1) {
|
|
869
|
+
wasm.__wasm_bindgen_func_elem_4024(arg0, arg1);
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
const DocumentViewerEngineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|
|
@@ -33,8 +33,8 @@ export const rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => nu
|
|
|
33
33
|
export const rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
34
34
|
export const rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
35
35
|
export const rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
36
|
-
export const
|
|
37
|
-
export const
|
|
36
|
+
export const __wasm_bindgen_func_elem_4021: (a: number, b: number) => void;
|
|
37
|
+
export const __wasm_bindgen_func_elem_4024: (a: number, b: number) => void;
|
|
38
38
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
39
39
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
40
40
|
export const __wbindgen_export3: (a: number) => void;
|