@wyxos/vibe 5.14.0 → 5.16.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 +22 -0
- package/lib/components/MasonryFeed.vue.d.ts +3 -0
- package/lib/components/MediaCard.vue.d.ts +3 -0
- package/lib/components/ReelFeed.vue.d.ts +3 -0
- package/lib/components/ReelLayout.vue.d.ts +3 -0
- package/lib/components/VibeSurface.vue.d.ts +3 -1
- package/lib/components/useMediaLifecycle.d.ts +4 -1
- package/lib/components/useMediaReadiness.d.ts +2 -2
- package/lib/core/feed.d.ts +1 -1
- package/lib/core/masonryOptions.d.ts +4 -0
- package/lib/core/mediaFailure.d.ts +6 -0
- package/lib/index.cjs +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +399 -348
- package/lib/types.d.ts +3 -0
- package/package.json +1 -1
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;
|