mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(media-store): add container state owner and rename event types
- Add container state owner to StateOwners type for fullscreen support - Rename mediaelementchangerequest to mediastateownerchangerequest - Add containerstateownerchangerequest event handling - Refactor updateStateOwners to support multiple state owners - Update all usage locations across HTML and React packages - Validated with Playwright testing on both demo applications 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
Christian Pillsbury
co-authored by
Claude
parent
da94272f63
commit
2e99ba79ae
@@ -40,7 +40,7 @@ export class MediaContainer extends ConsumerMixin(HTMLElement) {
|
||||
|
||||
_handleMediaSlotChange = () => {
|
||||
const media = this._mediaSlot.assignedElements({ flatten: true })[0];
|
||||
this._mediaStore.dispatch({ type: 'mediaelementchangerequest', detail: media });
|
||||
this._mediaStore.dispatch({ type: 'mediastateownerchangerequest', detail: media });
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user