chore(packages): sync mmcc/moq-publisher with upstream main via mmcc/moq

Merged
MM
3mo ago
+131159-64845

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. VideoPublisherElement extends createPlayer().PlayerElement and the preset exports a PlayerController, matching the other presets.
  • Skins (html + React, CSS + Tailwind): error dialogs use media-dialog-* / ErrorDialog.Backdrop+Popup; controls wrap a media-controls-backdrop + media-controls-content; device-picker menus wrap items in Menu.Popup + Menu.Content / media-menu-content; the removed error/overlay primitives are replaced by dialog/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 in core/ui/hotkey/core.ts (toggleMicMuted / toggleCameraMuted added there).
  • Toolchain: moq-publish / moq-publish-video pack entries and the publish* test projects move to packages/spf/vite.config.ts; tests import from vite-plus/test.
  • Sandbox: @videojs/skins is no longer a sandbox dependency upstream, so the media-pulse Tailwind theme is inlined in apps/sandbox/app/styles.css (source of truth stays packages/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 green
  • pnpm -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/define split, 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.ts filenames 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.