From d409b575c7e247b56a60a36e7b63a365a4bc9b46 Mon Sep 17 00:00:00 2001 From: Inna Ivashchuk Date: Wed, 15 May 2024 11:03:19 +0200 Subject: [PATCH 01/56] feat(TMC-27713/icons): update Qlik favicon (#5307) * feat(TMC-27713/icons): update qlik favicon * chore: add changeset --- .changeset/large-falcons-beg.md | 5 +++++ packages/icons/src/svg/products/qlik-favicon.svg | 10 +++------- 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 .changeset/large-falcons-beg.md diff --git a/.changeset/large-falcons-beg.md b/.changeset/large-falcons-beg.md new file mode 100644 index 00000000000..1edd7716e48 --- /dev/null +++ b/.changeset/large-falcons-beg.md @@ -0,0 +1,5 @@ +--- +"@talend/icons": minor +--- + +feat(TMC-27713/icons): update qlik favicon diff --git a/packages/icons/src/svg/products/qlik-favicon.svg b/packages/icons/src/svg/products/qlik-favicon.svg index f141390e8bc..f8d5b9e65ad 100644 --- a/packages/icons/src/svg/products/qlik-favicon.svg +++ b/packages/icons/src/svg/products/qlik-favicon.svg @@ -1,8 +1,4 @@ - - - + + + From 0f408a7da1914648deddbc26227b7eba54c84014 Mon Sep 17 00:00:00 2001 From: Yan Wang Date: Thu, 16 May 2024 19:46:10 +0800 Subject: [PATCH 02/56] Fix(Dataviz): Range filter - date time inputs overlap (#5309) --- .changeset/flat-impalas-end.md | 5 +++++ .../DateTimeInputField.component.module.scss | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .changeset/flat-impalas-end.md diff --git a/.changeset/flat-impalas-end.md b/.changeset/flat-impalas-end.md new file mode 100644 index 00000000000..3ba002b43dc --- /dev/null +++ b/.changeset/flat-impalas-end.md @@ -0,0 +1,5 @@ +--- +"@talend/react-dataviz": patch +--- + +Fix(Dataviz): Range filter - date time inputs overlap diff --git a/packages/dataviz/src/components/RangeFilter/handlers/DateTimeRangeHandler/DateTimeInputField.component.module.scss b/packages/dataviz/src/components/RangeFilter/handlers/DateTimeRangeHandler/DateTimeInputField.component.module.scss index 0f631dff7a1..cfdbddf5b84 100755 --- a/packages/dataviz/src/components/RangeFilter/handlers/DateTimeRangeHandler/DateTimeInputField.component.module.scss +++ b/packages/dataviz/src/components/RangeFilter/handlers/DateTimeRangeHandler/DateTimeInputField.component.module.scss @@ -5,12 +5,16 @@ } :global(.date-picker) { - flex-basis: 75%; - margin-right: 2px; + > div { + flex-basis: 75%; + margin-right: 2px; + } } :global(.time-picker) { - flex-basis: 50%; - margin-right: 5px; + > div { + flex-basis: 50%; + margin-right: 5px; + } } } From 3d14e99f9e3d248de34e42114d8fc180ed46b775 Mon Sep 17 00:00:00 2001 From: Talend bot Date: Fri, 17 May 2024 04:11:43 +0200 Subject: [PATCH 03/56] chore: prepare release (#5308) Co-authored-by: github-actions[bot] --- .changeset/flat-impalas-end.md | 5 ----- .changeset/large-falcons-beg.md | 5 ----- packages/dataviz/CHANGELOG.md | 6 ++++++ packages/dataviz/package.json | 4 ++-- packages/icons/CHANGELOG.md | 6 ++++++ packages/icons/package.json | 2 +- 6 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 .changeset/flat-impalas-end.md delete mode 100644 .changeset/large-falcons-beg.md diff --git a/.changeset/flat-impalas-end.md b/.changeset/flat-impalas-end.md deleted file mode 100644 index 3ba002b43dc..00000000000 --- a/.changeset/flat-impalas-end.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@talend/react-dataviz": patch ---- - -Fix(Dataviz): Range filter - date time inputs overlap diff --git a/.changeset/large-falcons-beg.md b/.changeset/large-falcons-beg.md deleted file mode 100644 index 1edd7716e48..00000000000 --- a/.changeset/large-falcons-beg.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@talend/icons": minor ---- - -feat(TMC-27713/icons): update qlik favicon diff --git a/packages/dataviz/CHANGELOG.md b/packages/dataviz/CHANGELOG.md index 29114f26ce9..ed979f311b9 100755 --- a/packages/dataviz/CHANGELOG.md +++ b/packages/dataviz/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 6.1.5 + +### Patch Changes + +- 0f408a7: Fix(Dataviz): Range filter - date time inputs overlap + ## 6.1.4 ### Patch Changes diff --git a/packages/dataviz/package.json b/packages/dataviz/package.json index 95d0680c2dd..5671dccc992 100644 --- a/packages/dataviz/package.json +++ b/packages/dataviz/package.json @@ -1,6 +1,6 @@ { "name": "@talend/react-dataviz", - "version": "6.1.4", + "version": "6.1.5", "description": "Talend charts and visualization components", "main": "lib/index.js", "mainSrc": "src/index.ts", @@ -52,7 +52,7 @@ "@talend/design-system": "^10.4.2", "@talend/eslint-config": "^13.0.3", "@talend/eslint-plugin": "^1.1.1", - "@talend/icons": "^7.7.2", + "@talend/icons": "^7.8.0", "@talend/locales-tui-components": "^11.4.5", "@talend/locales-tui-dataviz": "^3.0.1", "@talend/react-components": "^16.1.1", diff --git a/packages/icons/CHANGELOG.md b/packages/icons/CHANGELOG.md index 124e4b380d9..61556fb6775 100644 --- a/packages/icons/CHANGELOG.md +++ b/packages/icons/CHANGELOG.md @@ -1,5 +1,11 @@ # @talend/icons +## 7.8.0 + +### Minor Changes + +- d409b57: feat(TMC-27713/icons): update qlik favicon + ## 7.7.2 ### Patch Changes diff --git a/packages/icons/package.json b/packages/icons/package.json index 49fdfc6ad7d..d6c25859030 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -72,5 +72,5 @@ "publishConfig": { "access": "public" }, - "version": "7.7.2" + "version": "7.8.0" } From 003c7a4a2f6ad9a1d7031b5295d2d7fbb174923a Mon Sep 17 00:00:00 2001 From: hbhong Date: Mon, 20 May 2024 16:13:03 +0800 Subject: [PATCH 04/56] fix(TDC-7452/Tour): Fix tour is changing to first step when closing (#5311) * fix(TDC-7452/Tour): Fix tour is changing to first step when closing * Update packages/components/src/AppGuidedTour/AppGuidedTour.component.js Co-authored-by: Alexandre Amalric <119614409+aamalric-talend@users.noreply.github.com> --------- Co-authored-by: Alexandre Amalric <119614409+aamalric-talend@users.noreply.github.com> --- .changeset/large-apes-compare.md | 5 +++++ .../AppGuidedTour/AppGuidedTour.component.js | 18 +++++++++++------- .../src/AppGuidedTour/AppGuidedTour.test.js | 17 +++++++++++++++++ 3 files changed, 33 insertions(+), 7 deletions(-) create mode 100644 .changeset/large-apes-compare.md diff --git a/.changeset/large-apes-compare.md b/.changeset/large-apes-compare.md new file mode 100644 index 00000000000..e61b7ec49ec --- /dev/null +++ b/.changeset/large-apes-compare.md @@ -0,0 +1,5 @@ +--- +"@talend/react-components": patch +--- + +fix(TDC-7452/Tour): Fix tour is changing to first step when closing diff --git a/packages/components/src/AppGuidedTour/AppGuidedTour.component.js b/packages/components/src/AppGuidedTour/AppGuidedTour.component.js index a64bbd22b51..80e90d61098 100644 --- a/packages/components/src/AppGuidedTour/AppGuidedTour.component.js +++ b/packages/components/src/AppGuidedTour/AppGuidedTour.component.js @@ -1,11 +1,13 @@ -import { useState, useEffect } from 'react'; -import PropTypes from 'prop-types'; -import useLocalStorage from 'react-use/lib/useLocalStorage'; +import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; +import useLocalStorage from 'react-use/lib/useLocalStorage'; + +import PropTypes from 'prop-types'; + +import I18N_DOMAIN_COMPONENTS from '../constants'; import GuidedTour from '../GuidedTour'; -import Toggle from '../Toggle'; import Stepper from '../Stepper'; -import I18N_DOMAIN_COMPONENTS from '../constants'; +import Toggle from '../Toggle'; import DemoContentStep from './DemoContentStep.component'; const DEMO_CONTENT_STEP_ID = 1; @@ -73,8 +75,10 @@ function AppGuidedTour({ onRequestClose={() => { onRequestClose(); setIsAlreadyViewed(true); - setCurrentStep(0); - setImportDemoContent(false); + if (importDemoContent) { + setImportDemoContent(false); + setCurrentStep(Math.max(0, currentStep - 1)); + } }} steps={[ { diff --git a/packages/components/src/AppGuidedTour/AppGuidedTour.test.js b/packages/components/src/AppGuidedTour/AppGuidedTour.test.js index 920f5d18ecb..bd23bb3c34b 100644 --- a/packages/components/src/AppGuidedTour/AppGuidedTour.test.js +++ b/packages/components/src/AppGuidedTour/AppGuidedTour.test.js @@ -95,4 +95,21 @@ describe('AppGuidedTour', () => { ); expect(screen.queryByText('Import demo content')).not.toBeInTheDocument(); }); + it('Should stay on the last page when finished', async () => { + const user = userEvent.setup(); + const steps = [ + { + content: { + header: 'Header', + body: () => 'Last page', + }, + }, + ]; + render(); + expect(screen.queryByText(/Last page/i)).not.toBeInTheDocument(); + const nextBtn = document.querySelector('button[data-tour-elem="right-arrow"]'); + await user.click(nextBtn); + await user.click(screen.getByText('Let me try')); + expect(screen.queryByText(/Last page/i)).toBeInTheDocument(); + }); }); From d548b21ea56904c40f0ea628a0bc3d9cd73e59f4 Mon Sep 17 00:00:00 2001 From: Talend bot Date: Mon, 20 May 2024 10:32:35 +0200 Subject: [PATCH 05/56] chore: prepare release (#5312) Co-authored-by: github-actions[bot] --- .changeset/large-apes-compare.md | 5 ----- packages/components/CHANGELOG.md | 6 ++++++ packages/components/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/large-apes-compare.md diff --git a/.changeset/large-apes-compare.md b/.changeset/large-apes-compare.md deleted file mode 100644 index e61b7ec49ec..00000000000 --- a/.changeset/large-apes-compare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@talend/react-components": patch ---- - -fix(TDC-7452/Tour): Fix tour is changing to first step when closing diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 4fe64f65b49..4e6ec4dccaf 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -1,5 +1,11 @@ # @talend/react-components +## 16.1.3 + +### Patch Changes + +- 003c7a4: fix(TDC-7452/Tour): Fix tour is changing to first step when closing + ## 16.1.2 ### Patch Changes diff --git a/packages/components/package.json b/packages/components/package.json index 4c21f15014f..f7cb7217eae 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -120,5 +120,5 @@ "publishConfig": { "access": "public" }, - "version": "16.1.2" + "version": "16.1.3" } From e48ae5f378861d4dd8afb7b0a4a1abc8dbec2f3e Mon Sep 17 00:00:00 2001 From: Volodymyr Koval Date: Tue, 21 May 2024 17:25:47 +0300 Subject: [PATCH 06/56] chore(TMC-27581): security issue in redux storage decorator filter (#5313) * chore(TMC-27581): security issue in redux storage decorator filter * chore(TMC-27581): security issue in redux storage decorator filter * chore(TMC-27581): security issue in redux storage decorator filter --- .changeset/short-points-wait.md | 5 ++ .../reduxstorage/reduxLocalStorage.test.js | 57 ------------ packages/cmf/package.json | 4 - packages/cmf/src/bootstrap.md | 9 +- packages/cmf/src/index.js | 35 ++++---- packages/cmf/src/localStorage.md | 22 ----- packages/cmf/src/reduxstorage/index.js | 9 -- .../redux-storage-decorator-immutablejs.js | 29 ------ .../cmf/src/reduxstorage/reduxLocalStorage.js | 63 ------------- yarn.lock | 88 +------------------ 10 files changed, 27 insertions(+), 294 deletions(-) create mode 100644 .changeset/short-points-wait.md delete mode 100644 packages/cmf/__tests__/reduxstorage/reduxLocalStorage.test.js delete mode 100644 packages/cmf/src/localStorage.md delete mode 100644 packages/cmf/src/reduxstorage/index.js delete mode 100644 packages/cmf/src/reduxstorage/redux-storage-decorator-immutablejs.js delete mode 100644 packages/cmf/src/reduxstorage/reduxLocalStorage.js diff --git a/.changeset/short-points-wait.md b/.changeset/short-points-wait.md new file mode 100644 index 00000000000..d66965ca348 --- /dev/null +++ b/.changeset/short-points-wait.md @@ -0,0 +1,5 @@ +--- +"@talend/react-cmf": major +--- + +chore(TMC-27581): security issue in redux storage decorator filter diff --git a/packages/cmf/__tests__/reduxstorage/reduxLocalStorage.test.js b/packages/cmf/__tests__/reduxstorage/reduxLocalStorage.test.js deleted file mode 100644 index b5d84d87c8f..00000000000 --- a/packages/cmf/__tests__/reduxstorage/reduxLocalStorage.test.js +++ /dev/null @@ -1,57 +0,0 @@ -import reduxLocalStorage from '../../src/reduxstorage/reduxLocalStorage'; - -describe('reduxLocalStorage', () => { - // eslint-disable-next-line no-console - const originalLog = console; - beforeEach(() => { - // eslint-disable-next-line no-console - global.console = { - warn: jest.fn(), - log: jest.fn(), - }; - }); - afterEach( () => { - // eslint-disable-next-line no-console - global.console = originalLog; - }); - it('should expose API', () => { - expect(typeof reduxLocalStorage.loadInitialState).toBe('function'); - expect(typeof reduxLocalStorage.saveOnReload).toBe('function'); - }); - it('should saveOnReload listen the beforeunload event', () => { - const original = window.addEventListener; - const cstate = { foo: 'bar' }; - const listener = jest.fn(); - window.addEventListener = listener; - reduxLocalStorage.saveOnReload({ - engine: { - save: state => state, - }, - store: { - getState: () => cstate, - }, - }); - window.addEventListener = original; - expect(listener).toHaveBeenCalled(); - }); - it('should loadInitialState', done => { - const content = '{"cmf":{"components":{"SidePanel":{"default":{"toggle":true}}}}}'; - window.localStorage.setItem('data-streams-redux', content); - reduxLocalStorage - .loadInitialState({ - key: 'data-streams-redux', - whitelist: [['cmf', 'components', 'SidePanel'], ['cmf', 'components', 'Container(Form)']], - }) - .then( - storage => { - expect( - storage.initialState.cmf.components.getIn(['SidePanel', 'default', 'toggle']), - ).toBe(true); - done(); - }, - error => { - throw new Error(error); - }, - ); - }); -}); diff --git a/packages/cmf/package.json b/packages/cmf/package.json index bf50c705d65..131e2beb374 100644 --- a/packages/cmf/package.json +++ b/packages/cmf/package.json @@ -48,10 +48,6 @@ "redux-batched-actions": "^0.5.0", "redux-batched-subscribe": "^0.1.6", "redux-saga": "^1.3.0", - "redux-storage": "^4.1.2", - "redux-storage-decorator-filter": "^1.1.8", - "redux-storage-decorator-immutablejs": "^1.0.4", - "redux-storage-engine-localstorage": "^1.1.4", "redux-thunk": "^2.4.2" }, "devDependencies": { diff --git a/packages/cmf/src/bootstrap.md b/packages/cmf/src/bootstrap.md index 9e75ad476c8..293597fa8dd 100644 --- a/packages/cmf/src/bootstrap.md +++ b/packages/cmf/src/bootstrap.md @@ -6,6 +6,7 @@ Quick start: ```javascript import cmf from '@talend/react-cmf'; + import components from './components'; import sagas from './sagas'; @@ -51,8 +52,8 @@ For that CMF expose an API to let you merge your settings: ```javascript import cmf from '@talend/react-cmf'; - import containersModule from '@talend/react-containers'; + import components from './components'; import saga from './saga'; import sagas from './sagas'; @@ -65,10 +66,6 @@ cmf.boostrap({ }); ``` -## How to setup store using localStorage ? - -We provide a [simple API for that](./localStorage.md). - ## onError The error handling is well described in it's own [documentation page](./onError.md). @@ -85,8 +82,8 @@ If you are using ngreact and you want to leverage cmf you must set the `render` ```javascript import cmf from '@talend/react-cmf'; - import containersModule from '@talend/react-containers'; + import components from './components'; import saga from './saga'; import sagas from './sagas'; diff --git a/packages/cmf/src/index.js b/packages/cmf/src/index.js index b7021ea3939..147cd642ffa 100644 --- a/packages/cmf/src/index.js +++ b/packages/cmf/src/index.js @@ -1,40 +1,36 @@ /** * @module react-cmf */ - -import actions from './actions'; +import * as mock from './mock'; +// DEPRECATED APIs +import action from './action'; import actionCreator from './actionCreator'; - +import actions from './actions'; +import App from './App'; import bootstrap from './bootstrap'; import cmfConnect from './cmfConnect'; import cmfModule from './cmfModule'; import component from './component'; -import ConnectedDispatcher from './Dispatcher'; import ErrorBoundary from './components/ErrorBoundary/ErrorBoundary.component'; -import { Saga, CmfRegisteredSaga } from './components/Saga'; +import { CmfRegisteredSaga, Saga } from './components/Saga'; +import componentState from './componentState'; +import constants from './constant'; +import ConnectedDispatcher from './Dispatcher'; import expression from './expression'; import expressions from './expressions'; import Inject from './Inject.component'; -import matchPath from './matchPath'; -import sagas from './sagas'; -import selectors from './selectors'; -import settings from './settings'; import localStorage from './localStorage'; +import matchPath from './matchPath'; +import middlewares from './middlewares'; import onError from './onError'; -import reduxStorage from './reduxstorage'; -import * as mock from './mock'; -import { useCMFContext } from './useContext'; - -// DEPRECATED APIs -import action from './action'; -import App from './App'; import reducers from './reducers'; import registry from './registry'; import RegistryProvider from './RegistryProvider'; +import sagas from './sagas'; +import selectors from './selectors'; +import settings from './settings'; import store from './store'; -import middlewares from './middlewares'; -import componentState from './componentState'; -import constants from './constant'; +import { useCMFContext } from './useContext'; const Dispatcher = ConnectedDispatcher; const getErrorMiddleware = middlewares.error; @@ -54,7 +50,6 @@ export { ErrorBoundary, Inject, mock, - reduxStorage, sagas, selectors, // DEPRECATED diff --git a/packages/cmf/src/localStorage.md b/packages/cmf/src/localStorage.md deleted file mode 100644 index 2bb4da7bc52..00000000000 --- a/packages/cmf/src/localStorage.md +++ /dev/null @@ -1,22 +0,0 @@ -# setup localStorage with CMF - -You can use this API to setup your redux state using localStorage. - -```javascript -import cmf from '@talend/react-cmf'; - -const localStorageKey = 'myApp-v1'; -const preloadedState = cmf.localStorage.getState(localStorageKey); -const storeCallback = cmf.localStorage.getStoreCallback(localStorageKey, [ - ['cmf', 'components', 'Container(List)', 'foo'], - ['cmf', 'components', 'Container(SidePanel)'], -]); - -cmf.bootstrap({ - preloadedState, - storeCallback, -}); -``` - -From now the redux-storage api provided in CMF is DEPRECATED. -It will be removed in the next major release. diff --git a/packages/cmf/src/reduxstorage/index.js b/packages/cmf/src/reduxstorage/index.js deleted file mode 100644 index 3cd934df835..00000000000 --- a/packages/cmf/src/reduxstorage/index.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This is a CMF plugin that let you configure your store - */ - -import * as reduxLocalStorage from './reduxLocalStorage'; - -export default { - localStorage: reduxLocalStorage, -}; diff --git a/packages/cmf/src/reduxstorage/redux-storage-decorator-immutablejs.js b/packages/cmf/src/reduxstorage/redux-storage-decorator-immutablejs.js deleted file mode 100644 index addca173f7d..00000000000 --- a/packages/cmf/src/reduxstorage/redux-storage-decorator-immutablejs.js +++ /dev/null @@ -1,29 +0,0 @@ -// FIXME: should be contribution -import { fromJS } from 'immutable'; - -export default (engine, whitelist = []) => ({ - ...engine, - - load() { - if (process.env.NODE_ENV !== 'production') { - // eslint-disable-next-line no-console - console.warn('DEPRECATED: this API will be removed in the next major release'); - } - return engine.load().then(result => { - whitelist.forEach(keys => { - if (typeof keys === 'string') { - keys = [keys]; // eslint-disable-line no-param-reassign - } - let tmp = result; - keys.forEach((key, index) => { - if (tmp && index === keys.length - 1) { - tmp[key] = fromJS(tmp[key]); - } else if (tmp) { - tmp = tmp[key]; - } - }); - }); - return result; - }); - }, -}); diff --git a/packages/cmf/src/reduxstorage/reduxLocalStorage.js b/packages/cmf/src/reduxstorage/reduxLocalStorage.js deleted file mode 100644 index 501430258a0..00000000000 --- a/packages/cmf/src/reduxstorage/reduxLocalStorage.js +++ /dev/null @@ -1,63 +0,0 @@ -import * as storage from 'redux-storage'; -import createEngine from 'redux-storage-engine-localstorage'; -import filter from 'redux-storage-decorator-filter'; -import immutablejs from './redux-storage-decorator-immutablejs'; - -const CMF_IMMUTABLE_PATHS = [ - ['cmf', 'components'], - ['cmf', 'collections'], -]; - -const CMF_MIDDLEWARE_BLACK_LIST = ['@@INIT', '@@router/LOCATION_CHANGE']; - -function loadInitialState(options = {}) { - if (process.env.NODE_ENV !== 'production') { - // eslint-disable-next-line no-console - console.warn('DEPRECATED: this API will be removed in the next major release'); - } - const { - key, - immutables = [], - whitelist = [], - blacklist = [], - middlewareWhitelist = [], - middlewareBlacklist = [], - } = options; - let engine = createEngine(key); - engine = filter(engine, whitelist, blacklist); - - const ipaths = []; - CMF_IMMUTABLE_PATHS.forEach(p => ipaths.push(p)); - immutables.forEach(p => ipaths.push(p)); - engine = immutablejs(engine, ipaths); - - const mblack = []; - CMF_MIDDLEWARE_BLACK_LIST.forEach(m => mblack.push(m)); - middlewareBlacklist.forEach(m => mblack.push(m)); - const storageMiddleware = storage.createMiddleware(engine, mblack, middlewareWhitelist); - - return storage - .createLoader(engine)({ - dispatch: () => {}, - }) - .then(initialState => ({ - initialState, - storageMiddleware, - engine, - })); -} - -function saveOnReload({ engine, store }) { - if (process.env.NODE_ENV !== 'production') { - // eslint-disable-next-line no-console - console.warn('DEPRECATED: this API will be removed in the next major release'); - } - window.addEventListener('beforeunload', () => { - engine.save(store.getState()); // localstorage is sync - }); -} - -export default { - loadInitialState, - saveOnReload, -}; diff --git a/yarn.lock b/yarn.lock index ae8fe7cca8e..fd8d42efc6a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10975,7 +10975,7 @@ ignore@^5.0.0, ignore@^5.2.0, ignore@^5.2.4: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== -immutable@^3, immutable@^3.7.6, immutable@^3.8.2: +immutable@^3, immutable@^3.8.2: version "3.8.2" resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" integrity sha512-15gZoQ38eYjEjxkorfbcgBKBL6R7T459OuK+CpcWt7O3KF4uPCx2tD0uFETlUDIyo+1789crbMhTvQBSR5yBMg== @@ -12747,7 +12747,7 @@ lodash.debounce@4.0.8, lodash.debounce@^4, lodash.debounce@^4.0.8: resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== -lodash.get@^4.1.2, lodash.get@^4.4.2: +lodash.get@^4.4.2: version "4.4.2" resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" integrity sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ== @@ -12767,16 +12767,6 @@ lodash.isfinite@^3.3.2: resolved "https://registry.yarnpkg.com/lodash.isfinite/-/lodash.isfinite-3.3.2.tgz#fb89b65a9a80281833f0b7478b3a5104f898ebb3" integrity sha512-7FGG40uhC8Mm633uKW1r58aElFlBlxCrg9JfSi3P6aYiWmfiWF0PgMd86ZUsxE5GwWPdHoS2+48bwTh2VPkIQA== -lodash.isfunction@^3.0.7, lodash.isfunction@^3.0.8: - version "3.0.9" - resolved "https://registry.yarnpkg.com/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz#06de25df4db327ac931981d1bdb067e5af68d051" - integrity sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw== - -lodash.isobject@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/lodash.isobject/-/lodash.isobject-3.0.2.tgz#3c8fb8d5b5bf4bf90ae06e14f2a530a4ed935e1d" - integrity sha512-3/Qptq2vr7WeJbB4KHUSKlq8Pl7ASXi3UG6CMbBm8WRtXi8+GHm7mKaU3urfpSEzWe2wCIChs6/sdocUsTKJiA== - lodash.isplainobject@^4.0.6: version "4.0.6" resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" @@ -12787,7 +12777,7 @@ lodash.memoize@^4.1.2: resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== -lodash.merge@4.6.2, lodash.merge@^4.3.1, lodash.merge@^4.6.2: +lodash.merge@4.6.2, lodash.merge@^4.6.2: version "4.6.2" resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== @@ -12807,16 +12797,6 @@ lodash.pick@4.4.0: resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" integrity sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q== -lodash.reduce@^4.3.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/lodash.reduce/-/lodash.reduce-4.6.0.tgz#f1ab6b839299ad48f784abbf476596f03b914d3b" - integrity sha512-6raRe2vxCYBhpBu+B+TtNGUzah+hQjVdu3E17wfusjyrXBka2nBS8OH/gjVZ5PvHOhWmIZTYri09Z6n/QfnNMw== - -lodash.set@^4.0.0: - version "4.3.2" - resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23" - integrity sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg== - lodash.sortby@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" @@ -12847,11 +12827,6 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== -lodash.unset@^4.1.0: - version "4.5.2" - resolved "https://registry.yarnpkg.com/lodash.unset/-/lodash.unset-4.5.2.tgz#370d1d3e85b72a7e1b0cdf2d272121306f23e4ed" - integrity sha512-bwKX88k2JhCV9D1vtE8+naDKlLiGrSmf8zi/Y9ivFHwbmRfA8RxS/aVJ+sIht2XOwqoNr4xUPUkGZpc1sHFEKg== - lodash@4.17.21, lodash@^4, lodash@^4.0.0, lodash@^4.11.2, lodash@^4.17.10, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" @@ -12891,7 +12866,7 @@ longest-streak@^3.0.0: resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-3.1.0.tgz#62fa67cd958742a1574af9f39866364102d90cd4" integrity sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g== -loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1, loose-envify@^1.4.0: +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1, loose-envify@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== @@ -16233,18 +16208,6 @@ redent@^4.0.0: indent-string "^5.0.0" strip-indent "^4.0.0" -reduce-reducers@^0.1.0: - version "0.1.5" - resolved "https://registry.yarnpkg.com/reduce-reducers/-/reduce-reducers-0.1.5.tgz#ff77ca8068ff41007319b8b4b91533c7e0e54576" - integrity sha512-uoVmQnZQ+BtKKDKpBdbBri5SLNyIK9ULZGOA504++VbHcwouWE+fJDIo8AuESPF9/EYSkI0v05LDEQK6stCbTA== - -redux-actions@^0.10.1: - version "0.10.1" - resolved "https://registry.yarnpkg.com/redux-actions/-/redux-actions-0.10.1.tgz#bb442ee37dd9643a94933e4071e089f435587135" - integrity sha512-7l4PxsZFMZWhoNVX8z+nr7NCrhrPXK5EsNvROss0+pFF05kjBOvCo1crQicfBPvNqhHRHI9LSCWVDBbdi9cApA== - dependencies: - reduce-reducers "^0.1.0" - redux-batched-actions@^0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/redux-batched-actions/-/redux-batched-actions-0.5.0.tgz#d3f0e359b2a95c7d80bab442df450bfafd57d122" @@ -16283,49 +16246,6 @@ redux-saga@^1.3.0: dependencies: "@redux-saga/core" "^1.3.0" -redux-storage-decorator-filter@^1.1.8: - version "1.1.8" - resolved "https://registry.yarnpkg.com/redux-storage-decorator-filter/-/redux-storage-decorator-filter-1.1.8.tgz#c0b7b5563b8ba138ce79c03ad54a2878a3a53ee5" - integrity sha512-YZp72hnGPgo/+4ECbHGO17JQ9e1pc2woSRI2fcPco6s7qgPR3CMdnQMiV05LH7brrbcbszkft7OUQrTP4/unEw== - dependencies: - lodash.get "^4.1.2" - lodash.isfunction "^3.0.7" - lodash.isobject "^3.0.2" - lodash.reduce "^4.3.0" - lodash.set "^4.0.0" - lodash.unset "^4.1.0" - -redux-storage-decorator-immutablejs@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/redux-storage-decorator-immutablejs/-/redux-storage-decorator-immutablejs-1.0.4.tgz#8d90df6cfa1b465a33686b085d641e1709ab5aeb" - integrity sha512-Vof32D9VdPFRoBXP9FFNBsWKCMg6YGWqfy0LGHaJgNy/yZNPkRSdFJtW/YOxK/i0vsxX9TMFoOEymrEXF5lJLA== - dependencies: - immutable "^3.7.6" - -redux-storage-engine-localstorage@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/redux-storage-engine-localstorage/-/redux-storage-engine-localstorage-1.1.4.tgz#2849278d78970f0c3f5f3d4727caa3c30783ed49" - integrity sha512-bJov5lDoNJZY90VfIYtAJB0YdzeXQYy2BRx0mUitUq1/yUqypUG+icCvAlP6jz50SHFZrU30q0Ne/cxjDLPGDg== - -redux-storage-merger-simple@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/redux-storage-merger-simple/-/redux-storage-merger-simple-1.0.5.tgz#29a2886b0e770d9b70811aca800aa8efae89fb73" - integrity sha512-7osIHKaS6HvJpFkSWlsJz8tUV7SxVsDzo9FBkbeHKTL+j+lVBMhXNzONL8I2Q+1N4JSh7ilwoa1CBFYmWF2j/w== - dependencies: - lodash.isobject "^3.0.2" - lodash.merge "^4.3.1" - -redux-storage@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/redux-storage/-/redux-storage-4.1.2.tgz#e06f4bdeee262aead9132fc9f7eadc67e9f9bea2" - integrity sha512-mA3ye5FLqnK3RgrSuhSyXkYp9IOyWB95/zle2n8qSrFoOiCTgrEtM9W07hou/b/QRmT/LpsRQhWiQOn7KqOjjw== - dependencies: - lodash.isfunction "^3.0.8" - lodash.isobject "^3.0.2" - loose-envify "^1.2.0" - redux-actions "^0.10.1" - redux-storage-merger-simple "^1.0.2" - redux-thunk@*: version "3.1.0" resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-3.1.0.tgz#94aa6e04977c30e14e892eae84978c1af6058ff3" From e489109dd8f5a088486ce46a30582fbfaa05c8d2 Mon Sep 17 00:00:00 2001 From: Talend bot Date: Wed, 22 May 2024 11:06:09 +0200 Subject: [PATCH 07/56] chore: prepare release (#5315) Co-authored-by: github-actions[bot] --- .changeset/short-points-wait.md | 5 ----- packages/cmf-cqrs/CHANGELOG.md | 7 +++++++ packages/cmf-cqrs/package.json | 4 ++-- packages/cmf-router/CHANGELOG.md | 7 +++++++ packages/cmf-router/package.json | 4 ++-- packages/cmf/CHANGELOG.md | 6 ++++++ packages/cmf/package.json | 2 +- packages/containers/CHANGELOG.md | 7 +++++++ packages/containers/package.json | 6 +++--- packages/playground/CHANGELOG.md | 9 +++++++++ packages/playground/package.json | 8 ++++---- packages/sagas/CHANGELOG.md | 7 +++++++ packages/sagas/package.json | 4 ++-- packages/storybook-cmf/CHANGELOG.md | 7 +++++++ packages/storybook-cmf/package.json | 6 +++--- 15 files changed, 67 insertions(+), 22 deletions(-) delete mode 100644 .changeset/short-points-wait.md diff --git a/.changeset/short-points-wait.md b/.changeset/short-points-wait.md deleted file mode 100644 index d66965ca348..00000000000 --- a/.changeset/short-points-wait.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@talend/react-cmf": major ---- - -chore(TMC-27581): security issue in redux storage decorator filter diff --git a/packages/cmf-cqrs/CHANGELOG.md b/packages/cmf-cqrs/CHANGELOG.md index 7c478f1dc36..10039235686 100644 --- a/packages/cmf-cqrs/CHANGELOG.md +++ b/packages/cmf-cqrs/CHANGELOG.md @@ -1,5 +1,12 @@ # @talend/react-cmf-cqrs +## 10.1.4 + +### Patch Changes + +- Updated dependencies [e48ae5f] + - @talend/react-cmf@9.0.0 + ## 10.1.3 ### Patch Changes diff --git a/packages/cmf-cqrs/package.json b/packages/cmf-cqrs/package.json index a1f986c3620..1c275b656b8 100644 --- a/packages/cmf-cqrs/package.json +++ b/packages/cmf-cqrs/package.json @@ -32,7 +32,7 @@ }, "homepage": "https://github.com/Talend/ui/cmf-cqrs#readme", "dependencies": { - "@talend/react-cmf": "^8.4.1", + "@talend/react-cmf": "^9.0.0", "@talend/utils": "^3.0.4", "immutable": "^3.8.2", "redux-saga": "^1.3.0" @@ -60,5 +60,5 @@ "publishConfig": { "access": "public" }, - "version": "10.1.3" + "version": "10.1.4" } diff --git a/packages/cmf-router/CHANGELOG.md b/packages/cmf-router/CHANGELOG.md index 0a05a996b49..d3c2fb29bdd 100644 --- a/packages/cmf-router/CHANGELOG.md +++ b/packages/cmf-router/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 6.1.3 + +### Patch Changes + +- Updated dependencies [e48ae5f] + - @talend/react-cmf@9.0.0 + ## 6.1.2 ### Patch Changes diff --git a/packages/cmf-router/package.json b/packages/cmf-router/package.json index e009cf57271..82b3873333c 100644 --- a/packages/cmf-router/package.json +++ b/packages/cmf-router/package.json @@ -1,6 +1,6 @@ { "name": "@talend/react-cmf-router", - "version": "6.1.2", + "version": "6.1.3", "description": "", "main": "lib/index.js", "author": "Talend Frontend (http://www.talend.com)", @@ -17,7 +17,7 @@ "lint": "talend-scripts lint" }, "dependencies": { - "@talend/react-cmf": "^8.4.1", + "@talend/react-cmf": "^9.0.0", "connected-react-router": "^6.9.3", "history": "^5.3.0", "lodash": "^4.17.21", diff --git a/packages/cmf/CHANGELOG.md b/packages/cmf/CHANGELOG.md index da104dac134..27eaeba09f3 100644 --- a/packages/cmf/CHANGELOG.md +++ b/packages/cmf/CHANGELOG.md @@ -1,5 +1,11 @@ # @talend/react-cmf +## 9.0.0 + +### Major Changes + +- e48ae5f: chore(TMC-27581): security issue in redux storage decorator filter + ## 8.4.2 ### Patch Changes diff --git a/packages/cmf/package.json b/packages/cmf/package.json index 131e2beb374..bce95a6b046 100644 --- a/packages/cmf/package.json +++ b/packages/cmf/package.json @@ -74,5 +74,5 @@ "publishConfig": { "access": "public" }, - "version": "8.4.2" + "version": "9.0.0" } diff --git a/packages/containers/CHANGELOG.md b/packages/containers/CHANGELOG.md index 736f9a141a4..1030575ae08 100644 --- a/packages/containers/CHANGELOG.md +++ b/packages/containers/CHANGELOG.md @@ -1,5 +1,12 @@ # @talend/react-containers +## 10.7.4 + +### Patch Changes + +- Updated dependencies [e48ae5f] + - @talend/react-cmf@9.0.0 + ## 10.7.3 ### Patch Changes diff --git a/packages/containers/package.json b/packages/containers/package.json index 8e69cae9701..880fb1fb917 100644 --- a/packages/containers/package.json +++ b/packages/containers/package.json @@ -34,7 +34,7 @@ }, "dependencies": { "@talend/design-system": "^10.0.0", - "@talend/react-cmf": "^8.4.1", + "@talend/react-cmf": "^9.0.0", "@talend/react-components": "^16.0.0", "@talend/react-forms": "^14.0.0", "@talend/utils": "^3.0.4", @@ -54,7 +54,7 @@ "@talend/locales-tui-containers": "^9.1.3", "@talend/locales-tui-forms": "^10.2.4", "@talend/locales-design-system": "^7.15.1", - "@talend/react-storybook-cmf": "^8.2.2", + "@talend/react-storybook-cmf": "^9.0.0", "@talend/eslint-config": "^13.0.3", "@talend/eslint-plugin": "^1.1.1", "@talend/scripts-core": "^16.3.5", @@ -83,5 +83,5 @@ "publishConfig": { "access": "public" }, - "version": "10.7.3" + "version": "10.7.4" } diff --git a/packages/playground/CHANGELOG.md b/packages/playground/CHANGELOG.md index 8deb9e322bc..a6c33c0a526 100644 --- a/packages/playground/CHANGELOG.md +++ b/packages/playground/CHANGELOG.md @@ -1,5 +1,14 @@ # @talend/ui-playground +## 2.4.5 + +### Patch Changes + +- Updated dependencies [e48ae5f] + - @talend/react-cmf@9.0.0 + - @talend/react-cmf-router@6.1.3 + - @talend/react-containers@10.7.4 + ## 2.4.4 ### Patch Changes diff --git a/packages/playground/package.json b/packages/playground/package.json index bdc82ab858e..8b7404ba29a 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -1,6 +1,6 @@ { "name": "@talend/ui-playground", - "version": "2.4.4", + "version": "2.4.5", "description": "Showcase Talend/UI", "private": true, "main": "app/index.js", @@ -46,10 +46,10 @@ "@talend/locales-tui-components": "^11.4.5", "@talend/locales-tui-containers": "^9.1.3", "@talend/locales-tui-forms": "^10.2.4", - "@talend/react-cmf": "^8.4.1", - "@talend/react-cmf-router": "^6.1.2", + "@talend/react-cmf": "^9.0.0", + "@talend/react-cmf-router": "^6.1.3", "@talend/react-components": "^16.0.0", - "@talend/react-containers": "^10.7.3", + "@talend/react-containers": "^10.7.4", "@talend/react-dataviz": "^6.1.3", "@talend/react-faceted-search": "^19.0.0", "@talend/react-forms": "^14.0.0", diff --git a/packages/sagas/CHANGELOG.md b/packages/sagas/CHANGELOG.md index 24063776dfa..1e68ab23f9a 100644 --- a/packages/sagas/CHANGELOG.md +++ b/packages/sagas/CHANGELOG.md @@ -1,5 +1,12 @@ # @talend/react-sagas +## 8.1.3 + +### Patch Changes + +- Updated dependencies [e48ae5f] + - @talend/react-cmf@9.0.0 + ## 8.1.2 ### Patch Changes diff --git a/packages/sagas/package.json b/packages/sagas/package.json index f43d4f48182..827bc032435 100644 --- a/packages/sagas/package.json +++ b/packages/sagas/package.json @@ -1,6 +1,6 @@ { "name": "@talend/react-sagas", - "version": "8.1.2", + "version": "8.1.3", "description": "App wide redux sagas", "main": "lib/index.js", "mainSrc": "src/index.js", @@ -31,7 +31,7 @@ "url": "https://github.com/Talend/ui.git" }, "dependencies": { - "@talend/react-cmf": "^8.4.1", + "@talend/react-cmf": "^9.0.0", "immutable": "^3.8.2", "redux-saga": "^1.3.0" }, diff --git a/packages/storybook-cmf/CHANGELOG.md b/packages/storybook-cmf/CHANGELOG.md index 8dc17459c73..a7669ad5768 100644 --- a/packages/storybook-cmf/CHANGELOG.md +++ b/packages/storybook-cmf/CHANGELOG.md @@ -1,5 +1,12 @@ # @talend/react-storybook-cmf +## 9.0.0 + +### Patch Changes + +- Updated dependencies [e48ae5f] + - @talend/react-cmf@9.0.0 + ## 8.2.2 ### Patch Changes diff --git a/packages/storybook-cmf/package.json b/packages/storybook-cmf/package.json index 951994f807a..d64ae682871 100644 --- a/packages/storybook-cmf/package.json +++ b/packages/storybook-cmf/package.json @@ -1,7 +1,7 @@ { "name": "@talend/react-storybook-cmf", "description": "react-storybook-cmf library.", - "version": "8.2.2", + "version": "9.0.0", "license": "Apache-2.0", "author": "Talend Frontend ", "repository": { @@ -26,7 +26,7 @@ "devDependencies": { "@talend/eslint-config": "^13.0.3", "@talend/eslint-plugin": "^1.1.1", - "@talend/react-cmf": "^8.4.1", + "@talend/react-cmf": "^9.0.0", "@talend/scripts-core": "^16.3.5", "@talend/scripts-config-babel": "^13.3.1", "@testing-library/react": "^14.2.1", @@ -39,7 +39,7 @@ "prop-types": "^15.8.1" }, "peerDependencies": { - "@talend/react-cmf": "^8.4.0", + "@talend/react-cmf": "^9.0.0", "react": ">= 16.14.0", "react-dom": ">= 16.14.0", "react-redux": "^7.2.9", From e66f4c5ec78b2892c823d00fd3b36d4f86480d2a Mon Sep 17 00:00:00 2001 From: Colm O hEigeartaigh Date: Fri, 24 May 2024 10:10:21 +0100 Subject: [PATCH 08/56] Disabling Veracode + Semgrep scans (#5316) --- .github/actions/sourceclear/Dockerfile | 5 ---- .github/actions/sourceclear/action.yml | 9 ------ .github/actions/sourceclear/entrypoint.sh | 26 ----------------- .github/workflows/security-scan.yml | 21 -------------- .github/workflows/semgrep.yml | 34 ----------------------- 5 files changed, 95 deletions(-) delete mode 100644 .github/actions/sourceclear/Dockerfile delete mode 100644 .github/actions/sourceclear/action.yml delete mode 100755 .github/actions/sourceclear/entrypoint.sh delete mode 100644 .github/workflows/security-scan.yml delete mode 100644 .github/workflows/semgrep.yml diff --git a/.github/actions/sourceclear/Dockerfile b/.github/actions/sourceclear/Dockerfile deleted file mode 100644 index e22853a74cd..00000000000 --- a/.github/actions/sourceclear/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM node:16 -RUN apt-get update -RUN apt-get install -y --no-install-recommends curl jq -COPY entrypoint.sh /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] diff --git a/.github/actions/sourceclear/action.yml b/.github/actions/sourceclear/action.yml deleted file mode 100644 index 7a27be95d90..00000000000 --- a/.github/actions/sourceclear/action.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: 'SourceClear Scan' -description: 'Scan a project with the SourceClear agent' -author: 'SourceClear' -secrets: - SRCCLR_API_TOKEN: - description: 'The API token to use' -runs: - using: 'docker' - image: 'Dockerfile' diff --git a/.github/actions/sourceclear/entrypoint.sh b/.github/actions/sourceclear/entrypoint.sh deleted file mode 100755 index 9108988b3b8..00000000000 --- a/.github/actions/sourceclear/entrypoint.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -l -echo "Download srcclr ci script ..." -curl -sSL https://download.sourceclear.com/ci.sh --output srcclr.sh -echo "Script saved to srcclr.sh" -chmod a+x srcclr.sh -echo "Script execution rights added" - -packages=$(yarn --silent workspaces info | jq '.[].location' | sed 's/\"//g') - -# scan each folder -echo "Starting scan on . (root) ..." -./srcclr.sh scan . -echo "Scan completed on . (root)" - -for folder in $packages; -do - echo "Starting scan on ./$folder ..." - echo "> ln -s yarn.lock ./$folder/yarn.lock" - cp yarn.lock ./$folder/yarn.lock - ls -l ./$folder - echo "> ./srcclr.sh scan ./$folder" - ./srcclr.sh scan ./$folder - echo "Scan completed on ./$folder" -done - - diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml deleted file mode 100644 index 442d2c03767..00000000000 --- a/.github/workflows/security-scan.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Security scan - -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * 0' # https://crontab.guru/every-week "At 00:00 on Sunday." - -permissions: - contents: read - -jobs: - build: - environment: main - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 - - name: Scan - uses: ./.github/actions/sourceclear - env: - SRCCLR_API_TOKEN: ${{ secrets.SRCCLR_API_TOKEN }} - SRCCLR_SCOPE: 'production' diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml deleted file mode 100644 index eb1a26be9a3..00000000000 --- a/.github/workflows/semgrep.yml +++ /dev/null @@ -1,34 +0,0 @@ -# Name of this GitHub Actions workflow. -name: Semgrep - -on: - workflow_dispatch: - pull_request: - push: - branches: - - master - paths: - - .github/workflows/semgrep.yml - schedule: - - cron: '0 0 * * 0' - -jobs: - semgrep: - environment: pull_request_unsafe - name: Scan - runs-on: ubuntu-latest - - container: - # A Docker image with Semgrep installed. Do not change this. - image: returntocorp/semgrep - - # Skip any PR created by dependabot to avoid permission issues: - if: (github.actor != 'dependabot[bot]') - - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 - # Run the "semgrep ci" command on the command line of the docker image. - - run: semgrep ci - env: - SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} - From 6ff9f03efd7eeabd1d30c551fd3e2ce356747871 Mon Sep 17 00:00:00 2001 From: Duarte Caldeira <124570762+dlcaldeira@users.noreply.github.com> Date: Fri, 24 May 2024 10:46:54 +0100 Subject: [PATCH 09/56] fix(DGT-528): Fix the rounding issue of QualityBar percentages --- .changeset/many-camels-agree.md | 5 +++ .../QualityBar/QualityRatioBar.utils.ts | 36 +++++++++---------- 2 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 .changeset/many-camels-agree.md diff --git a/.changeset/many-camels-agree.md b/.changeset/many-camels-agree.md new file mode 100644 index 00000000000..d615d6bce13 --- /dev/null +++ b/.changeset/many-camels-agree.md @@ -0,0 +1,5 @@ +--- +"@talend/design-system": patch +--- + +DGT-528: Fix QualityBar rounding issue when the invalid or empty percentages were rounded to 0. Set a miminum value for the rounding to prevent UI inconsistencies diff --git a/packages/design-system/src/components/QualityBar/QualityRatioBar.utils.ts b/packages/design-system/src/components/QualityBar/QualityRatioBar.utils.ts index ad141045f73..f2318cf7d35 100644 --- a/packages/design-system/src/components/QualityBar/QualityRatioBar.utils.ts +++ b/packages/design-system/src/components/QualityBar/QualityRatioBar.utils.ts @@ -35,7 +35,7 @@ export const getQualityPercentagesRounded = ( empty: number = 0, valid: number = 0, na: number = 0, - placeholder = 0, + placeholder: number = 0, ): Required => { const output: Required = { empty: 0, @@ -45,30 +45,30 @@ export const getQualityPercentagesRounded = ( valid: 0, }; - let sumValues = 0; - let sumRounded = 0; const digitMultiplier = Math.pow(10, digits); - const multiplier = 100 * digitMultiplier; - const total = invalid + empty + valid + na + placeholder; - sumValues = (invalid * multiplier) / total; - output.invalid = Math.round(sumValues - sumRounded) / digitMultiplier; - sumRounded = Math.round(sumValues); + if (total === 0) { + return output; + } + + const minPercentage = 1 / digitMultiplier; + + output.invalid = +(invalid > 0 ? Math.max((invalid * 100) / total, minPercentage) : 0).toFixed( + digits, + ); - sumValues += (empty * multiplier) / total; - output.empty = Math.round(sumValues - sumRounded) / digitMultiplier; - sumRounded = Math.round(sumValues); + output.empty = +(empty > 0 ? Math.max((empty * 100) / total, minPercentage) : 0).toFixed(digits); - sumValues += (valid * multiplier) / total; - output.valid = Math.round(sumValues - sumRounded) / digitMultiplier; - sumRounded = Math.round(sumValues); + output.na = +(na > 0 ? Math.max((na * 100) / total, minPercentage) : 0).toFixed(digits); - sumValues += (na * multiplier) / total; - output.na = Math.round(sumValues - sumRounded) / digitMultiplier; + output.placeholder = +( + placeholder > 0 ? Math.max((placeholder * 100) / total, minPercentage) : 0 + ).toFixed(digits); - sumValues += (placeholder * multiplier) / total; - output.placeholder = Math.round(sumValues - sumRounded) / digitMultiplier; + output.valid = +(100 - output.invalid - output.empty - output.na - output.placeholder).toFixed( + digits, + ); return output; }; From bcb24b175ab56def87002e5a6918139e875260db Mon Sep 17 00:00:00 2001 From: Talend bot Date: Fri, 24 May 2024 11:51:39 +0200 Subject: [PATCH 10/56] chore: prepare release (#5318) Co-authored-by: github-actions[bot] --- .changeset/many-camels-agree.md | 5 ----- packages/design-system/CHANGELOG.md | 6 ++++++ packages/design-system/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/many-camels-agree.md diff --git a/.changeset/many-camels-agree.md b/.changeset/many-camels-agree.md deleted file mode 100644 index d615d6bce13..00000000000 --- a/.changeset/many-camels-agree.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@talend/design-system": patch ---- - -DGT-528: Fix QualityBar rounding issue when the invalid or empty percentages were rounded to 0. Set a miminum value for the rounding to prevent UI inconsistencies diff --git a/packages/design-system/CHANGELOG.md b/packages/design-system/CHANGELOG.md index 98da3d4aa5c..e2c06199538 100644 --- a/packages/design-system/CHANGELOG.md +++ b/packages/design-system/CHANGELOG.md @@ -1,5 +1,11 @@ # @talend/design-system +## 10.4.4 + +### Patch Changes + +- 6ff9f03: DGT-528: Fix QualityBar rounding issue when the invalid or empty percentages were rounded to 0. Set a miminum value for the rounding to prevent UI inconsistencies + ## 10.4.3 ### Patch Changes diff --git a/packages/design-system/package.json b/packages/design-system/package.json index 6f8e762d8db..f59e6addaed 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -1,6 +1,6 @@ { "name": "@talend/design-system", - "version": "10.4.3", + "version": "10.4.4", "description": "Talend Design System", "main": "lib/index.js", "types": "lib/index.d.ts", From 5b7240ed9301f9a677a88bb5a87d18be2b1b2584 Mon Sep 17 00:00:00 2001 From: Gbacc Date: Wed, 29 May 2024 15:02:13 +0200 Subject: [PATCH 11/56] fix(TMC-28581): UI Form display fix with hint and required asterisk (#5319) * fix(TMC-28581): UI Form display fix with hint and required asterisk * change required * to css --------- Co-authored-by: Geoffroy Baccarini --- .changeset/weak-boats-destroy.md | 5 +++++ .changeset/wet-sloths-talk.md | 5 +++++ .../src/components/Form/Primitives/Field/Field.tsx | 4 ++-- .../fields/FieldTemplate/FieldTemplate.component.js | 2 +- .../forms/src/UIForm/fields/File/File.component.js | 2 +- .../src/UIForm/fields/Select/Select.component.js | 2 +- .../forms/src/UIForm/fields/Text/Text.component.js | 2 +- .../src/UIForm/fields/TextArea/TextArea.component.js | 2 +- packages/forms/src/UIForm/utils/labels.js | 11 ++++++++--- packages/forms/src/UIForm/utils/labels.module.scss | 4 ++++ packages/forms/stories/json/fields/core-text.json | 9 ++++++--- 11 files changed, 35 insertions(+), 13 deletions(-) create mode 100644 .changeset/weak-boats-destroy.md create mode 100644 .changeset/wet-sloths-talk.md create mode 100644 packages/forms/src/UIForm/utils/labels.module.scss diff --git a/.changeset/weak-boats-destroy.md b/.changeset/weak-boats-destroy.md new file mode 100644 index 00000000000..26e9b4c8bff --- /dev/null +++ b/.changeset/weak-boats-destroy.md @@ -0,0 +1,5 @@ +--- +"@talend/design-system": patch +--- + +Form field label property "required" can now be overriden by passing props diff --git a/.changeset/wet-sloths-talk.md b/.changeset/wet-sloths-talk.md new file mode 100644 index 00000000000..fdaba236cb5 --- /dev/null +++ b/.changeset/wet-sloths-talk.md @@ -0,0 +1,5 @@ +--- +"@talend/react-forms": patch +--- + +UI Form fields with both hint and required asterisk are now displayed correctly diff --git a/packages/design-system/src/components/Form/Primitives/Field/Field.tsx b/packages/design-system/src/components/Form/Primitives/Field/Field.tsx index 9390862f085..0155e9a6bf6 100644 --- a/packages/design-system/src/components/Form/Primitives/Field/Field.tsx +++ b/packages/design-system/src/components/Form/Primitives/Field/Field.tsx @@ -47,10 +47,10 @@ const Field = forwardRef( const LabelComponent = hideLabel ? ( - + ) : ( - + ); const Description = () => { diff --git a/packages/forms/src/UIForm/fields/FieldTemplate/FieldTemplate.component.js b/packages/forms/src/UIForm/fields/FieldTemplate/FieldTemplate.component.js index c626dbf3790..8c294495514 100644 --- a/packages/forms/src/UIForm/fields/FieldTemplate/FieldTemplate.component.js +++ b/packages/forms/src/UIForm/fields/FieldTemplate/FieldTemplate.component.js @@ -10,7 +10,7 @@ function FieldTemplate(props) { const title = ( ); diff --git a/packages/forms/src/UIForm/fields/File/File.component.js b/packages/forms/src/UIForm/fields/File/File.component.js index eeb40e8c692..45d45058f51 100644 --- a/packages/forms/src/UIForm/fields/File/File.component.js +++ b/packages/forms/src/UIForm/fields/File/File.component.js @@ -139,7 +139,7 @@ const FileWidget = props => { ) : ( { +import styles from './labels.module.scss'; + +export const getLabelProps = (title, labelProps, hint, required) => { if (!hint) { return { children: title, @@ -9,8 +13,8 @@ export const getLabelProps = (title, labelProps, hint) => { } return { children: ( - - {title} + + {title} { ), ...labelProps, + required: false, }; }; diff --git a/packages/forms/src/UIForm/utils/labels.module.scss b/packages/forms/src/UIForm/utils/labels.module.scss new file mode 100644 index 00000000000..fd4ac185798 --- /dev/null +++ b/packages/forms/src/UIForm/utils/labels.module.scss @@ -0,0 +1,4 @@ +.required:after { + content: '*'; + display: inline; +} diff --git a/packages/forms/stories/json/fields/core-text.json b/packages/forms/stories/json/fields/core-text.json index 800c92cd416..b715a17d3dd 100644 --- a/packages/forms/stories/json/fields/core-text.json +++ b/packages/forms/stories/json/fields/core-text.json @@ -23,7 +23,8 @@ "password": { "type": "string" } - } + }, + "required": ["text", "numberMinMax"] }, "uiSchema": [ { @@ -32,11 +33,13 @@ "data-test": "simple.text", "labelProps": { "data-test": "simple.text.label" - } + }, + "hint": { "overlayComponent": "This is a simple text input" } }, { "key": "number", - "title": "Number" + "title": "Number", + "hint": { "overlayComponent": "This is a simple text input" } }, { "key": "numberMinMax", From 31ce4e7730fc1d33faa2a6398d051538918b4604 Mon Sep 17 00:00:00 2001 From: Talend bot Date: Thu, 30 May 2024 15:55:38 +0200 Subject: [PATCH 12/56] chore: prepare release (#5320) Co-authored-by: github-actions[bot] --- .changeset/weak-boats-destroy.md | 5 ----- .changeset/wet-sloths-talk.md | 5 ----- packages/design-system/CHANGELOG.md | 6 ++++++ packages/design-system/package.json | 2 +- packages/forms/CHANGELOG.md | 8 ++++++++ packages/forms/package.json | 4 ++-- 6 files changed, 17 insertions(+), 13 deletions(-) delete mode 100644 .changeset/weak-boats-destroy.md delete mode 100644 .changeset/wet-sloths-talk.md diff --git a/.changeset/weak-boats-destroy.md b/.changeset/weak-boats-destroy.md deleted file mode 100644 index 26e9b4c8bff..00000000000 --- a/.changeset/weak-boats-destroy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@talend/design-system": patch ---- - -Form field label property "required" can now be overriden by passing props diff --git a/.changeset/wet-sloths-talk.md b/.changeset/wet-sloths-talk.md deleted file mode 100644 index fdaba236cb5..00000000000 --- a/.changeset/wet-sloths-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@talend/react-forms": patch ---- - -UI Form fields with both hint and required asterisk are now displayed correctly diff --git a/packages/design-system/CHANGELOG.md b/packages/design-system/CHANGELOG.md index e2c06199538..6c58f8ed014 100644 --- a/packages/design-system/CHANGELOG.md +++ b/packages/design-system/CHANGELOG.md @@ -1,5 +1,11 @@ # @talend/design-system +## 10.4.5 + +### Patch Changes + +- 5b7240e: Form field label property "required" can now be overriden by passing props + ## 10.4.4 ### Patch Changes diff --git a/packages/design-system/package.json b/packages/design-system/package.json index f59e6addaed..351c6ffd6f2 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -1,6 +1,6 @@ { "name": "@talend/design-system", - "version": "10.4.4", + "version": "10.4.5", "description": "Talend Design System", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/forms/CHANGELOG.md b/packages/forms/CHANGELOG.md index 5cf4518d665..0c106951d1e 100644 --- a/packages/forms/CHANGELOG.md +++ b/packages/forms/CHANGELOG.md @@ -1,5 +1,13 @@ # @talend/react-forms +## 14.0.8 + +### Patch Changes + +- 5b7240e: UI Form fields with both hint and required asterisk are now displayed correctly +- Updated dependencies [5b7240e] + - @talend/design-system@10.4.5 + ## 14.0.7 ### Patch Changes diff --git a/packages/forms/package.json b/packages/forms/package.json index 35f0e2218e8..61c5dc47e6f 100644 --- a/packages/forms/package.json +++ b/packages/forms/package.json @@ -39,7 +39,7 @@ "@talend/icons": "^7.7.2", "@talend/json-schema-form-core": "^1.2.6", "@talend/react-components": "^16.1.2", - "@talend/design-system": "^10.4.3", + "@talend/design-system": "^10.4.5", "@talend/design-tokens": "^3.2.1", "@talend/utils": "^3.0.4", "ace-builds": "1.10.1", @@ -92,5 +92,5 @@ "publishConfig": { "access": "public" }, - "version": "14.0.7" + "version": "14.0.8" } From 50801bd36a6f97dd3377f8878be07e89a6cf2dbe Mon Sep 17 00:00:00 2001 From: hbhong Date: Fri, 31 May 2024 16:45:16 +0800 Subject: [PATCH 13/56] fix(TDC-7496/tour): Reset currentStep to 0 when tour is reopened (#5322) --- .changeset/tasty-bikes-fix.md | 5 +++++ .../components/src/AppGuidedTour/AppGuidedTour.component.js | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 .changeset/tasty-bikes-fix.md diff --git a/.changeset/tasty-bikes-fix.md b/.changeset/tasty-bikes-fix.md new file mode 100644 index 00000000000..b9011417612 --- /dev/null +++ b/.changeset/tasty-bikes-fix.md @@ -0,0 +1,5 @@ +--- +"@talend/react-components": patch +--- + +Reset currentStep to 0 when tour is reopened diff --git a/packages/components/src/AppGuidedTour/AppGuidedTour.component.js b/packages/components/src/AppGuidedTour/AppGuidedTour.component.js index 80e90d61098..7c56e1601c5 100644 --- a/packages/components/src/AppGuidedTour/AppGuidedTour.component.js +++ b/packages/components/src/AppGuidedTour/AppGuidedTour.component.js @@ -30,6 +30,12 @@ function AppGuidedTour({ const [isAlreadyViewed, setIsAlreadyViewed] = useLocalStorage(localStorageKey, false); const [importDemoContent, setImportDemoContent] = useState(demoContentSteps && !isAlreadyViewed); const [currentStep, setCurrentStep] = useState(0); + // Reset currentStep to 0 when tour is opened + useEffect(() => { + if (isOpen) { + setCurrentStep(0); + } + }, [isOpen]); const isNavigationDisabled = importDemoContent && From 38588b3f395b640d7d9bbcabd16219d6f5aea174 Mon Sep 17 00:00:00 2001 From: Talend bot Date: Fri, 31 May 2024 11:36:13 +0200 Subject: [PATCH 14/56] chore: prepare release (#5323) Co-authored-by: github-actions[bot] --- .changeset/tasty-bikes-fix.md | 5 ----- packages/components/CHANGELOG.md | 6 ++++++ packages/components/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/tasty-bikes-fix.md diff --git a/.changeset/tasty-bikes-fix.md b/.changeset/tasty-bikes-fix.md deleted file mode 100644 index b9011417612..00000000000 --- a/.changeset/tasty-bikes-fix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@talend/react-components": patch ---- - -Reset currentStep to 0 when tour is reopened diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 4e6ec4dccaf..92f5f052725 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -1,5 +1,11 @@ # @talend/react-components +## 16.1.4 + +### Patch Changes + +- 50801bd: Reset currentStep to 0 when tour is reopened + ## 16.1.3 ### Patch Changes diff --git a/packages/components/package.json b/packages/components/package.json index f7cb7217eae..c39d66a169c 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -120,5 +120,5 @@ "publishConfig": { "access": "public" }, - "version": "16.1.3" + "version": "16.1.4" } From 95bb74fad867a033f32ce30233a3c63102993728 Mon Sep 17 00:00:00 2001 From: Gbacc Date: Tue, 4 Jun 2024 09:30:06 +0200 Subject: [PATCH 15/56] chore(TMC-28658): Add a data attribute to detect DS drawer when open (#5324) Co-authored-by: Geoffroy Baccarini --- .changeset/quiet-tigers-mate.md | 5 +++++ .../components/Drawer/__snapshots__/Drawer.test.tsx.snap | 1 + .../Drawer/variants/FloatingDrawer/FloatingDrawer.tsx | 6 ++++-- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changeset/quiet-tigers-mate.md diff --git a/.changeset/quiet-tigers-mate.md b/.changeset/quiet-tigers-mate.md new file mode 100644 index 00000000000..bee6d66c606 --- /dev/null +++ b/.changeset/quiet-tigers-mate.md @@ -0,0 +1,5 @@ +--- +"@talend/design-system": patch +--- + +Design system drawer now has a data attribute to identify when it is opened diff --git a/packages/design-system/src/components/Drawer/__snapshots__/Drawer.test.tsx.snap b/packages/design-system/src/components/Drawer/__snapshots__/Drawer.test.tsx.snap index 5a47831a2d7..0b34e03fcd2 100644 --- a/packages/design-system/src/components/Drawer/__snapshots__/Drawer.test.tsx.snap +++ b/packages/design-system/src/components/Drawer/__snapshots__/Drawer.test.tsx.snap @@ -11,6 +11,7 @@ exports[`FloatingDrawer should render a11y html 1`] = `