@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/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 { VibeMediaError } from './core/mediaPreview';
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wyxos/vibe",
3
- "version": "5.7.2",
3
+ "version": "5.8.0",
4
4
  "description": "An initializable Vue 3 media feed with virtualized masonry and reel layouts.",
5
5
  "keywords": [
6
6
  "vue",