@ksp-gonogo/kerbcast-react 1.4.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 ADDED
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+
3
+ ## 0.12.0 - 2026-06-07
4
+
5
+ Initial release. Versioned in lockstep with `@jonpepler/kerbcast` and the
6
+ sidecar binary.
7
+
8
+ ### Added
9
+
10
+ - `CameraFeed`: the full-bleed camera feed component extracted from gonogo's
11
+ dashboard widget. Hover/tap-revealed chrome, camera picker menu, Next/Prev
12
+ step buttons, map-style zoom rod (hold-to-zoom buttons + debounced absolute
13
+ FoV slider), pan pad with discrete arrows and an analog drag ball, SIGNAL
14
+ LOST overlay, optional debug readout, automatic 16:9 render sizing via
15
+ ResizeObserver.
16
+ - `CameraFeedHandle` imperative ref (`stepCamera`, `setZoomRate`,
17
+ `setPanAxis`, `nudgeZoom`, `nudgePan`) for host platforms that drive the
18
+ feed from their own input systems.
19
+ - `KerbcastProvider` / `useKerbcastClient` context carrying the
20
+ `KerbcastClient`, plus a pluggable `KerbcastSubscriptions` seam with a
21
+ refcounting default (`createClientSubscriptions`).
22
+ - `useKerbcastCameras` and `useKerbcastStream` hooks.
23
+ - `buildCameraLabeler` and `isCameraDestroyed` utilities.
24
+ - Theming hooks: accent colors read `--kerbcast-accent` /
25
+ `--kerbcast-accent-wash` CSS custom properties with the original values as
26
+ fallbacks.
package/LICENSE ADDED
@@ -0,0 +1,369 @@
1
+ kerbcast
2
+ Copyright (c) 2026 Jon Pepler
3
+
4
+ This work is licensed under the Creative Commons
5
+ Attribution-NonCommercial-ShareAlike 4.0 International License.
6
+ Full legal text follows.
7
+
8
+
9
+ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
10
+ Public License
11
+
12
+ By exercising the Licensed Rights (defined below), You accept and agree
13
+ to be bound by the terms and conditions of this Creative Commons
14
+ Attribution-NonCommercial-ShareAlike 4.0 International Public License
15
+ ("Public License"). To the extent this Public License may be
16
+ interpreted as a contract, You are granted the Licensed Rights in
17
+ consideration of Your acceptance of these terms and conditions, and the
18
+ Licensor grants You such rights in consideration of benefits the
19
+ Licensor receives from making the Licensed Material available under
20
+ these terms and conditions.
21
+
22
+
23
+ Section 1 -- Definitions.
24
+
25
+ a. Adapted Material means material subject to Copyright and Similar
26
+ Rights that is derived from or based upon the Licensed Material
27
+ and in which the Licensed Material is translated, altered,
28
+ arranged, transformed, or otherwise modified in a manner requiring
29
+ permission under the Copyright and Similar Rights held by the
30
+ Licensor. For purposes of this Public License, where the Licensed
31
+ Material is a musical work, performance, or sound recording,
32
+ Adapted Material is always produced where the Licensed Material is
33
+ synched in timed relation with a moving image.
34
+
35
+ b. Adapter's License means the license You apply to Your Copyright
36
+ and Similar Rights in Your contributions to Adapted Material in
37
+ accordance with the terms and conditions of this Public License.
38
+
39
+ c. BY-NC-SA Compatible License means a license listed at
40
+ creativecommons.org/compatiblelicenses, approved by Creative
41
+ Commons as essentially the equivalent of this Public License.
42
+
43
+ d. Copyright and Similar Rights means copyright and/or similar rights
44
+ closely related to copyright including, without limitation,
45
+ performance, broadcast, sound recording, and Sui Generis Database
46
+ Rights, without regard to how the rights are labeled or
47
+ categorized. For purposes of this Public License, the rights
48
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
49
+ Rights.
50
+
51
+ e. Effective Technological Measures means those measures that, in the
52
+ absence of proper authority, may not be circumvented under laws
53
+ fulfilling obligations under Article 11 of the WIPO Copyright
54
+ Treaty adopted on December 20, 1996, and/or similar international
55
+ agreements.
56
+
57
+ f. Exceptions and Limitations means fair use, fair dealing, and/or
58
+ any other exception or limitation to Copyright and Similar Rights
59
+ that applies to Your use of the Licensed Material.
60
+
61
+ g. License Elements means the license attributes listed in the name
62
+ of a Creative Commons Public License. The License Elements of this
63
+ Public License are Attribution, NonCommercial, and ShareAlike.
64
+
65
+ h. Licensed Material means the artistic or literary work, database,
66
+ or other material to which the Licensor applied this Public
67
+ License.
68
+
69
+ i. Licensed Rights means the rights granted to You subject to the
70
+ terms and conditions of this Public License, which are limited to
71
+ all Copyright and Similar Rights that apply to Your use of the
72
+ Licensed Material and that the Licensor has authority to license.
73
+
74
+ j. Licensor means the individual(s) or entity(ies) granting rights
75
+ under this Public License.
76
+
77
+ k. NonCommercial means not primarily intended for or directed towards
78
+ commercial advantage or monetary compensation. For purposes of
79
+ this Public License, the exchange of the Licensed Material for
80
+ other material subject to Copyright and Similar Rights by digital
81
+ file-sharing or similar means is NonCommercial provided there is
82
+ no payment of monetary compensation in connection with the
83
+ exchange.
84
+
85
+ l. Share means to provide material to the public by any means or
86
+ process that requires permission under the Licensed Rights, such
87
+ as reproduction, public display, public performance, distribution,
88
+ dissemination, communication, or importation, and to make material
89
+ available to the public including in ways that members of the
90
+ public may access the material from a place and at a time
91
+ individually chosen by them.
92
+
93
+ m. Sui Generis Database Rights means rights other than copyright
94
+ resulting from Directive 96/9/EC of the European Parliament and of
95
+ the Council of 11 March 1996 on the legal protection of databases,
96
+ as amended and/or succeeded, as well as other essentially
97
+ equivalent rights anywhere in the world.
98
+
99
+ n. You means the individual or entity exercising the Licensed Rights
100
+ under this Public License. Your has a corresponding meaning.
101
+
102
+
103
+ Section 2 -- Scope.
104
+
105
+ a. License grant.
106
+
107
+ 1. Subject to the terms and conditions of this Public License,
108
+ the Licensor hereby grants You a worldwide, royalty-free,
109
+ non-sublicensable, non-exclusive, irrevocable license to
110
+ exercise the Licensed Rights in the Licensed Material to:
111
+
112
+ a. reproduce and Share the Licensed Material, in whole or
113
+ in part, for NonCommercial purposes only; and
114
+
115
+ b. produce, reproduce, and Share Adapted Material for
116
+ NonCommercial purposes only.
117
+
118
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
119
+ Exceptions and Limitations apply to Your use, this Public
120
+ License does not apply, and You do not need to comply with
121
+ its terms and conditions.
122
+
123
+ 3. Term. The term of this Public License is specified in Section
124
+ 6(a).
125
+
126
+ 4. Media and formats; technical modifications allowed. The
127
+ Licensor authorizes You to exercise the Licensed Rights in
128
+ all media and formats whether now known or hereafter created,
129
+ and to make technical modifications necessary to do so. The
130
+ Licensor waives and/or agrees not to assert any right or
131
+ authority to forbid You from making technical modifications
132
+ necessary to exercise the Licensed Rights, including
133
+ technical modifications necessary to circumvent Effective
134
+ Technological Measures. For purposes of this Public License,
135
+ simply making modifications authorized by this Section 2(a)
136
+ (4) never produces Adapted Material.
137
+
138
+ 5. Downstream recipients.
139
+
140
+ a. Offer from the Licensor -- Licensed Material. Every
141
+ recipient of the Licensed Material automatically
142
+ receives an offer from the Licensor to exercise the
143
+ Licensed Rights under the terms and conditions of this
144
+ Public License.
145
+
146
+ b. Additional offer from the Licensor -- Adapted Material.
147
+ Every recipient of Adapted Material from You
148
+ automatically receives an offer from the Licensor to
149
+ exercise the Licensed Rights in the Adapted Material
150
+ under the conditions of the Adapter's License You apply.
151
+
152
+ c. No downstream restrictions. You may not offer or impose
153
+ any additional or different terms or conditions on, or
154
+ apply any Effective Technological Measures to, the
155
+ Licensed Material if doing so restricts exercise of the
156
+ Licensed Rights by any recipient of the Licensed
157
+ Material.
158
+
159
+ 6. No endorsement. Nothing in this Public License constitutes or
160
+ may be construed as permission to assert or imply that You
161
+ are, or that Your use of the Licensed Material is, connected
162
+ with, or sponsored, endorsed, or granted official status by,
163
+ the Licensor or others designated to receive attribution as
164
+ provided in Section 3(a)(1)(A)(i).
165
+
166
+ b. Other rights.
167
+
168
+ 1. Moral rights, such as the right of integrity, are not
169
+ licensed under this Public License, nor are publicity,
170
+ privacy, and/or other similar personality rights; however, to
171
+ the extent possible, the Licensor waives and/or agrees not to
172
+ assert any such rights held by the Licensor to the limited
173
+ extent necessary to allow You to exercise the Licensed
174
+ Rights, but not otherwise.
175
+
176
+ 2. Patent and trademark rights are not licensed under this
177
+ Public License.
178
+
179
+ 3. To the extent possible, the Licensor waives any right to
180
+ collect royalties from You for the exercise of the Licensed
181
+ Rights, whether directly or through a collecting society
182
+ under any voluntary or waivable statutory or compulsory
183
+ licensing scheme. In all other cases the Licensor expressly
184
+ reserves any right to collect such royalties, including when
185
+ the Licensed Material is used other than for NonCommercial
186
+ purposes.
187
+
188
+
189
+ Section 3 -- License Conditions.
190
+
191
+ Your exercise of the Licensed Rights is expressly made subject to the
192
+ following conditions.
193
+
194
+ a. Attribution.
195
+
196
+ 1. If You Share the Licensed Material (including in modified
197
+ form), You must:
198
+
199
+ a. retain the following if it is supplied by the Licensor
200
+ with the Licensed Material:
201
+
202
+ i. identification of the creator(s) of the Licensed
203
+ Material and any others designated to receive
204
+ attribution, in any reasonable manner requested by
205
+ the Licensor (including by pseudonym if
206
+ designated);
207
+
208
+ ii. a copyright notice;
209
+
210
+ iii. a notice that refers to this Public License;
211
+
212
+ iv. a notice that refers to the disclaimer of
213
+ warranties;
214
+
215
+ v. a URI or hyperlink to the Licensed Material to the
216
+ extent reasonably practicable;
217
+
218
+ b. indicate if You modified the Licensed Material and
219
+ retain an indication of any previous modifications; and
220
+
221
+ c. indicate the Licensed Material is licensed under this
222
+ Public License, and include the text of, or the URI or
223
+ hyperlink to, this Public License.
224
+
225
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
226
+ reasonable manner based on the medium, means, and context in
227
+ which You Share the Licensed Material. For example, it may be
228
+ reasonable to satisfy the conditions by providing a URI or
229
+ hyperlink to a resource that includes the required
230
+ information.
231
+ 3. If requested by the Licensor, You must remove any of the
232
+ information required by Section 3(a)(1)(A) to the extent
233
+ reasonably practicable.
234
+
235
+ b. ShareAlike.
236
+
237
+ In addition to the conditions in Section 3(a), if You Share
238
+ Adapted Material You produce, the following conditions also apply.
239
+
240
+ 1. The Adapter's License You apply must be a Creative Commons
241
+ license with the same License Elements, this version or
242
+ later, or a BY-NC-SA Compatible License.
243
+
244
+ 2. You must include the text of, or the URI or hyperlink to, the
245
+ Adapter's License You apply. You may satisfy this condition
246
+ in any reasonable manner based on the medium, means, and
247
+ context in which You Share Adapted Material.
248
+
249
+ 3. You may not offer or impose any additional or different terms
250
+ or conditions on, or apply any Effective Technological
251
+ Measures to, Adapted Material that restrict exercise of the
252
+ rights granted under the Adapter's License You apply.
253
+
254
+
255
+ Section 4 -- Sui Generis Database Rights.
256
+
257
+ Where the Licensed Rights include Sui Generis Database Rights that
258
+ apply to Your use of the Licensed Material:
259
+
260
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
261
+ to extract, reuse, reproduce, and Share all or a substantial
262
+ portion of the contents of the database for NonCommercial purposes
263
+ only;
264
+
265
+ b. if You include all or a substantial portion of the database
266
+ contents in a database in which You have Sui Generis Database
267
+ Rights, then the database in which You have Sui Generis Database
268
+ Rights (but not its individual contents) is Adapted Material,
269
+ including for purposes of Section 3(b); and
270
+
271
+ c. You must comply with the conditions in Section 3(a) if You Share
272
+ all or a substantial portion of the contents of the database.
273
+
274
+ For the avoidance of doubt, this Section 4 supplements and does not
275
+ replace Your obligations under this Public License where the Licensed
276
+ Rights include other Copyright and Similar Rights.
277
+
278
+
279
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
280
+
281
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
282
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
283
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
284
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
285
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
286
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
287
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
288
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
289
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
290
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
291
+
292
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
293
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
294
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
295
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
296
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
297
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
298
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
299
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
300
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
301
+
302
+ c. The disclaimer of warranties and limitation of liability provided
303
+ above shall be interpreted in a manner that, to the extent
304
+ possible, most closely approximates an absolute disclaimer and
305
+ waiver of all liability.
306
+
307
+
308
+ Section 6 -- Term and Termination.
309
+
310
+ a. This Public License applies for the term of the Copyright and
311
+ Similar Rights licensed here. However, if You fail to comply with
312
+ this Public License, then Your rights under this Public License
313
+ terminate automatically.
314
+
315
+ b. Where Your right to use the Licensed Material has terminated under
316
+ Section 6(a), it reinstates:
317
+
318
+ 1. automatically as of the date the violation is cured, provided
319
+ it is cured within 30 days of Your discovery of the
320
+ violation; or
321
+
322
+ 2. upon express reinstatement by the Licensor.
323
+
324
+ For the avoidance of doubt, this Section 6(b) does not affect any
325
+ right the Licensor may have to seek remedies for Your violations
326
+ of this Public License.
327
+
328
+ c. For the avoidance of doubt, the Licensor may also offer the
329
+ Licensed Material under separate terms or conditions or stop
330
+ distributing the Licensed Material at any time; however, doing so
331
+ will not terminate this Public License.
332
+
333
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
334
+ License.
335
+
336
+
337
+ Section 7 -- Other Terms and Conditions.
338
+
339
+ a. The Licensor shall not be bound by any additional or different
340
+ terms or conditions communicated by You unless expressly agreed.
341
+
342
+ b. Any arrangements, understandings, or agreements regarding the
343
+ Licensed Material not stated herein are separate from and
344
+ independent of the terms and conditions of this Public License.
345
+
346
+
347
+ Section 8 -- Interpretation.
348
+
349
+ a. For the avoidance of doubt, this Public License does not, and
350
+ shall not be interpreted to, reduce, limit, restrict, or impose
351
+ conditions on any use of the Licensed Material that could lawfully
352
+ be made without permission under this Public License.
353
+
354
+ b. To the extent possible, if any provision of this Public License is
355
+ deemed unenforceable, it shall be automatically reformed to the
356
+ minimum extent necessary to make it enforceable. If the provision
357
+ cannot be reformed, it shall be severed from this Public License
358
+ without affecting the enforceability of the remaining terms and
359
+ conditions.
360
+
361
+ c. No term or condition of this Public License will be waived and no
362
+ failure to comply consented to unless expressly agreed to by the
363
+ Licensor.
364
+
365
+ d. Nothing in this Public License constitutes or may be interpreted
366
+ as a limitation upon, or waiver of, any privileges and immunities
367
+ that apply to the Licensor or You, including from the legal
368
+ processes of any jurisdiction or authority.
369
+
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @ksp-gonogo/kerbcast-react
2
+
3
+ React components and hooks for [kerbcast](https://github.com/ksp-gonogo/kerbcast) camera feeds.
4
+
5
+ This package provides a shared `CameraFeed` component (and related hooks) consumed by
6
+ both gonogo's mission-control dashboard and the kerbcast sidecar's embedded web page.
7
+
8
+ ## Install
9
+
10
+ Published to public npm. No registry route or auth needed:
11
+
12
+ ```
13
+ pnpm add @ksp-gonogo/kerbcast-react
14
+ ```
15
+
16
+ Peer dependencies required: `react` (18 or 19), `react-dom`, `styled-components` (6).
17
+
18
+ ## Purpose
19
+
20
+ Extracts camera-feed UI from gonogo into a reusable layer so both gonogo and the
21
+ sidecar page consume the same component without duplicating protocol or rendering code.
22
+
23
+ ## Versioning
24
+
25
+ This package tracks `@ksp-gonogo/kerbcast` version for version. Use matching versions of both.
26
+ `./scripts/bump-version.sh` bumps them atomically.
@@ -0,0 +1,126 @@
1
+ import type { KerbcastClient } from "@ksp-gonogo/kerbcast";
2
+ /**
3
+ * A consumer-supplied action rendered into the feed's top-right action bar.
4
+ * Lets a host page (e.g. the sidecar's spotlight toggle) inject controls
5
+ * without the library knowing what they do.
6
+ */
7
+ export interface FeedAction {
8
+ /** Stable identity for the React key. */
9
+ id: string;
10
+ /** Accessible label; used for aria-label and the native tooltip. */
11
+ label: string;
12
+ /** Icon node, sized by the action bar (~14px). */
13
+ icon: React.ReactNode;
14
+ /** Toggle state: renders the button highlighted and sets aria-pressed. */
15
+ active?: boolean;
16
+ onClick: () => void;
17
+ }
18
+ /**
19
+ * A hook that yields the live `MediaStream` for a resolved flightId. Must be
20
+ * a stable reference (the same function identity every render) and called
21
+ * unconditionally, per the rules of hooks. Default: the built-in
22
+ * `useKerbcastStream`. Consumers wrap this to inject delayed playout,
23
+ * alternate transports, etc.; the feed stays unaware of what the wrapper
24
+ * does, and keeps binding whatever stream comes back to its `<video>`.
25
+ *
26
+ * A replacement takes over the camera subscription slot: the built-in
27
+ * `useKerbcastStream` (which acquires/releases the slot) does not run when
28
+ * this is supplied, so a replacement must either compose `useKerbcastStream`
29
+ * or acquire the slot itself, or the sidecar is never subscribed and the
30
+ * feed stays black.
31
+ */
32
+ export type CameraStreamHook = (flightId: number | null) => MediaStream | null;
33
+ export interface CameraFeedProps {
34
+ /** Override the context client for this feed only. */
35
+ client?: KerbcastClient;
36
+ /**
37
+ * KSP `Part.flightID` of the camera to display. `null` triggers
38
+ * auto-selection: the first live camera in the registry is latched.
39
+ */
40
+ flightId: number | null;
41
+ /**
42
+ * Called when the user explicitly picks a camera (picker, Next/Prev
43
+ * buttons). Never called on auto-latch.
44
+ */
45
+ onSelectCamera?: (flightId: number) => void;
46
+ /**
47
+ * Called whenever the camera this feed actually displays changes — including
48
+ * auto-latch and fallback picks, not just explicit selection. The argument
49
+ * is the resolved flightId (null when nothing is shown). Use it to label or
50
+ * annotate the feed by what it is really showing rather than what was
51
+ * requested; the two differ whenever auto-selection kicks in.
52
+ */
53
+ onDisplayedCameraChange?: (flightId: number | null) => void;
54
+ /** Show resolution + encoder readout. Default false. */
55
+ showDebugInfo?: boolean;
56
+ /**
57
+ * Whether to show animated static. `true`: stall ramps noise in over the
58
+ * held last frame; sourceless path shows live noise. `false`: stall freezes
59
+ * the last frame with a dim scrim and stale badge; sourceless path shows a
60
+ * plain black background. `undefined` (default): auto mode, reads
61
+ * `prefers-reduced-motion: reduce` at mount and follows changes at runtime
62
+ * (reduced motion defaults to off, normal motion defaults to on).
63
+ */
64
+ showStatic?: boolean;
65
+ /**
66
+ * "auto" (default): ResizeObserver drives `setRenderSize` at a 16:9 crop,
67
+ * debounced 500 ms. "none": no render-size feedback.
68
+ */
69
+ renderSize?: "auto" | "none";
70
+ /** Message shown when no cameras are available. */
71
+ emptyMessage?: string;
72
+ /**
73
+ * Show a built-in fullscreen toggle that fullscreens this feed's frame.
74
+ * Auto-hidden where the Fullscreen API is unavailable (e.g. iOS Safari,
75
+ * which only fullscreens the bare <video>). Default false.
76
+ */
77
+ enableFullscreen?: boolean;
78
+ /**
79
+ * Show a built-in Picture-in-Picture toggle for this feed's video.
80
+ * Auto-hidden where `document.pictureInPictureEnabled` is false. Default
81
+ * false.
82
+ */
83
+ enablePictureInPicture?: boolean;
84
+ /**
85
+ * Show a built-in per-camera quality control in the action bar: Auto plus
86
+ * the resolution presets (full / 3-4 / 1-2 / 1-4 of the operator-configured
87
+ * size), with the camera's effective resolution and a marker when the
88
+ * sidecar's adaptive machinery is throttling below the request. Requests
89
+ * can only lower quality; the resolution change arrives in-band over the
90
+ * existing WebRTC track (the video element is never remounted). Default
91
+ * false.
92
+ */
93
+ enableQualityControl?: boolean;
94
+ /**
95
+ * Consumer-injected action buttons, rendered left of the built-in
96
+ * fullscreen/PiP controls in the top-right action bar.
97
+ */
98
+ actions?: FeedAction[];
99
+ /**
100
+ * Consumer-injected action buttons rendered at the far end of the action
101
+ * bar, right of the built-in controls — the natural home for a close/remove
102
+ * button so it sits in the corner.
103
+ */
104
+ trailingActions?: FeedAction[];
105
+ /**
106
+ * Override how the displayed video stream is sourced for the resolved
107
+ * flightId. Omit (the default) to use the built-in `useKerbcastStream` —
108
+ * unchanged behaviour. When supplied it must be a stable reference passed
109
+ * consistently across renders (it is called as a hook); see
110
+ * {@link CameraStreamHook}.
111
+ */
112
+ useStream?: CameraStreamHook;
113
+ }
114
+ export interface CameraFeedHandle {
115
+ stepCamera(delta: number): void;
116
+ setZoomRate(rate: number): void;
117
+ setPanAxis(axis: "yaw" | "pitch", value: number): void;
118
+ nudgeZoom(deltaSign: number): void;
119
+ nudgePan(yawSign: number, pitchSign: number): void;
120
+ }
121
+ /**
122
+ * Display a live kerbcast camera feed with pan/zoom controls and camera picker.
123
+ * Must be rendered inside a `KerbcastProvider` unless the `client` prop is
124
+ * provided (which creates an implicit inner provider for this feed only).
125
+ */
126
+ export declare const CameraFeed: import("react").ForwardRefExoticComponent<CameraFeedProps & import("react").RefAttributes<CameraFeedHandle>>;