@wyxos/vibe 3.1.29 → 3.1.31
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/viewer-core/fullscreenPreviews.d.ts +8 -0
- package/lib/components/viewer-core/removalState.d.ts +2 -0
- package/lib/components/viewer-core/surfaceSlots.d.ts +3 -0
- package/lib/components/viewer-core/useController.d.ts +2 -0
- package/lib/components/viewer-core/useMasonryMotion.d.ts +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +4 -3
- package/lib/index.js +544 -638
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/components/FullscreenPreviewRail.vue.d.ts +0 -15
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VibeViewerItem } from '../viewer';
|
|
2
|
+
import { type VibeListRenderableAsset } from './listPreview';
|
|
3
|
+
export interface VibeFullscreenPreviewItem {
|
|
4
|
+
asset: VibeListRenderableAsset;
|
|
5
|
+
index: number;
|
|
6
|
+
item: VibeViewerItem;
|
|
7
|
+
}
|
|
8
|
+
export declare function getFullscreenNextPreviews(items: VibeViewerItem[], activeIndex: number, maxItems?: number): VibeFullscreenPreviewItem[];
|
|
@@ -22,6 +22,7 @@ export interface VibeStatus {
|
|
|
22
22
|
hasNextPage: boolean;
|
|
23
23
|
hasPreviousPage: boolean;
|
|
24
24
|
itemCount: number;
|
|
25
|
+
itemsRevision: number;
|
|
25
26
|
loadState: 'failed' | 'loaded' | 'loading';
|
|
26
27
|
nextBoundaryLoadProgress: number;
|
|
27
28
|
nextCursor: string | null;
|
|
@@ -31,6 +32,7 @@ export interface VibeStatus {
|
|
|
31
32
|
previousCursor: string | null;
|
|
32
33
|
removedCount: number;
|
|
33
34
|
removedIds: readonly string[];
|
|
35
|
+
removedRevision: number;
|
|
34
36
|
surfaceMode: VibeSurfaceMode;
|
|
35
37
|
}
|
|
36
38
|
export interface VibeHandle {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { VibeViewerItem } from '../viewer';
|
|
2
|
+
import type { VibeFullscreenPreviewItem } from './fullscreenPreviews';
|
|
3
|
+
export type { VibeFullscreenPreviewItem } from './fullscreenPreviews';
|
|
2
4
|
export type VibeSurfaceSlotProps = {
|
|
3
5
|
hasNextPage: boolean;
|
|
4
6
|
index: number;
|
|
5
7
|
item: VibeViewerItem;
|
|
6
8
|
loading: boolean;
|
|
9
|
+
nextPreviews: VibeFullscreenPreviewItem[];
|
|
7
10
|
paginationDetail: string | null;
|
|
8
11
|
total: number;
|
|
9
12
|
};
|
|
@@ -32,6 +32,7 @@ export declare function useController(props: Readonly<VibeProps>, emit: VibeEmit
|
|
|
32
32
|
readonly hasNextPage: boolean;
|
|
33
33
|
readonly hasPreviousPage: boolean;
|
|
34
34
|
readonly itemCount: number;
|
|
35
|
+
readonly itemsRevision: number;
|
|
35
36
|
readonly loadState: "failed" | "loaded" | "loading";
|
|
36
37
|
readonly nextBoundaryLoadProgress: number;
|
|
37
38
|
readonly nextCursor: string | null;
|
|
@@ -41,6 +42,7 @@ export declare function useController(props: Readonly<VibeProps>, emit: VibeEmit
|
|
|
41
42
|
readonly previousCursor: string | null;
|
|
42
43
|
readonly removedCount: number;
|
|
43
44
|
readonly removedIds: readonly string[];
|
|
45
|
+
readonly removedRevision: number;
|
|
44
46
|
readonly surfaceMode: VibeSurfaceMode;
|
|
45
47
|
};
|
|
46
48
|
surfaceMode: import("vue").ComputedRef<VibeSurfaceMode>;
|
|
@@ -9,6 +9,7 @@ export interface VibeMasonryLeavingItem {
|
|
|
9
9
|
}
|
|
10
10
|
export declare function getVibeMasonryEnterOrder(itemIds: string[], direction: VibeMasonryEnterDirection): string[];
|
|
11
11
|
export declare function getVibeMasonryEnterDuration(itemCount: number): number;
|
|
12
|
+
export declare function shouldWindowVibeMasonryEnterTracking(pendingCount: number, addedCount: number, maxPendingItems?: number): boolean;
|
|
12
13
|
export declare function getVibeMasonryLeaveDuration(): number;
|
|
13
14
|
export declare function getVibeMasonryEnterStartY(options: {
|
|
14
15
|
direction: VibeMasonryEnterDirection;
|