UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

224 lines (223 loc) 8.15 kB
{ "name": "stream-chat-react", "version": "10.0.1", "description": "React components to create chat conversations or livestream style chat", "author": "GetStream", "homepage": "https://getstream.io/chat/", "repository": { "type": "git", "url": "https://github.com/GetStream/stream-chat-react.git" }, "typings": "dist/index.d.ts", "main": "dist/index.cjs.js", "module": "dist/index.js", "jsnext:main": "dist/index.js", "style": "dist/css/v2/index.css", "sideEffects": [ "*.css" ], "source": "src/index.tsx", "jsdelivr": "./dist/browser.full-bundle.min.js", "keywords": [ "chat", "messaging", "conversation", "react", "stream", "getstream", "getstream.io" ], "dependencies": { "@braintree/sanitize-url": "6.0.0", "@popperjs/core": "^2.11.5", "@stream-io/stream-chat-css": "3.0.0", "clsx": "^1.1.1", "dayjs": "^1.10.4", "emoji-mart": "3.0.1", "emoji-regex": "^9.2.0", "i18next": "^21.6.14", "isomorphic-ws": "^4.0.1", "linkifyjs": "^2.1.9", "lodash.debounce": "^4.0.8", "lodash.throttle": "^4.1.1", "lodash.uniqby": "^4.7.0", "mdast-util-find-and-replace": "^2.2.1", "nanoid": "^3.3.4", "pretty-bytes": "^5.4.1", "prop-types": "^15.7.2", "react-dropzone": "^14.2.2", "react-fast-compare": "^3.2.0", "react-file-utils": "^1.2.0", "react-image-gallery": "^1.2.7", "react-is": "^18.1.0", "react-markdown": "^5.0.3", "react-player": "^2.10.1", "react-popper": "^2.3.0", "react-textarea-autosize": "^8.3.0", "react-virtuoso": "^2.16.5", "textarea-caret": "^3.1.0" }, "optionalDependencies": { "@stream-io/transliterate": "^1.5.5", "mml-react": "^0.4.7" }, "peerDependencies": { "react": "^18.0.0 || ^17.0.0 || ^16.8.0", "react-dom": "^18.0.0 || ^17.0.0 || ^16.8.0", "stream-chat": "^7.1.0" }, "files": [ "dist", "package.json", "README.md" ], "devDependencies": { "@axe-core/react": "^4.3.2", "@babel/cli": "^7.12.8", "@babel/core": "^7.12.9", "@babel/node": "^7.12.6", "@babel/plugin-proposal-class-properties": "^7.12.1", "@babel/plugin-transform-runtime": "^7.12.1", "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", "@babel/preset-typescript": "^7.12.7", "@commitlint/cli": "^16.2.3", "@commitlint/config-conventional": "^16.2.1", "@ladle/react": "^0.16.0", "@playwright/test": "^1.22.0", "@rollup/plugin-babel": "^5.2.1", "@rollup/plugin-image": "^2.1.1", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^10.0.0", "@rollup/plugin-replace": "^2.3.4", "@rollup/plugin-typescript": "8.2.1", "@semantic-release/changelog": "^6.0.1", "@semantic-release/git": "^10.0.1", "@stream-io/rollup-plugin-node-builtins": "^2.1.5", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.1.1", "@testing-library/react-hooks": "^8.0.0", "@types/deep-equal": "^1.0.1", "@types/dotenv": "^8.2.0", "@types/emoji-mart": "^3.0.9", "@types/linkifyjs": "^2.1.3", "@types/lodash.debounce": "^4.0.7", "@types/lodash.throttle": "^4.1.7", "@types/lodash.uniqby": "^4.7.7", "@types/mdast": "^3.0.10", "@types/moment": "^2.13.0", "@types/react": "^18.0.8", "@types/react-dom": "^18.0.3", "@types/react-image-gallery": "^1.0.5", "@types/react-is": "^17.0.3", "@types/textarea-caret": "3.0.0", "@types/uuid": "^8.3.0", "@typescript-eslint/eslint-plugin": "4.27.0", "@typescript-eslint/parser": "4.27.0", "autoprefixer": "^10.0.3", "babel-eslint": "^10.1.0", "babel-jest": "^26.3.0", "babel-loader": "8.2.2", "babel-plugin-module-resolver": "^4.1.0", "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", "codecov": "^3.8.1", "core-js": "^3.6.5", "css-loader": "^5.0.1", "eslint": "7.14.0", "eslint-config-airbnb": "^18.2.1", "eslint-config-prettier": "^6.15.0", "eslint-config-react-app": "^6.0.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-import-resolver-babel-module": "^5.2.0", "eslint-plugin-babel": "^5.3.1", "eslint-plugin-flowtype": "^5.2.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jest": "^24.1.3", "eslint-plugin-jest-dom": "^3.3.0", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-markdown": "^1.0.2", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-react": "^7.21.5", "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-sort-destructure-keys": "1.3.5", "eslint-plugin-sort-keys-fix": "^1.1.2", "eslint-plugin-typescript-sort-keys": "1.5.0", "file-loader": "^6.2.0", "htmlparser2": "^5.0.1", "husky": "^4.3.0", "i18next-parser": "^6.0.0", "jest": "^26.6.3", "jest-axe": "^6.0.0", "moment": "^2.29.1", "postcss": "^8.1.10", "postcss-loader": "^4.1.0", "prettier": "^2.2.0", "react": "^18.1.0", "react-dom": "^18.1.0", "react-test-renderer": "^18.1.0", "rollup": "^2.33.3", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-insert": "^1.3.1", "rollup-plugin-node-globals": "^1.4.0", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-url": "^3.0.1", "rollup-plugin-visualizer": "^4.2.0", "semantic-release": "^19.0.2", "semantic-release-cli": "^5.4.4", "stream-chat": "^7.1.0", "style-loader": "^2.0.0", "ts-jest": "^26.5.1", "tslib": "2.3.0", "typescript": "^4.7.4", "url-loader": "^4.1.1", "webpack": "4.44.2", "webpack-cli": "^3.3.12", "webpack-dev-server": "~3.11.0" }, "husky": { "hooks": { "pre-commit": "dotgit/hooks/pre-commit-format.sh && dotgit/hooks/pre-commit-reject-binaries.py", "commit-msg": "npx commitlint --edit $1" } }, "scripts": { "analyze": "yarn build -- --stats && webpack-bundle-analyzer build/bundle-stats.json", "build": "rm -rf dist && mkdir -p dist/assets && yarn --silent copy-version && yarn build-translations && yarn types && yarn bundle", "bundle": "rollup -c", "bundle-size": "BUNDLE_SIZE=true yarn bundle", "build-translations": "i18next", "copy-version": "echo '\u001b[34mℹ\u001b[0m Copying Version to \u001b[34msrc/version.ts\u001b[0m' && PACKAGE_VERSION=$(node -pe 'require(`./package.json`).version') && PACKAGE_STRING=\"'$PACKAGE_VERSION'\" && echo 'export const version = '$PACKAGE_STRING';' > ./src/version.ts && echo '\u001b[32m✓\u001b[0m Done Copying Version'", "coverage": "jest --collectCoverage && codecov", "eslint": "eslint '**/*.{js,md,ts,jsx,tsx}' --max-warnings 0", "lint": "prettier --list-different 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc babel.config.js && eslint 'src/**/*.{js,ts,tsx,md}' --max-warnings 0 && yarn validate-translations", "lint-fix": "prettier --write 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc babel.config.js && eslint --fix 'src/**/*.{js,ts,tsx,md}' --max-warnings 0", "prettier": "prettier --list-different '**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc babel.config.js", "prettier-fix": "prettier --write '**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc babel.config.js", "start": "tsc --watch", "prepare": "yarn run build", "preversion": "yarn install", "test": "jest", "types": "tsc --strict", "validate-translations": "node scripts/validate-translations.js", "validate-cjs": "node scripts/validate-cjs-bundle.cjs", "semantic-release": "semantic-release", "browse-examples": "ladle serve", "e2e": "playwright test", "e2e-fixtures": "node e2e/fixtures.mjs", "e2e-container": "./e2e/scripts/run_in_container.sh", "docs-merge": "scripts/merge-stream-chat-css-docs.sh" }, "resolutions": { "ast-types": "^0.14.0", "@types/unist": "^2.0.6" }, "browserslist": [ ">0.2%", "not ie <= 11", "not op_mini all" ] }