From 1ac284da97877f93413a3d220c89a87268696f6a Mon Sep 17 00:00:00 2001 From: Dustin Nielsen Date: Wed, 29 Oct 2025 11:59:31 -0600 Subject: [PATCH 1/2] fix: Updating package versions --- package-lock.json | 24 ++++++++++++------------ package.json | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 29c14b951..9ad951bc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,9 +8,9 @@ "name": "code-sandbox", "version": "0.0.0", "dependencies": { - "@abgov/react-components": "6.8.0-alpha.3", - "@abgov/ui-components-common": "1.8.0-alpha.3", - "@abgov/web-components": "1.38.0-alpha.5", + "@abgov/react-components": "6.9.0-alpha.2", + "@abgov/ui-components-common": "1.9.0-alpha.1", + "@abgov/web-components": "1.39.0-alpha.2", "@faker-js/faker": "^8.3.1", "highlight.js": "^11.8.0", "js-cookie": "^3.0.5", @@ -68,9 +68,9 @@ } }, "node_modules/@abgov/react-components": { - "version": "6.8.0-alpha.3", - "resolved": "https://registry.npmjs.org/@abgov/react-components/-/react-components-6.8.0-alpha.3.tgz", - "integrity": "sha512-BMEMhhJiNF/QaVHXG4yCO/fQaLUy6d7nYZS0h6cKFHCeCmd5ZZVpuZI3E/wdWDO1HgZH+HLpNtUyi7G7BpYfkA==", + "version": "6.9.0-alpha.2", + "resolved": "https://registry.npmjs.org/@abgov/react-components/-/react-components-6.9.0-alpha.2.tgz", + "integrity": "sha512-mBlGM/u/wsHLTPpZxiVhdES9Ra+Hj6JaVGzQuWm3JI+Jqz5wwCRLeGzLZD03fAlfnEhMshXpPuKtQxphVLQNPg==", "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^17.0.0 || ^18.0.0 || ^19.0.0", @@ -78,14 +78,14 @@ } }, "node_modules/@abgov/ui-components-common": { - "version": "1.8.0-alpha.3", - "resolved": "https://registry.npmjs.org/@abgov/ui-components-common/-/ui-components-common-1.8.0-alpha.3.tgz", - "integrity": "sha512-RW53rqOfP0gd8W2OoWOZnj8U8Q5L4KL9V2staZswqm+O7D3AXQUAslmXImGUPd922Xn8hkPNzDEq1CPuoAcaXw==" + "version": "1.9.0-alpha.1", + "resolved": "https://registry.npmjs.org/@abgov/ui-components-common/-/ui-components-common-1.9.0-alpha.1.tgz", + "integrity": "sha512-5ZSV7XuVJ+NMNCJd9LTQzAGwLERGUig/L1WlIn+1n0OOxonYo4df4jhinj2VyJRQ/XiNYa1vYlh59NRlAyu8pg==" }, "node_modules/@abgov/web-components": { - "version": "1.38.0-alpha.5", - "resolved": "https://registry.npmjs.org/@abgov/web-components/-/web-components-1.38.0-alpha.5.tgz", - "integrity": "sha512-YqVXvd8KkCc/oy2rcfiuL89RB0kJ+x/y94vm0azPLL1iKyhw1xCQBIXhJIkeGeEcLGZHUNYGV2DIPupHHOnb5Q==" + "version": "1.39.0-alpha.2", + "resolved": "https://registry.npmjs.org/@abgov/web-components/-/web-components-1.39.0-alpha.2.tgz", + "integrity": "sha512-eY66yYlJTkqoDDQWj6p0rcywcjvwExa6mDJoBpVwp325Guki10l59xUeC78WwYaVTFZP7nmTB1OXKuV3+Vnkhg==" }, "node_modules/@esbuild/aix-ppc64": { "version": "0.21.5", diff --git a/package.json b/package.json index 6feeb98df..c4e5befb4 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,9 @@ "prettier": "npx prettier . --write" }, "dependencies": { - "@abgov/react-components": "6.8.0-alpha.3", - "@abgov/ui-components-common": "1.8.0-alpha.3", - "@abgov/web-components": "1.38.0-alpha.5", + "@abgov/react-components": "6.9.0-alpha.2", + "@abgov/ui-components-common": "1.9.0-alpha.1", + "@abgov/web-components": "1.39.0-alpha.2", "@faker-js/faker": "^8.3.1", "highlight.js": "^11.8.0", "js-cookie": "^3.0.5", From e04b4a8bbc4ca96c83890ad20e1f6053a2052496 Mon Sep 17 00:00:00 2001 From: Dustin Nielsen Date: Wed, 29 Oct 2025 13:59:10 -0600 Subject: [PATCH 2/2] fix: Updated default version. Updated MenuButton. --- src/global-constants.ts | 2 +- src/routes/components/MenuButton.tsx | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/global-constants.ts b/src/global-constants.ts index a5c6ac850..79fbc368e 100644 --- a/src/global-constants.ts +++ b/src/global-constants.ts @@ -1,5 +1,5 @@ export const MAX_CONTENT_WIDTH = "1440px"; -export const DEFAULT_VERSION = "old"; +export const DEFAULT_VERSION = "new"; export const DEFAULT_LANGUAGE = "react"; // Array of 'New' components diff --git a/src/routes/components/MenuButton.tsx b/src/routes/components/MenuButton.tsx index 199c44601..70218b81e 100644 --- a/src/routes/components/MenuButton.tsx +++ b/src/routes/components/MenuButton.tsx @@ -7,6 +7,7 @@ import { GoabTab, GoabTabs, } from "@abgov/react-components"; +import { GoabMenuButtonOnActionDetail } from "@abgov/ui-components-common"; import { Category, ComponentHeader } from "@components/component-header/ComponentHeader.tsx"; import { ComponentContent } from "@components/component-content/ComponentContent"; import { @@ -82,7 +83,7 @@ export default function MenuButtonPage() { TestIdProperty, { name: "onAction", - type: "(action: string) => void", + type: "(detail: GoabMenuButtonOnActionDetail) => void", description: "Callback fired when a menu action is selected. Receives the action identifier from the clicked item.", }, @@ -118,8 +119,8 @@ export default function MenuButtonPage() { setMenuButtonProps(props as CastingType); } - function handleAction(action: string) { - console.log("Last action: ", action); + function handleAction(detail: GoabMenuButtonOnActionDetail) { + console.log("Last action: ", detail.action); } return (