@axium/client 0.33.0 → 0.33.2

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.
@@ -34,6 +34,7 @@ export declare const meta: Handle<z.ZodObject<{
34
34
  user: z.ZodObject<{
35
35
  id: z.ZodUUID;
36
36
  name: z.ZodString;
37
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
38
  email: z.ZodEmail;
38
39
  emailVerified: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
39
40
  preferences: z.ZodLazy<z.ZodObject<{
@@ -19,6 +19,7 @@ export declare function session(): {
19
19
  registeredAt: Date;
20
20
  isAdmin: boolean;
21
21
  isSuspended: boolean;
22
+ username?: string | null | undefined;
22
23
  emailVerified?: Date | null | undefined;
23
24
  };
24
25
  name?: string | null | undefined;
package/dist/cli/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #! /usr/bin/env node
2
2
  import { formatBytes } from '@axium/core';
3
- import { createPluginCommand, outputDaemonStatus } from '@axium/core/node';
3
+ import { createPluginCommand, outputDaemonStatus, rl } from '@axium/core/node';
4
4
  import { _findPlugin, plugins } from '@axium/core/plugins';
5
5
  import { CommanderError, program } from 'commander';
6
6
  import * as io from 'ioium/node';
@@ -135,3 +135,4 @@ catch (e) {
135
135
  io.exit(e);
136
136
  }
137
137
  }
138
+ rl.close();
package/dist/locales.d.ts CHANGED
@@ -91,7 +91,8 @@ declare let currentLoaded: {
91
91
  readonly success: "Success";
92
92
  readonly unknown: "Unknown";
93
93
  readonly unnamed: "Unnamed";
94
- readonly username: "Name";
94
+ readonly user_display_name: "Name";
95
+ readonly username: "Username";
95
96
  readonly yes: "Yes";
96
97
  };
97
98
  readonly page: {
@@ -100,6 +101,7 @@ declare let currentLoaded: {
100
101
  readonly delete_account_confirm: "Are you sure you want to delete your account?";
101
102
  readonly edit_email: "Email Address";
102
103
  readonly edit_name: "What do you want to be called?";
104
+ readonly edit_username: "Pick a unique username";
103
105
  readonly email_verified_on: "Email verified on {date}";
104
106
  readonly greeting: "Welcome, {name}";
105
107
  readonly passkeys: {
package/dist/user.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { NewSessionResponse, Passkey, PasskeyChangeable, Session, User, UserPublic, Verification } from '@axium/core';
1
+ import type { NewSessionResponse, Passkey, PasskeyChangeable, Session, User, UserChangeable, UserPublic, Verification } from '@axium/core';
2
2
  import * as z from 'zod';
3
3
  import Cache from './cache.js';
4
4
  export declare function login(userId: string): Promise<NewSessionResponse>;
@@ -18,7 +18,7 @@ export declare function register(_data: Record<string, unknown>): Promise<void>;
18
18
  declare const userCache: Cache<[string], UserPublic>;
19
19
  export { userCache as apiUserCache };
20
20
  export declare function userInfo(userId: string): Promise<UserPublic>;
21
- export declare function updateUser(userId: string, data: Record<string, FormDataEntryValue>): Promise<User>;
21
+ export declare function updateUser(userId: string, data: UserChangeable | Record<string, FormDataEntryValue>): Promise<User>;
22
22
  export declare function fullUserInfo(userId: string): Promise<User & {
23
23
  sessions: Session[];
24
24
  }>;
@@ -57,7 +57,6 @@
57
57
  display: inline-flex;
58
58
  flex-direction: column;
59
59
  gap: 0.5em;
60
- background-color: var(--bg-alt);
61
60
  padding: 1em;
62
61
  padding-left: 0;
63
62
  border-radius: 0 1em 1em 0;
@@ -71,6 +70,7 @@
71
70
  flex-direction: row;
72
71
  justify-content: space-around;
73
72
  gap: 1em;
73
+ background-color: var(--bg-alt);
74
74
  padding: 0.5em;
75
75
  z-index: 6;
76
76
 
@@ -80,10 +80,11 @@
80
80
  }
81
81
 
82
82
  .item {
83
- padding: 0.3em 0.5em;
83
+ padding: 0.5em 1em;
84
84
  border-radius: 0.25em 1em 1em 0.25em;
85
85
 
86
86
  @media (width < 700px) {
87
+ padding: 0.3em 0.5em;
87
88
  flex: 1 1 0;
88
89
  border-radius: 1em;
89
90
  padding: 1em;
@@ -92,7 +93,7 @@
92
93
  }
93
94
 
94
95
  .item:hover {
95
- background-color: var(--bg-strong);
96
+ background-color: var(--bg-alt);
96
97
  cursor: pointer;
97
98
  }
98
99
 
@@ -121,4 +122,16 @@
121
122
  display: none;
122
123
  }
123
124
  }
125
+
126
+ :global(:has(.sidebar-theme-alt)) .sidebar {
127
+ background-color: var(--bg-alt);
128
+ }
129
+
130
+ @media (width >= 700px) {
131
+ :not(:has(.sidebar-theme-alt)) .sidebar-content {
132
+ border-radius: 1em;
133
+ background-color: var(--bg-menu);
134
+ margin: 0 1em 1em 0;
135
+ }
136
+ }
124
137
  </style>
package/locales/en.json CHANGED
@@ -85,7 +85,8 @@
85
85
  "success": "Success",
86
86
  "unknown": "Unknown",
87
87
  "unnamed": "Unnamed",
88
- "username": "Name",
88
+ "user_display_name": "Name",
89
+ "username": "Username",
89
90
  "yes": "Yes"
90
91
  },
91
92
  "page": {
@@ -94,6 +95,7 @@
94
95
  "delete_account_confirm": "Are you sure you want to delete your account?",
95
96
  "edit_email": "Email Address",
96
97
  "edit_name": "What do you want to be called?",
98
+ "edit_username": "Pick a unique username",
97
99
  "email_verified_on": "Email verified on {date}",
98
100
  "greeting": "Welcome, {name}",
99
101
  "passkeys": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/client",
3
- "version": "0.33.0",
3
+ "version": "0.33.2",
4
4
  "author": "James Prevett <jp@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -49,7 +49,7 @@
49
49
  "build": "tsc"
50
50
  },
51
51
  "peerDependencies": {
52
- "@axium/core": ">=0.34.0",
52
+ "@axium/core": ">=0.36.0",
53
53
  "ioium": "^1.0.2",
54
54
  "semver": "^7.7.4",
55
55
  "svelte": "^5.36.0",
package/styles/list.css CHANGED
@@ -23,7 +23,7 @@ div.list-header {
23
23
  font-weight: bold;
24
24
  border-bottom: 1.5px solid var(--fg-accent);
25
25
  position: sticky;
26
- background-color: var(--bg-normal);
26
+ background-color: inherit;
27
27
  top: 0em;
28
28
  z-index: 1;
29
29