@vocalstack/player 0.1.0-alpha.35 → 0.1.0-alpha.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/sites.d.ts +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1004 -965
- package/dist/index.js.map +1 -1
- package/dist/ui/SiteIcon.d.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type SiteId = 'youtube' | 'loom' | 'vimeo' | 'twitch' | 'facebook' | 'instagram' | 'dailymotion' | 'tiktok' | 'x' | 'soundcloud' | 'kick' | 'mixcloud' | 'bandcamp';
|
|
2
|
+
export interface Site {
|
|
3
|
+
id: SiteId;
|
|
4
|
+
name: string;
|
|
5
|
+
color: string;
|
|
6
|
+
hosts: RegExp;
|
|
7
|
+
glyph: string;
|
|
8
|
+
audioOnly?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const SITES: Site[];
|
|
11
|
+
export declare function siteById(id: string | null | undefined): Site | null;
|
|
12
|
+
export declare function hostOfUrl(url: string | null | undefined): string | null;
|
|
13
|
+
export declare function siteOf(url: string | null | undefined): Site | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,3 +10,5 @@ export { Transport, ReplayScrub, ExportPanel, SummaryPanel, SpeakerCast, VoiceSh
|
|
|
10
10
|
export { FullVideo, MiniPlayer, PanelSeek, browserFull, realFull, setFullTarget, type PlayerPos, type PlayerTransport, type VoicesBtn } from './ui/full';
|
|
11
11
|
export { useBackgroundBed, useSeparatedTrack, bedNote, trackPlan, REMOVE_BG_LABEL, REMOVE_BG_NOTE, type BedState, type TrackPlan, type Separated } from './core/background';
|
|
12
12
|
export { snapPosition, placePosition, type PlayPos } from './core/playPosition';
|
|
13
|
+
export { SITES, siteOf, siteById, hostOfUrl, type Site, type SiteId } from './core/sites';
|
|
14
|
+
export { SiteIcon } from './ui/SiteIcon';
|