@wyxos/vibe 5.0.3 → 5.2.1
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 +27 -0
- package/lib/components/VibeSurface.vue.d.ts +5 -1
- package/lib/core/autofill.d.ts +2 -0
- package/lib/core/exactMediaRemovalController.d.ts +2 -0
- package/lib/core/fill.d.ts +2 -0
- package/lib/core/fillController.d.ts +2 -0
- package/lib/core/initialAutofill.d.ts +3 -1
- package/lib/core/mediaLifecycle.d.ts +4 -0
- package/lib/core/page.d.ts +7 -1
- package/lib/core/pageRequest.d.ts +18 -0
- package/lib/core/removalControllers.d.ts +2 -0
- package/lib/core/removalReconciliationController.d.ts +35 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +874 -657
- package/lib/types.d.ts +13 -0
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -85,6 +85,12 @@ export interface VibeMediaPlacement extends VibeMediaTarget {
|
|
|
85
85
|
media: VibeMediaAsset;
|
|
86
86
|
postIndex: number;
|
|
87
87
|
}
|
|
88
|
+
export interface VibeMediaLifecycleContext extends VibeMediaPlacement {
|
|
89
|
+
item: VibeItem;
|
|
90
|
+
layout: VibeLayout;
|
|
91
|
+
mediaId: VibeItemId | null;
|
|
92
|
+
origin: VibeReelOrigin | null;
|
|
93
|
+
}
|
|
88
94
|
declare const vibeRemovalBrand: unique symbol;
|
|
89
95
|
declare const vibeMediaRemovalBrand: unique symbol;
|
|
90
96
|
export type VibeRemoval = readonly VibeItemPlacement[] & {
|
|
@@ -182,6 +188,10 @@ export interface VibeRequestDelayOptions {
|
|
|
182
188
|
delayMaxMs?: number;
|
|
183
189
|
delayStepMs?: number;
|
|
184
190
|
}
|
|
191
|
+
export interface VibeRemovalReconciliationOptions {
|
|
192
|
+
maxReplayPages?: number;
|
|
193
|
+
pageSize: number;
|
|
194
|
+
}
|
|
185
195
|
export interface VibeFrontendAutofillOptions extends VibeRequestDelayOptions {
|
|
186
196
|
maxAdditionalPages?: VibeAutofillPageLimit;
|
|
187
197
|
pageSize: number;
|
|
@@ -328,8 +338,11 @@ export interface CreateVibeOptions {
|
|
|
328
338
|
initialPage?: VibeInitialPage;
|
|
329
339
|
loadPage?: VibePageLoader;
|
|
330
340
|
mediaCard?: VibeMediaCardOptions;
|
|
341
|
+
onMediaReady?: (context: VibeMediaLifecycleContext) => void;
|
|
342
|
+
onReelMediaChange?: (context: VibeMediaLifecycleContext) => void;
|
|
331
343
|
onStateChange?: (state: VibeState) => void;
|
|
332
344
|
removalHistoryLimit?: number;
|
|
345
|
+
removalReconciliation?: VibeRemovalReconciliationOptions;
|
|
333
346
|
reelAutoAdvance?: VibeReelAutoAdvanceOptions;
|
|
334
347
|
reelInfoSheet?: VibeReelInfoSheetOptions;
|
|
335
348
|
routing?: VibeRoutingOptions;
|