Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 6ce529c

Browse files
committed
split context token and implementation
1 parent 267faeb commit 6ce529c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/packages/documents/documents/repository/item/document-item.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { UmbDocumentItemServerDataSource } from './document-item.server.data-source.js';
2-
import { UMB_DOCUMENT_ITEM_STORE_CONTEXT } from './document-item.store.js';
2+
import { UMB_DOCUMENT_ITEM_STORE_CONTEXT } from './document-item.store.context-token.js';
33
import type { UmbDocumentItemModel } from './types.js';
44
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
55
import { UmbItemRepositoryBase } from '@umbraco-cms/backoffice/repository';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
2+
import type { UmbDocumentItemStore } from './document-item.store.js';
3+
4+
export const UMB_DOCUMENT_ITEM_STORE_CONTEXT = new UmbContextToken<UmbDocumentItemStore>('UmbDocumentItemStore');

src/packages/documents/documents/repository/item/document-item.store.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { UmbDocumentDetailModel } from '../../types.js';
2-
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
32
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
43
import { UmbItemStoreBase } from '@umbraco-cms/backoffice/store';
4+
import { UMB_DOCUMENT_ITEM_STORE_CONTEXT } from './document-item.store.context-token.js';
55

66
/**
77
* @export
@@ -22,5 +22,3 @@ export class UmbDocumentItemStore extends UmbItemStoreBase<UmbDocumentDetailMode
2222
}
2323

2424
export { UmbDocumentItemStore as api };
25-
26-
export const UMB_DOCUMENT_ITEM_STORE_CONTEXT = new UmbContextToken<UmbDocumentItemStore>('UmbDocumentItemStore');

0 commit comments

Comments
 (0)