@pyreon/document-primitives 0.11.10 → 0.12.1

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 @@
1
+ {"version":3,"file":"index2.d.ts","names":[],"sources":["../../src/DocumentPreview.ts","../../src/primitives/DocButton.ts","../../src/primitives/DocCode.ts","../../src/primitives/DocColumn.ts","../../src/primitives/DocDivider.ts","../../src/primitives/DocDocument.ts","../../src/primitives/DocHeading.ts","../../src/primitives/DocImage.ts","../../src/primitives/DocLink.ts","../../src/primitives/DocList.ts","../../src/primitives/DocListItem.ts","../../src/primitives/DocPage.ts","../../src/primitives/DocPageBreak.ts","../../src/primitives/DocQuote.ts","../../src/primitives/DocRow.ts","../../src/primitives/DocSection.ts","../../src/primitives/DocSpacer.ts","../../src/primitives/DocTable.ts","../../src/primitives/DocText.ts","../../src/theme.ts","../../src/useDocumentExport.ts"],"mappings":";;;;;;;cAGM,eAAA,uBAAe,oBAAA,CAAA,OAAA;OA4ChB,gBAAA,CAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAPe,MAAA;AAAA;;;;;;;SAAM,oBAAA,CAAA,cAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;cCrCpB,SAAA,uBAAS,oBAAA,CAAA,OAAA;SA+BV,aAAA,CAAA,UAAA;;;;;;;;IAHoD,IAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cC5BnD,OAAA,EAS2D,oBAAA,CATpD,oBAAA,CAAA,OAAA;SAYR,aAAA,CAAA,UAAA;;;;;;;kBAHsD,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cCTrD,SAAA,EAEiE,oBAAA,CAFxD,oBAAA,CAAA,OAAA;OAOZ,gBAAA,CAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAL8D,MAAA;AAAA;;;;;;;;;;;;;;;;;;cCF3D,UAAA,EAUoB,oBAAA,CAV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;;;;;;;;;;;;;;;;iBAwBJ,oBAAA,CACd,UAAA,iBACA,OAAA,GAAS,qBAAA,GACR,cAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["extractDocumentTree"],"sources":["../src/DocumentPreview.ts","../src/primitives/DocButton.ts","../src/primitives/DocCode.ts","../src/primitives/DocColumn.ts","../src/primitives/DocDivider.ts","../src/primitives/DocDocument.ts","../src/primitives/DocHeading.ts","../src/primitives/DocImage.ts","../src/primitives/DocLink.ts","../src/primitives/DocList.ts","../src/primitives/DocListItem.ts","../src/primitives/DocPage.ts","../src/primitives/DocPageBreak.ts","../src/primitives/DocQuote.ts","../src/primitives/DocRow.ts","../src/primitives/DocSection.ts","../src/primitives/DocSpacer.ts","../src/primitives/DocTable.ts","../src/primitives/DocText.ts","../src/theme.ts","../src/useDocumentExport.ts"],"sourcesContent":["import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocumentPreview = rocketstyle({\n dimensions: {\n sizes: 'size',\n },\n useBooleans: true,\n})({ name: 'DocumentPreview', component: Element })\n .theme({\n backgroundColor: '#f5f5f5',\n padding: 40,\n })\n .sizes({\n A4: { width: '210mm', minHeight: '297mm' },\n A3: { width: '297mm', minHeight: '420mm' },\n A5: { width: '148mm', minHeight: '210mm' },\n letter: { width: '8.5in', minHeight: '11in' },\n legal: { width: '8.5in', minHeight: '14in' },\n })\n .styles(\n (css: any) => css`\n display: flex;\n flex-direction: column;\n align-items: center;\n min-height: 100vh;\n\n & > * {\n background: white;\n padding: 25mm;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n margin: 20px 0;\n }\n `,\n )\n .statics({ _documentType: 'document' as const })\n .attrs<{\n size?: string\n showPageBreaks?: boolean\n tag: string\n _documentProps: Record<string, unknown>\n }>((props) => ({\n tag: 'div',\n _documentProps: {\n ...(props.size ? { size: props.size } : { size: 'A4' }),\n ...(props.showPageBreaks ? { showPageBreaks: props.showPageBreaks } : {}),\n },\n }))\n\nexport default DocumentPreview\n","import { Text } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocButton = rocketstyle({\n dimensions: {\n variants: 'variant',\n },\n useBooleans: true,\n})({ name: 'DocButton', component: Text })\n .theme({\n fontSize: 14,\n fontWeight: 'bold',\n padding: '10px 24px',\n borderRadius: 4,\n textAlign: 'center',\n textDecoration: 'none',\n })\n .variants({\n primary: {\n backgroundColor: '#4f46e5',\n color: '#ffffff',\n },\n secondary: {\n backgroundColor: '#ffffff',\n color: '#4f46e5',\n borderWidth: 1,\n borderColor: '#4f46e5',\n borderStyle: 'solid',\n },\n })\n .statics({ _documentType: 'button' as const })\n .attrs<{ href?: string; tag: string; _documentProps: { href: string } }>((props) => ({\n tag: 'a',\n _documentProps: { href: props.href ?? '#' },\n }))\n\nexport default DocButton\n","import { Text } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocCode = rocketstyle()({ name: 'DocCode', component: Text })\n .theme({\n fontFamily: 'ui-monospace, monospace',\n fontSize: 13,\n backgroundColor: '#f5f5f5',\n padding: '8px 12px',\n borderRadius: 4,\n })\n .statics({ _documentType: 'code' as const })\n .attrs<{ language?: string; tag: string; _documentProps: Record<string, unknown> }>((props) => ({\n tag: 'pre',\n _documentProps: props.language ? { language: props.language } : {},\n }))\n\nexport default DocCode\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocColumn = rocketstyle()({ name: 'DocColumn', component: Element })\n .statics({ _documentType: 'column' as const })\n .attrs<{ width?: number | string; tag: string; _documentProps: Record<string, unknown> }>(\n (props) => ({\n tag: 'div',\n _documentProps: props.width != null ? { width: props.width } : {},\n }),\n )\n\nexport default DocColumn\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocDivider = rocketstyle()({ name: 'DocDivider', component: Element })\n .theme({\n borderColor: '#dddddd',\n borderWidth: 1,\n })\n .statics({ _documentType: 'divider' as const })\n .attrs<{\n color?: string\n thickness?: number\n tag: string\n _documentProps: Record<string, unknown>\n }>((props) => ({\n tag: 'hr',\n _documentProps: {\n ...(props.color ? { color: props.color } : {}),\n ...(props.thickness ? { thickness: props.thickness } : {}),\n },\n }))\n\nexport default DocDivider\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocDocument = rocketstyle()({ name: 'DocDocument', component: Element })\n .statics({ _documentType: 'document' as const })\n .attrs<{\n title?: string\n author?: string\n subject?: string\n tag: string\n _documentProps: Record<string, unknown>\n }>((props) => ({\n tag: 'div',\n _documentProps: {\n ...(props.title ? { title: props.title } : {}),\n ...(props.author ? { author: props.author } : {}),\n ...(props.subject ? { subject: props.subject } : {}),\n },\n }))\n\nexport default DocDocument\n","import { Text } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocHeading = rocketstyle({\n dimensions: {\n levels: 'level',\n },\n useBooleans: true,\n})({ name: 'DocHeading', component: Text })\n .theme({\n fontWeight: 'bold',\n color: '#1a1a2e',\n marginBottom: 12,\n })\n .levels({\n h1: { fontSize: 32, lineHeight: 1.2 },\n h2: { fontSize: 24, lineHeight: 1.3 },\n h3: { fontSize: 20, lineHeight: 1.4 },\n h4: { fontSize: 18, lineHeight: 1.4 },\n h5: { fontSize: 16, lineHeight: 1.5 },\n h6: { fontSize: 14, lineHeight: 1.5 },\n })\n .statics({ _documentType: 'heading' as const })\n .attrs<{ level?: string; tag: string; _documentProps: { level: number } }>((props) => {\n const lvl = props.level ?? 'h1'\n const num = Number.parseInt(String(lvl).replace('h', ''), 10) || 1\n return {\n tag: lvl,\n _documentProps: { level: num },\n }\n })\n\nexport default DocHeading\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocImage = rocketstyle()({ name: 'DocImage', component: Element })\n .statics({ _documentType: 'image' as const })\n .attrs<{\n src?: string\n alt?: string\n width?: number | string\n height?: number | string\n caption?: string\n tag: string\n _documentProps: Record<string, unknown>\n }>((props) => ({\n tag: 'img',\n _documentProps: {\n src: props.src ?? '',\n ...(props.alt ? { alt: props.alt } : {}),\n ...(props.width ? { width: props.width } : {}),\n ...(props.height ? { height: props.height } : {}),\n ...(props.caption ? { caption: props.caption } : {}),\n },\n }))\n\nexport default DocImage\n","import { Text } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocLink = rocketstyle()({ name: 'DocLink', component: Text })\n .theme({\n color: '#4f46e5',\n textDecoration: 'underline',\n })\n .statics({ _documentType: 'link' as const })\n .attrs<{ href?: string; tag: string; _documentProps: { href: string } }>((props) => ({\n tag: 'a',\n _documentProps: { href: props.href ?? '#' },\n }))\n\nexport default DocLink\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocList = rocketstyle()({ name: 'DocList', component: Element })\n .theme({\n marginBottom: 8,\n paddingLeft: 20,\n })\n .statics({ _documentType: 'list' as const })\n .attrs<{ ordered?: boolean; tag: string; _documentProps: Record<string, unknown> }>((props) => ({\n tag: props.ordered ? 'ol' : 'ul',\n _documentProps: props.ordered ? { ordered: props.ordered } : {},\n }))\n\nexport default DocList\n","import { Text } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocListItem = rocketstyle()({ name: 'DocListItem', component: Text })\n .theme({\n fontSize: 14,\n lineHeight: 1.5,\n })\n .statics({ _documentType: 'list-item' as const })\n .attrs<{ tag: string; _documentProps: Record<string, unknown> }>((_props) => ({\n tag: 'li',\n _documentProps: {},\n }))\n\nexport default DocListItem\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocPage = rocketstyle()({ name: 'DocPage', component: Element })\n .theme({\n backgroundColor: '#ffffff',\n padding: '25mm',\n })\n .statics({ _documentType: 'page' as const })\n .attrs<{\n size?: string\n orientation?: string\n tag: string\n _documentProps: Record<string, unknown>\n }>((props) => ({\n tag: 'div',\n _documentProps: {\n ...(props.size ? { size: props.size } : {}),\n ...(props.orientation ? { orientation: props.orientation } : {}),\n },\n }))\n\nexport default DocPage\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocPageBreak = rocketstyle()({ name: 'DocPageBreak', component: Element })\n .statics({ _documentType: 'page-break' as const })\n .attrs<{ tag: string; _documentProps: Record<string, unknown> }>((_props) => ({\n tag: 'div',\n _documentProps: {},\n }))\n\nexport default DocPageBreak\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocQuote = rocketstyle()({ name: 'DocQuote', component: Element })\n .theme({\n borderColor: '#4f46e5',\n padding: '8px 16px',\n fontStyle: 'italic',\n color: '#666666',\n })\n .statics({ _documentType: 'quote' as const })\n .attrs<{ borderColor?: string; tag: string; _documentProps: Record<string, unknown> }>(\n (props) => ({\n tag: 'blockquote',\n _documentProps: props.borderColor ? { borderColor: props.borderColor } : {},\n }),\n )\n\nexport default DocQuote\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocRow = rocketstyle()({ name: 'DocRow', component: Element })\n .theme({\n direction: 'row',\n })\n .statics({ _documentType: 'row' as const })\n .attrs<{ tag: string; _documentProps: Record<string, unknown> }>((_props) => ({\n tag: 'div',\n _documentProps: {},\n }))\n\nexport default DocRow\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocSection = rocketstyle({\n dimensions: {\n directions: 'direction',\n },\n useBooleans: false,\n})({ name: 'DocSection', component: Element })\n .theme({\n padding: 0,\n })\n .directions({\n column: {},\n row: { direction: 'row' },\n })\n .statics({ _documentType: 'section' as const })\n .attrs<{ direction?: string; tag: string; _documentProps: { direction: string } }>((props) => ({\n tag: 'div',\n _documentProps: { direction: props.direction ?? 'column' },\n }))\n\nexport default DocSection\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocSpacer = rocketstyle()({ name: 'DocSpacer', component: Element })\n .statics({ _documentType: 'spacer' as const })\n .attrs<{ height?: number; tag: string; _documentProps: { height: number } }>((props) => ({\n tag: 'div',\n _documentProps: { height: props.height ?? 16 },\n }))\n\nexport default DocSpacer\n","import { Element } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocTable = rocketstyle({\n dimensions: {\n variants: 'variant',\n },\n useBooleans: true,\n})({ name: 'DocTable', component: Element })\n .theme({\n fontSize: 14,\n borderColor: '#dddddd',\n })\n .statics({ _documentType: 'table' as const })\n .attrs<{\n columns?: unknown[]\n rows?: unknown[]\n headerStyle?: Record<string, unknown>\n striped?: boolean\n bordered?: boolean\n caption?: string\n tag: string\n _documentProps: Record<string, unknown>\n }>((props) => ({\n tag: 'table',\n _documentProps: {\n columns: props.columns ?? [],\n rows: props.rows ?? [],\n ...(props.headerStyle ? { headerStyle: props.headerStyle } : {}),\n ...(props.striped ? { striped: props.striped } : {}),\n ...(props.bordered ? { bordered: props.bordered } : {}),\n ...(props.caption ? { caption: props.caption } : {}),\n },\n }))\n\nexport default DocTable\n","import { Text } from '@pyreon/elements'\nimport rocketstyle from '@pyreon/rocketstyle'\n\nconst DocText = rocketstyle({\n dimensions: {\n variants: 'variant',\n weights: 'weight',\n },\n useBooleans: true,\n})({ name: 'DocText', component: Text })\n .theme({\n color: '#333333',\n lineHeight: 1.5,\n marginBottom: 8,\n })\n .variants({\n body: { fontSize: 14 },\n caption: { fontSize: 12, color: '#666666' },\n label: { fontSize: 11, fontWeight: 'bold' },\n })\n .weights({\n normal: { fontWeight: 'normal' },\n bold: { fontWeight: 'bold' },\n })\n .statics({ _documentType: 'text' as const })\n // .attrs(\n // (props: any) =>\n // ({\n // tag: \"p\",\n .attrs<{ tag: string; _documentProps: Record<string, unknown> }>((_props) => ({\n tag: 'p',\n _documentProps: {},\n }))\n\nexport default DocText\n","export const documentTheme = {\n colors: {\n primary: '#4f46e5',\n text: '#333333',\n textSecondary: '#666666',\n background: '#ffffff',\n border: '#dddddd',\n headerBg: '#1a1a2e',\n headerText: '#ffffff',\n stripedRow: '#f9f9f9',\n },\n fonts: {\n heading: 'system-ui, -apple-system, sans-serif',\n body: 'system-ui, -apple-system, sans-serif',\n mono: 'ui-monospace, monospace',\n },\n sizes: {\n h1: 32,\n h2: 24,\n h3: 20,\n h4: 18,\n h5: 16,\n h6: 14,\n body: 14,\n caption: 12,\n label: 11,\n },\n spacing: {\n xs: 4,\n sm: 8,\n md: 16,\n lg: 24,\n xl: 40,\n },\n}\n\nexport type DocumentTheme = typeof documentTheme\n","import type { DocNode, ExtractOptions } from '@pyreon/connector-document'\nimport { extractDocumentTree } from '@pyreon/connector-document'\n\nexport interface DocumentExportOptions extends ExtractOptions {\n /** Theme object to provide during extraction. */\n theme?: Record<string, unknown>\n /** Mode: 'light' or 'dark'. */\n mode?: 'light' | 'dark'\n}\n\nexport interface DocumentExport {\n /** Extract the DocNode tree from the template. */\n getDocNode: () => DocNode\n}\n\n/**\n * Create a document export helper from a template function.\n *\n * The template function should return a VNode tree built with\n * document primitives (DocHeading, DocText, DocTable, etc.).\n *\n * ```ts\n * const doc = createDocumentExport(() =>\n * DocDocument({ title: 'Report', children: [\n * DocHeading({ h1: true, children: 'Sales Report' }),\n * DocText({ children: 'Q4 summary.' }),\n * ]})\n * )\n *\n * const tree = doc.getDocNode()\n * // Pass to @pyreon/document's render() for any format\n * ```\n *\n * When @pyreon/document is published, this will also expose\n * convenience methods like toPdf(), toDocx(), download(), etc.\n */\nexport function createDocumentExport(\n templateFn: () => unknown,\n options: DocumentExportOptions = {},\n): DocumentExport {\n const getDocNode = (): DocNode => {\n const vnode = templateFn()\n return extractDocumentTree(vnode, options)\n }\n\n return { getDocNode }\n}\n"],"mappings":";;;;;AAGA,MAAM,kBAAkB,YAAY;CAClC,YAAY,EACV,OAAO,QACR;CACD,aAAa;CACd,CAAC,CAAC;CAAE,MAAM;CAAmB,WAAW;CAA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AM,UAAU,EAAE,SAAS,MAAM,SAAS,GAAG,EAAE;EACpD;CACF,EAAE;;;;AC9BL,MAAM,UAAU,YAAY;CAC1B,YAAY;EACV,UAAU;EACV,SAAS;EACV;CACD,aAAa;CACd,CAAC,CAAC;CAAE,MAAM;CAAW,WAAW;CAAM,CAAC,CACrC,MAAM;CACL,OAAO;CACP,YAAY;CACZ,cAAc;CACf,CAAC,CACD,SAAS;CACR,MAAM,EAAE,UAAU,IAAI;CACtB,SAAS;EAAE,UAAU;EAAI,OAAO;EAAW;CAC3C,OAAO;EAAE,UAAU;EAAI,YAAY;EAAQ;CAC5C,CAAC,CACD,QAAQ;CACP,QAAQ,EAAE,YAAY,UAAU;CAChC,MAAM,EAAE,YAAY,QAAQ;CAC7B,CAAC,CACD,QAAQ,EAAE,eAAe,QAAiB,CAAC,CAK3C,OAAiE,YAAY;CAC5E,KAAK;CACL,gBAAgB,EAAE;CACnB,EAAE;;;;AChCL,MAAa,gBAAgB;CAC3B,QAAQ;EACN,SAAS;EACT,MAAM;EACN,eAAe;EACf,YAAY;EACZ,QAAQ;EACR,UAAU;EACV,YAAY;EACZ,YAAY;EACb;CACD,OAAO;EACL,SAAS;EACT,MAAM;EACN,MAAM;EACP;CACD,OAAO;EACL,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACR;CACD,SAAS;EACP,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL;CACF;;;;;;;;;;;;;;;;;;;;;;;;;ACED,SAAgB,qBACd,YACA,UAAiC,EAAE,EACnB;CAChB,MAAM,mBAA4B;AAEhC,SAAOA,sBADO,YAAY,EACQ,QAAQ;;AAG5C,QAAO,EAAE,YAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyreon/document-primitives",
3
- "version": "0.11.10",
3
+ "version": "0.12.1",
4
4
  "description": "Rocketstyle document components — render in browser, export to 18 formats",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -10,7 +10,6 @@
10
10
  },
11
11
  "files": [
12
12
  "lib",
13
- "!lib/**/*.map",
14
13
  "!lib/analysis",
15
14
  "README.md",
16
15
  "LICENSE",
@@ -41,25 +40,25 @@
41
40
  "typecheck": "tsc --noEmit"
42
41
  },
43
42
  "dependencies": {
44
- "@pyreon/connector-document": "^0.11.10"
43
+ "@pyreon/connector-document": "^0.12.1"
45
44
  },
46
45
  "devDependencies": {
47
- "@pyreon/core": "^0.11.10",
48
- "@pyreon/elements": "^0.11.10",
49
- "@pyreon/rocketstyle": "^0.11.10",
50
- "@pyreon/styler": "^0.11.10",
51
- "@pyreon/test-utils": "^0.11.10",
52
- "@pyreon/typescript": "^0.11.10",
53
- "@pyreon/ui-core": "^0.11.10",
46
+ "@pyreon/core": "^0.12.1",
47
+ "@pyreon/elements": "^0.12.1",
48
+ "@pyreon/rocketstyle": "^0.12.1",
49
+ "@pyreon/styler": "^0.12.1",
50
+ "@pyreon/test-utils": "^0.12.1",
51
+ "@pyreon/typescript": "^0.12.1",
52
+ "@pyreon/ui-core": "^0.12.1",
54
53
  "@vitus-labs/tools-rolldown": "^1.15.4"
55
54
  },
56
55
  "peerDependencies": {
57
- "@pyreon/core": "^0.11.10",
58
- "@pyreon/document": "^0.11.10",
59
- "@pyreon/elements": "^0.11.10",
60
- "@pyreon/rocketstyle": "^0.11.10",
61
- "@pyreon/styler": "^0.11.10",
62
- "@pyreon/ui-core": "^0.11.10"
56
+ "@pyreon/core": "^0.12.1",
57
+ "@pyreon/document": "^0.12.1",
58
+ "@pyreon/elements": "^0.12.1",
59
+ "@pyreon/rocketstyle": "^0.12.1",
60
+ "@pyreon/styler": "^0.12.1",
61
+ "@pyreon/ui-core": "^0.12.1"
63
62
  },
64
63
  "engines": {
65
64
  "node": ">= 22"