align exports with document types
This commit is contained in:
@@ -1,18 +1,8 @@
|
||||
import './components/index.js';
|
||||
|
||||
export type { UmbAllowedMediaTypeModel } from './repository/index.js';
|
||||
export {
|
||||
UmbMediaTypeItemRepository,
|
||||
UMB_MEDIA_TYPE_ITEM_STORE_ALIAS,
|
||||
UMB_MEDIA_TYPE_DETAIL_STORE_ALIAS,
|
||||
UMB_MEDIA_TYPE_DETAIL_STORE_CONTEXT,
|
||||
UmbMediaTypeStructureRepository,
|
||||
} from './repository/index.js';
|
||||
|
||||
export {
|
||||
UMB_MEDIA_TYPE_ROOT_ENTITY_TYPE,
|
||||
UMB_MEDIA_TYPE_ENTITY_TYPE,
|
||||
UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE,
|
||||
} from './entity.js';
|
||||
|
||||
export * from './components/index.js';
|
||||
export * from './workspace/index.js';
|
||||
|
||||
export * from './repository/index.js';
|
||||
export * from './tree/types.js';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export * from './media-type-workspace.context-token.js';
|
||||
@@ -0,0 +1,12 @@
|
||||
import type { UmbMediaTypeWorkspaceContext } from './media-type-workspace.context.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
import type { UmbSaveableWorkspaceContextInterface } from '@umbraco-cms/backoffice/workspace';
|
||||
|
||||
export const UMB_MEDIA_TYPE_WORKSPACE_CONTEXT = new UmbContextToken<
|
||||
UmbSaveableWorkspaceContextInterface,
|
||||
UmbMediaTypeWorkspaceContext
|
||||
>(
|
||||
'UmbWorkspaceContext',
|
||||
undefined,
|
||||
(context): context is UmbMediaTypeWorkspaceContext => context.getEntityType?.() === 'media-type',
|
||||
);
|
||||
Reference in New Issue
Block a user