@wyxos/vibe 5.5.3 → 5.5.5
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/core/page.d.ts +1 -0
- package/lib/core/removalReconciliationController.d.ts +2 -1
- package/lib/index.cjs +1 -1
- package/lib/index.js +195 -184
- package/package.json +1 -1
package/lib/core/page.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export interface LoadedPageRecord {
|
|
|
7
7
|
}
|
|
8
8
|
export declare function validatePage(page: VibePage): VibePage;
|
|
9
9
|
export declare function appendUniqueItems(current: readonly VibeItem[], incoming: readonly VibeItem[]): VibeItem[];
|
|
10
|
+
export declare function pageCurrentCursor(page: VibePage): VibeCursor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateVibeOptions, VibeCursor, VibeItem, VibeItemId, VibePageLoader } from '../types';
|
|
1
|
+
import type { CreateVibeOptions, VibeCursor, VibeItem, VibeItemId, VibePageLoader, VibePage } from '../types';
|
|
2
2
|
import { type LoadedPageRecord } from './page';
|
|
3
3
|
import { type RequestDelaySnapshot } from './requestDelay';
|
|
4
4
|
interface ReconciliationResult {
|
|
@@ -31,6 +31,7 @@ export declare class RemovalReconciliationController {
|
|
|
31
31
|
needsReconciliation(items: readonly VibeItem[]): boolean;
|
|
32
32
|
hasPendingSession(): boolean;
|
|
33
33
|
recordPages(records: readonly LoadedPageRecord[]): void;
|
|
34
|
+
recordInitialPage(page?: VibePage): void;
|
|
34
35
|
remove(postIds: readonly VibeItemId[]): void;
|
|
35
36
|
reset(): void;
|
|
36
37
|
restore(postIds: readonly VibeItemId[]): void;
|