@keepkit/ui 0.28.8 → 0.28.10
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/README.md +225 -193
- package/dist/index.d.ts +51 -9
- package/dist/index.js +2321 -827
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +17 -9
- package/dist/styles/collection.css +153 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { KeepListQuery, KeepUrlSyncOptions, KeepItemInput, ImportItemsResult, Ke
|
|
|
4
4
|
export { AuthenticatedSyncAuthContext, AuthenticatedSyncKit, AuthenticatedSyncKitOptions, AuthenticatedSyncRequestContext, AuthenticatedSyncTransport, KeepItem, KeepItemInput, KeepListQuery, KeepRediscoveryStrategy, KeepScope, KeepSyncConflict, KeepSyncResolution, KeepSyncState, KeepSyncStatus, KeepUndoState, KeepUrlSyncOptions, createAuthenticatedSyncKit } from '@keepkit/core/core';
|
|
5
5
|
import { useKeepItem, KeepCollectionSummary, KeepButtonProps as KeepButtonProps$1, UseKeepListResult, KeepErrorBoundaryProps, UseKeepNavigatorResult, CreateKeepKitOptions as CreateKeepKitOptions$1, KeepProviderProps, useKeepContext, useKeepList, UseKeepRediscoveryOptions, UseKeepRediscoveryResult, UseKeepCollectionsResult, UseKeepNavigatorOptions, KeepShortcutOptions } from '@keepkit/core/react';
|
|
6
6
|
export { KeepButtonState, KeepContextValue, KeepErrorBoundary, KeepErrorBoundaryProps, KeepProvider, KeepProviderProps, KeepShortcutOptions, useKeepCollections, useKeepContext, useKeepItem, useKeepList, useKeepNavigator, useKeepRediscovery, useKeepShortcut } from '@keepkit/core/react';
|
|
7
|
+
import { KeepStorageRecovery } from '@keepkit/core/storage';
|
|
7
8
|
export { FallbackStorageAdapter, IndexedDBAdapter, IndexedDBSyncQueueAdapter, LocalStorageAdapter, LocalStorageSyncQueueAdapter, SyncStorageAdapter, createBrowserStorageAdapter, createStorageAdapter } from '@keepkit/core/storage';
|
|
8
9
|
|
|
9
10
|
type KeepUrlAdapter = {
|
|
@@ -119,6 +120,13 @@ type KeepBulkActionsState<TMeta = Record<string, unknown>> = {
|
|
|
119
120
|
toggleSelectAll: () => void;
|
|
120
121
|
toggleAll: () => void;
|
|
121
122
|
remove: () => Promise<void>;
|
|
123
|
+
requestRemoval: () => Promise<void>;
|
|
124
|
+
confirmRemoval: () => Promise<void>;
|
|
125
|
+
cancelRemoval: () => void;
|
|
126
|
+
removalConfirmation: {
|
|
127
|
+
ids: readonly string[];
|
|
128
|
+
count: number;
|
|
129
|
+
} | null;
|
|
122
130
|
updateTags: () => Promise<void>;
|
|
123
131
|
collectionId: string;
|
|
124
132
|
setCollectionId: (value: string) => void;
|
|
@@ -129,6 +137,7 @@ type KeepBulkActionsState<TMeta = Record<string, unknown>> = {
|
|
|
129
137
|
pin: () => Promise<void>;
|
|
130
138
|
unpin: () => Promise<void>;
|
|
131
139
|
isMutating: boolean;
|
|
140
|
+
error: unknown | null;
|
|
132
141
|
selectionScope: KeepSelectionScope;
|
|
133
142
|
setSelectionScope: (scope: KeepSelectionScope) => void;
|
|
134
143
|
};
|
|
@@ -142,11 +151,13 @@ type KeepBulkActionsProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes
|
|
|
142
151
|
onCompleted?: (action: "remove" | "tags", ids: string[]) => void;
|
|
143
152
|
selectionScope?: KeepSelectionScope;
|
|
144
153
|
onSelectionScopeChange?: (scope: KeepSelectionScope) => void;
|
|
154
|
+
/** Requires confirmation before removing the full selection, including items on other pages. */
|
|
155
|
+
confirmRemoval?: boolean;
|
|
145
156
|
render?: RenderProp<KeepBulkActionsState<TMeta>>;
|
|
146
157
|
children?: ReactNode | RenderProp<KeepBulkActionsState<TMeta>>;
|
|
147
158
|
};
|
|
148
159
|
/** Selects visible items and performs one storage operation for the whole selection. */
|
|
149
|
-
declare function KeepBulkActions<TMeta = Record<string, unknown>>({ query, selectedIds: controlledSelectedIds, defaultSelectedIds, onSelectedIdsChange, renderItem, onCompleted, selectionScope: controlledScope, onSelectionScopeChange, render, children, ...props }: KeepBulkActionsProps<TMeta>): react.JSX.Element;
|
|
160
|
+
declare function KeepBulkActions<TMeta = Record<string, unknown>>({ query, selectedIds: controlledSelectedIds, defaultSelectedIds, onSelectedIdsChange, renderItem, onCompleted, selectionScope: controlledScope, onSelectionScopeChange, confirmRemoval, render, children, ...props }: KeepBulkActionsProps<TMeta>): react.JSX.Element;
|
|
150
161
|
|
|
151
162
|
type KeepButtonProps<TMeta = Record<string, unknown>> = KeepButtonProps$1<TMeta> & {
|
|
152
163
|
ref?: Ref<HTMLElement> | {
|
|
@@ -211,6 +222,7 @@ type KeepQuickEditorProps<TMeta = Record<string, unknown>> = Omit<FormHTMLAttrib
|
|
|
211
222
|
collectionIds?: string[];
|
|
212
223
|
collectionLabels?: Record<string, string>;
|
|
213
224
|
showSaveButton?: boolean;
|
|
225
|
+
closeLabel?: string;
|
|
214
226
|
/** Controls which fields are visible. Defaults to all fields shown. */
|
|
215
227
|
features?: Partial<Record<KeepQuickEditorFeature, boolean>>;
|
|
216
228
|
children?: ReactNode | ((state: KeepQuickEditorState<TMeta>) => ReactNode);
|
|
@@ -262,6 +274,7 @@ type KeepImageProps = ImgHTMLAttributes<HTMLImageElement> & {
|
|
|
262
274
|
src: string;
|
|
263
275
|
alt: string;
|
|
264
276
|
};
|
|
277
|
+
type KeepItemCardPresentation = "default" | "reading";
|
|
265
278
|
type KeepItemCardVariant = "outlined" | "elevated" | "filled";
|
|
266
279
|
type KeepActivityKind = "opened" | "inactive";
|
|
267
280
|
type KeepItemCardProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children" | "title"> & {
|
|
@@ -309,11 +322,14 @@ type KeepItemCardProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HT
|
|
|
309
322
|
highlightQuery?: string;
|
|
310
323
|
/** Controls the opt-in card surface treatment while preserving the card contract. */
|
|
311
324
|
cardVariant?: KeepItemCardVariant;
|
|
325
|
+
presentation?: KeepItemCardPresentation;
|
|
312
326
|
};
|
|
313
327
|
type KeepItemCardMediaProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
314
328
|
children?: ReactNode;
|
|
315
329
|
fallback?: ReactNode;
|
|
316
330
|
};
|
|
331
|
+
/** An explicit linked region. Keep tags, buttons, and editors outside this region. */
|
|
332
|
+
type KeepItemCardLinkRegionProps = HTMLAttributes<HTMLElement>;
|
|
317
333
|
type KeepItemCardContentProps = HTMLAttributes<HTMLDivElement>;
|
|
318
334
|
type KeepItemCardTitleProps = Omit<HTMLAttributes<HTMLHeadingElement>, "title"> & {
|
|
319
335
|
as?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
@@ -324,8 +340,9 @@ type KeepItemCardSkeletonProps = Omit<HTMLAttributes<HTMLElement>, "children"> &
|
|
|
324
340
|
layout?: KeepLayoutPreset;
|
|
325
341
|
};
|
|
326
342
|
/** A low-dependency item presentation primitive with composable card parts. */
|
|
327
|
-
declare function KeepItemCardRoot<TMeta = Record<string, unknown>>({ item, title, getTitle, getImageProps, imageComponent: ImageComponent, renderImage, renderTags, showTags, showNote, showSavedAt, showActivity, activityKind, collectionLabels, imageAlt, render, children, removeLabel, onRemoveError, onRemoved, onRetry, showSaveButton, showPinButton, showArchiveButton, showEditButton, onEdit, editSlot, editFeatures, saveButtonLabels, asChild, href: hrefOption, onOpen, trackOpen, linkTarget, linkComponent: LinkComponent, linkTargetAttribute, linkRel, highlightQuery, cardVariant, className, ...rootProps }: KeepItemCardProps<TMeta>): react.JSX.Element;
|
|
343
|
+
declare function KeepItemCardRoot<TMeta = Record<string, unknown>>({ item, title, getTitle, getImageProps, imageComponent: ImageComponent, renderImage, renderTags, presentation, showTags, showNote, showSavedAt, showActivity, activityKind, collectionLabels, imageAlt, render, children, removeLabel, onRemoveError, onRemoved, onRetry, showSaveButton, showPinButton, showArchiveButton, showEditButton, onEdit, editSlot, editFeatures, saveButtonLabels, asChild, href: hrefOption, onOpen, trackOpen, linkTarget, linkComponent: LinkComponent, linkTargetAttribute, linkRel, highlightQuery, cardVariant, className, ...rootProps }: KeepItemCardProps<TMeta>): react.JSX.Element;
|
|
328
344
|
declare function KeepItemCardMedia({ children, fallback, ...props }: KeepItemCardMediaProps): react.JSX.Element;
|
|
345
|
+
declare function KeepItemCardLink({ children, ...props }: KeepItemCardLinkRegionProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
|
|
329
346
|
declare function KeepItemCardContent({ children, ...props }: KeepItemCardContentProps): react.JSX.Element;
|
|
330
347
|
declare function KeepItemCardTitle({ as, children, ...props }: KeepItemCardTitleProps): react.DetailedReactHTMLElement<{
|
|
331
348
|
"data-keep-card-part": string;
|
|
@@ -634,6 +651,7 @@ declare function KeepItemCardArchive({ children, ...props }: Omit<KeepArchiveBut
|
|
|
634
651
|
}): react.JSX.Element;
|
|
635
652
|
declare function KeepItemCardCollectionBadge({ children, ...props }: KeepItemCardBadgeProps): react.JSX.Element | null;
|
|
636
653
|
declare const KeepItemCard: typeof KeepItemCardRoot & {
|
|
654
|
+
Link: typeof KeepItemCardLink;
|
|
637
655
|
Media: typeof KeepItemCardMedia;
|
|
638
656
|
Content: typeof KeepItemCardContent;
|
|
639
657
|
Title: typeof KeepItemCardTitle;
|
|
@@ -657,6 +675,16 @@ type KeepArchiveScopeSelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>,
|
|
|
657
675
|
/** A localized active/archived/all selector for a KeepCollection query. */
|
|
658
676
|
declare function KeepArchiveScopeSelect({ value: controlledValue, defaultValue, onValueChange, "aria-label": ariaLabel, ...props }: KeepArchiveScopeSelectProps): react.JSX.Element;
|
|
659
677
|
|
|
678
|
+
type KeepListSelection = {
|
|
679
|
+
selectedIds: readonly string[];
|
|
680
|
+
onSelectedIdsChange: (ids: string[]) => void;
|
|
681
|
+
disabled?: boolean;
|
|
682
|
+
};
|
|
683
|
+
type KeepItemSelection = {
|
|
684
|
+
checked: boolean;
|
|
685
|
+
onCheckedChange: (checked: boolean) => void;
|
|
686
|
+
disabled?: boolean;
|
|
687
|
+
};
|
|
660
688
|
type KeepListState<TMeta = Record<string, unknown>> = UseKeepListResult<TMeta>;
|
|
661
689
|
type KeepListProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
662
690
|
ref?: Ref<HTMLElement> | {
|
|
@@ -664,7 +692,7 @@ type KeepListProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLEl
|
|
|
664
692
|
};
|
|
665
693
|
query?: KeepListQuery<TMeta>;
|
|
666
694
|
children?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
667
|
-
renderItem?: (item: KeepItem<TMeta>, state: KeepListState<TMeta
|
|
695
|
+
renderItem?: (item: KeepItem<TMeta>, state: KeepListState<TMeta>, selection?: KeepItemSelection) => ReactNode;
|
|
668
696
|
loading?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
669
697
|
/** Alias for `loading`. When neither is provided, layout-matched skeletons are rendered. */
|
|
670
698
|
renderLoading?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
@@ -674,6 +702,7 @@ type KeepListProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLEl
|
|
|
674
702
|
onClearFilters?: () => void;
|
|
675
703
|
itemCardProps?: Omit<KeepItemCardProps<TMeta>, "item" | "children" | "render">;
|
|
676
704
|
layout?: KeepLayoutPreset;
|
|
705
|
+
selection?: KeepListSelection;
|
|
677
706
|
reorderable?: boolean;
|
|
678
707
|
onReorder?: (orderedIds: string[]) => void | Promise<void>;
|
|
679
708
|
asChild?: boolean;
|
|
@@ -721,10 +750,13 @@ type KeepCollectionProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<
|
|
|
721
750
|
reorderable?: boolean;
|
|
722
751
|
onReorder?: (items: KeepItem<TMeta>[]) => void | Promise<void>;
|
|
723
752
|
features?: Partial<Record<KeepCollectionFeature, boolean>>;
|
|
753
|
+
bulkActionsVariant?: "separate" | "inline";
|
|
754
|
+
/** Requires confirmation before a bulk removal. */
|
|
755
|
+
confirmRemoval?: boolean;
|
|
724
756
|
collectionLabels?: Record<string, string>;
|
|
725
757
|
/** Shows a collection creation form in the toolbar. */
|
|
726
758
|
creatable?: boolean;
|
|
727
|
-
renderItem?:
|
|
759
|
+
renderItem?: KeepListProps<TMeta>["renderItem"];
|
|
728
760
|
itemCardProps?: Omit<KeepItemCardProps<TMeta>, "item" | "children" | "render">;
|
|
729
761
|
loading?: ReactNode | RenderProp<KeepListState<TMeta>>;
|
|
730
762
|
/** Alias for `loading`. When neither is provided, KeepList renders skeleton cards. */
|
|
@@ -868,7 +900,7 @@ type KeepTagEditorProps<TMeta = Record<string, unknown>> = Omit<FormHTMLAttribut
|
|
|
868
900
|
/** Edits one item's normalized tag set; Enter adds and Backspace removes the last tag. */
|
|
869
901
|
declare function KeepTagEditor<TMeta = Record<string, unknown>>({ item, availableTags, onSaved, onSaveError, render, ...props }: KeepTagEditorProps<TMeta>): react.JSX.Element;
|
|
870
902
|
|
|
871
|
-
type KeepUiLabelKey = "save" | "saved" | "remove" | "loading" | "saving" | "syncing" | "error" | "archive" | "unarchive" | "archived" | "pin" | "unpin" | "pinned" | "collection" | "allCollections" | "filterCollections" | "uncategorized" | "saveWithNote" | "editSavedItem" | "unsavedChanges" | "allTags" | "tags" | "filterTags" | "activeFilters" | "clearFilters" | "clearAllFilters" | "resetFilters" | "removeFilter" | "noFilteredItems" | "noFilteredItemsDescription" | "emptyStorageDescription" | "note" | "saveNote" | "noItems" | "loadingItems" | "errorItems" | "search" | "sort" | "newest" | "oldest" | "savedNewest" | "savedOldest" | "updatedNewest" | "updatedOldest" | "previousPage" | "nextPage" | "pagination" | "page" | "selectItems" | "selectedCount" | "deleteSelected" | "tagsToApply" | "applyTags" | "savedMessage" | "removedMessage" | "restoredMessage" | "syncFailedMessage" | "stalePrunedMessage" | "undo" | "undoAvailable" | "selectionScope" | "currentPage" | "searchResults" | "allItems" | "localVersion" | "remoteVersion" | "updatedAt" | "statusAvailable" | "noteSavedMessage" | "exportData" | "importData" | "importMode" | "merge" | "replace" | "importedCount" | "failedCount" | "storageQuotaError" | "statusExpired" | "statusRemoved" | "statusDeleted" | "statusPrivate" | "statusUnknown" | "retry" | "removeFromList" | "pruneStale" | "retrySync" | "resolveSync" | "keepLocal" | "useServer" | "manualMerge" | "close" | "backupRecovery" | "backupRecoveryDescription" | "syncPending" | "syncSynced" | "syncConflict" | "archiveScope" | "archiveScopeActive" | "archiveScopeArchived" | "archiveScopeAll" | "activityNeverOpened" | "activityOpened" | "activityInactiveFor" | "activityInactiveSuffix" | "activityBefore" | "activityAfter" | "undoReorder" | "toolbarStart" | "toolbarQuery" | "toolbarFilters" | "toolbarEnd" | "createCollection" | "createCollectionSubmit" | "collectionName" | "manageCollections" | "renameCollection" | "renameCollectionSubmit" | "deleteCollection" | "deleteCollectionConfirm" | "deleteCollectionSubmit" | "cancel" | "collectionItem" | "collectionItems";
|
|
903
|
+
type KeepUiLabelKey = "confirmRemoval" | "confirmRemovalDescription" | "fallbackRecovery" | "inspectRecovery" | "recoveryPrimary" | "recoveryFallback" | "recoverySnapshot" | "recoveryLegacy" | "recoveryUnavailable" | "recoveryStale" | "recoveryPending" | "recoveryReady" | "recoveryChooseSource" | "recoveryPreview" | "recoveryApply" | "recoveryApplied" | "recoveryCommitted" | "recoveryItems" | "recoveryMemberships" | "recoveryBackups" | "recoveryIssues" | "recoveryNoChanges" | "moveSelectedCollection" | "archiveSelected" | "unarchiveSelected" | "pinSelected" | "unpinSelected" | "done" | "moreActions" | "moveSelected" | "save" | "saved" | "remove" | "loading" | "saving" | "syncing" | "error" | "archive" | "unarchive" | "archived" | "pin" | "unpin" | "pinned" | "collection" | "allCollections" | "filterCollections" | "uncategorized" | "saveWithNote" | "editSavedItem" | "unsavedChanges" | "allTags" | "tags" | "filterTags" | "activeFilters" | "clearFilters" | "clearAllFilters" | "resetFilters" | "removeFilter" | "noFilteredItems" | "noFilteredItemsDescription" | "emptyStorageDescription" | "note" | "saveNote" | "noItems" | "loadingItems" | "errorItems" | "search" | "sort" | "newest" | "oldest" | "savedNewest" | "savedOldest" | "updatedNewest" | "updatedOldest" | "previousPage" | "nextPage" | "pagination" | "page" | "selectItems" | "selectedCount" | "deleteSelected" | "tagsToApply" | "applyTags" | "savedMessage" | "removedMessage" | "restoredMessage" | "syncFailedMessage" | "stalePrunedMessage" | "undo" | "undoAvailable" | "selectionScope" | "currentPage" | "searchResults" | "allItems" | "localVersion" | "remoteVersion" | "updatedAt" | "statusAvailable" | "noteSavedMessage" | "exportData" | "importData" | "importMode" | "merge" | "replace" | "importedCount" | "failedCount" | "storageQuotaError" | "statusExpired" | "statusRemoved" | "statusDeleted" | "statusPrivate" | "statusUnknown" | "retry" | "removeFromList" | "pruneStale" | "retrySync" | "resolveSync" | "keepLocal" | "useServer" | "manualMerge" | "close" | "backupRecovery" | "backupRecoveryDescription" | "syncPending" | "syncSynced" | "syncConflict" | "archiveScope" | "archiveScopeActive" | "archiveScopeArchived" | "archiveScopeAll" | "activityNeverOpened" | "activityOpened" | "activityInactiveFor" | "activityInactiveSuffix" | "activityBefore" | "activityAfter" | "undoReorder" | "toolbarStart" | "toolbarQuery" | "toolbarFilters" | "toolbarEnd" | "createCollection" | "createCollectionSubmit" | "collectionName" | "manageCollections" | "renameCollection" | "renameCollectionSubmit" | "deleteCollection" | "deleteCollectionConfirm" | "deleteCollectionSubmit" | "cancel" | "collectionItem" | "collectionItems" | "manualSort" | "moveItem" | "reorderMoved" | "reorderFailed" | "savedViews" | "savedViewName" | "saveView" | "renameSavedView" | "savedViewNewName" | "deleteSavedView" | "savedViewsLoadError" | "savedViewSaveError" | "savedViewNameRequired" | "savedViewNotSerializable" | "savedViewInvalidDates";
|
|
872
904
|
type KeepUiLabelOptions = {
|
|
873
905
|
/** Replaces the localized label text. Omit to keep the locale default. */
|
|
874
906
|
text?: string;
|
|
@@ -1157,12 +1189,14 @@ type KeepSearchInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "value"
|
|
|
1157
1189
|
declare function KeepSearchInput({ value: controlledValue, defaultValue, debounceMs, onValueChange, "aria-label": ariaLabel, placeholder, ...props }: KeepSearchInputProps): react.JSX.Element;
|
|
1158
1190
|
type KeepSortValue = "savedAt:desc" | "savedAt:asc" | "updatedAt:desc" | "updatedAt:asc" | "lastOpenedAt:desc" | "lastOpenedAt:asc";
|
|
1159
1191
|
type KeepSortSelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, "value" | "defaultValue" | "onChange"> & {
|
|
1160
|
-
value?: KeepSortValue;
|
|
1161
|
-
defaultValue?: KeepSortValue;
|
|
1192
|
+
value?: KeepSortValue | "manual";
|
|
1193
|
+
defaultValue?: KeepSortValue | "manual";
|
|
1162
1194
|
onValueChange?: (value: KeepSortValue, sort: NonNullable<KeepListQuery["sort"]>) => void;
|
|
1195
|
+
/** Adds a manual-order option without changing the dated-sort callback. */
|
|
1196
|
+
onManualSort?: () => void;
|
|
1163
1197
|
};
|
|
1164
1198
|
/** Emits a normalized sort descriptor that can be passed directly to useKeepList. */
|
|
1165
|
-
declare function KeepSortSelect({ value: controlledValue, defaultValue, onValueChange, "aria-label": ariaLabel, children, ...props }: KeepSortSelectProps): react.JSX.Element;
|
|
1199
|
+
declare function KeepSortSelect({ value: controlledValue, defaultValue, onValueChange, onManualSort, "aria-label": ariaLabel, children, ...props }: KeepSortSelectProps): react.JSX.Element;
|
|
1166
1200
|
type KeepPaginationState = {
|
|
1167
1201
|
page: number;
|
|
1168
1202
|
pageCount: number;
|
|
@@ -1179,6 +1213,13 @@ type KeepPaginationProps = Omit<React.HTMLAttributes<HTMLElement>, "children"> &
|
|
|
1179
1213
|
/** Accessible pagination with previous/next controls and numbered page buttons. */
|
|
1180
1214
|
declare function KeepPagination({ totalCount, pageSize, page, maxPageButtons, onPageChange, render, ...props }: KeepPaginationProps): react.JSX.Element;
|
|
1181
1215
|
|
|
1216
|
+
type KeepFallbackRecoveryProps<TMeta = Record<string, unknown>> = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
1217
|
+
/** Pass a standalone local adapter's capability before initializing remote synchronization. */
|
|
1218
|
+
recovery: KeepStorageRecovery<TMeta>;
|
|
1219
|
+
};
|
|
1220
|
+
/** Compares persisted versions without writing; only an explicit reviewed apply commits a repair. */
|
|
1221
|
+
declare function KeepFallbackRecovery<TMeta = Record<string, unknown>>({ recovery, ...props }: KeepFallbackRecoveryProps<TMeta>): react.JSX.Element;
|
|
1222
|
+
|
|
1182
1223
|
type KeepRediscoveryProps<TMeta = Record<string, unknown>> = Omit<KeepListProps<TMeta>, "query"> & {
|
|
1183
1224
|
strategy: KeepRediscoveryStrategy;
|
|
1184
1225
|
inactiveForMs?: number;
|
|
@@ -1394,6 +1435,7 @@ type KeepKit<TMeta = Record<string, unknown>> = {
|
|
|
1394
1435
|
Inbox: ComponentType<KeepInboxProps<TMeta>>;
|
|
1395
1436
|
SavedViews: ComponentType<KeepSavedViewsProps<TMeta>>;
|
|
1396
1437
|
CollectionManager: ComponentType<KeepCollectionManagerProps>;
|
|
1438
|
+
FallbackRecovery: ComponentType<KeepFallbackRecoveryProps<TMeta>>;
|
|
1397
1439
|
Workspace: ComponentType<KeepWorkspaceProps<TMeta>>;
|
|
1398
1440
|
useContext: () => ReturnType<typeof useKeepContext<TMeta>>;
|
|
1399
1441
|
useItem: (item?: KeepItemInput<TMeta>) => ReturnType<typeof useKeepItem<TMeta>>;
|
|
@@ -1415,4 +1457,4 @@ type KeepKit<TMeta = Record<string, unknown>> = {
|
|
|
1415
1457
|
/** Create one typed application API for the core and standard UI layer. */
|
|
1416
1458
|
declare function createKeepKit<TMeta = Record<string, unknown>>(options?: CreateKeepKitOptions<TMeta>): KeepKit<TMeta>;
|
|
1417
1459
|
|
|
1418
|
-
export { type CreateKeepKitOptions, KeepActiveFiltersSummary, type KeepActiveFiltersSummaryProps, type KeepActiveFiltersSummaryState, type KeepActivityKind, KeepAnnouncements, type KeepAnnouncementsProps, KeepAnnouncer, KeepArchiveButton, type KeepArchiveButtonProps, type KeepArchiveButtonState, type KeepArchiveScope, KeepArchiveScopeSelect, type KeepArchiveScopeSelectProps, KeepBackup, type KeepBackupProps, KeepBulkActions, type KeepBulkActionsProps, type KeepBulkActionsState, KeepButton, type KeepButtonIcon, type KeepButtonIconProps, type KeepButtonIcons, type KeepButtonLabels, type KeepButtonProps, KeepCollection, type KeepCollectionControlProps, KeepCollectionCreate, type KeepCollectionCreateProps, type KeepCollectionFeature, KeepCollectionFilter, KeepCollectionManager, type KeepCollectionManagerProps, type KeepCollectionOption, type KeepCollectionProps, type KeepCollectionRevealRequest, type KeepCollectionRevealResult, KeepCollectionSelect, type KeepCollectionSlots, type KeepCollectionToolbarContent, type KeepCollectionToolbarGroup, type KeepCollectionToolbarLayout, type KeepCollectionToolbarVariant, type KeepDisplayStatus, KeepEmptyState, type KeepEmptyStateProps, type KeepEmptyStateVariant, KeepFloatingTour, type KeepFloatingTourProps, KeepHighlight, type KeepHighlightProps, type KeepImageProps, KeepInbox, type KeepInboxProps, KeepItemCard, type KeepItemCardActionSlotProps, type KeepItemCardActionsProps, type KeepItemCardBadgeProps, type KeepItemCardContentProps, type KeepItemCardLinkProps, type KeepItemCardMediaProps, type KeepItemCardProps, type KeepItemCardRemoveProps, type KeepItemCardSaveProps, KeepItemCardSkeleton, type KeepItemCardSkeletonProps, type KeepItemCardState, type KeepItemCardTagsProps, type KeepItemCardTitleProps, type KeepItemCardVariant, KeepItemCheckbox, type KeepItemCheckboxProps, KeepItemStatusBadge, type KeepItemStatusBadgeProps, type KeepKit, KeepKitProvider, type KeepKitProviderProps, KeepLastActivity, type KeepLastActivityProps, KeepLayout, type KeepLayoutPreset, type KeepLayoutProps, KeepList, type KeepListProps, type KeepListState, KeepNavigator, KeepNoteEditor, type KeepNoteEditorProps, type KeepNoteEditorState, type KeepPagesRouterLike, KeepPagination, type KeepPaginationProps, type KeepPaginationState, KeepPinButton, type KeepPinButtonProps, type KeepPinButtonState, KeepPruneStaleButton, type KeepPruneStaleButtonProps, KeepQuickEditor, type KeepQuickEditorFeature, type KeepQuickEditorProps, type KeepQuickEditorState, KeepRediscovery, KeepRediscoveryPanel, type KeepRediscoveryPanelProps, type KeepRediscoveryProps, type KeepReorderableItemState, KeepReorderableList, type KeepReorderableListProps, KeepSavePopover, type KeepSavePopoverProps, KeepSaveViewButton, KeepSavedViews, type KeepSavedViewsProps, KeepSearchInput, type KeepSearchInputProps, type KeepSelectionScope, KeepShortcutHint, type KeepShortcutHintProps, KeepSortSelect, type KeepSortSelectProps, type KeepSortValue, KeepStaleNotice, type KeepStaleNoticeProps, KeepStatus, type KeepStatusLabels, type KeepStatusProps, type KeepStatusState, type KeepStatusValue, KeepSyncRecoveryDialog, type KeepSyncRecoveryDialogProps, KeepSyncStatusBanner, type KeepSyncStatusBannerProps, KeepTagEditor, type KeepTagEditorProps, type KeepTagEditorState, KeepTagFilter, type KeepTagFilterProps, type KeepTagFilterState, type KeepThemeDensity, type KeepThemeMode, type KeepThemeName, KeepThemeProvider, type KeepThemeProviderProps, type KeepThemeRadius, type KeepThemeVariables, type KeepToastFeedbackOptions, type KeepToastHandler, KeepTourBar, type KeepTourBarProps, type KeepTourContextValue, type KeepTourPersistenceStatus, type KeepTourPosition, KeepTourProvider, type KeepTourProviderProps, type KeepTourShortcutsOptions, type KeepTourStartOptions, type KeepUiFeedbackEvent, type KeepUiLabelContext, type KeepUiLabelKey, type KeepUiLabelOptions, type KeepUiLabelOptionsMap, type KeepUiLabels, type KeepUiLocale, type KeepUiLocaleLabels, KeepUiProvider, type KeepUiProviderProps, KeepUndo, type KeepUndoProps, type KeepUrlAdapter, KeepWorkspace, type KeepWorkspaceModule, type KeepWorkspacePreset, type KeepWorkspaceProps, type KeepWorkspaceRegion, type KeepWorkspaceSectionGap, type KeepWorkspaceSlots, type KeepWorkspaceState, type KeepWorkspaceSurface, type RenderProp, type UseKeepSavedViewsResult, chainedFunction, composeRefs, createKeepKit, createNextPagesRouterAdapter, createSlot, getKeepLocaleLabels, highlightText, isAllSelected, keepThemeNames, mergeProps, toggleSelectAll, useKeepQuickEditor, useKeepSavedViews, useKeepToastFeedback, useKeepTour, useKeepTourShortcuts, useKeepUiLabels, useKeepUrlSync, useUiLabelVisibility };
|
|
1460
|
+
export { type CreateKeepKitOptions, KeepActiveFiltersSummary, type KeepActiveFiltersSummaryProps, type KeepActiveFiltersSummaryState, type KeepActivityKind, KeepAnnouncements, type KeepAnnouncementsProps, KeepAnnouncer, KeepArchiveButton, type KeepArchiveButtonProps, type KeepArchiveButtonState, type KeepArchiveScope, KeepArchiveScopeSelect, type KeepArchiveScopeSelectProps, KeepBackup, type KeepBackupProps, KeepBulkActions, type KeepBulkActionsProps, type KeepBulkActionsState, KeepButton, type KeepButtonIcon, type KeepButtonIconProps, type KeepButtonIcons, type KeepButtonLabels, type KeepButtonProps, KeepCollection, type KeepCollectionControlProps, KeepCollectionCreate, type KeepCollectionCreateProps, type KeepCollectionFeature, KeepCollectionFilter, KeepCollectionManager, type KeepCollectionManagerProps, type KeepCollectionOption, type KeepCollectionProps, type KeepCollectionRevealRequest, type KeepCollectionRevealResult, KeepCollectionSelect, type KeepCollectionSlots, type KeepCollectionToolbarContent, type KeepCollectionToolbarGroup, type KeepCollectionToolbarLayout, type KeepCollectionToolbarVariant, type KeepDisplayStatus, KeepEmptyState, type KeepEmptyStateProps, type KeepEmptyStateVariant, KeepFallbackRecovery, type KeepFallbackRecoveryProps, KeepFloatingTour, type KeepFloatingTourProps, KeepHighlight, type KeepHighlightProps, type KeepImageProps, KeepInbox, type KeepInboxProps, KeepItemCard, type KeepItemCardActionSlotProps, type KeepItemCardActionsProps, type KeepItemCardBadgeProps, type KeepItemCardContentProps, type KeepItemCardLinkProps, type KeepItemCardLinkRegionProps, type KeepItemCardMediaProps, type KeepItemCardPresentation, type KeepItemCardProps, type KeepItemCardRemoveProps, type KeepItemCardSaveProps, KeepItemCardSkeleton, type KeepItemCardSkeletonProps, type KeepItemCardState, type KeepItemCardTagsProps, type KeepItemCardTitleProps, type KeepItemCardVariant, KeepItemCheckbox, type KeepItemCheckboxProps, type KeepItemSelection, KeepItemStatusBadge, type KeepItemStatusBadgeProps, type KeepKit, KeepKitProvider, type KeepKitProviderProps, KeepLastActivity, type KeepLastActivityProps, KeepLayout, type KeepLayoutPreset, type KeepLayoutProps, KeepList, type KeepListProps, type KeepListSelection, type KeepListState, KeepNavigator, KeepNoteEditor, type KeepNoteEditorProps, type KeepNoteEditorState, type KeepPagesRouterLike, KeepPagination, type KeepPaginationProps, type KeepPaginationState, KeepPinButton, type KeepPinButtonProps, type KeepPinButtonState, KeepPruneStaleButton, type KeepPruneStaleButtonProps, KeepQuickEditor, type KeepQuickEditorFeature, type KeepQuickEditorProps, type KeepQuickEditorState, KeepRediscovery, KeepRediscoveryPanel, type KeepRediscoveryPanelProps, type KeepRediscoveryProps, type KeepReorderableItemState, KeepReorderableList, type KeepReorderableListProps, KeepSavePopover, type KeepSavePopoverProps, KeepSaveViewButton, KeepSavedViews, type KeepSavedViewsProps, KeepSearchInput, type KeepSearchInputProps, type KeepSelectionScope, KeepShortcutHint, type KeepShortcutHintProps, KeepSortSelect, type KeepSortSelectProps, type KeepSortValue, KeepStaleNotice, type KeepStaleNoticeProps, KeepStatus, type KeepStatusLabels, type KeepStatusProps, type KeepStatusState, type KeepStatusValue, KeepSyncRecoveryDialog, type KeepSyncRecoveryDialogProps, KeepSyncStatusBanner, type KeepSyncStatusBannerProps, KeepTagEditor, type KeepTagEditorProps, type KeepTagEditorState, KeepTagFilter, type KeepTagFilterProps, type KeepTagFilterState, type KeepThemeDensity, type KeepThemeMode, type KeepThemeName, KeepThemeProvider, type KeepThemeProviderProps, type KeepThemeRadius, type KeepThemeVariables, type KeepToastFeedbackOptions, type KeepToastHandler, KeepTourBar, type KeepTourBarProps, type KeepTourContextValue, type KeepTourPersistenceStatus, type KeepTourPosition, KeepTourProvider, type KeepTourProviderProps, type KeepTourShortcutsOptions, type KeepTourStartOptions, type KeepUiFeedbackEvent, type KeepUiLabelContext, type KeepUiLabelKey, type KeepUiLabelOptions, type KeepUiLabelOptionsMap, type KeepUiLabels, type KeepUiLocale, type KeepUiLocaleLabels, KeepUiProvider, type KeepUiProviderProps, KeepUndo, type KeepUndoProps, type KeepUrlAdapter, KeepWorkspace, type KeepWorkspaceModule, type KeepWorkspacePreset, type KeepWorkspaceProps, type KeepWorkspaceRegion, type KeepWorkspaceSectionGap, type KeepWorkspaceSlots, type KeepWorkspaceState, type KeepWorkspaceSurface, type RenderProp, type UseKeepSavedViewsResult, chainedFunction, composeRefs, createKeepKit, createNextPagesRouterAdapter, createSlot, getKeepLocaleLabels, highlightText, isAllSelected, keepThemeNames, mergeProps, toggleSelectAll, useKeepQuickEditor, useKeepSavedViews, useKeepToastFeedback, useKeepTour, useKeepTourShortcuts, useKeepUiLabels, useKeepUrlSync, useUiLabelVisibility };
|