Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
56 lines
2.9 KiB
Plaintext
56 lines
2.9 KiB
Plaintext
import type { ServerProps } from '../../config/types.js';
|
|
import type { FolderBreadcrumb, FolderOrDocument, FolderSortKeys } from '../../folders/types.js';
|
|
import type { SanitizedCollectionConfig } from '../../index.js';
|
|
export type FolderListViewSlots = {
|
|
AfterFolderList?: React.ReactNode;
|
|
AfterFolderListTable?: React.ReactNode;
|
|
BeforeFolderList?: React.ReactNode;
|
|
BeforeFolderListTable?: React.ReactNode;
|
|
Description?: React.ReactNode;
|
|
listMenuItems?: React.ReactNode[];
|
|
};
|
|
export type FolderListViewServerPropsOnly = {
|
|
collectionConfig: SanitizedCollectionConfig;
|
|
documents: FolderOrDocument[];
|
|
subfolders: FolderOrDocument[];
|
|
} & ServerProps;
|
|
export type FolderListViewServerProps = FolderListViewClientProps & FolderListViewServerPropsOnly;
|
|
export type FolderListViewClientProps = {
|
|
activeCollectionFolderSlugs?: SanitizedCollectionConfig['slug'][];
|
|
allCollectionFolderSlugs: SanitizedCollectionConfig['slug'][];
|
|
allowCreateCollectionSlugs: SanitizedCollectionConfig['slug'][];
|
|
baseFolderPath: `/${string}`;
|
|
beforeActions?: React.ReactNode[];
|
|
breadcrumbs: FolderBreadcrumb[];
|
|
collectionSlug?: SanitizedCollectionConfig['slug'];
|
|
disableBulkDelete?: boolean;
|
|
disableBulkEdit?: boolean;
|
|
documents: FolderOrDocument[];
|
|
enableRowSelections?: boolean;
|
|
folderAssignedCollections?: SanitizedCollectionConfig['slug'][];
|
|
folderFieldName: string;
|
|
folderID: null | number | string;
|
|
FolderResultsComponent: React.ReactNode;
|
|
search?: string;
|
|
sort?: FolderSortKeys;
|
|
subfolders: FolderOrDocument[];
|
|
viewPreference: 'grid' | 'list';
|
|
} & FolderListViewSlots;
|
|
export type FolderListViewSlotSharedClientProps = {
|
|
collectionSlug: SanitizedCollectionConfig['slug'];
|
|
hasCreatePermission: boolean;
|
|
newDocumentURL: string;
|
|
};
|
|
export type BeforeFolderListClientProps = FolderListViewSlotSharedClientProps;
|
|
export type BeforeFolderListServerPropsOnly = {} & FolderListViewServerPropsOnly;
|
|
export type BeforeFolderListServerProps = BeforeFolderListClientProps & BeforeFolderListServerPropsOnly;
|
|
export type BeforeFolderListTableClientProps = FolderListViewSlotSharedClientProps;
|
|
export type BeforeFolderListTableServerPropsOnly = {} & FolderListViewServerPropsOnly;
|
|
export type BeforeFolderListTableServerProps = BeforeFolderListTableClientProps & BeforeFolderListTableServerPropsOnly;
|
|
export type AfterFolderListClientProps = FolderListViewSlotSharedClientProps;
|
|
export type AfterFolderListServerPropsOnly = {} & FolderListViewServerPropsOnly;
|
|
export type AfterFolderListServerProps = AfterFolderListClientProps & AfterFolderListServerPropsOnly;
|
|
export type AfterFolderListTableClientProps = FolderListViewSlotSharedClientProps;
|
|
export type AfterFolderListTableServerPropsOnly = {} & FolderListViewServerPropsOnly;
|
|
export type AfterFolderListTableServerProps = AfterFolderListTableClientProps & AfterFolderListTableServerPropsOnly;
|
|
//# sourceMappingURL=folderList.d.ts.map |