tempest-react-sdk 0.54.0 → 0.56.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/README.md +74 -73
- package/dist/components/AudioPlayer/AudioPlayer.cjs +1 -1
- package/dist/components/AudioPlayer/AudioPlayer.js +6 -6
- package/dist/components/VideoPlayer/VideoPlayer.cjs +2 -0
- package/dist/components/VideoPlayer/VideoPlayer.cjs.map +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.js +229 -0
- package/dist/components/VideoPlayer/VideoPlayer.js.map +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.module.cjs +2 -0
- package/dist/components/VideoPlayer/VideoPlayer.module.cjs.map +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.module.js +19 -0
- package/dist/components/VideoPlayer/VideoPlayer.module.js.map +1 -0
- package/dist/components/VideoPlayer/playback-rates.cjs +2 -0
- package/dist/components/VideoPlayer/playback-rates.cjs.map +1 -0
- package/dist/components/VideoPlayer/playback-rates.js +11 -0
- package/dist/components/VideoPlayer/playback-rates.js.map +1 -0
- package/dist/imaging/exceptions.cjs +1 -1
- package/dist/imaging/exceptions.cjs.map +1 -1
- package/dist/imaging/exceptions.js +5 -1
- package/dist/imaging/exceptions.js.map +1 -1
- package/dist/imaging/frame.cjs +2 -0
- package/dist/imaging/frame.cjs.map +1 -0
- package/dist/imaging/frame.js +82 -0
- package/dist/imaging/frame.js.map +1 -0
- package/dist/imaging.cjs +1 -1
- package/dist/imaging.d.ts +611 -494
- package/dist/imaging.js +10 -9
- package/dist/styles/VideoPlayer.css +23 -0
- package/dist/styles/media.css +22 -0
- package/dist/styles.css +1 -1
- package/dist/tempest-react-sdk.cjs +1 -1
- package/dist/tempest-react-sdk.d.ts +389 -23
- package/dist/tempest-react-sdk.js +213 -209
- package/dist/webrtc/mesh-quality.cjs +2 -0
- package/dist/webrtc/mesh-quality.cjs.map +1 -0
- package/dist/webrtc/mesh-quality.js +51 -0
- package/dist/webrtc/mesh-quality.js.map +1 -0
- package/dist/webrtc/peer-link.cjs +2 -0
- package/dist/webrtc/peer-link.cjs.map +1 -0
- package/dist/webrtc/peer-link.js +45 -0
- package/dist/webrtc/peer-link.js.map +1 -0
- package/dist/webrtc/peer-mesh.cjs +2 -0
- package/dist/webrtc/peer-mesh.cjs.map +1 -0
- package/dist/webrtc/peer-mesh.js +155 -0
- package/dist/webrtc/peer-mesh.js.map +1 -0
- package/package.json +1 -1
package/dist/imaging.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createSurface as
|
|
3
|
-
import { decodeImage as
|
|
4
|
-
import { DEFAULT_QUALITY as
|
|
5
|
-
import { DEFAULT_BACKGROUND as
|
|
6
|
-
import { DEFAULT_COMPRESS_STEPS as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { FrameSeekError as e, ImageDecodeError as t, ImageEncodeError as n, ImagingError as r, ImagingUnavailableError as i, UnsupportedImageTypeError as a } from "./imaging/exceptions.js";
|
|
2
|
+
import { createSurface as o, drawScaled as s, getContext as c } from "./imaging/canvas.js";
|
|
3
|
+
import { decodeImage as l, readImageInfo as u } from "./imaging/decode.js";
|
|
4
|
+
import { DEFAULT_QUALITY as d, DEFAULT_TYPE as f, bestSupportedType as p, encodeImage as m, supportsImageType as h } from "./imaging/encode.js";
|
|
5
|
+
import { DEFAULT_BACKGROUND as g, cropImage as _, flipImage as v, resizeImage as y, rotateImage as b } from "./imaging/transform.js";
|
|
6
|
+
import { DEFAULT_COMPRESS_STEPS as x, DEFAULT_MAX_QUALITY as S, DEFAULT_MIN_QUALITY as C, compressToTarget as w } from "./imaging/compress.js";
|
|
7
|
+
import { DEFAULT_FRAME_TIMEOUT_MS as T, captureFrame as E } from "./imaging/frame.js";
|
|
8
|
+
import { createThumbnails as D } from "./imaging/thumbnails.js";
|
|
9
|
+
import { useImagePreview as O, useImageProcessing as k } from "./imaging/use-image-processing.js";
|
|
10
|
+
export { g as DEFAULT_BACKGROUND, x as DEFAULT_COMPRESS_STEPS, T as DEFAULT_FRAME_TIMEOUT_MS, S as DEFAULT_MAX_QUALITY, C as DEFAULT_MIN_QUALITY, d as DEFAULT_QUALITY, f as DEFAULT_TYPE, e as FrameSeekError, t as ImageDecodeError, n as ImageEncodeError, r as ImagingError, i as ImagingUnavailableError, a as UnsupportedImageTypeError, p as bestSupportedType, E as captureFrame, w as compressToTarget, o as createSurface, D as createThumbnails, _ as cropImage, l as decodeImage, s as drawScaled, m as encodeImage, v as flipImage, c as getContext, u as readImageInfo, y as resizeImage, b as rotateImage, h as supportsImageType, O as useImagePreview, k as useImageProcessing };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* Generated by scripts/split-css.mjs — do not edit. */
|
|
2
|
+
.tempest_player_tP0ul{border:1px solid var(--tempest-border);border-radius:var(--tempest-radius-lg);background-color:var(--tempest-surface);min-width:0;color:var(--tempest-text);font-family:var(--tempest-font-sans);flex-direction:column;display:flex;overflow:hidden}
|
|
3
|
+
.tempest_frame_ds-xN{background-color:#000;width:100%;position:relative}
|
|
4
|
+
.tempest_video_Ejoer{object-fit:contain;width:100%;height:100%;display:block}
|
|
5
|
+
.tempest_chrome_LI2ZI{align-items:center;gap:var(--tempest-space-3);padding:var(--tempest-space-2) var(--tempest-space-3);border-top:1px solid var(--tempest-border);background-color:var(--tempest-surface);flex-wrap:wrap;display:flex}
|
|
6
|
+
.tempest_transport_waV9q{border-radius:var(--tempest-radius-full);background-color:var(--tempest-primary);width:2.25rem;height:2.25rem;color:var(--tempest-primary-foreground);cursor:pointer;transition:var(--tempest-transition-color);border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}
|
|
7
|
+
.tempest_transport_waV9q:disabled{background-color:var(--tempest-surface-3);color:var(--tempest-text-subtle);cursor:not-allowed}
|
|
8
|
+
.tempest_icon_jIwyC{border-radius:var(--tempest-radius-md);width:2rem;height:2rem;color:var(--tempest-text-muted);cursor:pointer;transition:var(--tempest-transition-color);background-color:#0000;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}
|
|
9
|
+
.tempest_icon_jIwyC:hover:not(:disabled){background-color:var(--tempest-surface-2);color:var(--tempest-text)}
|
|
10
|
+
.tempest_icon_jIwyC:disabled{color:var(--tempest-text-subtle);cursor:not-allowed}
|
|
11
|
+
.tempest_seek_qB6l-{min-width:3rem;height:1.25rem;accent-color:var(--tempest-primary);cursor:pointer;background:0 0;flex:8rem;margin:0}
|
|
12
|
+
.tempest_volume_R0Fr0{min-width:2.5rem;height:1.25rem;accent-color:var(--tempest-primary);cursor:pointer;background:0 0;flex:0 4.5rem;margin:0}
|
|
13
|
+
.tempest_seek_qB6l-:disabled,.tempest_volume_R0Fr0:disabled{accent-color:var(--tempest-surface-3);cursor:not-allowed}
|
|
14
|
+
.tempest_rate_Dluev{padding:var(--tempest-space-1) var(--tempest-space-2);border:1px solid var(--tempest-border);border-radius:var(--tempest-radius-md);background-color:var(--tempest-surface);color:var(--tempest-text);font-family:inherit;font-size:var(--tempest-text-xs);font-variant-numeric:tabular-nums;cursor:pointer;flex:none}
|
|
15
|
+
.tempest_rate_Dluev:disabled{color:var(--tempest-text-subtle);cursor:not-allowed}
|
|
16
|
+
.tempest_transport_waV9q:focus-visible,.tempest_icon_jIwyC:focus-visible,.tempest_seek_qB6l-:focus-visible,.tempest_volume_R0Fr0:focus-visible,.tempest_rate_Dluev:focus-visible{outline:var(--tempest-focus-ring-width) solid var(--tempest-focus-ring-color);outline-offset:2px;border-radius:var(--tempest-radius-sm)}
|
|
17
|
+
.tempest_time_z9Tg1{gap:var(--tempest-space-1);color:var(--tempest-text-muted);font-size:var(--tempest-text-xs);font-variant-numeric:tabular-nums;flex:none;display:inline-flex}
|
|
18
|
+
.tempest_actions_UxFoM{align-items:center;gap:var(--tempest-space-1);flex:none;display:inline-flex}
|
|
19
|
+
.tempest_immersive_eSsR6{border:none;border-radius:0;width:100%;height:100%}
|
|
20
|
+
.tempest_immersive_eSsR6 .tempest_frame_ds-xN{flex:auto;min-height:0;aspect-ratio:auto!important}
|
|
21
|
+
@media (prefers-reduced-motion:reduce){.tempest_transport_waV9q,.tempest_icon_jIwyC{transition:none}}
|
|
22
|
+
@media (pointer:coarse){.tempest_transport_waV9q:after,.tempest_icon_jIwyC:after{content:"";position:absolute;inset:-6px}}
|
|
23
|
+
@media (width<=480px){.tempest_chrome_LI2ZI{gap:var(--tempest-space-2);padding:var(--tempest-space-2)}.tempest_seek_qB6l-{flex:100%;order:-1}.tempest_volume_R0Fr0{display:none}}
|
package/dist/styles/media.css
CHANGED
|
@@ -50,3 +50,25 @@
|
|
|
50
50
|
.tempest_statusIcon_k2Hmu{flex:none}
|
|
51
51
|
.tempest_notice_ELics{padding:var(--tempest-space-3);border:1px solid var(--tempest-border);border-radius:var(--tempest-radius-lg);background-color:var(--tempest-surface);color:var(--tempest-text-muted);font-size:var(--tempest-text-sm);margin:0}
|
|
52
52
|
.tempest_footer_6SO7U{color:var(--tempest-text-muted);font-size:var(--tempest-text-xs)}
|
|
53
|
+
.tempest_player_tP0ul{border:1px solid var(--tempest-border);border-radius:var(--tempest-radius-lg);background-color:var(--tempest-surface);min-width:0;color:var(--tempest-text);font-family:var(--tempest-font-sans);flex-direction:column;display:flex;overflow:hidden}
|
|
54
|
+
.tempest_frame_ds-xN{background-color:#000;width:100%;position:relative}
|
|
55
|
+
.tempest_video_Ejoer{object-fit:contain;width:100%;height:100%;display:block}
|
|
56
|
+
.tempest_chrome_LI2ZI{align-items:center;gap:var(--tempest-space-3);padding:var(--tempest-space-2) var(--tempest-space-3);border-top:1px solid var(--tempest-border);background-color:var(--tempest-surface);flex-wrap:wrap;display:flex}
|
|
57
|
+
.tempest_transport_waV9q{border-radius:var(--tempest-radius-full);background-color:var(--tempest-primary);width:2.25rem;height:2.25rem;color:var(--tempest-primary-foreground);cursor:pointer;transition:var(--tempest-transition-color);border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}
|
|
58
|
+
.tempest_transport_waV9q:disabled{background-color:var(--tempest-surface-3);color:var(--tempest-text-subtle);cursor:not-allowed}
|
|
59
|
+
.tempest_icon_jIwyC{border-radius:var(--tempest-radius-md);width:2rem;height:2rem;color:var(--tempest-text-muted);cursor:pointer;transition:var(--tempest-transition-color);background-color:#0000;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}
|
|
60
|
+
.tempest_icon_jIwyC:hover:not(:disabled){background-color:var(--tempest-surface-2);color:var(--tempest-text)}
|
|
61
|
+
.tempest_icon_jIwyC:disabled{color:var(--tempest-text-subtle);cursor:not-allowed}
|
|
62
|
+
.tempest_seek_qB6l-{min-width:3rem;height:1.25rem;accent-color:var(--tempest-primary);cursor:pointer;background:0 0;flex:8rem;margin:0}
|
|
63
|
+
.tempest_volume_R0Fr0{min-width:2.5rem;height:1.25rem;accent-color:var(--tempest-primary);cursor:pointer;background:0 0;flex:0 4.5rem;margin:0}
|
|
64
|
+
.tempest_seek_qB6l-:disabled,.tempest_volume_R0Fr0:disabled{accent-color:var(--tempest-surface-3);cursor:not-allowed}
|
|
65
|
+
.tempest_rate_Dluev{padding:var(--tempest-space-1) var(--tempest-space-2);border:1px solid var(--tempest-border);border-radius:var(--tempest-radius-md);background-color:var(--tempest-surface);color:var(--tempest-text);font-family:inherit;font-size:var(--tempest-text-xs);font-variant-numeric:tabular-nums;cursor:pointer;flex:none}
|
|
66
|
+
.tempest_rate_Dluev:disabled{color:var(--tempest-text-subtle);cursor:not-allowed}
|
|
67
|
+
.tempest_transport_waV9q:focus-visible,.tempest_icon_jIwyC:focus-visible,.tempest_seek_qB6l-:focus-visible,.tempest_volume_R0Fr0:focus-visible,.tempest_rate_Dluev:focus-visible{outline:var(--tempest-focus-ring-width) solid var(--tempest-focus-ring-color);outline-offset:2px;border-radius:var(--tempest-radius-sm)}
|
|
68
|
+
.tempest_time_z9Tg1{gap:var(--tempest-space-1);color:var(--tempest-text-muted);font-size:var(--tempest-text-xs);font-variant-numeric:tabular-nums;flex:none;display:inline-flex}
|
|
69
|
+
.tempest_actions_UxFoM{align-items:center;gap:var(--tempest-space-1);flex:none;display:inline-flex}
|
|
70
|
+
.tempest_immersive_eSsR6{border:none;border-radius:0;width:100%;height:100%}
|
|
71
|
+
.tempest_immersive_eSsR6 .tempest_frame_ds-xN{flex:auto;min-height:0;aspect-ratio:auto!important}
|
|
72
|
+
@media (prefers-reduced-motion:reduce){.tempest_transport_waV9q,.tempest_icon_jIwyC{transition:none}}
|
|
73
|
+
@media (pointer:coarse){.tempest_transport_waV9q:after,.tempest_icon_jIwyC:after{content:"";position:absolute;inset:-6px}}
|
|
74
|
+
@media (width<=480px){.tempest_chrome_LI2ZI{gap:var(--tempest-space-2);padding:var(--tempest-space-2)}.tempest_seek_qB6l-{flex:100%;order:-1}.tempest_volume_R0Fr0{display:none}}
|