@wyxos/vibe 3.1.1 → 3.1.2

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,4 +1,5 @@
1
1
  export type VibeAssetErrorKind = 'generic' | 'not-found';
2
2
  export declare function getVibeAssetErrorLabel(kind: VibeAssetErrorKind): "404" | "Load error";
3
3
  export declare function canRetryVibeAssetError(kind: VibeAssetErrorKind | null | undefined): kind is "generic";
4
- export declare function resolveVibeAssetErrorKind(url: string): Promise<VibeAssetErrorKind>;
4
+ export declare function resolveVibeAssetErrorKind(url: string): Promise<"generic" | "not-found">;
5
+ export declare function probeVibeAssetUrl(url: string): Promise<VibeAssetErrorKind | null>;
@@ -4,7 +4,7 @@ export interface VibeAssetLoadQueueLimits {
4
4
  maxVideoPerDomain: number;
5
5
  }
6
6
  export interface VibeAssetLoadRequest {
7
- assetType: 'image' | 'video';
7
+ assetType: 'image' | 'video' | 'probe';
8
8
  getPriority: () => number;
9
9
  onGrant: () => void;
10
10
  url: string;
@@ -0,0 +1,20 @@
1
+ import { type ComputedRef, type Ref } from 'vue';
2
+ import type { VibeViewerItem } from '../viewer';
3
+ import type { VibeAssetErrorReporter } from './assetErrors';
4
+ import { type VibeAssetErrorKind } from './loadError';
5
+ type UseListCardHealthCheckOptions = {
6
+ attachedAssetUrl: ComputedRef<string | null>;
7
+ getPriority: () => number;
8
+ isInView: Ref<boolean>;
9
+ isReady: Ref<boolean>;
10
+ item: ComputedRef<VibeViewerItem>;
11
+ loadErrorKind: Ref<VibeAssetErrorKind | null>;
12
+ reportAssetError?: VibeAssetErrorReporter | null;
13
+ surfaceActive: ComputedRef<boolean>;
14
+ };
15
+ export declare function useListCardHealthCheck(options: UseListCardHealthCheckOptions): {
16
+ errorKind: Ref<VibeAssetErrorKind | null, VibeAssetErrorKind | null>;
17
+ release: () => void;
18
+ retry: () => boolean;
19
+ };
20
+ export {};
@@ -55,6 +55,10 @@ export declare function useVibeMasonryList(options: {
55
55
  height?: number | undefined;
56
56
  mediaType?: import("../viewer").VibeRenderableMediaType | undefined;
57
57
  } | undefined;
58
+ healthCheck?: {
59
+ kind?: "playback" | undefined;
60
+ url: string;
61
+ } | null | undefined;
58
62
  width?: number | undefined;
59
63
  height?: number | undefined;
60
64
  };
@@ -57,6 +57,10 @@ export declare function useMasonryMotion(options: {
57
57
  height?: number | undefined;
58
58
  mediaType?: import("../viewer").VibeRenderableMediaType | undefined;
59
59
  } | undefined;
60
+ healthCheck?: {
61
+ kind?: "playback" | undefined;
62
+ url: string;
63
+ } | null | undefined;
60
64
  width?: number | undefined;
61
65
  height?: number | undefined;
62
66
  };
@@ -6,12 +6,17 @@ export interface VibeViewerAsset {
6
6
  height?: number;
7
7
  mediaType?: VibeRenderableMediaType;
8
8
  }
9
+ export interface VibeViewerHealthCheck {
10
+ kind?: 'playback';
11
+ url: string;
12
+ }
9
13
  export interface VibeViewerItem {
10
14
  id: string;
11
15
  type: VibeViewerType;
12
16
  title?: string;
13
17
  url: string;
14
18
  preview?: VibeViewerAsset;
19
+ healthCheck?: VibeViewerHealthCheck | null;
15
20
  width?: number;
16
21
  height?: number;
17
22
  [key: string]: unknown;