@wyxos/vibe 5.1.0 → 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;
@@ -188,6 +189,10 @@ export interface VibeRequestDelayOptions {
188
189
  delayMaxMs?: number;
189
190
  delayStepMs?: number;
190
191
  }
192
+ export interface VibeRemovalReconciliationOptions {
193
+ maxReplayPages?: number;
194
+ pageSize: number;
195
+ }
191
196
  export interface VibeFrontendAutofillOptions extends VibeRequestDelayOptions {
192
197
  maxAdditionalPages?: VibeAutofillPageLimit;
193
198
  pageSize: number;
@@ -335,9 +340,11 @@ export interface CreateVibeOptions {
335
340
  loadPage?: VibePageLoader;
336
341
  mediaCard?: VibeMediaCardOptions;
337
342
  onMediaReady?: (context: VibeMediaLifecycleContext) => void;
343
+ onMediaVisible?: (context: VibeMediaLifecycleContext) => void;
338
344
  onReelMediaChange?: (context: VibeMediaLifecycleContext) => void;
339
345
  onStateChange?: (state: VibeState) => void;
340
346
  removalHistoryLimit?: number;
347
+ removalReconciliation?: VibeRemovalReconciliationOptions;
341
348
  reelAutoAdvance?: VibeReelAutoAdvanceOptions;
342
349
  reelInfoSheet?: VibeReelInfoSheetOptions;
343
350
  routing?: VibeRoutingOptions;
@@ -357,6 +364,7 @@ export interface VibeState {
357
364
  loadMoreLocked: boolean;
358
365
  next: VibeCursor;
359
366
  nextPageError: unknown | null;
367
+ phoneMode: boolean;
360
368
  reelAutoAdvance: VibeReelAutoAdvanceState;
361
369
  reelForward: VibeReelForwardState;
362
370
  reelInfoSheet: VibeReelInfoSheetState;
@@ -368,6 +376,7 @@ export interface VibeInstance {
368
376
  applyFillUpdate: (update: VibeBackendFillUpdate) => boolean;
369
377
  cancelAutofill: () => Promise<void>;
370
378
  cancelFill: () => Promise<void>;
379
+ cancelLoading: () => Promise<void>;
371
380
  destroy: () => void;
372
381
  fill: (target: VibeFillTarget) => Promise<void>;
373
382
  getState: () => VibeState;
@@ -396,6 +405,7 @@ export interface VibeInstance {
396
405
  setInfiniteScroll: (enabled: boolean) => void;
397
406
  setLayout: (layout: VibeLayoutMode) => void;
398
407
  setLoadMoreLocked: (locked: boolean) => void;
408
+ setTotal: (total: number | null) => void;
399
409
  setReelAutoAdvance: (update: boolean | VibeReelAutoAdvanceOptions) => void;
400
410
  setReelInfoSheet: (enabled: boolean) => void;
401
411
  undoLastRemoval: () => VibeRemoval | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wyxos/vibe",
3
- "version": "5.1.0",
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",