UNPKG

@mux/mux-player-react

Version:

An open source Mux player for React that Just Works™

116 lines (115 loc) 4.27 kB
{ "name": "@mux/mux-player-react", "version": "3.3.4", "description": "An open source Mux player for React that Just Works™", "homepage": "https://mux.com/player", "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" ], "themes/*": [ "./dist/types-ts3.4/themes/*.d.ts" ], "lazy": [ "./dist/types-ts3.4/lazy.d.ts" ] }, "*": { ".": [ "./dist/types/index.d.ts" ], "themes/*": [ "./dist/types/themes/*.d.ts" ], "lazy": [ "./dist/types/lazy.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" }, "./lazy": { "types@<4.3.5": "./dist/types-ts3.4/lazy.d.ts", "types": "./dist/types/lazy.d.ts", "import": "./dist/lazy.mjs", "default": "./dist/lazy.mjs" }, "./themes/*": { "types@<4.3.5": "./dist/types-ts3.4/themes/*.d.ts", "types": "./dist/types/themes/*.d.ts", "import": "./dist/themes/*.mjs", "require": "./dist/themes/*.cjs.js", "default": "./dist/themes/*.cjs.js" } }, "types": "./dist/types/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/muxinc/elements.git", "directory": "packages/mux-player-react" }, "author": "Mux, Inc.", "license": "MIT", "scripts": { "clean": "shx rm -rf dist/", "dev:cjs": "npm run build:cjs -- --watch=forever", "dev:esm": "npm run build:esm -- --watch=forever", "dev:cjs:lazy": "echo 'esbuild cjs does not support code-splitting. See https://esbuild.github.io/api/#splitting for details'", "dev:esm:lazy": "npm run build:esm:lazy -- --watch=forever", "dev:types": "npm run build:types -- -w", "dev": "npm-run-all --parallel dev:types dev:cjs dev:esm dev:esm:lazy", "build:cjs": "esbuild src/index.tsx src/themes/*.ts --target=es2019 --bundle --sourcemap --metafile=./dist/cjs.json --format=cjs --loader:.css=text --outdir=dist --out-extension:.js=.cjs.js --external:react --external:@mux/* --external:prop-types --define:PLAYER_VERSION=\"'$npm_package_version'\"", "build:esm": "esbuild src/index.tsx src/themes/*.ts --target=es2019 --bundle --sourcemap --metafile=./dist/esm.json --format=esm --loader:.css=text --outdir=dist --out-extension:.js=.mjs --external:react --external:@mux/* --external:prop-types --define:PLAYER_VERSION=\"'$npm_package_version'\"", "build:cjs:lazy": "echo 'esbuild cjs does not support code-splitting. See https://esbuild.github.io/api/#splitting for details'", "build:esm:lazy": "esbuild src/lazy.tsx --splitting --target=es2019 --bundle --sourcemap --metafile=./dist/esm.lazy.json --format=esm --loader:.css=text --outdir=dist --out-extension:.js=.mjs --external:react --external:@mux/* --external:prop-types --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' 'build:esm:lazy -- --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/mux-player": "3.3.4", "@mux/playback-core": "0.28.7", "prop-types": "^15.8.1" }, "devDependencies": { "@types/prop-types": "^15.7.14", "@types/react": "^18.2.79", "@types/react-dom": "^18.2.25", "downlevel-dts": "^0.11.0", "esbuild": "^0.25.1", "npm-run-all": "^4.1.5", "react": "^18.2.0", "react-dom": "^18.2.0", "shx": "^0.4.0", "typescript": "^5.8.2" } }