-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(TDOPS-5641): Update deps in packages in the folder packages + fix…
… some lint (#4983)
- Loading branch information
1 parent
e82cc7f
commit b9cc5b0
Showing
69 changed files
with
328 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/utils': minor | ||
--- | ||
|
||
Add missing deps and fix tsconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/react-containers': minor | ||
--- | ||
|
||
Add missing deps and fix some lint issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/assets-api': minor | ||
--- | ||
|
||
Add missing deps and remove link to @talend/icons (circular deps) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/react-storybook-cmf': minor | ||
--- | ||
|
||
Add missing deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/design-tokens': minor | ||
--- | ||
|
||
Add missing deps and missing jest config file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/react-dataviz': minor | ||
--- | ||
|
||
Add missing deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/design-system': minor | ||
--- | ||
|
||
Fix lint issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/react-flow-designer': minor | ||
--- | ||
|
||
Add missing deps, fix tsconfig file and fix some lint issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/react-a11y': minor | ||
--- | ||
|
||
Add missing deps and fix tsconfig file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/local-libs-webpack-plugin': minor | ||
--- | ||
|
||
Add missing deps and fix lint issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/react-cmf': minor | ||
--- | ||
|
||
Fix lint issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/storybook-docs': minor | ||
--- | ||
|
||
Add missing deps and fix lint issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/react-stepper': minor | ||
--- | ||
|
||
Add missing deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/icons': minor | ||
--- | ||
|
||
Add missing deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/design-docs': minor | ||
--- | ||
|
||
Add missing deps and remove unnecessary one |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/react-forms': minor | ||
--- | ||
|
||
Fix lint issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/ui-storybook-one': minor | ||
--- | ||
|
||
Add missing deps, fix code for PNPM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/json-schema-form-core': minor | ||
--- | ||
|
||
Add missing deps, fix lint issue and fix tsconfig file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/ui-playground': minor | ||
--- | ||
|
||
Add missing deps and fix webpack.config file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@talend/bootstrap-theme': minor | ||
--- | ||
|
||
Add missing deps and fix webpack.config file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import readPackageUp from 'read-pkg-up'; | ||
import assetsApi, { Asset } from '.'; | ||
|
||
const iconsInfo = readPackageUp.sync({ cwd: require.resolve('@talend/icons') }); | ||
const currentInfo = readPackageUp.sync({ cwd: __dirname }); | ||
const bundlePath = '/dist/svg-bundles/all.svg'; | ||
|
||
|
@@ -12,28 +11,27 @@ describe('assets-api', () => { | |
}); | ||
|
||
it('should return unpkg url', () => { | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', iconsInfo?.packageJson.version); | ||
expect(url).toBe( | ||
`https://unpkg.com/@talend/icons@${iconsInfo?.packageJson.version}${bundlePath}`, | ||
); | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', '6.60.1'); | ||
expect(url).toBe(`https://unpkg.com/@talend/[email protected]${bundlePath}`); | ||
}); | ||
|
||
it('should return /cdn url', () => { | ||
const original = window.Talend.CDN_URL; | ||
window.Talend.CDN_URL = '/cdn'; | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', iconsInfo?.packageJson.version); | ||
expect(url).toBe(`/cdn/@talend/icons/${iconsInfo?.packageJson.version}${bundlePath}`); | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', '6.60.1'); | ||
expect(url).toBe(`/cdn/@talend/icons/6.60.1${bundlePath}`); | ||
window.Talend.CDN_URL = original; | ||
}); | ||
|
||
it('should prevent // as start url', () => { | ||
const original = window.Talend.CDN_URL; | ||
window.Talend.CDN_URL = '/cdn'; | ||
const mockedBaseElement = { getAttribute: jest.fn().mockReturnValueOnce('/') }; | ||
// @ts-ignore | ||
const mockedBaseElement = { | ||
getAttribute: jest.fn().mockReturnValueOnce('/'), | ||
} as unknown as Element; | ||
jest.spyOn(document, 'querySelector').mockImplementation(() => mockedBaseElement); | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', iconsInfo?.packageJson.version); | ||
expect(url).toBe(`/cdn/@talend/icons/${iconsInfo?.packageJson.version}${bundlePath}`); | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', '6.60.1'); | ||
expect(url).toBe(`/cdn/@talend/icons/6.60.1${bundlePath}`); | ||
window.Talend.CDN_URL = original; | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/design-system/src/stories/form/ToggleSwitch/ToggleSwitch.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
testEnvironment: 'jest-environment-jsdom', | ||
testRegex: '(/__tests__/.*|src/|scripts/).*\\.test.(js|ts|tsx)$', | ||
}; |
Oops, something went wrong.