{
  "name": "@realtek/core-theme",
  "version": "0.0.72",
  "type": "module",
  "description": "RealTek CORE-THEME — shared React component & admin-screen library (AddFormV1, EditFormV1, ListView, DetailViewV1, ...).",
  "license": "UNLICENSED",
  "repository": {
    "type": "git",
    "url": "https://github.com/Zinnext/CORE-THEME.git"
  },
  "main": "./dist-lib/index.cjs",
  "module": "./dist-lib/index.js",
  "bin": {
    "core-theme-init-mongodb": "./scripts/init-admin-mongodb.js"
  },
  "exports": {
    ".": {
      "import": "./dist-lib/index.js",
      "require": "./dist-lib/index.cjs"
    },
    "./style.css": "./dist-lib/style.css",
    "./package.json": "./package.json"
  },
  "files": [
    "dist-lib",
    "scripts/init-admin-mongodb.js"
  ],
  "sideEffects": [
    "**/*.css"
  ],
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org/"
  },
  "scripts": {
    "install:hooks": "node scripts/install-git-hooks.js",
    "setup": "npm ci && npm run install:hooks",
    "predev": "node scripts/install-git-hooks.js",
    "dev": "vite",
    "pretest": "node scripts/install-git-hooks.js",
    "build": "vite build",
    "prebuild": "node scripts/install-git-hooks.js",
    "build:lib": "vite build --config vite.lib.config.js",
    "postinstall": "node scripts/init-admin-mongodb.js --postinstall",
    "init:mongodb": "node scripts/init-admin-mongodb.js",
    "check:publish": "node -e \"const p=require('./package.json');const s=p.scripts||{};const bad=['preinstall','install','prepare'].filter(k=>s[k]);if(bad.length){console.error('Refusing to publish '+p.name+': remove package lifecycle script(s): '+bad.join(', '));process.exit(1)}const expectedPostinstall='node scripts/init-admin-mongodb.js --postinstall';if(s.postinstall!==expectedPostinstall){console.error('Refusing to publish '+p.name+': postinstall must be '+JSON.stringify(expectedPostinstall)+'.');process.exit(1)}const expected=['dist-lib','scripts/init-admin-mongodb.js'];if(!Array.isArray(p.files)||expected.some(f=>!p.files.includes(f))||p.files.some(f=>!expected.includes(f))){console.error('Refusing to publish '+p.name+': package.json files must be '+JSON.stringify(expected)+'.');process.exit(1)}console.log(p.name+' publish manifest is safe.')\"",
    "prepublishOnly": "npm run check:publish && npm run build:lib",
    "lint": "eslint .",
    "preview": "vite preview",
    "test": "vitest run",
    "test:dashboard": "node scripts/run-test-dashboard.js src/testcomponent",
    "test:dashboard:addform": "node scripts/run-test-dashboard.js src/testcomponent/AddFormTestComponent",
    "test:dashboard:listview": "node scripts/run-test-dashboard.js src/testcomponent/ListViewTestComponent",
    "test:dashboard:detailview": "node scripts/run-test-dashboard.js src/testcomponent/DetailViewTestComponent",
    "test:dashboard:editform": "node scripts/run-test-dashboard.js src/testcomponent/EditFormTestComponent",
    "test:changed-components": "node scripts/run-changed-component-tests.js",
    "pr:test": "node scripts/run-pr-component-tests.js",
    "pr:create": "node scripts/create-pr-with-component-tests.js",
    "test:addform": "vitest run src/testcomponent/AddFormTestComponent",
    "test:addform:unit": "vitest run src/testcomponent/AddFormTestComponent/unit",
    "test:addform:integration": "vitest run src/testcomponent/AddFormTestComponent/integration",
    "test:addform:list": "vitest list src/testcomponent/AddFormTestComponent",
    "test:editform": "vitest run src/testcomponent/EditFormTestComponent",
    "test:editform:unit": "vitest run src/testcomponent/EditFormTestComponent/unit",
    "test:editform:integration": "vitest run src/testcomponent/EditFormTestComponent/integration",
    "test:editform:list": "vitest list src/testcomponent/EditFormTestComponent",
    "test:listview": "vitest run src/testcomponent/ListViewTestComponent",
    "test:listview:unit": "vitest run src/testcomponent/ListViewTestComponent/unit",
    "test:listview:integration": "vitest run src/testcomponent/ListViewTestComponent/integration",
    "test:listview:list": "vitest list src/testcomponent/ListViewTestComponent",
    "test:detailview": "vitest run src/testcomponent/DetailViewTestComponent",
    "test:detailview:unit": "vitest run src/testcomponent/DetailViewTestComponent/unit",
    "test:detailview:integration": "vitest run src/testcomponent/DetailViewTestComponent/integration",
    "test:detailview:list": "vitest list src/testcomponent/DetailViewTestComponent",
    "test:watch": "vitest",
    "test:open": "xdg-open test-results/index.html"
  },
  "peerDependencies": {
    "react": ">=18",
    "react-dom": ">=18",
    "react-router-dom": ">=6"
  },
  "dependencies": {
    "@ant-design/icons": "^6.2.3",
    "@tiptap/extension-link": "^3.27.1",
    "@tiptap/extension-underline": "^3.27.1",
    "@tiptap/pm": "^3.27.1",
    "@tiptap/react": "^3.27.1",
    "@tiptap/starter-kit": "^3.27.1",
    "antd": "^6.4.3",
    "dayjs": "^1.11.21",
    "docx-preview": "^0.3.7",
    "dompurify": "^3.4.11",
    "mongodb": "^7.4.0",
    "prop-types": "^15.8.1",
    "react-pdf": "^10.4.1"
  },
  "devDependencies": {
    "@eslint/js": "^10.0.1",
    "@testing-library/dom": "^10.4.1",
    "@testing-library/jest-dom": "^6.6.3",
    "@testing-library/react": "^16.3.0",
    "@testing-library/user-event": "^14.5.2",
    "@types/react": "^19.2.14",
    "@types/react-dom": "^19.2.3",
    "@vitejs/plugin-react": "^6.0.1",
    "@vitest/ui": "^3.2.4",
    "autoprefixer": "^10.5.0",
    "eslint": "^10.3.0",
    "eslint-plugin-react-hooks": "^7.1.1",
    "eslint-plugin-react-refresh": "^0.5.2",
    "globals": "^17.6.0",
    "jsdom": "^26.1.0",
    "postcss": "^8.5.15",
    "react": "^19.2.6",
    "react-dom": "^19.2.6",
    "react-router-dom": "^7.15.1",
    "tailwindcss": "^3.4.19",
    "vite": "^8.0.12",
    "vitest": "^3.2.4"
  }
}
