@adia-ai/web-modules 0.6.12 → 0.6.13
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
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog — @adia-ai/web-modules
|
|
2
2
|
|
|
3
|
+
## [0.6.13] — 2026-05-20
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- **`<admin-shell>` — default `mode` is now `"rounded borderless"` (was flat-bordered).** A bare `<admin-shell>` with no `mode` attribute auto-promotes to `mode="rounded borderless"` in `connectedCallback` — the modern soft-chrome visual baseline becomes opt-out, not opt-in. Any author-supplied `mode` attribute (including the empty string `mode=""` for the flat legacy chrome) is respected verbatim: the default fires only when no `mode` attribute is present on the tag at all. The behavior change is scoped to consumers emitting a bare `<admin-shell>` — every in-repo composition surface and every audited external consumer except claims-ui-v3 already set `mode="rounded borderless"` explicitly. Opt-out matrix: `<admin-shell>` → `rounded borderless`; `<admin-shell mode="">` → `""`; `<admin-shell mode="rounded">` → `rounded`. The `props.mode` schema also drops its (incorrect) `enum: ["", rounded, borderless]` constraint — `mode` is a space-separated token set consumed by CSS `mode~="<token>"` attribute selectors, so the `.d.ts` `mode` type widens from `'' | 'rounded' | 'borderless'` to `string` (TS consumers can now assign `el.mode = "rounded borderless"` without a cast).
|
|
7
|
+
|
|
3
8
|
## [0.6.12] — 2026-05-20
|
|
4
9
|
|
|
5
10
|
### Cleanup (no in-tree or audited external consumer impact)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/web-modules",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.13",
|
|
4
4
|
"description": "AdiaUI composite custom elements \u2014 shell, chat, editor, runtime clusters built from @adia-ai/web-components primitives. Subpath exports per cluster.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -17,14 +17,9 @@
|
|
|
17
17
|
"const": "AppShell"
|
|
18
18
|
},
|
|
19
19
|
"mode": {
|
|
20
|
-
"description": "Layout variant —
|
|
20
|
+
"description": "Layout variant — space-separated token set. Recognized tokens:\n rounded — softens content-surface edges (border-radius from --page-content-radius)\n borderless — removes outer chrome borders (content dividers persist)\nThe CSS uses `mode~=\"<token>\"` attribute selectors, so multiple\ntokens combine additively (\"rounded borderless\" = both).\n\nDefault since v0.6.13: \"rounded borderless\". A bare `<admin-shell>`\nwith no `mode` attribute auto-promotes to this pair on connect.\nAuthor-supplied `mode` attributes (including the empty string\n`mode=\"\"` for flat bordered chrome) are respected verbatim.\n",
|
|
21
21
|
"type": "string",
|
|
22
|
-
"
|
|
23
|
-
"",
|
|
24
|
-
"rounded",
|
|
25
|
-
"borderless"
|
|
26
|
-
],
|
|
27
|
-
"default": ""
|
|
22
|
+
"default": "rounded borderless"
|
|
28
23
|
}
|
|
29
24
|
},
|
|
30
25
|
"required": [
|
|
@@ -35,8 +35,18 @@ export interface AdminShellSidebarToggleEventDetail {
|
|
|
35
35
|
export type AdminShellSidebarToggleEvent = CustomEvent<AdminShellSidebarToggleEventDetail>;
|
|
36
36
|
|
|
37
37
|
export class AdminShell extends UIElement {
|
|
38
|
-
/** Layout variant —
|
|
39
|
-
|
|
38
|
+
/** Layout variant — space-separated token set. Recognized tokens:
|
|
39
|
+
rounded — softens content-surface edges (border-radius from --page-content-radius)
|
|
40
|
+
borderless — removes outer chrome borders (content dividers persist)
|
|
41
|
+
The CSS uses `mode~="<token>"` attribute selectors, so multiple
|
|
42
|
+
tokens combine additively ("rounded borderless" = both).
|
|
43
|
+
|
|
44
|
+
Default since v0.6.13: "rounded borderless". A bare `<admin-shell>`
|
|
45
|
+
with no `mode` attribute auto-promotes to this pair on connect.
|
|
46
|
+
Author-supplied `mode` attributes (including the empty string
|
|
47
|
+
`mode=""` for flat bordered chrome) are respected verbatim.
|
|
48
|
+
*/
|
|
49
|
+
mode: string;
|
|
40
50
|
|
|
41
51
|
addEventListener<K extends keyof HTMLElementEventMap>(
|
|
42
52
|
type: K,
|
|
@@ -17,7 +17,12 @@
|
|
|
17
17
|
* compat reads; see git history for the legacy paths.
|
|
18
18
|
*
|
|
19
19
|
* Host responsibilities (the only behavior that stays here):
|
|
20
|
-
* 1. [mode] reflection — "rounded", "borderless", or both
|
|
20
|
+
* 1. [mode] reflection — "rounded", "borderless", or both. **Default
|
|
21
|
+
* since v0.6.13: "rounded borderless"**. Authors who want the flat
|
|
22
|
+
* legacy chrome opt out via an explicit `mode=""` or `mode="rounded"`
|
|
23
|
+
* (etc.); any author-supplied `mode` attribute (including the empty
|
|
24
|
+
* string) is respected verbatim, so the default only fires when
|
|
25
|
+
* no `mode` attribute is present at all on the tag.
|
|
21
26
|
* 2. [data-sidebar-toggle="<name>"] click forwarding to the matching
|
|
22
27
|
* <admin-sidebar>'s .toggle() public method
|
|
23
28
|
* 3. [data-command-trigger] click forwarding to <admin-command>.show()
|
|
@@ -26,6 +31,8 @@
|
|
|
26
31
|
|
|
27
32
|
import { UIElement } from '../../../web-components/core/element.js';
|
|
28
33
|
|
|
34
|
+
const DEFAULT_MODE = 'rounded borderless';
|
|
35
|
+
|
|
29
36
|
class AdminShell extends UIElement {
|
|
30
37
|
static properties = {
|
|
31
38
|
mode: { type: String, default: '', reflect: true },
|
|
@@ -34,6 +41,11 @@ class AdminShell extends UIElement {
|
|
|
34
41
|
static template = () => null;
|
|
35
42
|
|
|
36
43
|
connected() {
|
|
44
|
+
// Apply the v0.6.13 default mode if (and only if) the author did
|
|
45
|
+
// not supply a `mode` attribute on the tag. `hasAttribute` returns
|
|
46
|
+
// true for `mode=""` so explicit empty-string authoring (the flat
|
|
47
|
+
// legacy chrome opt-out) is preserved.
|
|
48
|
+
if (!this.hasAttribute('mode')) this.mode = DEFAULT_MODE;
|
|
37
49
|
this.#wireToggleButtons();
|
|
38
50
|
this.#wireCommandTriggers();
|
|
39
51
|
}
|
|
@@ -13,10 +13,19 @@ description: |
|
|
|
13
13
|
props:
|
|
14
14
|
mode:
|
|
15
15
|
type: string
|
|
16
|
-
default: ""
|
|
17
|
-
enum: ["", rounded, borderless]
|
|
16
|
+
default: "rounded borderless"
|
|
18
17
|
reflect: true
|
|
19
|
-
description:
|
|
18
|
+
description: |
|
|
19
|
+
Layout variant — space-separated token set. Recognized tokens:
|
|
20
|
+
rounded — softens content-surface edges (border-radius from --page-content-radius)
|
|
21
|
+
borderless — removes outer chrome borders (content dividers persist)
|
|
22
|
+
The CSS uses `mode~="<token>"` attribute selectors, so multiple
|
|
23
|
+
tokens combine additively ("rounded borderless" = both).
|
|
24
|
+
|
|
25
|
+
Default since v0.6.13: "rounded borderless". A bare `<admin-shell>`
|
|
26
|
+
with no `mode` attribute auto-promotes to this pair on connect.
|
|
27
|
+
Author-supplied `mode` attributes (including the empty string
|
|
28
|
+
`mode=""` for flat bordered chrome) are respected verbatim.
|
|
20
29
|
|
|
21
30
|
events:
|
|
22
31
|
sidebar-toggle:
|