@wyxos/vibe 3.1.14 → 3.1.16

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.
@@ -1,3 +1,4 @@
1
+ import type { VibeViewerItem } from '../viewer';
1
2
  export interface VibeRemoveResult {
2
3
  ids: string[];
3
4
  }
@@ -28,6 +29,8 @@ export interface VibeStatus {
28
29
  export interface VibeHandle {
29
30
  cancel: () => void;
30
31
  clearRemoved: () => void;
32
+ getItemByOccurrenceKey: (occurrenceKey: string) => VibeViewerItem | null;
33
+ getItems: () => VibeViewerItem[];
31
34
  getRemovedIds: () => string[];
32
35
  lockPageLoading: () => void;
33
36
  loadNext: () => Promise<void>;
@@ -50,6 +50,8 @@ export declare function useController(props: Readonly<VibeProps>, emit: VibeEmit
50
50
  fillCursor: import("vue").Ref<string | null, string | null>;
51
51
  fillDelayRemainingMs: import("vue").Ref<number | null, number | null>;
52
52
  fillTargetCount: import("vue").Ref<number | null, number | null>;
53
+ getItemByOccurrenceKey: (occurrenceKey: string) => import("../viewer").VibeViewerItem | null;
54
+ getItems: () => import("../viewer").VibeViewerItem[];
53
55
  getRemovedIds: () => string[];
54
56
  hasNextPage: import("vue").ComputedRef<boolean>;
55
57
  hasPreviousPage: import("vue").ComputedRef<boolean>;
@@ -51,6 +51,8 @@ export declare function useDataSource(props: Readonly<VibeProps>, emit: VibeEmit
51
51
  fillCursor: import("vue").Ref<string | null, string | null>;
52
52
  fillDelayRemainingMs: import("vue").Ref<number | null, number | null>;
53
53
  fillTargetCount: import("vue").Ref<number | null, number | null>;
54
+ getItemByOccurrenceKey: (occurrenceKey: string) => VibeViewerItem | null;
55
+ getItems: () => VibeViewerItem[];
54
56
  getRemovedIds: () => string[];
55
57
  hasNextPage: import("vue").ComputedRef<boolean>;
56
58
  hasPreviousPage: import("vue").ComputedRef<boolean>;
@@ -0,0 +1,24 @@
1
+ import type { VibeViewerItem } from '../viewer';
2
+ interface FullscreenAssetMediaController {
3
+ getItemKey: (item: VibeViewerItem) => string;
4
+ settleAssetPreload: (id: string) => void;
5
+ shouldHandleSlideAssetEvent: (index: number, item: VibeViewerItem) => boolean;
6
+ }
7
+ interface FullscreenAssetViewer {
8
+ onImageError: (id: string, url: string) => Promise<void>;
9
+ onImageLoad: (id: string, url: string) => void;
10
+ onMediaError: (id: string, url: string) => Promise<void>;
11
+ onMediaEvent: (id: string, event: Event) => void;
12
+ }
13
+ export declare function useFullscreenAssetEvents(options: {
14
+ fullscreenMedia: FullscreenAssetMediaController;
15
+ updateDominantToneFromImageElement: (id: string, image: HTMLImageElement) => void;
16
+ viewer: FullscreenAssetViewer;
17
+ }): {
18
+ getHandledItemKey: (index: number, item: VibeViewerItem) => string | null;
19
+ onFullscreenImageError: (index: number, item: VibeViewerItem) => Promise<void>;
20
+ onFullscreenImageLoad: (event: Event, index: number, item: VibeViewerItem) => void;
21
+ onFullscreenMediaError: (index: number, item: VibeViewerItem) => Promise<void>;
22
+ onFullscreenMediaEvent: (index: number, item: VibeViewerItem, event: Event) => string | null;
23
+ };
24
+ export {};
@@ -26,5 +26,6 @@ export declare function useFullscreenSurfaceMedia(options: {
26
26
  registerImageElement: (id: string, element: unknown) => void;
27
27
  registerMediaElement: (id: string, element: unknown) => void;
28
28
  settleAssetPreload: (id: string) => void;
29
+ shouldHandleSlideAssetEvent: (index: number, item: VibeViewerItem) => boolean;
29
30
  shouldPreloadSlideAsset: (index: number) => boolean;
30
31
  };