@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/components/MasonryFeed.vue.d.ts +4 -2
- package/lib/components/MediaCard.vue.d.ts +2 -2
- package/lib/components/ReelFeed.vue.d.ts +2 -2
- package/lib/components/ReelLayout.vue.d.ts +2 -2
- package/lib/components/VibeSurface.vue.d.ts +2 -0
- package/lib/components/useMediaLifecycle.d.ts +19 -0
- package/lib/core/autofill.d.ts +4 -2
- package/lib/core/autofillController.d.ts +2 -0
- package/lib/core/fill.d.ts +7 -3
- package/lib/core/fillController.d.ts +2 -0
- package/lib/core/removalReconciliationController.d.ts +7 -1
- package/lib/core/runtime.d.ts +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.js +894 -752
- package/lib/types.d.ts +7 -2
- package/package.json +1 -1
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;
|