Skip to content

Commit 334f103

Browse files
committed
lazy load apis
1 parent 9bed757 commit 334f103

13 files changed

+24
-16
lines changed

src/packages/documents/document-blueprints/entity-actions/move-to/repository/document-blueprint-move.repository.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ export class UmbMoveDocumentBlueprintRepository extends UmbRepositoryBase implem
1818
return { error };
1919
}
2020
}
21+
22+
export { UmbMoveDocumentBlueprintRepository as api };
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { UMB_MOVE_DOCUMENT_BLUEPRINT_REPOSITORY_ALIAS } from './constants.js';
2-
import { UmbMoveDocumentBlueprintRepository } from './document-blueprint-move.repository.js';
32
import type { ManifestRepository } from '@umbraco-cms/backoffice/extension-registry';
43

54
const moveRepository: ManifestRepository = {
65
type: 'repository',
76
alias: UMB_MOVE_DOCUMENT_BLUEPRINT_REPOSITORY_ALIAS,
87
name: 'Move Document Blueprint Repository',
9-
api: UmbMoveDocumentBlueprintRepository,
8+
api: () => import('./document-blueprint-move.repository.js'),
109
};
1110

1211
export const manifests = [moveRepository];

src/packages/documents/document-blueprints/repository/detail/document-blueprint-detail.repository.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ export class UmbDocumentBlueprintDetailRepository extends UmbDetailRepositoryBas
99
super(host, UmbDocumentBlueprintServerDataSource, UMB_DOCUMENT_BLUEPRINT_DETAIL_STORE_CONTEXT);
1010
}
1111
}
12+
13+
export { UmbDocumentBlueprintDetailRepository as api };

src/packages/documents/document-blueprints/repository/detail/document-blueprint-detail.store.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export class UmbDocumentBlueprintDetailStore extends UmbDetailStoreBase<UmbDocum
2020
}
2121
}
2222

23+
export { UmbDocumentBlueprintDetailStore as api };
24+
2325
export const UMB_DOCUMENT_BLUEPRINT_DETAIL_STORE_CONTEXT = new UmbContextToken<UmbDocumentBlueprintDetailStore>(
2426
'UmbDocumentBlueprintDetailStore',
2527
);
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { UmbDocumentBlueprintDetailRepository } from './document-blueprint-detail.repository.js';
2-
import { UmbDocumentBlueprintDetailStore } from './document-blueprint-detail.store.js';
31
import type { ManifestRepository, ManifestStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
42

53
export const UMB_DOCUMENT_BLUEPRINT_DETAIL_REPOSITORY_ALIAS = 'Umb.Repository.DocumentBlueprint.Detail';
@@ -8,7 +6,7 @@ const repository: ManifestRepository = {
86
type: 'repository',
97
alias: UMB_DOCUMENT_BLUEPRINT_DETAIL_REPOSITORY_ALIAS,
108
name: 'Document Blueprint Detail Repository',
11-
api: UmbDocumentBlueprintDetailRepository,
9+
api: () => import('./document-blueprint-detail.repository.js'),
1210
};
1311

1412
export const UMB_DOCUMENT_BLUEPRINT_DETAIL_STORE_ALIAS = 'Umb.Store.DocumentBlueprint.Detail';
@@ -17,7 +15,7 @@ const store: ManifestStore = {
1715
type: 'store',
1816
alias: UMB_DOCUMENT_BLUEPRINT_DETAIL_STORE_ALIAS,
1917
name: 'Document Blueprint Detail Store',
20-
api: UmbDocumentBlueprintDetailStore,
18+
api: () => import('./document-blueprint-detail.store.js'),
2119
};
2220

2321
export const manifests: Array<ManifestTypes> = [repository, store];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ export class UmbDocumentBlueprintItemRepository extends UmbItemRepositoryBase<Um
1515
return this.#dataSource.getItemsByDocumentType(unique);
1616
}
1717
}
18+
19+
export { UmbDocumentBlueprintItemRepository as api };

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export class UmbDocumentBlueprintItemStore extends UmbItemStoreBase<UmbDocumentB
2121
}
2222
}
2323

24+
export { UmbDocumentBlueprintItemStore as api };
25+
2426
export const UMB_DOCUMENT_BLUEPRINT_ITEM_STORE_CONTEXT = new UmbContextToken<UmbDocumentBlueprintItemStore>(
2527
'UmbDocumentBlueprintItemStore',
2628
);
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { UmbDocumentBlueprintItemStore } from './document-blueprint-item.store.js';
2-
import { UmbDocumentBlueprintItemRepository } from './document-blueprint-item.repository.js';
31
import type { ManifestRepository, ManifestItemStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
42

53
export const UMB_DOCUMENT_BLUEPRINT_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.DocumentBlueprint.Item';
@@ -9,14 +7,14 @@ const itemRepository: ManifestRepository = {
97
type: 'repository',
108
alias: UMB_DOCUMENT_BLUEPRINT_ITEM_REPOSITORY_ALIAS,
119
name: 'Document Blueprint Item Repository',
12-
api: UmbDocumentBlueprintItemRepository,
10+
api: () => import('./document-blueprint-item.repository.js'),
1311
};
1412

1513
const itemStore: ManifestItemStore = {
1614
type: 'itemStore',
1715
alias: UMB_DOCUMENT_BLUEPRINT_STORE_ALIAS,
1816
name: 'Document Blueprint Item Store',
19-
api: UmbDocumentBlueprintItemStore,
17+
api: () => import('./document-blueprint-item.store.js'),
2018
};
2119

2220
export const manifests: Array<ManifestTypes> = [itemRepository, itemStore];

src/packages/documents/document-blueprints/tree/document-blueprint-tree.repository.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ export class UmbDocumentBlueprintTreeRepository
2929
return { data };
3030
}
3131
}
32+
33+
export { UmbDocumentBlueprintTreeRepository as api };

src/packages/documents/document-blueprints/tree/document-blueprint-tree.store.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export class UmbDocumentBlueprintTreeStore extends UmbUniqueTreeStore {
1919
}
2020
}
2121

22+
export { UmbDocumentBlueprintTreeStore as api };
23+
2224
export const UMB_DOCUMENT_BLUEPRINT_TREE_STORE_CONTEXT = new UmbContextToken<UmbDocumentBlueprintTreeStore>(
2325
'UmbDocumentBlueprintTreeStore',
2426
);

0 commit comments

Comments
 (0)