move current user action

This commit is contained in:
Mads Rasmussen
2024-09-30 13:09:15 +02:00
parent 9ca78a21f4
commit e689a749d3
8 changed files with 16 additions and 13 deletions

View File

@@ -1,5 +1,4 @@
import type { ManifestAuthProvider } from './auth-provider.model.js';
import type { ManifestCurrentUserAction, ManifestCurrentUserActionDefaultKind } from './current-user-action.model.js';
import type { ManifestDynamicRootOrigin, ManifestDynamicRootQueryStep } from './dynamic-root.model.js';
import type { ManifestFileUploadPreview } from './file-upload-preview.model.js';
import type { ManifestExternalLoginProvider } from './external-login-provider.model.js';
@@ -10,7 +9,6 @@ import type { ManifestMfaLoginProvider } from './mfa-login-provider.model.js';
import type { ManifestBase, ManifestBundle, ManifestCondition } from '@umbraco-cms/backoffice/extension-api';
export type * from './auth-provider.model.js';
export type * from './current-user-action.model.js';
export type * from './dynamic-root.model.js';
export type * from './file-upload-preview.model.js';
export type * from './external-login-provider.model.js';
@@ -23,8 +21,6 @@ export type ManifestTypes =
| ManifestAuthProvider
| ManifestBundle<ManifestTypes>
| ManifestCondition
| ManifestCurrentUserAction
| ManifestCurrentUserActionDefaultKind
| ManifestDynamicRootOrigin
| ManifestDynamicRootQueryStep
| ManifestFileUploadPreview

View File

@@ -1,11 +1,11 @@
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
import { html, customElement, ifDefined, state, property } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import type {
ManifestCurrentUserActionDefaultKind,
MetaCurrentUserActionDefaultKind,
UmbCurrentUserAction,
} from '@umbraco-cms/backoffice/extension-registry';
} from '../current-user-action.extension.js';
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
import { html, customElement, ifDefined, state, property } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import { UmbActionExecutedEvent } from '@umbraco-cms/backoffice/event';
@customElement('umb-current-user-app-button')

View File

@@ -1,4 +1,4 @@
import type { UmbAction } from '../../action/action.interface.js';
import type { UmbAction } from '@umbraco-cms/backoffice/action';
import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
import type { ManifestElementAndApi, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api';
import type { UUIInterfaceColor, UUIInterfaceLook } from '@umbraco-cms/backoffice/external/uui';
@@ -69,3 +69,9 @@ export interface MetaCurrentUserActionDefaultKind extends MetaCurrentUserAction
*/
color?: UUIInterfaceColor;
}
declare global {
interface UmbExtensionManifestMap {
umbCurrentUserAction: ManifestCurrentUserAction;
}
}

View File

@@ -1,6 +1,6 @@
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '../current-user-action.extension.js';
import { UMB_CURRENT_USER_EXTERNAL_LOGIN_MODAL } from './modals/external-login-modal.token.js';
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
export class UmbConfigureExternalLoginProvidersApi<ArgsMetaType = never>

View File

@@ -7,5 +7,6 @@ export * from './history/current-user-history.store.js';
export * from './repository/index.js';
export * from './utils/index.js';
export * from './user-profile-app.extension.js';
export * from './current-user-action.extension.js';
export type * from './types.js';

View File

@@ -1,6 +1,6 @@
import { UMB_CURRENT_USER_MFA_MODAL } from '../modals/current-user-mfa/current-user-mfa-modal.token.js';
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '../current-user-action.extension.js';
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
export class UmbConfigureMfaProvidersApi<ArgsMetaType = never>

View File

@@ -1,7 +1,7 @@
import { UMB_CURRENT_USER_CONTEXT } from '../current-user.context.token.js';
import { UmbCurrentUserRepository } from '../repository/index.js';
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '../current-user-action.extension.js';
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
import { UMB_CHANGE_PASSWORD_MODAL } from '@umbraco-cms/backoffice/user-change-password';

View File

@@ -1,7 +1,7 @@
import { UMB_CURRENT_USER_CONTEXT } from '../current-user.context.token.js';
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '../current-user-action.extension.js';
import { UMB_USER_WORKSPACE_PATH } from '@umbraco-cms/backoffice/user';
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
export class UmbEditCurrentUserAction<ArgsMetaType = never>