@bendyline/docblocks-react 2.4.0 → 2.6.0
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 +18 -0
- package/THIRD_PARTY_NOTICES.txt +457 -50
- package/dist/{ExportDialog-VBWHFJ2R.js → ExportDialog-Q4VWI43H.js} +2 -2
- package/dist/{ExportToolbarControls-N3TCL5DD.js → ExportToolbarControls-QYLBRWM7.js} +8 -8
- package/dist/GitGrantNotice-I2VNKPLH.js +29 -0
- package/dist/{GitToolbarControl-VJVK2B4X.js → GitToolbarControl-O5AXBC6T.js} +5 -3
- package/dist/{GitUI-CAKFVKWY.js → GitUI-L5T3XHZG.js} +68 -14
- package/dist/{ShareDialog-PAMOQQFB.js → ShareDialog-4OX3UPJ4.js} +150 -3
- package/dist/calculation/index.d.ts +27 -0
- package/dist/calculation/index.js +16 -0
- package/dist/chunk-6E635KCJ.js +11 -0
- package/dist/chunk-DUKTAKB4.js +83 -0
- package/dist/{chunk-VRRL6VTD.js → chunk-Q6XNIKDG.js} +63 -0
- package/dist/{chunk-HFYPTTCH.js → chunk-V2ENBGUA.js} +0 -9
- package/dist/export/index.js +5 -5
- package/dist/index.d.ts +45 -8
- package/dist/index.js +952 -511
- package/dist/proofing/index.d.ts +112 -0
- package/dist/proofing/index.js +50 -0
- package/dist/settings/index.d.ts +37 -1
- package/dist/settings/index.js +11 -3
- package/package.json +22 -9
- package/src/styles/docblocks.css +443 -97
- package/dist/{chunk-SIIEGOHY.js → chunk-FMDLZ4ZG.js} +3 -3
package/README.md
CHANGED
|
@@ -36,6 +36,23 @@ import { defineConfig } from 'vite';
|
|
|
36
36
|
export default defineConfig({ worker: { format: 'es' } });
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
Formula grids can opt into the full IronCalc engine through the separately
|
|
40
|
+
built calculation entry point. Publish `@ironcalc/wasm/wasm_bg.wasm` at a
|
|
41
|
+
same-origin URL and keep the factory at module scope so the engine remains
|
|
42
|
+
lazy and reusable:
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
import { createDocBlocksCalcEngineFactory } from '@bendyline/docblocks-react/calculation';
|
|
46
|
+
|
|
47
|
+
const calcEngineFactory = createDocBlocksCalcEngineFactory({
|
|
48
|
+
wasmSource: '/ironcalc/wasm_bg.wasm',
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
function App() {
|
|
52
|
+
return <DocBlocksShell calcEngineFactory={calcEngineFactory} />;
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
39
56
|
## Components
|
|
40
57
|
|
|
41
58
|
### DocBlocksShell
|
|
@@ -55,6 +72,7 @@ The canonical DocBlocks experience in one component — file explorer, workspace
|
|
|
55
72
|
|
|
56
73
|
- `theme` — `'light' | 'dark' | 'auto'` (auto follows `prefers-color-scheme`)
|
|
57
74
|
- `logoUrl` — brand mark for the app menu button
|
|
75
|
+
- `calcEngineFactory` — optional lazy calculation backend; use the calculation entry point above to enable IronCalc formulas
|
|
58
76
|
- `ffmpegWasm` — optional same-origin ffmpeg core URLs; supplying them enables the built-in Animated GIF flow on cross-origin-isolated hosts
|
|
59
77
|
- `showCodeCopyButton` — shows Copy controls on ordinary fenced code blocks (default: `true`; Mermaid fences remain diagrams)
|
|
60
78
|
- `onCopyCode` — optional clipboard adapter for native hosts; browser hosts fall back to `navigator.clipboard.writeText`
|