From 0990b4af2524be7d35d5a1966cb1214a4595a55c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 26 Jan 2024 10:48:59 +0000 Subject: [PATCH] chore: prepare release --- .changeset/hot-pumpkins-help.md | 11 ---- .changeset/tall-steaks-flow.md | 79 --------------------------- fork/bootstrap-sass/CHANGELOG.md | 6 +++ fork/bootstrap-sass/package.json | 2 +- packages/components/CHANGELOG.md | 11 ++++ packages/components/package.json | 6 +-- packages/containers/CHANGELOG.md | 10 ++++ packages/containers/package.json | 8 +-- packages/dataviz/CHANGELOG.md | 11 ++++ packages/dataviz/package.json | 8 +-- packages/design-docs/CHANGELOG.md | 11 ++++ packages/design-docs/package.json | 4 +- packages/design-system/CHANGELOG.md | 80 ++++++++++++++++++++++++++++ packages/design-system/package.json | 2 +- packages/faceted-search/CHANGELOG.md | 13 +++++ packages/faceted-search/package.json | 8 +-- packages/forms/CHANGELOG.md | 13 +++++ packages/forms/package.json | 8 +-- packages/playground/CHANGELOG.md | 13 +++++ packages/playground/package.json | 14 ++--- packages/stepper/CHANGELOG.md | 13 +++++ packages/stepper/package.json | 6 +-- packages/storybook-one/CHANGELOG.md | 12 +++++ packages/storybook-one/package.json | 12 ++--- 24 files changed, 232 insertions(+), 129 deletions(-) delete mode 100644 .changeset/hot-pumpkins-help.md delete mode 100644 .changeset/tall-steaks-flow.md diff --git a/.changeset/hot-pumpkins-help.md b/.changeset/hot-pumpkins-help.md deleted file mode 100644 index 7e619eff5b6..00000000000 --- a/.changeset/hot-pumpkins-help.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@talend/react-faceted-search': major -'@talend/design-docs': major -'@talend/react-components': major -'@talend/react-dataviz': major -'@talend/react-stepper': major -'@talend/react-forms': major -'@talend/bootstrap-sass': minor ---- - -`rem` values have been updated to correspond to the new `rem` base (16px) define by the design system diff --git a/.changeset/tall-steaks-flow.md b/.changeset/tall-steaks-flow.md deleted file mode 100644 index a7860545bef..00000000000 --- a/.changeset/tall-steaks-flow.md +++ /dev/null @@ -1,79 +0,0 @@ ---- -'@talend/design-system': major ---- - -**Breaking change** - -What? - -The setup of 1rem = 10px has been removed. 1rem = 16px is now the default value. - -Why? - -Qlik does not set it and use the default value of 1rem = 16px. -Using Coral component in Qlik integrations, we alter their ui by setting 1rem = 10px on the html element. - -How? - -You can use the following code to update all scss files in a folder, to convert rem values from 10px to 16px: - -```javascript -const fs = require('fs'); -const path = require('path'); - -// Get folder path from command-line arguments -const folderPath = process.argv[2]; - -if (!folderPath) { - console.error('Please provide a folder path as a command-line argument.'); - process.exit(1); -} - -// Regular expression to match and capture rem values (including potential negative values) -const remRegex = /(-?\d*\.?\d+)rem/g; - -// Function to divide rem values by 1.6 and keep the 'rem' unit with minimal decimal places -const replaceRem = (match, value) => { - const result = (parseFloat(value) / 1.6).toFixed(4).replace(/\.?0+$/, ''); - return result + 'rem'; -}; - -// Function to process a single file -const processFile = (filePath) => { - const cssInput = fs.readFileSync(filePath, 'utf8'); - const updatedCSS = cssInput.replace(remRegex, replaceRem); - fs.writeFileSync(filePath, updatedCSS, 'utf8'); - console.log(`Updated: ${filePath}`); -}; - -// Function to recursively find all .scss files in the specified folder -const findAllScssFiles = (folder) => { - const files = fs.readdirSync(folder); - const scssFiles = []; - - files.forEach((file) => { - const filePath = path.join(folder, file); - const stat = fs.statSync(filePath); - - if (stat.isDirectory()) { - scssFiles.push(...findAllScssFiles(filePath)); - } else if (file.endsWith('.scss')) { - scssFiles.push(filePath); - } - }); - - return scssFiles; -}; - -// Find all .scss files in the specified folder -const scssFiles = findAllScssFiles(folderPath); - -// Process each file -scssFiles.forEach(processFile); -``` - -To run the script, save it to a file with a .js extension (e.g., updateRemValues.js) and execute it using Node.js: - -```bash -node updateRemValues.js /path/to/your/folder -``` \ No newline at end of file diff --git a/fork/bootstrap-sass/CHANGELOG.md b/fork/bootstrap-sass/CHANGELOG.md index 8e2518ef71b..4815404cf3f 100644 --- a/fork/bootstrap-sass/CHANGELOG.md +++ b/fork/bootstrap-sass/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 5.1.0 + +### Minor Changes + +- 18c1d97: `rem` values have been updated to correspond to the new `rem` base (16px) define by the design system + ## 5.0.0 ### Major Changes diff --git a/fork/bootstrap-sass/package.json b/fork/bootstrap-sass/package.json index 6082ea44fad..98e0db101ce 100644 --- a/fork/bootstrap-sass/package.json +++ b/fork/bootstrap-sass/package.json @@ -1,6 +1,6 @@ { "name": "@talend/bootstrap-sass", - "version": "5.0.0", + "version": "5.1.0", "description": "bootstrap-sass is a Sass-powered version of Bootstrap 3, ready to drop right into your Sass powered applications.", "main": "assets/javascripts/bootstrap.js", "style": "assets/stylesheets/_bootstrap.scss", diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 5b358dd98c9..3d83d44327d 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -1,5 +1,16 @@ # @talend/react-components +## 15.0.0 + +### Major Changes + +- 18c1d97: `rem` values have been updated to correspond to the new `rem` base (16px) define by the design system + +### Patch Changes + +- Updated dependencies [18c1d97] + - @talend/design-system@9.0.0 + ## 14.3.0 ### Minor Changes diff --git a/packages/components/package.json b/packages/components/package.json index f7a247dbb96..03b0460d5e1 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -73,7 +73,7 @@ "devDependencies": { "@storybook/addon-actions": "^7.6.4", "@talend/bootstrap-theme": "^8.5.0", - "@talend/design-system": "^8.9.0", + "@talend/design-system": "^9.0.0", "@talend/eslint-config": "^13.0.2", "@talend/eslint-plugin": "^1.1.0", "@talend/locales-design-system": "^7.15.1", @@ -107,7 +107,7 @@ "react-test-renderer": "^18.2.0" }, "peerDependencies": { - "@talend/design-system": "^8.4.0", + "@talend/design-system": "^9.0.0", "i18next": "^23.7.7", "prop-types": "^15.5.10", "react": ">= 16.14.0", @@ -120,5 +120,5 @@ "publishConfig": { "access": "public" }, - "version": "14.3.0" + "version": "15.0.0" } diff --git a/packages/containers/CHANGELOG.md b/packages/containers/CHANGELOG.md index 8aae7d09bcb..d95bc43c132 100644 --- a/packages/containers/CHANGELOG.md +++ b/packages/containers/CHANGELOG.md @@ -1,5 +1,15 @@ # @talend/react-containers +## 10.6.1 + +### Patch Changes + +- Updated dependencies [18c1d97] +- Updated dependencies [18c1d97] + - @talend/react-components@15.0.0 + - @talend/react-forms@13.0.0 + - @talend/design-system@9.0.0 + ## 10.6.0 ### Minor Changes diff --git a/packages/containers/package.json b/packages/containers/package.json index 676a286a402..cfd8c144525 100644 --- a/packages/containers/package.json +++ b/packages/containers/package.json @@ -33,10 +33,10 @@ "url": "https://github.com/Talend/ui.git" }, "dependencies": { - "@talend/design-system": "^8.11.0", + "@talend/design-system": "^9.0.0", "@talend/react-cmf": "^8.3.3", - "@talend/react-components": "^14.0.0", - "@talend/react-forms": "^12.5.1", + "@talend/react-components": "^15.0.0", + "@talend/react-forms": "^13.0.0", "@talend/utils": "^3.0.0", "classnames": "^2.3.2", "immutable": "^3.8.2", @@ -83,5 +83,5 @@ "publishConfig": { "access": "public" }, - "version": "10.6.0" + "version": "10.6.1" } diff --git a/packages/dataviz/CHANGELOG.md b/packages/dataviz/CHANGELOG.md index 12b2681c6b3..d5049699727 100755 --- a/packages/dataviz/CHANGELOG.md +++ b/packages/dataviz/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 6.0.0 + +### Major Changes + +- 18c1d97: `rem` values have been updated to correspond to the new `rem` base (16px) define by the design system + +### Patch Changes + +- Updated dependencies [18c1d97] + - @talend/react-components@15.0.0 + ## 5.1.0 ### Minor Changes diff --git a/packages/dataviz/package.json b/packages/dataviz/package.json index 378caa6f4dd..c7589853e5f 100644 --- a/packages/dataviz/package.json +++ b/packages/dataviz/package.json @@ -1,6 +1,6 @@ { "name": "@talend/react-dataviz", - "version": "5.1.0", + "version": "6.0.0", "description": "Talend charts and visualization components", "main": "lib/index.js", "mainSrc": "src/index.ts", @@ -36,7 +36,7 @@ }, "dependencies": { "@talend/assets-api": "^1.3.1", - "@talend/react-components": "^14.0.0", + "@talend/react-components": "^15.0.0", "@talend/design-tokens": "^2.10.1", "classnames": "^2.3.2", "d3": "^7.8.5", @@ -49,13 +49,13 @@ "devDependencies": { "@cypress/react": "^7.0.3", "@cypress/webpack-dev-server": "^3.7.1", - "@talend/design-system": "^8.11.0", + "@talend/design-system": "^9.0.0", "@talend/eslint-config": "^13.0.2", "@talend/eslint-plugin": "^1.1.0", "@talend/icons": "^7.3.1", "@talend/locales-tui-components": "^11.4.5", "@talend/locales-tui-dataviz": "^3.0.1", - "@talend/react-components": "^14.0.0", + "@talend/react-components": "^15.0.0", "@talend/scripts-core": "^16.3.2", "@talend/scripts-config-babel": "^13.2.1", "@talend/scripts-config-react-webpack": "^16.4.2", diff --git a/packages/design-docs/CHANGELOG.md b/packages/design-docs/CHANGELOG.md index 2caf4c0fc6e..fa8f93f073f 100644 --- a/packages/design-docs/CHANGELOG.md +++ b/packages/design-docs/CHANGELOG.md @@ -1,5 +1,16 @@ # @talend/design-docs +## 4.0.0 + +### Major Changes + +- 18c1d97: `rem` values have been updated to correspond to the new `rem` base (16px) define by the design system + +### Patch Changes + +- Updated dependencies [18c1d97] + - @talend/design-system@9.0.0 + ## 3.2.0 ### Minor Changes diff --git a/packages/design-docs/package.json b/packages/design-docs/package.json index 4e68fd0ef06..98067e1118c 100644 --- a/packages/design-docs/package.json +++ b/packages/design-docs/package.json @@ -1,6 +1,6 @@ { "name": "@talend/design-docs", - "version": "3.2.0", + "version": "4.0.0", "description": "Package containing design.talend.com stories", "homepage": "https://github.com/Talend/ui#readme", "main": "src/index.ts", @@ -23,7 +23,7 @@ "@algolia/autocomplete-js": "^1.12.2", "@storybook/blocks": "^7.6.4", "@storybook/react": "^7.6.4", - "@talend/design-system": "^8.8.0", + "@talend/design-system": "^9.0.0", "@talend/design-tokens": "^2.11.0", "@talend/storybook-docs": "^2.3.0", "@talend/icons": "^7.3.1", diff --git a/packages/design-system/CHANGELOG.md b/packages/design-system/CHANGELOG.md index 7cd0a9d35a9..81eac2b0bde 100644 --- a/packages/design-system/CHANGELOG.md +++ b/packages/design-system/CHANGELOG.md @@ -1,5 +1,85 @@ # @talend/design-system +## 9.0.0 + +### Major Changes + +- 18c1d97: **Breaking change** + + What? + + The setup of 1rem = 10px has been removed. 1rem = 16px is now the default value. + + Why? + + Qlik does not set it and use the default value of 1rem = 16px. + Using Coral component in Qlik integrations, we alter their ui by setting 1rem = 10px on the html element. + + How? + + You can use the following code to update all scss files in a folder, to convert rem values from 10px to 16px: + + ```javascript + const fs = require('fs'); + const path = require('path'); + + // Get folder path from command-line arguments + const folderPath = process.argv[2]; + + if (!folderPath) { + console.error('Please provide a folder path as a command-line argument.'); + process.exit(1); + } + + // Regular expression to match and capture rem values (including potential negative values) + const remRegex = /(-?\d*\.?\d+)rem/g; + + // Function to divide rem values by 1.6 and keep the 'rem' unit with minimal decimal places + const replaceRem = (match, value) => { + const result = (parseFloat(value) / 1.6).toFixed(4).replace(/\.?0+$/, ''); + return result + 'rem'; + }; + + // Function to process a single file + const processFile = filePath => { + const cssInput = fs.readFileSync(filePath, 'utf8'); + const updatedCSS = cssInput.replace(remRegex, replaceRem); + fs.writeFileSync(filePath, updatedCSS, 'utf8'); + console.log(`Updated: ${filePath}`); + }; + + // Function to recursively find all .scss files in the specified folder + const findAllScssFiles = folder => { + const files = fs.readdirSync(folder); + const scssFiles = []; + + files.forEach(file => { + const filePath = path.join(folder, file); + const stat = fs.statSync(filePath); + + if (stat.isDirectory()) { + scssFiles.push(...findAllScssFiles(filePath)); + } else if (file.endsWith('.scss')) { + scssFiles.push(filePath); + } + }); + + return scssFiles; + }; + + // Find all .scss files in the specified folder + const scssFiles = findAllScssFiles(folderPath); + + // Process each file + scssFiles.forEach(processFile); + ``` + + To run the script, save it to a file with a .js extension (e.g., updateRemValues.js) and execute it using Node.js: + + ```bash + node updateRemValues.js /path/to/your/folder + ``` + ## 8.11.1 ### Patch Changes diff --git a/packages/design-system/package.json b/packages/design-system/package.json index 330a063a8a8..188c49a1e51 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -1,6 +1,6 @@ { "name": "@talend/design-system", - "version": "8.11.1", + "version": "9.0.0", "description": "Talend Design System", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/faceted-search/CHANGELOG.md b/packages/faceted-search/CHANGELOG.md index 5dc7c26af26..d1de098ec09 100644 --- a/packages/faceted-search/CHANGELOG.md +++ b/packages/faceted-search/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 17.0.0 + +### Major Changes + +- 18c1d97: `rem` values have been updated to correspond to the new `rem` base (16px) define by the design system + +### Patch Changes + +- Updated dependencies [18c1d97] +- Updated dependencies [18c1d97] + - @talend/react-components@15.0.0 + - @talend/design-system@9.0.0 + ## 16.1.2 ### Patch Changes diff --git a/packages/faceted-search/package.json b/packages/faceted-search/package.json index 9966aec4e59..2834de7bef0 100644 --- a/packages/faceted-search/package.json +++ b/packages/faceted-search/package.json @@ -1,6 +1,6 @@ { "name": "@talend/react-faceted-search", - "version": "16.1.2", + "version": "17.0.0", "description": "Faceted search", "main": "lib/index.js", "mainSrc": "src/index.js", @@ -44,7 +44,7 @@ "devDependencies": { "@storybook/addon-actions": "^7.6.4", "@storybook/testing-library": "^0.2.2", - "@talend/design-system": "^8.11.1", + "@talend/design-system": "^9.0.0", "@talend/eslint-config": "^13.0.2", "@talend/eslint-plugin": "^1.1.0", "@talend/icons": "^7.3.1", @@ -66,8 +66,8 @@ "react-i18next": "^13.5.0" }, "peerDependencies": { - "@talend/design-system": "^8.4.0", - "@talend/react-components": "^14.0.0", + "@talend/design-system": "^9.0.0", + "@talend/react-components": "^15.0.0", "i18next": "^23.7.7", "prop-types": "^15.5.10", "react": ">= 16.14.0", diff --git a/packages/forms/CHANGELOG.md b/packages/forms/CHANGELOG.md index cd70d4bb810..15cdd1f0fa3 100644 --- a/packages/forms/CHANGELOG.md +++ b/packages/forms/CHANGELOG.md @@ -1,5 +1,18 @@ # @talend/react-forms +## 13.0.0 + +### Major Changes + +- 18c1d97: `rem` values have been updated to correspond to the new `rem` base (16px) define by the design system + +### Patch Changes + +- Updated dependencies [18c1d97] +- Updated dependencies [18c1d97] + - @talend/react-components@15.0.0 + - @talend/design-system@9.0.0 + ## 12.6.1 ### Patch Changes diff --git a/packages/forms/package.json b/packages/forms/package.json index a654348dda0..f15666cdb8a 100644 --- a/packages/forms/package.json +++ b/packages/forms/package.json @@ -38,8 +38,8 @@ "@talend/assets-api": "^1.3.1", "@talend/icons": "^7.3.1", "@talend/json-schema-form-core": "^1.2.1", - "@talend/react-components": "^14.2.2", - "@talend/design-system": "^8.11.1", + "@talend/react-components": "^15.0.0", + "@talend/design-system": "^9.0.0", "@talend/design-tokens": "^2.11.0", "@talend/utils": "^3.0.0", "ace-builds": "1.10.1", @@ -59,7 +59,7 @@ "@storybook/addon-controls": "^7.6.4", "@talend/bootstrap-theme": "^8.3.1", "@talend/locales-tui-forms": "^10.2.4", - "@talend/react-components": "^14.2.2", + "@talend/react-components": "^15.0.0", "@talend/eslint-config": "^13.0.2", "@talend/eslint-plugin": "^1.1.0", "@talend/scripts-core": "^16.3.2", @@ -93,5 +93,5 @@ "publishConfig": { "access": "public" }, - "version": "12.6.1" + "version": "13.0.0" } diff --git a/packages/playground/CHANGELOG.md b/packages/playground/CHANGELOG.md index 0348310c2dd..c421166f64e 100644 --- a/packages/playground/CHANGELOG.md +++ b/packages/playground/CHANGELOG.md @@ -1,5 +1,18 @@ # @talend/ui-playground +## 2.3.3 + +### Patch Changes + +- Updated dependencies [18c1d97] +- Updated dependencies [18c1d97] + - @talend/react-faceted-search@17.0.0 + - @talend/react-components@15.0.0 + - @talend/react-dataviz@6.0.0 + - @talend/react-forms@13.0.0 + - @talend/design-system@9.0.0 + - @talend/react-containers@10.6.1 + ## 2.3.2 ### Patch Changes diff --git a/packages/playground/package.json b/packages/playground/package.json index fee30d6128b..31450413cbb 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -1,6 +1,6 @@ { "name": "@talend/ui-playground", - "version": "2.3.2", + "version": "2.3.3", "description": "Showcase Talend/UI", "private": true, "main": "app/index.js", @@ -40,7 +40,7 @@ "dependencies": { "@talend/bootstrap-theme": "^8.3.1", "@talend/assets-api": "^1.3.1", - "@talend/design-system": "^8.11.1", + "@talend/design-system": "^9.0.0", "@talend/design-tokens": "^2.10.1", "@talend/icons": "^7.3.1", "@talend/locales-tui-components": "^11.4.5", @@ -48,11 +48,11 @@ "@talend/locales-tui-forms": "^10.2.4", "@talend/react-cmf": "^8.3.3", "@talend/react-cmf-router": "^6.1.1", - "@talend/react-components": "^14.0.0", - "@talend/react-containers": "^10.5.1", - "@talend/react-dataviz": "^5.0.0", - "@talend/react-faceted-search": "^16.0.0", - "@talend/react-forms": "^12.6.0", + "@talend/react-components": "^15.0.0", + "@talend/react-containers": "^10.6.1", + "@talend/react-dataviz": "^6.0.0", + "@talend/react-faceted-search": "^17.0.0", + "@talend/react-forms": "^13.0.0", "history": "^5.3.0", "i18next": "^23.7.7", "prop-types": "^15.8.1", diff --git a/packages/stepper/CHANGELOG.md b/packages/stepper/CHANGELOG.md index 18518b1424b..c9c5a4ef2bd 100644 --- a/packages/stepper/CHANGELOG.md +++ b/packages/stepper/CHANGELOG.md @@ -1,5 +1,18 @@ # @talend/react-stepper +## 11.0.0 + +### Major Changes + +- 18c1d97: `rem` values have been updated to correspond to the new `rem` base (16px) define by the design system + +### Patch Changes + +- Updated dependencies [18c1d97] +- Updated dependencies [18c1d97] + - @talend/react-components@15.0.0 + - @talend/design-system@9.0.0 + ## 10.2.1 ### Patch Changes diff --git a/packages/stepper/package.json b/packages/stepper/package.json index 314ab1dd6c8..c12bf385c27 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -33,9 +33,9 @@ "url": "https://github.com/Talend/ui.git" }, "dependencies": { - "@talend/design-system": "^8.8.3", + "@talend/design-system": "^9.0.0", "@talend/design-tokens": "^2.11.0", - "@talend/react-components": "^14.0.0", + "@talend/react-components": "^15.0.0", "classnames": "^2.3.2", "invariant": "^2.2.4", "lodash": "^4.17.21" @@ -75,5 +75,5 @@ "publishConfig": { "access": "public" }, - "version": "10.2.1" + "version": "11.0.0" } diff --git a/packages/storybook-one/CHANGELOG.md b/packages/storybook-one/CHANGELOG.md index bfd1db2470a..b724a0c778b 100644 --- a/packages/storybook-one/CHANGELOG.md +++ b/packages/storybook-one/CHANGELOG.md @@ -1,5 +1,17 @@ # @talend/ui-storybook-one +## 2.3.3 + +### Patch Changes + +- Updated dependencies [18c1d97] +- Updated dependencies [18c1d97] + - @talend/react-faceted-search@17.0.0 + - @talend/react-components@15.0.0 + - @talend/react-dataviz@6.0.0 + - @talend/react-forms@13.0.0 + - @talend/design-system@9.0.0 + ## 2.3.2 ### Patch Changes diff --git a/packages/storybook-one/package.json b/packages/storybook-one/package.json index 5a4d2fb71ef..c320dbfc003 100644 --- a/packages/storybook-one/package.json +++ b/packages/storybook-one/package.json @@ -1,6 +1,6 @@ { "name": "@talend/ui-storybook-one", - "version": "2.3.2", + "version": "2.3.3", "description": "Package containing all stories from talend/ui repository", "homepage": "https://github.com/Talend/ui#readme", "main": "src/index.ts", @@ -20,14 +20,14 @@ "url": "https://github.com/Talend/ui/issues" }, "dependencies": { - "@talend/design-system": "^8.11.1", + "@talend/design-system": "^9.0.0", "@talend/design-tokens": "^2.11.0", - "@talend/react-faceted-search": "^16.0.0", + "@talend/react-faceted-search": "^17.0.0", "@talend/storybook-docs": "^2.3.0", "@talend/icons": "^7.3.1", - "@talend/react-components": "^14.0.0", - "@talend/react-forms": "^12.6.0", - "@talend/react-dataviz": "^5.0.0", + "@talend/react-components": "^15.0.0", + "@talend/react-forms": "^13.0.0", + "@talend/react-dataviz": "^6.0.0", "lodash": "^4.17.21", "pkg-dir": "^7.0.0", "react-hook-form": "^7.48.2"