temp solution: move manifest viewer files to the blocks package

This commit is contained in:
Mads Rasmussen
2024-08-07 12:51:25 +02:00
parent a0c48c895c
commit 0c1f1efb4a
7 changed files with 4 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import { manifests as blockGridManifests } from './block-grid/manifests.js';
import { manifests as blockListManifests } from './block-list/manifests.js';
import { manifests as blockRteManifests } from './block-rte/manifests.js';
import { manifests as blockTypeManifests } from './block-type/manifests.js';
import { manifest as modalManifest } from './modals/manifest-viewer/manifest.js';
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
// TODO: Remove test custom view, or transfer to test or similar?
//import { manifest } from './custom-view/manifest.js';
@@ -14,4 +15,5 @@ export const manifests: Array<ManifestTypes> = [
...blockListManifests,
...blockGridManifests,
...blockRteManifests,
modalManifest,
];

View File

@@ -5,6 +5,8 @@ export interface UmbManifestViewerModalData extends ManifestBase {}
export type UmbManifestViewerModalValue = undefined;
/* TODO: This is a temporary location for the manifest viewer files.They are located here because of build issues.
Please don't export this token from the block package. [MR] */
export const UMB_MANIFEST_VIEWER_MODAL = new UmbModalToken<UmbManifestViewerModalData, UmbManifestViewerModalValue>(
'Umb.Modal.ManifestViewer',
{

View File

@@ -1,6 +1,5 @@
export * from './conditions/index.js';
export * from './initializers/index.js';
export * from './modals/manifest-viewer/index.js';
export * from './registry.js';
export * from './utils/index.js';
export type * from './interfaces/index.js';

View File

@@ -3,7 +3,6 @@ import { manifests as menuItemManifests } from './menu-item/manifests.js';
import { manifests as workspaceManifests } from './workspace/manifests.js';
import { manifests as collectionManifests } from './collection/manifests.js';
import { manifests as entityActionManifests } from './entity-actions/manifests.js';
import { manifest as modalManifest } from './modals/manifest-viewer/manifest.js';
import type { ManifestTypes } from './models/index.js';
export const manifests: Array<ManifestTypes> = [
@@ -12,5 +11,4 @@ export const manifests: Array<ManifestTypes> = [
...workspaceManifests,
...collectionManifests,
...entityActionManifests,
modalManifest,
];