@wyxos/vibe 3.0.11 → 3.0.14
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/FullscreenHeader.vue.d.ts +3 -2
- package/lib/components/FullscreenSurface.vue.d.ts +4 -0
- package/lib/components/viewer-core/dominantImageTone.d.ts +6 -0
- package/lib/components/viewer-core/useAutoResolveSource.d.ts +5 -1
- package/lib/components/viewer-core/useDataSource.d.ts +2 -0
- package/lib/components/viewer-core/useFullscreenDominantTone.d.ts +12 -0
- package/lib/components/viewer-core/useMedia.d.ts +1 -0
- package/lib/components/viewer-core/useViewer.d.ts +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.js +660 -522
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
currentIndex: number;
|
|
3
|
+
loading?: boolean;
|
|
3
4
|
paginationDetail?: string | null;
|
|
4
5
|
showBackToList?: boolean;
|
|
5
6
|
showEndBadge?: boolean;
|
|
6
7
|
title?: string | null;
|
|
7
8
|
total: number;
|
|
8
9
|
};
|
|
9
|
-
declare var
|
|
10
|
+
declare var __VLS_11: {};
|
|
10
11
|
type __VLS_Slots = {} & {
|
|
11
|
-
actions?: (props: typeof
|
|
12
|
+
actions?: (props: typeof __VLS_11) => any;
|
|
12
13
|
};
|
|
13
14
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
15
|
"back-to-list": () => any;
|
|
@@ -12,10 +12,12 @@ interface FullscreenSurfaceProps {
|
|
|
12
12
|
hasNextPage?: boolean;
|
|
13
13
|
items: VibeViewerItem[];
|
|
14
14
|
loading?: boolean;
|
|
15
|
+
loopFullscreenVideo?: boolean;
|
|
15
16
|
paginationDetail?: string | null;
|
|
16
17
|
phase?: VibeLoadPhase | null;
|
|
17
18
|
reportAssetError?: VibeAssetErrorReporter | null;
|
|
18
19
|
reportAssetLoad?: VibeAssetLoadReporter | null;
|
|
20
|
+
showDominantImageTone?: boolean;
|
|
19
21
|
showBackToList?: boolean;
|
|
20
22
|
showEndBadge?: boolean;
|
|
21
23
|
showStatusBadges?: boolean;
|
|
@@ -40,7 +42,9 @@ declare const __VLS_base: import("vue").DefineComponent<FullscreenSurfaceProps,
|
|
|
40
42
|
}>, {
|
|
41
43
|
loading: boolean;
|
|
42
44
|
emptyStateMode: VibeEmptyStateMode;
|
|
45
|
+
loopFullscreenVideo: boolean;
|
|
43
46
|
paginationDetail: string | null;
|
|
47
|
+
showDominantImageTone: boolean;
|
|
44
48
|
showEndBadge: boolean;
|
|
45
49
|
showStatusBadges: boolean;
|
|
46
50
|
activeIndex: number;
|
|
@@ -32,11 +32,13 @@ export declare function useAutoResolveSource(options: {
|
|
|
32
32
|
fillTargetCount: Ref<number | null, number | null>;
|
|
33
33
|
hasNextPage: import("vue").ComputedRef<boolean>;
|
|
34
34
|
hasPreviousPage: import("vue").ComputedRef<boolean>;
|
|
35
|
+
isAutoPrefetchEnabled: Ref<boolean, boolean>;
|
|
35
36
|
isPageLoadingLocked: Ref<boolean, boolean>;
|
|
36
37
|
items: import("vue").ComputedRef<VibeViewerItem[]>;
|
|
37
38
|
lockPageLoading: () => void;
|
|
38
39
|
loading: import("vue").ComputedRef<boolean>;
|
|
39
40
|
mode: import("vue").ComputedRef<VibeFeedMode>;
|
|
41
|
+
maybePrefetchAround: () => Promise<void>;
|
|
40
42
|
nextCursor: import("vue").ComputedRef<string | null>;
|
|
41
43
|
pendingAppendItems: import("vue").ComputedRef<VibeViewerItem[]>;
|
|
42
44
|
phase: Ref<VibeLoadPhase, VibeLoadPhase>;
|
|
@@ -47,7 +49,9 @@ export declare function useAutoResolveSource(options: {
|
|
|
47
49
|
retry: () => Promise<void>;
|
|
48
50
|
setActiveIndex: (nextIndex: number) => void;
|
|
49
51
|
setAutoPrefetchEnabled: (nextValue: boolean) => void;
|
|
50
|
-
syncActiveIndexAfterVisibilityChange: (anchorOccurrenceKey?: string | null
|
|
52
|
+
syncActiveIndexAfterVisibilityChange: (anchorOccurrenceKey?: string | null, options?: {
|
|
53
|
+
preserveTrailingPlaceholder?: boolean;
|
|
54
|
+
}) => void;
|
|
51
55
|
unlockPageLoading: () => void;
|
|
52
56
|
getActiveOccurrenceKey: () => string | null;
|
|
53
57
|
maybeCommitPendingAppendWhenFilteredOut: () => void;
|
|
@@ -25,10 +25,12 @@ export interface VibeProps {
|
|
|
25
25
|
fillDelayStepMs?: number;
|
|
26
26
|
initialCursor?: string | null;
|
|
27
27
|
initialState?: VibeInitialState;
|
|
28
|
+
loopFullscreenVideo?: boolean;
|
|
28
29
|
mode?: import('./removalState').VibeFeedMode;
|
|
29
30
|
pageSize?: number;
|
|
30
31
|
paginationDetail?: string | null;
|
|
31
32
|
resolve?: (params: VibeResolveParams) => Promise<VibeResolveResult>;
|
|
33
|
+
showDominantImageTone?: boolean;
|
|
32
34
|
showEndBadge?: boolean;
|
|
33
35
|
showStatusBadges?: boolean;
|
|
34
36
|
surfaceMode?: import('./removalState').VibeSurfaceMode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { VibeViewerItem } from '../viewer';
|
|
3
|
+
export declare function useFullscreenDominantTone(options: {
|
|
4
|
+
activeItem: Ref<VibeViewerItem | null>;
|
|
5
|
+
getItemKey: (item: VibeViewerItem) => string;
|
|
6
|
+
isImageReady: (id: string) => boolean;
|
|
7
|
+
showDominantImageTone: Ref<boolean | undefined>;
|
|
8
|
+
}): {
|
|
9
|
+
activeStageToneStyle: import("vue").ComputedRef<Record<string, string> | undefined>;
|
|
10
|
+
activeSlideToneStyle: import("vue").ComputedRef<Record<string, string> | undefined>;
|
|
11
|
+
updateFromImageElement: (id: string, image: HTMLImageElement) => void;
|
|
12
|
+
};
|
|
@@ -9,6 +9,7 @@ export declare function useMedia(options: {
|
|
|
9
9
|
activeMediaItem: Ref<VibeViewerItem | null>;
|
|
10
10
|
isEnabled: Ref<boolean>;
|
|
11
11
|
itemCount: Ref<number>;
|
|
12
|
+
loopFullscreenVideo: Ref<boolean>;
|
|
12
13
|
onAssetError?: VibeAssetErrorReporter;
|
|
13
14
|
onAssetLoad?: VibeAssetLoadReporter;
|
|
14
15
|
}): {
|