* chore: maintain CSS output file name in vite@6.0.1 Without this change, build would fail because the produced stylesheet assumes the `package.json['name']` i.e., `styles/rrweb.css`. To maintain the existing behavior, these changes are required. See https://vite.dev/guide/migration.html#customize-css-output-file-name-in-library-mode * build(rrvideo): upgrade playwright from 1.32.1 to 1.56.1 Update playwright dependency to latest version and refactor test execution options to use a shared configuration with increased timeout for stability. * debug(rrvideo): add comprehensive logging to video transformation process Add detailed console.log statements throughout the transformToVideo function to track execution flow and debug potential issues. Logging covers browser launch, context creation, page navigation, replay progress, and video file operations. * ci(rrvideo): install playwright browsers and improve test output visibility - Add Playwright Chromium installation step to CI workflow - Change test execution stdio from 'pipe' to 'inherit' for better debugging * fix(rrvideo): prevent autoplay and manually start playback after event listeners Set autoPlay to false in replayer configuration and manually call play() after all event listeners are attached. This ensures event handlers are properly registered before playback begins, preventing potential race conditions. Also refactor test execution options to separate stdio configuration from timeout settings for better control over test output visibility. * fix(rrvideo): add timeout and error handling to replay process Add comprehensive error handling to prevent hanging during video transformation: - Add 2-minute timeout for replay finish event - Add console and error listeners for better debugging - Improve promise chain with proper error catching - Clear timeout on successful completion or error This prevents the process from hanging indefinitely when the replay finish event never fires. * fix(rrvideo): add error handling and restructure replayer initialization Wrap replayer initialization in try-catch block to handle potential errors gracefully. Restructure Player instantiation to use rrwebPlayer directly instead of rrwebPlayer.Player, and move width/height into props object for correct API usage. On error, log to console and trigger onReplayFinish callback to prevent hanging state. * build(umd): rename record and replay globals Update UMD build globals for recorder and replayer and refresh documentation accordingly. BREAKING CHANGE: UMD global names changed to rrwebRecord and rrwebReplay. * fix(rrvideo): adjust replay timeout to duration * docs: update rrweb-player CDN script path * Update vite.config.default.ts Co-authored-by: Eoghan Murray <eoghan@getthere.ie> --------- Co-authored-by: Rui <rui@conti.sh> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Eoghan Murray <eoghan@getthere.ie>
51 lines
1.7 KiB
JSON
51 lines
1.7 KiB
JSON
{
|
|
"name": "@rrweb/web-extension",
|
|
"private": true,
|
|
"version": "2.0.0-alpha.20",
|
|
"description": "The web extension of rrweb which helps to run rrweb on any website out of box",
|
|
"author": "rrweb-io",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev:chrome": "cross-env TARGET_BROWSER=chrome vite dev",
|
|
"dev:firefox": "cross-env TARGET_BROWSER=firefox vite dev",
|
|
"build:chrome": "cross-env TARGET_BROWSER=chrome vite build",
|
|
"build:firefox": "cross-env TARGET_BROWSER=firefox vite build",
|
|
"pack:chrome": "cross-env TARGET_BROWSER=chrome ZIP=true vite build",
|
|
"pack:firefox": "cross-env TARGET_BROWSER=firefox ZIP=true vite build",
|
|
"check-types": "tsc -noEmit",
|
|
"build": "npm run pack:chrome && npm run pack:firefox",
|
|
"prepublish": "yarn build"
|
|
},
|
|
"devDependencies": {
|
|
"@rrweb/types": "^2.0.0-alpha.20",
|
|
"@types/chrome": "^0.0.287",
|
|
"@types/react-dom": "^18.0.6",
|
|
"@types/semver": "^7.5.8",
|
|
"@types/webextension-polyfill": "^0.9.1",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"semver": "^7.6.3",
|
|
"type-fest": "^2.19.0",
|
|
"vite": "^6.0.1",
|
|
"vite-plugin-web-extension": "^4.1.3",
|
|
"vite-plugin-zip-pack": "^1.2.2",
|
|
"webextension-polyfill": "^0.10.0"
|
|
},
|
|
"dependencies": {
|
|
"@chakra-ui/react": "^2.3.4",
|
|
"@emotion/react": "^11.10.4",
|
|
"@emotion/styled": "^11.10.4",
|
|
"@tanstack/react-table": "^8.5.22",
|
|
"framer-motion": "^7.3.6",
|
|
"idb": "^7.1.1",
|
|
"mitt": "^3.0.0",
|
|
"nanoid": "^4.0.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-icons": "^4.4.0",
|
|
"react-router-dom": "^6.4.1",
|
|
"rrweb": "^2.0.0-alpha.20",
|
|
"rrweb-player": "^2.0.0-alpha.20"
|
|
}
|
|
}
|