Skip to content

Commit

Permalink
Merge branch 'main' into chore/6512-percy-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeethababu9223 authored Dec 24, 2024
2 parents 03518db + d341b15 commit bc6d2bf
Show file tree
Hide file tree
Showing 35 changed files with 2,533 additions and 3,769 deletions.
2 changes: 1 addition & 1 deletion config/babel-preset-ibm-cloud-cognitive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon)/'"
},
"devDependencies": {
"npm-check-updates": "^16.14.12"
"npm-check-updates": "^17.1.11"
},
"dependencies": {
"@babel/core": "^7.23.9",
Expand Down
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.15.0](https://github.com/carbon-design-system/ibm-products/compare/jest-config-ibm-cloud-cognitive@[email protected]) (2024-12-18)

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





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


Expand Down
4 changes: 2 additions & 2 deletions 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.15.0-rc.0",
"version": "1.15.0",
"license": "Apache-2.0",
"main": "index.js",
"repository": {
Expand All @@ -22,7 +22,7 @@
"upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon|^chalk$)/'"
},
"devDependencies": {
"npm-check-updates": "^16.14.12"
"npm-check-updates": "^17.1.11"
},
"peerDependencies": {
"jest": "^29.7.0"
Expand Down
8 changes: 8 additions & 0 deletions config/storybook-addon-carbon-theme/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.5.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-12-18)

**Note:** Version bump only for package @carbon/storybook-addon-theme





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

**Note:** Version bump only for package @carbon/storybook-addon-theme
Expand Down
4 changes: 2 additions & 2 deletions config/storybook-addon-carbon-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/storybook-addon-theme",
"description": "Carbon theme switcher for Storybook",
"version": "2.5.0-rc.0",
"version": "2.5.0",
"license": "Apache-2.0",
"main": "dist/react.js",
"repository": {
Expand Down Expand Up @@ -60,7 +60,7 @@
"@babel/cli": "^7.23.9",
"@babel/core": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"npm-check-updates": "^16.14.12",
"npm-check-updates": "^17.1.11",
"npm-run-all": "^4.1.5",
"rimraf": "^5.0.5"
}
Expand Down
51 changes: 51 additions & 0 deletions e2e/components/Checklist/Checklist-test.avt.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,56 @@ test.describe('Checklist @avt', () => {
},
});
await expect(page).toHaveNoACViolations('Checklist @avt-default-state');

const buttonEle = page.locator('[aria-label="Checklist toggle"]');
const viewButton = page.getByRole('button', { name: 'View all (10)' });
const tooltipContent = await page.getByText('Toggle');
const taskButtons = page.locator('[title="Task name"]');
//press tab to move focus to buttonELement
await page.keyboard.press('Tab');
await expect(buttonEle).toBeInViewport();
await expect(buttonEle).toBeFocused();

//check the checklist is expanded
await expect(buttonEle).toHaveAttribute('aria-expanded', 'true');
await expect(viewButton).toBeVisible();
//Press enter to collapse the checklist
await page.keyboard.press('Enter');
await expect(buttonEle).toHaveAttribute('aria-expanded', 'false');

//Press escape to hide tooltip
await page.keyboard.press('Escape');
await expect(tooltipContent).not.toBeVisible();

//Press tab to move focus to 1st Task name
await page.keyboard.press('Tab');
await expect(taskButtons.nth(0)).toBeFocused();

//Press tab to move focus to 2nd Task name
await page.keyboard.press('Tab');
await expect(taskButtons.nth(1)).toBeFocused();

//Press tab to move focus to 3rd Task name
await page.keyboard.press('Tab');
await expect(taskButtons.nth(2)).toBeFocused();

//Press tab to move focus to View all(10) button
await page.keyboard.press('Tab');
await expect(viewButton).toBeFocused();

//check button element is showing Toggle tooltip while hovering
await buttonEle.hover();
await expect(tooltipContent).toBeVisible();
});

test('@avt-task-state', async ({ page }) => {
await visitStory(page, {
component: 'Checklist',
id: 'ibm-products-onboarding-checklist--task-states',
globals: {
carbonTheme: 'white',
},
});
await expect(page).toHaveNoACViolations('Checklist @avt-task-state');
});
});
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"upgrade:dependencies:examples": "npm-check-updates -u --dep dev,peer,prod --color --target minor --packageFile 'scripts/example-gallery-builder/update-example/**/package.json'",
"upgrade:automatic": "run-s -s 'upgrade:dependencies:*'",
"upgrade:carbon": "npm-check-updates -u --dep dev,peer,prod --packageFile '{package.json,{config/**,packages/**}/package.json}' --filter '/carbon/' --target minor",
"upgrade:manual": "sh ./scripts/monorepo-npm-upgrade.sh",
"visual-snapshot": "cd packages/core && yarn percy storybook storybook-static"
},
"devDependencies": {
Expand All @@ -76,7 +75,7 @@
"@babel/preset-react": "^7.17.12",
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@playwright/test": "^1.36.2",
"@playwright/test": "^1.49.1",
"@testing-library/dom": "^8.11.4",
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
Expand All @@ -99,11 +98,10 @@
"jest-canvas-mock": "2.5.2",
"jest-junit": "^16.0.0",
"json": "^11.0.0",
"lerna": "^8.0.2",
"lerna": "^8.1.9",
"lint-staged": "^15.2.0",
"npm-check-updates": "^16.14.12",
"npm-check-updates": "^17.1.11",
"npm-run-all": "^4.1.5",
"npm-upgrade": "^3.1.0",
"postcss": "^8.4.33",
"prettier": "^2.8.8",
"prettier-config-carbon": "^0.11.0",
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.32.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-12-18)

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





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


Expand Down
10 changes: 5 additions & 5 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.32.0-rc.0",
"version": "2.32.0",
"license": "Apache-2.0",
"main": "scripts/build.js",
"repository": {
Expand Down Expand Up @@ -29,10 +29,10 @@
},
"devDependencies": {
"@carbon/grid": "^11.29.0",
"@carbon/ibm-products-styles": "^2.52.0-rc.0",
"@carbon/ibm-products-styles": "^2.52.0",
"@carbon/layout": "^11.28.0",
"@carbon/motion": "^11.24.0",
"@carbon/react": "^1.71.1",
"@carbon/react": "^1.72.0",
"@carbon/themes": "^11.43.0",
"@carbon/type": "^11.33.0",
"@percy/cli": "^1.30.1",
Expand All @@ -54,7 +54,7 @@
"@storybook/source-loader": "^8.4.5",
"@storybook/theming": "^8.4.5",
"fast-glob": "^3.2.7",
"npm-check-updates": "^16.14.12",
"npm-check-updates": "^17.1.11",
"npm-run-all": "^4.1.5",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand All @@ -65,7 +65,7 @@
"sass": "^1.80.6",
"storybook": "^8.4.5",
"typescript": "^5.3.3",
"vite": "^5.2.10"
"vite": "^6.0.3"
},
"dependencies": {
"lottie-web": "^5.12.2"
Expand Down
8 changes: 8 additions & 0 deletions packages/ibm-products-styles/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.52.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-12-18)

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





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


Expand Down
6 changes: 3 additions & 3 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.52.0-rc.0",
"version": "2.52.0",
"license": "Apache-2.0",
"installConfig": {
"hoistingLimits": "none"
Expand Down Expand Up @@ -52,9 +52,9 @@
"cross-env": "^7.0.3",
"glob": "^10.3.10",
"jest": "^29.7.0",
"jest-config-ibm-cloud-cognitive": "^1.15.0-rc.0",
"jest-config-ibm-cloud-cognitive": "^1.15.0",
"jest-environment-jsdom": "^29.7.0",
"npm-check-updates": "^16.14.12",
"npm-check-updates": "^17.1.11",
"npm-run-all": "^4.1.5",
"rimraf": "^5.0.5",
"sass": "^1.80.6",
Expand Down
8 changes: 8 additions & 0 deletions packages/ibm-products-web-components/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.5.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-12-18)

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





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


Expand Down
12 changes: 6 additions & 6 deletions packages/ibm-products-web-components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/ibm-products-web-components",
"description": "Carbon for IBM Products Web Components",
"version": "0.5.0-rc.0",
"version": "0.5.0",
"license": "Apache-2.0",
"main": "es/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -49,9 +49,9 @@
"wca": "web-component-analyzer analyze src --outFile custom-elements.json"
},
"dependencies": {
"@carbon/ibm-products-styles": "^2.52.0-rc.0",
"@carbon/styles": "1.70.0",
"@carbon/web-components": "2.18.0",
"@carbon/ibm-products-styles": "^2.52.0",
"@carbon/styles": "1.71.0",
"@carbon/web-components": "2.19.0",
"lit": "^3.1.0"
},
"devDependencies": {
Expand All @@ -77,7 +77,7 @@
"autoprefixer": "^10.4.20",
"cssnano": "^7.0.6",
"eslint": "^9.11.1",
"eslint-config-carbon": "3.17.1",
"eslint-config-carbon": "3.18.0",
"globby": "^14.0.2",
"happy-dom": "^15.11.6",
"postcss": "^8.4.47",
Expand All @@ -89,7 +89,7 @@
"storybook": "^8.4.5",
"storybook-addon-accessibility-checker": "^3.1.61-rc.3",
"typescript": "^5.5.3",
"vite": "^5.4.1",
"vite": "^6.0.3",
"vitest": "^2.1.2",
"web-component-analyzer": "2.0.0"
}
Expand Down
27 changes: 27 additions & 0 deletions packages/ibm-products/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@
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/[email protected]...@carbon/[email protected]) (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/[email protected]...@carbon/[email protected]) (2024-12-18)


### Bug Fixes

* **EmptyState:** added useId handling for older react version ([#6620](https://github.com/carbon-design-system/ibm-products/issues/6620)) ([45af420](https://github.com/carbon-design-system/ibm-products/commit/45af4204487b79754b6ee9c950c23119e2684a99))





# [2.56.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/[email protected]...@carbon/[email protected]) (2024-12-18)

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





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


Expand Down
12 changes: 6 additions & 6 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.56.0-rc.0",
"version": "2.56.1",
"license": "Apache-2.0",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -81,10 +81,10 @@
"fs-extra": "^11.2.0",
"glob": "^10.3.10",
"jest": "^29.7.0",
"jest-config-ibm-cloud-cognitive": "^1.15.0-rc.0",
"jest-config-ibm-cloud-cognitive": "^1.15.0",
"jest-environment-jsdom": "^29.7.0",
"namor": "^1.1.2",
"npm-check-updates": "^16.14.12",
"npm-check-updates": "^17.1.11",
"npm-run-all": "^4.1.5",
"rimraf": "^5.0.5",
"rollup": "^4.27.3",
Expand All @@ -96,14 +96,14 @@
"dependencies": {
"@babel/runtime": "^7.23.9",
"@carbon/feature-flags": "^0.24.0",
"@carbon/ibm-products-styles": "^2.52.0-rc.0",
"@carbon/ibm-products-styles": "^2.52.0",
"@carbon/telemetry": "^0.1.0",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@ibm/telemetry-js": "^1.5.0",
"framer-motion": "^6.5.1 < 7",
"framer-motion": "^11.11.17",
"immutability-helper": "^3.1.1",
"lodash": "^4.17.21",
"lottie-web": "^5.12.2",
Expand All @@ -114,7 +114,7 @@
"@carbon/grid": "^11.29.0",
"@carbon/layout": "^11.28.0",
"@carbon/motion": "^11.24.0",
"@carbon/react": "^1.71.1",
"@carbon/react": "^1.72.0",
"@carbon/themes": "^11.43.0",
"@carbon/type": "^11.33.0",
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
Expand Down
Loading

0 comments on commit bc6d2bf

Please sign in to comment.