@wyxos/vibe 3.0.1 → 3.0.3
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/FullscreenSurface.vue.d.ts +2 -0
- package/lib/components/Layout.vue.d.ts +3 -12
- package/lib/components/ListCard.vue.d.ts +3 -0
- package/lib/components/ListSurface.vue.d.ts +5 -0
- package/lib/components/viewer-core/createFrameScheduler.d.ts +4 -0
- package/lib/components/viewer-core/removalState.d.ts +2 -1
- package/lib/components/viewer-core/surfaceSlots.d.ts +5 -0
- package/lib/components/viewer-core/useAssetLoadQueue.d.ts +6 -5
- package/lib/components/viewer-core/useController.d.ts +5 -4
- package/lib/components/viewer-core/useDataSource.d.ts +6 -1
- package/lib/components/viewer-core/useViewer.d.ts +2 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +3 -34
- package/lib/index.js +801 -715
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ type __VLS_Props = VibeControlledProps & {
|
|
|
9
9
|
reportAssetError?: VibeAssetErrorReporter | null;
|
|
10
10
|
reportAssetLoad?: VibeAssetLoadReporter | null;
|
|
11
11
|
showBackToList?: boolean;
|
|
12
|
+
showStatusBadges?: boolean;
|
|
12
13
|
};
|
|
13
14
|
type __VLS_Slots = {
|
|
14
15
|
'fullscreen-aside'?: (props: VibeSurfaceSlotProps) => unknown;
|
|
@@ -31,6 +32,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
31
32
|
activeIndex: number;
|
|
32
33
|
hasNextPage: boolean;
|
|
33
34
|
paginationDetail: string | null;
|
|
35
|
+
showStatusBadges: boolean;
|
|
34
36
|
showBackToList: boolean;
|
|
35
37
|
active: boolean;
|
|
36
38
|
reportAssetError: VibeAssetErrorReporter | null;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { type Component } from 'vue';
|
|
2
2
|
import type { VibeViewerItem } from './viewer';
|
|
3
|
-
import {
|
|
4
|
-
import type { VibeFullscreenStatusSlotProps, VibeGridStatusSlotProps, VibeSurfaceSlotProps } from './viewer-core/surfaceSlots';
|
|
5
|
-
import type { VibeHandle } from './viewer-core/useViewer';
|
|
3
|
+
import type { VibeEmptyStateSlotProps, VibeFullscreenStatusSlotProps, VibeGridStatusSlotProps, VibeSurfaceSlotProps } from './viewer-core/surfaceSlots';
|
|
6
4
|
type __VLS_Slots = {
|
|
7
5
|
'fullscreen-aside'?: (props: VibeSurfaceSlotProps) => unknown;
|
|
8
6
|
'fullscreen-header-actions'?: (props: VibeSurfaceSlotProps) => unknown;
|
|
9
7
|
'fullscreen-overlay'?: (props: VibeSurfaceSlotProps) => unknown;
|
|
10
8
|
'fullscreen-status'?: (props: VibeFullscreenStatusSlotProps) => unknown;
|
|
9
|
+
'empty-state'?: (props: VibeEmptyStateSlotProps) => unknown;
|
|
11
10
|
'grid-footer'?: () => unknown;
|
|
12
11
|
'grid-item-overlay'?: (props: {
|
|
13
12
|
active: boolean;
|
|
@@ -23,15 +22,7 @@ type __VLS_Slots = {
|
|
|
23
22
|
item: VibeViewerItem;
|
|
24
23
|
}) => unknown;
|
|
25
24
|
};
|
|
26
|
-
declare const __VLS_base: import("vue").
|
|
27
|
-
"update:activeIndex": (value: number) => any;
|
|
28
|
-
"asset-errors": (errors: VibeAssetErrorEvent[]) => any;
|
|
29
|
-
"asset-loads": (loads: VibeAssetLoadEvent[]) => any;
|
|
30
|
-
}, string, import("vue").PublicProps, Readonly<import("..").VibeControlledProps | import("..").VibeAutoProps> & Readonly<{
|
|
31
|
-
"onUpdate:activeIndex"?: ((value: number) => any) | undefined;
|
|
32
|
-
"onAsset-errors"?: ((errors: VibeAssetErrorEvent[]) => any) | undefined;
|
|
33
|
-
"onAsset-loads"?: ((loads: VibeAssetLoadEvent[]) => any) | undefined;
|
|
34
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_base: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
|
|
35
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
27
|
declare const _default: typeof __VLS_export;
|
|
37
28
|
export default _default;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
2
|
import type { VibeViewerItem } from './viewer';
|
|
3
3
|
import type { VibeAssetErrorReporter, VibeAssetLoadReporter } from './viewer-core/assetErrors';
|
|
4
|
+
import { type VibeAssetLoadQueue } from './viewer-core/useAssetLoadQueue';
|
|
4
5
|
type __VLS_Props = {
|
|
5
6
|
active?: boolean;
|
|
7
|
+
assetLoadQueue?: VibeAssetLoadQueue | null;
|
|
6
8
|
index?: number;
|
|
7
9
|
item: VibeViewerItem;
|
|
8
10
|
reportAssetError?: VibeAssetErrorReporter | null;
|
|
@@ -32,6 +34,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
32
34
|
reportAssetError: VibeAssetErrorReporter | null;
|
|
33
35
|
reportAssetLoad: VibeAssetLoadReporter | null;
|
|
34
36
|
index: number;
|
|
37
|
+
assetLoadQueue: VibeAssetLoadQueue | null;
|
|
35
38
|
surfaceActive: boolean;
|
|
36
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
40
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -2,9 +2,11 @@ import type { Component } from 'vue';
|
|
|
2
2
|
import type { VibeViewerItem } from './viewer';
|
|
3
3
|
import type { VibeAssetErrorReporter, VibeAssetLoadReporter } from './viewer-core/assetErrors';
|
|
4
4
|
import type { VibeGridStatusSlotProps } from './viewer-core/surfaceSlots';
|
|
5
|
+
import type { VibeAssetLoadQueue } from './viewer-core/useAssetLoadQueue';
|
|
5
6
|
type __VLS_Props = {
|
|
6
7
|
active?: boolean;
|
|
7
8
|
activeIndex?: number;
|
|
9
|
+
assetLoadQueue?: VibeAssetLoadQueue | null;
|
|
8
10
|
commitPendingAppend?: (() => void | Promise<void>) | null;
|
|
9
11
|
hasNextPage?: boolean;
|
|
10
12
|
hasPreviousPage?: boolean;
|
|
@@ -17,6 +19,7 @@ type __VLS_Props = {
|
|
|
17
19
|
requestNextPage?: (() => void | Promise<void>) | null;
|
|
18
20
|
requestPreviousPage?: (() => void | Promise<void>) | null;
|
|
19
21
|
restoreToken: number;
|
|
22
|
+
showStatusBadges?: boolean;
|
|
20
23
|
};
|
|
21
24
|
type __VLS_Slots = {
|
|
22
25
|
'grid-footer'?: () => unknown;
|
|
@@ -48,9 +51,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
48
51
|
paginationDetail: string | null;
|
|
49
52
|
requestNextPage: (() => void | Promise<void>) | null;
|
|
50
53
|
requestPreviousPage: (() => void | Promise<void>) | null;
|
|
54
|
+
showStatusBadges: boolean;
|
|
51
55
|
active: boolean;
|
|
52
56
|
reportAssetError: VibeAssetErrorReporter | null;
|
|
53
57
|
reportAssetLoad: VibeAssetLoadReporter | null;
|
|
58
|
+
assetLoadQueue: VibeAssetLoadQueue | null;
|
|
54
59
|
commitPendingAppend: (() => void | Promise<void>) | null;
|
|
55
60
|
pendingAppendItems: VibeViewerItem[];
|
|
56
61
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -3,6 +3,7 @@ export interface VibeRemoveResult {
|
|
|
3
3
|
}
|
|
4
4
|
export type VibeFeedMode = 'dynamic' | 'static';
|
|
5
5
|
export type VibeLoadPhase = 'failed' | 'filling' | 'idle' | 'loading' | 'reloading';
|
|
6
|
+
export type VibeSurfaceMode = 'fullscreen' | 'list';
|
|
6
7
|
export interface VibeStatus {
|
|
7
8
|
activeIndex: number;
|
|
8
9
|
currentCursor: string | null;
|
|
@@ -20,7 +21,7 @@ export interface VibeStatus {
|
|
|
20
21
|
phase: VibeLoadPhase;
|
|
21
22
|
previousCursor: string | null;
|
|
22
23
|
removedCount: number;
|
|
23
|
-
surfaceMode:
|
|
24
|
+
surfaceMode: VibeSurfaceMode;
|
|
24
25
|
}
|
|
25
26
|
export interface VibeHandle {
|
|
26
27
|
cancel: () => void;
|
|
@@ -14,9 +14,10 @@ export interface VibeAssetLoadLease {
|
|
|
14
14
|
refresh: () => void;
|
|
15
15
|
release: () => void;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export interface VibeAssetLoadQueue {
|
|
18
|
+
getLimits: () => VibeAssetLoadQueueLimits;
|
|
18
19
|
request: (options: VibeAssetLoadRequest) => VibeAssetLoadLease;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
setLimits: (limits?: Partial<VibeAssetLoadQueueLimits> | null) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function resolveAssetLoadQueueLimits(limits?: Partial<VibeAssetLoadQueueLimits> | null): VibeAssetLoadQueueLimits;
|
|
23
|
+
export declare function createAssetLoadQueue(initialLimits?: Partial<VibeAssetLoadQueueLimits> | null): VibeAssetLoadQueue;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { VibeSurfaceMode } from './removalState';
|
|
1
2
|
import { type VibeEmit, type VibeProps } from './useDataSource';
|
|
2
3
|
export declare const DESKTOP_BREAKPOINT_PX = 1024;
|
|
3
|
-
type
|
|
4
|
-
export declare function useController(props: Readonly<VibeProps>, emit:
|
|
4
|
+
type VibeControllerEmit = VibeEmit & ((event: 'update:surfaceMode', value: VibeSurfaceMode) => void);
|
|
5
|
+
export declare function useController(props: Readonly<VibeProps>, emit: VibeControllerEmit): {
|
|
5
6
|
cancel: () => void;
|
|
6
7
|
isDesktop: import("vue").ComputedRef<boolean>;
|
|
7
8
|
listRestoreToken: import("vue").Ref<number, number>;
|
|
@@ -28,9 +29,9 @@ export declare function useController(props: Readonly<VibeProps>, emit: VibeEmit
|
|
|
28
29
|
readonly phase: import("./removalState").VibeLoadPhase;
|
|
29
30
|
readonly previousCursor: string | null;
|
|
30
31
|
readonly removedCount: number;
|
|
31
|
-
readonly surfaceMode:
|
|
32
|
+
readonly surfaceMode: VibeSurfaceMode;
|
|
32
33
|
};
|
|
33
|
-
surfaceMode: import("vue").ComputedRef<
|
|
34
|
+
surfaceMode: import("vue").ComputedRef<VibeSurfaceMode>;
|
|
34
35
|
activeIndex: import("vue").ComputedRef<number>;
|
|
35
36
|
canRetryInitialLoad: import("vue").ComputedRef<boolean>;
|
|
36
37
|
clearRemoved: () => void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { VibeViewerItem } from '../viewer';
|
|
2
|
+
import { type VibeSurfaceMode } from './removalState';
|
|
3
|
+
import type { VibeAssetLoadQueueLimits } from './useAssetLoadQueue';
|
|
2
4
|
export type { VibeHandle, VibeRemoveResult } from './removalState';
|
|
3
5
|
export type { VibeFeedMode, VibeLoadPhase } from './removalState';
|
|
4
6
|
export interface VibeResolveParams {
|
|
@@ -19,10 +21,13 @@ export interface VibeInitialState {
|
|
|
19
21
|
activeIndex?: number;
|
|
20
22
|
}
|
|
21
23
|
interface VibeSharedProps {
|
|
24
|
+
assetLoadLimits?: Partial<VibeAssetLoadQueueLimits>;
|
|
22
25
|
hasPreviousPage?: boolean;
|
|
23
26
|
paginationDetail?: string | null;
|
|
24
27
|
requestNextPage?: (() => void | Promise<void>) | null;
|
|
25
28
|
requestPreviousPage?: (() => void | Promise<void>) | null;
|
|
29
|
+
showStatusBadges?: boolean;
|
|
30
|
+
surfaceMode?: VibeSurfaceMode;
|
|
26
31
|
}
|
|
27
32
|
export interface VibeControlledProps extends VibeSharedProps {
|
|
28
33
|
items: VibeViewerItem[];
|
|
@@ -37,7 +42,7 @@ export interface VibeControlledProps extends VibeSharedProps {
|
|
|
37
42
|
initialCursor?: never;
|
|
38
43
|
pageSize?: never;
|
|
39
44
|
}
|
|
40
|
-
export interface VibeAutoProps {
|
|
45
|
+
export interface VibeAutoProps extends VibeSharedProps {
|
|
41
46
|
resolve: (params: VibeResolveParams) => Promise<VibeResolveResult>;
|
|
42
47
|
fillDelayMs?: number;
|
|
43
48
|
fillDelayStepMs?: number;
|
|
@@ -4,7 +4,8 @@ import { formatPlaybackTime } from './format';
|
|
|
4
4
|
import { type VibeProps } from './useDataSource';
|
|
5
5
|
export type { VibeResolveParams, VibeResolveResult, VibeAutoProps, VibeControlledProps, VibeEmit, VibeFeedMode, VibeHandle, VibeInitialState, VibeLoadPhase, VibeProps, } from './useDataSource';
|
|
6
6
|
export type { VibeAssetErrorKind } from './loadError';
|
|
7
|
-
export type { VibeStatus } from './removalState';
|
|
7
|
+
export type { VibeStatus, VibeSurfaceMode } from './removalState';
|
|
8
|
+
export type { VibeAssetLoadQueueLimits } from './useAssetLoadQueue';
|
|
8
9
|
export type { VibeAssetErrorEvent, VibeAssetErrorReporter, VibeAssetErrorSurface, VibeAssetLoadEvent, VibeAssetLoadReporter, VibeAssetLoadSurface } from './assetErrors';
|
|
9
10
|
export declare function useViewer(props: Readonly<VibeProps>, emit: (event: 'update:activeIndex', value: number) => void, options?: {
|
|
10
11
|
enabled?: Ref<boolean>;
|