@wyxos/vibe 5.13.4 → 5.15.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
@@ -107,6 +107,8 @@ export interface VibeMediaLifecycleContext extends VibeMediaPlacement {
107
107
  origin: VibeReelOrigin | null;
108
108
  phoneMode: boolean;
109
109
  }
110
+ export type { VibeMediaErrorContext } from './core/mediaFailure';
111
+ import type { VibeMediaErrorContext } from './core/mediaFailure';
110
112
  declare const vibeRemovalBrand: unique symbol;
111
113
  declare const vibeMediaRemovalBrand: unique symbol;
112
114
  export type VibeRemoval = readonly VibeItemPlacement[] & {
@@ -349,6 +351,7 @@ export interface CreateVibeOptions {
349
351
  mediaCard?: VibeMediaCardOptions;
350
352
  masonry?: import('./core/masonryOptions').VibeMasonryOptions;
351
353
  onMediaFullyVisible?: (context: VibeMediaLifecycleContext) => void;
354
+ onMediaError?: (context: VibeMediaErrorContext) => void;
352
355
  onMediaReady?: (context: VibeMediaLifecycleContext) => void;
353
356
  onMediaVisible?: (context: VibeMediaLifecycleContext) => void;
354
357
  onReelMediaChange?: (context: VibeMediaLifecycleContext) => void;
@@ -410,6 +413,7 @@ export interface VibeInstance {
410
413
  replenishAfterRemoval: () => Promise<void>;
411
414
  refresh: () => Promise<void>;
412
415
  reload: () => Promise<void>;
416
+ replacePage: (page: VibePage, options?: import('./core/pageReplacement').VibePageReplacementOptions) => Promise<void>;
413
417
  removeMedia: (target: VibeMediaTarget) => VibeMediaRemoval | null;
414
418
  removeMediaAnimated?: (target: VibeMediaTarget) => Promise<VibeMediaRemoval | null>;
415
419
  removeItems: (postIds: readonly VibeItemId[], options?: import('./core/itemRemovalOptions').VibeItemRemovalOptions) => Promise<VibeRemoval>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wyxos/vibe",
3
- "version": "5.13.4",
3
+ "version": "5.15.0",
4
4
  "description": "An initializable Vue 3 media feed with virtualized masonry and reel layouts.",
5
5
  "keywords": [
6
6
  "vue",