@gopherium/godmin 0.14.1 → 0.16.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.
package/dist/page-tabs.js CHANGED
@@ -1,13 +1,17 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cloneElement } from 'react';
2
+ import { cloneElement, useLayoutEffect, useRef, useState } from 'react';
3
3
  /**
4
- * Renders the tabs of a page as a navigation region of links.
5
- * @param props - The navigation name and the tabs.
6
- * @returns The tab navigation element.
4
+ * The class every tab row carries.
7
5
  */
8
- export function PageTabs({ label, children }) {
9
- return (_jsx("nav", { className: "godmin-page-tabs", "aria-label": label, children: children }));
10
- }
6
+ const ROW_CLASS = 'godmin-page-tabs';
7
+ /**
8
+ * The class that fades the start edge of a tab row scrolled past its first tabs.
9
+ */
10
+ const FADES_START_CLASS = 'godmin-page-tabs--overflowing-first';
11
+ /**
12
+ * The class that fades the end edge of a tab row whose last tabs lie past it.
13
+ */
14
+ const FADES_END_CLASS = 'godmin-page-tabs--overflowing-last';
11
15
  /**
12
16
  * The class every page tab carries.
13
17
  */
@@ -16,6 +20,101 @@ const TAB_CLASS = 'godmin-page-tabs__tab';
16
20
  * The class that underlines the tab of the page on screen.
17
21
  */
18
22
  const CURRENT_CLASS = 'godmin-page-tabs__tab--current';
23
+ /**
24
+ * The scroll in pixels a tab row may sit off an edge and still rest on it, for sub-pixel rounding.
25
+ */
26
+ const SCROLL_EPSILON = 1;
27
+ /**
28
+ * Returns the classes of a tab row, fading each edge that tabs lie past.
29
+ * @param row - The tab row element.
30
+ * @returns The class list.
31
+ */
32
+ function rowClass(row) {
33
+ const travelled = Math.abs(row.scrollLeft);
34
+ const room = row.scrollWidth - row.clientWidth;
35
+ let classes = ROW_CLASS;
36
+ if (travelled > SCROLL_EPSILON) {
37
+ classes += ` ${FADES_START_CLASS}`;
38
+ }
39
+ if (travelled < room - SCROLL_EPSILON) {
40
+ classes += ` ${FADES_END_CLASS}`;
41
+ }
42
+ return classes;
43
+ }
44
+ /**
45
+ * Returns the classes of a tab row, measured again as the row scrolls, resizes or gains and loses tabs.
46
+ * @param ref - The tab row element.
47
+ * @returns The class list.
48
+ */
49
+ function useRowClass(ref) {
50
+ const [className, setClassName] = useState(ROW_CLASS);
51
+ useLayoutEffect(() => {
52
+ const row = ref.current;
53
+ const measure = () => setClassName(rowClass(row));
54
+ const resizes = new ResizeObserver(measure);
55
+ const watch = () => {
56
+ resizes.disconnect();
57
+ for (const box of [row, ...row.children]) {
58
+ resizes.observe(box);
59
+ }
60
+ measure();
61
+ };
62
+ const mutations = new MutationObserver(watch);
63
+ mutations.observe(row, { childList: true });
64
+ row.addEventListener('scroll', measure, { passive: true });
65
+ watch();
66
+ return () => {
67
+ row.removeEventListener('scroll', measure);
68
+ mutations.disconnect();
69
+ resizes.disconnect();
70
+ };
71
+ }, [ref]);
72
+ return className;
73
+ }
74
+ /**
75
+ * Scrolls a tab row the least that shows a tab whole, with the scroll margin the tab asks for.
76
+ * @param row - The tab row element.
77
+ * @param tab - The tab to show.
78
+ */
79
+ function reveal(row, tab) {
80
+ const style = getComputedStyle(tab);
81
+ const start = tab.offsetLeft - parseFloat(style.scrollMarginLeft);
82
+ const end = tab.offsetLeft + tab.offsetWidth + parseFloat(style.scrollMarginRight);
83
+ if (end > row.scrollLeft + row.clientWidth) {
84
+ row.scrollLeft = end - row.clientWidth;
85
+ }
86
+ if (start < row.scrollLeft) {
87
+ row.scrollLeft = start;
88
+ }
89
+ }
90
+ /**
91
+ * Scrolls a tab row to its current tab each time a tab becomes current, forgetting the last one while none is.
92
+ * @param ref - The tab row element.
93
+ */
94
+ function useRevealCurrent(ref) {
95
+ const shown = useRef(null);
96
+ useLayoutEffect(() => {
97
+ const row = ref.current;
98
+ const tab = row.querySelector(`.${CURRENT_CLASS}`);
99
+ const last = shown.current;
100
+ shown.current = tab;
101
+ if (tab === null || tab === last) {
102
+ return;
103
+ }
104
+ reveal(row, tab);
105
+ });
106
+ }
107
+ /**
108
+ * Renders the tabs of a page as a navigation region of links that scrolls to the current tab and fades a cut edge.
109
+ * @param props - The navigation name and the tabs.
110
+ * @returns The tab navigation element.
111
+ */
112
+ export function PageTabs({ label, children }) {
113
+ const ref = useRef(null);
114
+ useRevealCurrent(ref);
115
+ const className = useRowClass(ref);
116
+ return (_jsx("nav", { ref: ref, className: className, "aria-label": label, children: children }));
117
+ }
19
118
  /**
20
119
  * Renders one page tab as a link, marked and underlined as the current page when it leads to the page on screen.
21
120
  * @param props - The address or the link element, whether it is current, and the label.
@@ -0,0 +1,24 @@
1
+ export interface RenameBodyProps {
2
+ /** The name the item carries now, the first value of the field. */
3
+ name: string;
4
+ /** The label of the name field. */
5
+ fieldLabel: string;
6
+ /** The label of the button that writes the new name. */
7
+ submitLabel: string;
8
+ /** The label of the button that closes the modal. */
9
+ cancelLabel: string;
10
+ /** Whether the write is running, the submit button then busy and Cancel greyed out. */
11
+ busy?: boolean;
12
+ /** The failure of the last try, shown under the field. */
13
+ failure?: string;
14
+ /** Writes the name as typed. */
15
+ onSubmit: (name: string) => void;
16
+ /** Closes the modal. */
17
+ onCancel?: () => void;
18
+ }
19
+ /**
20
+ * Renders the body of a rename modal: the name field, a failure notice, a minimal Cancel and the submit button.
21
+ * @param props - The current name, the labels, the busy flag, the failure and the handlers.
22
+ * @returns The rename form.
23
+ */
24
+ export declare function RenameBody({ name, fieldLabel, submitLabel, cancelLabel, busy, failure, onSubmit, onCancel, }: RenameBodyProps): import("react").JSX.Element;
package/dist/rename.js ADDED
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { Button, InputControl, Stack } from '@wordpress/ui';
4
+ import { useState } from 'react';
5
+ import { ErrorNotice } from './page.js';
6
+ /**
7
+ * Renders the body of a rename modal: the name field, a failure notice, a minimal Cancel and the submit button.
8
+ * @param props - The current name, the labels, the busy flag, the failure and the handlers.
9
+ * @returns The rename form.
10
+ */
11
+ export function RenameBody({ name, fieldLabel, submitLabel, cancelLabel, busy = false, failure, onSubmit, onCancel, }) {
12
+ const [value, setValue] = useState(name);
13
+ const writable = !busy && value.trim() !== '' && value !== name;
14
+ return (_jsx("form", { onSubmit: (event) => {
15
+ event.preventDefault();
16
+ if (writable) {
17
+ onSubmit(value);
18
+ }
19
+ }, children: _jsxs(Stack, { direction: "column", gap: "lg", children: [_jsx(InputControl, { label: fieldLabel, value: value, onChange: (event) => setValue(event.target.value) }), failure === undefined ? null : _jsx(ErrorNotice, { children: failure }), _jsxs(Stack, { direction: "row", gap: "sm", justify: "flex-end", children: [_jsx(Button, { variant: "minimal", disabled: busy, onClick: onCancel, children: cancelLabel }), _jsx(Button, { type: "submit", loading: busy, disabled: !writable, children: submitLabel })] })] }) }));
20
+ }
package/dist/router.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import type { CanvasMode } from './frame.js';
2
+ export { listSearch, openOnTap, useListView } from './list-view.js';
3
+ export type { LayoutDefaults, ListDefaults, ListFilter, ListSearch, ListSortDirection, ListView, ListViewShape, } from './list-view.js';
2
4
  declare module '@tanstack/react-router' {
3
5
  interface StaticDataRouteOption {
4
6
  canvas?: CanvasMode;
package/dist/router.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { useRouterState } from '@tanstack/react-router';
2
+ export { listSearch, openOnTap, useListView } from './list-view.js';
2
3
  /**
3
4
  * Returns the canvas the deepest matching route asks for.
4
5
  * @returns The canvas mode, padded when no route asks for one.
@@ -0,0 +1,63 @@
1
+ /** The part of a list view that names the page it shows, as a DataViews view holds it. */
2
+ export interface PagedView {
3
+ /** The page the view shows, counted from 1. */
4
+ page?: number;
5
+ /** How many rows a page holds. */
6
+ perPage?: number;
7
+ }
8
+ /** The rows a list asks the server for. */
9
+ export interface PageWindow {
10
+ /** How many rows to ask for, or null for the size the server serves by default. */
11
+ limit: number | null;
12
+ /** How many rows to skip before the first one. */
13
+ offset: number;
14
+ }
15
+ /** The part of a page the server served that says its size and its total. */
16
+ export interface ServedPage {
17
+ /** How many rows match, across every page. */
18
+ total: number;
19
+ /** The page size the server used, not the rows on this page. */
20
+ limit: number;
21
+ }
22
+ /** The totals a DataViews list pages through. */
23
+ export interface PaginationInfo {
24
+ /** How many rows match, across every page. */
25
+ totalItems: number;
26
+ /** How many pages those rows fill. */
27
+ totalPages: number;
28
+ }
29
+ /** The size the server last put on one page, and the size the request it answered asked for. */
30
+ export interface ServedSize {
31
+ /** The rows that request asked for, or null when it asked for the size the server serves by default. */
32
+ asked: number | null;
33
+ /** The rows the server put on the page. */
34
+ served: number;
35
+ }
36
+ /** The page a view asks the server for, and the recorder of each page the server serves. */
37
+ export interface ServerPaging {
38
+ /** The rows to ask the server for. */
39
+ window: PageWindow;
40
+ /** Records the page size the server used, when the request that got that page asked the limit the view asks now. */
41
+ record: (page: ServedPage | undefined, asked: number | null) => void;
42
+ }
43
+ /**
44
+ * Returns the rows to ask the server for the page a view shows.
45
+ * @param view - The view the list shows.
46
+ * @param last - The size the server last served, absent before it served any.
47
+ * @param cap - The largest page the server serves.
48
+ * @returns The limit and offset of the page.
49
+ */
50
+ export declare function pageWindow({ page, perPage }: PagedView, last?: ServedSize, cap?: number): PageWindow;
51
+ /**
52
+ * Returns the totals a DataViews list pages through, counting pages by the size the server served.
53
+ * @param page - The page the server served, absent until it arrives.
54
+ * @returns The pagination info.
55
+ */
56
+ export declare function paginationOf(page: ServedPage | undefined): PaginationInfo;
57
+ /**
58
+ * Holds the size the server last served and answers the rows to ask for the page a view shows.
59
+ * @param view - The view the list shows.
60
+ * @param cap - The largest page the server serves.
61
+ * @returns The page window and the recorder of each page the server serves.
62
+ */
63
+ export declare function useServerPaging(view: PagedView, cap?: number): ServerPaging;
@@ -0,0 +1,58 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ import { useState } from 'react';
3
+ /**
4
+ * Returns how many rows each page before the shown one holds.
5
+ * @param limit - The rows asked for on one page, or null for the size the server serves by default.
6
+ * @param last - The size the server last served, absent before it served any.
7
+ * @returns The size served when it answered this same ask, the size asked otherwise.
8
+ */
9
+ function stepOf(limit, last) {
10
+ if (last !== undefined && last.asked === limit && last.served > 0) {
11
+ return last.served;
12
+ }
13
+ return limit ?? 0;
14
+ }
15
+ /**
16
+ * Returns the rows to ask the server for the page a view shows.
17
+ * @param view - The view the list shows.
18
+ * @param last - The size the server last served, absent before it served any.
19
+ * @param cap - The largest page the server serves.
20
+ * @returns The limit and offset of the page.
21
+ */
22
+ export function pageWindow({ page = 1, perPage }, last, cap = Infinity) {
23
+ const limit = perPage === undefined ? null : Math.min(perPage, cap);
24
+ return { limit, offset: (page - 1) * stepOf(limit, last) };
25
+ }
26
+ /**
27
+ * Returns the totals a DataViews list pages through, counting pages by the size the server served.
28
+ * @param page - The page the server served, absent until it arrives.
29
+ * @returns The pagination info.
30
+ */
31
+ export function paginationOf(page) {
32
+ if (page === undefined) {
33
+ return { totalItems: 0, totalPages: 0 };
34
+ }
35
+ const totalPages = page.limit > 0 ? Math.ceil(page.total / page.limit) : Math.min(page.total, 1);
36
+ return { totalItems: page.total, totalPages };
37
+ }
38
+ /**
39
+ * Holds the size the server last served and answers the rows to ask for the page a view shows.
40
+ * @param view - The view the list shows.
41
+ * @param cap - The largest page the server serves.
42
+ * @returns The page window and the recorder of each page the server serves.
43
+ */
44
+ export function useServerPaging(view, cap) {
45
+ const [last, setLast] = useState();
46
+ const window = pageWindow(view, last, cap);
47
+ return {
48
+ window,
49
+ record: (page, asked) => {
50
+ if (page === undefined || asked !== window.limit) {
51
+ return;
52
+ }
53
+ if (page.limit !== last?.served || asked !== last.asked) {
54
+ setLast({ asked, served: page.limit });
55
+ }
56
+ },
57
+ };
58
+ }
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { RenderOptions, RenderResult } from '@testing-library/react';
2
- import type { ReactNode } from 'react';
2
+ import { Badge, Button, Text } from '@wordpress/ui';
3
+ import type { ComponentProps, ReactNode } from 'react';
3
4
  import type { AdminRootProps } from './admin-root.js';
4
5
  /**
5
6
  * The elements the design system announces through rather than displays.
@@ -39,6 +40,25 @@ export declare function setViewport(viewport: {
39
40
  * Prepares the test environment a design system application needs.
40
41
  */
41
42
  export declare function installTestEnvironment(): void;
43
+ /**
44
+ * Returns the classes a design system text draws at the given variant.
45
+ * @param variant - The text variant to sample.
46
+ * @returns The class names, in order.
47
+ */
48
+ export declare function textClasses(variant: ComponentProps<typeof Text>['variant']): string[];
49
+ /**
50
+ * Returns the classes a design system badge draws at the given intent.
51
+ * @param intent - The badge intent to sample.
52
+ * @returns The class names, in order.
53
+ */
54
+ export declare function badgeClasses(intent: ComponentProps<typeof Badge>['intent']): string[];
55
+ /**
56
+ * Returns the classes a design system button draws at the given variant and size.
57
+ * @param variant - The button variant to sample.
58
+ * @param size - The button size, the default one when absent.
59
+ * @returns The class names, in order.
60
+ */
61
+ export declare function buttonClasses(variant: ComponentProps<typeof Button>['variant'], size?: ComponentProps<typeof Button>['size']): string[];
42
62
  /**
43
63
  * Renders the given tree inside the design system host.
44
64
  * @param ui - The tree to render.
package/dist/testing.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { cleanup, configure, render } from '@testing-library/react';
4
+ import { Badge, Button, Text } from '@wordpress/ui';
4
5
  import { afterEach } from 'vitest';
5
6
  import { AdminRoot } from './admin-root.js';
6
7
  /**
@@ -156,6 +157,42 @@ export function installTestEnvironment() {
156
157
  afterEach(clearAnnouncements);
157
158
  afterEach(resetViewport);
158
159
  }
160
+ /**
161
+ * Returns the classes the outer element of a tree draws with, removing the tree once read.
162
+ * @param tree - The tree to sample.
163
+ * @returns The class names, in order.
164
+ */
165
+ function classesOf(tree) {
166
+ const { container, unmount } = render(tree);
167
+ const classes = [...container.firstElementChild.classList];
168
+ unmount();
169
+ return classes;
170
+ }
171
+ /**
172
+ * Returns the classes a design system text draws at the given variant.
173
+ * @param variant - The text variant to sample.
174
+ * @returns The class names, in order.
175
+ */
176
+ export function textClasses(variant) {
177
+ return classesOf(_jsx(Text, { variant: variant }));
178
+ }
179
+ /**
180
+ * Returns the classes a design system badge draws at the given intent.
181
+ * @param intent - The badge intent to sample.
182
+ * @returns The class names, in order.
183
+ */
184
+ export function badgeClasses(intent) {
185
+ return classesOf(_jsx(Badge, { intent: intent, children: "probe" }));
186
+ }
187
+ /**
188
+ * Returns the classes a design system button draws at the given variant and size.
189
+ * @param variant - The button variant to sample.
190
+ * @param size - The button size, the default one when absent.
191
+ * @returns The class names, in order.
192
+ */
193
+ export function buttonClasses(variant, size) {
194
+ return classesOf(_jsx(Button, { variant: variant, size: size, children: "probe" }));
195
+ }
159
196
  /**
160
197
  * Renders the given tree inside the design system host.
161
198
  * @param ui - The tree to render.
package/dist/toaster.d.ts CHANGED
@@ -5,6 +5,8 @@ export interface ToastAction {
5
5
  }
6
6
  export interface ToasterHandle {
7
7
  show: (message: string, action?: ToastAction) => void;
8
+ /** The title cut to the toaster's name length, with an ellipsis when cut. */
9
+ name: (title: string) => string;
8
10
  }
9
11
  /**
10
12
  * Returns the handle raising messages in the toast region.
@@ -20,10 +22,12 @@ export interface ToasterProps {
20
22
  dismissLabel?: string;
21
23
  /** How many toasts stay on screen at once, the oldest leaving first. */
22
24
  limit?: number;
25
+ /** How many characters of a name a toast shows before the ellipsis. */
26
+ nameLength?: number;
23
27
  }
24
28
  /**
25
29
  * Renders the region holding raised messages around the given tree.
26
- * @param props - The tree the region wraps, how long a toast stays, the dismiss control name and how many stay.
30
+ * @param props - The tree the region wraps, the toast time, the close button name, how many stay and the name length.
27
31
  * @returns The wrapped tree with its region.
28
32
  */
29
- export declare function Toaster({ children, dismissAfter, dismissLabel, limit, }: ToasterProps): import("react").JSX.Element;
33
+ export declare function Toaster({ children, dismissAfter, dismissLabel, limit, nameLength, }: ToasterProps): import("react").JSX.Element;
package/dist/toaster.js CHANGED
@@ -19,6 +19,28 @@ const DISMISS_GLYPH = '✕';
19
19
  * How many toasts stay on screen at once.
20
20
  */
21
21
  const LIMIT = 3;
22
+ /**
23
+ * How many characters of a name a toast shows before the ellipsis.
24
+ */
25
+ const NAME_LENGTH = 45;
26
+ /**
27
+ * The mark that ends a name a toast cut short.
28
+ */
29
+ const ELLIPSIS = '…';
30
+ /**
31
+ * Returns a title cut to the given number of characters, its trailing spaces trimmed and an ellipsis added.
32
+ * @param title - The title to name.
33
+ * @param length - How many characters to keep.
34
+ * @returns The title whole when it fits, the cut title otherwise.
35
+ */
36
+ function cutName(title, length) {
37
+ const characters = new Intl.Segmenter(undefined, { granularity: 'grapheme' });
38
+ const parts = Array.from(characters.segment(title), (part) => part.segment);
39
+ if (parts.length <= length) {
40
+ return title;
41
+ }
42
+ return `${parts.slice(0, length).join('').trimEnd()}${ELLIPSIS}`;
43
+ }
22
44
  const ToasterContext = createContext(null);
23
45
  /**
24
46
  * Returns the handle raising messages in the toast region.
@@ -129,10 +151,10 @@ function ActionToast({ toast, action, dismissAfter, dismissLabel, region, onLeav
129
151
  }
130
152
  /**
131
153
  * Renders the region holding raised messages around the given tree.
132
- * @param props - The tree the region wraps, how long a toast stays, the dismiss control name and how many stay.
154
+ * @param props - The tree the region wraps, the toast time, the close button name, how many stay and the name length.
133
155
  * @returns The wrapped tree with its region.
134
156
  */
135
- export function Toaster({ children, dismissAfter = DISMISS_AFTER, dismissLabel = DISMISS_LABEL, limit = LIMIT, }) {
157
+ export function Toaster({ children, dismissAfter = DISMISS_AFTER, dismissLabel = DISMISS_LABEL, limit = LIMIT, nameLength = NAME_LENGTH, }) {
136
158
  const [toasts, setToasts] = useState([]);
137
159
  const nextId = useRef(0);
138
160
  const region = useRef(null);
@@ -158,7 +180,8 @@ export function Toaster({ children, dismissAfter = DISMISS_AFTER, dismissLabel =
158
180
  speak(message, 'polite');
159
181
  setToasts((held) => admit(held, { id, message, action, leaving: false }, limit));
160
182
  }, [limit]);
161
- const handle = useMemo(() => ({ show }), [show]);
183
+ const name = useCallback((title) => cutName(title, nameLength), [nameLength]);
184
+ const handle = useMemo(() => ({ show, name }), [show, name]);
162
185
  const hint = useId();
163
186
  return (_jsxs(ToasterContext.Provider, { value: handle, children: [children, _jsx("div", { ref: region, className: "godmin-toasts", tabIndex: -1, children: toasts.map((toast) => toast.action === undefined ? (_jsx(PlainToast, { toast: toast, dismissAfter: dismissAfter, hint: hint, region: region, onLeave: leave, onGone: gone }, toast.id)) : (_jsx(ActionToast, { toast: toast, action: toast.action, dismissAfter: dismissAfter, dismissLabel: dismissLabel, region: region, onLeave: leave, onGone: gone }, toast.id))) }), _jsx("span", { id: hint, hidden: true, children: dismissLabel })] }));
164
187
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gopherium/godmin",
3
- "version": "0.14.1",
3
+ "version": "0.16.0",
4
4
  "description": "The admin kit for Gopherium projects: host layer for React admin applications on the WordPress Design System.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -58,11 +58,11 @@
58
58
  "peerDependencies": {
59
59
  "@tanstack/react-router": "^1.170.0",
60
60
  "@testing-library/react": "^16.3.2",
61
- "@wordpress/a11y": ">=4.55.0 <5.0.0",
62
- "@wordpress/icons": ">=16.0.0 <17.0.0",
63
- "@wordpress/style-runtime": ">=0.11.0 <0.12.0",
64
- "@wordpress/theme": ">=2.1.0 <3.0.0",
65
- "@wordpress/ui": ">=0.22.0 <0.23.0",
61
+ "@wordpress/a11y": ">=4.56.0 <5.0.0",
62
+ "@wordpress/icons": ">=17.0.0 <18.0.0",
63
+ "@wordpress/style-runtime": ">=0.12.0 <0.13.0",
64
+ "@wordpress/theme": ">=2.2.0 <3.0.0",
65
+ "@wordpress/ui": ">=0.23.0 <0.24.0",
66
66
  "react": "^19.2.0",
67
67
  "stylelint": "^16 || ^17",
68
68
  "vitest": "^4.1.10"
@@ -84,17 +84,18 @@
84
84
  "devDependencies": {
85
85
  "@tanstack/react-router": "^1.170.18",
86
86
  "@testing-library/react": "^16.3.2",
87
+ "@testing-library/user-event": "^14.6.7",
87
88
  "@types/node": "^26.1.2",
88
89
  "@types/react": "^19.2.17",
89
90
  "@vitejs/plugin-react": "^6.0.3",
90
91
  "@vitest/coverage-v8": "^4.1.10",
91
- "@wordpress/a11y": "4.55.0",
92
- "@wordpress/dataviews": "19.0.0",
93
- "@wordpress/element": "8.7.0",
94
- "@wordpress/icons": "16.0.0",
95
- "@wordpress/style-runtime": "0.11.0",
96
- "@wordpress/theme": "2.1.0",
97
- "@wordpress/ui": "0.22.0",
92
+ "@wordpress/a11y": "4.56.0",
93
+ "@wordpress/dataviews": "19.1.0",
94
+ "@wordpress/element": "8.8.0",
95
+ "@wordpress/icons": "17.0.0",
96
+ "@wordpress/style-runtime": "0.12.0",
97
+ "@wordpress/theme": "2.2.0",
98
+ "@wordpress/ui": "0.23.0",
98
99
  "eslint": "^10.7.0",
99
100
  "eslint-plugin-jsdoc": "^63.2.0",
100
101
  "eslint-plugin-sonarjs": "^4.2.0",