@mux/mux-video-react
Version:
A custom mux video element for React that Just Works™
89 lines (88 loc) • 2.95 kB
JSON
{
"name": "@mux/mux-video-react",
"version": "0.30.2",
"description": "A custom mux video element for React that Just Works™",
"keywords": [
"video",
"mux",
"player",
"hls",
"react"
],
"main": "./dist/index.cjs.js",
"module": "./dist/index.mjs",
"typesVersions": {
"<4.3.5": {
".": [
"./dist/types-ts3.4/index.d.ts"
]
},
"*": {
".": [
"./dist/types/index.d.ts"
]
}
},
"exports": {
".": {
"types@<4.3.5": "./dist/types-ts3.4/index.d.ts",
"types": "./dist/types/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs.js",
"default": "./dist/index.cjs.js"
}
},
"types": "./dist/types/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/muxinc/elements.git",
"directory": "packages/mux-video-react"
},
"author": "Mux, Inc.",
"license": "MIT",
"scripts": {
"clean": "shx rm -rf dist/",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint src/ --ext .js,.jsx,.ts,.tsx",
"dev:cjs": "npm run build:cjs -- --watch=forever",
"dev:esm": "npm run build:esm -- --watch=forever",
"dev:types": "npm run build:types -- -w",
"dev": "npm-run-all --parallel dev:types dev:cjs dev:esm",
"build:cjs": "esbuild src/index.tsx --target=es2019 --bundle --sourcemap --metafile=./dist/cjs.json --format=cjs --outdir=dist --out-extension:.js=.cjs.js --external:react --external:prop-types --external:@mux/* --define:PLAYER_VERSION=\"'$npm_package_version'\"",
"build:esm": "esbuild src/index.tsx --target=es2019 --bundle --sourcemap --metafile=./dist/esm.json --format=esm --outdir=dist --out-extension:.js=.mjs --external:react --external:prop-types --external:@mux/* --define:PLAYER_VERSION=\"'$npm_package_version'\"",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:cjs -- --minify' 'build:esm -- --minify'"
},
"peerDependencies": {
"@types/react": "^17.0.0 || ^17.0.0-0 || ^18 || ^18.0.0-0 || ^19 || ^19.0.0-0",
"react": "^17.0.2 || ^17.0.0-0 || ^18 || ^18.0.0-0 || ^19 || ^19.0.0-0",
"react-dom": "^17.0.2 || ^17.0.2-0 || ^18 || ^18.0.0-0 || ^19 || ^19.0.0-0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
},
"dependencies": {
"@mux/playback-core": "0.33.1",
"prop-types": "^15.8.1"
},
"devDependencies": {
"@types/prop-types": "^15.7.14",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@typescript-eslint/eslint-plugin": "^8.27.0",
"@typescript-eslint/parser": "^8.27.0",
"downlevel-dts": "^0.11.0",
"esbuild": "^0.25.1",
"eslint": "^9.22.0",
"npm-run-all": "^4.1.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"shx": "^0.4.0",
"typescript": "^5.8.2"
}
}