@sdxc/ui 2026.11.10 → 2026.11.14
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/README.md +92 -45
- package/dist/app/app-shell-toggle.d.ts +2 -0
- package/dist/app/app-shell-toggle.js +5 -2
- package/dist/app/app-shell.d.ts +25 -1
- package/dist/app/app-shell.js +73 -38
- package/dist/app/auto-refresh.d.ts +2 -0
- package/dist/app/auto-refresh.js +3 -3
- package/dist/app/behaviors/refresh-schedule.d.ts +8 -3
- package/dist/app/behaviors/refresh-schedule.js +4 -3
- package/dist/app/board.d.ts +123 -0
- package/dist/app/board.js +224 -0
- package/dist/app/chart.d.ts +2 -2
- package/dist/app/chart.js +7 -3
- package/dist/app/check-runs.d.ts +116 -0
- package/dist/app/check-runs.js +201 -0
- package/dist/app/code-view.d.ts +172 -0
- package/dist/app/code-view.js +414 -0
- package/dist/app/command-palette.d.ts +38 -3
- package/dist/app/command-palette.js +53 -5
- package/dist/app/contribution-graph.d.ts +106 -0
- package/dist/app/contribution-graph.js +289 -0
- package/dist/app/detail-sheet.d.ts +7 -0
- package/dist/app/detail-sheet.js +7 -7
- package/dist/app/diff.d.ts +200 -0
- package/dist/app/diff.js +702 -0
- package/dist/app/filter-bar.d.ts +20 -0
- package/dist/app/filter-bar.js +35 -15
- package/dist/app/filter-menu.d.ts +144 -0
- package/dist/app/filter-menu.js +480 -0
- package/dist/app/gantt.d.ts +108 -0
- package/dist/app/gantt.js +420 -0
- package/dist/app/index.d.ts +19 -0
- package/dist/app/index.js +19 -0
- package/dist/app/log-viewer.d.ts +120 -0
- package/dist/app/log-viewer.js +384 -0
- package/dist/app/merge-box.d.ts +97 -0
- package/dist/app/merge-box.js +227 -0
- package/dist/app/mixins/app-shell-controls.d.ts +4 -1
- package/dist/app/mixins/app-shell-controls.js +64 -4
- package/dist/app/mixins/auto-refresh.d.ts +5 -2
- package/dist/app/mixins/auto-refresh.js +9 -3
- package/dist/app/mixins/close-popover-on-submit.d.ts +16 -0
- package/dist/app/mixins/close-popover-on-submit.js +32 -0
- package/dist/app/mixins/code-view-selection.d.ts +60 -0
- package/dist/app/mixins/code-view-selection.js +276 -0
- package/dist/app/mixins/command-palette.d.ts +15 -4
- package/dist/app/mixins/command-palette.js +94 -6
- package/dist/app/mixins/contribution-graph-keys.d.ts +19 -0
- package/dist/app/mixins/contribution-graph-keys.js +155 -0
- package/dist/app/mixins/diff-interactions.d.ts +72 -0
- package/dist/app/mixins/diff-interactions.js +269 -0
- package/dist/app/mixins/filter-menu-keys.d.ts +41 -0
- package/dist/app/mixins/filter-menu-keys.js +91 -0
- package/dist/app/mixins/gantt-today.d.ts +17 -0
- package/dist/app/mixins/gantt-today.js +50 -0
- package/dist/app/mixins/log-viewer.d.ts +29 -0
- package/dist/app/mixins/log-viewer.js +333 -0
- package/dist/app/mixins/optimistic-toggle-sync.d.ts +5 -0
- package/dist/app/mixins/optimistic-toggle-sync.js +25 -1
- package/dist/app/mixins/save-bar-sync.d.ts +7 -1
- package/dist/app/mixins/save-bar-sync.js +23 -4
- package/dist/app/mixins/save-status-sync.js +23 -1
- package/dist/app/mixins/split-view.js +1 -1
- package/dist/app/mixins/submit-on-close.d.ts +17 -0
- package/dist/app/mixins/submit-on-close.js +52 -0
- package/dist/app/mixins/tree-filter.d.ts +44 -0
- package/dist/app/mixins/tree-filter.js +111 -0
- package/dist/app/mixins/tree-navigation.d.ts +50 -0
- package/dist/app/mixins/tree-navigation.js +216 -0
- package/dist/app/optimistic-toggle.d.ts +8 -0
- package/dist/app/optimistic-toggle.js +3 -2
- package/dist/app/page-header.d.ts +18 -3
- package/dist/app/page-header.js +105 -50
- package/dist/app/review-thread.d.ts +115 -0
- package/dist/app/review-thread.js +116 -0
- package/dist/app/save-bar.d.ts +5 -0
- package/dist/app/save-bar.js +1 -1
- package/dist/app/settings-layout.d.ts +5 -0
- package/dist/app/settings-layout.js +5 -5
- package/dist/app/skeleton.d.ts +9 -0
- package/dist/app/skeleton.js +28 -0
- package/dist/app/split-view.d.ts +4 -0
- package/dist/app/split-view.js +3 -3
- package/dist/app/styles/code-tokens.d.ts +24 -0
- package/dist/app/styles/code-tokens.js +47 -0
- package/dist/app/tab-bar.d.ts +59 -0
- package/dist/app/tab-bar.js +111 -0
- package/dist/app/tree.d.ts +111 -14
- package/dist/app/tree.js +202 -15
- package/dist/app/utils/ansi.d.ts +55 -0
- package/dist/app/utils/ansi.js +157 -0
- package/dist/app/utils/diff-rows.d.ts +82 -0
- package/dist/app/utils/diff-rows.js +209 -0
- package/dist/app/utils/fuzzy-path.d.ts +58 -0
- package/dist/app/utils/fuzzy-path.js +202 -0
- package/dist/app/utils/line-range.d.ts +48 -0
- package/dist/app/utils/line-range.js +61 -0
- package/dist/app/utils/log-lines.d.ts +107 -0
- package/dist/app/utils/log-lines.js +170 -0
- package/dist/app/utils/tree-filter.d.ts +19 -0
- package/dist/app/utils/tree-filter.js +26 -0
- package/dist/app/view-options.d.ts +2 -0
- package/dist/app/view-options.js +2 -2
- package/dist/chat/activity.d.ts +72 -0
- package/dist/chat/activity.js +184 -0
- package/dist/chat/composer-submit.d.ts +38 -0
- package/dist/chat/composer-submit.js +44 -0
- package/dist/chat/composer.d.ts +47 -0
- package/dist/chat/composer.js +100 -0
- package/dist/chat/index.d.ts +6 -0
- package/dist/chat/index.js +6 -0
- package/dist/chat/mixins/composer-send.d.ts +32 -0
- package/dist/chat/mixins/composer-send.js +121 -0
- package/dist/chat/mixins/reveal-stream.d.ts +68 -0
- package/dist/chat/mixins/reveal-stream.js +184 -0
- package/dist/chat/mixins/stream-target.d.ts +18 -0
- package/dist/chat/mixins/stream-target.js +38 -0
- package/dist/components/button.js +7 -1
- package/dist/components/character-count.d.ts +44 -0
- package/dist/components/character-count.js +68 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/label-chip.d.ts +42 -0
- package/dist/components/label-chip.js +86 -0
- package/dist/components/property-list.d.ts +9 -2
- package/dist/components/property-list.js +11 -6
- package/dist/components/textarea.js +6 -1
- package/dist/components/timeline.d.ts +62 -5
- package/dist/components/timeline.js +124 -5
- package/dist/docs/code-block.js +8 -31
- package/dist/docs/file-tree.js +3 -48
- package/dist/landing/case-study.d.ts +79 -0
- package/dist/landing/case-study.js +162 -0
- package/dist/landing/contributor-wall.d.ts +72 -0
- package/dist/landing/contributor-wall.js +129 -0
- package/dist/landing/countdown.d.ts +88 -0
- package/dist/landing/countdown.js +91 -0
- package/dist/landing/episode-player.d.ts +87 -0
- package/dist/landing/episode-player.js +113 -0
- package/dist/landing/faq-band.d.ts +3 -2
- package/dist/landing/faq-band.js +4 -3
- package/dist/landing/feature-band.d.ts +8 -0
- package/dist/landing/feature-band.js +9 -3
- package/dist/landing/index.d.ts +9 -0
- package/dist/landing/index.js +9 -0
- package/dist/landing/landing-header.js +15 -4
- package/dist/landing/mixins/countdown-tick.d.ts +29 -0
- package/dist/landing/mixins/countdown-tick.js +65 -0
- package/dist/landing/mixins/usage-estimate-live.d.ts +32 -0
- package/dist/landing/mixins/usage-estimate-live.js +120 -0
- package/dist/landing/phone-fan.d.ts +38 -0
- package/dist/landing/phone-fan.js +89 -0
- package/dist/landing/phone-frame.d.ts +48 -0
- package/dist/landing/phone-frame.js +41 -0
- package/dist/landing/price-list.d.ts +68 -0
- package/dist/landing/price-list.js +125 -0
- package/dist/landing/scroll-scene.d.ts +59 -0
- package/dist/landing/scroll-scene.js +70 -0
- package/dist/landing/sponsor-wall.d.ts +30 -6
- package/dist/landing/sponsor-wall.js +70 -14
- package/dist/landing/typed-terminal.d.ts +24 -6
- package/dist/landing/typed-terminal.js +22 -14
- package/dist/landing/usage-estimate.d.ts +127 -0
- package/dist/landing/usage-estimate.js +164 -0
- package/dist/landing/utils/countdown.d.ts +33 -0
- package/dist/landing/utils/countdown.js +42 -0
- package/dist/landing/utils/pause-toggle.d.ts +2 -1
- package/dist/mixins/character-count.d.ts +62 -0
- package/dist/mixins/character-count.js +139 -0
- package/dist/mixins/index.d.ts +6 -2
- package/dist/mixins/index.js +6 -2
- package/dist/mixins/invoker-fields.d.ts +18 -0
- package/dist/mixins/invoker-fields.js +60 -0
- package/dist/mixins/media-sync.d.ts +58 -0
- package/dist/mixins/media-sync.js +102 -0
- package/dist/mixins/menu-keys.d.ts +11 -0
- package/dist/mixins/menu-keys.js +79 -70
- package/dist/mixins/sortable.d.ts +96 -0
- package/dist/mixins/sortable.js +433 -0
- package/dist/utils/code-lines.d.ts +26 -0
- package/dist/utils/code-lines.js +29 -0
- package/dist/utils/file-icon.d.ts +31 -0
- package/dist/utils/file-icon.js +60 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/write-cookie.d.ts +15 -15
- package/dist/utils/write-cookie.js +10 -16
- package/dist/video/index.d.ts +11 -0
- package/dist/video/index.js +11 -0
- package/dist/video/mixins/video-player-sync.d.ts +27 -0
- package/dist/video/mixins/video-player-sync.js +413 -0
- package/dist/video/utils/timeline.d.ts +55 -0
- package/dist/video/utils/timeline.js +90 -0
- package/dist/video/video-player.d.ts +261 -0
- package/dist/video/video-player.js +927 -0
- package/package.json +6 -3
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A video player built on the browser's own `<video>`: chapters and captions written as
|
|
3
|
+
* WebVTT tracks from data, time links that work without script, and a custom control bar
|
|
4
|
+
* with a settings menu pages extend, which replaces the native controls once script runs.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { EntryComponent, Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
10
|
+
/** Prop and context types for {@link VideoPlayer} and its parts. */
|
|
11
|
+
export declare namespace VideoPlayer {
|
|
12
|
+
/** `plain` follows the page's scheme; `theater` is a dark screening room in either. */
|
|
13
|
+
type Tone = "plain" | "theater";
|
|
14
|
+
/** One chapter, from its start to the next chapter's start or the video's end. */
|
|
15
|
+
interface Chapter {
|
|
16
|
+
/** Seconds from the start of the video. */
|
|
17
|
+
start: number;
|
|
18
|
+
/** Shown in the chapter list and written to the chapters track. */
|
|
19
|
+
title: string;
|
|
20
|
+
/** A small 16:9 still for the chapter's row, usually inline SVG or an `<img>`. */
|
|
21
|
+
thumbnail?: RemixNode;
|
|
22
|
+
}
|
|
23
|
+
/** One line of the transcript, shown until the next line starts. */
|
|
24
|
+
interface Cue {
|
|
25
|
+
/** Seconds from the start of the video. */
|
|
26
|
+
start: number;
|
|
27
|
+
/** What is said; also written to the captions track. */
|
|
28
|
+
text: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Props accepted by {@link VideoPlayer}: the timeline every part reads. Chapters and
|
|
32
|
+
* lines are given once, and feed the native tracks, the scrubber and the lists alike.
|
|
33
|
+
*/
|
|
34
|
+
interface Props extends TagProps<"figure"> {
|
|
35
|
+
/** Length in seconds; it closes the last chapter and the last caption. */
|
|
36
|
+
duration: number;
|
|
37
|
+
/** Chapters in playing order. */
|
|
38
|
+
chapters?: readonly Chapter[];
|
|
39
|
+
/** Spoken lines in playing order. */
|
|
40
|
+
transcript?: readonly Cue[];
|
|
41
|
+
/** The moment the page renders as now, in seconds, before the island takes over. */
|
|
42
|
+
current?: number;
|
|
43
|
+
/** Colour scheme of the player. @default "plain" */
|
|
44
|
+
tone?: Tone;
|
|
45
|
+
/** The parts, in reading order; a {@link VideoPlayer.Side} becomes the second column. */
|
|
46
|
+
children: RemixNode;
|
|
47
|
+
}
|
|
48
|
+
/** One file the player may play, as the quality menu and the settings badge read it. */
|
|
49
|
+
interface SourceInfo {
|
|
50
|
+
/** The file's address, which the quality menu swaps the video to. */
|
|
51
|
+
src: string;
|
|
52
|
+
/** The source's name in the quality menu, which falls back to the file's name. */
|
|
53
|
+
label?: string;
|
|
54
|
+
/** The source's `badge`, shown on the gear while this file plays. */
|
|
55
|
+
badge?: string;
|
|
56
|
+
}
|
|
57
|
+
/** One captions or subtitles track, as the captions menu lists it. */
|
|
58
|
+
interface CaptionsInfo {
|
|
59
|
+
/** The track's name in the captions menu. */
|
|
60
|
+
label: string;
|
|
61
|
+
/** The track's `srclang`, when it names one. */
|
|
62
|
+
language?: string;
|
|
63
|
+
}
|
|
64
|
+
/** What {@link VideoPlayer} shares with its parts. */
|
|
65
|
+
interface Context {
|
|
66
|
+
/** The player's `duration`, in seconds. */
|
|
67
|
+
duration: number;
|
|
68
|
+
/** The player's chapters, empty when it gives none. */
|
|
69
|
+
chapters: readonly Chapter[];
|
|
70
|
+
/** The player's transcript lines, empty when it gives none. */
|
|
71
|
+
transcript: readonly Cue[];
|
|
72
|
+
/** The moment the server renders as now, in seconds. */
|
|
73
|
+
current?: number;
|
|
74
|
+
/** The first source's address, which every time link points into. */
|
|
75
|
+
href?: string;
|
|
76
|
+
/** Every {@link VideoPlayer.Source}, in preference order. */
|
|
77
|
+
sources: readonly SourceInfo[];
|
|
78
|
+
/** The captions tracks in the order the video holds them. */
|
|
79
|
+
captions: readonly CaptionsInfo[];
|
|
80
|
+
}
|
|
81
|
+
/** Props accepted by {@link VideoPlayer.Screen}. */
|
|
82
|
+
interface ScreenProps extends Omit<TagProps<"div">, "children"> {
|
|
83
|
+
/** The video's accessible name. */
|
|
84
|
+
label: string;
|
|
85
|
+
/** Image shown before playback, as the native `poster`. */
|
|
86
|
+
poster?: string;
|
|
87
|
+
/** Language of the chapters and captions tracks. @default "en" */
|
|
88
|
+
language?: string;
|
|
89
|
+
/** The captions track's name in the player's menus, such as "English". */
|
|
90
|
+
captionsLabel: string;
|
|
91
|
+
/** The chapters track's name, such as "Chapters". */
|
|
92
|
+
chaptersLabel: string;
|
|
93
|
+
/**
|
|
94
|
+
* {@link VideoPlayer.Source} elements in preference order, any extra `<track>`, an
|
|
95
|
+
* optional {@link VideoPlayer.Frame} and an optional {@link VideoPlayer.Controls}.
|
|
96
|
+
*/
|
|
97
|
+
children: RemixNode;
|
|
98
|
+
}
|
|
99
|
+
/** Props accepted by {@link VideoPlayer.Source}. */
|
|
100
|
+
interface SourceProps extends Omit<TagProps<"source">, "children"> {
|
|
101
|
+
/** The file's address; the first source's is where every time link points. */
|
|
102
|
+
src: string;
|
|
103
|
+
/** Media type, such as `video/webm`, so the browser skips files it cannot play. */
|
|
104
|
+
type?: string;
|
|
105
|
+
/** The file's name in the quality menu, such as `1080p`; the file name stands in when unset. */
|
|
106
|
+
label?: string;
|
|
107
|
+
/** Short mark beside the label and on the settings gear, such as `HD` or `4K`. */
|
|
108
|
+
badge?: string;
|
|
109
|
+
}
|
|
110
|
+
/** Props accepted by {@link VideoPlayer.Caption}. */
|
|
111
|
+
interface CaptionProps extends TagProps<"figcaption"> {
|
|
112
|
+
/** Small print at the inline end, such as "Lesson 7 · 11:43". */
|
|
113
|
+
meta?: RemixNode;
|
|
114
|
+
}
|
|
115
|
+
/** Props accepted by {@link VideoPlayer.Chapters}. */
|
|
116
|
+
interface ChaptersProps extends Omit<TagProps<"nav">, "children"> {
|
|
117
|
+
/** The visible label and the list's accessible name. */
|
|
118
|
+
label: string;
|
|
119
|
+
}
|
|
120
|
+
/** Props accepted by {@link VideoPlayer.Transcript}. */
|
|
121
|
+
interface TranscriptProps extends Omit<TagProps<"div">, "children"> {
|
|
122
|
+
/** The visible label and the scroll region's accessible name. */
|
|
123
|
+
label: string;
|
|
124
|
+
}
|
|
125
|
+
/** Props accepted by {@link VideoPlayer.Controls}. */
|
|
126
|
+
interface ControlsProps extends TagProps<"div"> {
|
|
127
|
+
/** The bar's accessible name, such as "Video controls". */
|
|
128
|
+
label: string;
|
|
129
|
+
}
|
|
130
|
+
/** Props accepted by a bar button that only needs its accessible name. */
|
|
131
|
+
interface ButtonProps extends Omit<TagProps<"button">, "children" | "type"> {
|
|
132
|
+
/** The button's accessible name. */
|
|
133
|
+
label: string;
|
|
134
|
+
}
|
|
135
|
+
/** Props accepted by {@link VideoPlayer.Play}. */
|
|
136
|
+
interface PlayProps extends ButtonProps {
|
|
137
|
+
/** The name while the video plays; `label` is the name while it is paused. */
|
|
138
|
+
pauseLabel: string;
|
|
139
|
+
}
|
|
140
|
+
/** Props accepted by {@link VideoPlayer.Progress}. */
|
|
141
|
+
interface ProgressProps extends Omit<TagProps<"input">, "type" | "min" | "max" | "value" | "children" | "role"> {
|
|
142
|
+
/** The slider's accessible name, such as "Seek". */
|
|
143
|
+
label: string;
|
|
144
|
+
}
|
|
145
|
+
/** Props accepted by {@link VideoPlayer.Settings}. */
|
|
146
|
+
interface SettingsProps extends ButtonProps {
|
|
147
|
+
/** The menu's id, which the gear's `commandfor` names. Defaults to a generated one. */
|
|
148
|
+
id?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Mark on the gear. Left out, it is the playing source's badge and follows the
|
|
151
|
+
* quality menu; `false` draws none.
|
|
152
|
+
*/
|
|
153
|
+
badge?: string | false;
|
|
154
|
+
/** Rows of the menu, in order. */
|
|
155
|
+
children: RemixNode;
|
|
156
|
+
}
|
|
157
|
+
/** Props accepted by {@link VideoPlayer.SettingsToggle}. */
|
|
158
|
+
interface SettingsToggleProps extends Omit<TagProps<"input">, "type" | "name" | "children"> {
|
|
159
|
+
/** The form name a `change` listener reads the switch by. */
|
|
160
|
+
name: string;
|
|
161
|
+
/** The row's visible label. */
|
|
162
|
+
label: RemixNode;
|
|
163
|
+
}
|
|
164
|
+
/** Props accepted by {@link VideoPlayer.SettingsMenu}. */
|
|
165
|
+
interface SettingsMenuProps extends Omit<TagProps<"div">, "children"> {
|
|
166
|
+
/** The radio group's form name, which a `change` listener reads the choice by. */
|
|
167
|
+
name: string;
|
|
168
|
+
/** The row's visible label, repeated on the submenu's back row. */
|
|
169
|
+
label: RemixNode;
|
|
170
|
+
/** The back row's accessible prefix, such as "Back". */
|
|
171
|
+
backLabel: string;
|
|
172
|
+
/** {@link VideoPlayer.SettingsOption} elements; the one marked `checked` is chosen. */
|
|
173
|
+
children: RemixNode;
|
|
174
|
+
}
|
|
175
|
+
/** What {@link VideoPlayer.SettingsMenu} shares with its options. */
|
|
176
|
+
interface SettingsMenuContext {
|
|
177
|
+
/** The radio group's form name every option takes. */
|
|
178
|
+
name: string;
|
|
179
|
+
}
|
|
180
|
+
/** Props accepted by {@link VideoPlayer.SettingsOption}. */
|
|
181
|
+
interface SettingsOptionProps extends Omit<TagProps<"input">, "type" | "name" | "children" | "value"> {
|
|
182
|
+
/** The value a `change` listener reads from the menu's `name` once this is chosen. */
|
|
183
|
+
value: string;
|
|
184
|
+
/** A short mark after the label, such as `4K`. */
|
|
185
|
+
badge?: RemixNode;
|
|
186
|
+
/** The option's visible label, which its submenu's row repeats once chosen. */
|
|
187
|
+
children: RemixNode;
|
|
188
|
+
}
|
|
189
|
+
/** Props shared by the built-in submenus. */
|
|
190
|
+
interface BuiltInMenuProps extends Omit<TagProps<"div">, "children"> {
|
|
191
|
+
/** The row's visible label. */
|
|
192
|
+
label: string;
|
|
193
|
+
/** The back row's accessible prefix, such as "Back". */
|
|
194
|
+
backLabel: string;
|
|
195
|
+
}
|
|
196
|
+
/** Props accepted by {@link VideoPlayer.CaptionsMenu}. */
|
|
197
|
+
interface CaptionsMenuProps extends BuiltInMenuProps {
|
|
198
|
+
/** The option that hides every track, such as "Off". */
|
|
199
|
+
offLabel: string;
|
|
200
|
+
}
|
|
201
|
+
/** Props accepted by {@link VideoPlayer.SpeedMenu}. */
|
|
202
|
+
interface SpeedMenuProps extends BuiltInMenuProps {
|
|
203
|
+
/** Rates offered, in order. @default [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2] */
|
|
204
|
+
rates?: readonly number[];
|
|
205
|
+
/** The name of rate 1, such as "Normal". */
|
|
206
|
+
normalLabel: string;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* A `<figure>` sharing one timeline with its parts; with no script its native controls play and
|
|
211
|
+
* time links open the file there. Map {@link VideoPlayerSync} (`@sdxc/ui/video/video-player`) for
|
|
212
|
+
* the bar. Theming: `--ui-video-player-` radius, progress-color, menu-bg, on-video, transcript-height.
|
|
213
|
+
*
|
|
214
|
+
* @param handle Runtime handle carrying the host `<figure>`'s props.
|
|
215
|
+
* @returns The render function producing the player.
|
|
216
|
+
* @example
|
|
217
|
+
* <VideoPlayer duration={703} chapters={chapters}>
|
|
218
|
+
* <VideoPlayer.Screen label="Centering 3 kg" captionsLabel="English" chaptersLabel="Chapters"><VideoPlayer.Source src="/07.mp4" type="video/mp4" /></VideoPlayer.Screen>
|
|
219
|
+
* <VideoPlayer.Side><VideoPlayer.Chapters label="Chapters" /></VideoPlayer.Side>
|
|
220
|
+
* </VideoPlayer>
|
|
221
|
+
* @example
|
|
222
|
+
* <VideoPlayer duration={703} chapters={chapters} transcript={lines} tone="theater">
|
|
223
|
+
* <VideoPlayer.Screen label="Centering 3 kg" captionsLabel="English" chaptersLabel="Chapters">
|
|
224
|
+
* <VideoPlayer.Source src="/07.mp4" type="video/mp4" label="1080p" badge="HD" />
|
|
225
|
+
* <VideoPlayer.Controls label="Video controls"><VideoPlayer.Progress label="Seek" /><VideoPlayer.Play label="Play" pauseLabel="Pause" /><VideoPlayer.Time /></VideoPlayer.Controls>
|
|
226
|
+
* </VideoPlayer.Screen>
|
|
227
|
+
* <VideoPlayer.Side><VideoPlayer.Transcript label="Transcript" /></VideoPlayer.Side>
|
|
228
|
+
* </VideoPlayer>
|
|
229
|
+
*/
|
|
230
|
+
export declare function VideoPlayer(handle: Handle<VideoPlayer.Props, VideoPlayer.Context>): () => import("remix/component").RemixElement;
|
|
231
|
+
export declare namespace VideoPlayer {
|
|
232
|
+
var Screen: (handle: Handle<VideoPlayer.ScreenProps>) => () => import("remix/component").RemixElement;
|
|
233
|
+
var Source: (handle: Handle<VideoPlayer.SourceProps>) => () => import("remix/component").RemixElement;
|
|
234
|
+
var Frame: (handle: Handle<TagProps<"div">>) => () => import("remix/component").RemixElement;
|
|
235
|
+
var Scrubber: (handle: Handle<Omit<TagProps<"div">, "children">>) => () => import("remix/component").RemixElement;
|
|
236
|
+
var Caption: (handle: Handle<VideoPlayer.CaptionProps>) => () => import("remix/component").RemixElement;
|
|
237
|
+
var Side: (handle: Handle<TagProps<"div">>) => () => import("remix/component").RemixElement;
|
|
238
|
+
var Chapters: (handle: Handle<VideoPlayer.ChaptersProps>) => () => import("remix/component").RemixElement;
|
|
239
|
+
var Transcript: (handle: Handle<VideoPlayer.TranscriptProps>) => () => import("remix/component").RemixElement;
|
|
240
|
+
var Controls: (handle: Handle<VideoPlayer.ControlsProps>) => () => import("remix/component").RemixElement;
|
|
241
|
+
var Progress: (handle: Handle<VideoPlayer.ProgressProps>) => () => import("remix/component").RemixElement;
|
|
242
|
+
var Play: (handle: Handle<VideoPlayer.PlayProps>) => () => import("remix/component").RemixElement;
|
|
243
|
+
var Time: (handle: Handle<Omit<TagProps<"span">, "children">>) => () => import("remix/component").RemixElement;
|
|
244
|
+
var CaptionsToggle: (handle: Handle<VideoPlayer.ButtonProps>) => () => import("remix/component").RemixElement;
|
|
245
|
+
var Settings: (handle: Handle<VideoPlayer.SettingsProps>) => () => import("remix/component").RemixElement;
|
|
246
|
+
var SettingsToggle: (handle: Handle<VideoPlayer.SettingsToggleProps>) => () => import("remix/component").RemixElement;
|
|
247
|
+
var SettingsMenu: (handle: Handle<VideoPlayer.SettingsMenuProps, VideoPlayer.SettingsMenuContext>) => () => import("remix/component").RemixElement;
|
|
248
|
+
var SettingsOption: (handle: Handle<VideoPlayer.SettingsOptionProps>) => () => import("remix/component").RemixElement;
|
|
249
|
+
var CaptionsMenu: (handle: Handle<VideoPlayer.CaptionsMenuProps>) => () => import("remix/component").RemixElement;
|
|
250
|
+
var SpeedMenu: (handle: Handle<VideoPlayer.SpeedMenuProps>) => () => import("remix/component").RemixElement;
|
|
251
|
+
var QualityMenu: (handle: Handle<VideoPlayer.BuiltInMenuProps>) => () => import("remix/component").RemixElement;
|
|
252
|
+
var Theater: (handle: Handle<VideoPlayer.ButtonProps>) => () => import("remix/component").RemixElement;
|
|
253
|
+
var Fullscreen: (handle: Handle<VideoPlayer.ButtonProps>) => () => import("remix/component").RemixElement;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* The island inside every {@link VideoPlayer}: a hidden marker that seeks from time links,
|
|
257
|
+
* marks what plays, and swaps the native controls for a {@link VideoPlayer.Controls} bar.
|
|
258
|
+
* It sits after the screen's `<video>` so its insert handler can find that element. It loads
|
|
259
|
+
* from `@sdxc/ui/video/video-player`, which the browser entry maps to an import.
|
|
260
|
+
*/
|
|
261
|
+
export declare const VideoPlayerSync: EntryComponent<Record<never, never>>;
|