split context token and implementation
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user