@jskit-ai/users-web 0.2.62 → 0.2.63
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/CHANGELOG.md +1 -0
- package/package.json +6 -6
- package/patterns/account-settings/example/src/components/account/settings/AccountSettingsNotificationsSection.vue +3 -1
- package/patterns/account-settings/example/src/components/account/settings/AccountSettingsPreferencesSection.vue +3 -1
- package/patterns/account-settings/example/src/components/account/settings/AccountSettingsProfileSection.vue +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- The account-settings pattern's Save buttons keep keyboard focus while their section saves and then reloads (shell-web's `v-pending`), instead of becoming disabled for the reload, which dropped focus to the page body.
|
|
5
6
|
- Account settings read their operations from users-core's `userProfileContract` and `userSettingsContract`.
|
|
6
7
|
- Account settings sections are pages in Material 3's list-detail layout (shell-web's `ShellListDetail`): `/account` lists the sections and `/account/<section>` opens one, instead of `?section=` on one page. `AccountSettingsClientElement` reads the route's `section` param and links each section to its path, keeping `returnTo`; on compact and medium windows it shows the list or one section, whose Up returns to the list, and on expanded and large windows the list beside the open section (or the first section on the list's own page), where Done replaces Up as the way out. The `users/account-settings` pattern adds `src/pages/account/[section].vue`, with parent `"/"`. Upgrading: add that page beside `src/pages/account/index.vue`, and change links to `/account?section=<value>` into `/account/<value>`.
|
|
7
8
|
- Account settings have one way out: on a page with the shell's Up arrow (one that declares a parent) there is no Done action beside it, which read as a second back control. Done shows only where Up can't go back: a page without a parent, or a `returnTo` on another of the app's origins.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/users-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@jskit-ai/uploads-image-web": "0.2.27",
|
|
17
|
-
"@jskit-ai/users-core": "0.2.
|
|
17
|
+
"@jskit-ai/users-core": "0.2.50"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@jskit-ai/auth-web": "0.2.
|
|
20
|
+
"@jskit-ai/auth-web": "0.2.45",
|
|
21
21
|
"@jskit-ai/http-runtime": "0.2.27",
|
|
22
|
-
"@jskit-ai/http-web": "0.2.
|
|
22
|
+
"@jskit-ai/http-web": "0.2.46",
|
|
23
23
|
"@jskit-ai/kernel": "0.2.27",
|
|
24
|
-
"@jskit-ai/shell-web": "0.2.
|
|
24
|
+
"@jskit-ai/shell-web": "0.2.39",
|
|
25
25
|
"@tanstack/vue-query": "^5.90.5",
|
|
26
26
|
"vue": "^3.5.13",
|
|
27
27
|
"vue-router": "^5.0.4",
|
|
@@ -230,6 +230,6 @@
|
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
"devDependencies": {
|
|
233
|
-
"@jskit-ai/material-web": "0.1.
|
|
233
|
+
"@jskit-ai/material-web": "0.1.9"
|
|
234
234
|
}
|
|
235
235
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { vPending } from "@jskit-ai/shell-web/client/directives/vPending";
|
|
3
|
+
|
|
2
4
|
const props = defineProps({
|
|
3
5
|
runtime: {
|
|
4
6
|
type: Object,
|
|
@@ -41,7 +43,7 @@ const notifications = props.runtime.notifications;
|
|
|
41
43
|
color="primary"
|
|
42
44
|
class="mt-4"
|
|
43
45
|
:loading="notifications.isSaving.value"
|
|
44
|
-
|
|
46
|
+
v-pending="notifications.isSaving.value || notifications.isRefreshing.value"
|
|
45
47
|
>
|
|
46
48
|
Save notification settings
|
|
47
49
|
</v-btn>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { vPending } from "@jskit-ai/shell-web/client/directives/vPending";
|
|
3
|
+
|
|
2
4
|
const props = defineProps({
|
|
3
5
|
runtime: {
|
|
4
6
|
type: Object,
|
|
@@ -119,7 +121,7 @@ const preferences = props.runtime.preferences;
|
|
|
119
121
|
color="primary"
|
|
120
122
|
class="mt-4"
|
|
121
123
|
:loading="preferences.isSaving.value"
|
|
122
|
-
|
|
124
|
+
v-pending="preferences.isSaving.value || preferences.isRefreshing.value"
|
|
123
125
|
>
|
|
124
126
|
Save preferences
|
|
125
127
|
</v-btn>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { vPending } from "@jskit-ai/shell-web/client/directives/vPending";
|
|
3
|
+
|
|
2
4
|
const props = defineProps({
|
|
3
5
|
runtime: {
|
|
4
6
|
type: Object,
|
|
@@ -81,7 +83,8 @@ const profile = props.runtime.profile;
|
|
|
81
83
|
color="primary"
|
|
82
84
|
class="mt-4"
|
|
83
85
|
:loading="profile.isSaving.value"
|
|
84
|
-
|
|
86
|
+
v-pending="profile.isSaving.value || profile.isRefreshing.value"
|
|
87
|
+
:disabled="profile.isDeletingAvatar.value"
|
|
85
88
|
>
|
|
86
89
|
Save profile
|
|
87
90
|
</v-btn>
|