@axium/client 0.33.0 → 0.33.1
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.
- package/dist/cli/cache.d.ts +1 -0
- package/dist/cli/config.d.ts +1 -0
- package/dist/locales.d.ts +3 -1
- package/dist/user.d.ts +2 -2
- package/lib/SidebarLayout.svelte +16 -3
- package/locales/en.json +3 -1
- package/package.json +2 -2
- package/styles/list.css +1 -1
package/dist/cli/cache.d.ts
CHANGED
|
@@ -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<{
|
package/dist/cli/config.d.ts
CHANGED
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
|
|
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
|
}>;
|
package/lib/SidebarLayout.svelte
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|
-
"
|
|
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.
|
|
3
|
+
"version": "0.33.1",
|
|
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.
|
|
52
|
+
"@axium/core": ">=0.35.0",
|
|
53
53
|
"ioium": "^1.0.2",
|
|
54
54
|
"semver": "^7.7.4",
|
|
55
55
|
"svelte": "^5.36.0",
|