Skip to content

Commit

Permalink
clean up common tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Sep 23, 2024
1 parent aeb0430 commit 0b00de1
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/packages/core/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { manifests as extensionManifests } from './extension-registry/manifests.
import { manifests as iconRegistryManifests } from './icon-registry/manifests.js';
import { manifests as localizationManifests } from './localization/manifests.js';
import { manifests as menuManifests } from './menu/manifests.js';
import { manifests as modalManifests } from './modal/common/manifests.js';
import { manifests as modalManifests } from './modal/manifests.js';
import { manifests as pickerManifests } from './picker/manifests.js';
import { manifests as propertyActionManifests } from './property-action/manifests.js';
import { manifests as propertyManifests } from './property/manifests.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UMB_CONFIRM_MODAL, type UmbConfirmModalData } from '../../token/confirm-modal.token.js';
import { UMB_MODAL_MANAGER_CONTEXT } from '../../context/modal-manager.context.js';
import { UMB_MODAL_MANAGER_CONTEXT } from '../../context/index.js';
import { UMB_CONFIRM_MODAL, type UmbConfirmModalData } from './confirm-modal.token.js';
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UmbModalToken } from './modal-token.js';
import { UmbModalToken } from '../../token/index.js';
import type { TemplateResult } from '@umbraco-cms/backoffice/external/lit';

export interface UmbConfirmModalData {
Expand Down
2 changes: 2 additions & 0 deletions src/packages/core/modal/common/confirm/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './confirm-modal.token.js';
export * from './confirm-modal.controller.js';
8 changes: 8 additions & 0 deletions src/packages/core/modal/common/confirm/manifests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const manifests: Array<UmbExtensionManifest> = [
{
type: 'modal',
alias: 'Umb.Modal.Confirm',
name: 'Confirm Modal',
element: () => import('./confirm-modal.element.js'),
},
];
2 changes: 2 additions & 0 deletions src/packages/core/modal/common/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './embedded-media/index.js';
export * from './confirm/index.js';
export * from './item-picker/index.js';
1 change: 1 addition & 0 deletions src/packages/core/modal/common/item-picker/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './item-picker-modal.token.js';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UmbModalToken } from './modal-token.js';
import { UmbModalToken } from '../../token/index.js';

export type UmbItemPickerModalData = {
headline: string;
Expand Down
8 changes: 8 additions & 0 deletions src/packages/core/modal/common/item-picker/manifests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const manifests: Array<UmbExtensionManifest> = [
{
type: 'modal',
alias: 'Umb.Modal.ItemPicker',
name: 'Item Picker Modal',
element: () => import('./item-picker-modal.element.js'),
},
];
17 changes: 5 additions & 12 deletions src/packages/core/modal/common/manifests.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
import { manifests as confirmManifests } from './confirm/manifests.js';
import { manifests as itemPickerManifests } from './item-picker/manifests.js';

export const manifests: Array<UmbExtensionManifest> = [
{
type: 'modal',
alias: 'Umb.Modal.Confirm',
name: 'Confirm Modal',
element: () => import('./confirm/confirm-modal.element.js'),
},
{
type: 'modal',
alias: 'Umb.Modal.EmbeddedMedia',
name: 'Embedded Media Modal',
element: () => import('./embedded-media/embedded-media-modal.element.js'),
},
{
type: 'modal',
alias: 'Umb.Modal.ItemPicker',
name: 'Item Picker Modal',
element: () => import('./item-picker/item-picker-modal.element.js'),
},
...confirmManifests,
...itemPickerManifests,
];
2 changes: 1 addition & 1 deletion src/packages/core/modal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export * from './token/index.js';
export * from './types.js';
export * from './component/modal-base.element.js';
export * from './component/modal.element.js';
export * from './common/confirm/confirm-modal.controller.js';
export * from './common/index.js';
3 changes: 3 additions & 0 deletions src/packages/core/modal/manifests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { manifests as commonManifests } from './common/manifests.js';

export const manifests: Array<UmbExtensionManifest> = [...commonManifests];
2 changes: 0 additions & 2 deletions src/packages/core/modal/token/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export * from './change-password-modal.token.js';
export * from './confirm-modal.token.js';
export * from './embedded-media-modal.token.js';
export * from './item-picker-modal.token.js';
export * from './modal-token.js';
export * from './property-editor-ui-picker-modal.token.js';

0 comments on commit 0b00de1

Please sign in to comment.