@wyxos/vibe 5.0.3 → 5.1.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 +27 -0
- package/lib/components/VibeSurface.vue.d.ts +5 -1
- package/lib/core/mediaLifecycle.d.ts +4 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +509 -477
- package/lib/types.d.ts +8 -0
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -85,6 +85,12 @@ export interface VibeMediaPlacement extends VibeMediaTarget {
|
|
|
85
85
|
media: VibeMediaAsset;
|
|
86
86
|
postIndex: number;
|
|
87
87
|
}
|
|
88
|
+
export interface VibeMediaLifecycleContext extends VibeMediaPlacement {
|
|
89
|
+
item: VibeItem;
|
|
90
|
+
layout: VibeLayout;
|
|
91
|
+
mediaId: VibeItemId | null;
|
|
92
|
+
origin: VibeReelOrigin | null;
|
|
93
|
+
}
|
|
88
94
|
declare const vibeRemovalBrand: unique symbol;
|
|
89
95
|
declare const vibeMediaRemovalBrand: unique symbol;
|
|
90
96
|
export type VibeRemoval = readonly VibeItemPlacement[] & {
|
|
@@ -328,6 +334,8 @@ export interface CreateVibeOptions {
|
|
|
328
334
|
initialPage?: VibeInitialPage;
|
|
329
335
|
loadPage?: VibePageLoader;
|
|
330
336
|
mediaCard?: VibeMediaCardOptions;
|
|
337
|
+
onMediaReady?: (context: VibeMediaLifecycleContext) => void;
|
|
338
|
+
onReelMediaChange?: (context: VibeMediaLifecycleContext) => void;
|
|
331
339
|
onStateChange?: (state: VibeState) => void;
|
|
332
340
|
removalHistoryLimit?: number;
|
|
333
341
|
reelAutoAdvance?: VibeReelAutoAdvanceOptions;
|