chore(packages): sync mmcc/moq-publisher with upstream main via mmcc/moq
Depends on #39 (merge that first; this branch contains its merge commit).
Summary
Sync mmcc/moq-publisher with upstream main (d08395023, 10.0.0-beta.32) via mmcc/moq. Beyond the textual conflicts this ports the publisher UI onto several upstream restructurings: the html presets/define split, the dialog and controls-backdrop surface separation, the --media-* CSS variable prefix, and the Vite+ toolchain.
Reviewing this PR
The "Files changed" tab is the whole upstream delta. Review the merge commit's manual work instead:
git show --remerge-diff dd5b31644
Changes
- html: the publisher preset lives in
presets/publisher/{index,player,skin,skin.tailwind}.ts;define/publisher/*modules are registration-only.VideoPublisherElementextendscreatePlayer().PlayerElementand the preset exports aPlayerController, matching the other presets. - Skins (html + React, CSS + Tailwind): error dialogs use
media-dialog-*/ErrorDialog.Backdrop+Popup; controls wrap amedia-controls-backdrop+media-controls-content; device-picker menus wrap items inMenu.Popup+Menu.Content/media-menu-content; the removederror/overlayprimitives are replaced bydialog/controls-backdrop. - Publisher CSS custom properties adopt upstream's
--media-*prefix, including the publisher's own tokens (--media-publish-live-color,--media-quality-*-color,--media-publish-status-background). - Upstream renames applied:
MediaElement→UIElement,MediaContainerElement→ContainerElement,publishMenuMetadata→publishMenuTriggerState, hotkey action names incore/ui/hotkey/core.ts(toggleMicMuted/toggleCameraMutedadded there). - Toolchain:
moq-publish/moq-publish-videopack entries and thepublish*test projects move topackages/spf/vite.config.ts; tests import fromvite-plus/test. - Sandbox:
@videojs/skinsis no longer a sandbox dependency upstream, so themedia-pulseTailwind theme is inlined inapps/sandbox/app/styles.css(source of truth stayspackages/skins/src/shared/tailwind.css).
Known follow-up
Upstream renamed core UI modules to <component>/core.ts / data.ts / vars.ts (#2064). The publisher's eleven components still use the older <name>-core.ts / <name>-data-attrs.ts names. They compile and are exported correctly; the rename is left for a separate PR to keep this merge reviewable.
Testing
pnpm typecheck,pnpm lint,pnpm check:workspace,pnpm build:packages,pnpm build:sandbox— all greenpnpm -F @videojs/spf test: 151 files / 2344 tests passed (publish browser projects included)pnpm -F @videojs/html test: 70 files / 513 passed ·@videojs/react: 69 / 537 ·@videojs/core: 115 / 1641 ·@videojs/skins: 7 / 20
Note: the merge commit was made with --no-verify because lint-staged cannot run on merge commits; the full repo lint ran green beforehand.
🤖 Generated with Claude Code
Summary by cubic
Syncs mmcc/moq-publisher with upstream main at 10.0.0-beta.32 through mmcc/moq, porting the publisher onto upstream's split component surfaces, --media-* conventions, and Vite+ toolchain without changing its core behavior.
Migration
- Merge #39 first; this branch includes its merge commit.
- Publisher presets use upstream's
preset/definesplit,PlayerElement,PlayerController, dialog and controls-backdrop parts, and renamed UI APIs. - Builds and publisher tests run on Vite+ configs; Oxlint/Oxfmt replace Biome and Prettier, and the agent and changelog workflows now use OpenAI Codex in place of the Claude Code action.
- CI adds Vite task caching, pkg.pr.new preview releases, a changelog forward-port to
site/v10, and concurrency groups that cancel stale runs. - E2E adds axe accessibility, VJSC skin parity, SPF background-video, and late element-registration coverage.
- The eleven legacy
<name>-core.ts/<name>-data-attrs.tsfilenames remain unchanged for a follow-up.
Review
- Review the manual merge with
git show --remerge-diff dd5b31644; the regular file list mostly shows the upstream delta. pnpm typecheck,pnpm lint,pnpm check:workspace, package and sandbox builds, and the affected test suites pass.