mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
Replace the studio's hand-rolled iframe + scaling logic with the <hyperframes-player> web component. This eliminates duplicated ResizeObserver, dimension detection, and stage-size message handling while keeping full useTimelinePlayer compatibility via the new iframeElement getter. Changes: - player: add public iframeElement getter to HyperframesPlayer - player: update exports to resolve from source for workspace consumers - studio: add @hyperframes/player as workspace dependency - studio: rewrite Player.tsx to delegate to the web component - Add pnpm-workspace.yaml for proper pnpm 10 workspace resolution - Add e2e test fixtures for standalone and studio integration testing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
831 B
JSON
35 lines
831 B
JSON
{
|
|
"name": "@hyperframes/player",
|
|
"version": "0.2.2",
|
|
"description": "Embeddable web component for HyperFrames compositions",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
"directory": "packages/player"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"type": "module",
|
|
"main": "./src/hyperframes-player.ts",
|
|
"types": "./src/hyperframes-player.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/hyperframes-player.ts",
|
|
"import": "./src/hyperframes-player.ts",
|
|
"require": "./dist/hyperframes-player.cjs",
|
|
"script": "./dist/hyperframes-player.global.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"devDependencies": {
|
|
"tsup": "^8.0.0",
|
|
"typescript": "^5.0.0",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|