split context token and implementation

This commit is contained in:
Mads Rasmussen
2024-06-18 18:41:06 +02:00
parent 3474cfd63d
commit 465c47058b
3 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import { UmbDocumentItemServerDataSource } from './document-item.server.data-source.js';
import { UMB_DOCUMENT_ITEM_STORE_CONTEXT } from './document-item.store.js';
import { UMB_DOCUMENT_ITEM_STORE_CONTEXT } from './document-item.store.context-token.js';
import type { UmbDocumentItemModel } from './types.js';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbItemRepositoryBase } from '@umbraco-cms/backoffice/repository';

View File

@@ -0,0 +1,4 @@
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import type { UmbDocumentItemStore } from './document-item.store.js';
export const UMB_DOCUMENT_ITEM_STORE_CONTEXT = new UmbContextToken<UmbDocumentItemStore>('UmbDocumentItemStore');

View File

@@ -1,7 +1,7 @@
import type { UmbDocumentDetailModel } from '../../types.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';
import { UMB_DOCUMENT_ITEM_STORE_CONTEXT } from './document-item.store.context-token.js';
/**
* @export
@@ -22,5 +22,3 @@ export class UmbDocumentItemStore extends UmbItemStoreBase<UmbDocumentDetailMode
}
export { UmbDocumentItemStore as api };
export const UMB_DOCUMENT_ITEM_STORE_CONTEXT = new UmbContextToken<UmbDocumentItemStore>('UmbDocumentItemStore');