From a555f849360137ecc020f3417438da38bb8bbd0a Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 8 May 2023 20:50:18 +0200 Subject: [PATCH] register kind --- .../src/backoffice/core/index.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/index.ts b/src/Umbraco.Web.UI.Client/src/backoffice/core/index.ts index 2350ed6611..da5ff50bc9 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/core/index.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/core/index.ts @@ -10,14 +10,29 @@ import { UmbNotificationContext, UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco import { UmbModalContext, UMB_MODAL_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/modal'; import { UmbContextProviderController } from '@umbraco-cms/backoffice/context-api'; import type { UmbEntrypointOnInit } from '@umbraco-cms/backoffice/extensions-api'; +import { ManifestKind, ManifestTypes } from '@umbraco-cms/backoffice/extensions-registry'; import './notification'; -export const manifests = [ +import './components/tree-picker-modal/tree-picker-modal.element'; + +export const manifests: Array = [ ...componentManifests, ...propertyActionManifests, ...propertyEditorManifests, ...modalManifests, + // TODO: where should these live? + { + type: 'kind', + alias: 'Umb.Kind.TreePickerModal', + matchKind: 'treePicker', + matchType: 'modal', + manifest: { + type: 'modal', + kind: 'treePicker', + elementName: 'umb-tree-picker-modal', + }, + }, ]; export const onInit: UmbEntrypointOnInit = (host, extensionRegistry) => {