@wyxos/vibe 5.6.0 → 5.7.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 +4 -2
- package/lib/core/mediaAsset.d.ts +2 -1
- package/lib/core/runtime.d.ts +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +701 -684
- package/lib/types.d.ts +4 -2
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type VibeItemId = string | number;
|
|
|
5
5
|
export type VibeLayout = 'masonry' | 'reel';
|
|
6
6
|
export type VibeLayoutMode = VibeLayout | 'responsive';
|
|
7
7
|
export type VibeLifecycle = 'error' | 'loaded' | 'loading';
|
|
8
|
-
export type VibeMediaSource = 'preview' | 'original';
|
|
8
|
+
export type VibeMediaSource = 'preview' | 'original' | 'mobile';
|
|
9
9
|
export type VibeAutofillStrategy = 'backend' | 'frontend';
|
|
10
10
|
export type VibeAutofillPageLimit = number | 'unlimited';
|
|
11
11
|
export type VibeFillStrategy = 'backend' | 'frontend';
|
|
@@ -55,16 +55,18 @@ export interface VibeReelForwardState {
|
|
|
55
55
|
error: unknown | null;
|
|
56
56
|
status: VibeReelForwardStatus;
|
|
57
57
|
}
|
|
58
|
-
export interface
|
|
58
|
+
export interface VibeMediaVariant {
|
|
59
59
|
height: number | null;
|
|
60
60
|
src: string;
|
|
61
61
|
type?: VibeMediaType;
|
|
62
62
|
width: number | null;
|
|
63
63
|
}
|
|
64
|
+
export type VibePreview = VibeMediaVariant;
|
|
64
65
|
export interface VibeMediaAsset {
|
|
65
66
|
mediaId?: VibeItemId;
|
|
66
67
|
src: string;
|
|
67
68
|
preview: VibePreview;
|
|
69
|
+
mobile?: VibeMediaVariant;
|
|
68
70
|
width: number | null;
|
|
69
71
|
height: number | null;
|
|
70
72
|
type?: VibeMediaType;
|