{
  "name": "@dev-centr/themed-svg",
  "version": "0.2.3",
  "description": "A semantic light/dark theming standard and structural transformer for web SVG diagrams.",
  "type": "module",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/dev-centr/themed-svg.git"
  },
  "bugs": {
    "url": "https://github.com/dev-centr/themed-svg/issues"
  },
  "homepage": "https://github.com/dev-centr/themed-svg#readme",
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org/"
  },
  "engines": {
    "node": ">=20"
  },
  "main": "./dist/src/index.js",
  "types": "./dist/src/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/src/index.d.ts",
      "import": "./dist/src/index.js"
    },
    "./runtime": {
      "types": "./dist/src/runtime.d.ts",
      "import": "./dist/src/runtime.js"
    },
    "./protocol": {
      "types": "./dist/src/protocol.d.ts",
      "import": "./dist/src/protocol.js"
    },
    "./register": "./browser/themed-svg-element.js",
    "./schema": "./schema/themed-svg-manifest-v1.schema.json",
    "./schema/stdio-v1": "./schema/themed-svg-stdio-v1.schema.json",
    "./package.json": "./package.json"
  },
  "bin": {
    "themed-svg": "./bin/themed-svg.js",
    "themed-svg-stdio": "./bin/themed-svg-stdio.js"
  },
  "files": [
    "dist/src",
    "browser/themed-svg-element.js",
    "bin",
    "schema",
    "README.md",
    "README.adoc",
    "CHANGELOG.adoc",
    "changelog-details",
    "LICENSE"
  ],
  "dependencies": {
    "@xmldom/xmldom": "^0.8.11",
    "color-name": "^2.1.1",
    "dompurify": "^3.4.15",
    "postcss": "^8.5.6",
    "postcss-value-parser": "^4.2.0",
    "saxes": "^6.0.0"
  },
  "devDependencies": {
    "@playwright/test": "^1.61.0",
    "@types/color-name": "^2.0.0",
    "@types/node": "^22.15.0",
    "esbuild": "^0.28.2",
    "typescript": "^5.8.3"
  },
  "scripts": {
    "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
    "build": "pnpm run clean && tsc -p tsconfig.json && pnpm run build:browser",
    "build:browser": "esbuild src/runtime-register.ts --bundle --format=esm --platform=browser --target=es2022 --outfile=browser/themed-svg-element.js",
    "test": "pnpm run test:unit && pnpm run test:browser",
    "test:unit": "pnpm run build && node --test dist/test/*.test.js",
    "test:browser": "pnpm run build && playwright test --project=chromium"
  }
}