Bumps the minor-and-patch group with 9 updates in the / directory: | Package | From | To | | --- | --- | --- | | [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `8.0.14` | `8.1.0` | | [vite-plus](https://github.com/voidzero-dev/vite-plus/tree/HEAD/packages/cli) | `0.1.23` | `0.2.1` | | [acorn](https://github.com/acornjs/acorn) | `8.16.0` | `8.17.0` | | [dompurify](https://github.com/cure53/DOMPurify) | `3.4.7` | `3.4.11` | | [lucide](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide) | `1.17.0` | `1.21.0` | | [antd](https://github.com/ant-design/ant-design) | `6.4.3` | `6.5.0` | | [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) | `1.17.0` | `1.21.0` | | [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) | `6.0.2` | `6.0.3` | | [@napi-rs/canvas](https://github.com/Brooooooklyn/canvas) | `1.0.0` | `1.0.1` | Bumps the minor-and-patch group with 7 updates in the /playground directory: | Package | From | To | | --- | --- | --- | | [vite-plus](https://github.com/voidzero-dev/vite-plus/tree/HEAD/packages/cli) | `0.1.23` | `0.2.1` | | [@sentry/react](https://github.com/getsentry/sentry-javascript) | `10.55.0` | `10.62.0` | | [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) | `7.16.0` | `7.18.0` | | [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) | `4.3.0` | `4.3.1` | | [autoprefixer](https://github.com/postcss/autoprefixer) | `10.5.0` | `10.5.2` | | [postcss](https://github.com/postcss/postcss) | `8.5.15` | `8.5.16` | | [puppeteer](https://github.com/puppeteer/puppeteer) | `25.1.0` | `25.2.1` | Bumps the minor-and-patch group with 2 updates in the /website directory: [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom). Updates `vite` from 8.0.14 to 8.1.0 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/create-vite@8.1.0/packages/vite) Updates `vite-plus` from 0.1.23 to 0.2.1 - [Release notes](https://github.com/voidzero-dev/vite-plus/releases) - [Commits](https://github.com/voidzero-dev/vite-plus/commits/v0.2.1/packages/cli) Updates `vitest` from 4.1.7 to 4.1.9 - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.9/packages/vitest) Updates `acorn` from 8.16.0 to 8.17.0 - [Commits](https://github.com/acornjs/acorn/compare/8.16.0...8.17.0) Updates `dompurify` from 3.4.7 to 3.4.11 - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/3.4.7...3.4.11) Updates `lucide` from 1.17.0 to 1.21.0 - [Release notes](https://github.com/lucide-icons/lucide/releases) - [Commits](https://github.com/lucide-icons/lucide/commits/1.21.0/packages/lucide) Updates `antd` from 6.4.3 to 6.5.0 - [Release notes](https://github.com/ant-design/ant-design/releases) - [Changelog](https://github.com/ant-design/ant-design/blob/master/CHANGELOG.en-US.md) - [Commits](https://github.com/ant-design/ant-design/compare/6.4.3...6.5.0) Updates `lucide-react` from 1.17.0 to 1.21.0 - [Release notes](https://github.com/lucide-icons/lucide/releases) - [Commits](https://github.com/lucide-icons/lucide/commits/1.21.0/packages/lucide-react) Updates `@vitejs/plugin-react` from 6.0.2 to 6.0.3 - [Release notes](https://github.com/vitejs/vite-plugin-react/releases) - [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@6.0.3/packages/plugin-react) Updates `@napi-rs/canvas` from 1.0.0 to 1.0.1 - [Release notes](https://github.com/Brooooooklyn/canvas/releases) - [Changelog](https://github.com/Brooooooklyn/canvas/blob/main/CHANGELOG.md) - [Commits](https://github.com/Brooooooklyn/canvas/compare/v1.0.0...v1.0.1) Updates `vite-plus` from 0.1.23 to 0.2.1 - [Release notes](https://github.com/voidzero-dev/vite-plus/releases) - [Commits](https://github.com/voidzero-dev/vite-plus/commits/v0.2.1/packages/cli) Updates `vitest` from 4.1.7 to 4.1.9 - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.9/packages/vitest) Updates `@sentry/react` from 10.55.0 to 10.62.0 - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/10.55.0...10.62.0) Updates `react-router-dom` from 7.16.0 to 7.18.0 - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/react-router-dom@7.18.0/packages/react-router-dom/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@7.18.0/packages/react-router-dom) Updates `@tailwindcss/postcss` from 4.3.0 to 4.3.1 - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.1/packages/@tailwindcss-postcss) Updates `autoprefixer` from 10.5.0 to 10.5.2 - [Release notes](https://github.com/postcss/autoprefixer/releases) - [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/autoprefixer/compare/10.5.0...10.5.2) Updates `postcss` from 8.5.15 to 8.5.16 - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.5.15...8.5.16) Updates `puppeteer` from 25.1.0 to 25.2.1 - [Release notes](https://github.com/puppeteer/puppeteer/releases) - [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md) - [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-v25.1.0...puppeteer-v25.2.1) Updates `tailwindcss` from 4.3.0 to 4.3.1 - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.1/packages/tailwindcss) Updates `react` from 19.2.6 to 19.2.7 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v19.2.7/packages/react) Updates `react-dom` from 19.2.6 to 19.2.7 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v19.2.7/packages/react-dom) --- updated-dependencies: - dependency-name: vite dependency-version: 8.1.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: vite-plus dependency-version: 0.2.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: vitest dependency-version: 4.1.9 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: acorn dependency-version: 8.17.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: dompurify dependency-version: 3.4.11 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: lucide dependency-version: 1.21.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: antd dependency-version: 6.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: lucide-react dependency-version: 1.21.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: "@vitejs/plugin-react" dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: "@napi-rs/canvas" dependency-version: 1.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: vite-plus dependency-version: 0.2.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: vitest dependency-version: 4.1.9 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: "@sentry/react" dependency-version: 10.62.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: react-router-dom dependency-version: 7.18.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: "@tailwindcss/postcss" dependency-version: 4.3.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: autoprefixer dependency-version: 10.5.2 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: postcss dependency-version: 8.5.16 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: puppeteer dependency-version: 25.2.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: tailwindcss dependency-version: 4.3.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: react dependency-version: 19.2.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: react-dom dependency-version: 19.2.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This repository is a playground and development environment for the https://github.com/pdfme/pdfme library. It can be started with the following command.
root directory
$ npm install
$ npm run build
playground directory
$ npm install
$ npm run dev
If you are developing a pdfme library, please refer to the following document. https://github.com/pdfme/pdfme/blob/main/DEVELOPMENT.md
How to Add Sample Templates
The playground/public/template-assets directory is the source of the sample template gallery used by the playground.
Each gallery item is a directory under playground/public/template-assets/<template-name>/.
Designer templates
Use this flow for normal pdfme templates:
- Create a kebab-case directory in
playground/public/template-assets.- Example:
playground/public/template-assets/invoice-blue.
- Example:
- Put
template.jsonin that directory.- You can create it with the playground Designer and download the Template JSON.
- Add gallery metadata in
playground/public/template-assets/<template-name>/metadata.json.
Example:
{
"order": 200,
"description": "A blue invoice variant for a more branded business document.",
"tags": ["Invoice", "Business", "Table"]
}
Supported metadata fields:
title: optional display title. If omitted, the directory name is converted from kebab-case.order: optional gallery sort order. Lower numbers appear first; leave gaps such as10,20, and30so new templates can be inserted later. Templates withoutorderappear after ordered templates and are sorted by title/name.description: short card description shown in the template gallery.tags: filter tags shown on the card and in the gallery filter.sourceKind: optional generation kind. Use"designer","jsx", or"md2pdf". Normaltemplate.jsonsamples can omit this; they default to"designer".status: optional publish status. Use"draft"to keep the template files available by direct URL while excluding the template from the galleryindex.json; omit it or use"published"for gallery templates.
Template metadata is validated during asset generation. Every template directory with a
template.json must have metadata, and metadata entries without a matching template directory fail
the build.
JSX and md2pdf starters
JSX and md2pdf starters live in the same template-assets gallery. Their source is stored beside
the generated template so the source, metadata, thumbnail, and generated template.json move
together.
- JSX starters use
playground/public/template-assets/<starter-name>/source.tsx. - md2pdf starters use
playground/public/template-assets/<starter-name>/source.md. - Add
metadata.jsonin the same directory withsourceKind: "jsx"orsourceKind: "md2pdf". - Use names such as
jsx-invoiceormd2pdf-overviewso the gallery type can also be inferred. - Give generated starters a human-readable
title; otherwise the gallery falls back to the directory name. - Use
orderwhen a starter should appear in the first screen of the gallery.
Example:
{
"title": "Invoice layout",
"description": "A two-page invoice generated from JSX authoring source.",
"sourceKind": "jsx",
"tags": ["Invoice", "Business", "Table"]
}
Regenerate assets
After changing templates or metadata, run this from the playground directory:
npm run generate-template-assets
This command:
- generates JSX/md2pdf starter
template.jsonfiles, - regenerates
index.json, - creates or updates
thumbnail.pngfor each template.
npm run dev and npm run build also run this command automatically.
Before committing, include the updated template directory and metadata files. The generated
index.json, thumbnail PNGs, and hash-map cache files are intentionally ignored.