UNPKG

react-simple-channel

Version:

Lightweight and reactive tab-to-tab communication tool for React & non-React contexts. 一个轻量的 React 多标签页通信工具,支持传统函数和 Hook 两种方式。

103 lines (102 loc) 3.28 kB
{ "name": "react-simple-channel", "version": "1.0.0", "description": "Lightweight and reactive tab-to-tab communication tool for React & non-React contexts. 一个轻量的 React 多标签页通信工具,支持传统函数和 Hook 两种方式。", "main": "dist/index.umd.js", "module": "dist/index.js", "types": "dist/index.d.ts", "keywords": [ "react", "broadcast", "channel", "broadcast-channel", "react-toolkit", "channel-toolkit", "channel", "localstorage", "hooks" ], "license": "MIT", "author": "aiyoudiao", "repository": { "type": "git", "url": "https://github.com/aiyoudiao/react-simple-channel.git" }, "bugs": { "url": "https://github.com/aiyoudiao/react-simple-channel/issues" }, "files": [ "dist", "README.md", "LICENSE" ], "homepage": "https://github.com/aiyoudiao/react-simple-channel#readme", "scripts": { "build": "father build", "test": "vitest", "e2e-test": "playwright test", "e2e-test:coverage": "playwright test --reporter=html", "e2e-test:show": "playwright show-report", "test:ui": "vitest --ui", "coverage": "vitest --coverage", "storybook": "storybook dev -p 6006", "build:storybook": "storybook build -o examples/storybook-static", "dev:demo": "vite", "build:demo": "vite build", "deploy": "node ./node_modules/gh-pages/bin/gh-pages-clean.js && gh-pages -d examples", "build:all": "npm run build && npm run build:demo && npm run build:storybook", "deploy:all": "npm run build:all && npm run deploy", "r": "release-it", "commit": "git-cz", "changelog": "conventional-changelog --config ./commit-config/changelog-config.js -p angular -i -o CHANGELOG.md -r 1", "version": "conventional-changelog --config ./commit-config/changelog-config.js -p angular -i -o CHANGELOG.md && git add CHANGELOG.md" }, "devDependencies": { "@playwright/test": "^1.53.2", "@storybook/addon-docs": "^8.6.12", "@storybook/addon-essentials": "^8.6.12", "@storybook/react": "^8.6.12", "@storybook/react-vite": "^8.6.12", "@tailwindcss/vite": "^4.1.6", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/react": "^18.3.23", "@types/react-dom": "18", "@vitejs/plugin-react": "^4.4.1", "@vitest/coverage-v8": "3.2.4", "@vitest/ui": "^3.1.3", "antd": "5", "autoprefixer": "^10.4.21", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "commitizen": "^4.3.0", "conventional-changelog-cli": "^5.0.0", "cz-git": "^1.9.4", "father": "^4.0.0", "gh-pages": "^6.1.1", "jsdom": "^26.1.0", "playwright": "^1.53.2", "postcss": "^8.5.3", "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^7.1.5", "release-it": "18.1.2", "storybook": "^8.6.12", "tailwind-merge": "^3.3.0", "tailwind-variants": "^1.0.0", "tailwindcss": "^3.4.17", "tailwindcss-animate": "^1.0.7", "typescript": "^5.0.0", "vite": "^6.3.5", "vitest": "^3.1.3" }, "dependencies": { "broadcast-channel": "^7.1.0" }, "config": { "commitizen": { "path": "node_modules/cz-git", "czConfig": "./commit-config/cz-config.js" } } }