diff --git a/superset-frontend/temporary_superset_ui/superset-ui/README.md b/superset-frontend/temporary_superset_ui/superset-ui/README.md index e8db37556d96f..5a376f2250553 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/README.md +++ b/superset-frontend/temporary_superset_ui/superset-ui/README.md @@ -11,7 +11,7 @@ applications that leverage a Superset backend :chart_with_upwards_trend: | Package | Version | |--|--| -| [@superset-ui/core](https://github.com/apache-superset/superset-ui/tree/master/packages/superset-ui-core) | [![Version](https://img.shields.io/npm/v/@superset-ui/core.svg?style=flat-square)](https://img.shields.io/npm/v/@superset-ui/core.svg?style=flat) | +| [@superset-ui/connection](https://github.com/apache-superset/superset-ui/tree/master/packages/superset-ui-connection) | [![Version](https://img.shields.io/npm/v/@superset-ui/connection.svg?style=flat-square)](https://img.shields.io/npm/v/@superset-ui/connection.svg?style=flat) | | [@superset-ui/translation](https://github.com/apache-superset/superset-ui/tree/master/packages/superset-ui-translation) | [![Version](https://img.shields.io/npm/v/@superset-ui/translation.svg?style=flat-square)](https://img.shields.io/npm/v/@superset-ui/translation.svg?style=flat) | #### Coming :soon: diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/.eslintrc b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/.eslintrc similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/.eslintrc rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/.eslintrc diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/README.md b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/README.md similarity index 85% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/README.md rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/README.md index cd0f5d4990ee0..e8d427405d248 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/README.md +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/README.md @@ -1,8 +1,8 @@ -## `@superset-ui/core` +## @superset-ui/connection -[![Version](https://img.shields.io/npm/v/@superset-ui/core.svg?style=flat)](https://img.shields.io/npm/v/@superset-ui/core.svg?style=flat) +[![Version](https://img.shields.io/npm/v/@superset-ui/connection.svg?style=flat)](https://img.shields.io/npm/v/@superset-ui/connection.svg?style=flat) -Core modules for Superset: +Connection modules for Superset: - `SupersetClient` requests and authentication - (future) `i18n` locales and translation @@ -27,14 +27,14 @@ a high-level it supports: ```javascript // appSetup.js -import { SupersetClient } from `@superset-ui/core`; -// or import SupersetClient from `@superset-ui/core/lib|esm/SupersetClient`; +import { SupersetClient } from `@superset-ui/connection`; +// or import SupersetClient from `@superset-ui/connection/lib|esm/SupersetClient`; SupersetClient.configure(...clientConfig); SupersetClient.init(); // CSRF auth, can also chain `.configure().init(); // anotherFile.js -import { SupersetClient } from `@superset-ui/core`; +import { SupersetClient } from `@superset-ui/connection`; SupersetClient.post(...requestConfig) .then(({ request, json }) => ...) @@ -75,7 +75,7 @@ The following flags can be passed on a per-request call `SupersetClient.get/post Per-request aborting is implemented through the `AbortController` API: ```javascript -import { SupersetClient } from '@superset-ui/core'; +import { SupersetClient } from '@superset-ui/connection'; import AbortController from 'abortcontroller-polyfill'; const controller = new AbortController(); diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/package.json b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/package.json similarity index 87% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/package.json rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/package.json index 01415d2c54a3d..fde3c5a18c011 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/package.json +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/package.json @@ -1,7 +1,7 @@ { - "name": "@superset-ui/core", - "version": "0.2.0", - "description": "Superset UI core 🤖", + "name": "@superset-ui/connection", + "version": "0.0.0", + "description": "Superset UI connection", "sideEffects": false, "main": "lib/index.js", "module": "esm/index.js", diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/SupersetClient.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/SupersetClient.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/SupersetClient.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/SupersetClient.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/callApi.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/callApi.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/callApi.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/callApi.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/callApiAndParseWithTimeout.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/callApiAndParseWithTimeout.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/callApiAndParseWithTimeout.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/callApiAndParseWithTimeout.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/index.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/index.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/index.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/index.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/parseResponse.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/parseResponse.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/parseResponse.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/parseResponse.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/rejectAfterTimeout.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/rejectAfterTimeout.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/callApi/rejectAfterTimeout.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/callApi/rejectAfterTimeout.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/index.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/index.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/index.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/src/index.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/SupersetClient.test.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/SupersetClient.test.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/SupersetClient.test.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/SupersetClient.test.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/callApi/callApi.test.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/callApi/callApi.test.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/callApi/callApi.test.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/callApi/callApi.test.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/callApi/callApiAndParseWithTimeout.test.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/callApi/callApiAndParseWithTimeout.test.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/callApi/callApiAndParseWithTimeout.test.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/callApi/callApiAndParseWithTimeout.test.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/callApi/parseResponse.test.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/callApi/parseResponse.test.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/callApi/parseResponse.test.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/callApi/parseResponse.test.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/callApi/rejectAfterTimeout.test.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/callApi/rejectAfterTimeout.test.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/callApi/rejectAfterTimeout.test.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/callApi/rejectAfterTimeout.test.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/fixtures/constants.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/fixtures/constants.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/fixtures/constants.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/fixtures/constants.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/utils/throwIfCalled.js b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/utils/throwIfCalled.js similarity index 100% rename from superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/test/utils/throwIfCalled.js rename to superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-connection/test/utils/throwIfCalled.js diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-translation/README.md b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-translation/README.md index cefd1e7d59d18..d3b4af6c39f36 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-translation/README.md +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-translation/README.md @@ -1,4 +1,4 @@ -## `@superset-ui/translation` +## @superset-ui/translation [![Version](https://img.shields.io/npm/v/@superset-ui/translation.svg?style=flat)](https://img.shields.io/npm/v/@superset-ui/translation.svg?style=flat)