@wyxos/vibe 5.2.1 → 5.3.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
@@ -9,8 +9,8 @@ export type VibeMediaSource = 'preview' | 'original';
9
9
  export type VibeAutofillStrategy = 'backend' | 'frontend';
10
10
  export type VibeAutofillPageLimit = number | 'unlimited';
11
11
  export type VibeFillStrategy = 'backend' | 'frontend';
12
- export type VibeAutofillStatus = 'cancelled' | 'cancelling' | 'complete' | 'error' | 'exhausted' | 'filling' | 'idle' | 'restoring' | 'waiting';
13
- export type VibeFillStatus = 'cancelled' | 'cancelling' | 'complete' | 'error' | 'exhausted' | 'filling' | 'idle' | 'restoring' | 'waiting';
12
+ export type VibeAutofillStatus = 'cancelled' | 'cancelling' | 'complete' | 'error' | 'exhausted' | 'filling' | 'idle' | 'paused' | 'restoring' | 'waiting';
13
+ export type VibeFillStatus = 'cancelled' | 'cancelling' | 'complete' | 'error' | 'exhausted' | 'filling' | 'idle' | 'paused' | 'restoring' | 'waiting';
14
14
  export type VibeFillTarget = {
15
15
  pages: number;
16
16
  } | {
@@ -90,6 +90,7 @@ export interface VibeMediaLifecycleContext extends VibeMediaPlacement {
90
90
  layout: VibeLayout;
91
91
  mediaId: VibeItemId | null;
92
92
  origin: VibeReelOrigin | null;
93
+ phoneMode: boolean;
93
94
  }
94
95
  declare const vibeRemovalBrand: unique symbol;
95
96
  declare const vibeMediaRemovalBrand: unique symbol;
@@ -339,6 +340,7 @@ export interface CreateVibeOptions {
339
340
  loadPage?: VibePageLoader;
340
341
  mediaCard?: VibeMediaCardOptions;
341
342
  onMediaReady?: (context: VibeMediaLifecycleContext) => void;
343
+ onMediaVisible?: (context: VibeMediaLifecycleContext) => void;
342
344
  onReelMediaChange?: (context: VibeMediaLifecycleContext) => void;
343
345
  onStateChange?: (state: VibeState) => void;
344
346
  removalHistoryLimit?: number;
@@ -362,6 +364,7 @@ export interface VibeState {
362
364
  loadMoreLocked: boolean;
363
365
  next: VibeCursor;
364
366
  nextPageError: unknown | null;
367
+ phoneMode: boolean;
365
368
  reelAutoAdvance: VibeReelAutoAdvanceState;
366
369
  reelForward: VibeReelForwardState;
367
370
  reelInfoSheet: VibeReelInfoSheetState;
@@ -373,6 +376,7 @@ export interface VibeInstance {
373
376
  applyFillUpdate: (update: VibeBackendFillUpdate) => boolean;
374
377
  cancelAutofill: () => Promise<void>;
375
378
  cancelFill: () => Promise<void>;
379
+ cancelLoading: () => Promise<void>;
376
380
  destroy: () => void;
377
381
  fill: (target: VibeFillTarget) => Promise<void>;
378
382
  getState: () => VibeState;
@@ -401,6 +405,7 @@ export interface VibeInstance {
401
405
  setInfiniteScroll: (enabled: boolean) => void;
402
406
  setLayout: (layout: VibeLayoutMode) => void;
403
407
  setLoadMoreLocked: (locked: boolean) => void;
408
+ setTotal: (total: number | null) => void;
404
409
  setReelAutoAdvance: (update: boolean | VibeReelAutoAdvanceOptions) => void;
405
410
  setReelInfoSheet: (enabled: boolean) => void;
406
411
  undoLastRemoval: () => VibeRemoval | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wyxos/vibe",
3
- "version": "5.2.1",
3
+ "version": "5.3.0",
4
4
  "description": "An initializable Vue 3 media feed with virtualized masonry and reel layouts.",
5
5
  "keywords": [
6
6
  "vue",