import type { ManifestElement, ManifestWithDynamicConditions } from '../../../../libs/extension-api/index.js'; export interface ManifestCollectionView extends ManifestElement, ManifestWithDynamicConditions { type: 'collectionView'; meta: MetaCollectionView; } export interface MetaCollectionView { /** * The friendly name of the collection view */ label: string; /** * An icon to represent the collection view * @examples [ * "icon-box", * "icon-grid" * ] */ icon: string; /** * The URL pathname for this collection view that can be deep linked to by sharing the url */ pathName: string; } /** * Condition for when this collection view should be available */ export interface UmbConditionsCollectionView { /** * Type of entity this collection view should be available for * @examples ["media"] */ entityType: string; } /** * @deprecated Use {@link UmbConditionsCollectionView} instead. This will be removed in Umbraco 18. */ export interface ConditionsCollectionView extends UmbConditionsCollectionView { } declare global { interface UmbExtensionManifestMap { umbCollectionView: ManifestCollectionView; } }