From 660c98a764567ee8ef08807146d9c69f0afd7861 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:08:01 -0500 Subject: [PATCH 1/3] chore(release): v2.56.1 (#6625) * chore(telemetry): update telemetry config * chore(release): publish [skip ci] - jest-config-ibm-cloud-cognitive@1.15.0-rc.0 - @carbon/storybook-addon-theme@2.5.0-rc.0 - @carbon/ibm-cloud-cognitive-core@2.32.0-rc.0 - @carbon/ibm-products@2.56.0-rc.0 - @carbon/ibm-products-styles@2.52.0-rc.0 - @carbon/ibm-products-web-components@0.5.0-rc.0 * chore(release): publish [skip ci] - jest-config-ibm-cloud-cognitive@1.15.0 - @carbon/storybook-addon-theme@2.5.0 - @carbon/ibm-cloud-cognitive-core@2.32.0 - @carbon/ibm-products@2.56.0 - @carbon/ibm-products-styles@2.52.0 - @carbon/ibm-products-web-components@0.5.0 * fix(EmptyState): added useId handling for older react version (#6620) * fix(EmptyState): added useId handling for older react version * fix(EmptyState): fixed imports for useId --------- Co-authored-by: Sean Anderson * chore(release): publish [skip ci] - @carbon/ibm-products@2.56.1-rc.0 * chore(release): publish [skip ci] - @carbon/ibm-products@2.56.1 --------- Co-authored-by: carbon-bot Co-authored-by: elysia Co-authored-by: Sean Anderson Co-authored-by: Matt Gallo --- packages/ibm-products/CHANGELOG.md | 8 ++++++++ packages/ibm-products/package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/ibm-products/CHANGELOG.md b/packages/ibm-products/CHANGELOG.md index cad83a1d5b..dc940e0cce 100644 --- a/packages/ibm-products/CHANGELOG.md +++ b/packages/ibm-products/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.56.1](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-products@2.56.1-rc.0...@carbon/ibm-products@2.56.1) (2024-12-19) + +**Note:** Version bump only for package @carbon/ibm-products + + + + + ## [2.56.1-rc.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-products@2.56.0...@carbon/ibm-products@2.56.1-rc.0) (2024-12-18) diff --git a/packages/ibm-products/package.json b/packages/ibm-products/package.json index 2ac50eeff2..e280e57a42 100644 --- a/packages/ibm-products/package.json +++ b/packages/ibm-products/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/ibm-products", "description": "Carbon for IBM Products", - "version": "2.56.1-rc.0", + "version": "2.56.1", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", From 03c31fc3625afadc16d6eb2ca7d91c898bf18de6 Mon Sep 17 00:00:00 2001 From: Afsal K Date: Mon, 23 Dec 2024 12:07:41 +0530 Subject: [PATCH 2/3] fix(SidePanel): resolve storybook SlideOver animation flickering in doc page (#6554) * refactor(useFocus): refactor repeated useEffect code * fix(SidePanel): resolve storybook flickering issue * fix(SidePanel): resolve storybook flickering issue --- .../SidePanel/SidePanel.docs-page.js | 2 +- .../src/components/SidePanel/SidePanel.tsx | 34 +++++++++---------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/packages/ibm-products/src/components/SidePanel/SidePanel.docs-page.js b/packages/ibm-products/src/components/SidePanel/SidePanel.docs-page.js index 12911e413c..36f1c36bb5 100644 --- a/packages/ibm-products/src/components/SidePanel/SidePanel.docs-page.js +++ b/packages/ibm-products/src/components/SidePanel/SidePanel.docs-page.js @@ -8,7 +8,7 @@ import React from 'react'; import { StoryDocsPage } from '../../global/js/utils/StoryDocsPage'; -import * as stories from './SidePanel'; +import * as stories from './SidePanel.stories'; const DocsPage = () => ( { - if (open) { - setTimeout(() => { + if (open && animationComplete) { + if ( + selectorPrimaryFocus && + getSpecificElement(sidePanelRef?.current, selectorPrimaryFocus) + ) { + const primeFocusEl = getSpecificElement( + sidePanelRef?.current, + selectorPrimaryFocus + ); if ( - selectorPrimaryFocus && - getSpecificElement(sidePanelRef?.current, selectorPrimaryFocus) + primeFocusEl && + window?.getComputedStyle(primeFocusEl)?.display !== 'none' ) { - const primeFocusEl = getSpecificElement( - sidePanelRef?.current, - selectorPrimaryFocus - ); - if ( - primeFocusEl && - window?.getComputedStyle(primeFocusEl)?.display !== 'none' - ) { - (primeFocusEl as HTMLElement)?.focus(); - } - } else if (!slideIn) { - firstElement?.focus(); + setTimeout(() => primeFocusEl?.focus(), 0); } - }, 0); + } else if (!slideIn) { + setTimeout(() => firstElement?.focus(), 0); + } } }, [ animationComplete, From dbcba3a83ccd57d37afb71fe83423217a68f08a8 Mon Sep 17 00:00:00 2001 From: carbon-bot Date: Mon, 23 Dec 2024 23:59:41 +0000 Subject: [PATCH 3/3] chore(telemetry): update telemetry config --- packages/ibm-products/telemetry.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/ibm-products/telemetry.yml b/packages/ibm-products/telemetry.yml index 248c74a6ca..be04f5afec 100644 --- a/packages/ibm-products/telemetry.yml +++ b/packages/ibm-products/telemetry.yml @@ -456,14 +456,17 @@ collect: - editButtonText - editing - editSuccess + - editSuccessMessage - editSuccessTitle - errorText - generateButtonText - generateSuccessBody + - generateSuccessMessage - generateSuccessTitle - generateTitle - hasAPIKeyVisibilityToggle - hasDownloadLink + - helperText - hideAPIKeyLabel - loadingText - modalLabel @@ -532,6 +535,7 @@ collect: - fixedIsVisible # CoachmarkOverlayElements - isVisible + - onBack # CoachmarkStackHome - onClickNavItem # Columns