@evotecit/officeimo 0.1.5 → 0.1.19
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 +15 -3
- package/bundles/officeimo-canopyx-adapter.js +1444 -0
- package/bundles/officeimo-canopyx-adapter.min.js +2 -0
- package/bundles/officeimo-canopyx-adapter.min.mjs +2 -0
- package/bundles/officeimo-canopyx-adapter.mjs +1426 -0
- package/bundles/officeimo-canopyx.js +15 -14
- package/bundles/officeimo-canopyx.min.js +2 -0
- package/bundles/officeimo-canopyx.min.mjs +2 -0
- package/bundles/officeimo-canopyx.mjs +7 -6
- package/bundles/officeimo-csv.min.js +2 -0
- package/bundles/officeimo-csv.min.mjs +2 -0
- package/bundles/officeimo-datatables-adapter.js +626 -0
- package/bundles/officeimo-datatables-adapter.min.js +2 -0
- package/bundles/officeimo-datatables-adapter.min.mjs +2 -0
- package/bundles/officeimo-datatables-adapter.mjs +617 -0
- package/bundles/officeimo-datatables.js +55 -10
- package/bundles/officeimo-datatables.min.js +2 -0
- package/bundles/officeimo-datatables.min.mjs +2 -0
- package/bundles/officeimo-datatables.mjs +51 -6
- package/bundles/officeimo-execution.min.js +2 -0
- package/bundles/officeimo-execution.min.mjs +2 -0
- package/bundles/officeimo-pdf.min.js +2 -0
- package/bundles/officeimo-pdf.min.mjs +2 -0
- package/bundles/officeimo-xlsx.min.js +2 -0
- package/bundles/officeimo-xlsx.min.mjs +2 -0
- package/bundles/officeimo.min.js +2 -0
- package/bundles/officeimo.min.mjs +2 -0
- package/bundles/officeimo.mjs +2 -1
- package/dist/integrations/canopyx/metadata.js +1 -1
- package/dist/integrations/canopyx/pdf-number.js +6 -5
- package/dist/integrations/canopyx/types.d.ts +2 -1
- package/dist/integrations/datatables/snapshot.js +51 -6
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm pack --pack-destination /path/to/local-packages
|
|
|
20
20
|
|
|
21
21
|
Install that archive in an isolated consumer with `npm install /path/to/local-packages/evotecit-officeimo-0.1.0.tgz`.
|
|
22
22
|
|
|
23
|
-
`tsc` produces ES modules and declarations in `dist/`. The archive contains those files, portable bundles, this README and the MIT license. TypeScript
|
|
23
|
+
`tsc` produces ES modules and declarations in `dist/`. The archive contains those files, portable bundles, this README and the MIT license. TypeScript and esbuild (which minifies the `.min` bundles) are development dependencies; installing the archive as an application dependency installs no compiler or runtime packages.
|
|
24
24
|
|
|
25
25
|
## Export a table
|
|
26
26
|
|
|
@@ -1213,7 +1213,19 @@ The archive exports `@evotecit/officeimo/classic.js`, `/xlsx.js`, `/csv.js`, `/p
|
|
|
1213
1213
|
</script>
|
|
1214
1214
|
```
|
|
1215
1215
|
|
|
1216
|
-
The combined bundle exposes all seven namespaces on global `OfficeIMO` plus the established root helpers. The XLSX bundle exposes `core`, `zip`, `xml`, `opc`, `xlsx`; CSV exposes `core`, `csv`; PDF exposes `core`, `pdf`. Load `officeimo-execution.js` beside the chosen writer to add `executeWorkerExport` and `handleWorkerExports` to `OfficeIMO`. The standalone bundles compose in either order.
|
|
1216
|
+
The combined bundle exposes all seven namespaces on global `OfficeIMO` plus the established root helpers. The XLSX bundle exposes `core`, `zip`, `xml`, `opc`, `xlsx`; CSV exposes `core`, `csv`; PDF exposes `core`, `pdf`. Load `officeimo-execution.js` beside the chosen writer to add `executeWorkerExport` and `handleWorkerExports` to `OfficeIMO`. The standalone bundles compose in either order.
|
|
1217
|
+
|
|
1218
|
+
The DataTables and CanopyX integrations also ship as thin adapters that take their document writers from the combined bundle instead of carrying their own copy. A page that uses both integrations, or also calls the writers directly, downloads the writers once:
|
|
1219
|
+
|
|
1220
|
+
```html
|
|
1221
|
+
<script src="officeimo.min.js"></script>
|
|
1222
|
+
<script src="officeimo-datatables-adapter.min.js"></script>
|
|
1223
|
+
<script src="officeimo-canopyx-adapter.min.js"></script>
|
|
1224
|
+
```
|
|
1225
|
+
|
|
1226
|
+
Load `officeimo.js` (or `officeimo.min.js`) from the same build before an adapter script; an adapter loaded alone throws an error that names the missing file. The `officeimo-*-adapter.mjs` modules import the sibling `officeimo.mjs` (and `.min.mjs` the sibling `officeimo.min.mjs`), so serve them from one folder. The single-file `officeimo-datatables.js` and `officeimo-canopyx.js` remain for pages that embed one integration only.
|
|
1227
|
+
|
|
1228
|
+
Every bundle also has a minified `.min.js`/`.min.mjs` variant. It has the same API. Classic `.min.js` scripts share module and class identities with the readable scripts of the same build, so the two can be mixed on one page. Each `.mjs` file is its own module graph: a `FormulaCell` or `PdfFont` from `officeimo.mjs` is not accepted by a writer from `officeimo.min.mjs`, so ES module consumers use one variant throughout. Keep the readable variant for debugging. The package exports the adapters as `@evotecit/officeimo/datatables-adapter.js` and `/canopyx-adapter.js`, and every bundle file under `@evotecit/officeimo/bundles/*`. Classic scripts work from `file://` and in host-owned workers without a module loader. ES modules use normal import paths on HTTP(S) and in Node; browser local-file module policy can block `file://` imports.
|
|
1217
1229
|
|
|
1218
1230
|
[OfficeIMO.JavaScript.Assets](../OfficeIMO.JavaScript.Assets/README.md) embeds the same committed TypeScript-built bundles in .NET. Its `JavaScriptAsset` API returns exact content and content-hashed filenames; consuming .NET applications require no Node tooling. Standalone `.mjs` assemblies preserve the asset package's module API. The npm subpaths remain genuine separate `tsc` modules with generated declarations.
|
|
1219
1231
|
|
|
@@ -1228,6 +1240,6 @@ npm run test:browser -- /path/to/evidence/browser
|
|
|
1228
1240
|
npm run sizes -- /path/to/evidence/sizes.json
|
|
1229
1241
|
```
|
|
1230
1242
|
|
|
1231
|
-
`npm test` compiles strictly, checks committed bundles and runs Node's built-in runner. `npm run check` fails when a bundle differs from the compiled graph. No bundler
|
|
1243
|
+
`npm test` compiles strictly, checks committed bundles and runs Node's built-in runner. `npm run check` fails when a bundle differs from the compiled graph. No bundler is used. `scripts/bundles.mjs` assembles each bundle and has esbuild, pinned to an exact version, minify that text into its `.min` variant; the check rebuilds those bytes too. On Windows, `npm --script-shell pwsh` can select PowerShell 7 when the machine's default npm shell cannot resolve its tools.
|
|
1232
1244
|
|
|
1233
1245
|
The browser command uses the repository's existing isolated HtmlTinkerX/Playwright runner and pinned .NET SDK. It checks Chromium, Firefox and WebKit, classic `file://` scripts, ESM imports, workers, downloads and the shared corpus. [C# conformance tests](../OfficeIMO.JavaScript.Assets.Tests/JavaScriptConformanceTests.cs) independently open produced workbooks with OfficeIMO.Excel/OfficeIMO.Reader.Excel and validate them with the Open XML SDK. The [architecture guide](../Docs/officeimo.javascript-architecture.md) describes API stability, format ownership and adding a module.
|