mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(media)!: extract media package from core (#1879)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import type { Media } from '@videojs/core';
|
||||
import type { MediaContainer, PopupGroup } from '@videojs/core/dom';
|
||||
import type { Media } from '@videojs/media';
|
||||
import type { UnknownState, UnknownStore } from '@videojs/store';
|
||||
import { useStore } from '@videojs/store/react';
|
||||
import type { Dispatch, ReactNode, SetStateAction } from 'react';
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
'use client';
|
||||
|
||||
import type {
|
||||
AnyPlayerFeature,
|
||||
AnyPlayerStore,
|
||||
AudioFeatures,
|
||||
AudioPlayerStore,
|
||||
Media,
|
||||
PlayerStore,
|
||||
PlayerTarget,
|
||||
VideoFeatures,
|
||||
VideoPlayerStore,
|
||||
import {
|
||||
type AnyPlayerFeature,
|
||||
type AnyPlayerStore,
|
||||
type AudioFeatures,
|
||||
type AudioPlayerStore,
|
||||
createPopupGroup,
|
||||
type PlayerStore,
|
||||
type PlayerTarget,
|
||||
type VideoFeatures,
|
||||
type VideoPlayerStore,
|
||||
} from '@videojs/core/dom';
|
||||
import { createPopupGroup } from '@videojs/core/dom';
|
||||
import type { Media } from '@videojs/media/dom';
|
||||
import type { InferStoreState } from '@videojs/store';
|
||||
import { combine, createStore } from '@videojs/store';
|
||||
import { useStore } from '@videojs/store/react';
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
import type { AudioPlayerStore, PlayerStore, PlayerTarget, VideoPlayerStore } from '@videojs/core/dom';
|
||||
import { audioFeatures, definePlayerFeature, features, videoFeatures } from '@videojs/core/dom';
|
||||
import {
|
||||
type AudioPlayerStore,
|
||||
audioFeatures,
|
||||
definePlayerFeature,
|
||||
features,
|
||||
type PlayerStore,
|
||||
type PlayerTarget,
|
||||
type VideoPlayerStore,
|
||||
videoFeatures,
|
||||
} from '@videojs/core/dom';
|
||||
import type { Slice } from '@videojs/store';
|
||||
import { assertType, describe, it } from 'vitest';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user