Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Bundling Media package #2089

Merged
merged 21 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@
"./src/packages/health-check",
"./src/packages/tags",
"./src/packages/templating",
"./src/packages/property-editors"
"./src/packages/property-editors",
"./src/packages/media"
],
"scripts": {
"backoffice:test:e2e": "npx playwright test",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*
import { UmbDashboardRedirectManagementElement } from './dashboard-redirect-management.element.js';
import { expect, fixture, html } from '@open-wc/testing';

Expand All @@ -21,4 +20,3 @@ describe('UmbDashboardRedirectManagement', () => {
});
}
});
*/
1 change: 1 addition & 0 deletions src/packages/media/imaging/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const UMB_IMAGING_REPOSITORY_ALIAS = 'Umb.Repository.Imaging';
2 changes: 2 additions & 0 deletions src/packages/media/imaging/imaging.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ export class UmbImagingRepository extends UmbControllerBase implements UmbApi {
return await this.requestResizedItems(uniques, imagingModel);
}
}

export { UmbImagingRepository as api };
2 changes: 1 addition & 1 deletion src/packages/media/imaging/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { UmbImagingRepository } from './imaging.repository.js';
export { UMB_IMAGING_REPOSITORY_ALIAS } from './manifests.js';
export { UMB_IMAGING_REPOSITORY_ALIAS } from './constants.js';
6 changes: 2 additions & 4 deletions src/packages/media/imaging/manifests.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { UmbImagingRepository } from './imaging.repository.js';
import { UMB_IMAGING_REPOSITORY_ALIAS } from './constants.js';
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';

export const UMB_IMAGING_REPOSITORY_ALIAS = 'Umb.Repository.Imaging';

const repository: ManifestRepository = {
type: 'repository',
alias: UMB_IMAGING_REPOSITORY_ALIAS,
name: 'Imaging Repository',
api: UmbImagingRepository,
api: () => import('./imaging.repository.js'),
};

export const manifests: Array<ManifestTypes> = [repository];
2 changes: 1 addition & 1 deletion src/packages/media/manifests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { manifests as mediaManifests } from './media/manifests.js';
import { manifests as mediaSectionManifests } from './section.manifests.js';
import { manifests as mediaSectionManifests } from './media-section/manifests.js';
import { manifests as mediaTypesManifests } from './media-types/manifests.js';
import { manifests as imagingManifests } from './imaging/manifests.js';
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
Expand Down
1 change: 1 addition & 0 deletions src/packages/media/media-section/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const UMB_MEDIA_SECTION_ALIAS = 'Umb.Section.Media';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UMB_MEDIA_ROOT_ENTITY_TYPE, UMB_MEDIA_MENU_ALIAS } from './media/index.js';
import { UMB_MEDIA_ROOT_ENTITY_TYPE, UMB_MEDIA_MENU_ALIAS } from '../media/index.js';
import type {
ManifestSection,
ManifestSectionSidebarApp,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ export class UmbCreateMediaTypeEntityAction extends UmbEntityActionBase<never> {
await modalContext.onSubmit();
}
}

export { UmbCreateMediaTypeEntityAction as api };
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE,
UMB_MEDIA_TYPE_ROOT_ENTITY_TYPE,
} from '../../entity.js';
import { UmbCreateMediaTypeEntityAction } from './create.action.js';
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';

const entityActions: Array<ManifestTypes> = [
Expand All @@ -13,7 +12,7 @@ const entityActions: Array<ManifestTypes> = [
alias: 'Umb.EntityAction.MediaType.Create',
name: 'Create Media Type Entity Action',
weight: 1200,
api: UmbCreateMediaTypeEntityAction,
api: () => import('./create.action.js'),
forEntityTypes: [UMB_MEDIA_TYPE_ENTITY_TYPE, UMB_MEDIA_TYPE_ROOT_ENTITY_TYPE, UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE],
meta: {
icon: 'icon-add',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { UMB_DUPLICATE_MEDIA_TYPE_REPOSITORY_ALIAS } from './constants.js';
import { UmbDuplicateMediaTypeRepository } from './media-type-duplicate.repository.js';
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';

const duplicateRepository: ManifestRepository = {
type: 'repository',
alias: UMB_DUPLICATE_MEDIA_TYPE_REPOSITORY_ALIAS,
name: 'Duplicate Media Type Repository',
api: UmbDuplicateMediaTypeRepository,
api: () => import('./media-type-duplicate.repository.js'),
};

export const manifests: Array<ManifestTypes> = [duplicateRepository];
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export class UmbDuplicateMediaTypeRepository extends UmbRepositoryBase implement
return { error };
}
}

export { UmbDuplicateMediaTypeRepository as api };
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { UMB_MOVE_MEDIA_TYPE_REPOSITORY_ALIAS } from './constants.js';
import { UmbMoveMediaTypeRepository } from './media-type-move.repository.js';
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';

const moveRepository: ManifestRepository = {
type: 'repository',
alias: UMB_MOVE_MEDIA_TYPE_REPOSITORY_ALIAS,
name: 'Move Media Type Repository',
api: UmbMoveMediaTypeRepository,
api: () => import('./media-type-move.repository.js'),
};

export const manifests: Array<ManifestTypes> = [moveRepository];
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export class UmbMoveMediaTypeRepository extends UmbRepositoryBase implements Umb
return { error };
}
}

export { UmbMoveMediaTypeRepository as api };
2 changes: 2 additions & 0 deletions src/packages/media/media-types/repository/detail/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const UMB_MEDIA_TYPE_DETAIL_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Detail';
export const UMB_MEDIA_TYPE_DETAIL_STORE_ALIAS = 'Umb.Store.MediaType.Detail';
4 changes: 2 additions & 2 deletions src/packages/media/media-types/repository/detail/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { UmbMediaTypeDetailRepository } from './media-type-detail.repository.js';
export { UMB_MEDIA_TYPE_DETAIL_REPOSITORY_ALIAS, UMB_MEDIA_TYPE_DETAIL_STORE_ALIAS } from './manifests.js';
export { UMB_MEDIA_TYPE_DETAIL_STORE_CONTEXT } from './media-type-detail.store.js';
export { UMB_MEDIA_TYPE_DETAIL_REPOSITORY_ALIAS, UMB_MEDIA_TYPE_DETAIL_STORE_ALIAS } from './constants.js';
export { UMB_MEDIA_TYPE_DETAIL_STORE_CONTEXT } from './media-type-detail.store.context-token.js';
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { UMB_MEDIA_TYPE_DETAIL_REPOSITORY_ALIAS, UMB_MEDIA_TYPE_DETAIL_STORE_ALIAS } from './constants.js';
import type { ManifestRepository, ManifestStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';

export const UMB_MEDIA_TYPE_DETAIL_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Detail';
export const UMB_MEDIA_TYPE_DETAIL_STORE_ALIAS = 'Umb.Store.MediaType.Detail';

const detailRepository: ManifestRepository = {
type: 'repository',
alias: UMB_MEDIA_TYPE_DETAIL_REPOSITORY_ALIAS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { UmbMediaTypeDetailModel } from '../../types.js';
import { UmbMediaTypeServerDataSource } from './media-type-detail.server.data-source.js';
import { UMB_MEDIA_TYPE_DETAIL_STORE_CONTEXT } from './media-type-detail.store.js';
import { UMB_MEDIA_TYPE_DETAIL_STORE_CONTEXT } from './media-type-detail.store.context-token.js';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbDetailRepositoryBase } from '@umbraco-cms/backoffice/repository';
export class UmbMediaTypeDetailRepository extends UmbDetailRepositoryBase<UmbMediaTypeDetailModel> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type UmbMediaTypeDetailStore from './media-type-detail.store.js';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';

export const UMB_MEDIA_TYPE_DETAIL_STORE_CONTEXT = new UmbContextToken<UmbMediaTypeDetailStore>(
'UmbMediaTypeDetailStore',
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { UmbMediaTypeDetailModel } from '../../types.js';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import { UMB_MEDIA_TYPE_DETAIL_STORE_CONTEXT } from './media-type-detail.store.context-token.js';
import { UmbDetailStoreBase } from '@umbraco-cms/backoffice/store';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';

Expand All @@ -21,7 +21,3 @@ export class UmbMediaTypeDetailStore extends UmbDetailStoreBase<UmbMediaTypeDeta
}

export default UmbMediaTypeDetailStore;

export const UMB_MEDIA_TYPE_DETAIL_STORE_CONTEXT = new UmbContextToken<UmbMediaTypeDetailStore>(
'UmbMediaTypeDetailStore',
);
2 changes: 2 additions & 0 deletions src/packages/media/media-types/repository/item/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const UMB_MEDIA_TYPE_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Item';
export const UMB_MEDIA_TYPE_ITEM_STORE_ALIAS = 'Umb.Store.MediaType.Item';
4 changes: 2 additions & 2 deletions src/packages/media/media-types/repository/item/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { UmbMediaTypeItemRepository } from './media-type-item.repository.js';
export { UMB_MEDIA_TYPE_ITEM_REPOSITORY_ALIAS, UMB_MEDIA_TYPE_ITEM_STORE_ALIAS } from './manifests.js';
export { UMB_MEDIA_TYPE_ITEM_STORE_CONTEXT } from './media-type-item.store.js';
export { UMB_MEDIA_TYPE_ITEM_REPOSITORY_ALIAS, UMB_MEDIA_TYPE_ITEM_STORE_ALIAS } from './constants.js';
export { UMB_MEDIA_TYPE_ITEM_STORE_CONTEXT } from './media-type-item.store.context-token.js';
export type { UmbMediaTypeItemModel } from './types.js';
4 changes: 1 addition & 3 deletions src/packages/media/media-types/repository/item/manifests.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { UMB_MEDIA_TYPE_ITEM_REPOSITORY_ALIAS, UMB_MEDIA_TYPE_ITEM_STORE_ALIAS } from './constants.js';
import type { ManifestItemStore, ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';

export const UMB_MEDIA_TYPE_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Item';
export const UMB_MEDIA_TYPE_ITEM_STORE_ALIAS = 'Umb.Store.MediaType.Item';

const itemRepository: ManifestRepository = {
type: 'repository',
alias: UMB_MEDIA_TYPE_ITEM_REPOSITORY_ALIAS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { UmbMediaTypeItemModel } from './types.js';
import { UmbMediaTypeItemServerDataSource } from './media-type-item.server.data-source.js';
import { UMB_MEDIA_TYPE_ITEM_STORE_CONTEXT } from './media-type-item.store.js';
import { UMB_MEDIA_TYPE_ITEM_STORE_CONTEXT } from './media-type-item.store.context-token.js';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbItemRepositoryBase } from '@umbraco-cms/backoffice/repository';

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import type UmbMediaTypeItemStore from './media-type-item.store.js';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';

export const UMB_MEDIA_TYPE_ITEM_STORE_CONTEXT = new UmbContextToken<UmbMediaTypeItemStore>('UmbMediaTypeItemStore');
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UMB_MEDIA_TYPE_ITEM_STORE_CONTEXT } from './media-type-item.store.context-token.js';
import type { UmbMediaTypeItemModel } from './index.js';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbItemStoreBase } from '@umbraco-cms/backoffice/store';

Expand All @@ -22,5 +22,3 @@ export class UmbMediaTypeItemStore extends UmbItemStoreBase<UmbMediaTypeItemMode
}

export default UmbMediaTypeItemStore;

export const UMB_MEDIA_TYPE_ITEM_STORE_CONTEXT = new UmbContextToken<UmbMediaTypeItemStore>('UmbMediaTypeItemStore');
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const UMB_MEDIA_TYPE_STRUCTURE_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Structure';
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { UmbMediaTypeStructureRepository } from './media-type-structure.repository.js';
export { UMB_MEDIA_TYPE_STRUCTURE_REPOSITORY_ALIAS } from './manifests.js';
export { UMB_MEDIA_TYPE_STRUCTURE_REPOSITORY_ALIAS } from './constants.js';
export * from './types.js';
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { UMB_MEDIA_TYPE_STRUCTURE_REPOSITORY_ALIAS } from './constants.js';
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';

export const UMB_MEDIA_TYPE_STRUCTURE_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Structure';

const structureRepository: ManifestRepository = {
type: 'repository',
alias: UMB_MEDIA_TYPE_STRUCTURE_REPOSITORY_ALIAS,
Expand Down
3 changes: 3 additions & 0 deletions src/packages/media/media-types/tree/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const UMB_MEDIA_TYPE_TREE_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Tree';
export const UMB_MEDIA_TYPE_TREE_STORE_ALIAS = 'Umb.Store.MediaType.Tree';
export const UMB_MEDIA_TYPE_TREE_ALIAS = 'Umb.Tree.MediaType';
1 change: 1 addition & 0 deletions src/packages/media/media-types/tree/folder/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Folder';
2 changes: 1 addition & 1 deletion src/packages/media/media-types/tree/folder/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { UmbMediaTypeFolderRepository } from './media-type-folder.repository.js';
export { UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS } from './manifests.js';
export { UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS } from './constants.js';
3 changes: 1 addition & 2 deletions src/packages/media/media-types/tree/folder/manifests.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE } from '../../entity.js';
import { UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS } from './constants.js';
import type {
ManifestEntityAction,
ManifestRepository,
ManifestTypes,
} from '@umbraco-cms/backoffice/extension-registry';

export const UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Folder';

const folderRepository: ManifestRepository = {
type: 'repository',
alias: UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS,
Expand Down
4 changes: 2 additions & 2 deletions src/packages/media/media-types/tree/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ export {
UMB_MEDIA_TYPE_TREE_ALIAS,
UMB_MEDIA_TYPE_TREE_STORE_ALIAS,
UMB_MEDIA_TYPE_TREE_REPOSITORY_ALIAS,
} from './manifests.js';
} from './constants.js';
export * from './folder/index.js';
export { UmbMediaTypeTreeRepository } from './media-type-tree.repository.js';
export { UMB_MEDIA_TYPE_TREE_STORE_CONTEXT } from './media-type-tree.store.js';
export { UMB_MEDIA_TYPE_TREE_STORE_CONTEXT } from './media-type-tree.store.context-token.js';
export { UMB_MEDIA_TYPE_PICKER_MODAL } from './media-type-picker-modal.token.js';

export type { UmbMediaTypeTreeItemModel, UmbMediaTypeTreeRootModel } from './types.js';
9 changes: 5 additions & 4 deletions src/packages/media/media-types/tree/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import {
UMB_MEDIA_TYPE_ROOT_ENTITY_TYPE,
UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE,
} from '../entity.js';
import {
UMB_MEDIA_TYPE_TREE_ALIAS,
UMB_MEDIA_TYPE_TREE_REPOSITORY_ALIAS,
UMB_MEDIA_TYPE_TREE_STORE_ALIAS,
} from './constants.js';
import { manifests as folderManifests } from './folder/manifests.js';
import { manifests as reloadTreeItemChildrenManifest } from './reload-tree-item-children/manifests.js';
import type {
Expand All @@ -13,10 +18,6 @@ import type {
ManifestTypes,
} from '@umbraco-cms/backoffice/extension-registry';

export const UMB_MEDIA_TYPE_TREE_REPOSITORY_ALIAS = 'Umb.Repository.MediaType.Tree';
export const UMB_MEDIA_TYPE_TREE_STORE_ALIAS = 'Umb.Store.MediaType.Tree';
export const UMB_MEDIA_TYPE_TREE_ALIAS = 'Umb.Tree.MediaType';

const treeRepository: ManifestRepository = {
type: 'repository',
alias: UMB_MEDIA_TYPE_TREE_REPOSITORY_ALIAS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { UMB_MEDIA_TYPE_ROOT_ENTITY_TYPE } from '../entity.js';
import { UmbMediaTypeTreeServerDataSource } from './media-type-tree.server.data-source.js';
import { UMB_MEDIA_TYPE_TREE_STORE_CONTEXT } from './media-type-tree.store.js';
import { UMB_MEDIA_TYPE_TREE_STORE_CONTEXT } from './media-type-tree.store.context-token.js';
import type { UmbMediaTypeTreeItemModel, UmbMediaTypeTreeRootModel } from './types.js';
import { UmbTreeRepositoryBase } from '@umbraco-cms/backoffice/tree';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import type UmbMediaTypeTreeStore from './media-type-tree.store.js';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';

export const UMB_MEDIA_TYPE_TREE_STORE_CONTEXT = new UmbContextToken<UmbMediaTypeTreeStore>('UmbMediaTypeTreeStore');
4 changes: 1 addition & 3 deletions src/packages/media/media-types/tree/media-type-tree.store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import { UMB_MEDIA_TYPE_TREE_STORE_CONTEXT } from './media-type-tree.store.context-token.js';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbUniqueTreeStore } from '@umbraco-cms/backoffice/tree';

Expand All @@ -20,5 +20,3 @@ export class UmbMediaTypeTreeStore extends UmbUniqueTreeStore {
}

export default UmbMediaTypeTreeStore;

export const UMB_MEDIA_TYPE_TREE_STORE_CONTEXT = new UmbContextToken<UmbMediaTypeTreeStore>('UmbMediaTypeTreeStore');
1 change: 1 addition & 0 deletions src/packages/media/media-types/workspace/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const UMB_MEDIA_TYPE_WORKSPACE_ALIAS = 'Umb.Workspace.MediaType';
3 changes: 1 addition & 2 deletions src/packages/media/media-types/workspace/manifests.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { UMB_MEDIA_TYPE_WORKSPACE_ALIAS } from './constants.js';
import type {
ManifestWorkspaces,
ManifestWorkspaceActions,
Expand All @@ -7,8 +8,6 @@ import type {

import { UmbSubmitWorkspaceAction } from '@umbraco-cms/backoffice/workspace';

export const UMB_MEDIA_TYPE_WORKSPACE_ALIAS = 'Umb.Workspace.MediaType';

const workspace: ManifestWorkspaces = {
type: 'workspace',
kind: 'routable',
Expand Down
3 changes: 1 addition & 2 deletions src/packages/media/media/collection/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import { UMB_MEDIA_COLLECTION_REPOSITORY_ALIAS } from './repository/index.js';
import { manifests as collectionActionManifests } from './action/manifests.js';
import { manifests as collectionRepositoryManifests } from './repository/manifests.js';
import { manifests as collectionViewManifests } from './views/manifests.js';
import { UmbMediaCollectionContext } from './media-collection.context.js';
import { UMB_MEDIA_COLLECTION_ALIAS } from './index.js';
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';

const collectionManifest: ManifestTypes = {
type: 'collection',
alias: UMB_MEDIA_COLLECTION_ALIAS,
name: 'Media Collection',
api: UmbMediaCollectionContext,
api: () => import('./media-collection.context.js'),
element: () => import('./media-collection.element.js'),
meta: {
repositoryAlias: UMB_MEDIA_COLLECTION_REPOSITORY_ALIAS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ export class UmbMediaCollectionContext extends UmbDefaultCollectionContext<
});
}
}

export { UmbMediaCollectionContext as api };
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export class UmbCreateMediaEntityAction extends UmbEntityActionBase<never> {
await modalContext.onSubmit();
}
}

export { UmbCreateMediaEntityAction as api };
Loading
Loading