@rightkit/video-ui 0.0.0-stage → 0.1.0
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/CHANGELOG.md +5 -0
- package/LICENSE-APACHE +201 -0
- package/LICENSE-MIT +21 -0
- package/README.md +47 -2
- package/dist/appName.d.ts +2 -0
- package/dist/appName.js +8 -0
- package/dist/components/DesktopWorkspace.d.ts +4 -0
- package/dist/components/DesktopWorkspace.js +527 -0
- package/dist/components/Player.d.ts +49 -0
- package/dist/components/Player.js +335 -0
- package/dist/components/RangePreview.d.ts +9 -0
- package/dist/components/RangePreview.js +22 -0
- package/dist/components/Workspace.css +15 -0
- package/dist/demo/DemoSettings.d.ts +1 -0
- package/dist/demo/DemoSettings.js +43 -0
- package/dist/demo/bindings.d.ts +121 -0
- package/dist/demo/bindings.js +57 -0
- package/dist/demo/demo.css +124 -0
- package/dist/demo/useDemo.d.ts +8 -0
- package/dist/demo/useDemo.js +37 -0
- package/dist/editor/CaptionInspector.d.ts +8 -0
- package/dist/editor/CaptionInspector.js +33 -0
- package/dist/editor/ChangesPanel.d.ts +13 -0
- package/dist/editor/ChangesPanel.js +87 -0
- package/dist/editor/ColourInspector.d.ts +5 -0
- package/dist/editor/ColourInspector.js +341 -0
- package/dist/editor/Inspector.d.ts +15 -0
- package/dist/editor/Inspector.js +202 -0
- package/dist/editor/Timeline.d.ts +39 -0
- package/dist/editor/Timeline.js +506 -0
- package/dist/editor/TimelineEditorView.d.ts +9 -0
- package/dist/editor/TimelineEditorView.js +237 -0
- package/dist/editor/TranscriptPanel.d.ts +20 -0
- package/dist/editor/TranscriptPanel.js +180 -0
- package/dist/editor/actions.d.ts +63 -0
- package/dist/editor/actions.js +124 -0
- package/dist/editor/adapter.d.ts +76 -0
- package/dist/editor/adapter.js +181 -0
- package/dist/editor/capabilities.d.ts +37 -0
- package/dist/editor/capabilities.js +33 -0
- package/dist/editor/gesture.d.ts +29 -0
- package/dist/editor/gesture.js +119 -0
- package/dist/editor/index.d.ts +10 -0
- package/dist/editor/index.js +7 -0
- package/dist/editor/keys.d.ts +15 -0
- package/dist/editor/keys.js +42 -0
- package/dist/editor/model.d.ts +88 -0
- package/dist/editor/model.js +87 -0
- package/dist/editor/transcript.d.ts +27 -0
- package/dist/editor/transcript.js +59 -0
- package/dist/editor/vendor/hyperframes/PlayheadIndicator.d.ts +9 -0
- package/dist/editor/vendor/hyperframes/PlayheadIndicator.js +38 -0
- package/dist/editor/vendor/hyperframes/audioWaveformPeaks.d.ts +7 -0
- package/dist/editor/vendor/hyperframes/audioWaveformPeaks.js +47 -0
- package/dist/editor/vendor/hyperframes/rulerGeometry.d.ts +13 -0
- package/dist/editor/vendor/hyperframes/rulerGeometry.js +133 -0
- package/dist/editor/vendor/hyperframes/useInspectorGestureTransaction.d.ts +33 -0
- package/dist/editor/vendor/hyperframes/useInspectorGestureTransaction.js +126 -0
- package/dist/env.d.ts +66 -0
- package/dist/hooks/useEngine.d.ts +10 -0
- package/dist/hooks/useEngine.js +68 -0
- package/dist/hooks/useHdrToSdr.d.ts +11 -0
- package/dist/hooks/useHdrToSdr.js +19 -0
- package/dist/hooks/useProgress.d.ts +10 -0
- package/dist/hooks/useProgress.js +32 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +57 -0
- package/dist/legal/legalConfig.d.ts +38 -0
- package/dist/legal/legalConfig.js +77 -0
- package/dist/lib/assemble.d.ts +100 -0
- package/dist/lib/assemble.js +72 -0
- package/dist/lib/asset.d.ts +2 -0
- package/dist/lib/asset.js +3 -0
- package/dist/lib/dialog.d.ts +4 -0
- package/dist/lib/dialog.js +44 -0
- package/dist/lib/engine.d.ts +44 -0
- package/dist/lib/engine.js +51 -0
- package/dist/lib/genright.d.ts +90 -0
- package/dist/lib/genright.js +160 -0
- package/dist/lib/media.d.ts +1045 -0
- package/dist/lib/media.js +171 -0
- package/dist/lib/mediaAdapters.d.ts +18 -0
- package/dist/lib/mediaAdapters.js +46 -0
- package/dist/lib/mic.d.ts +38 -0
- package/dist/lib/mic.js +14 -0
- package/dist/lib/models.d.ts +53 -0
- package/dist/lib/models.js +72 -0
- package/dist/lib/modelsBackend.d.ts +3 -0
- package/dist/lib/modelsBackend.js +68 -0
- package/dist/lib/progress.d.ts +77 -0
- package/dist/lib/progress.js +192 -0
- package/dist/lib/project.d.ts +138 -0
- package/dist/lib/project.js +48 -0
- package/dist/lib/services.d.ts +24 -0
- package/dist/lib/services.js +38 -0
- package/dist/lib/settingsBackend.d.ts +2 -0
- package/dist/lib/settingsBackend.js +57 -0
- package/dist/lib/shell.d.ts +171 -0
- package/dist/lib/shell.js +32 -0
- package/dist/styles.css +16 -0
- package/dist/ui/icons.d.ts +7 -0
- package/dist/ui/icons.js +62 -0
- package/dist/ui/index.d.ts +45 -0
- package/dist/ui/index.js +43 -0
- package/dist/ui/ui.css +104 -0
- package/dist/views/Assets.css +99 -0
- package/dist/views/AssetsView.d.ts +6 -0
- package/dist/views/AssetsView.js +371 -0
- package/dist/views/AutoEditView.d.ts +16 -0
- package/dist/views/AutoEditView.js +452 -0
- package/dist/views/BatchDelivery.d.ts +3 -0
- package/dist/views/BatchDelivery.js +331 -0
- package/dist/views/BundleExport.d.ts +3 -0
- package/dist/views/BundleExport.js +81 -0
- package/dist/views/Exports.css +117 -0
- package/dist/views/ExportsView.d.ts +12 -0
- package/dist/views/ExportsView.js +354 -0
- package/dist/views/FinishedEdit.css +546 -0
- package/dist/views/Home.css +97 -0
- package/dist/views/Home.d.ts +14 -0
- package/dist/views/Home.js +192 -0
- package/dist/views/Media.css +65 -0
- package/dist/views/OnboardingGate.d.ts +10 -0
- package/dist/views/OnboardingGate.js +54 -0
- package/dist/views/Phrases.css +45 -0
- package/dist/views/PhrasesView.d.ts +4 -0
- package/dist/views/PhrasesView.js +104 -0
- package/dist/views/ProgressView.d.ts +19 -0
- package/dist/views/ProgressView.js +36 -0
- package/dist/views/Prompt.css +84 -0
- package/dist/views/PromptPanel.d.ts +8 -0
- package/dist/views/PromptPanel.js +169 -0
- package/dist/views/Recipe.css +84 -0
- package/dist/views/RecipeLibrary.d.ts +7 -0
- package/dist/views/RecipeLibrary.js +104 -0
- package/dist/views/Retention.css +49 -0
- package/dist/views/RetentionView.d.ts +7 -0
- package/dist/views/RetentionView.js +145 -0
- package/dist/views/SettingsView.d.ts +9 -0
- package/dist/views/SettingsView.js +235 -0
- package/dist/views/Shorts.css +112 -0
- package/dist/views/ShortsView.d.ts +4 -0
- package/dist/views/ShortsView.js +205 -0
- package/dist/views/SourcesView.d.ts +6 -0
- package/dist/views/SourcesView.js +417 -0
- package/dist/views/TimelineView.d.ts +20 -0
- package/dist/views/TimelineView.js +12 -0
- package/package.json +70 -3
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
/* Finished edit screen — docs/design/app-ui.md §3.4. Layout only; all
|
|
2
|
+
colour/type come from tokens and the src/ui kit. */
|
|
3
|
+
|
|
4
|
+
.fe {
|
|
5
|
+
flex: 1;
|
|
6
|
+
min-height: 0;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
background: var(--rk-chrome);
|
|
10
|
+
color: var(--rk-ink);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Header bar */
|
|
14
|
+
.fe-header {
|
|
15
|
+
flex: none;
|
|
16
|
+
height: 46px;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--s3);
|
|
20
|
+
padding: 0 var(--s4);
|
|
21
|
+
border-bottom: 1px solid var(--rk-line);
|
|
22
|
+
background: var(--rk-plane);
|
|
23
|
+
}
|
|
24
|
+
.fe-header__left,
|
|
25
|
+
.fe-header__right {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: var(--s2);
|
|
29
|
+
min-width: 0;
|
|
30
|
+
}
|
|
31
|
+
.fe-header__right { margin-left: auto; flex-wrap: nowrap; overflow: hidden; }
|
|
32
|
+
.fe-header__mid { flex: none; }
|
|
33
|
+
.fe-header__name { font-size: 13px; font-weight: 600; white-space: nowrap; }
|
|
34
|
+
.fe-header .rk-badge { flex: none; }
|
|
35
|
+
|
|
36
|
+
/* Main row: stage column + side panel */
|
|
37
|
+
.fe-main {
|
|
38
|
+
flex: 1;
|
|
39
|
+
min-height: 0;
|
|
40
|
+
display: flex;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* ---- stage column ---- */
|
|
44
|
+
|
|
45
|
+
.fe-stage-col {
|
|
46
|
+
flex: 1;
|
|
47
|
+
min-height: 0;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
padding: var(--s4) var(--s5);
|
|
52
|
+
gap: var(--s3);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.fe-stage {
|
|
56
|
+
position: relative;
|
|
57
|
+
flex: 1;
|
|
58
|
+
min-height: 120px;
|
|
59
|
+
background: var(--cr-stage);
|
|
60
|
+
border-radius: var(--r-xl);
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
display: grid;
|
|
63
|
+
place-items: center;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.fe-stage canvas,
|
|
67
|
+
.fe-stage img.fe-stage-fallback {
|
|
68
|
+
max-width: 100%;
|
|
69
|
+
max-height: 100%;
|
|
70
|
+
width: auto;
|
|
71
|
+
height: auto;
|
|
72
|
+
display: block;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.fe-stage__tag {
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: var(--s3);
|
|
78
|
+
left: var(--s3);
|
|
79
|
+
font-size: 11px;
|
|
80
|
+
color: var(--rk-ink-2);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.fe-stage__chips {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: var(--s3);
|
|
86
|
+
right: var(--s3);
|
|
87
|
+
display: flex;
|
|
88
|
+
gap: var(--s2);
|
|
89
|
+
align-items: center;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.fe-stage__caption {
|
|
93
|
+
position: absolute;
|
|
94
|
+
left: 50%;
|
|
95
|
+
bottom: var(--s5);
|
|
96
|
+
transform: translateX(-50%);
|
|
97
|
+
max-width: 80%;
|
|
98
|
+
padding: var(--s1) var(--s3);
|
|
99
|
+
border-radius: var(--r-sm);
|
|
100
|
+
background: rgb(0 0 0 / 0.55);
|
|
101
|
+
color: #fff;
|
|
102
|
+
font: 600 15px/1.4 var(--rk-font-body);
|
|
103
|
+
text-align: center;
|
|
104
|
+
white-space: pre-line;
|
|
105
|
+
pointer-events: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.fe-stage__loading {
|
|
109
|
+
position: absolute;
|
|
110
|
+
inset: 0;
|
|
111
|
+
display: grid;
|
|
112
|
+
place-items: center;
|
|
113
|
+
color: var(--rk-ink-2);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Over the fallback frame the message needs its own ground to stay readable. */
|
|
117
|
+
.fe-stage__loading[role="alert"] {
|
|
118
|
+
background: rgb(0 0 0 / 0.65);
|
|
119
|
+
color: #fff;
|
|
120
|
+
padding: 0 16px;
|
|
121
|
+
text-align: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ---- transport ---- */
|
|
125
|
+
|
|
126
|
+
.fe-transport {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
gap: var(--s2);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.fe-transport__row {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
gap: var(--s3);
|
|
137
|
+
position: relative;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.fe-play {
|
|
141
|
+
width: 36px;
|
|
142
|
+
height: 36px;
|
|
143
|
+
border-radius: 50%;
|
|
144
|
+
border: 0;
|
|
145
|
+
background: var(--rk-ink);
|
|
146
|
+
color: var(--rk-chrome);
|
|
147
|
+
display: inline-grid;
|
|
148
|
+
place-items: center;
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
flex: none;
|
|
151
|
+
}
|
|
152
|
+
.fe-play:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
153
|
+
.fe-play svg { width: 16px; height: 16px; }
|
|
154
|
+
.fe-play:focus-visible { outline: 2px solid var(--rk-accent); outline-offset: 2px; }
|
|
155
|
+
|
|
156
|
+
.fe-transport__tc {
|
|
157
|
+
font-family: var(--rk-font-mono);
|
|
158
|
+
font-variant-numeric: tabular-nums;
|
|
159
|
+
font-size: 12px;
|
|
160
|
+
color: var(--rk-ink-2);
|
|
161
|
+
white-space: nowrap;
|
|
162
|
+
}
|
|
163
|
+
.fe-transport__tc strong { color: var(--rk-ink); font-weight: 500; }
|
|
164
|
+
|
|
165
|
+
.fe-transport__right {
|
|
166
|
+
position: absolute;
|
|
167
|
+
right: 0;
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
gap: var(--s2);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* ---- side panel ---- */
|
|
174
|
+
|
|
175
|
+
.fe-side {
|
|
176
|
+
flex: none;
|
|
177
|
+
width: 300px;
|
|
178
|
+
min-height: 0;
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
border-left: 1px solid var(--rk-line);
|
|
182
|
+
background: var(--rk-plane);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.fe-side__tabs {
|
|
186
|
+
flex: none;
|
|
187
|
+
display: flex;
|
|
188
|
+
gap: var(--s1);
|
|
189
|
+
padding: var(--s3) var(--s3) 0;
|
|
190
|
+
border-bottom: 1px solid var(--rk-line);
|
|
191
|
+
}
|
|
192
|
+
.fe-side__tab {
|
|
193
|
+
border: 0;
|
|
194
|
+
background: transparent;
|
|
195
|
+
color: var(--rk-ink-2);
|
|
196
|
+
font-size: 12px;
|
|
197
|
+
padding: var(--s1) var(--s2);
|
|
198
|
+
border-bottom: 2px solid transparent;
|
|
199
|
+
cursor: pointer;
|
|
200
|
+
}
|
|
201
|
+
.fe-side__tab:hover { color: var(--rk-ink); }
|
|
202
|
+
.fe-side__tab--active {
|
|
203
|
+
color: var(--rk-ink);
|
|
204
|
+
border-bottom-color: var(--rk-accent);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.fe-side__hint {
|
|
208
|
+
flex: none;
|
|
209
|
+
padding: var(--s2) var(--s4) 0;
|
|
210
|
+
font-size: 11px;
|
|
211
|
+
color: var(--rk-ink-2);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.fe-side__body {
|
|
215
|
+
flex: 1;
|
|
216
|
+
min-height: 0;
|
|
217
|
+
overflow-y: auto;
|
|
218
|
+
padding: var(--s3) var(--s4);
|
|
219
|
+
display: flex;
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
gap: var(--s2);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.fe-side__foot {
|
|
225
|
+
flex: none;
|
|
226
|
+
border-top: 1px solid var(--rk-line);
|
|
227
|
+
padding: var(--s3) var(--s4);
|
|
228
|
+
font-size: 11px;
|
|
229
|
+
color: var(--rk-ink-2);
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
gap: 2px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Transcript cue lines */
|
|
236
|
+
.fe-cue {
|
|
237
|
+
display: grid;
|
|
238
|
+
grid-template-columns: 34px minmax(0, 1fr);
|
|
239
|
+
gap: var(--s2);
|
|
240
|
+
padding: var(--s2);
|
|
241
|
+
border: 0;
|
|
242
|
+
border-radius: var(--r-sm);
|
|
243
|
+
background: transparent;
|
|
244
|
+
color: var(--rk-ink);
|
|
245
|
+
text-align: left;
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
font-size: 12px;
|
|
248
|
+
line-height: 1.65;
|
|
249
|
+
}
|
|
250
|
+
.fe-cue:hover { background: var(--rk-fill-2); }
|
|
251
|
+
.fe-cue--current { background: var(--rk-accent-soft); }
|
|
252
|
+
.fe-cue__stamp {
|
|
253
|
+
font-family: var(--rk-font-mono);
|
|
254
|
+
font-size: 10px;
|
|
255
|
+
color: var(--rk-ink-2);
|
|
256
|
+
padding-top: 3px;
|
|
257
|
+
white-space: nowrap;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* Word editing rows (Edit mode transcript) */
|
|
261
|
+
.fe-words { line-height: 1.9; font-size: 13px; }
|
|
262
|
+
.fe-word {
|
|
263
|
+
border: 0;
|
|
264
|
+
background: transparent;
|
|
265
|
+
color: var(--rk-ink);
|
|
266
|
+
padding: 1px 2px;
|
|
267
|
+
border-radius: 3px;
|
|
268
|
+
cursor: pointer;
|
|
269
|
+
font-size: 13px;
|
|
270
|
+
}
|
|
271
|
+
.fe-word:hover { background: var(--rk-fill-2); }
|
|
272
|
+
.fe-word--cut { color: var(--rk-ink-3); text-decoration: line-through; }
|
|
273
|
+
.fe-word--sel { background: var(--rk-accent); color: var(--rk-accent-ink); }
|
|
274
|
+
|
|
275
|
+
/* Changes list */
|
|
276
|
+
.fe-change-group { display: flex; flex-direction: column; gap: var(--s1); }
|
|
277
|
+
.fe-change-group__head {
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
gap: var(--s2);
|
|
281
|
+
padding: var(--s2) var(--s1) 0;
|
|
282
|
+
}
|
|
283
|
+
.fe-change-group__head h4 {
|
|
284
|
+
margin: 0;
|
|
285
|
+
font: 500 11px/1 var(--rk-font-body);
|
|
286
|
+
letter-spacing: 0.08em;
|
|
287
|
+
text-transform: uppercase;
|
|
288
|
+
color: var(--rk-ink-2);
|
|
289
|
+
}
|
|
290
|
+
.fe-change {
|
|
291
|
+
display: flex;
|
|
292
|
+
flex-direction: column;
|
|
293
|
+
gap: var(--s1);
|
|
294
|
+
padding: var(--s2);
|
|
295
|
+
border-radius: var(--r-sm);
|
|
296
|
+
border: 1px solid var(--rk-line);
|
|
297
|
+
background: var(--rk-elevated);
|
|
298
|
+
color: var(--rk-ink);
|
|
299
|
+
font-size: 12px;
|
|
300
|
+
}
|
|
301
|
+
.fe-change[data-state="rejected"] { opacity: 0.6; }
|
|
302
|
+
.fe-change__head {
|
|
303
|
+
display: flex;
|
|
304
|
+
align-items: center;
|
|
305
|
+
justify-content: space-between;
|
|
306
|
+
gap: var(--s2);
|
|
307
|
+
}
|
|
308
|
+
.fe-change__label {
|
|
309
|
+
border: 0;
|
|
310
|
+
padding: 0;
|
|
311
|
+
background: transparent;
|
|
312
|
+
color: var(--rk-ink);
|
|
313
|
+
font-size: 12px;
|
|
314
|
+
font-weight: 500;
|
|
315
|
+
text-align: left;
|
|
316
|
+
cursor: pointer;
|
|
317
|
+
overflow: hidden;
|
|
318
|
+
text-overflow: ellipsis;
|
|
319
|
+
}
|
|
320
|
+
.fe-change__reason {
|
|
321
|
+
margin: 0;
|
|
322
|
+
color: var(--rk-ink-2);
|
|
323
|
+
font-size: 11px;
|
|
324
|
+
line-height: 1.5;
|
|
325
|
+
}
|
|
326
|
+
.fe-change__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
|
|
327
|
+
.fe-change__alts {
|
|
328
|
+
display: flex;
|
|
329
|
+
flex-direction: column;
|
|
330
|
+
gap: var(--s1);
|
|
331
|
+
border-top: 1px solid var(--rk-line);
|
|
332
|
+
padding-top: var(--s2);
|
|
333
|
+
}
|
|
334
|
+
.fe-take {
|
|
335
|
+
display: flex;
|
|
336
|
+
align-items: center;
|
|
337
|
+
justify-content: space-between;
|
|
338
|
+
gap: var(--s2);
|
|
339
|
+
padding: var(--s1) var(--s2);
|
|
340
|
+
border-radius: var(--r-sm);
|
|
341
|
+
font-size: 12px;
|
|
342
|
+
}
|
|
343
|
+
.fe-take--current { background: var(--rk-accent-soft); }
|
|
344
|
+
.fe-take__label { color: var(--rk-ink-2); }
|
|
345
|
+
.fe-take--current .fe-take__label { color: var(--rk-ink); }
|
|
346
|
+
|
|
347
|
+
/* ---- timeline ---- */
|
|
348
|
+
|
|
349
|
+
.fe-tl {
|
|
350
|
+
flex: none;
|
|
351
|
+
position: relative;
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-direction: column;
|
|
354
|
+
min-height: 0;
|
|
355
|
+
border-top: 1px solid var(--rk-line);
|
|
356
|
+
background: var(--rk-plane);
|
|
357
|
+
}
|
|
358
|
+
.fe-tl__resizebtn {
|
|
359
|
+
position: absolute;
|
|
360
|
+
top: -14px;
|
|
361
|
+
right: var(--s3);
|
|
362
|
+
z-index: 9;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.fe-tl__resize {
|
|
366
|
+
flex: none;
|
|
367
|
+
height: 6px;
|
|
368
|
+
cursor: row-resize;
|
|
369
|
+
}
|
|
370
|
+
.fe-tl__resize:hover { background: var(--rk-fill-2); }
|
|
371
|
+
|
|
372
|
+
.fe-tl__bar {
|
|
373
|
+
flex: none;
|
|
374
|
+
display: flex;
|
|
375
|
+
align-items: center;
|
|
376
|
+
gap: var(--s2);
|
|
377
|
+
padding: var(--s1) var(--s4);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.fe-tl__zoom {
|
|
381
|
+
margin-left: auto;
|
|
382
|
+
display: flex;
|
|
383
|
+
align-items: center;
|
|
384
|
+
gap: var(--s2);
|
|
385
|
+
color: var(--rk-ink-2);
|
|
386
|
+
}
|
|
387
|
+
.fe-tl__zoom input[type="range"] { width: 112px; accent-color: var(--rk-accent); }
|
|
388
|
+
|
|
389
|
+
.fe-tl__viewport {
|
|
390
|
+
flex: 1;
|
|
391
|
+
min-height: 0;
|
|
392
|
+
overflow: auto;
|
|
393
|
+
position: relative;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.fe-tl__ruler {
|
|
397
|
+
position: sticky;
|
|
398
|
+
top: 0;
|
|
399
|
+
z-index: 7;
|
|
400
|
+
display: flex;
|
|
401
|
+
height: 24px;
|
|
402
|
+
background: var(--rk-plane);
|
|
403
|
+
border-bottom: 1px solid var(--rk-line);
|
|
404
|
+
user-select: none;
|
|
405
|
+
cursor: ew-resize;
|
|
406
|
+
}
|
|
407
|
+
.fe-tl__ruler-tick { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--rk-line); }
|
|
408
|
+
.fe-tl__ruler-major { position: absolute; top: 0; }
|
|
409
|
+
.fe-tl__ruler-major i { display: block; width: 1px; height: 24px; background: var(--rk-line); }
|
|
410
|
+
.fe-tl__ruler-major span {
|
|
411
|
+
position: absolute;
|
|
412
|
+
left: 5px;
|
|
413
|
+
top: 5px;
|
|
414
|
+
font-family: var(--rk-font-mono);
|
|
415
|
+
font-size: 10px;
|
|
416
|
+
line-height: 1;
|
|
417
|
+
color: var(--rk-ink-2);
|
|
418
|
+
white-space: nowrap;
|
|
419
|
+
font-variant-numeric: tabular-nums;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.fe-lane { display: flex; }
|
|
423
|
+
.fe-lane__label {
|
|
424
|
+
position: sticky;
|
|
425
|
+
left: 0;
|
|
426
|
+
z-index: 6;
|
|
427
|
+
flex: none;
|
|
428
|
+
width: 72px;
|
|
429
|
+
height: 32px;
|
|
430
|
+
display: flex;
|
|
431
|
+
align-items: center;
|
|
432
|
+
padding: 0 var(--s2);
|
|
433
|
+
background: var(--rk-plane);
|
|
434
|
+
border-right: 1px solid var(--rk-line);
|
|
435
|
+
font-size: 12px;
|
|
436
|
+
color: var(--rk-ink-2);
|
|
437
|
+
overflow: hidden;
|
|
438
|
+
}
|
|
439
|
+
.fe-lane__label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
440
|
+
.fe-lane__track {
|
|
441
|
+
position: relative;
|
|
442
|
+
height: 32px;
|
|
443
|
+
background: var(--rk-fill);
|
|
444
|
+
border-bottom: 1px solid var(--rk-line);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.fe-clip {
|
|
448
|
+
position: absolute;
|
|
449
|
+
top: 3px;
|
|
450
|
+
height: 26px;
|
|
451
|
+
border-radius: var(--r-sm);
|
|
452
|
+
background: var(--rk-fill-3);
|
|
453
|
+
border: 1px solid var(--rk-line);
|
|
454
|
+
color: var(--rk-ink);
|
|
455
|
+
overflow: hidden;
|
|
456
|
+
display: flex;
|
|
457
|
+
align-items: center;
|
|
458
|
+
padding: 0 6px;
|
|
459
|
+
font-size: 11px;
|
|
460
|
+
cursor: default;
|
|
461
|
+
}
|
|
462
|
+
.fe-clip--sel { border-color: var(--rk-accent); box-shadow: 0 0 0 1px var(--rk-accent); }
|
|
463
|
+
.fe-clip--pending { opacity: 0.6; }
|
|
464
|
+
.fe-clip--caption { background: var(--rk-accent-soft); }
|
|
465
|
+
.fe-clip__thumbs { position: absolute; inset: 0; display: flex; opacity: 0.55; }
|
|
466
|
+
.fe-clip__thumbs img { height: 100%; flex: 1; min-width: 0; object-fit: cover; }
|
|
467
|
+
.fe-clip__label {
|
|
468
|
+
position: relative;
|
|
469
|
+
overflow: hidden;
|
|
470
|
+
text-overflow: ellipsis;
|
|
471
|
+
white-space: nowrap;
|
|
472
|
+
text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
|
|
473
|
+
}
|
|
474
|
+
.fe-clip__handle {
|
|
475
|
+
position: absolute;
|
|
476
|
+
top: 0;
|
|
477
|
+
width: 6px;
|
|
478
|
+
height: 100%;
|
|
479
|
+
border: 0;
|
|
480
|
+
padding: 0;
|
|
481
|
+
background: var(--rk-accent);
|
|
482
|
+
opacity: 0;
|
|
483
|
+
cursor: ew-resize;
|
|
484
|
+
}
|
|
485
|
+
.fe-clip__handle--in { left: 0; }
|
|
486
|
+
.fe-clip__handle--out { right: 0; }
|
|
487
|
+
.fe-clip:hover .fe-clip__handle,
|
|
488
|
+
.fe-clip__handle:focus-visible { opacity: 1; }
|
|
489
|
+
|
|
490
|
+
.fe-clip__wave {
|
|
491
|
+
position: absolute;
|
|
492
|
+
inset: 0;
|
|
493
|
+
display: flex;
|
|
494
|
+
align-items: center;
|
|
495
|
+
gap: 1px;
|
|
496
|
+
padding: 0 3px;
|
|
497
|
+
}
|
|
498
|
+
.fe-clip__wave i {
|
|
499
|
+
flex: 1;
|
|
500
|
+
min-width: 1px;
|
|
501
|
+
border-radius: 1px;
|
|
502
|
+
background: var(--rk-accent);
|
|
503
|
+
opacity: 0.6;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.fe-tl__playhead {
|
|
507
|
+
position: absolute;
|
|
508
|
+
top: 0;
|
|
509
|
+
bottom: 0;
|
|
510
|
+
width: 2px;
|
|
511
|
+
margin-left: -1px;
|
|
512
|
+
background: var(--rk-accent);
|
|
513
|
+
pointer-events: none;
|
|
514
|
+
z-index: 8;
|
|
515
|
+
}
|
|
516
|
+
.fe-tl__playhead::before {
|
|
517
|
+
content: "";
|
|
518
|
+
position: absolute;
|
|
519
|
+
top: 17px;
|
|
520
|
+
left: -3px;
|
|
521
|
+
width: 8px;
|
|
522
|
+
height: 8px;
|
|
523
|
+
border-radius: 50%;
|
|
524
|
+
background: var(--rk-accent);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/* ---- context menu: the shell's ContextMenu; only the disabled-reason text is ours ---- */
|
|
528
|
+
|
|
529
|
+
.fe-menu__reason {
|
|
530
|
+
margin-left: var(--s2);
|
|
531
|
+
max-width: 160px;
|
|
532
|
+
display: inline-block;
|
|
533
|
+
vertical-align: bottom;
|
|
534
|
+
overflow: hidden;
|
|
535
|
+
text-overflow: ellipsis;
|
|
536
|
+
white-space: nowrap;
|
|
537
|
+
font-size: 10px;
|
|
538
|
+
color: var(--rk-ink-2);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/* ---- inspect ---- */
|
|
542
|
+
|
|
543
|
+
.fe-inspect { display: flex; flex-direction: column; gap: var(--s3); }
|
|
544
|
+
.fe-inspect__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
|
|
545
|
+
.rk-input.fe-inspect__range { padding: 0; border: 0; background: none; box-shadow: none; height: auto; }
|
|
546
|
+
.fe-inspect__range { accent-color: var(--rk-accent); width: 100%; }
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* Projects (home) — app-ui.md §3.1 */
|
|
2
|
+
|
|
3
|
+
.Home-body {
|
|
4
|
+
min-height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--s4);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.Home-body--drop {
|
|
11
|
+
outline: 2px dashed var(--rk-accent);
|
|
12
|
+
outline-offset: -6px;
|
|
13
|
+
border-radius: var(--r-xl);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.Home-dim {
|
|
17
|
+
margin: 0;
|
|
18
|
+
font-size: 13px;
|
|
19
|
+
color: var(--rk-ink-2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.Home-dropzone {
|
|
23
|
+
flex: 1;
|
|
24
|
+
display: grid;
|
|
25
|
+
place-items: center;
|
|
26
|
+
border: 2px dashed var(--rk-line);
|
|
27
|
+
border-radius: var(--r-xl);
|
|
28
|
+
min-height: 320px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.Home-body--drop .Home-dropzone {
|
|
32
|
+
border-color: var(--rk-accent);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.Home-grid {
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
38
|
+
gap: var(--s4);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.Home-cardWrap {
|
|
42
|
+
position: relative;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Card flush supplies border/radius/hover; the thumbnail runs edge-to-edge
|
|
46
|
+
at the top (radius on the card's top corners only, owner review). */
|
|
47
|
+
.Home-card {
|
|
48
|
+
width: 100%;
|
|
49
|
+
text-align: left;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.Home-card:focus-visible { outline: 2px solid var(--rk-accent); outline-offset: 2px; }
|
|
53
|
+
|
|
54
|
+
.Home-card .cr-thumb {
|
|
55
|
+
border-radius: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.Home-cardBody {
|
|
59
|
+
display: grid;
|
|
60
|
+
gap: var(--s1);
|
|
61
|
+
justify-items: start;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
width: 100%;
|
|
64
|
+
padding: var(--s3);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.Home-cardName {
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
max-width: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.Home-cardMeta {
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
color: var(--rk-ink-2);
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
text-overflow: ellipsis;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
max-width: 100%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.Home-cardMenu {
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: var(--s2);
|
|
88
|
+
right: var(--s2);
|
|
89
|
+
opacity: 0;
|
|
90
|
+
transition: opacity 150ms ease-out;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.Home-cardWrap:hover .Home-cardMenu,
|
|
94
|
+
.Home-cardMenu--open,
|
|
95
|
+
.Home-cardMenu:focus-within { opacity: 1; }
|
|
96
|
+
|
|
97
|
+
.Home-cardMenu .rk-icon-btn { background: rgb(0 0 0 / 0.55); color: #fff; }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const loadRecent: () => Promise<string[]>;
|
|
2
|
+
export declare const rememberProject: (dir: string) => Promise<string[]>;
|
|
3
|
+
export declare const forgetProject: (dir: string) => Promise<string[]>;
|
|
4
|
+
export declare function Home({ ready, dropActive, onOpen, onCreate, onOpenFolder, onImportBundle, onFiles, }: {
|
|
5
|
+
ready: boolean;
|
|
6
|
+
dropActive: boolean;
|
|
7
|
+
onOpen: (dir: string) => void;
|
|
8
|
+
onCreate: () => void;
|
|
9
|
+
onOpenFolder: () => void;
|
|
10
|
+
/** Picks a bundle and a new folder, imports and opens it. Resolves with the error to show, or null. */
|
|
11
|
+
onImportBundle: () => Promise<string | null>;
|
|
12
|
+
/** Create a project from dropped/picked media files. */
|
|
13
|
+
onFiles: (paths: string[]) => void;
|
|
14
|
+
}): import("react").JSX.Element;
|