react-dictate-button
Version:
A button to start dictation using Web Speech API, with an easy to understand event lifecycle.
151 lines (150 loc) • 5.59 kB
JSON
{
"name": "react-dictate-button",
"version": "4.0.0",
"description": "A button to start dictation using Web Speech API, with an easy to understand event lifecycle.",
"files": [
"./dist/"
],
"exports": {
"./internal": {
"import": {
"types": "./dist/react-dictate-button.internal.d.mts",
"default": "./dist/react-dictate-button.internal.mjs"
},
"require": {
"types": "./dist/react-dictate-button.internal.d.ts",
"default": "./dist/react-dictate-button.internal.js"
}
},
".": {
"import": {
"types": "./dist/react-dictate-button.d.mts",
"default": "./dist/react-dictate-button.mjs"
},
"require": {
"types": "./dist/react-dictate-button.d.ts",
"default": "./dist/react-dictate-button.js"
}
}
},
"main": "./dist/react-dictate-button.js",
"typings": "./dist/react-dictate-button.d.ts",
"scripts": {
"build": "tsup",
"bump": "npm run bump:prod && npm run bump:dev",
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"precommit": "npm run precommit:eslint && npm run precommit:publint && npm run precommit:typescript:production && npm run precommit:typescript:test",
"precommit:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint ./src/",
"precommit:publint": "publint",
"precommit:typescript:production": "tsc --noEmit --project ./src/tsconfig.precommit.production.json",
"precommit:typescript:test": "tsc --noEmit --project ./src/tsconfig.precommit.test.json",
"prepack": "cp ../../CHANGELOG.md . && cp ../../LICENSE . && cp ../../README.md .",
"start": "npm run build -- --onSuccess=\"touch ../pages/src/index.jsx ../integration-test/jest.config.json\" --watch",
"switch": "cat package.json | jq --arg SWITCH_NAME $SWITCH_NAME -r '(.[\"switch:\" + $SWITCH_NAME] // {}) as $TEMPLATE | .devDependencies += ($TEMPLATE.devDependencies // {}) | .dependencies += ($TEMPLATE.dependencies // {})' | tee ./package.json.tmp && mv ./package.json.tmp ./package.json",
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/compulim/react-dictate-button.git"
},
"keywords": [
"dictate",
"dictation",
"rtc",
"speech recognition",
"speech to text",
"voice recognition",
"voice",
"web rtc",
"web speech",
"webrtc",
"webspeech"
],
"author": "William Wong (https://github.com/compulim)",
"license": "MIT",
"bugs": {
"url": "https://github.com/compulim/react-dictate-button/issues"
},
"homepage": "https://github.com/compulim/react-dictate-button#readme",
"switch:react-16": {
"devDependencies": {
"@testing-library/react": "^12",
"@testing-library/react-hooks": "latest",
"@types/react": "^16",
"@types/react-dom": "^16",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-test-renderer": "16.8.6"
}
},
"switch:react-17": {
"devDependencies": {
"@testing-library/react": "^12",
"@testing-library/react-hooks": "latest",
"@types/react": "^17",
"@types/react-dom": "^17",
"react": "17.0.0",
"react-dom": "17.0.0",
"react-test-renderer": "17.0.0"
}
},
"switch:react-18": {
"devDependencies": {
"@testing-library/react": "^16",
"@types/react": "^18",
"@types/react-dom": "^18",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-test-renderer": "18.0.0"
}
},
"pinDependencies": {
"@testing-library/react": "^16",
"@types/react": "^18",
"@types/react-dom": "^18",
"react": "^18",
"react-dom": "^18",
"react-test-renderer": "^18"
},
"devDependencies": {
"@babel/preset-env": "^7.25.8",
"@babel/preset-react": "^7.25.7",
"@babel/preset-typescript": "^7.25.7",
"@fluentui/react": "^8.121.4",
"@happy-dom/jest-environment": "^16.7.3",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@tsconfig/recommended": "^1.0.7",
"@tsconfig/strictest": "^2.0.5",
"@types/dom-speech-recognition": "^0.0.4",
"@types/jest": "^29.5.13",
"@types/lodash": "^4.17.10",
"@types/node": "^22.7.5",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.2",
"babel-plugin-transform-define": "^2.1.4",
"core-js": "^3.38.1",
"esbuild": "^0.24.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"publint": "^0.2.11",
"react": "^18.3.1",
"react-dictate-button-mocked-speech-recognition": "^0.0.0-0",
"react-dom": "^18.3.1",
"react-test-renderer": "^18.3.1",
"react-wrap-with": "^0.1.0",
"tsup": "^8.3.0",
"type-fest": "^4.32.0",
"typescript": "^5.6.3"
},
"peerDependencies": {
"react": ">=16.8.6"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.14.0",
"core-js": "^3.12.1",
"react-dictate-button": "^4.0.0",
"use-ref-from": "^0.1.0"
}
}