@wyxos/vibe 5.5.5 → 5.6.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/useMediaLoading.d.ts +3 -1
- package/lib/components/useMediaReadiness.d.ts +19 -0
- package/lib/core/appendPage.d.ts +4 -0
- package/lib/core/backlogRestore.d.ts +2 -0
- package/lib/core/feedFooter.d.ts +1 -0
- package/lib/core/fillController.d.ts +1 -0
- package/lib/core/mediaType.d.ts +2 -0
- package/lib/core/page.d.ts +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +911 -738
- package/lib/types.d.ts +14 -1
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type ShallowRef } from 'vue';
|
|
2
|
-
import type { VibeLayout } from '../types';
|
|
2
|
+
import type { VibeLayout, VibeMediaType } from '../types';
|
|
3
3
|
interface MediaLoadingOptions {
|
|
4
|
+
active: () => boolean | undefined;
|
|
4
5
|
fetchPriority: () => 'high' | 'low';
|
|
5
6
|
layout: () => VibeLayout;
|
|
6
7
|
mediaSource: () => string;
|
|
8
|
+
mediaType: () => VibeMediaType | undefined;
|
|
7
9
|
videoElement: ShallowRef<HTMLVideoElement | null>;
|
|
8
10
|
}
|
|
9
11
|
export declare function useMediaLoading(options: MediaLoadingOptions): {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MediaPreviewState } from '../core/mediaPreview';
|
|
2
|
+
interface MediaReadinessOptions {
|
|
3
|
+
identity: () => string;
|
|
4
|
+
mediaIndex: () => number;
|
|
5
|
+
onError: (mediaIndex: number) => void;
|
|
6
|
+
onReady: (mediaIndex: number) => void;
|
|
7
|
+
previewState: () => MediaPreviewState;
|
|
8
|
+
}
|
|
9
|
+
export declare function useMediaReadiness(options: MediaReadinessOptions): {
|
|
10
|
+
effectivePreviewState: import("vue").ComputedRef<MediaPreviewState>;
|
|
11
|
+
failSourceAttempt: (event?: Event) => void;
|
|
12
|
+
imageElement: import("vue").ShallowRef<HTMLImageElement | null, HTMLImageElement | null>;
|
|
13
|
+
markSourceReady: (event?: Event) => void;
|
|
14
|
+
noteSourceActivity: (event: Event) => void;
|
|
15
|
+
retrySource: () => void;
|
|
16
|
+
sourceGeneration: import("vue").ShallowRef<number, number>;
|
|
17
|
+
videoElement: import("vue").ShallowRef<HTMLVideoElement | null, HTMLVideoElement | null>;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VibeCursor, VibePage } from '../types';
|
|
2
|
+
import type { RemovalReconciliationController } from './removalReconciliationController';
|
|
3
|
+
import type { VibeRuntimeState } from './runtime';
|
|
4
|
+
export declare function appendPageToState(pageValue: VibePage, state: VibeRuntimeState, reconciliation: RemovalReconciliationController, setCursor: (cursor: VibeCursor) => void): void;
|
package/lib/core/feedFooter.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface FeedFooterActionTarget {
|
|
|
5
5
|
loadNext: () => Promise<void>;
|
|
6
6
|
reload: () => Promise<void>;
|
|
7
7
|
retryEnd: () => Promise<void>;
|
|
8
|
+
retryFill: () => Promise<void>;
|
|
8
9
|
}
|
|
9
10
|
export declare function createFeedFooterActions(target: FeedFooterActionTarget): VibeFeedFooterActions;
|
|
10
11
|
export {};
|
|
@@ -36,6 +36,7 @@ export declare class VibeFillController {
|
|
|
36
36
|
start(targetValue: VibeFillTarget, startOptions?: FillStartOptions): Promise<void>;
|
|
37
37
|
cancel(): Promise<void>;
|
|
38
38
|
resume(prepareFrontend: boolean): Promise<void>;
|
|
39
|
+
retry(prepareFrontend: boolean): Promise<void>;
|
|
39
40
|
reset(): void;
|
|
40
41
|
destroy(): void;
|
|
41
42
|
private abortLocalRequest;
|
package/lib/core/mediaType.d.ts
CHANGED
package/lib/core/page.d.ts
CHANGED
|
@@ -7,4 +7,5 @@ export interface LoadedPageRecord {
|
|
|
7
7
|
}
|
|
8
8
|
export declare function validatePage(page: VibePage): VibePage;
|
|
9
9
|
export declare function appendUniqueItems(current: readonly VibeItem[], incoming: readonly VibeItem[]): VibeItem[];
|
|
10
|
+
export declare function reconcilePageItems(current: readonly VibeItem[], incoming: readonly VibeItem[]): VibeItem[];
|
|
10
11
|
export declare function pageCurrentCursor(page: VibePage): VibeCursor;
|