Skip to content

Commit 7878260

Browse files
Merge branch 'v15/dev' into v15/emm-tree
2 parents 1693261 + 1023eb6 commit 7878260

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import type { ManifestTypes } from '../models/index.js';
2-
import { manifest as multipleAppLanguagesConditionManifest } from './multiple-app-languages.condition.js';
32
import { manifest as sectionAliasConditionManifest } from './section-alias.condition.js';
43
import { manifest as switchConditionManifest } from './switch.condition.js';
54

6-
export const manifests: Array<ManifestTypes> = [
7-
multipleAppLanguagesConditionManifest,
8-
sectionAliasConditionManifest,
9-
switchConditionManifest,
10-
];
5+
export const manifests: Array<ManifestTypes> = [sectionAliasConditionManifest, switchConditionManifest];

src/packages/core/extension-registry/conditions/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ import type { CollectionAliasConditionConfig } from '../../collection/collection
22
import type { CollectionBulkActionPermissionConditionConfig } from '../../collection/collection-bulk-action-permission.manifest.js';
33
import type { SectionAliasConditionConfig } from './section-alias.condition.js';
44
import type { SwitchConditionConfig } from './switch.condition.js';
5-
import type { UmbMultipleAppLanguageConditionConfig } from './multiple-app-languages.condition.js';
65
import type { UmbConditionConfigBase } from '@umbraco-cms/backoffice/extension-api';
76

87
export type ConditionTypes =
98
| CollectionAliasConditionConfig
109
| CollectionBulkActionPermissionConditionConfig
1110
| SectionAliasConditionConfig
1211
| SwitchConditionConfig
13-
| UmbMultipleAppLanguageConditionConfig
1412
| UmbConditionConfigBase;
1513

1614
type UnionOfProperties<T> = T extends object ? T[keyof T] : never;

src/packages/core/extension-registry/conditions/multiple-app-languages.condition.ts renamed to src/packages/language/conditions/multiple-app-languages.condition.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import { UmbConditionBase } from './condition-base.controller.js';
1+
import type { UmbMultipleAppLanguageConditionConfig } from './types.js';
22
import { UMB_APP_LANGUAGE_CONTEXT } from '@umbraco-cms/backoffice/language';
33
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
44
import type {
55
ManifestCondition,
6-
UmbConditionConfigBase,
76
UmbConditionControllerArguments,
87
UmbExtensionCondition,
98
} from '@umbraco-cms/backoffice/extension-api';
10-
11-
export type UmbMultipleAppLanguageConditionConfig = UmbConditionConfigBase;
9+
import { UmbConditionBase } from '@umbraco-cms/backoffice/extension-registry';
1210

1311
export class UmbMultipleAppLanguageCondition
1412
extends UmbConditionBase<UmbMultipleAppLanguageConditionConfig>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type { UmbConditionConfigBase } from '@umbraco-cms/backoffice/extension-api';
2+
3+
export type UmbMultipleAppLanguageConditionConfig = UmbConditionConfigBase;

src/packages/language/manifests.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { manifests as appLanguageSelect } from './app-language-select/manifests.
66
import { manifests as modalManifests } from './modals/manifests.js';
77
import { manifests as collectionManifests } from './collection/manifests.js';
88
import { manifests as globalContextManifests } from './global-contexts/manifests.js';
9+
import { manifest as conditionsManifest } from './conditions/multiple-app-languages.condition.js';
910
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
1011

1112
export const manifests: Array<ManifestTypes> = [
@@ -17,6 +18,7 @@ export const manifests: Array<ManifestTypes> = [
1718
...modalManifests,
1819
...collectionManifests,
1920
...globalContextManifests,
21+
conditionsManifest,
2022
{
2123
type: 'workspaceContext',
2224
name: 'Document Language Access Workspace Context',

src/packages/language/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { UmbLanguageEntityType } from './entity.js';
2+
export type * from './conditions/types.js';
23

34
export interface UmbLanguageDetailModel {
45
entityType: UmbLanguageEntityType;

0 commit comments

Comments
 (0)