Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

better coordinates + fix settings

Brendan Allan3a1b872cad99
diff --git a/apps/desktop/src-tauri/src/web_api.rs b/apps/desktop/src-tauri/src/web_api.rs
index b64a8ced3..c7cb1f9d9 100644
--- a/apps/desktop/src-tauri/src/web_api.rs
+++ b/apps/desktop/src-tauri/src/web_api.rs
@@ -9,13 +9,6 @@ pub fn make_url(pathname: impl AsRef<str>) -> String {
format!("{server_url_base}{}", pathname.as_ref())
}
-pub async fn do_request(
- build: impl FnOnce(reqwest::Client) -> reqwest::RequestBuilder,
-) -> Result<reqwest::Response, reqwest::Error> {
- let client = reqwest::Client::new();
- build(client).send().await
-}
-
async fn do_authed_request(
auth: &AuthStore,
build: impl FnOnce(reqwest::Client) -> reqwest::RequestBuilder,
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
index 30a7c6c42..a08466253 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
@@ -45,21 +45,15 @@ export default function GeneralSettings() {
const [store] = createResource(() => generalSettingsStore.get());
return (
- <Show
- when={(() => {
- const s = store();
- if (s === undefined) return;
- return [s];
- })()}
- >
- {(store) => <Inner store={store()[0]} />}
+ <Show when={store.state === "ready" && ([store()] as const)}>
+ {(store) => <Inner initialStore={store()[0] ?? null} />}
</Show>
);
}
-function Inner(props: { store: GeneralSettingsStore | null }) {
+function Inner(props: { initialStore: GeneralSettingsStore | null }) {
const [settings, setSettings] = createStore<GeneralSettingsStore>(
- props.store ?? {
+ props.initialStore ?? {
upload_individual_files: false,
open_editor_after_recording: false,
hide_dock_icon: false,
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
index 50f38307b..9e8ad7608 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
@@ -31,22 +31,16 @@ export default function () {
const [store] = createResource(() => hotkeysStore.get());
return (
- <Show
- when={(() => {
- const s = store();
- if (s === undefined) return;
- return [s];
- })()}
- >
- {(store) => <Inner store={store()[0]} />}
+ <Show when={store.state === "ready" && ([store()] as const)}>
+ {(store) => <Inner initialStore={store()[0] ?? null} />}
</Show>
);
}
-function Inner(props: { store: HotkeysStore | null }) {
+function Inner(props: { initialStore: HotkeysStore | null }) {
const [hotkeys, setHotkeys] = createStore<{
[K in HotkeyAction]?: Hotkey;
- }>(props.store?.hotkeys ?? {});
+ }>(props.initialStore?.hotkeys ?? {});
createEffect(() => {
// biome-ignore lint/suspicious/noExplicitAny: specta#283
diff --git a/crates/media/src/encoders/h264.rs b/crates/media/src/encoders/h264.rs
index 4dd992099..35079b40f 100644
--- a/crates/media/src/encoders/h264.rs
+++ b/crates/media/src/encoders/h264.rs
@@ -1,6 +1,6 @@
use ffmpeg::{
codec::{codec::Codec, context, encoder},
- format::{self, pixel::Pixel},
+ format::{self},
threading::Config,
Dictionary,
};
diff --git a/crates/media/src/feeds/camera.rs b/crates/media/src/feeds/camera.rs
index f19f57d2b..406930ddc 100644
--- a/crates/media/src/feeds/camera.rs
+++ b/crates/media/src/feeds/camera.rs
@@ -2,7 +2,6 @@ use ffmpeg::software::scaling;
use flume::{Receiver, Sender, TryRecvError};
use nokhwa::{pixel_format::*, utils::*, Camera};
use std::{
- io::Write,
thread::{self, JoinHandle},
time::Instant,
};
diff --git a/crates/media/src/filters/video.rs b/crates/media/src/filters/video.rs
index e7fea5071..192426b21 100644
--- a/crates/media/src/filters/video.rs
+++ b/crates/media/src/filters/video.rs
@@ -1,4 +1,4 @@
-use ffmpeg::{filter, format::pixel::Pixel};
+use ffmpeg::filter;
use crate::{
data::{FFVideo, VideoInfo},
diff --git a/crates/project/src/configuration.rs b/crates/project/src/configuration.rs
index 65b4bb135..74a3f6578 100644
--- a/crates/project/src/configuration.rs
+++ b/crates/project/src/configuration.rs
@@ -1,3 +1,5 @@
+use std::ops::{Add, Div, Mul, Sub};
+
use serde::{Deserialize, Serialize};
use specta::Type;
@@ -46,14 +48,93 @@ impl Default for BackgroundSource {
}
}
-#[derive(Type, Serialize, Deserialize, Clone, Debug, Default)]
+#[derive(Type, Serialize, Deserialize, Clone, Copy, Debug, Default)]
#[serde(rename_all = "camelCase")]
pub struct XY<T> {
pub x: T,
pub y: T,
}
-#[derive(Type, Serialize, Deserialize, Clone, Debug, Default)]
+impl<T> XY<T> {
+ pub fn new(x: T, y: T) -> Self {
+ Self { x, y }
+ }
+
+ pub fn map<U, F: Fn(T) -> U>(self, f: F) -> XY<U> {
+ XY {
+ x: f(self.x),
+ y: f(self.y),
+ }
+ }
+}
+
+impl<T: Add<Output = T>> Add for XY<T> {
+ type Output = Self;
+
+ fn add(self, other: Self) -> Self {
+ Self {
+ x: self.x + other.x,
+ y: self.y + other.y,
+ }
+ }
+}
+
+impl<T: Sub<Output = T>> Sub for XY<T> {
+ type Output = Self;
+
+ fn sub(self, other: Self) -> Self {
+ Self {
+ x: self.x - other.x,
+ y: self.y - other.y,
+ }
+ }
+}
+
+impl<T: Sub<Output = T> + Copy> Sub<T> for XY<T> {
+ type Output = Self;
+
+ fn sub(self, other: T) -> Self {
+ Self {
+ x: self.x - other,
+ y: self.y - other,
+ }
+ }
+}
+
+impl<T: Mul<Output = T> + Copy> Mul<T> for XY<T> {
+ type Output = Self;
+
+ fn mul(self, other: T) -> Self {
+ Self {
+ x: self.x * other,
+ y: self.y * other,
+ }
+ }
+}
+
+impl<T: Mul<Output = T> + Copy> Mul<XY<T>> for XY<T> {
+ type Output = Self;
+
+ fn mul(self, other: Self) -> Self {
+ Self {
+ x: self.x * other.x,
+ y: self.y * other.y,
+ }
+ }
+}
+
+impl<T: Div<Output = T> + Copy> Div<T> for XY<T> {
+ type Output = Self;
+
+ fn div(self, other: T) -> Self {
+ Self {
+ x: self.x / other,
+ y: self.y / other,
+ }
+ }
+}
+
+#[derive(Type, Serialize, Deserialize, Clone, Copy, Debug, Default)]
#[serde(rename_all = "camelCase")]
pub struct Crop {
pub position: XY<u32>,
@@ -71,8 +152,8 @@ impl Crop {
pub struct BackgroundConfiguration {
pub source: BackgroundSource,
pub blur: u32,
- pub padding: f32,
- pub rounding: f32,
+ pub padding: f64,
+ pub rounding: f64,
pub inset: u32,
pub crop: Option<Crop>,
}
diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rs
index b034e39bd..5f3a2bdd4 100644
--- a/crates/rendering/src/lib.rs
+++ b/crates/rendering/src/lib.rs
@@ -6,7 +6,7 @@ use futures::future::OptionFuture;
use futures_intrusive::channel::shared::oneshot_channel;
use serde::{Deserialize, Serialize};
use specta::Type;
-use std::ops::Add;
+use std::ops::{Add, Deref, Mul, Sub};
use std::{collections::HashMap, sync::Arc};
use wgpu::util::DeviceExt;
use wgpu::{CommandEncoder, COPY_BYTES_PER_ROW_ALIGNMENT};
@@ -359,26 +359,24 @@ pub struct ProjectUniforms {
display: CompositeVideoFrameUniforms,
camera: Option<CompositeVideoFrameUniforms>,
pub zoom: Zoom,
+ pub project: ProjectConfiguration,
}
#[derive(Debug, Clone)]
pub struct Zoom {
- pub amount: f32,
- pub zoom_origin: (f32, f32),
+ pub amount: f64,
+ pub zoom_origin: Coord<FrameSpace>,
}
impl Zoom {
- pub fn apply_scale(&self, screen_position: (f32, f32)) -> (f32, f32) {
- (
- (screen_position.0 - self.zoom_origin.0) * self.amount + self.zoom_origin.0,
- (screen_position.1 - self.zoom_origin.1) * self.amount + self.zoom_origin.1,
- )
+ pub fn apply_scale(&self, screen_position: Coord<FrameSpace>) -> Coord<FrameSpace> {
+ (screen_position - self.zoom_origin) * self.amount + self.zoom_origin
}
}
const CAMERA_PADDING: f32 = 50.0;
-const SCREEN_MAX_PADDING: f32 = 0.4;
+const SCREEN_MAX_PADDING: f64 = 0.4;
impl ProjectUniforms {
fn get_crop(options: &RenderOptions, project: &ProjectConfiguration) -> Crop {
@@ -391,13 +389,13 @@ impl ProjectUniforms {
})
}
- fn get_padding(options: &RenderOptions, project: &ProjectConfiguration) -> f32 {
+ fn get_padding(options: &RenderOptions, project: &ProjectConfiguration) -> f64 {
let crop = Self::get_crop(options, project);
let basis = u32::max(crop.size.x, crop.size.y);
- let padding_factor = project.background.padding / 100.0 * SCREEN_MAX_PADDING;
+ let padding_factor = project.background.padding / 100.0 * SCREEN_MAX_PADDING as f64;
- basis as f32 * padding_factor
+ basis as f64 * padding_factor
}
pub fn get_output_size(options: &RenderOptions, project: &ProjectConfiguration) -> (u32, u32) {
@@ -409,8 +407,8 @@ impl ProjectUniforms {
let aspect = match &project.aspect_ratio {
None => {
- let width = ((crop.size.x as f32 + padding) as u32 + 1) & !1;
- let height = ((crop.size.y as f32 + padding) as u32 + 1) & !1;
+ let width = ((crop.size.x as f64 + padding) as u32 + 1) & !1;
+ let height = ((crop.size.y as f64 + padding) as u32 + 1) & !1;
return (width, height);
}
Some(AspectRatio::Square) => 1.0,
@@ -439,109 +437,94 @@ impl ProjectUniforms {
) -> Self {
let options = &constants.options;
let output_size = Self::get_output_size(options, project);
- let output_aspect = output_size.0 as f32 / output_size.1 as f32;
+ let output_aspect = output_size.0 as f64 / output_size.1 as f64;
let cursor_position = interpolate_cursor_position(&constants.cursor, time);
let zoom_keyframes = ZoomKeyframes::new(project);
let (zoom, zoom_origin_uv) = if let Some(cursor_position) = cursor_position {
- (
- zoom_keyframes.get_amount(time as f64),
- (cursor_position.0 as f32, cursor_position.1 as f32),
- )
+ (zoom_keyframes.get_amount(time as f64), cursor_position)
} else {
- (1.0, (0.0, 0.0))
+ (1.0, Coord::new(XY { x: 0.0, y: 0.0 }))
};
+ let crop = Self::get_crop(options, project);
+
+ let zoom_origin = zoom_origin_uv.to_raw_display_space(XY {
+ x: options.screen_size.0 as f64,
+ y: options.screen_size.1 as f64,
+ });
+ let zoom_origin = zoom_origin.to_cropped_display_space(crop);
+
let (display, zoom) = {
- let output_size = [output_size.0 as f32, output_size.1 as f32];
+ let output_size = XY::new(output_size.0 as f64, output_size.1 as f64);
let size = [options.screen_size.0 as f32, options.screen_size.1 as f32];
- let crop = Self::get_crop(options, project);
+ let crop_start = Coord::<RawDisplaySpace>::new(XY::new(
+ crop.position.x as f64,
+ crop.position.y as f64,
+ ));
+ let crop_end = Coord::<RawDisplaySpace>::new(XY::new(
+ (crop.position.x + crop.size.x) as f64,
+ (crop.position.y + crop.size.y) as f64,
+ ));
- let crop_bounds = [
- crop.position.x as f32,
- crop.position.y as f32,
- (crop.position.x + crop.size.x) as f32,
- (crop.position.y + crop.size.y) as f32,
- ];
+ let cropped_size = crop_end.coord - crop_start.coord;
- let cropped_size = [
- crop_bounds[2] - crop_bounds[0],
- crop_bounds[3] - crop_bounds[1],
- ];
- let cropped_aspect = cropped_size[0] / cropped_size[1];
+ let cropped_aspect = cropped_size.x / cropped_size.y;
let padding = Self::get_padding(options, project);
let is_height_constrained = cropped_aspect <= output_aspect;
- let available_size = [
- output_size[0] - 2.0 * padding,
- output_size[1] - 2.0 * padding,
- ];
+ let available_size = output_size - 2.0 * padding;
let target_size = if is_height_constrained {
- [available_size[1] * cropped_aspect, available_size[1]]
+ XY::new(available_size.y * cropped_aspect, available_size.y)
} else {
- [available_size[0], available_size[0] / cropped_aspect]
+ XY::new(available_size.x, available_size.x / cropped_aspect)
};
- let target_offset = [
- (output_size[0] - target_size[0]) / 2.0,
- (output_size[1] - target_size[1]) / 2.0,
- ];
+ let target_offset = (output_size - target_size) / 2.0;
- let target_start = if is_height_constrained {
- [target_offset[0], padding]
+ let start = Coord::new(if is_height_constrained {
+ XY::new(target_offset.x as f64, padding as f64)
} else {
- [padding, target_offset[1]]
- };
+ XY::new(padding as f64, target_offset.y as f64)
+ });
+
+ let end = Coord::new(output_size) - start;
- // pre-zoom
- let target_bounds = [
- target_start[0],
- target_start[1],
- output_size[0] - target_start[0],
- output_size[1] - target_start[1],
- ];
- let target_size = [
- target_bounds[2] - target_bounds[0],
- target_bounds[3] - target_bounds[1],
- ];
-
- let screen_scale_origin = (
- target_bounds[0] + target_size[0] * zoom_origin_uv.0,
- target_bounds[1] + target_size[1] * zoom_origin_uv.1,
- );
+ let screen_scale_origin = zoom_origin
+ .to_frame_space(start.coord)
+ .clamp(start.coord, end.coord);
let zoom = Zoom {
- amount: zoom as f32,
+ amount: zoom,
zoom_origin: screen_scale_origin,
// padding: screen_scale_origin,
};
- // post-zoom
- let target_bounds = {
- let start = zoom.apply_scale((target_bounds[0], target_bounds[1]));
- let end = zoom.apply_scale((target_bounds[2], target_bounds[3]));
+ let start = zoom.apply_scale(start);
+ let end = zoom.apply_scale(end);
- [start.0, start.1, end.0, end.1]
- };
- let target_size = [
- target_bounds[2] - target_bounds[0],
- target_bounds[3] - target_bounds[1],
- ];
- let min_target_axis = target_size[0].min(target_size[1]);
+ let target_size = end - start;
+ let min_target_axis = target_size.x.min(target_size.y);
(
CompositeVideoFrameUniforms {
- output_size,
+ output_size: [output_size.x as f32, output_size.y as f32],
frame_size: size,
- crop_bounds,
- target_bounds,
- target_size,
- rounding_px: project.background.rounding / 100.0 * 0.5 * min_target_axis,
+ crop_bounds: [
+ crop_start.x as f32,
+ crop_start.y as f32,
+ crop_end.x as f32,
+ crop_end.y as f32,
+ ],
+ target_bounds: [start.x as f32, start.y as f32, end.x as f32, end.y as f32],
+ target_size: [target_size.x as f32, target_size.y as f32],
+ rounding_px: (project.background.rounding / 100.0 * 0.5 * min_target_axis)
+ as f32,
..Default::default()
},
zoom,
@@ -609,6 +592,7 @@ impl ProjectUniforms {
display,
camera,
zoom,
+ project: project.clone(),
}
}
}
@@ -989,10 +973,10 @@ fn draw_cursor(
return;
};
- println!(
- "Raw cursor position: ({}, {})",
- cursor_position.0, cursor_position.1
- );
+ // println!(
+ // "Raw cursor position: ({}, {})",
+ // cursor_position.0, cursor_position.1
+ // );
let cursor_event = find_cursor_event(&constants.cursor, time);
println!("Found cursor event with ID: {}", cursor_event.cursor_id);
@@ -1022,17 +1006,26 @@ fn draw_cursor(
cursor_size.width, cursor_size.height, normalized_size[0], normalized_size[1]
);
- let position = uniforms.zoom.apply_scale((
- uniforms.display.target_bounds[0]
- + cursor_position.0 as f32 * uniforms.display.target_size[0],
- uniforms.display.target_bounds[1]
- + cursor_position.1 as f32 * uniforms.display.target_size[1],
- ));
+ let position = uniforms.zoom.apply_scale(
+ cursor_position
+ .to_raw_display_space(XY::new(
+ constants.options.screen_size.0 as f64,
+ constants.options.screen_size.1 as f64,
+ ))
+ .to_cropped_display_space(ProjectUniforms::get_crop(
+ &constants.options,
+ &uniforms.project,
+ ))
+ .to_frame_space(XY::new(
+ uniforms.display.target_bounds[0] as f64,
+ uniforms.display.target_bounds[1] as f64,
+ )),
+ );
- println!("Screen position: ({}, {})", position.0, position.1);
+ // println!("Screen position: ({}, {})", position.0, position.1);
let cursor_uniforms = CursorUniforms {
- position: [position.0, position.1, 0.0, 0.0],
+ position: [position.x as f32, position.y as f32, 0.0, 0.0],
size: [normalized_size[0], normalized_size[1], 0.0, 0.0],
output_size: [
uniforms.output_size.0 as f32,
@@ -1463,10 +1456,13 @@ impl AsyncVideoDecoderHandle {
}
}
-fn interpolate_cursor_position(cursor: &CursorData, time_secs: f32) -> Option<(f64, f64)> {
+fn interpolate_cursor_position(
+ cursor: &CursorData,
+ time_secs: f32,
+) -> Option<Coord<RawDisplayUVSpace>> {
let time_ms = (time_secs * 1000.0) as f64;
- let cursor_position = if cursor.moves.len() == 0 {
+ if cursor.moves.len() == 0 {
None
} else {
let moves = &cursor.moves;
@@ -1493,10 +1489,11 @@ fn interpolate_cursor_position(cursor: &CursorData, time_secs: f32) -> Option<(f
(m.x, m.y)
};
- Some((x.clamp(0.0, 1.0), y.clamp(0.0, 1.0)))
- };
-
- cursor_position
+ Some(Coord::new(XY {
+ x: x.clamp(0.0, 1.0),
+ y: y.clamp(0.0, 1.0),
+ }))
+ }
}
struct CursorPipeline {
@@ -1521,7 +1518,6 @@ fn find_cursor_event(cursor: &CursorData, time: f32) -> &CursorEvent {
println!("Finding cursor event for time: {}ms", time_ms);
println!("Total cursor moves: {}", cursor.moves.len());
- // Find the last cursor event before or at the current time
let event = cursor
.moves
.iter()
@@ -1536,7 +1532,6 @@ fn find_cursor_event(cursor: &CursorData, time: f32) -> &CursorEvent {
event
}
-// Add the implementation for CursorPipeline
impl CursorPipeline {
pub fn new(device: &wgpu::Device) -> Self {
let bind_group_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
@@ -1644,72 +1639,102 @@ impl CursorPipeline {
}
}
-struct Coordinate<Space> {
- pub space: Space,
- pub x: f64,
- pub y: f64,
+#[derive(Default, Clone, Copy, Debug)]
+struct RawDisplaySpace;
+
+// raw cursor data
+#[derive(Default, Clone, Copy, Debug)]
+struct RawDisplayUVSpace;
+
+#[derive(Default, Clone, Copy, Debug)]
+struct CroppedDisplaySpace;
+
+#[derive(Default, Clone, Copy, Debug)]
+struct FrameSpace;
+
+#[derive(Default, Clone, Copy, Debug)]
+struct TransformedDisplaySpace;
+
+#[derive(Clone, Copy, Debug)]
+struct Coord<TSpace> {
+ coord: XY<f64>,
+ space: TSpace,
}
-impl<T> Add for Coordinate<T> {
- type Output = Self;
+impl<TSpace: Default> Coord<TSpace> {
+ pub fn new(coord: XY<f64>) -> Self {
+ Self {
+ coord,
+ space: TSpace::default(),
+ }
+ }
- fn add(self, rhs: Self) -> Self::Output {
- Coordinate {
+ pub fn clamp(self, min: XY<f64>, max: XY<f64>) -> Self {
+ Self {
+ coord: XY {
+ x: self.coord.x.clamp(min.x, max.x),
+ y: self.coord.y.clamp(min.y, max.y),
+ },
space: self.space,
- x: self.x + rhs.x,
- y: self.y + rhs.y,
}
}
}
-impl<T> std::ops::Sub for Coordinate<T> {
- type Output = Self;
+impl<T> Deref for Coord<T> {
+ type Target = XY<f64>;
- fn sub(self, rhs: Self) -> Self::Output {
- Coordinate {
- space: self.space,
- x: self.x - rhs.x,
- y: self.y - rhs.y,
- }
+ fn deref(&self) -> &Self::Target {
+ &self.coord
+ }
+}
+
+impl Coord<RawDisplayUVSpace> {
+ fn to_raw_display_space(&self, size: XY<f64>) -> Coord<RawDisplaySpace> {
+ Coord::new(self.coord * size)
+ }
+}
+
+impl Coord<RawDisplaySpace> {
+ fn to_cropped_display_space(&self, crop: Crop) -> Coord<CroppedDisplaySpace> {
+ Coord::new(self.coord - crop.position.map(|v| v as f64))
+ }
+}
+
+impl Coord<CroppedDisplaySpace> {
+ fn to_frame_space(&self, padding: XY<f64>) -> Coord<FrameSpace> {
+ Coord::new(self.coord + padding)
}
}
-impl<T> std::ops::Mul<f64> for Coordinate<T> {
+impl<T> Add for Coord<T> {
type Output = Self;
- fn mul(self, rhs: f64) -> Self::Output {
- Coordinate {
+ fn add(self, rhs: Self) -> Self {
+ Coord {
+ coord: self.coord + rhs.coord,
space: self.space,
- x: self.x * rhs,
- y: self.y * rhs,
}
}
}
-impl<T> std::ops::Div<f64> for Coordinate<T> {
+impl<T> Sub for Coord<T> {
type Output = Self;
- fn div(self, rhs: f64) -> Self::Output {
- Coordinate {
+ fn sub(self, rhs: Self) -> Self {
+ Coord {
+ coord: self.coord - rhs.coord,
space: self.space,
- x: self.x / rhs,
- y: self.y / rhs,
}
}
}
-struct FrameSpace;
-struct DisplaySpace {
- offset: Coordinate<FrameSpace>,
- scale: f64,
-}
+impl<T> Mul<f64> for Coord<T> {
+ type Output = Self;
-impl From<Coordinate<DisplaySpace>> for Coordinate<FrameSpace> {
- fn from(value: Coordinate<DisplaySpace>) -> Self {
- Coordinate {
- space: FrameSpace,
- x: value.x * value.space.scale + value.space.offset.x,
- y: value.y * value.space.scale + value.space.offset.y,
+ fn mul(self, rhs: f64) -> Self {
+ Coord {
+ coord: self.coord * rhs,
+ space: self.space,
}
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2190f63a9..1b900e577 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -4013,10 +4013,10 @@ packages:
react-dom:
optional: true
- '@storybook/[email protected]':
- resolution: {integrity: sha512-OJ8ixXSEs03EA/49gjQxRl1AV6r1j87mB4/aDYlc2ksqI5YHBBX/igsM5N0nXAyhPpRYa2cxaZCqNG7aROug2g==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-IhtVC3RB2ndaGjMociYcJ2kXvL8fiATpTN0DHBgK3tJCTryT9+BwE9YkyrPy6Cu44VjSXxx8urCEsWTNuO0QXA==}
peerDependencies:
- storybook: ^8.4.0-beta.5
+ storybook: ^8.5.0-alpha.0
vite: ^4.0.0 || ^5.0.0
'@storybook/[email protected]':
@@ -4027,10 +4027,10 @@ packages:
peerDependencies:
storybook: ^8.3.3
- '@storybook/[email protected]':
- resolution: {integrity: sha512-JCC+5/y5Mh/md/tyc7sSLi9ve+8Lgr5wltzMZInPDxY5BT/s3bmLHZhE/Q+UQXhN/XfZJmVVrYHtnVDRhZI1OA==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-OyaER6HaNE0gQq9Gpbs26Wx3hHH53TzFykXrqxA+MRDKkxcJ3oNwy4t/JmUiWqyRCnuiQHxanNUETfpd+aJr0A==}
peerDependencies:
- storybook: ^8.4.0-beta.5
+ storybook: ^8.5.0-alpha.0
'@storybook/[email protected]':
resolution: {integrity: sha512-dHYFQH3mA+EtnCkHXzicbLgsvzYjcDJ1JWsogbItZogkPHgSJM/Wr71uMkcvw8v9mmCyP4NpXJuu6bPoVsOnzg==}
@@ -13937,9 +13937,9 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
dependencies:
- '@storybook/csf-plugin': 8.4.0-beta.5([email protected])
+ '@storybook/csf-plugin': 8.5.0-alpha.0([email protected])
browser-assert: 1.2.1
storybook: 8.3.3
ts-dedent: 2.2.0
@@ -13974,7 +13974,7 @@ snapshots:
transitivePeerDependencies:
- webpack-sources
dependencies:
storybook: 8.3.3
unplugin: 1.15.0
@@ -16586,7 +16586,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.1
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -20739,7 +20739,7 @@ snapshots:
dependencies:
- '@storybook/builder-vite': 8.4.0-beta.5([email protected])([email protected](@types/[email protected])([email protected]))
+ '@storybook/builder-vite': 8.5.0-alpha.0([email protected])([email protected](@types/[email protected])([email protected]))
transitivePeerDependencies:
- storybook
- vite