@ai-matrx/print 0.12.32 → 0.12.33

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.
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/xlsx-styled.ts
31
+ var xlsx_styled_exports = {};
32
+ __export(xlsx_styled_exports, {
33
+ loadExcelJs: () => loadExcelJs
34
+ });
35
+ module.exports = __toCommonJS(xlsx_styled_exports);
36
+ async function loadExcelJs() {
37
+ return (await import("exceljs/dist/exceljs.min.js")).default;
38
+ }
39
+ //# sourceMappingURL=xlsx-styled.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/xlsx-styled.ts"],"sourcesContent":["/**\n * The ONE full-fidelity .xlsx engine door: ExcelJS, the only engine that holds styles, number\n * formats, data validation, conditional formatting, notes, hyperlinks and pictures in a workbook.\n * The `/xlsx` section (SheetJS community) reads and writes values, merges and formulas only, so\n * an editor that must carry the rest of a person's workbook through Excel (the Univer workbooks)\n * loads ExcelJS here and nowhere else.\n *\n * Loaded on demand from ExcelJS's browser bundle: its Node entry pulls in unzipper/fstream, whose\n * dynamic filesystem scan makes Next trace the whole repository into every server route that can\n * render a workbook action. Nothing pays for it until a person imports or exports.\n */\nimport type ExcelJSModule from \"exceljs\";\n\nexport type * as ExcelJSTypes from \"exceljs\";\n\nexport async function loadExcelJs(): Promise<typeof ExcelJSModule> {\n return (await import(\"exceljs/dist/exceljs.min.js\")).default;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,eAAsB,cAA6C;AACjE,UAAQ,MAAM,OAAO,6BAA6B,GAAG;AACvD;","names":[]}
@@ -0,0 +1,19 @@
1
+ import ExcelJSModule__default from 'exceljs';
2
+ import * as ExcelJSModule from 'exceljs';
3
+ export { ExcelJSModule as ExcelJSTypes };
4
+
5
+ /**
6
+ * The ONE full-fidelity .xlsx engine door: ExcelJS, the only engine that holds styles, number
7
+ * formats, data validation, conditional formatting, notes, hyperlinks and pictures in a workbook.
8
+ * The `/xlsx` section (SheetJS community) reads and writes values, merges and formulas only, so
9
+ * an editor that must carry the rest of a person's workbook through Excel (the Univer workbooks)
10
+ * loads ExcelJS here and nowhere else.
11
+ *
12
+ * Loaded on demand from ExcelJS's browser bundle: its Node entry pulls in unzipper/fstream, whose
13
+ * dynamic filesystem scan makes Next trace the whole repository into every server route that can
14
+ * render a workbook action. Nothing pays for it until a person imports or exports.
15
+ */
16
+
17
+ declare function loadExcelJs(): Promise<typeof ExcelJSModule__default>;
18
+
19
+ export { loadExcelJs };
@@ -0,0 +1,19 @@
1
+ import ExcelJSModule__default from 'exceljs';
2
+ import * as ExcelJSModule from 'exceljs';
3
+ export { ExcelJSModule as ExcelJSTypes };
4
+
5
+ /**
6
+ * The ONE full-fidelity .xlsx engine door: ExcelJS, the only engine that holds styles, number
7
+ * formats, data validation, conditional formatting, notes, hyperlinks and pictures in a workbook.
8
+ * The `/xlsx` section (SheetJS community) reads and writes values, merges and formulas only, so
9
+ * an editor that must carry the rest of a person's workbook through Excel (the Univer workbooks)
10
+ * loads ExcelJS here and nowhere else.
11
+ *
12
+ * Loaded on demand from ExcelJS's browser bundle: its Node entry pulls in unzipper/fstream, whose
13
+ * dynamic filesystem scan makes Next trace the whole repository into every server route that can
14
+ * render a workbook action. Nothing pays for it until a person imports or exports.
15
+ */
16
+
17
+ declare function loadExcelJs(): Promise<typeof ExcelJSModule__default>;
18
+
19
+ export { loadExcelJs };
@@ -0,0 +1,8 @@
1
+ // src/xlsx-styled.ts
2
+ async function loadExcelJs() {
3
+ return (await import("exceljs/dist/exceljs.min.js")).default;
4
+ }
5
+ export {
6
+ loadExcelJs
7
+ };
8
+ //# sourceMappingURL=xlsx-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/xlsx-styled.ts"],"sourcesContent":["/**\n * The ONE full-fidelity .xlsx engine door: ExcelJS, the only engine that holds styles, number\n * formats, data validation, conditional formatting, notes, hyperlinks and pictures in a workbook.\n * The `/xlsx` section (SheetJS community) reads and writes values, merges and formulas only, so\n * an editor that must carry the rest of a person's workbook through Excel (the Univer workbooks)\n * loads ExcelJS here and nowhere else.\n *\n * Loaded on demand from ExcelJS's browser bundle: its Node entry pulls in unzipper/fstream, whose\n * dynamic filesystem scan makes Next trace the whole repository into every server route that can\n * render a workbook action. Nothing pays for it until a person imports or exports.\n */\nimport type ExcelJSModule from \"exceljs\";\n\nexport type * as ExcelJSTypes from \"exceljs\";\n\nexport async function loadExcelJs(): Promise<typeof ExcelJSModule> {\n return (await import(\"exceljs/dist/exceljs.min.js\")).default;\n}\n"],"mappings":";AAeA,eAAsB,cAA6C;AACjE,UAAQ,MAAM,OAAO,6BAA6B,GAAG;AACvD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/print",
3
- "version": "0.12.32",
3
+ "version": "0.12.33",
4
4
  "description": "The AI Matrx print system: the BlockPrinter contract and print-window composition, the flashcards deck printer (duplex-mirrored cut sheets, Avery 5388, study sheets), QR generation with spec quiet zones and e-commerce payload builders, label-sheet printing on Avery and roll stock with custom label formats, and a complete markdown pipeline: a shipped markdown converter, two default print stylesheets, print windows, and markdown/DOM to PDF, and print-grade documents (cover, TOC, captions, cross-references, citations, sections) exported to PDF, DOCX, EPUB and HTML from one parsed tree.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -276,6 +276,16 @@
276
276
  "default": "./dist/xlsx.cjs"
277
277
  }
278
278
  },
279
+ "./xlsx-styled": {
280
+ "import": {
281
+ "types": "./dist/xlsx-styled.d.ts",
282
+ "default": "./dist/xlsx-styled.js"
283
+ },
284
+ "require": {
285
+ "types": "./dist/xlsx-styled.d.cts",
286
+ "default": "./dist/xlsx-styled.cjs"
287
+ }
288
+ },
279
289
  "./mathjax": {
280
290
  "import": {
281
291
  "types": "./dist/mathjax.d.ts",
@@ -293,6 +303,7 @@
293
303
  "bwip-js": "^4.11.4",
294
304
  "citeproc": "^2.4.63",
295
305
  "docx": "^9.7.2",
306
+ "exceljs": "^4.4.0",
296
307
  "fontkit": "^2.0.4",
297
308
  "hast-util-from-html": "^2.0.3",
298
309
  "hast-util-sanitize": "^5.0.2",
@@ -311,8 +322,8 @@
311
322
  "tailwind-merge": "^3.7.0",
312
323
  "vaul": "^1.1.2",
313
324
  "yaml": "^2.9.1",
314
- "@ai-matrx/kit": "latest",
315
- "@ai-matrx/content-ir": "latest"
325
+ "@ai-matrx/content-ir": "latest",
326
+ "@ai-matrx/kit": "latest"
316
327
  },
317
328
  "peerDependencies": {
318
329
  "react": ">=18.0.0",
@@ -370,7 +381,8 @@
370
381
  "labels",
371
382
  "flashcards",
372
383
  "markdown to print",
373
- "the SheetJS workbook engine (/xlsx)"
384
+ "the SheetJS workbook engine (/xlsx)",
385
+ "the ExcelJS full-fidelity xlsx engine door (/xlsx-styled)"
374
386
  ],
375
387
  "mustNotOwn": [
376
388
  "transfer artifacts and copy menus (alchemy)"
@@ -378,13 +390,13 @@
378
390
  "layer": 2
379
391
  },
380
392
  "scripts": {
381
- "build": "pnpm clean && node ./scripts/gen-katex-css.mjs && tsup && node ../scripts/check-node-env-not-inlined.mjs",
393
+ "build": "node --test ./scripts/strip-jspdf-remote-viewers.test.mjs && pnpm clean && node ./scripts/gen-katex-css.mjs && tsup && node ./scripts/check-jspdf-bundle.mjs && node ../scripts/check-node-env-not-inlined.mjs",
382
394
  "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
383
395
  "check:package": "pnpm build && node ../scripts/check-exports-agreement.mjs && publint && pnpm verify:tarball && node ../scripts/check-tarball-relative-imports.mjs --self-test && node ../scripts/check-tarball-relative-imports.mjs --pack .",
384
396
  "typecheck": "tsc -p tsconfig.json --noEmit",
385
- "test": "vitest run",
397
+ "test": "node --test ./scripts/strip-jspdf-remote-viewers.test.mjs && vitest run",
386
398
  "test:watch": "vitest",
387
399
  "verify:tarball": "node ./scripts/verify-tarball.mjs"
388
400
  },
389
- "gitHead": "82a8f53b904283fd5346863fefc5aa3d81b2132b"
401
+ "gitHead": "67b4467d87285d4b62b390f5c1f5e70974af355d"
390
402
  }