Skip to content

Commit

Permalink
Merge branch 'main' into update-packages-ilyezem
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmenendez committed Sep 3, 2024
2 parents 8125686 + 5cb118d commit 57bf1f0
Show file tree
Hide file tree
Showing 19 changed files with 150 additions and 72 deletions.
8 changes: 8 additions & 0 deletions config/jest-config-ibm-cloud-cognitive/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

# [1.8.0-rc.0](https://github.com/carbon-design-system/ibm-products/compare/jest-config-ibm-cloud-cognitive@[email protected]) (2024-09-03)

**Note:** Version bump only for package jest-config-ibm-cloud-cognitive





# [1.7.0](https://github.com/carbon-design-system/ibm-products/compare/jest-config-ibm-cloud-cognitive@[email protected]) (2024-08-28)

**Note:** Version bump only for package jest-config-ibm-cloud-cognitive
Expand Down
2 changes: 1 addition & 1 deletion config/jest-config-ibm-cloud-cognitive/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jest-config-ibm-cloud-cognitive",
"private": true,
"version": "1.7.0",
"version": "1.8.0-rc.0",
"license": "Apache-2.0",
"main": "index.js",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2020, 2020
* Copyright IBM Corp. 2020, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -29,33 +29,22 @@ const defaultOptions = {
},
};

function toHaveNoAxeViolations(node, options = {}) {
return new Promise((resolve) => {
axe.run(
node,
{
...defaultOptions,
...options,
},
(error, result) => {
if (error) {
throw error;
}
async function toHaveNoAxeViolations(node, options = {}) {
const result = await axe.run(node, {
...defaultOptions,
...options,
});

if (result.violations.length > 0) {
resolve({
message: () => formatOutput(result.violations),
pass: false,
});
return;
}
if (result.violations.length > 0) {
return {
message: () => formatOutput(result.violations),
pass: false,
};
}

resolve({
pass: true,
});
}
);
});
return {
pass: true,
};
}

function formatOutput(violations) {
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/publishing-releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ release team will need to do the following:
- [ ] Check the generated
[release](https://github.com/carbon-design-system/ibm-products/releases)
to ensure the release notes are correct.
- [ ] Edit the generated release, and change the release from `pre-release` to
`latest`.
![Screenshot of release label with latest option selected](https://github.com/user-attachments/assets/0be18f12-380e-45f2-b8aa-cfd01b9aa50c)
- [ ] Post a message to the `#ibmproducts-pal-dev` Slack channel to announce the
new version of `@carbon/ibm-products`.

Expand Down Expand Up @@ -258,6 +255,9 @@ validated. During this stage, the release team will do the following:
- [ ] Check the generated
[release](https://github.com/carbon-design-system/ibm-products/releases)
to ensure the release notes are correct.
- [ ] Edit the generated release, and change the release from `pre-release` to
`latest`.
![Screenshot of release label with latest option selected](https://github.com/user-attachments/assets/0be18f12-380e-45f2-b8aa-cfd01b9aa50c)
- [ ] Post a message to the `#ibmproducts-pal-dev` Slack channel to announce the
new version of `@carbon/ibm-products`.

Expand Down
8 changes: 8 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.25.0-rc.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-09-03)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-core





# [2.24.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-08-28)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-core
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/ibm-cloud-cognitive-core",
"private": true,
"version": "2.24.0",
"version": "2.25.0-rc.0",
"license": "Apache-2.0",
"main": "scripts/build.js",
"repository": {
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"devDependencies": {
"@carbon/grid": "^11.24.1",
"@carbon/ibm-products-styles": "^2.44.0",
"@carbon/ibm-products-styles": "^2.45.0-rc.0",
"@carbon/layout": "^11.23.1",
"@carbon/motion": "^11.19.1",
"@carbon/react": "^1.61.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/ibm-products-community/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

# [0.10.0-rc.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-09-03)

**Note:** Version bump only for package @carbon/ibm-products-community





# [0.9.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-08-28)

**Note:** Version bump only for package @carbon/ibm-products-community
Expand Down
4 changes: 2 additions & 2 deletions packages/ibm-products-community/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/ibm-products-community",
"description": "Carbon for IBM Products Community package",
"version": "0.9.0",
"version": "0.10.0-rc.0",
"license": "Apache-2.0",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -39,7 +39,7 @@
"babel-preset-ibm-cloud-cognitive": "^0.14.40",
"cross-env": "^7.0.3",
"jest": "^29.6.2",
"jest-config-ibm-cloud-cognitive": "^1.7.0",
"jest-config-ibm-cloud-cognitive": "^1.8.0-rc.0",
"jest-environment-jsdom": "^29.6.2",
"rimraf": "^5.0.1",
"sass": "^1.77.2"
Expand Down
20 changes: 20 additions & 0 deletions packages/ibm-products-styles/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.45.0-rc.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-09-03)


### Bug Fixes

* **conditionBuilder:** _conditionBuilderItem.scss causing sass warnings ([#5906](https://github.com/carbon-design-system/ibm-products/issues/5906)) ([2100bd4](https://github.com/carbon-design-system/ibm-products/commit/2100bd4134628ce785c411f582cd3e5d2b53cbbb))
* **Datagrid:** csp violation ([#5831](https://github.com/carbon-design-system/ibm-products/issues/5831)) ([73a9824](https://github.com/carbon-design-system/ibm-products/commit/73a98242150e421a7c414bf7743f453a2234caba))
* editinplace replace outline with border ([#5869](https://github.com/carbon-design-system/ibm-products/issues/5869)) ([0fb5afd](https://github.com/carbon-design-system/ibm-products/commit/0fb5afd7c210e6b726f67887b8126f3f0692c106))


### Features

* **ConditionBuilder:** enhancing the conditional operators section that manages the primary logic flow ([#5921](https://github.com/carbon-design-system/ibm-products/issues/5921)) ([91733fb](https://github.com/carbon-design-system/ibm-products/commit/91733fb43157eab26c885f0652adaf9276f372d4))
* **Conditionbuilder:** renaming both variants to Hierarchical and Non-Hierarchical ([#5847](https://github.com/carbon-design-system/ibm-products/issues/5847)) ([791e2b3](https://github.com/carbon-design-system/ibm-products/commit/791e2b31549f3f4480cac2fc142e550b5e12ea31))
* **datagrids:** Add custom batch actions display min ([#5776](https://github.com/carbon-design-system/ibm-products/issues/5776)) ([485e8bc](https://github.com/carbon-design-system/ibm-products/commit/485e8bcac3193e56d65721076160944b4e126256))





# [2.44.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-08-28)

**Note:** Version bump only for package @carbon/ibm-products-styles
Expand Down
4 changes: 2 additions & 2 deletions packages/ibm-products-styles/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/ibm-products-styles",
"description": "Carbon for IBM Products styles",
"version": "2.44.0",
"version": "2.45.0-rc.0",
"license": "Apache-2.0",
"installConfig": {
"hoistingLimits": "none"
Expand Down Expand Up @@ -52,7 +52,7 @@
"cross-env": "^7.0.3",
"glob": "^11.0.0",
"jest": "^29.7.0",
"jest-config-ibm-cloud-cognitive": "^1.7.0",
"jest-config-ibm-cloud-cognitive": "^1.8.0-rc.0",
"jest-environment-jsdom": "^29.7.0",
"npm-check-updates": "^17.1.0",
"npm-run-all": "^4.1.5",
Expand Down
39 changes: 39 additions & 0 deletions packages/ibm-products/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,45 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.49.0-rc.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-09-03)


### Bug Fixes

* **Conditionbuilder:** add await for accessibility test ([#5794](https://github.com/carbon-design-system/ibm-products/issues/5794)) ([0d86010](https://github.com/carbon-design-system/ibm-products/commit/0d860101791e8587f8d1688348aae8438c4d0fc9))
* **create-full-page-step:** update hasFieldSet type ([#5876](https://github.com/carbon-design-system/ibm-products/issues/5876)) ([54afdf6](https://github.com/carbon-design-system/ibm-products/commit/54afdf6f31b60e87a21949a69e01ec94bbdc2b79))
* data spreadsheet object drag drop ([#5800](https://github.com/carbon-design-system/ibm-products/issues/5800)) ([25e95ba](https://github.com/carbon-design-system/ibm-products/commit/25e95bab041d69b28cc8e2a1c15ddd78ea4ab311))
* **Datagrid:** clickable row retain focus after sidepanel closes ([#5952](https://github.com/carbon-design-system/ibm-products/issues/5952)) ([0df9085](https://github.com/carbon-design-system/ibm-products/commit/0df908523eab166b8bb63731f60a727ef846e41f))
* **Datagrid:** csp violation ([#5831](https://github.com/carbon-design-system/ibm-products/issues/5831)) ([73a9824](https://github.com/carbon-design-system/ibm-products/commit/73a98242150e421a7c414bf7743f453a2234caba))
* **datagrid:** customise column tearsheet update issue with new columns ([#5953](https://github.com/carbon-design-system/ibm-products/issues/5953)) ([7ab472a](https://github.com/carbon-design-system/ibm-products/commit/7ab472a22d78b07b900513f0b1a0ddce8b7db2f7))
* **Datagrid:** remove unused span with inputProps ([#5915](https://github.com/carbon-design-system/ibm-products/issues/5915)) ([517e4f3](https://github.com/carbon-design-system/ibm-products/commit/517e4f36631cf1cc81d6f21fd25a83b3c65da540))
* **DataGrid:** row size change issues with virtual scrolling enabled ([#5895](https://github.com/carbon-design-system/ibm-products/issues/5895)) ([a297e8a](https://github.com/carbon-design-system/ibm-products/commit/a297e8a1dc67e8017083452c79b5162eaf282c99))
* **EditInPlace:** removes focus when pressing esc or enter key ([#5943](https://github.com/carbon-design-system/ibm-products/issues/5943)) ([5eff024](https://github.com/carbon-design-system/ibm-products/commit/5eff0243b65123fb39c801194a1b1a8bb9889240))
* first step logic enhancement for CreateTearsheet ([#5884](https://github.com/carbon-design-system/ibm-products/issues/5884)) ([4f3b70f](https://github.com/carbon-design-system/ibm-products/commit/4f3b70f93d43a94c50b8eea77b5960f30b59c403))
* **getstartedcard:** disable vairant issue in JAWS ([#5886](https://github.com/carbon-design-system/ibm-products/issues/5886)) ([515d4c0](https://github.com/carbon-design-system/ibm-products/commit/515d4c0c89f8fe70539946072e9397d297b0faac))
* **NotificationPanel:** add missing role ([#5810](https://github.com/carbon-design-system/ibm-products/issues/5810)) ([bf17410](https://github.com/carbon-design-system/ibm-products/commit/bf1741045997b784c98068c618260dfbc7a79dc6))
* **ProductiveCard:** makes graph screen readable, story only. ([#5883](https://github.com/carbon-design-system/ibm-products/issues/5883)) ([a2db976](https://github.com/carbon-design-system/ibm-products/commit/a2db976c1609df5fd83459e5137e42d3a356ca5d))
* reword props in card stories ([#5871](https://github.com/carbon-design-system/ibm-products/issues/5871)) ([df80f00](https://github.com/carbon-design-system/ibm-products/commit/df80f0029af2c2ec6d7c53b66d69dfc007c1f446))
* **sidepanel:** button text change ([#5907](https://github.com/carbon-design-system/ibm-products/issues/5907)) ([f701002](https://github.com/carbon-design-system/ibm-products/commit/f7010028dbedae7178244b4123a3b0bc485efa70))
* **TagSet:** fix string formatting ([#5880](https://github.com/carbon-design-system/ibm-products/issues/5880)) ([9339559](https://github.com/carbon-design-system/ibm-products/commit/93395596b529fb2e1bb7591e8d4792f1ff1de7ff))
* **tearsheet:** focus without sentinels ([#5882](https://github.com/carbon-design-system/ibm-products/issues/5882)) ([f362806](https://github.com/carbon-design-system/ibm-products/commit/f3628062a6e65ea5963353a79da1734db6bc9d80))
* **tearsheet:** implement a workaround ([#5960](https://github.com/carbon-design-system/ibm-products/issues/5960)) ([c7d1ef3](https://github.com/carbon-design-system/ibm-products/commit/c7d1ef37a22f3820dd22ad97cd247c169fdc97b4))
* **Tearsheet:** update portalTarget type ([#5899](https://github.com/carbon-design-system/ibm-products/issues/5899)) ([d7aa99e](https://github.com/carbon-design-system/ibm-products/commit/d7aa99ed058d3cd55302bc6fe5c169e5a120d64e))
* **ToolbarButton:** deprecate iconDescription and use label instead ([#5893](https://github.com/carbon-design-system/ibm-products/issues/5893)) ([b968386](https://github.com/carbon-design-system/ibm-products/commit/b968386090b0934f770c66a6eab08f4af0054ee4))
* **useFocus:** change delay to 1ms ([#5950](https://github.com/carbon-design-system/ibm-products/issues/5950)) ([5883cd3](https://github.com/carbon-design-system/ibm-products/commit/5883cd3a14039ab7ca044b4ab95621bb70ccf68e))


### Features

* **ConditionBuilder:** enhancing the conditional operators section that manages the primary logic flow ([#5921](https://github.com/carbon-design-system/ibm-products/issues/5921)) ([91733fb](https://github.com/carbon-design-system/ibm-products/commit/91733fb43157eab26c885f0652adaf9276f372d4))
* **Conditionbuilder:** renaming both variants to Hierarchical and Non-Hierarchical ([#5847](https://github.com/carbon-design-system/ibm-products/issues/5847)) ([791e2b3](https://github.com/carbon-design-system/ibm-products/commit/791e2b31549f3f4480cac2fc142e550b5e12ea31))
* **datagrid:** adds radio filter ([#5877](https://github.com/carbon-design-system/ibm-products/issues/5877)) ([12667e8](https://github.com/carbon-design-system/ibm-products/commit/12667e8387afc97c8a81a791c72f7ad323d7be6b))
* **datagrids:** Add custom batch actions display min ([#5776](https://github.com/carbon-design-system/ibm-products/issues/5776)) ([485e8bc](https://github.com/carbon-design-system/ibm-products/commit/485e8bcac3193e56d65721076160944b4e126256))





# [2.48.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-08-28)

**Note:** Version bump only for package @carbon/ibm-products
Expand Down
6 changes: 3 additions & 3 deletions packages/ibm-products/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/ibm-products",
"description": "Carbon for IBM Products",
"version": "2.48.0",
"version": "2.49.0-rc.0",
"license": "Apache-2.0",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -81,7 +81,7 @@
"fs-extra": "^11.2.0",
"glob": "^11.0.0",
"jest": "^29.7.0",
"jest-config-ibm-cloud-cognitive": "^1.7.0",
"jest-config-ibm-cloud-cognitive": "^1.8.0-rc.0",
"jest-environment-jsdom": "^29.7.0",
"namor": "^1.1.2",
"npm-check-updates": "^17.1.0",
Expand All @@ -96,7 +96,7 @@
"dependencies": {
"@babel/runtime": "^7.25.6",
"@carbon/feature-flags": "^0.20.0",
"@carbon/ibm-products-styles": "^2.44.0",
"@carbon/ibm-products-styles": "^2.45.0-rc.0",
"@carbon/telemetry": "^0.1.0",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2021, 2021
* Copyright IBM Corp. 2021, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -93,17 +93,16 @@ describe(componentName, () => {
expect(screen.getByRole('presentation')).toHaveClass(blockClass);
});

// Currently fails due to https://github.com/carbon-design-system/carbon/issues/14135 regarding focusable button
it.skip('has no accessibility violations when closed', async () => {
it('has no accessibility violations when closed', async () => {
const { container } = renderComponent({ open: false });
expect(container).toBeAccessible(`${componentName} closed`);
expect(container).toHaveNoAxeViolations();
await expect(container).toBeAccessible(`${componentName} closed`);
await expect(container).toHaveNoAxeViolations();
});

it('has no accessibility violations', async () => {
const { container } = renderComponent({ open: true });
expect(container).toBeAccessible(componentName);
expect(container).toHaveNoAxeViolations();
await expect(container).toBeAccessible(componentName);
await expect(container).toHaveNoAxeViolations();
});

it('renders closeIconDescription, title, logo, and version', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2021, 2022
* Copyright IBM Corp. 2021, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -185,8 +185,7 @@ describe(componentName, () => {
window.ResizeObserver = ResizeObserver;
});

// Currently fails due to https://github.com/carbon-design-system/carbon/issues/14135 regarding focusable button
it.skip('has no accessibility violations', async () => {
it('has no accessibility violations', async () => {
const { container } = renderComponent({ ...defaultFullPageProps });

expect(container).toBeAccessible(componentName);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2021, 2021
* Copyright IBM Corp. 2021, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -76,17 +76,16 @@ describe(componentName, () => {
expect(screen.getByText(defaultProps.primaryButtonText)).toBeVisible();
});

it.skip('has no accessibility violations when closed', async () => {
// Currently fails due to https://github.com/carbon-design-system/carbon/issues/14135 regarding focusable button
it('has no accessibility violations when closed', async () => {
const { container } = renderComponent({ open: false });
expect(container).toBeAccessible(componentName);
expect(container).toHaveNoAxeViolations();
await expect(container).toBeAccessible(componentName);
await expect(container).toHaveNoAxeViolations();
});

it('has no accessibility violations', async () => {
const { container } = renderComponent();
expect(container).toBeAccessible(componentName);
expect(container).toHaveNoAxeViolations();
await expect(container).toBeAccessible(componentName);
await expect(container).toHaveNoAxeViolations();
});

it(`renders children`, async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2020, 2023
* Copyright IBM Corp. 2020, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -106,8 +106,7 @@ const commonTests = (Ts, name, props, testActions) => {
});
});

// Currently fails due to https://github.com/carbon-design-system/carbon/issues/14135 regarding focusable button
it.skip('has no accessibility violations when closed', async () => {
it('has no accessibility violations when closed', async () => {
const { container } = render(
<Ts {...{ ...props, closeIconDescription, label, title }} />
);
Expand Down
Loading

0 comments on commit 57bf1f0

Please sign in to comment.