{
  "name": "@nulib/clover",
  "description": "Composable IIIF components, for React and as web components: Clover 4.x.",
  "keywords": [
    "iiif",
    "iiif-presentation",
    "iiif-viewer",
    "viewer",
    "react",
    "web-components",
    "custom-elements",
    "deep-zoom",
    "audio",
    "video",
    "3d",
    "map",
    "accessibility"
  ],
  "homepage": "https://clover.iiif.library.northwestern.edu/",
  "bugs": {
    "url": "https://github.com/nulib-ds/clover/issues"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/nulib-ds/clover.git",
    "directory": "packages/clover"
  },
  "license": "MIT",
  "author": {
    "name": "Mat Jordan",
    "email": "mat@northwestern.edu",
    "url": "https://github.com/mathewjordan"
  },
  "sideEffects": [
    "*.css",
    "./dist/web-components/**"
  ],
  "exports": {
    ".": {
      "types": "./dist/index.d.mts",
      "import": "./dist/index.mjs",
      "default": "./dist/index.mjs"
    },
    "./templates": {
      "types": "./dist/templates/index.d.mts",
      "import": "./dist/templates/index.mjs",
      "default": "./dist/templates/index.mjs"
    },
    "./map": {
      "types": "./dist/map/index.d.mts",
      "import": "./dist/map/index.mjs",
      "default": "./dist/map/index.mjs"
    },
    "./three": {
      "types": "./dist/three/index.d.mts",
      "import": "./dist/three/index.mjs",
      "default": "./dist/three/index.mjs"
    },
    "./viewer": {
      "types": "./dist/viewer/index.d.mts",
      "import": "./dist/viewer/index.mjs",
      "default": "./dist/viewer/index.mjs"
    },
    "./canvas": {
      "types": "./dist/canvas/index.d.mts",
      "import": "./dist/canvas/index.mjs",
      "default": "./dist/canvas/index.mjs"
    },
    "./timeline": {
      "types": "./dist/timeline/index.d.mts",
      "import": "./dist/timeline/index.mjs",
      "default": "./dist/timeline/index.mjs"
    },
    "./scene": {
      "types": "./dist/scene/index.d.mts",
      "import": "./dist/scene/index.mjs",
      "default": "./dist/scene/index.mjs"
    },
    "./items": {
      "types": "./dist/items/index.d.mts",
      "import": "./dist/items/index.mjs",
      "default": "./dist/items/index.mjs"
    },
    "./primitives": {
      "types": "./dist/primitives/index.d.mts",
      "import": "./dist/primitives/index.mjs",
      "default": "./dist/primitives/index.mjs"
    },
    "./helpers": {
      "types": "./dist/helpers/index.d.mts",
      "import": "./dist/helpers/index.mjs",
      "default": "./dist/helpers/index.mjs"
    },
    "./web-components": {
      "types": "./dist/web-components/index.d.mts",
      "import": "./dist/web-components/index.mjs",
      "default": "./dist/web-components/index.mjs"
    },
    "./web-components/viewer": {
      "types": "./dist/web-components/viewer/index.d.mts",
      "import": "./dist/web-components/viewer/index.mjs",
      "default": "./dist/web-components/viewer/index.mjs"
    },
    "./web-components/three": "./dist/web-components/three.mjs",
    "./web-components/custom-elements.json": "./dist/web-components/custom-elements.json",
    "./styles.css": "./dist/styles.css",
    "./styles/*.css": "./dist/styles/*.css",
    "./templates.css": "./dist/templates.css",
    "./base.css": "./dist/base.css",
    "./spacing.css": "./dist/spacing.css",
    "./package.json": "./package.json"
  },
  "module": "./dist/index.mjs",
  "customElements": "./dist/web-components/custom-elements.json",
  "types": "./dist/index.d.mts",
  "files": [
    "dist",
    "!dist/**/.vite"
  ],
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "prepublishOnly": "npm run build && npm run test:build",
    "clean": "rimraf dist",
    "build": "npm run clean && vite build && node build/styles.mjs && npm run build:types && npm run build:web-components && npm run build:sizes",
    "test": "vitest",
    "test:ci": "vitest run && vitest run --config vitest.preact.config.mjs",
    "test:build": "node --test build/*.test.mjs",
    "typecheck": "tsc --noEmit -p tsconfig.json",
    "build:types": "dts-bundle-generator --project tsconfig.json --out-file dist/index.d.mts src/index.ts --no-check && dts-bundle-generator --project tsconfig.json --out-file dist/templates/index.d.mts src/templates/index.ts --no-check && dts-bundle-generator --project tsconfig.json --out-file dist/map/index.d.mts src/map/index.ts --no-check && dts-bundle-generator --project tsconfig.json --out-file dist/three/index.d.mts src/three/index.ts --no-check && dts-bundle-generator --project tsconfig.json --out-file dist/helpers/index.d.mts src/helpers/index.ts --no-check && node build/entry-types.mjs",
    "build:web-components": "vite build --config build/web-components.config.mjs && cp build/web-components-loader.js dist/web-components/index.umd.js && vite build --config build/web-components-viewer.config.mjs && node build/dedupe-viewer.mjs && cp build/web-components-loader.js dist/web-components/viewer/index.umd.js && node build/custom-elements.mjs",
    "build:sizes": "node build/sizes.mjs",
    "check:first-view": "node build/first-view.mjs",
    "e2e": "playwright test --config=e2e/playwright.config.ts"
  },
  "dependencies": {
    "@iiif/parser": "^4.0.3",
    "@iiif/presentation-3": "^1.1.3",
    "dompurify": "^3.0.2",
    "hls.js": "^1.5.17",
    "maplibre-gl": "6.11.1"
  },
  "peerDependencies": {
    "react": "^18.2.0 || ^19.0.0",
    "react-dom": "^18.2.0 || ^19.0.0",
    "three": "^0.186.1"
  },
  "peerDependenciesMeta": {
    "three": {
      "optional": true
    }
  },
  "devDependencies": {
    "@iiif/helpers": "^4.0.0",
    "@types/three": "^0.186.0",
    "preact": "^10.24.3",
    "three": "^0.186.1"
  },
  "version": "4.12.3"
}
