@xh/hoist 67.0.0-SNAPSHOT.1724967611388 → 67.0.0-SNAPSHOT.1725042567416

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,14 +39,18 @@ const unauthorizedMessage = hoistCmp.factory<AppContainerModel>({
39
39
  render({model}) {
40
40
  const {identityService} = XH,
41
41
  {appSpec, appStateModel} = model,
42
+ {isImpersonating} = identityService,
42
43
  user = XH.getUser(),
44
+ authMsg = isImpersonating
45
+ ? `You are impersonating ${user.username}`
46
+ : `You are logged in as ${user.username}`,
43
47
  roleMsg = isEmpty(user.roles)
44
48
  ? 'no roles assigned'
45
49
  : `the roles [${user.roles.join(', ')}]`;
46
50
 
47
51
  return div(
48
52
  p(appStateModel.accessDeniedMessage ?? ''),
49
- p(`You are logged in as ${user.username} and have ${roleMsg}.`),
53
+ p(`${authMsg} and have ${roleMsg}.`),
50
54
  p({
51
55
  item: appSpec.lockoutMessage,
52
56
  omit: !appSpec.lockoutMessage
@@ -60,7 +64,7 @@ const unauthorizedMessage = hoistCmp.factory<AppContainerModel>({
60
64
  }),
61
65
  hspacer(5),
62
66
  button({
63
- omit: !identityService.isImpersonating,
67
+ omit: !isImpersonating,
64
68
  icon: Icon.impersonate(),
65
69
  text: 'End Impersonation',
66
70
  minimal: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "67.0.0-SNAPSHOT.1724967611388",
3
+ "version": "67.0.0-SNAPSHOT.1725042567416",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",
@@ -21,12 +21,12 @@
21
21
  ],
22
22
  "lint-staged": {
23
23
  "*.{js,jsx,ts,tsx}": [
24
- "eslint",
25
- "prettier --write"
24
+ "prettier --write",
25
+ "eslint"
26
26
  ],
27
27
  "*.s?(a|c)ss": [
28
- "stylelint",
29
- "prettier --write"
28
+ "prettier --write",
29
+ "stylelint"
30
30
  ]
31
31
  },
32
32
  "dependencies": {