Skip to content

Commit eac967b

Browse files
authored
Merge branch 'main' into v15/feature/validate-specific-cultures
2 parents 277bf75 + 7913ba9 commit eac967b

25 files changed

+49
-33
lines changed

src/packages/core/modal/common/code-editor/code-editor-modal.element.ts renamed to src/packages/code-editor/code-editor-modal/code-editor-modal.element.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
import type { UmbCodeEditorElement } from '../components/code-editor.element.js';
2+
import type { UmbCodeEditorModalData, UmbCodeEditorModalValue } from './code-editor-modal.token.js';
13
import { css, html, ifDefined, customElement, query } from '@umbraco-cms/backoffice/external/lit';
24
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
3-
import type { UmbCodeEditorElement } from '@umbraco-cms/backoffice/code-editor';
4-
import type { UmbCodeEditorModalData, UmbCodeEditorModalValue } from '@umbraco-cms/backoffice/modal';
5-
6-
import '@umbraco-cms/backoffice/code-editor';
75

86
const elementName = 'umb-code-editor-modal';
97

src/packages/core/modal/common/code-editor/code-editor-modal.stories.ts renamed to src/packages/code-editor/code-editor-modal/code-editor-modal.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import '../confirm/confirm-modal.element.js';
22

3+
import type { UmbCodeEditorModalData } from './code-editor-modal.token.js';
34
import type { Meta, Story } from '@storybook/web-components';
45
import { html } from '@umbraco-cms/backoffice/external/lit';
5-
import type { UmbCodeEditorModalData } from '@umbraco-cms/backoffice/modal';
66

77
export default {
88
title: 'API/Modals/Layouts/Code Editor',

src/packages/core/modal/token/code-editor-modal.token.ts renamed to src/packages/code-editor/code-editor-modal/code-editor-modal.token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UmbModalToken } from './modal-token.js';
1+
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
22

33
// TODO => investigate why exporting CodeEditorLanguage in code-editor barrel
44
// causes the schema generation task to fail... For now, language property below
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './code-editor-modal.token.js';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export const manifests: Array<UmbExtensionManifest> = [
2+
{
3+
type: 'modal',
4+
alias: 'Umb.Modal.CodeEditor',
5+
name: 'Code Editor Modal',
6+
element: () => import('./code-editor-modal.element.js'),
7+
},
8+
];

src/packages/code-editor/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export * from './components/index.js';
22
export * from './models/index.js';
3+
export * from './code-editor-modal/index.js';
4+
35
export type { UmbCodeEditorController } from './code-editor.controller.js';
46

57
/**

src/packages/code-editor/manifests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import { manifest as propertyEditorManifest } from './property-editor/manifests.js';
2+
import { manifests as codeEditorModalManifests } from './code-editor-modal/manifests.js';
23

3-
export const manifests: Array<UmbExtensionManifest> = [propertyEditorManifest];
4+
export const manifests: Array<UmbExtensionManifest> = [propertyEditorManifest, ...codeEditorModalManifests];

src/packages/core/modal/common/icon-picker/icon-picker-modal.element.ts renamed to src/packages/core/icon-registry/icon-picker-modal/icon-picker-modal.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import type { UmbIconPickerModalData, UmbIconPickerModalValue } from './icon-picker-modal.token.js';
12
import { css, customElement, html, nothing, query, repeat, state } from '@umbraco-cms/backoffice/external/lit';
23
import { extractUmbColorVariable, umbracoColors } from '@umbraco-cms/backoffice/resources';
34
import { umbFocus } from '@umbraco-cms/backoffice/lit-element';
45
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
56
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
67
import { UMB_ICON_REGISTRY_CONTEXT, type UmbIconDefinition } from '@umbraco-cms/backoffice/icon';
7-
import type { UmbIconPickerModalData, UmbIconPickerModalValue } from '@umbraco-cms/backoffice/modal';
88
import type { UUIColorSwatchesEvent } from '@umbraco-cms/backoffice/external/uui';
99

1010
@customElement('umb-icon-picker-modal')

src/packages/core/modal/common/icon-picker/icon-picker-modal.stories.ts renamed to src/packages/core/icon-registry/icon-picker-modal/icon-picker-modal.stories.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import '../../../components/body-layout/body-layout.element.js';
22
import './icon-picker-modal.element.js';
33

44
import type { UmbIconPickerModalElement } from './icon-picker-modal.element.js';
5+
import type { UmbIconPickerModalValue } from './icon-picker-modal.token.js';
56
import type { Meta, Story } from '@storybook/web-components';
67
import { html } from '@umbraco-cms/backoffice/external/lit';
78

8-
import type { UmbIconPickerModalValue } from '@umbraco-cms/backoffice/modal';
9-
109
export default {
1110
title: 'API/Modals/Layouts/Icon Picker',
1211
component: 'umb-icon-picker-modal',

0 commit comments

Comments
 (0)