@wyxos/vibe 5.7.2 → 5.8.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 +8 -0
- package/lib/components/MediaCard.vue.d.ts +4 -1
- package/lib/components/ReelFeed.vue.d.ts +4 -2
- package/lib/components/ReelLayout.vue.d.ts +3 -1
- package/lib/components/VibeSurface.vue.d.ts +4 -1
- package/lib/components/useMediaCardAudio.d.ts +19 -0
- package/lib/core/feed.d.ts +2 -1
- package/lib/core/mediaCardOptions.d.ts +17 -0
- package/lib/core/reelAudio.d.ts +3 -0
- package/lib/core/reelAudioController.d.ts +8 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +581 -477
- package/lib/types.d.ts +6 -13
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
2
|
import type { RouteLocationRaw, Router } from 'vue-router';
|
|
3
|
-
import type {
|
|
3
|
+
import type { VibeMediaCardOptions, VibeReelAudioState } from './core/mediaCardOptions';
|
|
4
|
+
export type { VibeCardChromeStyle, VibeMediaCardOptions, VibeReelAudioState } from './core/mediaCardOptions';
|
|
4
5
|
export type VibeCursor = string | number | null;
|
|
5
6
|
export type VibeItemId = string | number;
|
|
6
7
|
export type VibeLayout = 'masonry' | 'reel';
|
|
@@ -113,17 +114,6 @@ export interface VibeCardRegion {
|
|
|
113
114
|
component: Component;
|
|
114
115
|
height: number;
|
|
115
116
|
}
|
|
116
|
-
export interface VibeCardChromeStyle {
|
|
117
|
-
background?: 'default' | 'transparent';
|
|
118
|
-
paddingX?: number;
|
|
119
|
-
paddingY?: number;
|
|
120
|
-
}
|
|
121
|
-
export interface VibeMediaCardOptions {
|
|
122
|
-
error?: VibeMediaError;
|
|
123
|
-
footer?: VibeCardChromeStyle;
|
|
124
|
-
header?: VibeCardChromeStyle;
|
|
125
|
-
videoMuted?: boolean;
|
|
126
|
-
}
|
|
127
117
|
export interface VibeCardRegionProps {
|
|
128
118
|
index: number;
|
|
129
119
|
item: VibeItem;
|
|
@@ -347,6 +337,7 @@ export interface CreateVibeOptions {
|
|
|
347
337
|
target: Element | string;
|
|
348
338
|
layout?: VibeLayoutMode;
|
|
349
339
|
infiniteScroll?: boolean;
|
|
340
|
+
initialReelAudioState?: Partial<VibeReelAudioState>;
|
|
350
341
|
initialPage?: VibeInitialPage;
|
|
351
342
|
loadPage?: VibePageLoader;
|
|
352
343
|
mediaCard?: VibeMediaCardOptions;
|
|
@@ -354,6 +345,7 @@ export interface CreateVibeOptions {
|
|
|
354
345
|
onMediaReady?: (context: VibeMediaLifecycleContext) => void;
|
|
355
346
|
onMediaVisible?: (context: VibeMediaLifecycleContext) => void;
|
|
356
347
|
onReelMediaChange?: (context: VibeMediaLifecycleContext) => void;
|
|
348
|
+
onReelAudioStateChange?: (state: VibeReelAudioState) => void;
|
|
357
349
|
onStateChange?: (state: VibeState) => void;
|
|
358
350
|
removalHistoryLimit?: number;
|
|
359
351
|
removalReconciliation?: VibeRemovalReconciliationOptions;
|
|
@@ -399,6 +391,7 @@ export interface VibeInstance {
|
|
|
399
391
|
destroy: () => void;
|
|
400
392
|
fill: (target: VibeFillTarget) => Promise<void>;
|
|
401
393
|
getState: () => VibeState;
|
|
394
|
+
getReelAudioState: () => VibeReelAudioState;
|
|
402
395
|
loadNext: () => Promise<void>;
|
|
403
396
|
mount: () => Promise<void>;
|
|
404
397
|
navigateToReelItem: (target: VibeReelItemTarget) => VibeReelNavigationResult;
|
|
@@ -428,7 +421,7 @@ export interface VibeInstance {
|
|
|
428
421
|
setLoadMoreLocked: (locked: boolean) => void;
|
|
429
422
|
setTotal: (total: number | null) => void;
|
|
430
423
|
setReelAutoAdvance: (update: boolean | VibeReelAutoAdvanceOptions) => void;
|
|
424
|
+
setReelAudioState: (state: VibeReelAudioState) => void;
|
|
431
425
|
setReelInfoSheet: (enabled: boolean) => void;
|
|
432
426
|
undoLastRemoval: () => VibeRemoval | null;
|
|
433
427
|
}
|
|
434
|
-
export {};
|