@wyxos/vibe 4.0.1 → 4.1.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 +51 -5
- package/lib/components/FeedFooter.vue.d.ts +21 -0
- package/lib/components/FeedStatus.vue.d.ts +16 -0
- package/lib/components/VibeSurface.vue.d.ts +4 -2
- package/lib/core/autofill.d.ts +1 -0
- package/lib/core/feed.d.ts +4 -1
- package/lib/core/feedFooter.d.ts +9 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +869 -717
- package/lib/types.d.ts +16 -1
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type VibeLayoutMode = VibeLayout | 'responsive';
|
|
|
7
7
|
export type VibeLifecycle = 'error' | 'loaded' | 'loading';
|
|
8
8
|
export type VibeMediaSource = 'preview' | 'original';
|
|
9
9
|
export type VibeAutofillStrategy = 'backend' | 'frontend';
|
|
10
|
+
export type VibeAutofillPageLimit = number | 'unlimited';
|
|
10
11
|
export type VibeFillStrategy = 'backend' | 'frontend';
|
|
11
12
|
export type VibeAutofillStatus = 'cancelled' | 'cancelling' | 'complete' | 'error' | 'exhausted' | 'filling' | 'idle' | 'restoring' | 'waiting';
|
|
12
13
|
export type VibeFillStatus = 'cancelled' | 'cancelling' | 'complete' | 'error' | 'exhausted' | 'filling' | 'idle' | 'restoring' | 'waiting';
|
|
@@ -76,6 +77,19 @@ export interface VibeCardRegionProps {
|
|
|
76
77
|
mediaSource: VibeMediaSource;
|
|
77
78
|
total: number | null;
|
|
78
79
|
}
|
|
80
|
+
export interface VibeFeedFooter {
|
|
81
|
+
component: Component;
|
|
82
|
+
}
|
|
83
|
+
export interface VibeFeedFooterActions {
|
|
84
|
+
cancelAutofill: () => Promise<void>;
|
|
85
|
+
loadMore: () => Promise<void>;
|
|
86
|
+
retry: () => Promise<void>;
|
|
87
|
+
retryEnd: () => Promise<void>;
|
|
88
|
+
}
|
|
89
|
+
export interface VibeFeedFooterProps {
|
|
90
|
+
actions: VibeFeedFooterActions;
|
|
91
|
+
state: VibeState;
|
|
92
|
+
}
|
|
79
93
|
export interface VibeReelInfoSheetProps extends VibeCardRegionProps {
|
|
80
94
|
close: () => void;
|
|
81
95
|
layout: 'reel';
|
|
@@ -125,7 +139,7 @@ export interface VibeRequestDelayOptions {
|
|
|
125
139
|
delayStepMs?: number;
|
|
126
140
|
}
|
|
127
141
|
export interface VibeFrontendAutofillOptions extends VibeRequestDelayOptions {
|
|
128
|
-
maxAdditionalPages?:
|
|
142
|
+
maxAdditionalPages?: VibeAutofillPageLimit;
|
|
129
143
|
pageSize: number;
|
|
130
144
|
strategy: 'frontend';
|
|
131
145
|
}
|
|
@@ -262,6 +276,7 @@ export interface CreateVibeOptions {
|
|
|
262
276
|
autofill?: VibeAutofillOptions;
|
|
263
277
|
cardFooter?: VibeCardRegion;
|
|
264
278
|
cardHeader?: VibeCardRegion;
|
|
279
|
+
feedFooter?: VibeFeedFooter;
|
|
265
280
|
fill?: VibeFillOptions;
|
|
266
281
|
target: Element | string;
|
|
267
282
|
layout?: VibeLayoutMode;
|