refactor(packages): dry up core, html, and react UI architecture (#699)

This commit is contained in:
rahim
2026-03-03 23:27:53 -08:00
committed by GitHub
parent 8bdd4ce7fa
commit 1edeadefed
110 changed files with 1349 additions and 1359 deletions
+11
View File
@@ -0,0 +1,11 @@
import type { ControlsState, StateAttrMap } from '@videojs/core';
import { createContext } from '@videojs/element/context';
export interface ControlsContextValue {
state: ControlsState;
stateAttrMap: StateAttrMap<ControlsState>;
}
const CONTROLS_CONTEXT_KEY = Symbol('@videojs/controls');
export const controlsContext = createContext<ControlsContextValue>(CONTROLS_CONTEXT_KEY);