diff --git a/.commitlintrc.js b/.commitlintrc.js new file mode 100644 index 0000000000..e625956837 --- /dev/null +++ b/.commitlintrc.js @@ -0,0 +1,25 @@ +module.exports = { + extends: ['@commitlint/config-conventional'], + rules: { + 'header-max-length': [2, 'always', 72], + 'body-max-line-length': [2, 'always', 80], + 'scope-case': [0, 'always', 'lower-case'], + 'type-enum': [ + 2, + 'always', + [ + 'build', + 'ci', + 'chore', + 'docs', + 'feat', + 'fix', + 'perf', + 'refactor', + 'revert', + 'style', + 'test', + ], + ], + }, +}; diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000000..f5c73e56ab --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,60 @@ +module.exports = { + parser: '@babel/eslint-parser', + parserOptions: { + babelOptions: { + presets: ['@babel/preset-react'], + }, + }, + plugins: ['ssr-friendly'], + ignorePatterns: ['packages/ibm-products-web-components/**/*'], + extends: ['carbon', 'plugin:ssr-friendly/recommended'], + rules: { + 'react/display-name': [0], + 'react/forbid-component-props': [ + 2, + { + forbid: [ + { + propName: 'style', + disallowedFor: ['Datagrid', 'Carousel', 'Checklist', 'Coachmark'], + message: 'Avoid using style prop', + }, + ], + }, + ], + 'react/forbid-dom-props': [ + 2, + { + forbid: [ + { + propName: 'style', + disallowedFor: ['Datagrid', 'Carousel', 'Checklist', 'Coachmark'], + message: 'Avoid using style prop', + }, + ], + }, + ], + }, + overrides: [ + { + files: ['*.ts', '*.tsx'], + plugins: ['@typescript-eslint'], + extends: ['plugin:@typescript-eslint/recommended'], + parser: '@typescript-eslint/parser', + rules: { + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + args: 'after-used', + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + }, + ], + '@typescript-eslint/no-empty-function': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/ban-ts-comment': 'off', + }, + }, + ], +}; diff --git a/.percy.yml b/.percy.yml index 859929afc9..59f582dc7c 100644 --- a/.percy.yml +++ b/.percy.yml @@ -5,13 +5,18 @@ snapshot: - 360 - 1366 minHeight: 1024 +discovery: + network_idle_timeout: 500 storybook: include: ['/IBM Products/'] exclude: [ '/Datagrid/*', '/DataSpreadsheet/', + 'Cascade: With Grid', + 'Cascade: Without Grid', + # to be fixed '/MultiAddSelect: With Avatars/', # avoid dynamic avatar color generation '/Tag set/TagSet: Hundreds Of Tags', # avoid dynamic tag color generation - '/Page header/PageHeader: Page header with all items, pre-collapsed', # takes random time, to collapse on initial load + '/Page header/PageHeader: Page header with all items, pre-collapsed', # takes random time, to collapse on initial load. '/Tag set/TagSet: Many Tags', # takes time to calculate the overflow, causing random layout shift ] diff --git a/.stylelintrc.js b/.stylelintrc.js index 310f32ed37..edfe291b21 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -1,7 +1,11 @@ module.exports = { - root: true, - extends: ['stylelint-config-ibm-products'], + extends: ['stylelint-config-carbon'], rules: { - 'import-notation': 'string', + 'max-nesting-depth': null, + 'scss/no-global-function-names': null, + 'csstools/use-logical': null, + 'scss/load-no-partial-leading-underscore': null, + 'scss/double-slash-comment-inline': null, + 'no-duplicate-selectors': null, }, }; diff --git a/config/cli/.npmignore b/config/cli/.npmignore deleted file mode 100644 index 81ba1598b9..0000000000 --- a/config/cli/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -**/__mocks__/** -**/__tests__/** -**/examples/** -**/tasks/** \ No newline at end of file diff --git a/config/cli/CHANGELOG.md b/config/cli/CHANGELOG.md deleted file mode 100644 index c920feaae4..0000000000 --- a/config/cli/CHANGELOG.md +++ /dev/null @@ -1,553 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [0.18.48](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.47...@carbon/ibm-cloud-cognitive-cli@0.18.48) (2024-02-09) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - - - - - -## [0.18.47](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.46...@carbon/ibm-cloud-cognitive-cli@0.18.47) (2023-09-12) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - - - - - -## [0.18.46](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.45...@carbon/ibm-cloud-cognitive-cli@0.18.46) (2023-08-01) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - - - - - -## [0.18.45](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.44...@carbon/ibm-cloud-cognitive-cli@0.18.45) (2023-07-18) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - - - - - -## [0.18.44](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.43...@carbon/ibm-cloud-cognitive-cli@0.18.44) (2023-06-20) - - -### Bug Fixes - -* update to Carbon 11 compatible versions to latest ([#3137](https://github.com/carbon-design-system/ibm-products/issues/3137)) ([1709fc5](https://github.com/carbon-design-system/ibm-products/commit/1709fc5455ab9ccf84345004ac8de075b1ff29b5)) - - - - - -## [0.18.43](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.42...@carbon/ibm-cloud-cognitive-cli@0.18.43) (2023-06-05) - - -### Bug Fixes - -* update to Carbon 11 compatible versions to latest ([#3062](https://github.com/carbon-design-system/ibm-products/issues/3062)) ([b93b07d](https://github.com/carbon-design-system/ibm-products/commit/b93b07da828f7a8e95559572090c886488badce0)) - - - - - -## [0.18.42](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.24...@carbon/ibm-cloud-cognitive-cli@0.18.42) (2023-05-17) - - -### Bug Fixes - -* bring config & version numbers up to those in v1 ([#2993](https://github.com/carbon-design-system/ibm-products/issues/2993)) ([d1803de](https://github.com/carbon-design-system/ibm-products/commit/d1803dea3d463daacaedf168e0630d2958d89ce1)) -* release yml incorrect ([#3019](https://github.com/carbon-design-system/ibm-products/issues/3019)) ([0b19df6](https://github.com/carbon-design-system/ibm-products/commit/0b19df600601829ad531088dd92997c6dd9a1707)) -* repository links following rename ([#3004](https://github.com/carbon-design-system/ibm-products/issues/3004)) ([7940275](https://github.com/carbon-design-system/ibm-products/commit/79402756abb225f27312488d87c74ba1ba2fc72c)) - - - - - -## [0.18.41](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.24...@carbon/ibm-cloud-cognitive-cli@0.18.41) (2023-05-17) - - -### Bug Fixes - -* bring config & version numbers up to those in v1 ([#2993](https://github.com/carbon-design-system/ibm-products/issues/2993)) ([d1803de](https://github.com/carbon-design-system/ibm-products/commit/d1803dea3d463daacaedf168e0630d2958d89ce1)) -* get publish working ([eebfb2f](https://github.com/carbon-design-system/ibm-products/commit/eebfb2f048d3af058cbcfb9a23789dfbaaf69e48)) -* repository links following rename ([#3004](https://github.com/carbon-design-system/ibm-products/issues/3004)) ([7940275](https://github.com/carbon-design-system/ibm-products/commit/79402756abb225f27312488d87c74ba1ba2fc72c)) - - - - - -## [0.18.40](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.24...@carbon/ibm-cloud-cognitive-cli@0.18.40) (2023-05-17) - - -### Bug Fixes - -* bring config & version numbers up to those in v1 ([#2993](https://github.com/carbon-design-system/ibm-products/issues/2993)) ([d1803de](https://github.com/carbon-design-system/ibm-products/commit/d1803dea3d463daacaedf168e0630d2958d89ce1)) -* get publish working ([eebfb2f](https://github.com/carbon-design-system/ibm-products/commit/eebfb2f048d3af058cbcfb9a23789dfbaaf69e48)) -* repository links following rename ([#3004](https://github.com/carbon-design-system/ibm-products/issues/3004)) ([7940275](https://github.com/carbon-design-system/ibm-products/commit/79402756abb225f27312488d87c74ba1ba2fc72c)) - - - - - -## [0.18.39](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.24...@carbon/ibm-cloud-cognitive-cli@0.18.39) (2023-05-17) - - -### Bug Fixes - -* bring config & version numbers up to those in v1 ([#2993](https://github.com/carbon-design-system/ibm-products/issues/2993)) ([d1803de](https://github.com/carbon-design-system/ibm-products/commit/d1803dea3d463daacaedf168e0630d2958d89ce1)) -* get publish working ([eebfb2f](https://github.com/carbon-design-system/ibm-products/commit/eebfb2f048d3af058cbcfb9a23789dfbaaf69e48)) -* repository links following rename ([#3004](https://github.com/carbon-design-system/ibm-products/issues/3004)) ([7940275](https://github.com/carbon-design-system/ibm-products/commit/79402756abb225f27312488d87c74ba1ba2fc72c)) - - - - - -## [0.18.38](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.24...@carbon/ibm-cloud-cognitive-cli@0.18.38) (2023-05-17) - - -### Bug Fixes - -* bring config & version numbers up to those in v1 ([#2993](https://github.com/carbon-design-system/ibm-products/issues/2993)) ([d1803de](https://github.com/carbon-design-system/ibm-products/commit/d1803dea3d463daacaedf168e0630d2958d89ce1)) -* repository links following rename ([#3004](https://github.com/carbon-design-system/ibm-products/issues/3004)) ([7940275](https://github.com/carbon-design-system/ibm-products/commit/79402756abb225f27312488d87c74ba1ba2fc72c)) - - - - - -## [0.18.37](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.24...@carbon/ibm-cloud-cognitive-cli@0.18.37) (2023-05-17) - - -### Bug Fixes - -* bring config & version numbers up to those in v1 ([#2993](https://github.com/carbon-design-system/ibm-products/issues/2993)) ([d1803de](https://github.com/carbon-design-system/ibm-products/commit/d1803dea3d463daacaedf168e0630d2958d89ce1)) -* repository links following rename ([#3004](https://github.com/carbon-design-system/ibm-products/issues/3004)) ([7940275](https://github.com/carbon-design-system/ibm-products/commit/79402756abb225f27312488d87c74ba1ba2fc72c)) - - - - - -## [0.18.36](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.24...@carbon/ibm-cloud-cognitive-cli@0.18.36) (2023-05-17) - - -### Bug Fixes - -* bring config & version numbers up to those in v1 ([#2993](https://github.com/carbon-design-system/ibm-products/issues/2993)) ([d1803de](https://github.com/carbon-design-system/ibm-products/commit/d1803dea3d463daacaedf168e0630d2958d89ce1)) -* repository links following rename ([#3004](https://github.com/carbon-design-system/ibm-products/issues/3004)) ([7940275](https://github.com/carbon-design-system/ibm-products/commit/79402756abb225f27312488d87c74ba1ba2fc72c)) - - - - - -## [0.18.35](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.34...@carbon/ibm-cloud-cognitive-cli@0.18.35) (2023-03-28) - - -### Bug Fixes - -* update to Carbon v10 compatible versions to latest ([#2739](https://github.com/carbon-design-system/ibm-products/issues/2739)) ([7065855](https://github.com/carbon-design-system/ibm-products/commit/70658550120822ab0a6dd296bc9022cc7d0856db)) - - - - - -## [0.18.34](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.33...@carbon/ibm-cloud-cognitive-cli@0.18.34) (2023-03-07) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - - - - - -## [0.18.33](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.32...@carbon/ibm-cloud-cognitive-cli@0.18.33) (2023-02-07) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - - - - - -# Change Log - -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [0.18.32](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.31...@carbon/ibm-cloud-cognitive-cli@0.18.32) (2023-01-10) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -# Change Log - -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [0.18.31](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.30...@carbon/ibm-cloud-cognitive-cli@0.18.31) (2022-11-22) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -# Change Log - -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [0.18.30](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.29...@carbon/ibm-cloud-cognitive-cli@0.18.30) (2022-11-08) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -# Change Log - -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [0.18.29](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.28...@carbon/ibm-cloud-cognitive-cli@0.18.29) (2022-10-25) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -# Change Log - -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [0.18.28](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.27...@carbon/ibm-cloud-cognitive-cli@0.18.28) (2022-10-11) - -### Bug Fixes - -- update to Carbon v10 compatible versions to latest - ([#2331](https://github.com/carbon-design-system/ibm-products/issues/2331)) - ([26f7bc1](https://github.com/carbon-design-system/ibm-products/commit/26f7bc1b05ded4d79634a06dea725746e6e381e7)) - -## [0.18.27](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.26...@carbon/ibm-cloud-cognitive-cli@0.18.27) (2022-09-27) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.26](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.25...@carbon/ibm-cloud-cognitive-cli@0.18.26) (2022-09-06) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.25](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.24...@carbon/ibm-cloud-cognitive-cli@0.18.25) (2022-08-16) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.24](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.23...@carbon/ibm-cloud-cognitive-cli@0.18.24) (2022-08-02) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.23](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.22...@carbon/ibm-cloud-cognitive-cli@0.18.23) (2022-07-19) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.22](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.21...@carbon/ibm-cloud-cognitive-cli@0.18.22) (2022-07-12) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.21](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.20...@carbon/ibm-cloud-cognitive-cli@0.18.21) (2022-05-17) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.20](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.19...@carbon/ibm-cloud-cognitive-cli@0.18.20) (2022-05-10) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.19](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.18...@carbon/ibm-cloud-cognitive-cli@0.18.19) (2022-05-03) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.18](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.17...@carbon/ibm-cloud-cognitive-cli@0.18.18) (2022-04-26) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.17](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.16...@carbon/ibm-cloud-cognitive-cli@0.18.17) (2022-04-19) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.16](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.15...@carbon/ibm-cloud-cognitive-cli@0.18.16) (2022-04-12) - -### Bug Fixes - -- update Carbon versions to latest minor v10 - ([#1899](https://github.com/carbon-design-system/ibm-products/issues/1899)) - ([ddc7935](https://github.com/carbon-design-system/ibm-products/commit/ddc7935307f204956157b9cefc68f57bc72d830b)) - -## [0.18.15](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.14...@carbon/ibm-cloud-cognitive-cli@0.18.15) (2022-04-05) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.14](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.13...@carbon/ibm-cloud-cognitive-cli@0.18.14) (2022-03-29) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.13](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.12...@carbon/ibm-cloud-cognitive-cli@0.18.13) (2022-03-22) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.12](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.11...@carbon/ibm-cloud-cognitive-cli@0.18.12) (2022-03-15) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.11](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.10...@carbon/ibm-cloud-cognitive-cli@0.18.11) (2022-03-08) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.10](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.9...@carbon/ibm-cloud-cognitive-cli@0.18.10) (2022-03-01) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.9](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.8...@carbon/ibm-cloud-cognitive-cli@0.18.9) (2022-02-22) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.8](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.7...@carbon/ibm-cloud-cognitive-cli@0.18.8) (2022-02-15) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.7](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.6...@carbon/ibm-cloud-cognitive-cli@0.18.7) (2022-02-01) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.6](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.5...@carbon/ibm-cloud-cognitive-cli@0.18.6) (2022-01-25) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.18.5](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.4...@carbon/ibm-cloud-cognitive-cli@0.18.5) (2022-01-11) - -### Bug Fixes - -- update Carbon versions and package dependencies to latest - ([#1513](https://github.com/carbon-design-system/ibm-products/issues/1513)) - ([505ba0e](https://github.com/carbon-design-system/ibm-products/commit/505ba0e13ec58bef19422835fd8ffee87c24e82a)) -- update Carbon versions and package dependencies to latest - ([#1518](https://github.com/carbon-design-system/ibm-products/issues/1518)) - ([3ddcdf6](https://github.com/carbon-design-system/ibm-products/commit/3ddcdf6617e0d7c9f182da91e3eb0935b34cbc05)) - -## [0.18.4](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.3...@carbon/ibm-cloud-cognitive-cli@0.18.4) (2022-01-04) - -### Bug Fixes - -- update Carbon versions and package dependencies to latest - ([#1509](https://github.com/carbon-design-system/ibm-products/issues/1509)) - ([613db81](https://github.com/carbon-design-system/ibm-products/commit/613db817bffec2c5b26b1fe50a337dd7bac5d963)) - -## [0.18.3](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.2...@carbon/ibm-cloud-cognitive-cli@0.18.3) (2021-12-21) - -### Bug Fixes - -- update Carbon versions and package dependencies to latest - ([#1499](https://github.com/carbon-design-system/ibm-products/issues/1499)) - ([8aed3d5](https://github.com/carbon-design-system/ibm-products/commit/8aed3d53d06cc896984e6847c0450cc647e34041)) - -## [0.18.2](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.1...@carbon/ibm-cloud-cognitive-cli@0.18.2) (2021-12-14) - -### Bug Fixes - -- update Carbon versions and package dependencies to latest - ([#1493](https://github.com/carbon-design-system/ibm-products/issues/1493)) - ([91b8238](https://github.com/carbon-design-system/ibm-products/commit/91b82383e0aa74383ebb81f625a9e7b870f06c00)) - -## [0.18.1](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.18.0...@carbon/ibm-cloud-cognitive-cli@0.18.1) (2021-12-07) - -### Bug Fixes - -- update Carbon versions and package dependencies to latest - ([#1491](https://github.com/carbon-design-system/ibm-products/issues/1491)) - ([45f7b77](https://github.com/carbon-design-system/ibm-products/commit/45f7b77f797c5841b9dc15bc3013f31e50244d29)) - -# [0.18.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.17.0...@carbon/ibm-cloud-cognitive-cli@0.18.0) (2021-11-30) - -### Features - -- update Carbon versions and dependencies to latest - ([#1473](https://github.com/carbon-design-system/ibm-products/issues/1473)) - ([9cafbea](https://github.com/carbon-design-system/ibm-products/commit/9cafbea95226c46ff1732f9ad6b22c9c8837616e)) - -# [0.17.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.16.0...@carbon/ibm-cloud-cognitive-cli@0.17.0) (2021-11-23) - -### Features - -- update Carbon versions and dependencies to latest - ([#1465](https://github.com/carbon-design-system/ibm-products/issues/1465)) - ([0c6b37f](https://github.com/carbon-design-system/ibm-products/commit/0c6b37f5b713c54ec320d9da945fbd3f6b3f91d9)) - -# [0.16.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.15.0...@carbon/ibm-cloud-cognitive-cli@0.16.0) (2021-11-16) - -### Bug Fixes - -- replace "cloud & cognitive" with "Carbon for IBM Products" in docs - ([#1437](https://github.com/carbon-design-system/ibm-products/issues/1437)) - ([0a58354](https://github.com/carbon-design-system/ibm-products/commit/0a58354ccbdd723173b2e6758907713938a7f163)) - -### Features - -- update Carbon versions and package dependencies to latest - ([#1425](https://github.com/carbon-design-system/ibm-products/issues/1425)) - ([4fd5883](https://github.com/carbon-design-system/ibm-products/commit/4fd5883961e0f3fc6be1c87bbe084b2cf6dc5db0)), - closes - [#10000](https://github.com/carbon-design-system/ibm-products/issues/10000) - -# [0.15.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.14.0...@carbon/ibm-cloud-cognitive-cli@0.15.0) (2021-11-09) - -### Features - -- update Carbon versions and package dependencies to latest - ([#1365](https://github.com/carbon-design-system/ibm-products/issues/1365)) - ([ea11cf7](https://github.com/carbon-design-system/ibm-products/commit/ea11cf7ae44b61b48142c511c16460cf7978b88c)) - -# [0.14.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.13.0...@carbon/ibm-cloud-cognitive-cli@0.14.0) (2021-10-07) - -### Features - -- update Carbon versions and package dependencies to latest - ([#1309](https://github.com/carbon-design-system/ibm-products/issues/1309)) - ([945bd3b](https://github.com/carbon-design-system/ibm-products/commit/945bd3ba5608078e961af9a04448f2abd7e7fc5e)) - -# [0.13.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.12.0...@carbon/ibm-cloud-cognitive-cli@0.13.0) (2021-10-02) - -### Features - -- update Carbon versions and package dependencies to latest - ([#1296](https://github.com/carbon-design-system/ibm-products/issues/1296)) - ([f1da0bd](https://github.com/carbon-design-system/ibm-products/commit/f1da0bd9192c4d999032df0dbe20d67b6ece89b0)) - -# [0.12.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.11.0...@carbon/ibm-cloud-cognitive-cli@0.12.0) (2021-09-23) - -### Features - -- update Carbon versions and dependencies to latest - ([#1282](https://github.com/carbon-design-system/ibm-products/issues/1282)) - ([b1451cf](https://github.com/carbon-design-system/ibm-products/commit/b1451cf5c91b75c1bd4e55ae2bdb47f025f33163)) - -# [0.11.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.10.0...@carbon/ibm-cloud-cognitive-cli@0.11.0) (2021-09-21) - -### Features - -- update Carbon versions and package dependencies to latest - ([#1262](https://github.com/carbon-design-system/ibm-products/issues/1262)) - ([ed4dcbe](https://github.com/carbon-design-system/ibm-products/commit/ed4dcbe5b6d92baa6ec39240bda6996ec55f7bc4)) - -# [0.10.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.9.0...@carbon/ibm-cloud-cognitive-cli@0.10.0) (2021-08-19) - -### Features - -- update Carbon versions and dependencies - ([#1168](https://github.com/carbon-design-system/ibm-products/issues/1168)) - ([674017f](https://github.com/carbon-design-system/ibm-products/commit/674017fabc13a7737c0d16deb04ffa9872d76fe6)) - -# [0.9.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.8.0...@carbon/ibm-cloud-cognitive-cli@0.9.0) (2021-08-11) - -### Features - -- update Carbon versions and package dependencies to latest - ([#1133](https://github.com/carbon-design-system/ibm-products/issues/1133)) - ([4dfae1a](https://github.com/carbon-design-system/ibm-products/commit/4dfae1a9b27f5676d0bde570e2c9ee9ce8550b52)) - -# [0.8.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.7.0...@carbon/ibm-cloud-cognitive-cli@0.8.0) (2021-08-10) - -### Features - -- update Carbon versions and dependencies - ([#1110](https://github.com/carbon-design-system/ibm-products/issues/1110)) - ([b41f433](https://github.com/carbon-design-system/ibm-products/commit/b41f4331e31cbd9e41d2364b24e6ef50c7fd2d8d)) - -# [0.7.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.6.0...@carbon/ibm-cloud-cognitive-cli@0.7.0) (2021-07-28) - -### Features - -- update Carbon versions and dependencies - ([#1084](https://github.com/carbon-design-system/ibm-products/issues/1084)) - ([3735ead](https://github.com/carbon-design-system/ibm-products/commit/3735ead9a96450015ec7aeafdb25deaa93d49aaa)) - -# [0.6.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.5.1...@carbon/ibm-cloud-cognitive-cli@0.6.0) (2021-07-21) - -### Features - -- update Carbon versions and dependencies - ([#1037](https://github.com/carbon-design-system/ibm-products/issues/1037)) - ([8c5937a](https://github.com/carbon-design-system/ibm-products/commit/8c5937a865d3a0cfbaf33b9eca13c4d3b4c1365d)) - -## [0.5.1](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.5.0...@carbon/ibm-cloud-cognitive-cli@0.5.1) (2021-07-16) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -# [0.5.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.4.0...@carbon/ibm-cloud-cognitive-cli@0.5.0) (2021-07-14) - -### Features - -- update Carbon versions and package dependencies - ([#994](https://github.com/carbon-design-system/ibm-products/issues/994)) - ([2ab4845](https://github.com/carbon-design-system/ibm-products/commit/2ab4845511573b999d41fcf77e6d412e0d446b9d)) - -# [0.4.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.3.2...@carbon/ibm-cloud-cognitive-cli@0.4.0) (2021-07-07) - -### Features - -- update Carbon versions and dependencies - ([#974](https://github.com/carbon-design-system/ibm-products/issues/974)) - ([555509b](https://github.com/carbon-design-system/ibm-products/commit/555509b5ccb147ed0d794b5816f685aa8f7ae451)) - -## [0.3.2](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.3.1...@carbon/ibm-cloud-cognitive-cli@0.3.2) (2021-07-01) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.3.1](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.3.0...@carbon/ibm-cloud-cognitive-cli@0.3.1) (2021-06-30) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -# [0.3.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.2.5...@carbon/ibm-cloud-cognitive-cli@0.3.0) (2021-06-23) - -### Features - -- update Carbon versions and dependencies - ([#927](https://github.com/carbon-design-system/ibm-products/issues/927)) - ([5a8f7d6](https://github.com/carbon-design-system/ibm-products/commit/5a8f7d6b81b6da26fd0cb933c1c3de4bd27b481b)) - -## [0.2.5](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.2.4...@carbon/ibm-cloud-cognitive-cli@0.2.5) (2021-06-17) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.2.4](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.2.3...@carbon/ibm-cloud-cognitive-cli@0.2.4) (2021-06-09) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.2.3](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.2.2...@carbon/ibm-cloud-cognitive-cli@0.2.3) (2021-06-07) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.2.2](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.2.1...@carbon/ibm-cloud-cognitive-cli@0.2.2) (2021-05-28) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.2.1](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.2.0...@carbon/ibm-cloud-cognitive-cli@0.2.1) (2021-04-15) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -# [0.2.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.1.2...@carbon/ibm-cloud-cognitive-cli@0.2.0) (2020-12-16) - -### Features - -- Page header tag overflow update - ([#264](https://github.com/carbon-design-system/ibm-products/issues/264)) - ([ee22520](https://github.com/carbon-design-system/ibm-products/commit/ee225206e291fa3bca990cb2ccabfece8930fc88)) - -## [0.1.2](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-cli@0.1.1...@carbon/ibm-cloud-cognitive-cli@0.1.2) (2020-11-30) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -## [0.1.1](https://github.com/carbon-design-system/ibm-products/tree/master/packages/cli/compare/@carbon/ibm-cloud-cognitive-cli@0.1.0...@carbon/ibm-cloud-cognitive-cli@0.1.1) (2020-11-26) - -**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-cli - -# Change Log - -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# 0.1.0 (2020-11-10) - -### Features - -- **project:** add support for test and builds - ([7b3e99a](https://github.com/carbon-design-system/ibm-products/tree/master/packages/cli/commit/7b3e99ad75246bd03aa542563f8fdadca23a2f95)) diff --git a/config/cli/bin/carbon-cli.js b/config/cli/bin/carbon-cli.js deleted file mode 100755 index 7dd554e335..0000000000 --- a/config/cli/bin/carbon-cli.js +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env node - -/** - * Copyright IBM Corp. 2020, 2020 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -/* eslint-disable no-console */ - -'use strict'; - -// Inspired by Create React App -// https://github.com/facebook/create-react-app/blob/next/packages/create-react-app/index.js - -// Makes the script crash on unhandled rejections instead of silently -// ignoring them. In the future, promise rejections that are not handled will -// terminate the Node.js process with a non-zero exit code. -process.on('unhandledRejection', (error) => { - console.error(error); -}); - -var chalk = require('chalk'); - -var currentNodeVersion = process.versions.node; -var semver = currentNodeVersion.split('.'); -var major = semver[0]; - -if (major < 12) { - console.error( - chalk.red( - `You are running Node ${currentNodeVersion}.\n` + - `@carbon/cli requires Node 12 or higher, please update your ` + - `version of Node.` - ) - ); - process.exit(1); -} - -var main = require('../src/cli'); - -main(process).catch((error) => { - console.error(error); - process.exit(1); -}); diff --git a/config/cli/package.json b/config/cli/package.json deleted file mode 100644 index 6ce9faed1a..0000000000 --- a/config/cli/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@carbon/ibm-cloud-cognitive-cli", - "private": true, - "description": "A CLI for building, maintaining, and releasing packages for Carbon", - "version": "0.18.48", - "license": "Apache-2.0", - "bin": { - "carbon-cli": "./bin/carbon-cli.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/carbon-design-system/ibm-products.git", - "directory": "packages/cli" - }, - "bugs": "https://github.com/carbon-design-system/ibm-products/issues", - "keywords": [ - "carbon", - "carbon design system", - "carbon community", - "carbon for cloud & cognitive", - "carbon for ibm products" - ], - "scripts": { - "//upgrade-dependencies": "# don't upgrade carbon (done globally)", - "upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon)/'" - }, - "devDependencies": { - "@commitlint/parse": "^18.6.0", - "chalk": "^5.3.0", - "execa": "^8.0.1", - "fast-glob": "^3.3.2", - "fs-extra": "^11.2.0", - "inquirer": "^9.2.12", - "npm-check-updates": "^16.14.12", - "prettier": "^3.2.4", - "prettier-config-carbon": "^0.11.0", - "remark": "^15.0.1", - "semver": "^7.5.4", - "yargs": "^17.7.2" - } -} diff --git a/config/cli/src/cli.js b/config/cli/src/cli.js deleted file mode 100644 index 87e032fd19..0000000000 --- a/config/cli/src/cli.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Copyright IBM Corp. 2020, 2020 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -const cli = require('yargs'); -const packageJson = require('../package.json'); - -async function main({ argv }) { - cli - .scriptName(packageJson.name) - .version(packageJson.version) - .usage('Usage: $0 [options]'); - - cli - .commandDir('commands') - .strict() - .fail((message, error, yargs) => { - if (error) { - console.error(error.stderr || error); - process.exit(1); - } - console.log(message); - console.log(yargs.help()); - process.exit(1); - }) - .parse(argv.slice(2)).argv; -} - -module.exports = main; diff --git a/config/cli/src/commands/sync.js b/config/cli/src/commands/sync.js deleted file mode 100644 index 1f600bdf66..0000000000 --- a/config/cli/src/commands/sync.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright IBM Corp. 2020, 2020 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -const { getWorkspace } = require('../workspace'); -const { displayBanner, createLogger } = require('../logger'); - -const tasks = { - npm: require('./sync/npm'), - 'package.json': require('./sync/packageJson'), - readme: require('./sync/readme'), -}; - -const logger = createLogger('sync'); - -async function sync(args) { - displayBanner(); - - const workspace = await getWorkspace(); - const { target } = args; - const tasksToRun = target === 'all' ? Object.keys(tasks) : [target]; - - for (const name of tasksToRun) { - logger.start(`Syncing group: ${name}`); - const task = tasks[name]; - await task.run(workspace); - logger.stop(); - } -} - -module.exports = { - command: 'sync [target]', - desc: 'sync configuration files for packages in a workspace', - builder(yargs) { - yargs.positional('target', { - describe: 'choose a target to sync', - choices: ['all', 'npm', 'package.json', 'readme'], - default: 'all', - }); - }, - handler: sync, -}; diff --git a/config/cli/src/commands/sync/npm.js b/config/cli/src/commands/sync/npm.js deleted file mode 100644 index e81243c171..0000000000 --- a/config/cli/src/commands/sync/npm.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright IBM Corp. 2020, 2020 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -const fs = require('fs-extra'); -const path = require('path'); - -const defaultIgnorePatterns = [ - '**/__mocks__/**', - '**/__tests__/**', - '**/examples/**', - '**/tasks/**', -]; - -function run(workspace) { - const { packages } = workspace; - return Promise.all( - packages - .filter(({ packageJson }) => !packageJson.private) - .map(async ({ packageFolder }) => { - const ignorePath = path.join(packageFolder, '.npmignore'); // cspell:disable-line - const ignorePatterns = defaultIgnorePatterns.slice(); - - if (await fs.pathExists(ignorePath)) { - const ignoreFile = await fs.readFile(ignorePath, 'utf8'); - const localIgnorePatterns = ignoreFile - .split('\n') - .filter((pattern) => { - return ignorePatterns.indexOf(pattern) === -1; - }); - - ignorePatterns.push(...localIgnorePatterns); - } - - await fs.writeFile(ignorePath, ignorePatterns.join('\n')); - }) - ); -} - -module.exports = { - run, -}; diff --git a/config/cli/src/commands/sync/packageJson.js b/config/cli/src/commands/sync/packageJson.js deleted file mode 100644 index c029747efa..0000000000 --- a/config/cli/src/commands/sync/packageJson.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Copyright IBM Corp. 2020, 2020 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -const fs = require('fs-extra'); -const path = require('path'); - -const REPO_URL_BASE = 'https://github.com/carbon-design-system/ibm-products'; - -// Default set of keywords to include in each `package.json`. -const DEFAULT_KEYWORDS = [ - 'carbon', - 'carbon design system', - 'carbon community', - 'carbon for cloud & cognitive', - 'carbon for ibm products', -]; - -// We're going to use this in our `sortFields` method. The idea is that we want -// our `package.json` fields to be ordered in the order given in this array. To -// accomplish this, we create an object where we can reference the value -// assigned to a field when sorting. By default, highest priority fields start -// with 1 and go up. Unknown fields are all given the same priority, which is -// just the length of the array + 1. When we use `sortFields` we are checking -// for the value from `packageJsonFields` and comparing it with the other value. -const packageJsonFields = [ - 'name', - 'private', - 'description', - 'version', - 'license', - 'bin', - 'main', - 'module', - 'sideEffects', - 'repository', - 'bugs', - 'homepage', - 'engines', - 'files', - 'keywords', - 'publishConfig', - 'scripts', - 'resolutions', - 'peerDependencies', - 'dependencies', - 'devDependencies', - 'eyeglass', - 'eslintConfig', - 'prettier', - 'babel', - 'jest', -].reduce( - (acc, key, index) => ({ - ...acc, - [key]: index + 1, - }), - {} -); -const UNKNOWN_FIELD = Object.keys(packageJsonFields).length + 1; -function sortFields(a, b) { - const aValue = packageJsonFields[a] || UNKNOWN_FIELD; - const bValue = packageJsonFields[b] || UNKNOWN_FIELD; - return aValue - bValue; -} - -function run(workspace) { - const { directory, packages } = workspace; - return Promise.all( - packages.map(async ({ packageJsonPath, packageJson, packageFolder }) => { - packageJson.repository = { - type: 'git', - url: `${REPO_URL_BASE}.git`, - directory: path.relative(directory, packageFolder), - }; - packageJson.bugs = `${REPO_URL_BASE}/issues`; - packageJson.license = 'Apache-2.0'; - - if (!packageJson.private) { - packageJson.publishConfig = { - access: 'public', - }; - } - - if (Array.isArray(packageJson.keywords)) { - const keywordsToAdd = DEFAULT_KEYWORDS.filter((keyword) => { - return packageJson.keywords.indexOf(keyword) === -1; - }); - if (keywordsToAdd.length > 0) { - packageJson.keywords = [...packageJson.keywords, ...keywordsToAdd]; - } - } else { - packageJson.keywords = DEFAULT_KEYWORDS; - } - - // Construct our new packageJson packageJson with sorted fields - const file = Object.keys(packageJson) - .sort(sortFields) - .reduce( - (acc, key) => ({ - ...acc, - [key]: packageJson[key], - }), - {} - ); - - await fs.writeJson(packageJsonPath, file, { spaces: 2 }); - }) - ); -} - -module.exports = { - run, -}; diff --git a/config/cli/src/commands/sync/readme.js b/config/cli/src/commands/sync/readme.js deleted file mode 100644 index 4eb931b9ea..0000000000 --- a/config/cli/src/commands/sync/readme.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Copyright IBM Corp. 2020, 2020 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -const fs = require('fs-extra'); -const path = require('path'); -const prettier = require('prettier'); -const prettierConfig = require('prettier-config-carbon'); -const createRemark = require('remark'); -const monorepo = require('./remark/monorepo'); - -const packageDenyList = new Set([]); - -async function run(workspace) { - const { directory, packages } = workspace; - const remark = createRemark().use(monorepo, { - root: directory, - }); - const prettierOptions = { - ...prettierConfig, - parser: 'markdown', - }; - - return Promise.all( - packages - .filter((pkg) => !packageDenyList.has(pkg.packageJson.name)) - .map(async ({ packageFolder }) => { - const README_PATH = path.join(packageFolder, 'README.md'); - if (!fs.existsSync(README_PATH)) { - return; - } - - const readme = await fs.readFile(README_PATH, 'utf8'); - const file = await process(remark, packageFolder, readme); - await fs.writeFile( - README_PATH, - prettier.format(String(file), prettierOptions) - ); - }) - ); -} - -function process(remark, cwd, contents) { - return new Promise((resolve, reject) => { - remark.process({ cwd, contents }, (error, file) => { - if (error) { - reject(error); - return; - } - resolve(file); - }); - }); -} - -module.exports = { - run, -}; diff --git a/config/cli/src/commands/sync/remark/monorepo.js b/config/cli/src/commands/sync/remark/monorepo.js deleted file mode 100644 index 7f43ec84bc..0000000000 --- a/config/cli/src/commands/sync/remark/monorepo.js +++ /dev/null @@ -1,441 +0,0 @@ -/** - * Copyright IBM Corp. 2020, 2020 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -const fs = require('fs-extra'); -const path = require('path'); - -const REPO_URL_BASE = 'https://github.com/carbon-design-system/ibm-products'; - -function monorepo() { - async function transformer(tree, file) { - const { cwd } = file; - const localPackageJsonPath = path.join(cwd, 'package.json'); - const localPackageJson = await fs.readJson(localPackageJsonPath); - const { name, description } = localPackageJson; - - if (!name) { - return new Error( - `Expected a name to be defined for the package at: ${cwd}` - ); - } - if (!description) { - return new Error( - `Expected a description to be defined for the package at: ${cwd}` - ); - } - - // Grab all sections under `## Usage` as these are custom for each project - const usage = []; - let usageHeadingFound = false; - - for (const child of tree.children) { - if (usageHeadingFound) { - if (child.type === 'heading' && child.depth <= 2) { - break; - } - usage.push(child); - } - - if ( - child.type === 'heading' && - child.depth === 2 && - child.children[0].value === 'Usage' - ) { - usageHeadingFound = true; - usage.push(child); - } - } - - // [x] Title - // [x] Getting Started - // [x] Usage - // [x] Examples - // [ ] Contributors - // [x] Contributing - // [x] License - tree.children = [ - ...createTitle(localPackageJson.name, localPackageJson.description), - ...createGettingStarted(localPackageJson.name), - ...usage, - ...(await createAPIDoc(localPackageJson.name, path.join(cwd, 'docs'))), - ...(await createExamples( - localPackageJson.name, - path.join(cwd, 'examples') - )), - ...createContributing(), - ...createLicense(), - ]; - } - - return transformer; -} - -function createTitle(name, description) { - return [ - { - type: 'heading', - depth: 1, - children: [ - { - type: 'text', - value: name, - }, - ], - }, - { - type: 'blockquote', - children: [ - { - type: 'paragraph', - children: [ - { - type: 'text', - value: description, - }, - ], - }, - ], - }, - ]; -} - -function createGettingStarted(name) { - return [ - { - type: 'heading', - depth: 2, - children: [ - { - type: 'text', - value: 'Getting started', - }, - ], - }, - { - type: 'paragraph', - children: [ - { - type: 'text', - value: 'To install ', - }, - { - type: 'inlineCode', - value: name, - }, - { - type: 'text', - value: - ' in your project, you will need to run the following command using ', - }, - { - type: 'link', - title: null, - url: 'https://www.npmjs.com/', - children: [ - { - type: 'text', - value: 'npm', - }, - ], - }, - { - type: 'text', - value: ':', - }, - ], - }, - { - type: 'code', - lang: 'bash', - value: `npm install -S ${name}`, - }, - { - type: 'paragraph', - children: [ - { - type: 'text', - value: 'If you prefer ', - }, - { - type: 'link', - title: null, - url: 'https://yarnpkg.com/en/', - children: [ - { - type: 'text', - value: 'Yarn', - }, - ], - }, - { - type: 'text', - value: ', use the following command\ninstead:', - }, - ], - }, - { - type: 'code', - lang: 'bash', - meta: null, - value: `yarn add ${name}`, - }, - ]; -} - -async function createAPIDoc(name, docsDir) { - // No docs to list - if (!(await fs.pathExists(docsDir))) { - return []; - } - - const docs = (await fs.readdir(docsDir)).filter((name) => { - // Ignore dot-files and json files - return !(name[0] === '.' || name === 'sass.json'); - }); - - if (docs.length === 0) { - return []; - } - - return [ - { - type: 'heading', - depth: 2, - children: [ - { - type: 'text', - value: '📖 API Documentation', - }, - ], - }, - { - type: 'paragraph', - children: [ - { - type: 'text', - value: "If you're looking for ", - }, - { - type: 'inlineCode', - value: name, - }, - { - type: 'text', - value: ' API documentation, check out:', - }, - ], - }, - { - type: 'list', - ordered: false, - spread: false, - children: docs.map((doc) => ({ - type: 'listItem', - spread: false, - checked: null, - children: [ - { - type: 'paragraph', - children: [ - { - type: 'link', - title: null, - url: `./docs/${doc}`, - children: [ - { - type: 'text', - value: `${ - doc[0].toUpperCase() + - doc.slice(1).replace(/\.[^/.]+$/, '') - }`, - }, - ], - }, - ], - }, - ], - })), - }, - ]; -} - -async function createExamples(name, examplesDir) { - // No examples to list - if (!(await fs.pathExists(examplesDir))) { - return []; - } - - const examples = (await fs.readdir(examplesDir)).filter((name) => { - // Ignore dot-files and special cases `codesandbox` and `storybook` - return !( - name[0] === '.' || - name === 'codesandbox' || - name === 'storybook' || - name === 'preview' - ); - }); - - if (examples.length === 0) { - return []; - } - - return [ - { - type: 'heading', - depth: 2, - children: [ - { - type: 'text', - value: '📚 Examples', - }, - ], - }, - { - type: 'paragraph', - children: [ - { - type: 'text', - value: "If you're looking for more examples on how to use ", - }, - { - type: 'inlineCode', - value: name, - }, - { - type: 'text', - value: ', we have some examples that you can check out:', - }, - ], - }, - { - type: 'list', - ordered: false, - spread: false, - children: examples.map((example) => ({ - type: 'listItem', - spread: false, - checked: null, - children: [ - { - type: 'paragraph', - children: [ - { - type: 'link', - title: null, - url: `./examples/${example}`, - children: [ - { - type: 'text', - value: example, - }, - ], - }, - ], - }, - ], - })), - }, - ]; -} - -function createContributing() { - return [ - { - type: 'heading', - depth: 2, - children: [ - { - type: 'text', - value: '🙌 Contributing', - }, - ], - }, - { - type: 'paragraph', - children: [ - { - type: 'text', - value: - "We're always looking for contributors to help us fix bugs, build new features, or help us improve the project documentation. If you're interested, definitely check out our ", - }, - { - type: 'link', - title: null, - url: `${REPO_URL_BASE}/blob/master/.github/CONTRIBUTING.md`, - children: [ - { - type: 'text', - value: 'Contributing Guide', - }, - ], - }, - { - type: 'text', - value: ' and ', - }, - { - type: 'link', - title: null, - url: 'https://github.com/carbon-design-system/carbon/blob/master/docs/developer-handbook.md', - children: [ - { - type: 'text', - value: "Carbon's Developer Handbook", - }, - ], - }, - { - type: 'text', - value: '! 👀', - }, - ], - }, - ]; -} - -function createLicense() { - return [ - { - type: 'heading', - depth: 2, - children: [ - { - type: 'text', - value: '📝 License', - }, - ], - }, - { - type: 'paragraph', - children: [ - { - type: 'text', - value: 'Licensed under the ', - }, - { - type: 'link', - title: null, - url: `${REPO_URL_BASE}/blob/master/LICENSE`, - children: [ - { - type: 'text', - value: 'Apache-2.0 License', - }, - ], - }, - { - type: 'text', - value: '.', - }, - ], - }, - ]; -} - -module.exports = monorepo; diff --git a/config/cli/src/logger.js b/config/cli/src/logger.js deleted file mode 100644 index 2cdc9b6495..0000000000 --- a/config/cli/src/logger.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Copyright IBM Corp. 2019, 2019 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -const chalk = require('chalk'); - -/** - * Create a logger to be used in a handler. This is typically just for - * formatting the output, adding a prefix, and connecting the output with - * box-drawing ASCII characters. - * @returns {object} - */ -function createLogger(command) { - const timers = []; - let indentLevel = 0; - - /** - * Display the given message with a box character. This also includes - * formatting for the logger prefix and box character itself. - * @param {string} boxCharacter - * @param {string?} message - * @returns {void} - */ - function log(boxCharacter, message = '') { - console.log(chalk`{yellow ${command} ▐} {gray ${boxCharacter}} ${message}`); - } - - function getLinePrefix() { - let prefix = ''; - for (let i = 0; i < indentLevel; i++) { - prefix += '┃ '; - } - return prefix; - } - - return { - info(message) { - indentLevel -= 1; - const prefix = getLinePrefix(); - indentLevel += 1; - - log(prefix + '┣', chalk.gray(message)); - }, - start(message) { - const start = Date.now(); - timers.push(start); - - const prefix = getLinePrefix(); - log(prefix + '┏', message); - - indentLevel += 1; - }, - stop(message) { - indentLevel -= 1; - - const duration = ((Date.now() - timers.pop()) / 1000).toFixed(2); - const prefix = getLinePrefix(); - - if (message) { - log(prefix + '┗', message); - } else { - log(prefix + '┗', chalk`{gray Done in {italic ${duration}s}}`); - } - }, - newline() { - const prefix = getLinePrefix(); - log(prefix + '┃'); - }, - }; -} - -/** - * Display the banner in the console, typically at the beginning of a handler - * @returns {void} - */ -function displayBanner() { - console.log(` - _ - | | - ___ __ _ _ __| |__ ___ _ __ - / __/ _\` | '__| '_ \\ / _ \\| '_ \\ - | (_| (_| | | | |_) | (_) | | | | - \\___\\__,_|_| |_.__/ \\___/|_| |_| -`); -} - -module.exports = { - createLogger, - displayBanner, -}; diff --git a/config/cli/src/workspace.js b/config/cli/src/workspace.js deleted file mode 100644 index e12e7a4fac..0000000000 --- a/config/cli/src/workspace.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Copyright IBM Corp. 2020, 2020 - * - * This source code is licensed under the Apache-2.0 license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -const glob = require('fast-glob'); -const fs = require('fs-extra'); -const path = require('path'); - -/** - * Get information about the current workspace that a command is executing - * within. - * @returns {object} - */ -async function getWorkspace() { - const [directory, packageJson] = await getWorkspaceRoot(process.cwd()); - const packages = glob - .sync( - packageJson.workspaces.packages.map( - (pattern) => `${pattern}/package.json` - ), - { - cwd: directory, - } - ) - .map((match) => { - const packageJsonPath = path.join(directory, match); - return { - packageJsonPath, - packageJson: fs.readJsonSync(packageJsonPath), - packageFolder: path.dirname(packageJsonPath), - }; - }); - - return { - directory, - packageJson, - packages, - }; -} - -/** - * Get the closest root folder and package.json for a Yarn workspace from an - * arbitrary path - * @param {string} directory - * @returns {Array} - */ -async function getWorkspaceRoot(directory) { - let cwd = directory; - - while (path.dirname(cwd) !== '/' && cwd !== '/') { - const packageJsonPath = path.join(cwd, 'package.json'); - if (fs.existsSync(packageJsonPath)) { - const packageJson = await fs.readJson(packageJsonPath); - if (packageJson.workspaces) { - return [cwd, packageJson]; - } - } - cwd = path.dirname(cwd); - } - - throw new Error(`Unable to find workspace root from directory: ${directory}`); -} - -module.exports = { - getWorkspace, -}; diff --git a/config/jest-config-ibm-cloud-cognitive/CHANGELOG.md b/config/jest-config-ibm-cloud-cognitive/CHANGELOG.md index 640c71cd83..e144c8d70c 100644 --- a/config/jest-config-ibm-cloud-cognitive/CHANGELOG.md +++ b/config/jest-config-ibm-cloud-cognitive/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. +# [1.13.0](https://github.com/carbon-design-system/ibm-products/compare/jest-config-ibm-cloud-cognitive@1.13.0-rc.1...jest-config-ibm-cloud-cognitive@1.13.0) (2024-11-20) + +**Note:** Version bump only for package jest-config-ibm-cloud-cognitive + + + + + # [1.13.0-rc.1](https://github.com/carbon-design-system/ibm-products/compare/jest-config-ibm-cloud-cognitive@1.7.0-rc.0...jest-config-ibm-cloud-cognitive@1.13.0-rc.1) (2024-11-15) diff --git a/config/jest-config-ibm-cloud-cognitive/package.json b/config/jest-config-ibm-cloud-cognitive/package.json index e675a9d87c..74f42e17bd 100644 --- a/config/jest-config-ibm-cloud-cognitive/package.json +++ b/config/jest-config-ibm-cloud-cognitive/package.json @@ -1,7 +1,7 @@ { "name": "jest-config-ibm-cloud-cognitive", "private": true, - "version": "1.13.0-rc.1", + "version": "1.13.0", "license": "Apache-2.0", "main": "index.js", "repository": { diff --git a/config/storybook-addon-carbon-theme/CHANGELOG.md b/config/storybook-addon-carbon-theme/CHANGELOG.md index 98d3fb7ed8..2abf85c0cf 100644 --- a/config/storybook-addon-carbon-theme/CHANGELOG.md +++ b/config/storybook-addon-carbon-theme/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.3.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/storybook-addon-theme@2.3.0-rc.1...@carbon/storybook-addon-theme@2.3.0) (2024-11-20) + +**Note:** Version bump only for package @carbon/storybook-addon-theme + + + + + # [2.3.0-rc.1](https://github.com/carbon-design-system/ibm-products/compare/@carbon/storybook-addon-theme@2.1.0...@carbon/storybook-addon-theme@2.3.0-rc.1) (2024-11-15) **Note:** Version bump only for package @carbon/storybook-addon-theme diff --git a/config/storybook-addon-carbon-theme/package.json b/config/storybook-addon-carbon-theme/package.json index 56ac2e238b..0ff405a7f3 100644 --- a/config/storybook-addon-carbon-theme/package.json +++ b/config/storybook-addon-carbon-theme/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/storybook-addon-theme", "description": "Carbon theme switcher for Storybook", - "version": "2.3.0-rc.1", + "version": "2.3.0", "license": "Apache-2.0", "main": "dist/react.js", "repository": { diff --git a/e2e/components/ActionBar/ActionBar-test.avt.e2e.js b/e2e/components/ActionBar/ActionBar-test.avt.e2e.js index 35a4afc4bb..edd6deb38e 100644 --- a/e2e/components/ActionBar/ActionBar-test.avt.e2e.js +++ b/e2e/components/ActionBar/ActionBar-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('ActionBar @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'ActionBar', - id: 'experimental-components-actionbar--default', + id: 'utils-components-actionbar--default', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/Cascade/Cascade-test.avt.e2e.js b/e2e/components/Cascade/Cascade-test.avt.e2e.js index dd5ae696b3..b7031011d9 100644 --- a/e2e/components/Cascade/Cascade-test.avt.e2e.js +++ b/e2e/components/Cascade/Cascade-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('Cascade @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'Cascade', - id: 'ibm-products-patterns-cascade--without-grid', + id: 'utils-components-cascade--without-grid', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/DelimitedList/DelimitedList-test.avt.e2e.js b/e2e/components/DelimitedList/DelimitedList-test.avt.e2e.js index 4213a37e49..098ee731cb 100644 --- a/e2e/components/DelimitedList/DelimitedList-test.avt.e2e.js +++ b/e2e/components/DelimitedList/DelimitedList-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('DelimitedList @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'DelimitedList', - id: 'experimental-components-delimited-list-delimitedlist--delimited', + id: 'utils-components-delimitedlist--delimited', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/DescriptionList/DescriptionList-test.avt.e2e.js b/e2e/components/DescriptionList/DescriptionList-test.avt.e2e.js index 9dd6655e20..c0d164ec83 100644 --- a/e2e/components/DescriptionList/DescriptionList-test.avt.e2e.js +++ b/e2e/components/DescriptionList/DescriptionList-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('DescriptionList @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'DescriptionList', - id: 'experimental-components-description-list-descriptionlist--description-list', + id: 'deprecated-descriptionlist--description-list', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/EmptyState/EmptyStateV2-test.avt.e2e.js b/e2e/components/EmptyState/EmptyStateV2-test.avt.e2e.js index a8fe097ba2..44551e0b61 100644 --- a/e2e/components/EmptyState/EmptyStateV2-test.avt.e2e.js +++ b/e2e/components/EmptyState/EmptyStateV2-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('EmptyStateV2 @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'EmptyStateV2', - id: 'experimental-patterns-empty-state-emptystatev2--default', + id: 'deprecated-empty-state-emptystatev2--default', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/FilterPanel/FilterPanel-test.avt.e2e.js b/e2e/components/FilterPanel/FilterPanel-test.avt.e2e.js index fe231fddb3..5b52aa2576 100644 --- a/e2e/components/FilterPanel/FilterPanel-test.avt.e2e.js +++ b/e2e/components/FilterPanel/FilterPanel-test.avt.e2e.js @@ -15,7 +15,7 @@ test.describe('FilterPanel @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'FilterPanel', - id: 'experimental-components-filter-panel-filterpanel--default', + id: 'deprecated-filter-panel-filterpanel--default', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/Nav/Nav-test.avt.e2e.js b/e2e/components/Nav/Nav-test.avt.e2e.js index 3faa674a24..163e0542bc 100644 --- a/e2e/components/Nav/Nav-test.avt.e2e.js +++ b/e2e/components/Nav/Nav-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('Nav @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'Nav', - id: 'experimental-components-nav--nav', + id: 'deprecated-nav--nav', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/ScrollGradient/ScrollGradient-test.avt.e2e.js b/e2e/components/ScrollGradient/ScrollGradient-test.avt.e2e.js index 62d8bdeba2..527360454a 100644 --- a/e2e/components/ScrollGradient/ScrollGradient-test.avt.e2e.js +++ b/e2e/components/ScrollGradient/ScrollGradient-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('ScrollGradient @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'ScrollGradient', - id: 'experimental-components-scroll-gradient-scrollgradient--scroll-gradient-vertical', + id: 'utils-components-scrollgradient--scroll-gradient-vertical', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/StatusIndicator/StatusIndicator-test.avt.e2e.js b/e2e/components/StatusIndicator/StatusIndicator-test.avt.e2e.js index 78bd8cae7c..7216116167 100644 --- a/e2e/components/StatusIndicator/StatusIndicator-test.avt.e2e.js +++ b/e2e/components/StatusIndicator/StatusIndicator-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('StatusIndicator @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'StatusIndicator', - id: 'experimental-components-status-indicator-statusindicator--status-indicator', + id: 'deprecated-status-indicator-statusindicator--status-indicator', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/StatusIndicator/StatusIndicatorStep-test.avt.e2e.js b/e2e/components/StatusIndicator/StatusIndicatorStep-test.avt.e2e.js index 1e73a430c2..40ec964754 100644 --- a/e2e/components/StatusIndicator/StatusIndicatorStep-test.avt.e2e.js +++ b/e2e/components/StatusIndicator/StatusIndicatorStep-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('StatusIndicatorStep @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'StatusIndicatorStep', - id: 'experimental-components-status-indicator-statusindicatorstep--status-indicator-step', + id: 'deprecated-status-indicator-statusindicatorstep--status-indicator-step', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/TagOverflow/TagOverflow-test.avt.e2e.js b/e2e/components/TagOverflow/TagOverflow-test.avt.e2e.js index b9feaad161..f794dfa7d9 100644 --- a/e2e/components/TagOverflow/TagOverflow-test.avt.e2e.js +++ b/e2e/components/TagOverflow/TagOverflow-test.avt.e2e.js @@ -14,7 +14,7 @@ test.describe('TagOverflow @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'TagOverflow', - id: 'experimental-components-tag-overflow-tagoverflow--tags-with-overflow-count', + id: 'utils-components-tagoverflow--tags-with-overflow-count', globals: { carbonTheme: 'white', }, diff --git a/e2e/components/TruncatedList/TruncatedList-test.avt.e2e.js b/e2e/components/TruncatedList/TruncatedList-test.avt.e2e.js index 4f9ec76861..8f8bd6ed42 100644 --- a/e2e/components/TruncatedList/TruncatedList-test.avt.e2e.js +++ b/e2e/components/TruncatedList/TruncatedList-test.avt.e2e.js @@ -16,7 +16,7 @@ test.describe('TruncatedList @avt', () => { test('@avt-default-state', async ({ page }) => { await visitStory(page, { component: 'TruncatedList', - id: 'experimental-components-truncated-list-truncatedlist--truncated-list', + id: 'utils-components-truncatedlist--truncated-list', globals: { carbonTheme: 'white', }, diff --git a/package.json b/package.json index 31587ffb5a..3852c8a97e 100644 --- a/package.json +++ b/package.json @@ -112,143 +112,18 @@ "rimraf": "^5.0.5", "stylelint": "^15.11.0", "stylelint-config-carbon": "1.19.1", - "webpack": "^5.90.0" + "webpack": "^5.96.1" }, "//resolutions:http-signature": "package 'request' deprecated but still used, asks for http-signature ~1.2.0 which indirectly has vulnerabilities", "//resolutions:minimist": "https://security.snyk.io/vuln/SNYK-JS-MINIMIST-2429795 (version <=1.2.5)", "resolutions": { - "cheerio": "1.0.0-rc.10", + "body-parser": "1.20.3", "braces": "^3.0.3", + "cheerio": "1.0.0-rc.10", + "cross-spawn": "7.0.6", "micromatch": "4.0.8", - "ws": "^8.17.1", - "@carbon/ibm-products-styles": "^2.49.0" - }, - "eslintConfig": { - "parser": "@babel/eslint-parser", - "parserOptions": { - "babelOptions": { - "presets": [ - "@babel/preset-react" - ] - } - }, - "plugins": [ - "ssr-friendly" - ], - "ignorePatterns": [ - "packages/ibm-products-web-components/**/*" - ], - "extends": [ - "carbon", - "plugin:ssr-friendly/recommended" - ], - "rules": { - "react/display-name": [ - 0 - ], - "react/forbid-component-props": [ - 2, - { - "forbid": [ - { - "propName": "style", - "disallowedFor": [ - "Datagrid", - "Carousel", - "Checklist", - "Coachmark" - ], - "message": "Avoid using style prop" - } - ] - } - ], - "react/forbid-dom-props": [ - 2, - { - "forbid": [ - { - "propName": "style", - "disallowedFor": [ - "Datagrid", - "Carousel", - "Checklist", - "Coachmark" - ], - "message": "Avoid using style prop" - } - ] - } - ] - }, - "overrides": [ - { - "files": [ - "*.ts", - "*.tsx" - ], - "plugins": [ - "@typescript-eslint" - ], - "extends": [ - "plugin:@typescript-eslint/recommended" - ], - "parser": "@typescript-eslint/parser", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - "error", - { - "args": "after-used", - "argsIgnorePattern": "^_", - "varsIgnorePattern": "^_" - } - ], - "@typescript-eslint/no-empty-function": "off", - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/ban-ts-comment": "off" - } - } - ] - }, - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ], - "rules": { - "header-max-length": [ - 2, - "always", - 72 - ], - "body-max-line-length": [ - 2, - "always", - 80 - ], - "scope-case": [ - 0, - "always", - "lower-case" - ], - "type-enum": [ - 2, - "always", - [ - "build", - "ci", - "chore", - "docs", - "feat", - "fix", - "perf", - "refactor", - "revert", - "style", - "test" - ] - ] - } + "semver": "7.6.3", + "ws": "^8.17.1" }, "lint-staged": { "!(examples/**/*)**/*.{js,jsx,ts,tsx}": [ @@ -270,18 +145,5 @@ "dependencies": { "stylelint-plugin-carbon-tokens": "2.8.0" }, - "stylelint": { - "extends": [ - "stylelint-config-carbon" - ], - "rules": { - "max-nesting-depth": null, - "scss/no-global-function-names": null, - "csstools/use-logical": null, - "scss/load-no-partial-leading-underscore": null, - "scss/double-slash-comment-inline": null, - "no-duplicate-selectors": null - } - }, "packageManager": "yarn@4.0.2" } diff --git a/packages/core/.storybook/preview.js b/packages/core/.storybook/preview.js index 39886913cd..3749462492 100644 --- a/packages/core/.storybook/preview.js +++ b/packages/core/.storybook/preview.js @@ -128,6 +128,8 @@ const parameters = { ['Components', 'Patterns', 'Internal', 'Onboarding'], 'Experimental', ['Components', 'Patterns', 'Onboarding'], + 'Utils', + ['Components'], 'Deprecated', ], }, diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 692d2102a7..c3305de5a7 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/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.30.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-core@2.30.0-rc.1...@carbon/ibm-cloud-cognitive-core@2.30.0) (2024-11-20) + +**Note:** Version bump only for package @carbon/ibm-cloud-cognitive-core + + + + + # [2.30.0-rc.1](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-cloud-cognitive-core@2.24.0-rc.0...@carbon/ibm-cloud-cognitive-core@2.30.0-rc.1) (2024-11-15) diff --git a/packages/core/package.json b/packages/core/package.json index 741b878c78..ae46472dcf 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/ibm-cloud-cognitive-core", "private": true, - "version": "2.30.0-rc.1", + "version": "2.30.0", "license": "Apache-2.0", "main": "scripts/build.js", "repository": { @@ -29,7 +29,7 @@ }, "devDependencies": { "@carbon/grid": "^11.29.0", - "@carbon/ibm-products-styles": "^2.50.0-rc.1", + "@carbon/ibm-products-styles": "^2.50.0", "@carbon/layout": "^11.28.0", "@carbon/motion": "^11.24.0", "@carbon/react": "^1.69.0", diff --git a/packages/ibm-products-styles/CHANGELOG.md b/packages/ibm-products-styles/CHANGELOG.md index 4c68eafe64..6265053c3a 100644 --- a/packages/ibm-products-styles/CHANGELOG.md +++ b/packages/ibm-products-styles/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.50.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-products-styles@2.50.0-rc.1...@carbon/ibm-products-styles@2.50.0) (2024-11-20) + +**Note:** Version bump only for package @carbon/ibm-products-styles + + + + + # [2.50.0-rc.1](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-products-styles@2.44.0-rc.0...@carbon/ibm-products-styles@2.50.0-rc.1) (2024-11-15) diff --git a/packages/ibm-products-styles/package.json b/packages/ibm-products-styles/package.json index 6190ce283d..39bf709c54 100644 --- a/packages/ibm-products-styles/package.json +++ b/packages/ibm-products-styles/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/ibm-products-styles", "description": "Carbon for IBM Products styles", - "version": "2.50.0-rc.1", + "version": "2.50.0", "license": "Apache-2.0", "installConfig": { "hoistingLimits": "none" @@ -52,7 +52,7 @@ "cross-env": "^7.0.3", "glob": "^10.3.10", "jest": "^29.7.0", - "jest-config-ibm-cloud-cognitive": "^1.13.0-rc.1", + "jest-config-ibm-cloud-cognitive": "^1.13.0", "jest-environment-jsdom": "^29.7.0", "npm-check-updates": "^16.14.12", "npm-run-all": "^4.1.5", diff --git a/packages/ibm-products-web-components/.storybook/main.ts b/packages/ibm-products-web-components/.storybook/main.ts index 651209d990..89486e35d0 100644 --- a/packages/ibm-products-web-components/.storybook/main.ts +++ b/packages/ibm-products-web-components/.storybook/main.ts @@ -1,9 +1,20 @@ import { mergeConfig } from 'vite'; import { litStyleLoader, litTemplateLoader } from '@mordech/vite-lit-loader'; import viteSVGResultCarbonIconLoader from '../tools/vite-svg-result-carbon-icon-loader'; - +const glob = require('fast-glob'); +const stories = glob.sync( + [ + '../docs/**/*.mdx', + '../src/**/*.mdx', + '../src/**/*.stories.@(js|jsx|ts|tsx)', + ], + { + ignore: ['../src/**/docs/*.mdx'], + cwd: __dirname, + } +); const config = { - stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'], + stories: stories, addons: [ '@storybook/addon-links', '@storybook/addon-toolbars', @@ -23,9 +34,6 @@ const config = { name: '@storybook/web-components-vite', options: {}, }, - docs: { - autodocs: 'tag', - }, async viteFinal(config) { return mergeConfig(config, { plugins: [ diff --git a/packages/ibm-products-web-components/CHANGELOG.md b/packages/ibm-products-web-components/CHANGELOG.md index 7b1615df7e..8996a5906f 100644 --- a/packages/ibm-products-web-components/CHANGELOG.md +++ b/packages/ibm-products-web-components/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. +# [0.3.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-products-web-components@0.3.0-rc.1...@carbon/ibm-products-web-components@0.3.0) (2024-11-20) + +**Note:** Version bump only for package @carbon/ibm-products-web-components + + + + + # 0.3.0-rc.1 (2024-11-15) diff --git a/packages/ibm-products-web-components/package.json b/packages/ibm-products-web-components/package.json index a6de6211f6..1a264701c0 100644 --- a/packages/ibm-products-web-components/package.json +++ b/packages/ibm-products-web-components/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/ibm-products-web-components", "description": "Carbon for IBM Products Web Components", - "version": "0.3.0-rc.1", + "version": "0.3.0", "license": "Apache-2.0", "main": "es/index.js", "module": "es/index.js", @@ -49,7 +49,7 @@ "wca": "web-component-analyzer analyze src --outFile custom-elements.json" }, "dependencies": { - "@carbon/ibm-products-styles": "^2.50.0-rc.1", + "@carbon/ibm-products-styles": "^2.50.0", "@carbon/styles": "1.68.0", "@carbon/web-components": "2.16.0", "lit": "^3.1.0" @@ -59,9 +59,10 @@ "@carbon/motion": "^11.24.0", "@mordech/vite-lit-loader": "^0.35.0", "@rollup/plugin-alias": "^5.1.1", - "@rollup/plugin-commonjs": "^28.0.0", + "@rollup/plugin-commonjs": "^28.0.1", + "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^15.3.0", - "@rollup/plugin-typescript": "^12.1.0", + "@rollup/plugin-typescript": "^12.1.1", "@storybook/addon-essentials": "^8.3.6", "@storybook/addon-links": "^8.3.6", "@storybook/addon-storysource": "^8.3.6", @@ -78,11 +79,11 @@ "eslint": "^9.11.1", "eslint-config-carbon": "3.17.1", "globby": "^14.0.2", - "happy-dom": "^15.7.4", + "happy-dom": "^15.11.6", "postcss": "^8.4.47", "remark-gfm": "^4.0.0", "rimraf": "^5.0.5", - "rollup": "^3.29.5", + "rollup": "^4.27.3", "rollup-plugin-copy": "^3.5.0", "sass": "^1.80.6", "storybook": "^8.2.8", diff --git a/packages/ibm-products-web-components/src/components/side-panel/side-panel.mdx b/packages/ibm-products-web-components/src/components/side-panel/side-panel.mdx index f553f5eac5..d786152f66 100644 --- a/packages/ibm-products-web-components/src/components/side-panel/side-panel.mdx +++ b/packages/ibm-products-web-components/src/components/side-panel/side-panel.mdx @@ -6,12 +6,6 @@ import * as SidePanelStories from './side-panel.stories'; # SidePanel -> 💡 Check our -> [CodeSandbox](https://codesandbox.io/s/github/carbon-design-system/carbon/tree/main/packages/web-components/examples/components/side-panel) -> example implementation. - -[![Edit carbon-web-components](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/carbon-design-system/carbon/tree/main/packages/web-components/examples/components/side-panel) - Side panels keep users in-context of a page while performing tasks like navigating, editing, viewing details, or configuring something new. @@ -22,16 +16,13 @@ Here's a quick example to get you started. ### JS (via import) ```javascript -import '@carbon/web-components/es/components/side-panel/index.js'; +import '@carbon/ibm-products-web-components/es/components/side-panel/index.js'; // The following are used for slotted fields import '@carbon/web-components/es/components/text-input/index.js'; import '@carbon/web-components/es/components/textarea/index.js'; import '@carbon/web-components/es/components/button/index.js'; ``` -{`${cdnJs({ components: ['side-panel'] })}`} -{`${cdnCss()}`} - ### HTML ```html diff --git a/packages/ibm-products-web-components/src/components/side-panel/side-panel.stories.ts b/packages/ibm-products-web-components/src/components/side-panel/side-panel.stories.ts index d4d7d1134f..2a761d5233 100644 --- a/packages/ibm-products-web-components/src/components/side-panel/side-panel.stories.ts +++ b/packages/ibm-products-web-components/src/components/side-panel/side-panel.stories.ts @@ -432,7 +432,7 @@ const defaultTemplate = { size=${args.size} ?slide-in=${args.slideIn} .title=${args.title} - @cds-side-panel-navigate-back=${prevStep} + @c4p-side-panel-navigate-back=${prevStep} > ${args.content} diff --git a/packages/ibm-products-web-components/src/components/side-panel/side-panel.ts b/packages/ibm-products-web-components/src/components/side-panel/side-panel.ts index 51292c4b35..fe7b498300 100644 --- a/packages/ibm-products-web-components/src/components/side-panel/side-panel.ts +++ b/packages/ibm-products-web-components/src/components/side-panel/side-panel.ts @@ -85,13 +85,13 @@ function tryFocusElements(elements: NodeListOf, reverse: boolean) { /** * SidePanel. * - * @element cds-side-panel + * @element c4p-side-panel * @csspart dialog The dialog. - * @fires cds-side-panel-beingclosed + * @fires c4p-side-panel-beingclosed * The custom event fired before this side-panel is being closed upon a user gesture. * Cancellation of this event stops the user-initiated action of closing this side-panel. - * @fires cds-side-panel-closed - The custom event fired after this side-panel is closed upon a user gesture. - * @fires cds-side-panel-navigate-back - custom event fired when clicking navigate back (available when step > 0) + * @fires c4p-side-panel-closed - The custom event fired after this side-panel is closed upon a user gesture. + * @fires c4p-side-panel-navigate-back - custom event fired when clicking navigate back (available when step > 0) */ @customElement(`${prefix}-side-panel`) class CDSSidePanel extends HostListenerMixin(LitElement) { @@ -913,7 +913,7 @@ class CDSSidePanel extends HostListenerMixin(LitElement) { await (this.constructor as typeof CDSSidePanel)._delay(); if (focusNode) { // For cases where a `carbon-web-components` component (e.g. ``) being `primaryFocusNode`, - // where its first update/render cycle that makes it focusable happens after ``'s first update/render cycle + // where its first update/render cycle that makes it focusable happens after ``'s first update/render cycle (focusNode as HTMLElement).focus(); } else if ( !tryFocusElements( diff --git a/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.mdx b/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.mdx index 8c44b87303..949e81d8a5 100644 --- a/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.mdx +++ b/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.mdx @@ -6,12 +6,6 @@ import * as TearsheetStories from './tearsheet.stories'; # Tearsheet -> 💡 Check our -> [Stackblitz](https://stackblitz.com/github/carbon-design-system/carbon/tree/main/packages/web-components/examples/components/tearsheet) -> example implementation. - -[![Edit carbon-web-components](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/carbon-design-system/carbon/tree/main/packages/web-components/examples/components/tearsheet) - Tearsheets keep users in-context of a page while performing tasks like navigating, editing, viewing details, or configuring something new. @@ -22,15 +16,13 @@ Here's a quick example to get you started. ### JS (via import) ```javascript -import '@carbon/web-components/es/components/tearsheet/index.js'; +import '@carbon/ibm-products-web-components/es/components/tearsheet/index.js'; // The following are used for slotted fields import '@carbon/web-components/es/components/text-input/index.js'; import '@carbon/web-components/es/components/textarea/index.js'; import '@carbon/web-components/es/components/button/index.js'; ``` -{`${cdnJs({ components: ['tearsheet'] })}`} -{`${cdnCss()}`} ### HTML diff --git a/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.scss b/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.scss index 4a407acbe0..a2f6542c31 100644 --- a/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.scss +++ b/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.scss @@ -102,6 +102,12 @@ $motion-duration: $duration-moderate-02; .#{$block-class}__influencer[wide] { @extend .#{$block-class}__influencer--wide; } + ::slotted(#{$carbon-prefix}-slug) { + display: flex; + inset-inline-end: 0; + margin-block: 6px; + margin-inline-end: 1rem; + } } :host(#{$prefix}-tearsheet[open]) { diff --git a/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.stories.ts b/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.stories.ts index 407bbbac55..3fcd7fd55d 100644 --- a/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.stories.ts +++ b/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.stories.ts @@ -16,6 +16,7 @@ import { import './index'; import '@carbon/web-components/es/components/tabs/index.js'; import '@carbon/web-components/es/components/slug/index.js'; +import '@carbon/web-components/es/components/dropdown/index.js'; import '@carbon/web-components/es/components/progress-indicator/index.js'; import '@carbon/web-components/es/components/progress-bar/index.js'; import '@carbon/web-components/es/components/button/index.js'; @@ -25,10 +26,15 @@ import { prefix } from '../../globals/settings'; import styles from './story-styles.scss?lit'; import { BUTTON_KIND } from '@carbon/web-components/es/components/button/defs.js'; + const toggleButton = () => { document.querySelector(`${prefix}-tearsheet`)?.toggleAttribute('open'); }; +const cancelButton = () => { + document.querySelector(`${prefix}-tearsheet`)?.removeAttribute('open'); +}; + const widths = { // 'default (narrow)': null, [`Narrow (${TEARSHEET_WIDTH.NARROW})`]: TEARSHEET_WIDTH.NARROW, @@ -205,7 +211,7 @@ const headerActions = { const getActionToolbarItems = (index) => { switch (index) { case 1: - return html` + return html` ${['option 1', 'option 2', 'option 3', 'option 4'].map( (option) => html` ${option} { return kinds?.map((kind) => { - return html` + return html` ${kind.charAt(0).toUpperCase() + kind.slice(1)} `; }); @@ -359,21 +370,21 @@ const getSlug = (index) => { export const Default = { args: { - actionItems: getActionItems(4), - headerActions: getActionToolbarItems(0), - content: getContent(2), - label: getLabel(1), + actionItems: 4, + headerActions: 0, + content: 2, + label: 1, open: false, influencerWidth: TEARSHEET_INFLUENCER_WIDTH.NARROW, influencerPlacement: TEARSHEET_INFLUENCER_PLACEMENT.LEFT, - influencer: getInfluencer(0), + influencer: 0, preventCloseOnClickOutside: false, selectorInitialFocus: '', width: TEARSHEET_WIDTH.WIDE, - slug: getSlug(0), + slug: 0, description: 'Description used to describe the flow if need be.', title: 'Title used to designate the overarching flow of the tearsheet.', - headerNavigation: getNavigation(0), + headerNavigation: 0, }, argTypes: { actionItems: { @@ -465,10 +476,10 @@ export const Default = { width=${args.width} > - ${args.content} + ${getContent(args.content)} - ${args.label} + ${getLabel(args.label)} ${args.title ? html`${args.title}` : ''} @@ -479,19 +490,19 @@ export const Default = { : ''} - ${args.headerActions} + ${getActionToolbarItems(args.headerActions)} - ${args.actionItems} + ${getActionItems(args.actionItems)} - ${args.slug} + ${getSlug(args.slug)} - ${args.headerNavigation} + ${getNavigation(args.headerNavigation)} - ${args.influencer} + ${getInfluencer(args.influencer)} `; }, @@ -501,7 +512,7 @@ export const WithNavigation = { ...Default, args: { ...Default.args, - headerNavigation: getNavigation(1), + headerNavigation: 1, }, }; @@ -509,7 +520,7 @@ export const WithInfluencer = { ...Default, args: { ...Default.args, - influencer: getInfluencer(2), + influencer: 2, }, }; @@ -517,8 +528,8 @@ export const WithAllHeaderItemsAndInfluencer = { ...Default, args: { ...Default.args, - headerActions: getActionToolbarItems(2), - influencer: getInfluencer(2), + headerActions: 2, + influencer: 2, }, }; @@ -581,10 +592,10 @@ export const StackingTemplate = { Toggle tearsheet two - ${args.content} + ${getContent(args.content)} - ${args.label} + ${getLabel(args.label)} ${args.title ? html`One ${args.title}` : ''} @@ -595,19 +606,19 @@ export const StackingTemplate = { : ''} - ${args.headerActions} + ${getActionToolbarItems(args.headerActions)} - ${args.actionItems} + ${getActionItems(args.actionItems)} - ${args.slug} + ${getSlug(args.slug)} - ${args.headerNavigation} + ${getNavigation(args.headerNavigation)} - ${args.influencer} + ${getInfluencer(args.influencer)} Toggle tearsheet three - ${args.content} + ${getContent(args.content)} - ${args.label} + ${getLabel(args.label)} ${args.title ? html`Two ${args.title}` : ''} @@ -638,19 +649,19 @@ export const StackingTemplate = { : ''} - ${args.headerActions} + ${getActionToolbarItems(args.headerActions)} - ${args.actionItems} + ${getActionItems(args.actionItems)} - ${args.slug} + ${getSlug(args.slug)} - ${args.headerNavigation} + ${getNavigation(args.headerNavigation)} - ${args.influencer} + ${getInfluencer(args.influencer)} - ${args.content} + ${getContent(args.content)} - ${args.label} + ${getLabel(args.label)} ${args.title ? html`Three ${args.title}` : ''} @@ -678,19 +689,19 @@ export const StackingTemplate = { : ''} - ${args.headerActions} + ${getActionToolbarItems(args.headerActions)} - ${args.actionItems} + ${getActionItems(args.actionItems)} - ${args.slug} + ${getSlug(args.slug)} - ${args.headerNavigation} + ${getNavigation(args.headerNavigation)} - ${args.influencer} + ${getInfluencer(args.influencer)} `; }, diff --git a/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.ts b/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.ts index f44045374e..ae3abc0071 100644 --- a/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.ts +++ b/packages/ibm-products-web-components/src/components/tearsheet/tearsheet.ts @@ -314,7 +314,7 @@ class CDSTearsheet extends HostListenerMixin(LitElement) { this._hasSlug = childItems.length > 0; if (this._hasSlug) { - childItems[0].setAttribute('size', 'lg'); + childItems[0].setAttribute('size', 'sm'); this.setAttribute('slug', ''); } else { this.removeAttribute('slug'); diff --git a/packages/ibm-products-web-components/src/globals/internal/storybook-cdn.ts b/packages/ibm-products-web-components/src/globals/internal/storybook-cdn.ts new file mode 100644 index 0000000000..c331b6a8c5 --- /dev/null +++ b/packages/ibm-products-web-components/src/globals/internal/storybook-cdn.ts @@ -0,0 +1,69 @@ +/** + * @license + * + * 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. + */ + +import packageJson from '../../../package.json'; + +/* eslint-disable max-len */ + +/** + * + */ +/** + * Renders the component(s) script tag content and returns back the string + * + * @param {Array} components array of component names + * @param {string} tag tag folder + */ +function _renderScript(components, tag) { + let scripts = ''; + components.forEach((component) => { + scripts += `\n`; + }); + return scripts; +} + +/** + * This is the markdown block for JS via CDN + * + * @param {Array} components array of components to render + * @param components.components components to render + */ +export const cdnJs = ({ components }) => { + return ` +### JS (via CDN) + + > NOTE: Only one version of artifacts should be used. Mixing versions will cause rendering issues. + + \`\`\`html + // SPECIFIC VERSION (available starting v2.0.0) + ${_renderScript(components, `version/v${packageJson.version}`)} + \`\`\` + + #### Right-to-left (RTL) versions + + \`\`\`html + // SPECIFIC VERSION (available starting v2.0.0) + ${_renderScript(components, `version/v${packageJson.version}`)} + \`\`\` + `; +}; + +/** + * This is the markdown block for CSS via CDN + */ +export const cdnCss = () => { + return ` +### Carbon CDN style helpers (optional) + +There are optional CDN artifacts available that can assist with global Carbon +styles in lieu of including into your specific application bundle. + +[Click here to learn more](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/packages/web-components/docs/carbon-cdn-style-helpers.md)\n\n + `; +}; diff --git a/packages/ibm-products-web-components/tasks/build.js b/packages/ibm-products-web-components/tasks/build.js index 1cddff9eec..35a96de035 100644 --- a/packages/ibm-products-web-components/tasks/build.js +++ b/packages/ibm-products-web-components/tasks/build.js @@ -22,6 +22,7 @@ import nodeResolve from '@rollup/plugin-node-resolve'; import path from 'path'; import postcss from 'postcss'; import typescript from '@rollup/plugin-typescript'; +import json from '@rollup/plugin-json'; import * as packageJson from '../package.json' assert { type: 'json' }; @@ -125,6 +126,7 @@ function getRollupConfig(input, rootDir, outDir, iconInput) { targets: [{ src: 'src/components/**/*.scss', dest: 'scss' }], flatten: false, }), + [json()], nodeResolve({ browser: true, mainFields: ['jsnext', 'module', 'main'], diff --git a/packages/ibm-products/CHANGELOG.md b/packages/ibm-products/CHANGELOG.md index f851258641..f2b1ce27b0 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.54.0](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-products@2.54.0-rc.1...@carbon/ibm-products@2.54.0) (2024-11-20) + +**Note:** Version bump only for package @carbon/ibm-products + + + + + # [2.54.0-rc.1](https://github.com/carbon-design-system/ibm-products/compare/@carbon/ibm-products@2.48.0-rc.0...@carbon/ibm-products@2.54.0-rc.1) (2024-11-15) diff --git a/packages/ibm-products/package.json b/packages/ibm-products/package.json index 0e2e873955..79232b9d8c 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.54.0-rc.1", + "version": "2.54.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -66,10 +66,10 @@ "@babel/preset-react": "^7.23.3", "@babel/preset-typescript": "^7.21.5", "@ibm/telemetry-js-config-generator": "^1.0.3", - "@rollup/plugin-babel": "^6.0.0", - "@rollup/plugin-commonjs": "^28.0.0", + "@rollup/plugin-babel": "^6.0.4", + "@rollup/plugin-commonjs": "^28.0.1", "@rollup/plugin-node-resolve": "^15.3.0", - "@rollup/plugin-typescript": "^12.1.0", + "@rollup/plugin-typescript": "^12.1.1", "@types/react-table": "^7.7.20", "babel-plugin-dev-expression": "^0.2.3", "babel-preset-ibm-cloud-cognitive": "^0.14.40", @@ -81,14 +81,14 @@ "fs-extra": "^11.2.0", "glob": "^10.3.10", "jest": "^29.7.0", - "jest-config-ibm-cloud-cognitive": "^1.13.0-rc.1", + "jest-config-ibm-cloud-cognitive": "^1.13.0", "jest-environment-jsdom": "^29.7.0", "namor": "^1.1.2", "npm-check-updates": "^16.14.12", "npm-run-all": "^4.1.5", "rimraf": "^5.0.5", - "rollup": "^3.29.5", - "rollup-plugin-strip-banner": "^3.0.0", + "rollup": "^4.27.3", + "rollup-plugin-strip-banner": "^3.1.0", "sass": "^1.80.6", "typescript-config-carbon": "^0.3.0", "yargs": "^17.7.2" @@ -96,7 +96,7 @@ "dependencies": { "@babel/runtime": "^7.23.9", "@carbon/feature-flags": "^0.24.0", - "@carbon/ibm-products-styles": "^2.50.0-rc.1", + "@carbon/ibm-products-styles": "^2.50.0", "@carbon/telemetry": "^0.1.0", "@dnd-kit/core": "^6.0.8", "@dnd-kit/modifiers": "^7.0.0", diff --git a/packages/ibm-products/src/components/ActionBar/ActionBar.stories.jsx b/packages/ibm-products/src/components/ActionBar/ActionBar.stories.jsx index 339bb777ef..af5ceee927 100644 --- a/packages/ibm-products/src/components/ActionBar/ActionBar.stories.jsx +++ b/packages/ibm-products/src/components/ActionBar/ActionBar.stories.jsx @@ -29,7 +29,7 @@ const getActions = (num) => })); export default { - title: 'Experimental/Components/ActionBar', + title: 'Utils/Components/ActionBar', component: ActionBar, tags: ['autodocs'], argTypes: { diff --git a/packages/ibm-products/src/components/Cascade/Cascade.stories.jsx b/packages/ibm-products/src/components/Cascade/Cascade.stories.jsx index 9e4ec7bf05..1d8b1629b5 100644 --- a/packages/ibm-products/src/components/Cascade/Cascade.stories.jsx +++ b/packages/ibm-products/src/components/Cascade/Cascade.stories.jsx @@ -12,7 +12,7 @@ import { Column } from '@carbon/react'; import DocsPage from './Cascade.docs-page'; export default { - title: 'IBM Products/Patterns/Cascade', + title: 'Utils/Components/Cascade', component: Cascade, tags: ['autodocs'], parameters: { diff --git a/packages/ibm-products/src/components/CreateFullPage/CreateFullPage.stories.jsx b/packages/ibm-products/src/components/CreateFullPage/CreateFullPage.stories.jsx index 1108fbfd32..1850755831 100644 --- a/packages/ibm-products/src/components/CreateFullPage/CreateFullPage.stories.jsx +++ b/packages/ibm-products/src/components/CreateFullPage/CreateFullPage.stories.jsx @@ -56,12 +56,11 @@ export default { docs: { page: DocsPage }, controls: { sort: 'requiredFirst' }, percy: { - waitForSelector: [ - `button.${blockClass}__create-button`, - `.${blockClass}__influencer`, - ], + waitForSelector: `button.${blockClass}__create-button`, + waitForSelector: `.${blockClass}__influencer`, }, }, + decorators: [ (story) =>
{story()}
, ], diff --git a/packages/ibm-products/src/components/CreateTearsheet/CreateTearsheet.docs-page.js b/packages/ibm-products/src/components/CreateTearsheet/CreateTearsheet.docs-page.js index b1a0b4e45a..41c960bf56 100644 --- a/packages/ibm-products/src/components/CreateTearsheet/CreateTearsheet.docs-page.js +++ b/packages/ibm-products/src/components/CreateTearsheet/CreateTearsheet.docs-page.js @@ -146,6 +146,30 @@ sections, you can utilize the below included class names. | \`#{$pkg-prefix}--create-tearsheet__section--divider\` | divider | Includes a \`1px\` divider line inside the \`main\` content | `, }, + { + title: 'With AI Label', + description: + 'An AI Label is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level. A Carbon AI Label can be provided to the CreateTearsheet component by including an `slug` property on it and providing the carbon AILabel component as its own custom component. Please note that the `slug` and `aiLabel` attributes are being deprecated and will soon be replaced by `decorator` to align with the Carbon.', + source: { + language: 'html', + code: ` + + ... ... + + } +> + ... + + `, + }, + }, ]} /> ); diff --git a/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.js b/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.js index 41804f1952..9108501d78 100644 --- a/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.js +++ b/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.js @@ -18,6 +18,7 @@ const componentName = 'DecoratorDualButton'; /** * The DecoratorDualButton groups a key/value pair where the key and value each behave like a button. + * @deprecated This component is deprecated */ export let DecoratorDualButton = React.forwardRef((props, ref) => { const validProps = prepareProps(props, [ @@ -37,6 +38,11 @@ export let DecoratorDualButton = React.forwardRef((props, ref) => { ); }); +DecoratorDualButton.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag DecoratorDualButton = pkg.checkComponentEnabled( DecoratorDualButton, diff --git a/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.mdx b/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.mdx index c80221f7c4..f365a5afe9 100644 --- a/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.mdx +++ b/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.mdx @@ -12,6 +12,11 @@ import * as DecoratorDualButtonStories from './DecoratorDualButton.stories'; - [Example setLabelTitle()](#example-setlabeltitle) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + + ## Overview The DecoratorDualButton groups a key/value pair where the key and value are each diff --git a/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.stories.jsx b/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.stories.jsx index 2aa216b11b..9cd2e82692 100644 --- a/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.stories.jsx +++ b/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.stories.jsx @@ -11,6 +11,7 @@ import { DecoratorDualButton } from '.'; import mdx from './DecoratorDualButton.mdx'; import styles from './_storybook-styles.scss?inline'; +import { Annotation } from '../../../../core/.storybook/Annotation'; const scoreOptions = { '-1 (less than 0 is 0)': -1, @@ -30,7 +31,7 @@ const scoreOptions = { }; export default { - title: 'Experimental/Components/Decorators/DecoratorDualButton', + title: 'Deprecated/Decorators/DecoratorDualButton', component: DecoratorDualButton, tags: ['autodocs'], parameters: { @@ -92,6 +93,21 @@ export default { theme: 0, truncateValue: 0, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { diff --git a/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.test.js b/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.test.js index 9416813b12..5fbbad3145 100644 --- a/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.test.js +++ b/packages/ibm-products/src/components/DecoratorDualButton/DecoratorDualButton.test.js @@ -40,6 +40,10 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); + it('renders a component DecoratorDualButton', async () => { const { container } = renderComponent(); const decorator = container.querySelector(`[data-testid="${dataTestId}"]`); diff --git a/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.js b/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.js index a7317b609f..025feb269d 100644 --- a/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.js +++ b/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.js @@ -18,6 +18,7 @@ const componentName = 'DecoratorLink'; /** * The DecoratorLink groups a key/value pair to behave like a link. + * @deprecated This component is deprecated */ export let DecoratorLink = React.forwardRef((props, ref) => { const validProps = prepareProps(props, [ @@ -39,6 +40,11 @@ export let DecoratorLink = React.forwardRef((props, ref) => { ); }); +DecoratorLink.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag DecoratorLink = pkg.checkComponentEnabled(DecoratorLink, componentName); diff --git a/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.mdx b/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.mdx index 27f554c426..08b7d9f618 100644 --- a/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.mdx +++ b/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.mdx @@ -12,6 +12,11 @@ import * as DecoratorLinkStories from './DecoratorLink.stories'; - [Example setLabelTitle()](#example-setlabeltitle) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + + ## Overview The DecoratorLink groups a key/value pair to look and behave like a single link. diff --git a/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.stories.jsx b/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.stories.jsx index 6af10b3c81..b6ac92b52e 100644 --- a/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.stories.jsx +++ b/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.stories.jsx @@ -11,6 +11,7 @@ import { DecoratorLink } from '.'; import mdx from './DecoratorLink.mdx'; import styles from './_storybook-styles.scss?inline'; +import { Annotation } from '../../../../core/.storybook/Annotation'; const scoreOptions = { '-1 (less than 0 is 0)': -1, @@ -30,7 +31,7 @@ const scoreOptions = { }; export default { - title: 'Experimental/Components/Decorators/DecoratorLink', + title: 'Deprecated/Decorators/DecoratorLink', component: DecoratorLink, tags: ['autodocs'], parameters: { @@ -92,6 +93,21 @@ export default { theme: 0, truncateValue: 0, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { diff --git a/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.test.js b/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.test.js index 0a4d2a6a13..85885dca2c 100644 --- a/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.test.js +++ b/packages/ibm-products/src/components/DecoratorLink/DecoratorLink.test.js @@ -40,6 +40,10 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); + it('renders a component DecoratorLink', async () => { const { container } = renderComponent(); const decorator = container.querySelector(`[data-testid="${dataTestId}"]`); diff --git a/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.js b/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.js index f6db9ac75c..67a3efcd53 100644 --- a/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.js +++ b/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.js @@ -18,6 +18,7 @@ const componentName = 'DecoratorSingleButton'; /** * The DecoratorSingleButton groups a key/value pair to behave like a button. + * @deprecated This component is deprecated */ export let DecoratorSingleButton = React.forwardRef((props, ref) => { const validProps = prepareProps(props, [ @@ -39,6 +40,11 @@ export let DecoratorSingleButton = React.forwardRef((props, ref) => { ); }); +DecoratorSingleButton.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag DecoratorSingleButton = pkg.checkComponentEnabled( DecoratorSingleButton, diff --git a/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.mdx b/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.mdx index f518266723..ec861a8737 100644 --- a/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.mdx +++ b/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.mdx @@ -12,6 +12,10 @@ import * as DecoratorSingleButtonStories from './DecoratorSingleButton.stories'; - [Example setLabelTitle()](#example-setlabeltitle) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + ## Overview The DecoratorSingleButton groups a key/value pair to look and behave like a diff --git a/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.stories.jsx b/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.stories.jsx index 3e1178eebb..72fd0346f8 100644 --- a/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.stories.jsx +++ b/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.stories.jsx @@ -11,6 +11,7 @@ import { DecoratorSingleButton } from '.'; import mdx from './DecoratorSingleButton.mdx'; import styles from './_storybook-styles.scss?inline'; +import { Annotation } from '../../../../core/.storybook/Annotation'; const scoreOptions = { '-1 (less than 0 is 0)': -1, @@ -30,7 +31,7 @@ const scoreOptions = { }; export default { - title: 'Experimental/Components/Decorators/DecoratorSingleButton', + title: 'Deprecated/Decorators/DecoratorSingleButton', component: DecoratorSingleButton, tags: ['autodocs'], parameters: { @@ -90,6 +91,21 @@ export default { theme: 0, truncateValue: 0, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { @@ -113,7 +129,11 @@ const Template = (args) => { ); } - return ; + return ( + <> + + + ); }; export const Default = Template.bind({}); diff --git a/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.test.js b/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.test.js index 7d2a7d8d54..f18fdb1b7b 100644 --- a/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.test.js +++ b/packages/ibm-products/src/components/DecoratorSingleButton/DecoratorSingleButton.test.js @@ -40,6 +40,10 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); + it('renders a component DecoratorSingleButton', async () => { const { container } = renderComponent(); const decorator = container.querySelector(`[data-testid="${dataTestId}"]`); diff --git a/packages/ibm-products/src/components/DelimitedList/DelimitedList.stories.jsx b/packages/ibm-products/src/components/DelimitedList/DelimitedList.stories.jsx index 62cad69893..f3c8996f50 100644 --- a/packages/ibm-products/src/components/DelimitedList/DelimitedList.stories.jsx +++ b/packages/ibm-products/src/components/DelimitedList/DelimitedList.stories.jsx @@ -15,7 +15,7 @@ import { DocsPage } from './DelimitedList.docs-page'; const storyClass = 'delimited-list-stories'; export default { - title: 'Experimental/Components/Delimited list/DelimitedList', + title: 'Utils/Components/DelimitedList', component: DelimitedList, tags: ['autodocs'], parameters: { diff --git a/packages/ibm-products/src/components/DescriptionList/DescriptionList.js b/packages/ibm-products/src/components/DescriptionList/DescriptionList.js index f538f3b8e1..64fa7451e8 100644 --- a/packages/ibm-products/src/components/DescriptionList/DescriptionList.js +++ b/packages/ibm-products/src/components/DescriptionList/DescriptionList.js @@ -40,6 +40,7 @@ const defaults = { /** * Type layouts provide an orderly layout of terms and definitions. + * @deprecated This component is deprecated */ export let DescriptionList = React.forwardRef( ( @@ -80,6 +81,11 @@ export let DescriptionList = React.forwardRef( } ); +DescriptionList.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag DescriptionList = pkg.checkComponentEnabled(DescriptionList, componentName); diff --git a/packages/ibm-products/src/components/DescriptionList/DescriptionList.mdx b/packages/ibm-products/src/components/DescriptionList/DescriptionList.mdx index d0ca52ace0..6aafe4c2b2 100644 --- a/packages/ibm-products/src/components/DescriptionList/DescriptionList.mdx +++ b/packages/ibm-products/src/components/DescriptionList/DescriptionList.mdx @@ -11,6 +11,10 @@ import * as DescriptionListStories from './DescriptionList.stories'; - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + ## Overview Type layouts provide an orderly layout of terms and definitions. diff --git a/packages/ibm-products/src/components/DescriptionList/DescriptionList.stories.jsx b/packages/ibm-products/src/components/DescriptionList/DescriptionList.stories.jsx index b71f054273..3b1f541088 100644 --- a/packages/ibm-products/src/components/DescriptionList/DescriptionList.stories.jsx +++ b/packages/ibm-products/src/components/DescriptionList/DescriptionList.stories.jsx @@ -23,9 +23,10 @@ import { DescriptionListSize } from './constants'; import mdx from './DescriptionList.mdx'; import styles from './_storybook-styles.scss?inline'; +import { Annotation } from '../../../../core/.storybook/Annotation'; export default { - title: 'Experimental/Components/Description list/DescriptionList', + title: 'Deprecated/DescriptionList', component: DescriptionList, tags: ['autodocs'], // TODO: Define argTypes for props not represented by standard JS types. @@ -44,6 +45,21 @@ export default { page: mdx, }, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; /** @@ -51,42 +67,44 @@ export default { */ const Template = (args) => { return ( - - - - Term 1 + <> + + + + Term 1 - - Lorem ipsum dolor sit amet, consectetur adipiscing elit. - - + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. + + - - Term 2 + + Term 2 - - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam - accumsan, dui ut pulvinar mattis, diam est imperdiet ex, a varius - lacus ex at libero. Aenean euismod viverra odio, id volutpat turpis - commodo. - - + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam + accumsan, dui ut pulvinar mattis, diam est imperdiet ex, a varius + lacus ex at libero. Aenean euismod viverra odio, id volutpat + turpis commodo. + + - - Term 3 + + Term 3 - - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam - accumsan, dui ut pulvinar mattis, diam est imperdiet ex, a varius - lacus ex at libero. - - - - + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam + accumsan, dui ut pulvinar mattis, diam est imperdiet ex, a varius + lacus ex at libero. + + + + + ); }; diff --git a/packages/ibm-products/src/components/DescriptionList/DescriptionList.test.js b/packages/ibm-products/src/components/DescriptionList/DescriptionList.test.js index ab3e1b6ea7..384462c62a 100644 --- a/packages/ibm-products/src/components/DescriptionList/DescriptionList.test.js +++ b/packages/ibm-products/src/components/DescriptionList/DescriptionList.test.js @@ -64,6 +64,10 @@ const renderComponent = ({ ...rest } = {}, children = childrenContent) => render({children}); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); + it('renders a component DescriptionList', async () => { renderComponent({ 'data-testid': dataTestId }); expect(screen.getByTestId(dataTestId)).toHaveClass(blockClass); @@ -71,8 +75,8 @@ describe(componentName, () => { it('has no accessibility violations', async () => { const { container } = renderComponent(); - await expect(container).toBeAccessible(componentName); - await expect(container).toHaveNoAxeViolations(); + expect(container).toBeAccessible(componentName); + expect(container).toHaveNoAxeViolations(); }); it(`renders children`, async () => { diff --git a/packages/ibm-products/src/components/EmptyStates/EmptyStateV2.stories.jsx b/packages/ibm-products/src/components/EmptyStates/EmptyStateV2.stories.jsx index 8450384513..bc6ab4f4da 100644 --- a/packages/ibm-products/src/components/EmptyStates/EmptyStateV2.stories.jsx +++ b/packages/ibm-products/src/components/EmptyStates/EmptyStateV2.stories.jsx @@ -11,9 +11,10 @@ import { Add } from '@carbon/react/icons'; import CustomIllustration from './story_assets/empty-state-bright-magnifying-glass.svg'; import { EmptyStateV2 } from '.'; import { StoryDocsPage } from '../../global/js/utils/StoryDocsPage'; +import { Annotation } from '../../../../core/.storybook/Annotation'; export default { - title: 'Experimental/Patterns/Empty state/EmptyStateV2', + title: 'Deprecated/Empty state/EmptyStateV2', component: EmptyStateV2, tags: ['autodocs'], parameters: { @@ -30,10 +31,32 @@ export default { label: 'Carbon empty pattern usage guidelines', }, ]} + deprecationNotice="This component is deprecated and will be removed in the next major version. For more information, please refer to the [Carbon docs](https://carbondesignsystem.com/patterns/empty-states-pattern/)." /> ), }, }, + decorators: [ + (story) => ( +
+ + This component is deprecated and will be removed in the next major + version. For more information, please refer to the{' '} + + Carbon docs + + . +
+ } + > + {story()} + + + ), + ], }; const defaultProps = { diff --git a/packages/ibm-products/src/components/EmptyStates/EmptyStateV2.tsx b/packages/ibm-products/src/components/EmptyStates/EmptyStateV2.tsx index a890685e11..5cf715df38 100644 --- a/packages/ibm-products/src/components/EmptyStates/EmptyStateV2.tsx +++ b/packages/ibm-products/src/components/EmptyStates/EmptyStateV2.tsx @@ -90,6 +90,7 @@ export interface EmptyStateV2Props { /** * This is the V2 version of the `EmptyState` component. To use you must pass the `v2` prop to the V1 version of the component `EmptyState` and use the props below. * In order to avoid breaking changes in the future `EmptyStateV2` is not actually directly importable. + * @deprecated */ export let EmptyStateV2 = React.forwardRef( @@ -180,6 +181,13 @@ export let EmptyStateV2 = React.forwardRef( } ); +/**@ts-ignore*/ +EmptyStateV2.deprecated = { + level: 'warn', + details: + 'For more information, please refer to the Carbon docs https://carbondesignsystem.com/patterns/empty-states-pattern/', +}; + // Return a placeholder if not released and not enabled by feature flag EmptyStateV2 = pkg.checkComponentEnabled(EmptyStateV2, componentName); diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanel.js b/packages/ibm-products/src/components/FilterPanel/FilterPanel.js index c756b66f44..37809ad538 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanel.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanel.js @@ -19,7 +19,9 @@ const componentName = 'FilterPanel'; /** * The container for filter panel subcomponents. + * @deprecated This component is deprecated */ + export let FilterPanel = React.forwardRef( ({ children, className, title, ...rest }, ref) => { return ( @@ -35,6 +37,10 @@ export let FilterPanel = React.forwardRef( ); } ); +FilterPanel.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; // Return a placeholder if not released and not enabled by feature flag FilterPanel = pkg.checkComponentEnabled(FilterPanel, componentName); diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanel.mdx b/packages/ibm-products/src/components/FilterPanel/FilterPanel.mdx index f5e9db0329..b2544a6bb3 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanel.mdx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanel.mdx @@ -11,6 +11,11 @@ import * as FilterPanelStories from './FilterPanel.stories'; - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + + ## Overview The `FilterPanel` is the container for its subcomponents. diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanel.stories.jsx b/packages/ibm-products/src/components/FilterPanel/FilterPanel.stories.jsx index d9a910a4b3..6dd49f4a95 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanel.stories.jsx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanel.stories.jsx @@ -24,11 +24,12 @@ import { import mdx from './FilterPanel.mdx'; import styles from './_storybook-styles.scss?inline'; +import { Annotation } from '../../../../core/.storybook/Annotation'; const storyClass = 'filter-panel-stories'; export default { - title: 'Experimental/Components/Filter panel/FilterPanel', + title: 'Deprecated/Filter panel/FilterPanel', component: FilterPanel, tags: ['autodocs'], parameters: { @@ -64,6 +65,21 @@ export default { args: { title: 1, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const demoData = [ diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanel.test.js b/packages/ibm-products/src/components/FilterPanel/FilterPanel.test.js index 06447e4239..915c95b8b9 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanel.test.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanel.test.js @@ -25,6 +25,9 @@ const renderComponent = ({ ...rest } = {}) => render(); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); it('renders a component FilterPanel', async () => { renderComponent(); expect(screen.getByTestId(dataTestId)).toBeInTheDocument(); diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js index 265268114f..f2f5797e0d 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js @@ -25,6 +25,7 @@ const defaults = { /** * A container with a label and optional count. + * @deprecated This component is deprecated */ export let FilterPanelAccordion = React.forwardRef( ( @@ -62,6 +63,11 @@ export let FilterPanelAccordion = React.forwardRef( } ); +FilterPanelAccordion.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag FilterPanelAccordion = pkg.checkComponentEnabled( FilterPanelAccordion, diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.mdx b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.mdx index 8b9d7e8794..bd91daef62 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.mdx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.mdx @@ -11,6 +11,11 @@ import * as FilterPanelAccordionStories from './FilterPanelAccordion.stories'; - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + + ## Overview The `FilterPanelAccordion` is a container required for grouping diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.stories.jsx b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.stories.jsx index ba13deeaec..f91aaab1b4 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.stories.jsx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.stories.jsx @@ -14,11 +14,12 @@ import mdx from './FilterPanelAccordion.mdx'; import uuidv4 from '../../../global/js/utils/uuidv4'; import styles from '../_storybook-styles.scss?inline'; +import { Annotation } from '../../../../../core/.storybook/Annotation'; const storyClass = 'filter-panel-stories'; export default { - title: 'Experimental/Components/Filter panel/FilterPanelAccordion', + title: 'Deprecated/Filter panel/FilterPanelAccordion', component: FilterPanelAccordion, tags: ['autodocs'], parameters: { @@ -74,6 +75,21 @@ export default { count: 1, labelText: 0, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.test.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.test.js index 6618974bca..9bfa2a2161 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.test.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.test.js @@ -33,6 +33,9 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); const { getComputedStyle } = window; beforeEach(() => { diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js index 69e584f526..7b5a4e06c6 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js @@ -27,6 +27,7 @@ const defaults = { /** * A container with a label and optional count. + * @deprecated This component is deprecated */ export let FilterPanelAccordionItem = React.forwardRef( ( @@ -72,6 +73,10 @@ export let FilterPanelAccordionItem = React.forwardRef( } ); +FilterPanelAccordionItem.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; // Return a placeholder if not released and not enabled by feature flag FilterPanelAccordionItem = pkg.checkComponentEnabled( FilterPanelAccordionItem, diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.mdx b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.mdx index 4f436f0b17..795ec49dd1 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.mdx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.mdx @@ -12,6 +12,11 @@ import * as FilterPanelAccordionItemStories from './FilterPanelAccordionItem.sto - [Truncated usage](#truncated-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + + ## Overview The `FilterPanelAccordionItem` can be expanded and collapsed and will accept any diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.stories.jsx b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.stories.jsx index 11aee1b57e..87e1205652 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.stories.jsx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.stories.jsx @@ -18,11 +18,12 @@ import mdx from './FilterPanelAccordionItem.mdx'; import uuidv4 from '../../../global/js/utils/uuidv4'; import styles from '../_storybook-styles.scss?inline'; +import { Annotation } from '../../../../../core/.storybook/Annotation'; const storyClass = 'filter-panel-stories'; export default { - title: 'Experimental/Components/Filter panel/FilterPanelAccordionItem', + title: 'Deprecated/Filter panel/FilterPanelAccordionItem', component: FilterPanelAccordionItem, tags: ['autodocs'], parameters: { @@ -77,6 +78,21 @@ export default { count: 1, labelText: 0, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.test.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.test.js index 74eb982319..dccc57b1d1 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.test.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.test.js @@ -31,6 +31,9 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); it('renders a component FilterPanelAccordionItem', async () => { const { container } = renderComponent(); const component = container.querySelector(`.${blockClass}`); diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js index 33fdbaa0da..f1ee938e7c 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js @@ -26,6 +26,7 @@ const componentName = 'FilterPanelCheckbox'; * * All of Carbon Checkbox's props are directly available * through "...rest", including id, onClick, etc. + * @deprecated This component is deprecated */ export let FilterPanelCheckbox = React.forwardRef( ({ className, count, id, labelText, title, ...rest }, ref) => { @@ -44,6 +45,11 @@ export let FilterPanelCheckbox = React.forwardRef( } ); +FilterPanelCheckbox.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag FilterPanelCheckbox = pkg.checkComponentEnabled( FilterPanelCheckbox, diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.mdx b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.mdx index 10b41d3c7f..5b981f8da8 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.mdx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.mdx @@ -11,6 +11,11 @@ import * as FilterPanelCheckboxStories from './FilterPanelCheckbox.stories'; - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + + ## Overview The `FilterPanelCheckbox` is a modified Carbon `Checkbox` and accepts both a diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.stories.jsx b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.stories.jsx index e6dc8d6a09..3217f5e8ea 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.stories.jsx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.stories.jsx @@ -14,11 +14,12 @@ import { FilterPanel, FilterPanelCheckbox } from '..'; import mdx from './FilterPanelCheckbox.mdx'; import styles from '../_storybook-styles.scss?inline'; +import { Annotation } from '../../../../../core/.storybook/Annotation'; const storyClass = 'filter-panel-stories'; export default { - title: 'Experimental/Components/Filter panel/FilterPanelCheckbox', + title: 'Deprecated/Filter panel/FilterPanelCheckbox', component: FilterPanelCheckbox, tags: ['autodocs'], argTypes: { @@ -72,6 +73,21 @@ export default { page: mdx, }, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.test.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.test.js index e979019aa3..5a9fb72a98 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.test.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.test.js @@ -29,6 +29,9 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); it('renders a component FilterPanelCheckbox', async () => { const { container } = renderComponent(); diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js index 1ea815925e..637400c1a5 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js @@ -30,6 +30,7 @@ const defaults = { * just like FilterPanelCheckbox. * * Use `overflowMenuProps` for properties specific to the OverflowMenu. + * @deprecated This component is deprecated */ export let FilterPanelCheckboxWithOverflow = React.forwardRef( ( @@ -122,6 +123,11 @@ export let FilterPanelCheckboxWithOverflow = React.forwardRef( } ); +FilterPanelCheckboxWithOverflow.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag FilterPanelCheckboxWithOverflow = pkg.checkComponentEnabled( FilterPanelCheckboxWithOverflow, diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.mdx b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.mdx index 56122df46c..e16e5f539e 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.mdx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.mdx @@ -11,6 +11,11 @@ import * as FilterPanelCheckboxWithOverflowStories from './FilterPanelCheckboxWi - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + + ## Overview The `FilterPanelCheckboxWithOverflow` is like `FilterPanelCheckbox`, but diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.stories.jsx b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.stories.jsx index 0522bf973f..cbd04e1eca 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.stories.jsx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.stories.jsx @@ -16,11 +16,12 @@ import { FilterPanelCheckboxWithOverflow } from '.'; import mdx from './FilterPanelCheckboxWithOverflow.mdx'; import styles from '../_storybook-styles.scss?inline'; +import { Annotation } from '../../../../../core/.storybook/Annotation'; const storyClass = 'filter-panel-stories'; export default { - title: 'Experimental/Components/Filter panel/FilterPanelCheckboxWithOverflow', + title: 'Deprecated/Filter panel/FilterPanelCheckboxWithOverflow', component: FilterPanelCheckboxWithOverflow, tags: ['autodocs'], argTypes: { @@ -75,6 +76,21 @@ export default { page: mdx, }, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.test.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.test.js index e83562caf2..378756b6d4 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.test.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.test.js @@ -38,6 +38,9 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); it('renders a component FilterPanelCheckboxWithOverflow', async () => { renderComponent(); expect(screen.getByRole('checkbox')).toBeInTheDocument(); diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js index bcb7a42201..3e5bc9f485 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js @@ -20,6 +20,7 @@ const componentName = 'FilterPanelGroup'; /** * A container with a label and optional count. + * @deprecated This component is deprecated */ export let FilterPanelGroup = React.forwardRef( ({ children, className, count, labelText, title, ...rest }, ref) => { @@ -45,6 +46,11 @@ export let FilterPanelGroup = React.forwardRef( } ); +FilterPanelGroup.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag FilterPanelGroup = pkg.checkComponentEnabled(FilterPanelGroup, componentName); diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.mdx b/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.mdx index 6e567716ea..19c2a0492a 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.mdx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.mdx @@ -11,6 +11,11 @@ import * as FilterPanelGroupStories from './FilterPanelGroup.stories'; - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + + ## Overview The `FilterPanelGroup` is a container for visually grouping content with a label diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.stories.jsx b/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.stories.jsx index 2584d54579..f40ec9957e 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.stories.jsx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.stories.jsx @@ -11,11 +11,12 @@ import { FilterPanel, FilterPanelGroup } from '..'; import mdx from './FilterPanelGroup.mdx'; import styles from '../_storybook-styles.scss?inline'; +import { Annotation } from '../../../../../core/.storybook/Annotation'; const storyClass = 'filter-panel-stories'; export default { - title: 'Experimental/Components/Filter panel/FilterPanelGroup', + title: 'Deprecated/Filter panel/FilterPanelGroup', component: FilterPanelGroup, tags: ['autodocs'], parameters: { @@ -69,6 +70,21 @@ export default { count: 1, labelText: 0, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.test.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.test.js index a3013153dd..33a72e333f 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.test.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.test.js @@ -35,6 +35,9 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); it('renders a component FilterPanelGroup', async () => { renderComponent(); expect(screen.getByTestId(dataTestId)).toBeInTheDocument(); diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js index e435c00867..91fde36584 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js @@ -24,6 +24,7 @@ const defaults = { /** * An input field and container to show search results. + * @deprecated This component is deprecated */ export let FilterPanelSearch = React.forwardRef( ( @@ -71,6 +72,10 @@ export let FilterPanelSearch = React.forwardRef( } ); +FilterPanelSearch.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; // Return a placeholder if not released and not enabled by feature flag FilterPanelSearch = pkg.checkComponentEnabled(FilterPanelSearch, componentName); diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.mdx b/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.mdx index 699ef45299..4a2473bad1 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.mdx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.mdx @@ -11,6 +11,11 @@ import * as FilterPanelSearchStories from './FilterPanelSearch.stories'; - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + + ## Overview The `FilterPanelSearch` returns the value when the search value changes. diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.stories.jsx b/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.stories.jsx index 080b16ad77..cf00c5e347 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.stories.jsx +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.stories.jsx @@ -12,11 +12,12 @@ import { FilterPanelSearch } from '.'; import mdx from './FilterPanelSearch.mdx'; import styles from '../_storybook-styles.scss?inline'; +import { Annotation } from '../../../../../core/.storybook/Annotation'; const storyClass = 'filter-panel-stories'; export default { - title: 'Experimental/Components/Filter Panel/FilterPanelSearch', + title: 'Deprecated/Filter Panel/FilterPanelSearch', component: FilterPanelSearch, tags: ['autodocs'], parameters: { @@ -29,6 +30,21 @@ export default { children: { table: { disable: true } }, className: { control: { type: {} } }, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { diff --git a/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.test.js b/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.test.js index 84572905f8..6d8434d584 100644 --- a/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.test.js +++ b/packages/ibm-products/src/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.test.js @@ -33,6 +33,9 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); it('renders a component FilterPanelSearch', async () => { renderComponent(); expect(screen.getByTestId(dataTestId)).toHaveClass(blockClass); diff --git a/packages/ibm-products/src/components/Nav/Nav.js b/packages/ibm-products/src/components/Nav/Nav.js index 29fe1ce44d..f3133d2985 100644 --- a/packages/ibm-products/src/components/Nav/Nav.js +++ b/packages/ibm-products/src/components/Nav/Nav.js @@ -17,6 +17,9 @@ import { pkg } from '../../settings'; const componentName = 'Nav'; const blockClass = `${pkg.prefix}--nav`; +/** + * @deprecated This component is deprecated + */ export let Nav = React.forwardRef( ({ activeHref, className, children, heading, label, ...rest }, ref) => { const [_activeHref, setActiveHref] = useState(activeHref); @@ -129,6 +132,11 @@ export let Nav = React.forwardRef( } ); +Nav.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + Nav.propTypes = { /** * Hypertext reference for active page. diff --git a/packages/ibm-products/src/components/Nav/Nav.mdx b/packages/ibm-products/src/components/Nav/Nav.mdx index 083bfdb927..a761e52122 100644 --- a/packages/ibm-products/src/components/Nav/Nav.mdx +++ b/packages/ibm-products/src/components/Nav/Nav.mdx @@ -11,6 +11,10 @@ import * as NavStories from './Nav.stories'; - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + ## Overview {/* TODO: Overview. */} diff --git a/packages/ibm-products/src/components/Nav/Nav.stories.jsx b/packages/ibm-products/src/components/Nav/Nav.stories.jsx index f676add8ff..ce3258920f 100644 --- a/packages/ibm-products/src/components/Nav/Nav.stories.jsx +++ b/packages/ibm-products/src/components/Nav/Nav.stories.jsx @@ -15,9 +15,10 @@ import NavList from './NavList'; import mdx from './Nav.mdx'; import styles from './_storybook-styles.scss?inline'; +import { Annotation } from '../../../../core/.storybook/Annotation'; export default { - title: 'Experimental/Components/Nav', + title: 'Deprecated/Nav', component: Nav, subcomponents: { NavList, @@ -30,49 +31,69 @@ export default { page: mdx, }, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { return ( -
- +
+ ); }; diff --git a/packages/ibm-products/src/components/Nav/Nav.test.js b/packages/ibm-products/src/components/Nav/Nav.test.js index 29c389606f..b2cfb4c29b 100644 --- a/packages/ibm-products/src/components/Nav/Nav.test.js +++ b/packages/ibm-products/src/components/Nav/Nav.test.js @@ -33,6 +33,10 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); + it('renders a component Nav', async () => { const { container } = renderComponent(); expect(container).toBeInTheDocument(); diff --git a/packages/ibm-products/src/components/ScrollGradient/ScrollGradient.stories.jsx b/packages/ibm-products/src/components/ScrollGradient/ScrollGradient.stories.jsx index 626687f7b6..c6054047ce 100644 --- a/packages/ibm-products/src/components/ScrollGradient/ScrollGradient.stories.jsx +++ b/packages/ibm-products/src/components/ScrollGradient/ScrollGradient.stories.jsx @@ -26,7 +26,7 @@ const storyChildren = ( ); export default { - title: 'Experimental/Components/Scroll gradient/ScrollGradient', + title: 'Utils/Components/ScrollGradient', component: ScrollGradient, tags: ['autodocs'], // TODO: Define argTypes for props not represented by standard JS types. diff --git a/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.js b/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.js index 1a5790b518..ac99006352 100644 --- a/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.js +++ b/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.js @@ -28,6 +28,7 @@ const defaults = { /** * A list of icon/description pairs used to show multiple states of progress. + * @deprecated This component is deprecated */ export let StatusIndicator = React.forwardRef( ( @@ -67,6 +68,11 @@ export let StatusIndicator = React.forwardRef( } ); +StatusIndicator.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag StatusIndicator = pkg.checkComponentEnabled(StatusIndicator, componentName); diff --git a/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.mdx b/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.mdx index 7636daec43..3563a352d7 100644 --- a/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.mdx +++ b/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.mdx @@ -10,6 +10,10 @@ import * as StatusIndicatorStories from './StatusIndicator.stories'; - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + ## Example usage {/* TODO: One example per designed use case. */} diff --git a/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.stories.jsx b/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.stories.jsx index a34bf9f90a..99f3366d4c 100644 --- a/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.stories.jsx +++ b/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.stories.jsx @@ -11,9 +11,10 @@ import { StatusIndicator, StatusIndicatorStep } from '.'; import mdx from './StatusIndicator.mdx'; import styles from './_storybook-styles.scss?inline'; +import { Annotation } from '../../../../core/.storybook/Annotation'; export default { - title: 'Experimental/Components/Status indicator/StatusIndicator', + title: 'Deprecated/Status indicator/StatusIndicator', component: StatusIndicator, tags: ['autodocs'], argTypes: { @@ -35,6 +36,21 @@ export default { page: mdx, }, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const steps = [ @@ -90,16 +106,18 @@ const stepsAsync = [ const Template = (args) => { return ( - - - - - - + <> + + + + + + + ); }; diff --git a/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.test.js b/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.test.js index 648e084ac2..dab744c563 100644 --- a/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.test.js +++ b/packages/ibm-products/src/components/StatusIndicator/StatusIndicator.test.js @@ -28,6 +28,10 @@ const renderComponent = ({ ...rest } = {}) => ); describe(componentName, () => { + beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + }); + it('renders a component StatusIndicator', async () => { renderComponent(); screen.getByTestId(dataTestId); diff --git a/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.js b/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.js index 134632a325..a2974fef3c 100644 --- a/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.js +++ b/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.js @@ -30,6 +30,7 @@ const defaults = { /** * An icon/description pair that describes one step of the `StatusIndicator`. + * @deprecated This component is deprecated */ export let StatusIndicatorStep = React.forwardRef( ( @@ -63,6 +64,11 @@ export let StatusIndicatorStep = React.forwardRef( } ); +StatusIndicatorStep.deprecated = { + level: 'warn', + details: `This component is deprecated`, +}; + // Return a placeholder if not released and not enabled by feature flag StatusIndicatorStep = pkg.checkComponentEnabled( StatusIndicatorStep, diff --git a/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.mdx b/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.mdx index 0a4c2e2626..39be136c86 100644 --- a/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.mdx +++ b/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.mdx @@ -10,6 +10,10 @@ import * as StatusIndicatorStepStories from './StatusIndicatorStep.stories'; - [Example usage](#example-usage) - [Component API](#component-api) +## Deprecation notice + +> This component is deprecated and will be removed in the next major version. + ## Example usage {/* TODO: One example per designed use case. */} diff --git a/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.stories.jsx b/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.stories.jsx index 1e169aed31..4bd191440d 100644 --- a/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.stories.jsx +++ b/packages/ibm-products/src/components/StatusIndicator/StatusIndicatorStep.stories.jsx @@ -10,9 +10,10 @@ import { StatusIndicatorStep } from '.'; import mdx from './StatusIndicatorStep.mdx'; import styles from './_storybook-styles.scss?inline'; +import { Annotation } from '../../../../core/.storybook/Annotation'; export default { - title: 'Experimental/Components/Status indicator/StatusIndicatorStep', + title: 'Deprecated/Status indicator/StatusIndicatorStep', component: StatusIndicatorStep, tags: ['autodocs'], argTypes: { @@ -29,6 +30,21 @@ export default { page: mdx, }, }, + decorators: [ + (story) => ( + + This component is deprecated and will be removed in the next major + version. + + } + > + {story()} + + ), + ], }; const Template = (args) => { diff --git a/packages/ibm-products/src/components/TagOverflow/TagOverflow.stories.jsx b/packages/ibm-products/src/components/TagOverflow/TagOverflow.stories.jsx index 100b082778..e7fd34845e 100644 --- a/packages/ibm-products/src/components/TagOverflow/TagOverflow.stories.jsx +++ b/packages/ibm-products/src/components/TagOverflow/TagOverflow.stories.jsx @@ -30,7 +30,7 @@ const blockClass = `${pkg.prefix}--tag-set`; const blockClassModal = `${blockClass}-modal`; export default { - title: 'Experimental/Components/Tag overflow/TagOverflow', + title: 'Utils/Components/TagOverflow', component: TagOverflow, tags: ['autodocs'], parameters: { diff --git a/packages/ibm-products/src/components/TruncatedList/TruncatedList.stories.jsx b/packages/ibm-products/src/components/TruncatedList/TruncatedList.stories.jsx index 033f808a21..62aff87aa9 100644 --- a/packages/ibm-products/src/components/TruncatedList/TruncatedList.stories.jsx +++ b/packages/ibm-products/src/components/TruncatedList/TruncatedList.stories.jsx @@ -18,7 +18,7 @@ import mdx from './TruncatedList.mdx'; const storyClass = 'truncated-list-stories'; export default { - title: 'Experimental/Components/Truncated list/TruncatedList', + title: 'Utils/Components/TruncatedList', component: TruncatedList, tags: ['autodocs'], // TODO: Define argTypes for props not represented by standard JS types. diff --git a/yarn.lock b/yarn.lock index 30e223c29c..bcbdfd6cf9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1773,33 +1773,12 @@ __metadata: languageName: node linkType: hard -"@carbon/ibm-cloud-cognitive-cli@workspace:config/cli": - version: 0.0.0-use.local - resolution: "@carbon/ibm-cloud-cognitive-cli@workspace:config/cli" - dependencies: - "@commitlint/parse": "npm:^18.6.0" - chalk: "npm:^5.3.0" - execa: "npm:^8.0.1" - fast-glob: "npm:^3.3.2" - fs-extra: "npm:^11.2.0" - inquirer: "npm:^9.2.12" - npm-check-updates: "npm:^16.14.12" - prettier: "npm:^3.2.4" - prettier-config-carbon: "npm:^0.11.0" - remark: "npm:^15.0.1" - semver: "npm:^7.5.4" - yargs: "npm:^17.7.2" - bin: - carbon-cli: ./bin/carbon-cli.js - languageName: unknown - linkType: soft - "@carbon/ibm-cloud-cognitive-core@workspace:packages/core": version: 0.0.0-use.local resolution: "@carbon/ibm-cloud-cognitive-core@workspace:packages/core" dependencies: "@carbon/grid": "npm:^11.29.0" - "@carbon/ibm-products-styles": "npm:^2.50.0-rc.1" + "@carbon/ibm-products-styles": "npm:^2.50.0" "@carbon/layout": "npm:^11.28.0" "@carbon/motion": "npm:^11.24.0" "@carbon/react": "npm:^1.69.0" @@ -1840,22 +1819,7 @@ __metadata: languageName: unknown linkType: soft -"@carbon/ibm-products-styles@npm:^2.49.0": - version: 2.49.0 - resolution: "@carbon/ibm-products-styles@npm:2.49.0" - dependencies: - "@ibm/telemetry-js": "npm:^1.5.0" - peerDependencies: - "@carbon/grid": ^11.28.1 - "@carbon/layout": ^11.27.1 - "@carbon/motion": ^11.23.1 - "@carbon/themes": ^11.42.0 - "@carbon/type": ^11.32.1 - checksum: e9879c6c866a601751cab2430ebded679d82f5c75aa8b3f40c7bc2adcb81b19292a57a1896b89bbdb154ebd2a2b616dff0ff68ccda5e2541f1b586c9615b11a1 - languageName: node - linkType: hard - -"@carbon/ibm-products-styles@workspace:packages/ibm-products-styles": +"@carbon/ibm-products-styles@npm:^2.50.0, @carbon/ibm-products-styles@workspace:packages/ibm-products-styles": version: 0.0.0-use.local resolution: "@carbon/ibm-products-styles@workspace:packages/ibm-products-styles" dependencies: @@ -1865,7 +1829,7 @@ __metadata: cross-env: "npm:^7.0.3" glob: "npm:^10.3.10" jest: "npm:^29.7.0" - jest-config-ibm-cloud-cognitive: "npm:^1.13.0-rc.1" + jest-config-ibm-cloud-cognitive: "npm:^1.13.0" jest-environment-jsdom: "npm:^29.7.0" npm-check-updates: "npm:^16.14.12" npm-run-all: "npm:^4.1.5" @@ -1885,16 +1849,17 @@ __metadata: version: 0.0.0-use.local resolution: "@carbon/ibm-products-web-components@workspace:packages/ibm-products-web-components" dependencies: - "@carbon/ibm-products-styles": "npm:^2.50.0-rc.1" + "@carbon/ibm-products-styles": "npm:^2.50.0" "@carbon/icons": "npm:^11.52.0" "@carbon/motion": "npm:^11.24.0" "@carbon/styles": "npm:1.68.0" "@carbon/web-components": "npm:2.16.0" "@mordech/vite-lit-loader": "npm:^0.35.0" "@rollup/plugin-alias": "npm:^5.1.1" - "@rollup/plugin-commonjs": "npm:^28.0.0" + "@rollup/plugin-commonjs": "npm:^28.0.1" + "@rollup/plugin-json": "npm:^6.1.0" "@rollup/plugin-node-resolve": "npm:^15.3.0" - "@rollup/plugin-typescript": "npm:^12.1.0" + "@rollup/plugin-typescript": "npm:^12.1.1" "@storybook/addon-essentials": "npm:^8.3.6" "@storybook/addon-links": "npm:^8.3.6" "@storybook/addon-storysource": "npm:^8.3.6" @@ -1911,12 +1876,12 @@ __metadata: eslint: "npm:^9.11.1" eslint-config-carbon: "npm:3.17.1" globby: "npm:^14.0.2" - happy-dom: "npm:^15.7.4" + happy-dom: "npm:^15.11.6" lit: "npm:^3.1.0" postcss: "npm:^8.4.47" remark-gfm: "npm:^4.0.0" rimraf: "npm:^5.0.5" - rollup: "npm:^3.29.5" + rollup: "npm:^4.27.3" rollup-plugin-copy: "npm:^3.5.0" sass: "npm:^1.80.6" storybook: "npm:^8.2.8" @@ -1943,7 +1908,7 @@ __metadata: "@babel/preset-typescript": "npm:^7.21.5" "@babel/runtime": "npm:^7.23.9" "@carbon/feature-flags": "npm:^0.24.0" - "@carbon/ibm-products-styles": "npm:^2.50.0-rc.1" + "@carbon/ibm-products-styles": "npm:^2.50.0" "@carbon/telemetry": "npm:^0.1.0" "@dnd-kit/core": "npm:^6.0.8" "@dnd-kit/modifiers": "npm:^7.0.0" @@ -1951,10 +1916,10 @@ __metadata: "@dnd-kit/utilities": "npm:^3.2.2" "@ibm/telemetry-js": "npm:^1.5.0" "@ibm/telemetry-js-config-generator": "npm:^1.0.3" - "@rollup/plugin-babel": "npm:^6.0.0" - "@rollup/plugin-commonjs": "npm:^28.0.0" + "@rollup/plugin-babel": "npm:^6.0.4" + "@rollup/plugin-commonjs": "npm:^28.0.1" "@rollup/plugin-node-resolve": "npm:^15.3.0" - "@rollup/plugin-typescript": "npm:^12.1.0" + "@rollup/plugin-typescript": "npm:^12.1.1" "@types/react-table": "npm:^7.7.20" babel-plugin-dev-expression: "npm:^0.2.3" babel-preset-ibm-cloud-cognitive: "npm:^0.14.40" @@ -1968,7 +1933,7 @@ __metadata: glob: "npm:^10.3.10" immutability-helper: "npm:^3.1.1" jest: "npm:^29.7.0" - jest-config-ibm-cloud-cognitive: "npm:^1.13.0-rc.1" + jest-config-ibm-cloud-cognitive: "npm:^1.13.0" jest-environment-jsdom: "npm:^29.7.0" lodash: "npm:^4.17.21" lottie-web: "npm:^5.12.2" @@ -1978,8 +1943,8 @@ __metadata: react-table: "npm:^7.8.0" react-window: "npm:^1.8.10" rimraf: "npm:^5.0.5" - rollup: "npm:^3.29.5" - rollup-plugin-strip-banner: "npm:^3.0.0" + rollup: "npm:^4.27.3" + rollup-plugin-strip-banner: "npm:^3.1.0" sass: "npm:^1.80.6" typescript-config-carbon: "npm:^0.3.0" yargs: "npm:^17.7.2" @@ -2364,7 +2329,7 @@ __metadata: languageName: node linkType: hard -"@commitlint/parse@npm:^18.6.0, @commitlint/parse@npm:^18.6.1": +"@commitlint/parse@npm:^18.6.1": version: 18.6.1 resolution: "@commitlint/parse@npm:18.6.1" dependencies: @@ -3875,13 +3840,6 @@ __metadata: languageName: node linkType: hard -"@inquirer/figures@npm:^1.0.1": - version: 1.0.1 - resolution: "@inquirer/figures@npm:1.0.1" - checksum: ed9f23ce881e7fe7042f5f1a630d7d0febe7cce0eadc6e2eeb10238d80c4a19d03c344e980cb2e199081823fbaad42b3e1fab46ef77d3ac68e0575fc7037067a - languageName: node - linkType: hard - "@inquirer/figures@npm:^1.0.6": version: 1.0.6 resolution: "@inquirer/figures@npm:1.0.6" @@ -4343,15 +4301,6 @@ __metadata: languageName: node linkType: hard -"@ljharb/through@npm:^2.3.13": - version: 2.3.13 - resolution: "@ljharb/through@npm:2.3.13" - dependencies: - call-bind: "npm:^1.0.7" - checksum: 6150c6c43a726d52c26863ed6dc4ab54fa7cf625c81463a5ddec86278c99e23bf94dfc99ebf09a9ac3191332d4a27344e092f7e07f252b8cd600e2b38e645870 - languageName: node - linkType: hard - "@mdx-js/react@npm:^3.0.0": version: 3.0.1 resolution: "@mdx-js/react@npm:3.0.1" @@ -6023,7 +5972,7 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-babel@npm:^6.0.0": +"@rollup/plugin-babel@npm:^6.0.4": version: 6.0.4 resolution: "@rollup/plugin-babel@npm:6.0.4" dependencies: @@ -6042,23 +5991,37 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-commonjs@npm:^28.0.0": - version: 28.0.0 - resolution: "@rollup/plugin-commonjs@npm:28.0.0" +"@rollup/plugin-commonjs@npm:^28.0.1": + version: 28.0.1 + resolution: "@rollup/plugin-commonjs@npm:28.0.1" dependencies: "@rollup/pluginutils": "npm:^5.0.1" commondir: "npm:^1.0.1" estree-walker: "npm:^2.0.2" - fdir: "npm:^6.1.1" + fdir: "npm:^6.2.0" is-reference: "npm:1.2.1" magic-string: "npm:^0.30.3" - picomatch: "npm:^2.3.1" + picomatch: "npm:^4.0.2" peerDependencies: rollup: ^2.68.0||^3.0.0||^4.0.0 peerDependenciesMeta: rollup: optional: true - checksum: 21a59db90768578e595bd02ca9ba9a6fd5ba8a20a16d81667e7b5a3cfc86905aa4387ff8558618305d019f85b2138d90e06867b5079c7aed3253e36c6585fe5f + checksum: e01d26ce411cec587eeac805aaa181f042a30bac1cf7f714b65028ed2abab7907d67de835e3fe99fd38f26eee17a60373d5c37518b29829de79b7c1b24a29e0d + languageName: node + linkType: hard + +"@rollup/plugin-json@npm:^6.1.0": + version: 6.1.0 + resolution: "@rollup/plugin-json@npm:6.1.0" + dependencies: + "@rollup/pluginutils": "npm:^5.1.0" + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + checksum: cc018d20c80242a2b8b44fae61a968049cf31bb8406218187cc7cda35747616594e79452dd65722e7da6dd825b392e90d4599d43cd4461a02fefa2865945164e languageName: node linkType: hard @@ -6080,9 +6043,9 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-typescript@npm:^12.1.0": - version: 12.1.0 - resolution: "@rollup/plugin-typescript@npm:12.1.0" +"@rollup/plugin-typescript@npm:^12.1.1": + version: 12.1.1 + resolution: "@rollup/plugin-typescript@npm:12.1.1" dependencies: "@rollup/pluginutils": "npm:^5.1.0" resolve: "npm:^1.22.1" @@ -6095,7 +6058,7 @@ __metadata: optional: true tslib: optional: true - checksum: 93e67032377278be3658988423588f2941eb55ccb540312ab847c050ea62a57d056d3f80c292bf463e90cbc71795498805120a0f244040d8304ba57d9bb8c09e + checksum: 838d5e67d1b383154fab7ae1b0c58e91844c70380210b12c1d5f2ed5d2264d4fbd21ff991a13a4a72078dce897b5c482c70554a21671269219aa9d2525f14dcd languageName: node linkType: hard @@ -6131,114 +6094,128 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.21.3" +"@rollup/rollup-android-arm-eabi@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.27.3" conditions: os=android & cpu=arm languageName: node linkType: hard -"@rollup/rollup-android-arm64@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-android-arm64@npm:4.21.3" +"@rollup/rollup-android-arm64@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-android-arm64@npm:4.27.3" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-arm64@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-darwin-arm64@npm:4.21.3" +"@rollup/rollup-darwin-arm64@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-darwin-arm64@npm:4.27.3" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-x64@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-darwin-x64@npm:4.21.3" +"@rollup/rollup-darwin-x64@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-darwin-x64@npm:4.27.3" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-linux-arm-gnueabihf@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.21.3" +"@rollup/rollup-freebsd-arm64@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-freebsd-arm64@npm:4.27.3" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-freebsd-x64@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-freebsd-x64@npm:4.27.3" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm-gnueabihf@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.27.3" conditions: os=linux & cpu=arm & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm-musleabihf@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.21.3" +"@rollup/rollup-linux-arm-musleabihf@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.27.3" conditions: os=linux & cpu=arm & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-arm64-gnu@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.21.3" +"@rollup/rollup-linux-arm64-gnu@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.27.3" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm64-musl@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-linux-arm64-musl@npm:4.21.3" +"@rollup/rollup-linux-arm64-musl@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.27.3" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-powerpc64le-gnu@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.21.3" +"@rollup/rollup-linux-powerpc64le-gnu@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.27.3" conditions: os=linux & cpu=ppc64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-riscv64-gnu@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.21.3" +"@rollup/rollup-linux-riscv64-gnu@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.27.3" conditions: os=linux & cpu=riscv64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-s390x-gnu@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.21.3" +"@rollup/rollup-linux-s390x-gnu@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.27.3" conditions: os=linux & cpu=s390x & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-gnu@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-linux-x64-gnu@npm:4.21.3" +"@rollup/rollup-linux-x64-gnu@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.27.3" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-musl@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-linux-x64-musl@npm:4.21.3" +"@rollup/rollup-linux-x64-musl@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.27.3" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-win32-arm64-msvc@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.21.3" +"@rollup/rollup-win32-arm64-msvc@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.27.3" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-win32-ia32-msvc@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.21.3" +"@rollup/rollup-win32-ia32-msvc@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.27.3" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rollup/rollup-win32-x64-msvc@npm:4.21.3": - version: 4.21.3 - resolution: "@rollup/rollup-win32-x64-msvc@npm:4.21.3" +"@rollup/rollup-win32-x64-msvc@npm:4.27.3": + version: 4.27.3 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.27.3" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -8230,7 +8207,7 @@ __metadata: languageName: node linkType: hard -"@types/eslint-scope@npm:^3.7.3": +"@types/eslint-scope@npm:^3.7.7": version: 3.7.7 resolution: "@types/eslint-scope@npm:3.7.7" dependencies: @@ -8250,13 +8227,20 @@ __metadata: languageName: node linkType: hard -"@types/estree@npm:*, @types/estree@npm:1.0.5, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.5": +"@types/estree@npm:*, @types/estree@npm:^1.0.0": version: 1.0.5 resolution: "@types/estree@npm:1.0.5" checksum: 7de6d928dd4010b0e20c6919e1a6c27b61f8d4567befa89252055fad503d587ecb9a1e3eab1b1901f923964d7019796db810b7fd6430acb26c32866d126fd408 languageName: node linkType: hard +"@types/estree@npm:1.0.6, @types/estree@npm:^1.0.6": + version: 1.0.6 + resolution: "@types/estree@npm:1.0.6" + checksum: 9d35d475095199c23e05b431bcdd1f6fec7380612aed068b14b2a08aa70494de8a9026765a5a91b1073f636fb0368f6d8973f518a31391d519e20c59388ed88d + languageName: node + linkType: hard + "@types/estree@npm:^0.0.51": version: 0.0.51 resolution: "@types/estree@npm:0.0.51" @@ -8264,13 +8248,6 @@ __metadata: languageName: node linkType: hard -"@types/estree@npm:^1.0.6": - version: 1.0.6 - resolution: "@types/estree@npm:1.0.6" - checksum: 9d35d475095199c23e05b431bcdd1f6fec7380612aed068b14b2a08aa70494de8a9026765a5a91b1073f636fb0368f6d8973f518a31391d519e20c59388ed88d - languageName: node - linkType: hard - "@types/express-serve-static-core@npm:^4.17.33": version: 4.19.0 resolution: "@types/express-serve-static-core@npm:4.19.0" @@ -9457,15 +9434,6 @@ __metadata: languageName: node linkType: hard -"acorn-import-assertions@npm:^1.9.0": - version: 1.9.0 - resolution: "acorn-import-assertions@npm:1.9.0" - peerDependencies: - acorn: ^8 - checksum: af8dd58f6b0c6a43e85849744534b99f2133835c6fcdabda9eea27d0a0da625a0d323c4793ba7cb25cf4507609d0f747c210ccc2fc9b5866de04b0e59c9c5617 - languageName: node - linkType: hard - "acorn-jsx@npm:^5.3.1, acorn-jsx@npm:^5.3.2": version: 5.3.2 resolution: "acorn-jsx@npm:5.3.2" @@ -9498,7 +9466,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.1.0, acorn@npm:^8.11.3, acorn@npm:^8.7.1, acorn@npm:^8.8.1, acorn@npm:^8.8.2, acorn@npm:^8.9.0": +"acorn@npm:^8.1.0, acorn@npm:^8.11.3, acorn@npm:^8.8.1, acorn@npm:^8.8.2, acorn@npm:^8.9.0": version: 8.11.3 resolution: "acorn@npm:8.11.3" bin: @@ -9516,6 +9484,15 @@ __metadata: languageName: node linkType: hard +"acorn@npm:^8.14.0": + version: 8.14.0 + resolution: "acorn@npm:8.14.0" + bin: + acorn: bin/acorn + checksum: 6df29c35556782ca9e632db461a7f97947772c6c1d5438a81f0c873a3da3a792487e83e404d1c6c25f70513e91aa18745f6eafb1fcc3a43ecd1920b21dd173d2 + languageName: node + linkType: hard + "add-stream@npm:^1.0.0": version: 1.0.0 resolution: "add-stream@npm:1.0.0" @@ -10424,26 +10401,6 @@ __metadata: languageName: node linkType: hard -"body-parser@npm:1.20.2": - version: 1.20.2 - resolution: "body-parser@npm:1.20.2" - dependencies: - bytes: "npm:3.1.2" - content-type: "npm:~1.0.5" - debug: "npm:2.6.9" - depd: "npm:2.0.0" - destroy: "npm:1.2.0" - http-errors: "npm:2.0.0" - iconv-lite: "npm:0.4.24" - on-finished: "npm:2.4.1" - qs: "npm:6.11.0" - raw-body: "npm:2.5.2" - type-is: "npm:~1.6.18" - unpipe: "npm:1.0.0" - checksum: 3cf171b82190cf91495c262b073e425fc0d9e25cc2bf4540d43f7e7bbca27d6a9eae65ca367b6ef3993eea261159d9d2ab37ce444e8979323952e12eb3df319a - languageName: node - linkType: hard - "body-parser@npm:1.20.3": version: 1.20.3 resolution: "body-parser@npm:1.20.3" @@ -10577,7 +10534,7 @@ __metadata: languageName: node linkType: hard -"browserslist@npm:^4.21.10, browserslist@npm:^4.22.2, browserslist@npm:^4.23.0": +"browserslist@npm:^4.22.2, browserslist@npm:^4.23.0": version: 4.23.0 resolution: "browserslist@npm:4.23.0" dependencies: @@ -11924,10 +11881,10 @@ __metadata: languageName: node linkType: hard -"cookie@npm:0.6.0": - version: 0.6.0 - resolution: "cookie@npm:0.6.0" - checksum: c1f8f2ea7d443b9331680598b0ae4e6af18a618c37606d1bbdc75bec8361cce09fe93e727059a673f2ba24467131a9fb5a4eec76bb1b149c1b3e1ccb268dc583 +"cookie@npm:0.7.1": + version: 0.7.1 + resolution: "cookie@npm:0.7.1" + checksum: aec6a6aa0781761bf55d60447d6be08861d381136a0fe94aa084fddd4f0300faa2b064df490c6798adfa1ebaef9e0af9b08a189c823e0811b8b313b3d9a03380 languageName: node linkType: hard @@ -12082,27 +12039,14 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^6.0.5": - version: 6.0.5 - resolution: "cross-spawn@npm:6.0.5" - dependencies: - nice-try: "npm:^1.0.4" - path-key: "npm:^2.0.1" - semver: "npm:^5.5.0" - shebang-command: "npm:^1.2.0" - which: "npm:^1.2.9" - checksum: f07e643b4875f26adffcd7f13bc68d9dff20cf395f8ed6f43a23f3ee24fc3a80a870a32b246fd074e514c8fd7da5f978ac6a7668346eec57aa87bac89c1ed3a1 - languageName: node - linkType: hard - -"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.1, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": - version: 7.0.5 - resolution: "cross-spawn@npm:7.0.5" +"cross-spawn@npm:7.0.6": + version: 7.0.6 + resolution: "cross-spawn@npm:7.0.6" dependencies: path-key: "npm:^3.1.0" shebang-command: "npm:^2.0.0" which: "npm:^2.0.1" - checksum: c95062469d4bdbc1f099454d01c0e77177a3733012d41bf907a71eb8d22d2add43b5adf6a0a14ef4e7feaf804082714d6c262ef4557a1c480b86786c120d18e2 + checksum: 0d52657d7ae36eb130999dffff1168ec348687b48dd38e2ff59992ed916c88d328cf1d07ff4a4a10bc78de5e1c23f04b306d569e42f7a2293915c081e4dfee86 languageName: node linkType: hard @@ -13353,13 +13297,13 @@ __metadata: languageName: node linkType: hard -"enhanced-resolve@npm:^5.16.0": - version: 5.16.0 - resolution: "enhanced-resolve@npm:5.16.0" +"enhanced-resolve@npm:^5.17.1": + version: 5.17.1 + resolution: "enhanced-resolve@npm:5.17.1" dependencies: graceful-fs: "npm:^4.2.4" tapable: "npm:^2.2.0" - checksum: 47f123676b9b179b35195769b9d9523f314f6fc3a13d4461a4d95d5beaec9adc26aaa3b60b61f93e21ed1290dff0e9d9e67df343ec47f4480669a8e26ffe52a3 + checksum: e8e03cb7a4bf3c0250a89afbd29e5ec20e90ba5fcd026066232a0754864d7d0a393fa6fc0e5379314a6529165a1834b36731147080714459d98924520410d8f5 languageName: node linkType: hard @@ -14629,55 +14573,16 @@ __metadata: languageName: node linkType: hard -"express@npm:^4.17.3": - version: 4.19.2 - resolution: "express@npm:4.19.2" - dependencies: - accepts: "npm:~1.3.8" - array-flatten: "npm:1.1.1" - body-parser: "npm:1.20.2" - content-disposition: "npm:0.5.4" - content-type: "npm:~1.0.4" - cookie: "npm:0.6.0" - cookie-signature: "npm:1.0.6" - debug: "npm:2.6.9" - depd: "npm:2.0.0" - encodeurl: "npm:~1.0.2" - escape-html: "npm:~1.0.3" - etag: "npm:~1.8.1" - finalhandler: "npm:1.2.0" - fresh: "npm:0.5.2" - http-errors: "npm:2.0.0" - merge-descriptors: "npm:1.0.1" - methods: "npm:~1.1.2" - on-finished: "npm:2.4.1" - parseurl: "npm:~1.3.3" - path-to-regexp: "npm:0.1.7" - proxy-addr: "npm:~2.0.7" - qs: "npm:6.11.0" - range-parser: "npm:~1.2.1" - safe-buffer: "npm:5.2.1" - send: "npm:0.18.0" - serve-static: "npm:1.15.0" - setprototypeof: "npm:1.2.0" - statuses: "npm:2.0.1" - type-is: "npm:~1.6.18" - utils-merge: "npm:1.0.1" - vary: "npm:~1.1.2" - checksum: 3fcd792536f802c059789ef48db3851b87e78fba103423e524144d79af37da7952a2b8d4e1a007f423329c7377d686d9476ac42e7d9ea413b80345d495e30a3a - languageName: node - linkType: hard - -"express@npm:^4.19.2": - version: 4.21.0 - resolution: "express@npm:4.21.0" +"express@npm:^4.17.3, express@npm:^4.19.2": + version: 4.21.1 + resolution: "express@npm:4.21.1" dependencies: accepts: "npm:~1.3.8" array-flatten: "npm:1.1.1" body-parser: "npm:1.20.3" content-disposition: "npm:0.5.4" content-type: "npm:~1.0.4" - cookie: "npm:0.6.0" + cookie: "npm:0.7.1" cookie-signature: "npm:1.0.6" debug: "npm:2.6.9" depd: "npm:2.0.0" @@ -14703,7 +14608,7 @@ __metadata: type-is: "npm:~1.6.18" utils-merge: "npm:1.0.1" vary: "npm:~1.1.2" - checksum: 3b1ee5bc5b1bd996f688702519cebc9b63a24e506965f6e1773268238cfa2c24ffdb38cc3fcb4fde66f77de1c0bebd9ee058dad06bb9c6f084b525f3c09164d3 + checksum: 5d4a36dd03c1d1cce93172e9b185b5cd13a978d29ee03adc51cd278be7b4a514ae2b63e2fdaec0c00fdc95c6cfb396d9dd1da147917ffd337d6cd0778e08c9bc languageName: node linkType: hard @@ -14714,7 +14619,7 @@ __metadata: languageName: node linkType: hard -"external-editor@npm:^3.0.3, external-editor@npm:^3.1.0": +"external-editor@npm:^3.0.3": version: 3.1.0 resolution: "external-editor@npm:3.1.0" dependencies: @@ -14872,7 +14777,19 @@ __metadata: languageName: node linkType: hard -"fdir@npm:^6.1.1, fdir@npm:^6.4.0": +"fdir@npm:^6.2.0": + version: 6.4.2 + resolution: "fdir@npm:6.4.2" + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + checksum: 5ff80d1d2034e75cc68be175401c9f64c4938a6b2c1e9a0c27f2d211ffbe491fd86d29e4576825d9da8aff9bd465f0283427c2dddc11653457906c46d3bbc448 + languageName: node + linkType: hard + +"fdir@npm:^6.4.0": version: 6.4.0 resolution: "fdir@npm:6.4.0" peerDependencies: @@ -14969,21 +14886,6 @@ __metadata: languageName: node linkType: hard -"finalhandler@npm:1.2.0": - version: 1.2.0 - resolution: "finalhandler@npm:1.2.0" - dependencies: - debug: "npm:2.6.9" - encodeurl: "npm:~1.0.2" - escape-html: "npm:~1.0.3" - on-finished: "npm:2.4.1" - parseurl: "npm:~1.3.3" - statuses: "npm:2.0.1" - unpipe: "npm:~1.0.0" - checksum: 635718cb203c6d18e6b48dfbb6c54ccb08ea470e4f474ddcef38c47edcf3227feec316f886dd701235997d8af35240cae49856721ce18f539ad038665ebbf163 - languageName: node - linkType: hard - "finalhandler@npm:1.3.1": version: 1.3.1 resolution: "finalhandler@npm:1.3.1" @@ -16064,14 +15966,14 @@ __metadata: languageName: node linkType: hard -"happy-dom@npm:^15.7.4": - version: 15.7.4 - resolution: "happy-dom@npm:15.7.4" +"happy-dom@npm:^15.11.6": + version: 15.11.6 + resolution: "happy-dom@npm:15.11.6" dependencies: entities: "npm:^4.5.0" webidl-conversions: "npm:^7.0.0" whatwg-mimetype: "npm:^3.0.0" - checksum: fd5026e8a2d9437f161e4c6d9725ffe68f6d31cd09ac7d729b3cd5dd2207a3833272607171da1caf4b1247839ead8bd01a4381a0e31909589af29d27fa24a0f5 + checksum: 895a40bda00753f833ea563f64aef80558b6f701a3238e9fe7143265a1246bde57bc5a7a58ed89e77e2bbe309a119dcf956a70c48033fa84893c41206a6b4128 languageName: node linkType: hard @@ -16515,7 +16417,7 @@ __metadata: stylelint: "npm:^15.11.0" stylelint-config-carbon: "npm:1.19.1" stylelint-plugin-carbon-tokens: "npm:2.8.0" - webpack: "npm:^5.90.0" + webpack: "npm:^5.96.1" languageName: unknown linkType: soft @@ -16801,29 +16703,6 @@ __metadata: languageName: node linkType: hard -"inquirer@npm:^9.2.12": - version: 9.2.20 - resolution: "inquirer@npm:9.2.20" - dependencies: - "@inquirer/figures": "npm:^1.0.1" - "@ljharb/through": "npm:^2.3.13" - ansi-escapes: "npm:^4.3.2" - chalk: "npm:^5.3.0" - cli-cursor: "npm:^3.1.0" - cli-width: "npm:^4.1.0" - external-editor: "npm:^3.1.0" - lodash: "npm:^4.17.21" - mute-stream: "npm:1.0.0" - ora: "npm:^5.4.1" - run-async: "npm:^3.0.0" - rxjs: "npm:^7.8.1" - string-width: "npm:^4.2.3" - strip-ansi: "npm:^6.0.1" - wrap-ansi: "npm:^6.2.0" - checksum: beeca2f0da3eaca18fdf00d1c45e9db71b7699e5b4c96793056434928a96587bf83dcfb594d535162f62e59a6e3c4f0a64e0cdafcc5109123ab16ffa93f87903 - languageName: node - linkType: hard - "internal-slot@npm:^1.0.4, internal-slot@npm:^1.0.7": version: 1.0.7 resolution: "internal-slot@npm:1.0.7" @@ -17689,7 +17568,7 @@ __metadata: languageName: node linkType: hard -"jest-config-ibm-cloud-cognitive@npm:^1.13.0-rc.1, jest-config-ibm-cloud-cognitive@workspace:config/jest-config-ibm-cloud-cognitive": +"jest-config-ibm-cloud-cognitive@npm:^1.13.0, jest-config-ibm-cloud-cognitive@workspace:config/jest-config-ibm-cloud-cognitive": version: 0.0.0-use.local resolution: "jest-config-ibm-cloud-cognitive@workspace:config/jest-config-ibm-cloud-cognitive" dependencies: @@ -19739,13 +19618,6 @@ __metadata: languageName: node linkType: hard -"merge-descriptors@npm:1.0.1": - version: 1.0.1 - resolution: "merge-descriptors@npm:1.0.1" - checksum: 5abc259d2ae25bb06d19ce2b94a21632583c74e2a9109ee1ba7fd147aa7362b380d971e0251069f8b3eb7d48c21ac839e21fa177b335e82c76ec172e30c31a26 - languageName: node - linkType: hard - "merge-descriptors@npm:1.0.3": version: 1.0.3 resolution: "merge-descriptors@npm:1.0.3" @@ -20540,7 +20412,7 @@ __metadata: languageName: node linkType: hard -"mute-stream@npm:1.0.0, mute-stream@npm:^1.0.0, mute-stream@npm:~1.0.0": +"mute-stream@npm:^1.0.0, mute-stream@npm:~1.0.0": version: 1.0.0 resolution: "mute-stream@npm:1.0.0" checksum: 36fc968b0e9c9c63029d4f9dc63911950a3bdf55c9a87f58d3a266289b67180201cade911e7699f8b2fa596b34c9db43dad37649e3f7fdd13c3bb9edb0017ee7 @@ -20598,13 +20470,6 @@ __metadata: languageName: node linkType: hard -"nice-try@npm:^1.0.4": - version: 1.0.5 - resolution: "nice-try@npm:1.0.5" - checksum: 0b4af3b5bb5d86c289f7a026303d192a7eb4417231fe47245c460baeabae7277bcd8fd9c728fb6bd62c30b3e15cd6620373e2cf33353b095d8b403d3e8a15aff - languageName: node - linkType: hard - "no-case@npm:^3.0.4": version: 3.0.4 resolution: "no-case@npm:3.0.4" @@ -22156,13 +22021,6 @@ __metadata: languageName: node linkType: hard -"path-key@npm:^2.0.1": - version: 2.0.1 - resolution: "path-key@npm:2.0.1" - checksum: 6e654864e34386a2a8e6bf72cf664dcabb76574dd54013add770b374384d438aca95f4357bb26935b514a4e4c2c9b19e191f2200b282422a76ee038b9258c5e7 - languageName: node - linkType: hard - "path-key@npm:^3.0.0, path-key@npm:^3.1.0": version: 3.1.1 resolution: "path-key@npm:3.1.1" @@ -22201,13 +22059,6 @@ __metadata: languageName: node linkType: hard -"path-to-regexp@npm:0.1.7": - version: 0.1.7 - resolution: "path-to-regexp@npm:0.1.7" - checksum: 701c99e1f08e3400bea4d701cf6f03517474bb1b608da71c78b1eb261415b645c5670dfae49808c89e12cea2dccd113b069f040a80de012da0400191c6dbd1c8 - languageName: node - linkType: hard - "path-to-regexp@npm:^6.3.0": version: 6.3.0 resolution: "path-to-regexp@npm:6.3.0" @@ -22875,7 +22726,7 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^3.1.1, prettier@npm:^3.2.4": +"prettier@npm:^3.1.1": version: 3.2.5 resolution: "prettier@npm:3.2.5" bin: @@ -23142,15 +22993,6 @@ __metadata: languageName: node linkType: hard -"qs@npm:6.11.0": - version: 6.11.0 - resolution: "qs@npm:6.11.0" - dependencies: - side-channel: "npm:^1.0.4" - checksum: 5a3bfea3e2f359ede1bfa5d2f0dbe54001aa55e40e27dc3e60fab814362d83a9b30758db057c2011b6f53a2d4e4e5150194b5bac45372652aecb3e3c0d4b256e - languageName: node - linkType: hard - "qs@npm:6.13.0, qs@npm:^6.11.0": version: 6.13.0 resolution: "qs@npm:6.13.0" @@ -23922,18 +23764,6 @@ __metadata: languageName: node linkType: hard -"remark@npm:^15.0.1": - version: 15.0.1 - resolution: "remark@npm:15.0.1" - dependencies: - "@types/mdast": "npm:^4.0.0" - remark-parse: "npm:^11.0.0" - remark-stringify: "npm:^11.0.0" - unified: "npm:^11.0.0" - checksum: 671eae3a4482377373cbbae956e2dbc0f8c40df1c3e5e2e1e82efa248b310ef5989340e1a5a8ebe94ff14fcf9c72612f40a29d002ffc0a465e3d6d50de973839 - languageName: node - linkType: hard - "remote-git-tags@npm:^3.0.0": version: 3.0.0 resolution: "remote-git-tags@npm:3.0.0" @@ -24245,7 +24075,7 @@ __metadata: languageName: node linkType: hard -"rollup-plugin-strip-banner@npm:^3.0.0": +"rollup-plugin-strip-banner@npm:^3.1.0": version: 3.1.0 resolution: "rollup-plugin-strip-banner@npm:3.1.0" dependencies: @@ -24258,41 +24088,29 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^3.29.5": - version: 3.29.5 - resolution: "rollup@npm:3.29.5" - dependencies: - fsevents: "npm:~2.3.2" - dependenciesMeta: - fsevents: - optional: true - bin: - rollup: dist/bin/rollup - checksum: 5ce0e5f1d9288d4954db93993477f894eb3042ec98a7c9c19980e53b1f58296481e3dc6c2b1a2a3680b20eb6c3fe64ed97942d5ff29df658a059647c33b3593c - languageName: node - linkType: hard - -"rollup@npm:^4.20.0": - version: 4.21.3 - resolution: "rollup@npm:4.21.3" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.21.3" - "@rollup/rollup-android-arm64": "npm:4.21.3" - "@rollup/rollup-darwin-arm64": "npm:4.21.3" - "@rollup/rollup-darwin-x64": "npm:4.21.3" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.21.3" - "@rollup/rollup-linux-arm-musleabihf": "npm:4.21.3" - "@rollup/rollup-linux-arm64-gnu": "npm:4.21.3" - "@rollup/rollup-linux-arm64-musl": "npm:4.21.3" - "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.21.3" - "@rollup/rollup-linux-riscv64-gnu": "npm:4.21.3" - "@rollup/rollup-linux-s390x-gnu": "npm:4.21.3" - "@rollup/rollup-linux-x64-gnu": "npm:4.21.3" - "@rollup/rollup-linux-x64-musl": "npm:4.21.3" - "@rollup/rollup-win32-arm64-msvc": "npm:4.21.3" - "@rollup/rollup-win32-ia32-msvc": "npm:4.21.3" - "@rollup/rollup-win32-x64-msvc": "npm:4.21.3" - "@types/estree": "npm:1.0.5" +"rollup@npm:^4.20.0, rollup@npm:^4.27.3": + version: 4.27.3 + resolution: "rollup@npm:4.27.3" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.27.3" + "@rollup/rollup-android-arm64": "npm:4.27.3" + "@rollup/rollup-darwin-arm64": "npm:4.27.3" + "@rollup/rollup-darwin-x64": "npm:4.27.3" + "@rollup/rollup-freebsd-arm64": "npm:4.27.3" + "@rollup/rollup-freebsd-x64": "npm:4.27.3" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.27.3" + "@rollup/rollup-linux-arm-musleabihf": "npm:4.27.3" + "@rollup/rollup-linux-arm64-gnu": "npm:4.27.3" + "@rollup/rollup-linux-arm64-musl": "npm:4.27.3" + "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.27.3" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.27.3" + "@rollup/rollup-linux-s390x-gnu": "npm:4.27.3" + "@rollup/rollup-linux-x64-gnu": "npm:4.27.3" + "@rollup/rollup-linux-x64-musl": "npm:4.27.3" + "@rollup/rollup-win32-arm64-msvc": "npm:4.27.3" + "@rollup/rollup-win32-ia32-msvc": "npm:4.27.3" + "@rollup/rollup-win32-x64-msvc": "npm:4.27.3" + "@types/estree": "npm:1.0.6" fsevents: "npm:~2.3.2" dependenciesMeta: "@rollup/rollup-android-arm-eabi": @@ -24303,6 +24121,10 @@ __metadata: optional: true "@rollup/rollup-darwin-x64": optional: true + "@rollup/rollup-freebsd-arm64": + optional: true + "@rollup/rollup-freebsd-x64": + optional: true "@rollup/rollup-linux-arm-gnueabihf": optional: true "@rollup/rollup-linux-arm-musleabihf": @@ -24331,7 +24153,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 60a1d6548fa1e612209f9f98f83c73a213f27569abddcbfb246af08455d730f367d95f6bd541b58c9e1e643c181463db27326c712aa81efd4071372a4d3481b9 + checksum: 8f77edb47acf734ecb7a20232d655b0ffe610f2d82e515917f66516137d6f55fdff6fff78285ee1921229cedaa161d8554f2b3cb2424cf489b0963fe024ec65f languageName: node linkType: hard @@ -24342,13 +24164,6 @@ __metadata: languageName: node linkType: hard -"run-async@npm:^3.0.0": - version: 3.0.0 - resolution: "run-async@npm:3.0.0" - checksum: 97fb8747f7765b77ebcd311d3a33548099336f04c6434e0763039b98c1de0f1b4421000695aff8751f309c0b995d8dfd620c1f1e4c35572da38c101488165305 - languageName: node - linkType: hard - "run-parallel@npm:^1.1.9": version: 1.2.0 resolution: "run-parallel@npm:1.2.0" @@ -24367,7 +24182,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:^7.5.5, rxjs@npm:^7.8.1": +"rxjs@npm:^7.5.5": version: 7.8.1 resolution: "rxjs@npm:7.8.1" dependencies: @@ -24500,56 +24315,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.5.0, semver@npm:^5.6.0": - version: 5.7.2 - resolution: "semver@npm:5.7.2" - bin: - semver: bin/semver - checksum: fca14418a174d4b4ef1fecb32c5941e3412d52a4d3d85165924ce3a47fbc7073372c26faf7484ceb4bbc2bde25880c6b97e492473dc7e9708fdfb1c6a02d546e - languageName: node - linkType: hard - -"semver@npm:7.3.4": - version: 7.3.4 - resolution: "semver@npm:7.3.4" - dependencies: - lru-cache: "npm:^6.0.0" - bin: - semver: bin/semver.js - checksum: 64fb7172e328da80a46cf36c87ec0072feb218cb63b0d0ecebfaf1e35ee77580f6edc112a5f094fbaec8748d66b6e4cdc76809bdcbe4bac03cd31a690ef1a0f9 - languageName: node - linkType: hard - -"semver@npm:7.6.0": - version: 7.6.0 - resolution: "semver@npm:7.6.0" - dependencies: - lru-cache: "npm:^6.0.0" - bin: - semver: bin/semver.js - checksum: 1b41018df2d8aca5a1db4729985e8e20428c650daea60fcd16e926e9383217d00f574fab92d79612771884a98d2ee2a1973f49d630829a8d54d6570defe62535 - languageName: node - linkType: hard - -"semver@npm:^6.0.0, semver@npm:^6.2.0, semver@npm:^6.3.0, semver@npm:^6.3.1": - version: 6.3.1 - resolution: "semver@npm:6.3.1" - bin: - semver: bin/semver.js - checksum: 1ef3a85bd02a760c6ef76a45b8c1ce18226de40831e02a00bad78485390b98b6ccaa31046245fc63bba4a47a6a592b6c7eedc65cc47126e60489f9cc1ce3ed7e - languageName: node - linkType: hard - -"semver@npm:^7.0.0, semver@npm:^7.1.1, semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0": - version: 7.6.2 - resolution: "semver@npm:7.6.2" - bin: - semver: bin/semver.js - checksum: 296b17d027f57a87ef645e9c725bff4865a38dfc9caf29b26aa084b85820972fbe7372caea1ba6857162fa990702c6d9c1d82297cecb72d56c78ab29070d2ca2 - languageName: node - linkType: hard - -"semver@npm:^7.6.2, semver@npm:^7.6.3": +"semver@npm:7.6.3": version: 7.6.3 resolution: "semver@npm:7.6.3" bin: @@ -24558,27 +24324,6 @@ __metadata: languageName: node linkType: hard -"send@npm:0.18.0": - version: 0.18.0 - resolution: "send@npm:0.18.0" - dependencies: - debug: "npm:2.6.9" - depd: "npm:2.0.0" - destroy: "npm:1.2.0" - encodeurl: "npm:~1.0.2" - escape-html: "npm:~1.0.3" - etag: "npm:~1.8.1" - fresh: "npm:0.5.2" - http-errors: "npm:2.0.0" - mime: "npm:1.6.0" - ms: "npm:2.1.3" - on-finished: "npm:2.4.1" - range-parser: "npm:~1.2.1" - statuses: "npm:2.0.1" - checksum: ec66c0ad109680ad8141d507677cfd8b4e40b9559de23191871803ed241718e99026faa46c398dcfb9250676076573bd6bfe5d0ec347f88f4b7b8533d1d391cb - languageName: node - linkType: hard - "send@npm:0.19.0": version: 0.19.0 resolution: "send@npm:0.19.0" @@ -24620,18 +24365,6 @@ __metadata: languageName: node linkType: hard -"serve-static@npm:1.15.0": - version: 1.15.0 - resolution: "serve-static@npm:1.15.0" - dependencies: - encodeurl: "npm:~1.0.2" - escape-html: "npm:~1.0.3" - parseurl: "npm:~1.3.3" - send: "npm:0.18.0" - checksum: 699b2d4c29807a51d9b5e0f24955346911437aebb0178b3c4833ad30d3eca93385ff9927254f5c16da345903cad39d9cd4a532198c95a5129cc4ed43911b15a4 - languageName: node - linkType: hard - "serve-static@npm:1.16.2": version: 1.16.2 resolution: "serve-static@npm:1.16.2" @@ -24700,15 +24433,6 @@ __metadata: languageName: node linkType: hard -"shebang-command@npm:^1.2.0": - version: 1.2.0 - resolution: "shebang-command@npm:1.2.0" - dependencies: - shebang-regex: "npm:^1.0.0" - checksum: 9eed1750301e622961ba5d588af2212505e96770ec376a37ab678f965795e995ade7ed44910f5d3d3cb5e10165a1847f52d3348c64e146b8be922f7707958908 - languageName: node - linkType: hard - "shebang-command@npm:^2.0.0": version: 2.0.0 resolution: "shebang-command@npm:2.0.0" @@ -24718,13 +24442,6 @@ __metadata: languageName: node linkType: hard -"shebang-regex@npm:^1.0.0": - version: 1.0.0 - resolution: "shebang-regex@npm:1.0.0" - checksum: 404c5a752cd40f94591dfd9346da40a735a05139dac890ffc229afba610854d8799aaa52f87f7e0c94c5007f2c6af55bdcaeb584b56691926c5eaf41dc8f1372 - languageName: node - linkType: hard - "shebang-regex@npm:^3.0.0": version: 3.0.0 resolution: "shebang-regex@npm:3.0.0" @@ -27619,20 +27336,19 @@ __metadata: languageName: node linkType: hard -"webpack@npm:^5.90.0": - version: 5.91.0 - resolution: "webpack@npm:5.91.0" +"webpack@npm:^5.96.1": + version: 5.96.1 + resolution: "webpack@npm:5.96.1" dependencies: - "@types/eslint-scope": "npm:^3.7.3" - "@types/estree": "npm:^1.0.5" + "@types/eslint-scope": "npm:^3.7.7" + "@types/estree": "npm:^1.0.6" "@webassemblyjs/ast": "npm:^1.12.1" "@webassemblyjs/wasm-edit": "npm:^1.12.1" "@webassemblyjs/wasm-parser": "npm:^1.12.1" - acorn: "npm:^8.7.1" - acorn-import-assertions: "npm:^1.9.0" - browserslist: "npm:^4.21.10" + acorn: "npm:^8.14.0" + browserslist: "npm:^4.24.0" chrome-trace-event: "npm:^1.0.2" - enhanced-resolve: "npm:^5.16.0" + enhanced-resolve: "npm:^5.17.1" es-module-lexer: "npm:^1.2.1" eslint-scope: "npm:5.1.1" events: "npm:^3.2.0" @@ -27652,7 +27368,7 @@ __metadata: optional: true bin: webpack: bin/webpack.js - checksum: 647ca53c15fe0fa1af4396a7257d7a93cbea648d2685e565a11cc822a9e3ea9316345250987d75f02c0b45dae118814f094ec81908d1032e77a33cd6470b289e + checksum: d3419ffd198252e1d0301bd0c072cee93172f3e47937c745aa8202691d2f5d529d4ba4a1965d1450ad89a1bcd3c1f70ae09e57232b0d01dd38d69c1060e964d5 languageName: node linkType: hard @@ -27750,7 +27466,7 @@ __metadata: languageName: node linkType: hard -"which@npm:^1.2.9, which@npm:^1.3.1": +"which@npm:^1.3.1": version: 1.3.1 resolution: "which@npm:1.3.1" dependencies: