refactor(core): rename publisher UI modules to the upstream file convention

Merged
MM
2mo ago
+120-120

Closes #55.

Moves the 11 publisher UI modules (camera-button, camera-radio-group, capture-placeholder, connection-indicator, enable-devices-button, mic-button, mic-radio-group, publish-badge, publish-button, publish-timer, screen-share-button) to the same file names as their upstream siblings:

  • core: <name>-core.ts / <name>-data-attrs.ts โ†’ core.ts / data.ts, and tests/core.test.ts
  • html: <name>-element.ts โ†’ element.ts, and tests/element.test.ts
  • react: <name>.tsx โ†’ component.tsx, and tests/component.test.tsx

Only file paths and imports change. Public exports and tag names stay the same. This is the first step for #54: VJSC finds components through src/core/ui/*/component.ts, which the skin port will add next to these files.

Verification

  • pnpm build:packages, then a clean pnpm typecheck and pnpm lint
  • @videojs/core 1770 tests, @videojs/html 543, @videojs/react 633: all pass

๐Ÿค– Generated with Claude Code


Summary by cubic

Renames the 11 publisher UI modules to the upstream file convention so VJSC tooling can discover them (first step for #54). Closes #55.

  • packages/core: <name>-core.ts / <name>-data-attrs.ts โ†’ core.ts / data.ts
  • packages/html: <name>-element.ts โ†’ element.ts
  • packages/react: <name>.tsx โ†’ component.tsx

Only file paths and import statements change; public exports and custom element tag names are unchanged.

Also renames the React publisher sandbox template to moq-publisher-react so it isn't treated as a media matrix page, and points the design record's implementation glob at the renamed core.ts modules.