Initial Commit
This commit is contained in:
188
packages/devtools/docs/pdf/package.json
Normal file
188
packages/devtools/docs/pdf/package.json
Normal file
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"name": "@suaveplan/pdf",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "Server-tier PDF 1.4 generation toolkit (Chunks A–D): typed PDF error registry, Zod boundary schemas, OpenTelemetry counters + histograms, unit conversion, hex/RGB colour utilities, page-size + margin types, hand-rolled PDF 1.4 binary writer (with FlateDecode + AbortSignal + injectable Clock), chainable content-stream encoder, document elements (text / table / image / divider) with Zod boundaries and AbortSignal propagation, style cascade with default theme, block-flow layout engine with header/footer slots, fluent DocumentBuilder, and orchestrating renderDocument entry point round-trippable via pdf-parse.",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./error-codes": {
|
||||
"import": {
|
||||
"types": "./dist/error-codes/error-codes.d.ts",
|
||||
"default": "./dist/error-codes/error-codes.js"
|
||||
}
|
||||
},
|
||||
"./schemas": {
|
||||
"import": {
|
||||
"types": "./dist/schemas/schemas.d.ts",
|
||||
"default": "./dist/schemas/schemas.js"
|
||||
}
|
||||
},
|
||||
"./telemetry": {
|
||||
"import": {
|
||||
"types": "./dist/telemetry/telemetry.d.ts",
|
||||
"default": "./dist/telemetry/telemetry.js"
|
||||
}
|
||||
},
|
||||
"./units": {
|
||||
"import": {
|
||||
"types": "./dist/units/units.d.ts",
|
||||
"default": "./dist/units/units.js"
|
||||
}
|
||||
},
|
||||
"./colors": {
|
||||
"import": {
|
||||
"types": "./dist/colors/colors.d.ts",
|
||||
"default": "./dist/colors/colors.js"
|
||||
}
|
||||
},
|
||||
"./pdf-writer": {
|
||||
"import": {
|
||||
"types": "./dist/pdf-writer/pdf-writer.d.ts",
|
||||
"default": "./dist/pdf-writer/pdf-writer.js"
|
||||
}
|
||||
},
|
||||
"./content-stream": {
|
||||
"import": {
|
||||
"types": "./dist/content-stream/content-stream.d.ts",
|
||||
"default": "./dist/content-stream/content-stream.js"
|
||||
}
|
||||
},
|
||||
"./text-element": {
|
||||
"import": {
|
||||
"types": "./dist/text-element/text-element.d.ts",
|
||||
"default": "./dist/text-element/text-element.js"
|
||||
}
|
||||
},
|
||||
"./table-element": {
|
||||
"import": {
|
||||
"types": "./dist/table-element/table-element.d.ts",
|
||||
"default": "./dist/table-element/table-element.js"
|
||||
}
|
||||
},
|
||||
"./image-element": {
|
||||
"import": {
|
||||
"types": "./dist/image-element/image-element.d.ts",
|
||||
"default": "./dist/image-element/image-element.js"
|
||||
}
|
||||
},
|
||||
"./divider-element": {
|
||||
"import": {
|
||||
"types": "./dist/divider-element/divider-element.d.ts",
|
||||
"default": "./dist/divider-element/divider-element.js"
|
||||
}
|
||||
},
|
||||
"./style-resolver": {
|
||||
"import": {
|
||||
"types": "./dist/style-resolver/style-resolver.d.ts",
|
||||
"default": "./dist/style-resolver/style-resolver.js"
|
||||
}
|
||||
},
|
||||
"./layout-engine": {
|
||||
"import": {
|
||||
"types": "./dist/layout-engine/layout-engine.d.ts",
|
||||
"default": "./dist/layout-engine/layout-engine.js"
|
||||
}
|
||||
},
|
||||
"./document-builder": {
|
||||
"import": {
|
||||
"types": "./dist/document-builder/document-builder.d.ts",
|
||||
"default": "./dist/document-builder/document-builder.js"
|
||||
}
|
||||
},
|
||||
"./renderer": {
|
||||
"import": {
|
||||
"types": "./dist/renderer/renderer.d.ts",
|
||||
"default": "./dist/renderer/renderer.js"
|
||||
}
|
||||
},
|
||||
"./render-pipeline": {
|
||||
"import": {
|
||||
"types": "./dist/render-pipeline/render-pipeline.d.ts",
|
||||
"default": "./dist/render-pipeline/render-pipeline.js"
|
||||
}
|
||||
},
|
||||
"./image-registry": {
|
||||
"import": {
|
||||
"types": "./dist/image-registry/image-registry.d.ts",
|
||||
"default": "./dist/image-registry/image-registry.js"
|
||||
}
|
||||
},
|
||||
"./types": {
|
||||
"import": {
|
||||
"types": "./dist/types/index.d.ts",
|
||||
"default": "./dist/types/index.js"
|
||||
}
|
||||
},
|
||||
"./templates/receipt-template": {
|
||||
"import": {
|
||||
"types": "./dist/templates/receipt-template/receipt-template.d.ts",
|
||||
"default": "./dist/templates/receipt-template/receipt-template.js"
|
||||
}
|
||||
},
|
||||
"./templates/report-template": {
|
||||
"import": {
|
||||
"types": "./dist/templates/report-template/report-template.d.ts",
|
||||
"default": "./dist/templates/report-template/report-template.js"
|
||||
}
|
||||
},
|
||||
"./templates/invoice-template": {
|
||||
"import": {
|
||||
"types": "./dist/templates/invoice-template/invoice-template.d.ts",
|
||||
"default": "./dist/templates/invoice-template/invoice-template.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage --passWithNoTests",
|
||||
"lint": "bunx biome check src/",
|
||||
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
||||
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
||||
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
||||
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
||||
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@opentelemetry/api": "catalog:observability",
|
||||
"@suaveplan/error": "workspace:^",
|
||||
"@suaveplan/opentelemetry": "workspace:^",
|
||||
"@suaveplan/types": "workspace:^",
|
||||
"pngjs": "^6.0.0",
|
||||
"tslib": "catalog:build",
|
||||
"zod": "catalog:forms"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@suaveplan/testing": "workspace:^",
|
||||
"@types/node": "catalog:",
|
||||
"@types/pngjs": "^6.0.5",
|
||||
"@vitest/coverage-istanbul": "catalog:testing",
|
||||
"pdf-parse": "^2.4.5",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:build",
|
||||
"vite-plugin-dts": "catalog:build",
|
||||
"vitest": "catalog:testing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user