Skip to content

Commit 0828945

Browse files
committed
move current user action
1 parent 79c764d commit 0828945

File tree

8 files changed

+16
-13
lines changed

8 files changed

+16
-13
lines changed

src/packages/core/extension-registry/models/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ManifestAuthProvider } from './auth-provider.model.js';
2-
import type { ManifestCurrentUserAction, ManifestCurrentUserActionDefaultKind } from './current-user-action.model.js';
32
import type { ManifestDynamicRootOrigin, ManifestDynamicRootQueryStep } from './dynamic-root.model.js';
43
import type { ManifestFileUploadPreview } from './file-upload-preview.model.js';
54
import type { ManifestExternalLoginProvider } from './external-login-provider.model.js';
@@ -10,7 +9,6 @@ import type { ManifestMfaLoginProvider } from './mfa-login-provider.model.js';
109
import type { ManifestBase, ManifestBundle, ManifestCondition } from '@umbraco-cms/backoffice/extension-api';
1110

1211
export type * from './auth-provider.model.js';
13-
export type * from './current-user-action.model.js';
1412
export type * from './dynamic-root.model.js';
1513
export type * from './file-upload-preview.model.js';
1614
export type * from './external-login-provider.model.js';
@@ -23,8 +21,6 @@ export type ManifestTypes =
2321
| ManifestAuthProvider
2422
| ManifestBundle<ManifestTypes>
2523
| ManifestCondition
26-
| ManifestCurrentUserAction
27-
| ManifestCurrentUserActionDefaultKind
2824
| ManifestDynamicRootOrigin
2925
| ManifestDynamicRootQueryStep
3026
| ManifestFileUploadPreview

src/packages/user/current-user/action/current-user-app-button.element.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
2-
import { html, customElement, ifDefined, state, property } from '@umbraco-cms/backoffice/external/lit';
3-
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
41
import type {
52
ManifestCurrentUserActionDefaultKind,
63
MetaCurrentUserActionDefaultKind,
74
UmbCurrentUserAction,
8-
} from '@umbraco-cms/backoffice/extension-registry';
5+
} from '../current-user-action.extension.js';
6+
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
7+
import { html, customElement, ifDefined, state, property } from '@umbraco-cms/backoffice/external/lit';
8+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
99
import { UmbActionExecutedEvent } from '@umbraco-cms/backoffice/event';
1010

1111
@customElement('umb-current-user-app-button')

src/packages/core/extension-registry/models/current-user-action.model.ts renamed to src/packages/user/current-user/current-user-action.extension.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { UmbAction } from '../../action/action.interface.js';
1+
import type { UmbAction } from '@umbraco-cms/backoffice/action';
22
import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
33
import type { ManifestElementAndApi, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';
44
import type { UUIInterfaceColor, UUIInterfaceLook } from '@umbraco-cms/backoffice/external/uui';
@@ -69,3 +69,9 @@ export interface MetaCurrentUserActionDefaultKind extends MetaCurrentUserAction
6969
*/
7070
color?: UUIInterfaceColor;
7171
}
72+
73+
declare global {
74+
interface UmbExtensionManifestMap {
75+
umbCurrentUserAction: ManifestCurrentUserAction;
76+
}
77+
}

src/packages/user/current-user/external-login/configure-external-login-providers-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '../current-user-action.extension.js';
12
import { UMB_CURRENT_USER_EXTERNAL_LOGIN_MODAL } from './modals/external-login-modal.token.js';
23
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
3-
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
44
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
55

66
export class UmbConfigureExternalLoginProvidersApi<ArgsMetaType = never>

src/packages/user/current-user/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export * from './history/current-user-history.store.js';
77
export * from './repository/index.js';
88
export * from './utils/index.js';
99
export * from './user-profile-app.extension.js';
10+
export * from './current-user-action.extension.js';
1011

1112
export type * from './types.js';

src/packages/user/current-user/mfa-login/configure-mfa-providers-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { UMB_CURRENT_USER_MFA_MODAL } from '../modals/current-user-mfa/current-user-mfa-modal.token.js';
2+
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '../current-user-action.extension.js';
23
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
3-
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
44
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
55

66
export class UmbConfigureMfaProvidersApi<ArgsMetaType = never>

src/packages/user/current-user/profile/change-password-current-user.action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { UMB_CURRENT_USER_CONTEXT } from '../current-user.context.token.js';
22
import { UmbCurrentUserRepository } from '../repository/index.js';
3+
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '../current-user-action.extension.js';
34
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
4-
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
55
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
66
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
77
import { UMB_CHANGE_PASSWORD_MODAL } from '@umbraco-cms/backoffice/user-change-password';

src/packages/user/current-user/profile/edit-current-user.action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { UMB_CURRENT_USER_CONTEXT } from '../current-user.context.token.js';
2+
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '../current-user-action.extension.js';
23
import { UMB_USER_WORKSPACE_PATH } from '@umbraco-cms/backoffice/user';
34
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
4-
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
55
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
66

77
export class UmbEditCurrentUserAction<ArgsMetaType = never>

0 commit comments

Comments
 (0)