From 18c7aec985d7175b39737e283c3d59991b9cfa45 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Tue, 23 Nov 2021 12:41:16 +0200 Subject: [PATCH] chore: remove deprecated selects and deps (#17522) --- superset-frontend/package-lock.json | 62 ------------------- superset-frontend/package.json | 1 - .../components/Select/DeprecatedSelect.tsx | 8 --- .../Select/WindowedSelect/index.tsx | 2 - 4 files changed, 73 deletions(-) diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json index 8b3a3684f5d52..39b9850b302b6 100644 --- a/superset-frontend/package-lock.json +++ b/superset-frontend/package-lock.json @@ -109,7 +109,6 @@ "react-router-dom": "^5.1.2", "react-search-input": "^0.11.3", "react-select": "^3.1.0", - "react-select-async-paginate": "^0.4.1", "react-sortable-hoc": "^1.11.0", "react-split": "^2.0.9", "react-sticky": "^6.0.3", @@ -8940,11 +8939,6 @@ "react": "*" } }, - "node_modules/@seznam/compose-react-refs": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@seznam/compose-react-refs/-/compose-react-refs-1.0.4.tgz", - "integrity": "sha512-TwrojUAFVSd+HPAdnul0o65X8mIam+dJOxcWI6LhHAUIpVRk2cJp2dyWXWl6sJvZTY9ODSJpOibt7JKSNUjVfQ==" - }, "node_modules/@sinonjs/commons": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.0.tgz", @@ -47170,15 +47164,6 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.6.3.tgz", "integrity": "sha512-u7FDWtthB4rWibG/+mFbVd5FvdI20yde86qKGx4lVUTWmPlSWQ4QxbBIrrs+HnXGbxOUlUzTAP/VDmvCwaP2yA==" }, - "node_modules/react-is-mounted-hook": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/react-is-mounted-hook/-/react-is-mounted-hook-1.0.3.tgz", - "integrity": "sha512-YCCYcTVYMPfTi6WhWIwM9EYBcpHoivjjkE90O5ScsE9wXSbeXGZvLDMGt4mdSNcWshhc8JD0AzgBmsleCSdSFA==", - "peerDependencies": { - "react": "^16.8.6", - "react-dom": "^16.8.6" - } - }, "node_modules/react-js-cron": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/react-js-cron/-/react-js-cron-1.2.0.tgz", @@ -47578,21 +47563,6 @@ "react-dom": "^16.8.0" } }, - "node_modules/react-select-async-paginate": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/react-select-async-paginate/-/react-select-async-paginate-0.4.1.tgz", - "integrity": "sha512-zWeaN9C9PVQej4bz1+OvU6/ylHE6rHscDYcP+KiWdBedVQ5j2vXBjf/5RWLEvobvtUUHBOTbUF8+m2HDoeIcvQ==", - "dependencies": { - "@babel/runtime": "^7.11.2", - "@seznam/compose-react-refs": "^1.0.4", - "react-is-mounted-hook": "^1.0.3", - "sleep-promise": "^8.0.1" - }, - "peerDependencies": { - "react": "^16.8.0", - "react-select": "^2.0.0 || ^3.0.0" - } - }, "node_modules/react-select/node_modules/@emotion/cache": { "version": "10.0.29", "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-10.0.29.tgz", @@ -49980,11 +49950,6 @@ "node": ">=6" } }, - "node_modules/sleep-promise": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/sleep-promise/-/sleep-promise-8.0.1.tgz", - "integrity": "sha1-jXlaJ+ojlT32tSuRCB5eImZZk8U=" - }, "node_modules/slice-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", @@ -62280,11 +62245,6 @@ "integrity": "sha512-hxBI2UOuVaI3O/BhQfhtb4kcGn9ft12RWAFVMUeNjqqhLsHvFtzIkFaptBJpFDANTKoDfdVoHTKZDlwKCACbMQ==", "requires": {} }, - "@seznam/compose-react-refs": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@seznam/compose-react-refs/-/compose-react-refs-1.0.4.tgz", - "integrity": "sha512-TwrojUAFVSd+HPAdnul0o65X8mIam+dJOxcWI6LhHAUIpVRk2cJp2dyWXWl6sJvZTY9ODSJpOibt7JKSNUjVfQ==" - }, "@sinonjs/commons": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.0.tgz", @@ -92051,12 +92011,6 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.6.3.tgz", "integrity": "sha512-u7FDWtthB4rWibG/+mFbVd5FvdI20yde86qKGx4lVUTWmPlSWQ4QxbBIrrs+HnXGbxOUlUzTAP/VDmvCwaP2yA==" }, - "react-is-mounted-hook": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/react-is-mounted-hook/-/react-is-mounted-hook-1.0.3.tgz", - "integrity": "sha512-YCCYcTVYMPfTi6WhWIwM9EYBcpHoivjjkE90O5ScsE9wXSbeXGZvLDMGt4mdSNcWshhc8JD0AzgBmsleCSdSFA==", - "requires": {} - }, "react-js-cron": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/react-js-cron/-/react-js-cron-1.2.0.tgz", @@ -92413,17 +92367,6 @@ } } }, - "react-select-async-paginate": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/react-select-async-paginate/-/react-select-async-paginate-0.4.1.tgz", - "integrity": "sha512-zWeaN9C9PVQej4bz1+OvU6/ylHE6rHscDYcP+KiWdBedVQ5j2vXBjf/5RWLEvobvtUUHBOTbUF8+m2HDoeIcvQ==", - "requires": { - "@babel/runtime": "^7.11.2", - "@seznam/compose-react-refs": "^1.0.4", - "react-is-mounted-hook": "^1.0.3", - "sleep-promise": "^8.0.1" - } - }, "react-sizeme": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/react-sizeme/-/react-sizeme-3.0.2.tgz", @@ -94291,11 +94234,6 @@ "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", "dev": true }, - "sleep-promise": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/sleep-promise/-/sleep-promise-8.0.1.tgz", - "integrity": "sha1-jXlaJ+ojlT32tSuRCB5eImZZk8U=" - }, "slice-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", diff --git a/superset-frontend/package.json b/superset-frontend/package.json index 39cb9bdaa9020..94091ebcb76a4 100644 --- a/superset-frontend/package.json +++ b/superset-frontend/package.json @@ -175,7 +175,6 @@ "react-router-dom": "^5.1.2", "react-search-input": "^0.11.3", "react-select": "^3.1.0", - "react-select-async-paginate": "^0.4.1", "react-sortable-hoc": "^1.11.0", "react-split": "^2.0.9", "react-sticky": "^6.0.3", diff --git a/superset-frontend/src/components/Select/DeprecatedSelect.tsx b/superset-frontend/src/components/Select/DeprecatedSelect.tsx index 473a5c9797b02..8b0da60385778 100644 --- a/superset-frontend/src/components/Select/DeprecatedSelect.tsx +++ b/superset-frontend/src/components/Select/DeprecatedSelect.tsx @@ -30,7 +30,6 @@ import BasicSelect, { import Async from 'react-select/async'; import Creatable from 'react-select/creatable'; import AsyncCreatable from 'react-select/async-creatable'; -import { withAsyncPaginate } from 'react-select-async-paginate'; import { SelectComponents } from 'react-select/src/components'; import { @@ -45,7 +44,6 @@ import { WindowedSelectComponentType, WindowedSelectProps, WindowedSelect, - WindowedAsyncSelect, WindowedCreatableSelect, WindowedAsyncCreatableSelect, } from './WindowedSelect'; @@ -319,12 +317,6 @@ function styled< } export const Select = styled(WindowedSelect); -export const AsyncSelect = styled(WindowedAsyncSelect); export const CreatableSelect = styled(WindowedCreatableSelect); export const AsyncCreatableSelect = styled(WindowedAsyncCreatableSelect); -export const PaginatedSelect = withAsyncPaginate( - styled>>( - BasicSelect, - ), -); export default Select; diff --git a/superset-frontend/src/components/Select/WindowedSelect/index.tsx b/superset-frontend/src/components/Select/WindowedSelect/index.tsx index 38b5803ebeda9..3770b542df412 100644 --- a/superset-frontend/src/components/Select/WindowedSelect/index.tsx +++ b/superset-frontend/src/components/Select/WindowedSelect/index.tsx @@ -17,7 +17,6 @@ * under the License. */ import Select from 'react-select'; -import Async from 'react-select/async'; import Creatable from 'react-select/creatable'; import AsyncCreatable from 'react-select/async-creatable'; import windowed from './windowed'; @@ -25,7 +24,6 @@ import windowed from './windowed'; export * from './windowed'; export const WindowedSelect = windowed(Select); -export const WindowedAsyncSelect = windowed(Async); export const WindowedCreatableSelect = windowed(Creatable); export const WindowedAsyncCreatableSelect = windowed(AsyncCreatable); export default WindowedSelect;