Plan 3 of the web embedding SDK: @zseven-w/op-web-sdk-react and -vue — thin read-only framework adapters over the TS core. Each: <DesignView> (canvas + viewer lifecycle), provider/inject of OpViewer, and read-only useDocument/useViewport/useActivePage. React via useSyncExternalStore (cache-invalidate-on-event); Vue via an async shallowRef provider so children inject the viewer after load. Self-contained (no pen-* deps; framework peer); React 5/5 + Vue 4/4 tests; both tsc clean.
13 lines
421 B
JSON
13 lines
421 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler",
|
|
"strict": true, "skipLibCheck": true, "noEmit": true,
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"], "types": ["vitest/globals"],
|
|
"paths": {
|
|
"@zseven-w/op-web-sdk": ["../op-web-sdk/src/index.ts"],
|
|
"virtual:op_web_sdk_wasm": ["../op-web-sdk/test/wasm-stub.ts"]
|
|
}
|
|
},
|
|
"include": ["src", "test"]
|
|
}
|