@jskit-ai/users-web 0.2.18 → 0.2.20

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 CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - The account-settings pattern ships the account surface's layout, `src/pages/account.vue` (`ShellLayout` around `<RouterView />`, `meta.jskit.surface: "account"`), so the settings page's title, Up arrow and Done action show in the top app bar, with no navigation bar, rail or drawer on a surface that has no navigation. An app whose account page renders under no layout copies it; until then `jskit check` reports `nav/missing-shell-layout` on the page.
5
6
  - The account settings page and the account-settings pattern's sections sit directly on the page, without bordered sheets, and the section list has no extra border or tint.
6
7
  - The account settings page has no in-page title or Back button: it gives the shell's top app bar its title (`useShellPageTitle`) and a Done action (`ShellPageAction`) that returns to `returnTo`, another of the app's origins included, as Back did. Message keys: `jskit.users.accountSettings.back` is removed and `jskit.users.accountSettings.done` ("Done") is new. The pattern's section buttons no longer set a fixed height; they are Material 3's 40dp buttons inside material-web's 48dp touch target.
7
8
  - Account settings text uses Vuetify 4's Material 3 type classes (`text-body-medium`, `text-title-large`, ...) instead of Material 2 ones, which Vuetify 4 no longer styles, and the account settings page pattern declares its title and its parent (the home surface's root). Upgrading: see the guide's [Move an app to the Material 3 defaults](https://mobily-enterprises.github.io/jskit-ai/guide/app-setup/material-3-migration).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/users-web",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test --test-concurrency=1"
@@ -17,11 +17,11 @@
17
17
  "@jskit-ai/users-core": "0.2.12"
18
18
  },
19
19
  "peerDependencies": {
20
- "@jskit-ai/auth-web": "0.2.13",
20
+ "@jskit-ai/auth-web": "0.2.15",
21
21
  "@jskit-ai/http-runtime": "0.2.10",
22
- "@jskit-ai/http-web": "0.2.16",
22
+ "@jskit-ai/http-web": "0.2.18",
23
23
  "@jskit-ai/kernel": "0.2.10",
24
- "@jskit-ai/shell-web": "0.2.11",
24
+ "@jskit-ai/shell-web": "0.2.13",
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.0"
233
+ "@jskit-ai/material-web": "0.1.2"
234
234
  }
235
235
  }
@@ -57,10 +57,15 @@ provider offers provider linking (`providerLinking` in its capabilities).
57
57
  - Loading uses layout-stable skeletons, never an indeterminate spinner.
58
58
  - Pending controls keep stable labels and prevent duplicate submission.
59
59
  - The route and placement owner agree.
60
+ - The account surface renders in its own layout, `src/pages/account.vue`
61
+ (`ShellLayout` around `<RouterView />`, `meta.jskit.surface: "account"`), so
62
+ the settings page's title, Up arrow and Done action are in the top app bar.
63
+ With no navigation items, the surface shows no navigation bar, rail or drawer.
60
64
 
61
65
  ## Example files
62
66
 
63
- `example/` contains an account route and four concrete settings sections.
67
+ `example/` contains the account surface's layout, an account route and four
68
+ concrete settings sections.
64
69
  Adapt their fields and copy while retaining the shared account runtime.
65
70
 
66
71
  ## Variation points
@@ -0,0 +1,22 @@
1
+ <route lang="json">
2
+ {
3
+ "meta": {
4
+ "jskit": {
5
+ "surface": "account"
6
+ }
7
+ }
8
+ }
9
+ </route>
10
+
11
+ <script setup>
12
+ // The account surface's layout: the shell's top app bar carries the settings page's title, its Up arrow back to home
13
+ // and its Done action. The surface has no navigation items, so the shell draws no navigation bar, rail or drawer.
14
+ import ShellLayout from "@/components/ShellLayout.vue";
15
+ import { RouterView } from "vue-router";
16
+ </script>
17
+
18
+ <template>
19
+ <ShellLayout title="" subtitle="">
20
+ <RouterView />
21
+ </ShellLayout>
22
+ </template>