@wyxos/vibe 5.0.2 → 5.0.3
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 +18 -0
- package/lib/components/ReelFeed.vue.d.ts +2 -0
- package/lib/components/ReelLayout.vue.d.ts +2 -0
- package/lib/components/VibeSurface.vue.d.ts +3 -1
- package/lib/components/useReelKeyboard.d.ts +12 -0
- package/lib/core/feed.d.ts +3 -1
- package/lib/core/reelEscapeStack.d.ts +6 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +480 -414
- package/lib/types.d.ts +7 -0
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export interface VibePreview {
|
|
|
58
58
|
height: number | null;
|
|
59
59
|
}
|
|
60
60
|
export interface VibeMediaAsset {
|
|
61
|
+
mediaId?: VibeItemId;
|
|
61
62
|
src: string;
|
|
62
63
|
preview: VibePreview;
|
|
63
64
|
width: number | null;
|
|
@@ -75,6 +76,11 @@ export interface VibeMediaTarget {
|
|
|
75
76
|
mediaIndex: number;
|
|
76
77
|
postId: VibeItemId;
|
|
77
78
|
}
|
|
79
|
+
export interface VibeReelItemTarget {
|
|
80
|
+
mediaId: VibeItemId;
|
|
81
|
+
postId: VibeItemId;
|
|
82
|
+
}
|
|
83
|
+
export type VibeReelNavigationResult = 'navigated' | 'not-found' | 'reel-inactive';
|
|
78
84
|
export interface VibeMediaPlacement extends VibeMediaTarget {
|
|
79
85
|
media: VibeMediaAsset;
|
|
80
86
|
postIndex: number;
|
|
@@ -359,6 +365,7 @@ export interface VibeInstance {
|
|
|
359
365
|
getState: () => VibeState;
|
|
360
366
|
loadNext: () => Promise<void>;
|
|
361
367
|
mount: () => Promise<void>;
|
|
368
|
+
navigateToReelItem: (target: VibeReelItemTarget) => VibeReelNavigationResult;
|
|
362
369
|
nextReelMediaItem: () => boolean;
|
|
363
370
|
nextReelPost: () => boolean;
|
|
364
371
|
pauseAutoScroll: () => void;
|