Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension Manifest Map: Picker Search Result Item #2366

Merged
merged 5 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/packages/core/dashboard/dashboard.extension.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UmbDashboardElement } from '../extension-registry/interfaces/index.js';
import type { UmbDashboardElement } from './dashboard-element.interface.js';
import type { ManifestElement, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';

export interface ManifestDashboard
Expand Down
9 changes: 5 additions & 4 deletions src/packages/core/extension-registry/extensions/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
export type * from './global-context.extension.js';
export type * from './header-app.extension.js';
export type * from './repository.extension.js';
export type * from './app-entry-point.extension.js';
export type * from './entity-action.extension.js';
export type * from './backoffice-entry-point.extension.js';
export type * from './entity-action.extension.js';
export type * from './entity-bulk-action.extension.js';
export type * from './entity-user-permission.extension.js';
export type * from './entry-point.extension.js';
export type * from './global-context.extension.js';
export type * from './header-app.extension.js';
export type * from './menu-item-element.interface.js';
export type * from './menu-item.extension.js';
export type * from './menu.extension.js';
export type * from './preview-app.extension.js';
export type * from './repository.extension.js';
export type * from './store.extension.js';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ManifestMenuItem } from '../models/index.js';
import type { ManifestMenuItem } from './menu-item.extension.js';

export interface UmbMenuItemElement extends HTMLElement {
manifest?: ManifestMenuItem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UmbMenuItemElement } from '../interfaces/menu-item-element.interface.js';
import type { UmbMenuItemElement } from './menu-item-element.interface.js';
import type { ManifestWithDynamicConditions, ManifestElement } from '@umbraco-cms/backoffice/extension-api';

export interface ManifestMenuItem
Expand Down
2 changes: 0 additions & 2 deletions src/packages/core/extension-registry/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
export * from '../../dashboard/dashboard-element.interface.js';
export * from './external-login-provider-element.interface.js';
export * from './file-upload-preview.interface.js';
export * from './menu-item-element.interface.js';
17 changes: 0 additions & 17 deletions src/packages/core/extension-registry/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,18 @@ import type { ManifestUserProfileApp } from './user-profile-app.model.js';
import type { ManifestGranularUserPermission } from './user-granular-permission.model.js';
import type { ManifestMfaLoginProvider } from './mfa-login-provider.model.js';
import type { ManifestMonacoMarkdownEditorAction } from './monaco-markdown-editor-action.model.js';
import type { ManifestPickerSearchResultItem } from './picker-search-result-item.model.js';
import type { ManifestBase, ManifestBundle, ManifestCondition } from '@umbraco-cms/backoffice/extension-api';

export type * from '../extensions/app-entry-point.extension.js';
export type * from './auth-provider.model.js';
export type * from '../extensions/backoffice-entry-point.extension.js';
export type * from './current-user-action.model.js';
export type * from './dynamic-root.model.js';
export type * from '../extensions/entity-action.extension.js';
export type * from '../extensions/entity-bulk-action.extension.js';
export type * from '../extensions/entity-user-permission.extension.js';
export type * from '../extensions/entry-point.extension.js';
export type * from './file-upload-preview.model.js';
export type * from './external-login-provider.model.js';
export type * from './health-check.model.js';
export type * from '../extensions/menu-item.extension.js';
export type * from '../extensions/menu.extension.js';
export type * from './mfa-login-provider.model.js';
export type * from './monaco-markdown-editor-action.model.js';
export type * from './picker-search-result-item.model.js';
export type * from '../extensions/preview-app.extension.js';
export type * from '../extensions/store.extension.js';
export type * from './mfa-login-provider.model.js';
export type * from './monaco-markdown-editor-action.model.js';
export type * from './picker-search-result-item.model.js';
export type * from './tinymce-plugin.model.js';
export type * from './ufm-component.model.js';
export type * from './ufm-filter.model.js';
Expand All @@ -56,10 +43,6 @@ export type ManifestTypes =
| ManifestHealthCheck
| ManifestMfaLoginProvider
| ManifestMonacoMarkdownEditorAction
| ManifestPickerSearchResultItem
| ManifestMfaLoginProvider
| ManifestMonacoMarkdownEditorAction
| ManifestPickerSearchResultItem
| ManifestTinyMcePlugin
| ManifestUfmComponent
| ManifestUfmFilter
Expand Down
3 changes: 2 additions & 1 deletion src/packages/core/picker/search/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './manager/index.js';
export * from './picker-search-result.element.js';
export * from './picker-search-field.element.js';
export * from './picker-search-result.element.js';
export * from './result-item/index.js';
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { UMB_PICKER_CONTEXT } from '../picker.context.token.js';
import type { UmbPickerContext } from '../picker.context.js';
import type { ManifestPickerSearchResultItem } from './result-item/picker-search-result-item.extension.js';
import { customElement, html, nothing, repeat, state } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import type { UmbSearchRequestArgs } from '@umbraco-cms/backoffice/search';
import type { UmbEntityModel } from '@umbraco-cms/backoffice/entity';
import type { ManifestPickerSearchResultItem } from '@umbraco-cms/backoffice/extension-registry';

const elementName = 'umb-picker-search-result';
@customElement(elementName)
Expand Down
1 change: 1 addition & 0 deletions src/packages/core/picker/search/result-item/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './picker-search-result-item.extension.js';
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ export interface ManifestPickerSearchResultItem extends ManifestElementAndApi {
type: 'pickerSearchResultItem';
forEntityTypes: Array<string>;
}

declare global {
interface UmbExtensionManifestMap {
umbPickerSearchResultItem: ManifestPickerSearchResultItem;
}
}
Loading