Skip to content

Commit 11afbed

Browse files
authored
Merge pull request #2097 from umbraco/bugfix/bundle-user-package
Chore: Bundle user package
2 parents b22724d + 587f793 commit 11afbed

File tree

132 files changed

+366
-265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+366
-265
lines changed

package-lock.json

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@
141141
"./src/packages/tags",
142142
"./src/packages/templating",
143143
"./src/packages/property-editors",
144-
"./src/packages/media"
144+
"./src/packages/media",
145+
"./src/packages/user"
145146
],
146147
"scripts": {
147148
"backoffice:test:e2e": "npx playwright test",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import type UmbCurrentUserContext from './current-user.context.js';
2+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
3+
4+
export const UMB_CURRENT_USER_CONTEXT = new UmbContextToken<UmbCurrentUserContext>('UmbCurrentUserContext');

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { UmbCurrentUserModel } from './types.js';
22
import { UmbCurrentUserRepository } from './repository/index.js';
3-
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
3+
import { UMB_CURRENT_USER_CONTEXT } from './current-user.context.token.js';
44
import { UmbContextBase } from '@umbraco-cms/backoffice/class-api';
55
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
66
import { firstValueFrom } from '@umbraco-cms/backoffice/external/rxjs';
@@ -116,5 +116,3 @@ export class UmbCurrentUserContext extends UmbContextBase<UmbCurrentUserContext>
116116
}
117117

118118
export default UmbCurrentUserContext;
119-
120-
export const UMB_CURRENT_USER_CONTEXT = new UmbContextToken<UmbCurrentUserContext>('UmbCurrentUserContext');

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ export class UmbConfigureExternalLoginProvidersApi<ArgsMetaType = never>
1616
await modalManagerContext.open(this, UMB_CURRENT_USER_EXTERNAL_LOGIN_MODAL).onSubmit();
1717
}
1818
}
19+
20+
export { UmbConfigureExternalLoginProvidersApi as api };

src/packages/user/current-user/external-login/manifests.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { UmbConfigureExternalLoginProvidersApi } from './configure-external-login-providers-action.js';
21
import type { ManifestCurrentUserActionDefaultKind, ManifestModal } from '@umbraco-cms/backoffice/extension-registry';
32

43
export const modals: Array<ManifestModal> = [
@@ -17,7 +16,7 @@ export const userProfileApps: Array<ManifestCurrentUserActionDefaultKind> = [
1716
alias: 'Umb.CurrentUser.App.ExternalLoginProviders',
1817
name: 'External Login Providers Current User App',
1918
weight: 700,
20-
api: UmbConfigureExternalLoginProvidersApi,
19+
api: () => import('./configure-external-login-providers-action.js'),
2120
meta: {
2221
label: '#defaultdialogs_externalLoginProviders',
2322
icon: 'icon-lock',

src/packages/user/current-user/history/current-user-history-user-profile-app.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { UmbCurrentUserHistoryItem, UmbCurrentUserHistoryStore } from './current-user-history.store.js';
2-
import { UMB_CURRENT_USER_HISTORY_STORE_CONTEXT } from './current-user-history.store.js';
2+
import { UMB_CURRENT_USER_HISTORY_STORE_CONTEXT } from './current-user-history.store.token.js';
33
import { html, customElement, state, map, ifDefined, css } from '@umbraco-cms/backoffice/external/lit';
44
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
55
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type UmbCurrentUserHistoryStore from './current-user-history.store.js';
2+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
3+
4+
export const UMB_CURRENT_USER_HISTORY_STORE_CONTEXT = new UmbContextToken<UmbCurrentUserHistoryStore>(
5+
'UmbCurrentUserHistoryStore',
6+
);

src/packages/user/current-user/history/current-user-history.store.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
1+
import { UMB_CURRENT_USER_HISTORY_STORE_CONTEXT } from './current-user-history.store.token.js';
22
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
33
import { UmbId } from '@umbraco-cms/backoffice/id';
44
import { UmbArrayState } from '@umbraco-cms/backoffice/observable-api';
@@ -61,9 +61,5 @@ export class UmbCurrentUserHistoryStore extends UmbStoreBase<UmbCurrentUserHisto
6161
}
6262
}
6363

64-
export const UMB_CURRENT_USER_HISTORY_STORE_CONTEXT = new UmbContextToken<UmbCurrentUserHistoryStore>(
65-
'UmbCurrentUserHistoryStore',
66-
);
67-
6864
// Default export for the globalContext manifest:
6965
export default UmbCurrentUserHistoryStore;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ export * from './components/index.js';
33
export * from './history/current-user-history.store.js';
44
export * from './utils/index.js';
55
export * from './current-user.context.js';
6+
export * from './current-user.context.token.js';
67
export type * from './types.js';

0 commit comments

Comments
 (0)