@happyvertical/smrt-svelte 0.62.1 → 0.62.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.
@@ -62,6 +62,18 @@ with `WorkspaceAccountMenu compact` for an avatar-only trigger that retains the
62
62
  full account identity as its accessible name. Keep the ordinary
63
63
  `tenantFooter` for the expanded panel.
64
64
 
65
+ ### Sizing the shell to a host container
66
+
67
+ `.smrt-admin-shell` is viewport-sized by default and reads one public
68
+ property for its `min-block-size`/`block-size`: `--smrt-admin-shell-block-size`
69
+ (fallback `100svh`, and `100dvh` in the phone `data-bottom-bar` branch). A host
70
+ sets it on a container or the shell; it inherits through `AppShell`'s and
71
+ `Planner`'s theme provider root (`display: block`, auto height, so `100%` on
72
+ the shell cannot work). Values: a length, `calc()`, or `100cqb` with
73
+ `container-type: size` on the host. Never size the shell by host CSS on its
74
+ class names. Guards: `AdminShell.test.ts` (source) and
75
+ `e2e/host-height.spec.ts` (600px container, desktop and phone).
76
+
65
77
  ### Responsive chrome, viewport defaults, resizable edges
66
78
 
67
79
  The root grid has five rows: `header` · top edge · body · bottom edge · phone
@@ -57,6 +57,14 @@ padding, `--smrt-spacing-2`) and `--smrt-admin-shell-tenant-gap` (gap between
57
57
  tenant panel rows, `--smrt-spacing-3`). The tenant panel only spaces rows it
58
58
  renders, so with no `tenantFooter` there is no empty footer-row gap.
59
59
 
60
+ Sizing: the shell is viewport-tall (`100svh`, `100dvh` with the phone bottom
61
+ bar) unless a host sets `--smrt-admin-shell-block-size` on the shell or any
62
+ ancestor, such as a container of its own height. The property is inherited, so
63
+ it crosses `AppShell`'s and `Planner`'s own theme provider root, which has auto
64
+ height (a bare `100%` would resolve against that root). Use a length, a
65
+ `calc()`, or `100cqb` on a `container-type: size` host; the phone branch
66
+ honours it too. Host code never targets the shell's class names.
67
+
60
68
  Keep the `appBar` snippet for content in the center header band. Side-aligned
61
69
  identity and action content belongs in `topLeftCorner` / `topRightCorner`,
62
70
  wrapped in `ShellCorner side="left"` or `ShellCorner side="right"` so it follows
@@ -1970,8 +1970,12 @@ function buildLayoutStyle(shell: ModuleShellState): string {
1970
1970
  var(--smrt-admin-shell-top-track) minmax(0, 1fr)
1971
1971
  var(--smrt-admin-shell-bottom-track)
1972
1972
  var(--smrt-admin-shell-phone-bar-track);
1973
- min-block-size: 100svh;
1974
- block-size: 100svh;
1973
+ /* Host-sizable: a host that places the shell in a container of its own
1974
+ height sets the public `--smrt-admin-shell-block-size` on the container
1975
+ or the shell (inherited, so it crosses the planner's theme provider).
1976
+ Unset, the shell is the viewport. */
1977
+ min-block-size: var(--smrt-admin-shell-block-size, 100svh);
1978
+ block-size: var(--smrt-admin-shell-block-size, 100svh);
1975
1979
  /* `clip`, not `hidden`: a hidden box is still programmatically scrollable
1976
1980
  (focus / scrollIntoView on a grid-track child shifts the whole shell
1977
1981
  and its sidebars); a clipped box can never scroll. Only main and the
@@ -2657,8 +2661,8 @@ function buildLayoutStyle(shell: ModuleShellState): string {
2657
2661
  browser's collapsing toolbar never hides it. */
2658
2662
  .smrt-admin-shell[data-bottom-bar='nav'],
2659
2663
  .smrt-admin-shell[data-bottom-bar='form'] {
2660
- min-block-size: 100dvh;
2661
- block-size: 100dvh;
2664
+ min-block-size: var(--smrt-admin-shell-block-size, 100dvh);
2665
+ block-size: var(--smrt-admin-shell-block-size, 100dvh);
2662
2666
  }
2663
2667
  @media (max-width: 48rem) {
2664
2668
  .smrt-admin-shell__band--top :global(.smrt-admin-shell__brand.smrt-shell-brand__compact) {
@@ -5,10 +5,10 @@ description: "Svelte 5 components for SMRT user management - auth, users, tenant
5
5
  status: "stable"
6
6
  generated:
7
7
  by: "smrt/scripts/generate-knowledge-okf.ts"
8
- at: "2026-11-16T20:28:29Z"
8
+ at: "2026-11-17T02:05:16Z"
9
9
  audience: "internal"
10
10
  evidence_level: "manifest-described"
11
- source_revision: "sha256:0770f6d7501250ce87d633968a08891223933bdf79183be4143ae7e690c9880e"
11
+ source_revision: "sha256:884d6a7bc0c85d7b6f8c814047b26aa59116f9a0a9f8373839514582be84dfeb"
12
12
  sources:
13
13
  - id: "manifest"
14
14
  resource: "https://github.com/happyvertical/smrt/blob/main/packages/smrt-svelte/package.json"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-svelte",
3
- "version": "0.62.1",
3
+ "version": "0.62.2",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "Svelte 5 components for SMRT user management - auth, users, tenants, roles, permissions, groups",
6
6
  "type": "module",
@@ -242,18 +242,18 @@
242
242
  },
243
243
  "dependencies": {
244
244
  "@happyvertical/logger": "^0.113.0",
245
- "@happyvertical/smrt-core": "0.62.1",
246
- "@happyvertical/smrt-fields": "0.62.1",
247
- "@happyvertical/smrt-languages": "0.62.1",
248
- "@happyvertical/smrt-mcp-apps": "0.62.1",
249
- "@happyvertical/smrt-types": "0.62.1",
250
- "@happyvertical/smrt-ui": "0.62.1",
251
- "@happyvertical/smrt-web": "0.62.1",
245
+ "@happyvertical/smrt-core": "0.62.2",
246
+ "@happyvertical/smrt-fields": "0.62.2",
247
+ "@happyvertical/smrt-languages": "0.62.2",
248
+ "@happyvertical/smrt-mcp-apps": "0.62.2",
249
+ "@happyvertical/smrt-types": "0.62.2",
250
+ "@happyvertical/smrt-ui": "0.62.2",
251
+ "@happyvertical/smrt-web": "0.62.2",
252
252
  "@tanstack/db": "^1.0.0-rc.1",
253
253
  "@tanstack/svelte-db": "^1.0.0-rc.1",
254
254
  "esm-env": "^1.2.2",
255
- "@happyvertical/smrt-chat": "0.62.1",
256
- "@happyvertical/smrt-inference": "0.62.1"
255
+ "@happyvertical/smrt-chat": "0.62.2",
256
+ "@happyvertical/smrt-inference": "0.62.2"
257
257
  },
258
258
  "peerDependencies": {
259
259
  "@happyvertical/speech": ">=0.102.5",
@@ -285,12 +285,12 @@
285
285
  }
286
286
  },
287
287
  "devDependencies": {
288
- "@happyvertical/smrt-agents": "0.62.1",
289
- "@happyvertical/smrt-content": "0.62.1",
290
- "@happyvertical/smrt-reports": "0.62.1",
291
- "@happyvertical/smrt-scanner": "0.62.1",
292
- "@happyvertical/smrt-tenancy": "0.62.1",
293
- "@happyvertical/smrt-users": "0.62.1",
288
+ "@happyvertical/smrt-agents": "0.62.2",
289
+ "@happyvertical/smrt-content": "0.62.2",
290
+ "@happyvertical/smrt-reports": "0.62.2",
291
+ "@happyvertical/smrt-scanner": "0.62.2",
292
+ "@happyvertical/smrt-tenancy": "0.62.2",
293
+ "@happyvertical/smrt-users": "0.62.2",
294
294
  "@happyvertical/speech": "^0.113.0",
295
295
  "@sveltejs/package": "^2.5.8",
296
296
  "@sveltejs/vite-plugin-svelte": "^7.3.0",