Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

3.2 KB
Raw Blame
{
    "name": "@univerjs/design",
    "version": "1.5.0",
    "private": false,
    "description": "Shared React design components, styles, and locale resources for Univer UI packages.",
    "author": "DreamNum Co., Ltd. <[email protected]>",
    "license": "Apache-2.0",
    "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/univer"
    },
    "homepage": "https://univer.ai",
    "repository": {
        "type": "git",
        "url": "https://github.com/dream-num/univer"
    },
    "bugs": {
        "url": "https://github.com/dream-num/univer/issues"
    },
    "keywords": [
        "univer",
        "design-system",
        "ui",
        "react",
        "components"
    ],
    "exports": {
        ".": "./src/index.ts",
        "./*": "./src/*",
        "./locale/*": "./src/locale/*.ts"
    },
    "main": "./src/index.ts",
    "types": "./lib/types/index.d.ts",
    "publishConfig": {
        "access": "public",
        "main": "./lib/es/index.js",
        "module": "./lib/es/index.js",
        "exports": {
            ".": {
                "import": "./lib/es/index.js",
                "require": "./lib/cjs/index.js",
                "types": "./lib/types/index.d.ts"
            },
            "./*": {
                "import": "./lib/es/*",
                "require": "./lib/cjs/*",
                "types": "./lib/types/index.d.ts"
            },
            "./locale/*": {
                "import": "./lib/es/locale/*.js",
                "require": "./lib/cjs/locale/*.js",
                "types": "./lib/types/locale/*.d.ts"
            },
            "./lib/*": "./lib/*"
        }
    },
    "directories": {
        "lib": "lib"
    },
    "files": [
        "lib"
    ],
    "scripts": {
        "prepare": "node scripts/generate-clsx.mts",
        "test": "vitest run",
        "test:watch": "vitest",
        "coverage": "vitest run --coverage",
        "typecheck": "tsrs --noEmit",
        "build:bundle": "univer-cli build",
        "build:types": "tsrs -p tsconfig.node.json",
        "build": "pnpm run build:bundle && pnpm run build:types"
    },
    "peerDependencies": {
        "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
        "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
    },
    "dependencies": {
        "@radix-ui/react-dialog": "^1.1.23",
        "@radix-ui/react-direction": "^1.1.4",
        "@radix-ui/react-dropdown-menu": "^2.1.24",
        "@radix-ui/react-hover-card": "^1.1.23",
        "@radix-ui/react-popover": "^1.1.23",
        "@radix-ui/react-separator": "^1.1.15",
        "@radix-ui/react-slot": "^1.3.3",
        "@univerjs/icons": "1.47.0",
        "class-variance-authority": "^0.7.1",
        "cmdk": "1.1.1",
        "sonner": "^2.0.8"
    },
    "devDependencies": {
        "@testing-library/jest-dom": "7.0.1",
        "@testing-library/react": "^16.3.3",
        "@univerjs-infra/shared": "workspace:*",
        "postcss": "^8.5.32",
        "react": "18.3.1",
        "react-dom": "18.3.1",
        "tailwind-merge": "2.6.0",
        "tailwindcss": "3.4.18",
        "tailwindcss-animate": "^1.0.7",
        "tsrs": "0.23.0-ts7.1.0-beta",
        "vitest": "^5.1.0"
    }
}