@canonical/react-ds-app 0.45.0 → 0.47.0

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.
@@ -29,9 +29,15 @@ const componentCssClassName = "ds side-panel";
29
29
  * Compose the body from `SidePanel.Header`, `SidePanel.Content` and
30
30
  * `SidePanel.Footer`. The panel lays them out as a flex column: header and
31
31
  * footer keep their size, and the content pane takes the rest and scrolls
32
- * within it. The content pane is a tab stop, so keyboard users can scroll it;
33
- * opening the panel still focuses the panel itself, so from there Tab reaches
34
- * the close button, then the content, then the footer's actions.
32
+ * within it. 2px lines mark the pane's edges while content is hidden past
33
+ * them — the start line once the pane scrolls away from the top, the end
34
+ * line until it bottoms out, both together in between — drawn CSS-first:
35
+ * engines with scroll-driven animations paint them with or without
36
+ * JavaScript, and engines without fall back to measurement by the
37
+ * `useScrollOverflow` hook; engines with neither paint nothing. The content
38
+ * pane is a tab stop, so keyboard users can scroll it; opening the panel
39
+ * still focuses the panel itself, so from there Tab reaches the close
40
+ * button, then the content, then the footer's actions.
35
41
  *
36
42
  * There are two consumption patterns, `withSidePanel` and `SidePanel`.
37
43
  * `withSidePanel` is meant for static content: the call belongs at module
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/lib/SidePanel/Provider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,eAAe,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;G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,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAC9B,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CAC1D,EACD,CAAC;QACD,OAAO,CAAC,IAAI,CACV,2FAA2F,CAC5F,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YACnC,iBACE,GAAG,EAAE,SAAS,EACd,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,qBAOtD,OAAO;YACxB,iEAAiE;YACjE,QAAQ,EAAE,CAAC,CAAC,EACZ,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,WAAW,KAChB,WAAW,YAEd,QAAQ,GACF,GACQ,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;AAC3B,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;AAEzB,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;AAEnC,eAAe,QAAQ,CAAC"}
@@ -1,20 +1,58 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useScrollOverflow } from "@canonical/react-hooks";
3
+ import { useEffect, useState } from "react";
2
4
  import "./styles.css";
3
5
  const componentCssClassName = "ds side-panel-content";
6
+ /**
7
+ * Whether the engine paints the pane's edge lines with scroll-driven
8
+ * animations — the CSS-first mechanism in styles.css. Client-only: the
9
+ * server and engines without the feature report false, so the pane measures
10
+ * with JavaScript until the probe says the CSS owns the lines.
11
+ */
12
+ const useScrollTimelineSupport = () => {
13
+ const [supported, setSupported] = useState(false);
14
+ useEffect(() => {
15
+ setSupported(typeof CSS !== "undefined" &&
16
+ typeof CSS.supports === "function" &&
17
+ CSS.supports("animation-timeline", "scroll()"));
18
+ }, []);
19
+ return supported;
20
+ };
4
21
  /**
5
22
  * Body of a SidePanel, and the only part of it that scrolls: however tall its
6
23
  * children are, the header and footer stay visible.
7
24
  *
25
+ * While content is hidden past an edge, the pane marks that edge with a 2px
26
+ * line — the top line once the pane scrolls away from the top, the bottom
27
+ * line until it bottoms out, both together in between, neither when
28
+ * everything fits. The lines are CSS-first: engines with scroll-driven
29
+ * animations paint them by animating the pane's borders against its own
30
+ * scroll progress, with or without JavaScript. Engines without fall back to
31
+ * measurement: `useScrollOverflow` reports the two edge states, and the pane
32
+ * publishes them as `data-overflow-top` and `data-overflow-bottom` for the
33
+ * CSS to draw. Engines with neither paint nothing: without a measurement
34
+ * there is no truthful answer about which edges overflow.
35
+ *
8
36
  * The pane is its own scroll container, so it is a tab stop: a keyboard
9
37
  * user tabs to it and scrolls it with the arrow and page keys, even when it
10
38
  * holds nothing focusable.
11
39
  *
12
40
  * @implements ds:apps.subcomponent.side_panel-content
13
41
  */
14
- const Content = ({ children, className, fill = false, ...props }) => {
15
- return (_jsx("div", { className: [componentCssClassName, fill && "fill", className]
42
+ const Content = ({ children, className, fill = false, ref, ...props }) => {
43
+ // The edge lines are CSS-first: where scroll-driven animations run,
44
+ // styles.css paints them and the measurement must stand down; everywhere
45
+ // else the hook drives. The probe starts pessimistic, so the very first
46
+ // frame is measured either way and the lines are never a frame late.
47
+ const cssDriven = useScrollTimelineSupport();
48
+ // The overflow measurement needs its own look at the pane element, and a
49
+ // consumer ref must keep receiving it too: the hook fans the element out
50
+ // to both. Stood down, it clears the flags it measured on mount, so the
51
+ // edge attributes below exist only while JavaScript drives the lines.
52
+ const { ref: paneRef, overflowTop, overflowBottom, } = useScrollOverflow(ref, { enabled: !cssDriven });
53
+ return (_jsx("div", { ref: paneRef, className: [componentCssClassName, fill && "fill", className]
16
54
  .filter(Boolean)
17
- .join(" "),
55
+ .join(" "), "data-overflow-top": overflowTop || undefined, "data-overflow-bottom": overflowBottom || undefined,
18
56
  // A scroll container a keyboard user cannot focus cannot be scrolled,
19
57
  // so the pane is a tab stop. Set before the spread, so the native prop
20
58
  // can still take it out of the tab order.
@@ -1 +1 @@
1
- {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Content/Content.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;;;;;;;;GASG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,QAAQ,EACR,SAAS,EACT,IAAI,GAAG,KAAK,EACZ,GAAG,KAAK,EACK,EAAsB,EAAE;IACrC,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,IAAI,IAAI,MAAM,EAAE,SAAS,CAAC;aAC1D,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC;QACZ,sEAAsE;QACtE,uEAAuE;QACvE,0CAA0C;QAC1C,4GAA4G;QAC5G,QAAQ,EAAE,CAAC,KACP,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAE1C,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Content/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,wBAAwB,GAAG,GAAY,EAAE;IAC7C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,SAAS,CAAC,GAAG,EAAE;QACb,YAAY,CACV,OAAO,GAAG,KAAK,WAAW;YACxB,OAAO,GAAG,CAAC,QAAQ,KAAK,UAAU;YAClC,GAAG,CAAC,QAAQ,CAAC,oBAAoB,EAAE,UAAU,CAAC,CACjD,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,QAAQ,EACR,SAAS,EACT,IAAI,GAAG,KAAK,EACZ,GAAG,EACH,GAAG,KAAK,EACK,EAAsB,EAAE;IACrC,oEAAoE;IACpE,yEAAyE;IACzE,wEAAwE;IACxE,qEAAqE;IACrE,MAAM,SAAS,GAAG,wBAAwB,EAAE,CAAC;IAE7C,yEAAyE;IACzE,yEAAyE;IACzE,wEAAwE;IACxE,sEAAsE;IACtE,MAAM,EACJ,GAAG,EAAE,OAAO,EACZ,WAAW,EACX,cAAc,GACf,GAAG,iBAAiB,CAAiB,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC;IAEpE,OAAO,CACL,cACE,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,CAAC,qBAAqB,EAAE,IAAI,IAAI,MAAM,EAAE,SAAS,CAAC;aAC1D,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,uBAKO,WAAW,IAAI,SAAS,0BACrB,cAAc,IAAI,SAAS;QACjD,sEAAsE;QACtE,uEAAuE;QACvE,0CAA0C;QAC1C,4GAA4G;QAC5G,QAAQ,EAAE,CAAC,KACP,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAE1C,eAAe,OAAO,CAAC"}
@@ -25,6 +25,39 @@
25
25
  /* Don't hand the scroll to the page behind once the content bottoms out. */
26
26
  overscroll-behavior: contain;
27
27
 
28
+ /*
29
+ The scroll region's edges — 2px lines marking the boundaries the header
30
+ and footer meet the pane at, painted only while content is hidden past
31
+ that edge. CSS-first: the `@supports` block at the end of this sheet
32
+ animates these borders against the pane's own scroll progress in the
33
+ engines that ship scroll-driven animations — with or without
34
+ JavaScript. The engines without fall back to measurement:
35
+ `useScrollOverflow` publishes the two edge states as
36
+ `data-overflow-top` / `data-overflow-bottom` (see Content.tsx), and the
37
+ selectors below switch the border colours on them. Engines with neither
38
+ paint nothing: without a measurement there is nothing to say which
39
+ edges overflow, and a line that cannot tell the truth is worse than
40
+ none.
41
+
42
+ The borders are always reserved — animation or attributes switch their
43
+ colour, never their width — so the lines appearing or disappearing
44
+ never shifts the pane. And a scroll container's borders are part of its
45
+ box, not its content: they stay pinned at the edges while the pane
46
+ scrolls. A border spans the padding box, so with the pane's inline
47
+ padding the lines run edge to edge across the panel while the text
48
+ stays in its column. The colour is the panel's to own:
49
+ `--side-panel-color-border` is declared in the panel's `:root` block.
50
+ */
51
+ border-block: var(--side-panel-overflow-line-thickness) solid transparent;
52
+
53
+ &[data-overflow-top] {
54
+ border-block-start-color: var(--side-panel-color-border);
55
+ }
56
+
57
+ &[data-overflow-bottom] {
58
+ border-block-end-color: var(--side-panel-color-border);
59
+ }
60
+
28
61
  /*
29
62
  Inline padding, not margin: the pane must span the full panel width, so
30
63
  its scrollbar hugs the panel edge and the focus ring below reaches it,
@@ -46,4 +79,56 @@
46
79
  outline-offset: calc(-1 * var(--side-panel-focus-ring-width));
47
80
  }
48
81
  }
82
+
83
+ /*
84
+ The primary mechanism, with or without JavaScript: in the engines that
85
+ ship scroll-driven animations the pane animates the same borders against
86
+ its OWN scroll progress — the engine does the measuring. Content.tsx
87
+ probes the same capability and stands the `useScrollOverflow` hook down
88
+ when it holds, so nothing is measured twice and no edge attributes
89
+ appear in the markup; in the engines this `@supports` test excludes, the
90
+ hook's attributes own the lines instead (selectors above). Engines with
91
+ neither mechanism paint nothing.
92
+
93
+ Each animation is narrowed to a single pixel of the scroll range by
94
+ `animation-range`, so the colour change reads as a switch, not a fade:
95
+
96
+ - `side-panel-line-top` runs across the FIRST pixel — before it the pane
97
+ sits at the top and nothing is hidden above, so the line stays
98
+ transparent; past it, content is hidden above and the line holds the
99
+ border colour (`both` fills the range's far side).
100
+ - `side-panel-line-bottom` runs across the LAST pixel — before it there
101
+ is still content below, so `both` fills the near side and the line
102
+ holds the border colour; across it the pane bottoms out and the line
103
+ turns transparent.
104
+ */
105
+ @supports (animation-timeline: scroll()) {
106
+ .ds.side-panel-content {
107
+ animation:
108
+ side-panel-line-top linear both,
109
+ side-panel-line-bottom linear both;
110
+ animation-timeline: scroll(self block), scroll(self block);
111
+ animation-range:
112
+ 0px 1px,
113
+ calc(100% - 1px) 100%;
114
+ }
115
+ }
116
+
117
+ @keyframes side-panel-line-top {
118
+ from {
119
+ border-block-start-color: transparent;
120
+ }
121
+ to {
122
+ border-block-start-color: var(--side-panel-color-border);
123
+ }
124
+ }
125
+
126
+ @keyframes side-panel-line-bottom {
127
+ from {
128
+ border-block-end-color: var(--side-panel-color-border);
129
+ }
130
+ to {
131
+ border-block-end-color: transparent;
132
+ }
133
+ }
49
134
  }
@@ -9,19 +9,8 @@
9
9
  flex: none;
10
10
 
11
11
  /*
12
- Closes the scroll region, marking where the content pane ends and the
13
- actions begin.
14
-
15
- The colour is the panel's to own, and is read without a local fallback so
16
- the two cannot state different defaults: `--side-panel-color-border` is
17
- declared in the panel's `:root` block.
18
- */
19
- border-block-start: var(--dimension-stroke-thickness-medium) solid
20
- var(--side-panel-color-border);
21
- /*
22
- Inset by margin rather than padding: a border spans the padding box, so
23
- padding would run the hairline edge to edge. The margin keeps it stopping
24
- short of both panel edges, in line with the text column.
12
+ Inset by margin rather than padding, so the actions stay in line with
13
+ the text column while the pane's edge line runs the full panel width.
25
14
  */
26
15
  margin-inline: var(--side-panel-padding-inline);
27
16
 
@@ -40,9 +40,7 @@
40
40
  padding-block: var(--side-panel-header-padding-block);
41
41
  /*
42
42
  Inline padding, not margin: nothing here needs the header's box itself
43
- inset, and padding keeps it full panel width. The footer is the
44
- exception — its border spans the padding box, so it insets with margin
45
- (see Footer/styles.css).
43
+ inset, and padding keeps it full panel width.
46
44
  */
47
45
  padding-inline: var(--side-panel-padding-inline);
48
46
 
@@ -32,11 +32,17 @@
32
32
 
33
33
  --side-panel-border-radius: var(--dimension-radius-medium);
34
34
  /*
35
- The hairline closing the scroll region is a divider, not a boundary, so it
36
- takes the muted border rather than the default one — gray-100 in light mode
37
- against gray-520, and gray-820 in dark so it stays pale either way.
35
+ The colour of the scroll region's divider lines, kept muted.
38
36
  */
39
37
  --side-panel-color-border: var(--color-border-muted);
38
+ /*
39
+ The edge lines marking the scroll region when the content pane
40
+ overflows. The design calls for 2px; design-tokens ships no stroke
41
+ token at that width (the scale jumps from 1px to 3px), so this is a
42
+ literal.
43
+ TODO: replace with a token when one exists.
44
+ */
45
+ --side-panel-overflow-line-thickness: 2px;
40
46
  /* One inline padding, read by the header, content and footer alike. */
41
47
  --side-panel-padding-inline: var(--dimension-300);
42
48
  /* Block padding of the two pinned regions, so the rhythm is tunable. */
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/SidePanel/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;0BA8DJ,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,GAAG,KAAK,CAAC,YAAY;;;;;;;eA4D/B,QAAQ"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/SidePanel/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;0BAoEJ,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,GAAG,KAAK,CAAC,YAAY;;;;;;;eA4D/B,QAAQ"}
@@ -1,7 +1,7 @@
1
1
  import type React from "react";
2
2
  import type { ContentProps } from "./types.js";
3
3
  import "./styles.css";
4
- declare function Content({ children, className, fill, ...props }: ContentProps): React.ReactElement;
4
+ declare function Content({ children, className, fill, ref, ...props }: ContentProps): React.ReactElement;
5
5
  declare namespace Content {
6
6
  var displayName: string;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Content/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;yBAcL,EACf,QAAQ,EACR,SAAS,EACT,IAAY,EACZ,GAAG,KAAK,EACT,EAAE,YAAY,GAAG,KAAK,CAAC,YAAY;;;;eAoBrB,OAAO"}
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Content/Content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;yBA2CL,EACf,QAAQ,EACR,SAAS,EACT,IAAY,EACZ,GAAG,EACH,GAAG,KAAK,EACT,EAAE,YAAY,GAAG,KAAK,CAAC,YAAY;;;;eA2CrB,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonical/react-ds-app",
3
- "version": "0.45.0",
3
+ "version": "0.47.0",
4
4
  "type": "module",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -39,13 +39,13 @@
39
39
  "test:vitest:watch": "vitest"
40
40
  },
41
41
  "dependencies": {
42
- "@canonical/ds-assets": "^0.45.0",
43
- "@canonical/ds-types": "^0.45.0",
44
- "@canonical/ds-utils": "^0.45.0",
45
- "@canonical/react-ds-global": "^0.45.0",
46
- "@canonical/react-hooks": "^0.45.0",
47
- "@canonical/storybook-config": "^0.45.0",
48
- "@canonical/styles": "^0.45.0",
42
+ "@canonical/ds-assets": "^0.47.0",
43
+ "@canonical/ds-types": "^0.47.0",
44
+ "@canonical/ds-utils": "^0.47.0",
45
+ "@canonical/react-ds-global": "^0.47.0",
46
+ "@canonical/react-hooks": "^0.47.0",
47
+ "@canonical/storybook-config": "^0.47.0",
48
+ "@canonical/styles": "^0.47.0",
49
49
  "react": "^19.2.4",
50
50
  "react-dom": "^19.2.4"
51
51
  },
@@ -64,15 +64,15 @@
64
64
  "devDependencies": {
65
65
  "@biomejs/biome": "2.5.15",
66
66
  "@canonical/biome-config": "0.43.0",
67
- "@canonical/design-tokens": "0.43.0",
68
- "@canonical/react-ds-global-form": "^0.45.0",
69
- "@canonical/router-core": "^0.45.0",
70
- "@canonical/router-react": "^0.45.0",
71
- "@canonical/storybook-addon-utils": "^0.45.0",
72
- "@canonical/storybook-helpers": "^0.45.0",
73
- "@canonical/typescript-config-react": "^0.45.0",
74
- "@canonical/vitest-config-react": "^0.45.0",
75
- "@canonical/webarchitect": "0.43.0",
67
+ "@canonical/design-tokens": "0.44.0",
68
+ "@canonical/react-ds-global-form": "^0.47.0",
69
+ "@canonical/router-core": "^0.47.0",
70
+ "@canonical/router-react": "^0.47.0",
71
+ "@canonical/storybook-addon-utils": "^0.47.0",
72
+ "@canonical/storybook-helpers": "^0.47.0",
73
+ "@canonical/typescript-config-react": "^0.47.0",
74
+ "@canonical/vitest-config-react": "^0.47.0",
75
+ "@canonical/webarchitect": "0.44.0",
76
76
  "@chromatic-com/storybook": "^5.0.1",
77
77
  "@storybook/addon-docs": "^10.6.0",
78
78
  "@storybook/react-vite": "^10.6.0",
@@ -90,5 +90,5 @@
90
90
  "vite": "^8.0.1",
91
91
  "vitest": "^5.0.0"
92
92
  },
93
- "gitHead": "f8c2473f9aa92d14c24f0976f2f02ebc4944f32f"
93
+ "gitHead": "f846e7e21001a0fcbc4cd9f28c14a55cea7f4974"
94
94
  }