mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
Use @videojs npm scope (#121)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { namedNodeMapToObject } from '@vjs-10/utils/dom';
|
||||
import { namedNodeMapToObject } from '@videojs/utils/dom';
|
||||
|
||||
export function getTemplateHTML(
|
||||
this: typeof MediaChromeButton,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { CurrentTimeDisplayState } from '@vjs-10/core/store';
|
||||
import type { CurrentTimeDisplayState } from '@videojs/core/store';
|
||||
import type { ConnectedComponentConstructor, PropsHook, StateHook } from '../utils/component-factory';
|
||||
|
||||
import { currentTimeDisplayStateDefinition } from '@vjs-10/core/store';
|
||||
import { currentTimeDisplayStateDefinition } from '@videojs/core/store';
|
||||
|
||||
import { formatDisplayTime } from '@vjs-10/utils';
|
||||
import { formatDisplayTime } from '@videojs/utils';
|
||||
import { toConnectedHTMLComponent } from '../utils/component-factory';
|
||||
|
||||
export class CurrentTimeDisplayBase extends HTMLElement {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { DurationDisplayState } from '@vjs-10/core/store';
|
||||
import type { DurationDisplayState } from '@videojs/core/store';
|
||||
import type { ConnectedComponentConstructor, PropsHook, StateHook } from '../utils/component-factory';
|
||||
|
||||
import { durationDisplayStateDefinition } from '@vjs-10/core/store';
|
||||
import { durationDisplayStateDefinition } from '@videojs/core/store';
|
||||
|
||||
import { formatDisplayTime } from '@vjs-10/utils';
|
||||
import { namedNodeMapToObject } from '@vjs-10/utils/dom';
|
||||
import { formatDisplayTime } from '@videojs/utils';
|
||||
import { namedNodeMapToObject } from '@videojs/utils/dom';
|
||||
import { toConnectedHTMLComponent } from '../utils/component-factory';
|
||||
|
||||
export function getTemplateHTML(
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { FullscreenButtonState } from '@vjs-10/core/store';
|
||||
import type { FullscreenButtonState } from '@videojs/core/store';
|
||||
import type { ConnectedComponentConstructor, PropsHook, StateHook } from '../utils/component-factory';
|
||||
|
||||
import { fullscreenButtonStateDefinition } from '@vjs-10/core/store';
|
||||
import { fullscreenButtonStateDefinition } from '@videojs/core/store';
|
||||
|
||||
import { setAttributes } from '@vjs-10/utils/dom';
|
||||
import { setAttributes } from '@videojs/utils/dom';
|
||||
import { toConnectedHTMLComponent } from '../utils/component-factory';
|
||||
import { MediaChromeButton } from './media-chrome-button';
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { MuteButtonState } from '@vjs-10/core/store';
|
||||
import type { MuteButtonState } from '@videojs/core/store';
|
||||
import type { ConnectedComponentConstructor, PropsHook, StateHook } from '../utils/component-factory';
|
||||
|
||||
import { muteButtonStateDefinition } from '@vjs-10/core/store';
|
||||
import { muteButtonStateDefinition } from '@videojs/core/store';
|
||||
|
||||
import { setAttributes } from '@vjs-10/utils/dom';
|
||||
import { setAttributes } from '@videojs/utils/dom';
|
||||
import { toConnectedHTMLComponent } from '../utils/component-factory';
|
||||
import { MediaChromeButton } from './media-chrome-button';
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { PlayButtonState } from '@vjs-10/core/store';
|
||||
import type { PlayButtonState } from '@videojs/core/store';
|
||||
import type { ConnectedComponentConstructor, PropsHook, StateHook } from '../utils/component-factory';
|
||||
|
||||
import { playButtonStateDefinition } from '@vjs-10/core/store';
|
||||
import { playButtonStateDefinition } from '@videojs/core/store';
|
||||
|
||||
import { setAttributes } from '@vjs-10/utils/dom';
|
||||
import { setAttributes } from '@videojs/utils/dom';
|
||||
import { toConnectedHTMLComponent } from '../utils/component-factory';
|
||||
import { MediaChromeButton } from './media-chrome-button';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Placement } from '@floating-ui/dom';
|
||||
import { autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom';
|
||||
import { uniqueId } from '@vjs-10/utils';
|
||||
import { uniqueId } from '@videojs/utils';
|
||||
|
||||
import { getDocument, getNextTabbable, getPreviousTabbable, isOutsideEvent } from '@vjs-10/utils/dom';
|
||||
import { getDocument, getNextTabbable, getPreviousTabbable, isOutsideEvent } from '@videojs/utils/dom';
|
||||
|
||||
export class MediaPopoverRoot extends HTMLElement {
|
||||
#open = false;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { PreviewTimeDisplayState } from '@vjs-10/core/store';
|
||||
import type { PreviewTimeDisplayState } from '@videojs/core/store';
|
||||
import type { ConnectedComponentConstructor, PropsHook, StateHook } from '../utils/component-factory';
|
||||
|
||||
import { previewTimeDisplayStateDefinition } from '@vjs-10/core/store';
|
||||
import { previewTimeDisplayStateDefinition } from '@videojs/core/store';
|
||||
|
||||
import { formatDisplayTime } from '@vjs-10/utils';
|
||||
import { formatDisplayTime } from '@videojs/utils';
|
||||
import { toConnectedHTMLComponent } from '../utils/component-factory';
|
||||
|
||||
export class PreviewTimeDisplayBase extends HTMLElement {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { ConnectedComponentConstructor, PropsHook, StateHook } from '../utils/component-factory';
|
||||
|
||||
import { TimeSlider as CoreTimeSlider } from '@vjs-10/core';
|
||||
import { timeSliderStateDefinition } from '@vjs-10/core/store';
|
||||
import { TimeSlider as CoreTimeSlider } from '@videojs/core';
|
||||
import { timeSliderStateDefinition } from '@videojs/core/store';
|
||||
|
||||
import { setAttributes } from '@vjs-10/utils/dom';
|
||||
import { setAttributes } from '@videojs/utils/dom';
|
||||
import { toConnectedHTMLComponent } from '../utils/component-factory';
|
||||
|
||||
interface TimeSliderRootState {
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { Placement } from '@floating-ui/dom';
|
||||
import type { MediaContainer } from '@/media/media-container';
|
||||
|
||||
import { arrow, autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom';
|
||||
import { uniqueId } from '@vjs-10/utils';
|
||||
import { uniqueId } from '@videojs/utils';
|
||||
|
||||
export class MediaTooltipRoot extends HTMLElement {
|
||||
#open = false;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { ConnectedComponentConstructor, PropsHook, StateHook } from '../utils/component-factory';
|
||||
|
||||
import { VolumeSlider as CoreVolumeSlider } from '@vjs-10/core';
|
||||
import { volumeSliderStateDefinition } from '@vjs-10/core/store';
|
||||
import { VolumeSlider as CoreVolumeSlider } from '@videojs/core';
|
||||
import { volumeSliderStateDefinition } from '@videojs/core/store';
|
||||
|
||||
import { setAttributes } from '@vjs-10/utils/dom';
|
||||
import { setAttributes } from '@videojs/utils/dom';
|
||||
import { toConnectedHTMLComponent } from '../utils/component-factory';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SVG_ICONS } from '@vjs-10/icons';
|
||||
import { SVG_ICONS } from '@videojs/icons';
|
||||
|
||||
import { MediaChromeIcon } from './media-chrome-icon';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SVG_ICONS } from '@vjs-10/icons';
|
||||
import { SVG_ICONS } from '@videojs/icons';
|
||||
|
||||
import { MediaChromeIcon } from './media-chrome-icon';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SVG_ICONS } from '@vjs-10/icons';
|
||||
import { SVG_ICONS } from '@videojs/icons';
|
||||
|
||||
import { MediaChromeIcon } from './media-chrome-icon';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SVG_ICONS } from '@vjs-10/icons';
|
||||
import { SVG_ICONS } from '@videojs/icons';
|
||||
|
||||
import { MediaChromeIcon } from './media-chrome-icon';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SVG_ICONS } from '@vjs-10/icons';
|
||||
import { SVG_ICONS } from '@videojs/icons';
|
||||
|
||||
import { MediaChromeIcon } from './media-chrome-icon';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SVG_ICONS } from '@vjs-10/icons';
|
||||
import { SVG_ICONS } from '@videojs/icons';
|
||||
|
||||
import { MediaChromeIcon } from './media-chrome-icon';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SVG_ICONS } from '@vjs-10/icons';
|
||||
import { SVG_ICONS } from '@videojs/icons';
|
||||
|
||||
import { MediaChromeIcon } from './media-chrome-icon';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Constructor, CustomElement } from '@open-wc/context-protocol';
|
||||
import type { MediaStore } from '@vjs-10/core/store';
|
||||
import type { MediaStore } from '@videojs/core/store';
|
||||
|
||||
import { ProviderMixin } from '@open-wc/context-protocol';
|
||||
import { createMediaStore } from '@vjs-10/core/store';
|
||||
import { createMediaStore } from '@videojs/core/store';
|
||||
|
||||
const ProviderHTMLElement: Constructor<CustomElement> = ProviderMixin(HTMLElement);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user