mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
chore: upgrade superset-ui packages and update tsc (#18)
This commit is contained in:
parent
c9b285aa2a
commit
080ddd21eb
@ -47,14 +47,15 @@
|
|||||||
"@airbnb/config-typescript": "^2.1.2",
|
"@airbnb/config-typescript": "^2.1.2",
|
||||||
"@airbnb/nimbus": "^2.1.3",
|
"@airbnb/nimbus": "^2.1.3",
|
||||||
"@superset-ui/commit-config": "^0.0.9",
|
"@superset-ui/commit-config": "^0.0.9",
|
||||||
"@superset-ui/superset-ui": "^0.14.9",
|
"@superset-ui/chart-controls": "^0.15.0",
|
||||||
"@types/enzyme": "^3.10.3",
|
"@superset-ui/core": "^0.15.0",
|
||||||
|
"@types/enzyme": "^3.10.5",
|
||||||
"@types/jest": "^25.1.1",
|
"@types/jest": "^25.1.1",
|
||||||
"@types/jsdom": "^12.2.4",
|
"@types/jsdom": "^12.2.4",
|
||||||
"@types/react": "^16.9.0",
|
"@types/react": "^16.9.49",
|
||||||
"@types/react-test-renderer": "^16.9.0",
|
"@types/react-test-renderer": "^16.9.0",
|
||||||
"csstype": "^2.6.3",
|
"csstype": "^2.6.3",
|
||||||
"enzyme": "^3.10.0",
|
"enzyme": "^3.11.0",
|
||||||
"enzyme-adapter-react-16": "^1.15.1",
|
"enzyme-adapter-react-16": "^1.15.1",
|
||||||
"enzyme-to-json": "^3.4.3",
|
"enzyme-to-json": "^3.4.3",
|
||||||
"fast-glob": "^3.0.1",
|
"fast-glob": "^3.0.1",
|
||||||
@ -131,7 +132,9 @@
|
|||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"emitDeclarationOnly": true
|
"emitDeclarationOnly": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"typeRoots": ["./node_modules/@types"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@math.gl/web-mercator": "^3.1.3",
|
"@math.gl/web-mercator": "^3.2.2",
|
||||||
"@types/d3-array": "^2.0.0",
|
"@types/d3-array": "^2.0.0",
|
||||||
"bootstrap-slider": "^10.0.0",
|
"bootstrap-slider": "^10.0.0",
|
||||||
"d3-array": "^1.2.4",
|
"d3-array": "^1.2.4",
|
||||||
@ -46,17 +46,8 @@
|
|||||||
"xss": "^1.0.6"
|
"xss": "^1.0.6"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@superset-ui/chart": "^0.14.9",
|
"@superset-ui/chart-controls": "^0.15.0",
|
||||||
"@superset-ui/chart-controls": "^0.14.9",
|
"@superset-ui/core": "^0.15.0",
|
||||||
"@superset-ui/color": "^0.14.9",
|
|
||||||
"@superset-ui/connection": "^0.14.9",
|
|
||||||
"@superset-ui/core": "^0.14.9",
|
|
||||||
"@superset-ui/dimension": "^0.14.9",
|
|
||||||
"@superset-ui/number-format": "^0.14.9",
|
|
||||||
"@superset-ui/style": "^0.14.9",
|
|
||||||
"@superset-ui/time-format": "^0.14.9",
|
|
||||||
"@superset-ui/translation": "^0.14.9",
|
|
||||||
"@superset-ui/validator": "^0.14.9",
|
|
||||||
"react": "^15 || ^16"
|
"react": "^15 || ^16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { CategoricalColorNamespace } from '@superset-ui/color';
|
import { CategoricalColorNamespace } from '@superset-ui/core';
|
||||||
import AnimatableDeckGLContainer from './AnimatableDeckGLContainer';
|
import AnimatableDeckGLContainer from './AnimatableDeckGLContainer';
|
||||||
import Legend from './components/Legend';
|
import Legend from './components/Legend';
|
||||||
import { hexToRGB } from './utils/colors';
|
import { hexToRGB } from './utils/colors';
|
||||||
|
@ -24,7 +24,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { StaticMap } from 'react-map-gl';
|
import { StaticMap } from 'react-map-gl';
|
||||||
import DeckGL from 'deck.gl';
|
import DeckGL from 'deck.gl';
|
||||||
import styled from '@superset-ui/style';
|
import { styled } from '@superset-ui/core';
|
||||||
// eslint-disable-next-line import/extensions
|
// eslint-disable-next-line import/extensions
|
||||||
import Tooltip from './components/Tooltip';
|
import Tooltip from './components/Tooltip';
|
||||||
import 'mapbox-gl/dist/mapbox-gl.css';
|
import 'mapbox-gl/dist/mapbox-gl.css';
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
/* eslint-disable react/jsx-sort-default-props */
|
|
||||||
/* eslint-disable react/sort-prop-types */
|
|
||||||
/* eslint-disable react/jsx-handler-names */
|
/* eslint-disable react/jsx-handler-names */
|
||||||
/* eslint-disable react/no-access-state-in-setstate */
|
/* eslint-disable react/no-access-state-in-setstate */
|
||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
@ -24,7 +22,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { SupersetClient } from '@superset-ui/connection';
|
import { SupersetClient } from '@superset-ui/core';
|
||||||
|
|
||||||
import DeckGLContainer from '../DeckGLContainer';
|
import DeckGLContainer from '../DeckGLContainer';
|
||||||
import { getExploreLongUrl } from '../utils/explore';
|
import { getExploreLongUrl } from '../utils/explore';
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
import transformProps from '../transformProps';
|
import transformProps from '../transformProps';
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { formatNumber } from '@superset-ui/number-format';
|
import { formatNumber } from '@superset-ui/core';
|
||||||
|
|
||||||
import './Legend.css';
|
import './Legend.css';
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import Mousetrap from 'mousetrap';
|
import Mousetrap from 'mousetrap';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/core';
|
||||||
import BootrapSliderWrapper from './BootstrapSliderWrapper';
|
import BootrapSliderWrapper from './BootstrapSliderWrapper';
|
||||||
import './PlaySlider.css';
|
import './PlaySlider.css';
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
import { ArcLayer } from 'deck.gl';
|
import { ArcLayer } from 'deck.gl';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/core';
|
||||||
import { commonLayerProps } from '../common';
|
import { commonLayerProps } from '../common';
|
||||||
import { createCategoricalDeckGLComponent } from '../../factory';
|
import { createCategoricalDeckGLComponent } from '../../factory';
|
||||||
import TooltipRow from '../../TooltipRow';
|
import TooltipRow from '../../TooltipRow';
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core';
|
||||||
import { validateNonEmpty, legacyValidateInteger } from '@superset-ui/validator';
|
|
||||||
import timeGrainSqlaAnimationOverrides, {
|
import timeGrainSqlaAnimationOverrides, {
|
||||||
columnChoices,
|
columnChoices,
|
||||||
PRIMARY_COLOR,
|
PRIMARY_COLOR,
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
import transformProps from '../../transformProps';
|
import transformProps from '../../transformProps';
|
||||||
import controlPanel from './controlPanel';
|
import controlPanel from './controlPanel';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable react/sort-prop-types */
|
|
||||||
/* eslint-disable react/no-array-index-key */
|
/* eslint-disable react/no-array-index-key */
|
||||||
/**
|
/**
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core';
|
||||||
import { validateNonEmpty, legacyValidateInteger } from '@superset-ui/validator';
|
|
||||||
import { formatSelectOptions } from '../../utilities/utils';
|
import { formatSelectOptions } from '../../utilities/utils';
|
||||||
import { columnChoices } from '../../utilities/controls';
|
import { columnChoices } from '../../utilities/controls';
|
||||||
import {
|
import {
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
import transformProps from '../../transformProps';
|
import transformProps from '../../transformProps';
|
||||||
import controlPanel from './controlPanel';
|
import controlPanel from './controlPanel';
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
import { GridLayer } from 'deck.gl';
|
import { GridLayer } from 'deck.gl';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/core';
|
||||||
|
|
||||||
import { commonLayerProps, getAggFunc } from '../common';
|
import { commonLayerProps, getAggFunc } from '../common';
|
||||||
import sandboxedEval from '../../utils/sandbox';
|
import sandboxedEval from '../../utils/sandbox';
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, validateNonEmpty } from '@superset-ui/core';
|
||||||
import { validateNonEmpty } from '@superset-ui/validator';
|
|
||||||
import {
|
import {
|
||||||
filterNulls,
|
filterNulls,
|
||||||
autozoom,
|
autozoom,
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
import transformProps from '../../transformProps';
|
import transformProps from '../../transformProps';
|
||||||
import controlPanel from './controlPanel';
|
import controlPanel from './controlPanel';
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
import { HexagonLayer } from 'deck.gl';
|
import { HexagonLayer } from 'deck.gl';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/core';
|
||||||
|
|
||||||
import { commonLayerProps, getAggFunc } from '../common';
|
import { commonLayerProps, getAggFunc } from '../common';
|
||||||
import sandboxedEval from '../../utils/sandbox';
|
import sandboxedEval from '../../utils/sandbox';
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core';
|
||||||
import { validateNonEmpty, legacyValidateInteger } from '@superset-ui/validator';
|
|
||||||
import { formatSelectOptions } from '../../utilities/utils';
|
import { formatSelectOptions } from '../../utilities/utils';
|
||||||
import { columnChoices } from '../../utilities/controls';
|
import { columnChoices } from '../../utilities/controls';
|
||||||
import {
|
import {
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
import transformProps from '../../transformProps';
|
import transformProps from '../../transformProps';
|
||||||
import controlPanel from './controlPanel';
|
import controlPanel from './controlPanel';
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/core';
|
||||||
import {
|
import {
|
||||||
filterNulls,
|
filterNulls,
|
||||||
autozoom,
|
autozoom,
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
import transformProps from '../../transformProps';
|
import transformProps from '../../transformProps';
|
||||||
import controlPanel from './controlPanel';
|
import controlPanel from './controlPanel';
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/core';
|
||||||
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
||||||
import { formatSelectOptions } from '../../utilities/utils';
|
import { formatSelectOptions } from '../../utilities/utils';
|
||||||
import {
|
import {
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
import transformProps from '../../transformProps';
|
import transformProps from '../../transformProps';
|
||||||
import controlPanel from './controlPanel';
|
import controlPanel from './controlPanel';
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
import { ScatterplotLayer } from 'deck.gl';
|
import { ScatterplotLayer } from 'deck.gl';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/core';
|
||||||
import { commonLayerProps } from '../common';
|
import { commonLayerProps } from '../common';
|
||||||
import { createCategoricalDeckGLComponent } from '../../factory';
|
import { createCategoricalDeckGLComponent } from '../../factory';
|
||||||
import TooltipRow from '../../TooltipRow';
|
import TooltipRow from '../../TooltipRow';
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, validateNonEmpty } from '@superset-ui/core';
|
||||||
import { validateNonEmpty } from '@superset-ui/validator';
|
|
||||||
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
||||||
import {
|
import {
|
||||||
filterNulls,
|
filterNulls,
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
import transformProps from '../../transformProps';
|
import transformProps from '../../transformProps';
|
||||||
import controlPanel from './controlPanel';
|
import controlPanel from './controlPanel';
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { ScreenGridLayer } from 'deck.gl';
|
import { ScreenGridLayer } from 'deck.gl';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/core';
|
||||||
import AnimatableDeckGLContainer from '../../AnimatableDeckGLContainer';
|
import AnimatableDeckGLContainer from '../../AnimatableDeckGLContainer';
|
||||||
import { getPlaySliderParams } from '../../utils/time';
|
import { getPlaySliderParams } from '../../utils/time';
|
||||||
import sandboxedEval from '../../utils/sandbox';
|
import sandboxedEval from '../../utils/sandbox';
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, validateNonEmpty } from '@superset-ui/core';
|
||||||
import { validateNonEmpty } from '@superset-ui/validator';
|
|
||||||
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
||||||
import {
|
import {
|
||||||
filterNulls,
|
filterNulls,
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
import transformProps from '../../transformProps';
|
import transformProps from '../../transformProps';
|
||||||
import controlPanel from './controlPanel';
|
import controlPanel from './controlPanel';
|
||||||
|
@ -20,8 +20,7 @@
|
|||||||
// These are control configurations that are shared ONLY within the DeckGL viz plugin repo.
|
// These are control configurations that are shared ONLY within the DeckGL viz plugin repo.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, validateNonEmpty } from '@superset-ui/core';
|
||||||
import { validateNonEmpty } from '@superset-ui/validator';
|
|
||||||
import { ColumnOption } from '@superset-ui/chart-controls';
|
import { ColumnOption } from '@superset-ui/chart-controls';
|
||||||
import { D3_FORMAT_OPTIONS, columnChoices, PRIMARY_COLOR } from './controls';
|
import { D3_FORMAT_OPTIONS, columnChoices, PRIMARY_COLOR } from './controls';
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
import { extent } from 'd3-array';
|
import { extent } from 'd3-array';
|
||||||
import { scaleThreshold } from 'd3-scale';
|
import { scaleThreshold } from 'd3-scale';
|
||||||
import { getSequentialSchemeRegistry, SequentialScheme } from '@superset-ui/color';
|
import { getSequentialSchemeRegistry, SequentialScheme } from '@superset-ui/core';
|
||||||
import { hexToRGB } from './utils/colors';
|
import { hexToRGB } from './utils/colors';
|
||||||
|
|
||||||
const DEFAULT_NUM_BUCKETS = 10;
|
const DEFAULT_NUM_BUCKETS = 10;
|
||||||
|
@ -37,14 +37,8 @@
|
|||||||
"viewport-mercator-project": "^6.1.1"
|
"viewport-mercator-project": "^6.1.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@superset-ui/chart": "^0.12.0 || ^0.13.3",
|
"@superset-ui/chart-controls": "^0.15.0",
|
||||||
"@superset-ui/color": "^0.12.0 || ^0.13.3",
|
"@superset-ui/core": "^0.15.0",
|
||||||
"@superset-ui/connection": "^0.12.0 || ^0.13.3",
|
|
||||||
"@superset-ui/core": "^0.12.0 || ^0.13.3",
|
|
||||||
"@superset-ui/dimension": "^0.12.0 || ^0.13.3",
|
|
||||||
"@superset-ui/number-format": "^0.12.0 || ^0.13.3",
|
|
||||||
"@superset-ui/time-format": "^0.12.0 || ^0.13.3",
|
|
||||||
"@superset-ui/translation": "^0.12.0 || ^0.13.3",
|
|
||||||
"react": "^15 || ^16"
|
"react": "^15 || ^16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import { t } from '@superset-ui/translation';
|
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
|
||||||
import { ChartMetadata, ChartPlugin } from '@superset-ui/chart';
|
|
||||||
import transformProps from './transformProps';
|
import transformProps from './transformProps';
|
||||||
import thumbnail from './images/thumbnail.png';
|
import thumbnail from './images/thumbnail.png';
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
"@storybook/addon-links": "^5.0.9",
|
"@storybook/addon-links": "^5.0.9",
|
||||||
"@storybook/addons": "^5.0.9",
|
"@storybook/addons": "^5.0.9",
|
||||||
"@storybook/react": "^5.0.9",
|
"@storybook/react": "^5.0.9",
|
||||||
"@types/react": "^16.8.8",
|
"@types/react": "^16.9.49",
|
||||||
"@types/storybook__react": "3.0.7",
|
"@types/storybook__react": "3.0.7",
|
||||||
"bootstrap": "^4.3.1",
|
"bootstrap": "^4.3.1",
|
||||||
"react": "^16.6.0",
|
"react": "^16.6.0",
|
||||||
@ -51,11 +51,7 @@
|
|||||||
"terser-webpack-plugin": "^2.1.0"
|
"terser-webpack-plugin": "^2.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@superset-ui/chart": "^0.12.0 || ^0.13.3",
|
"@superset-ui/chart-controls": "^0.15.0",
|
||||||
"@superset-ui/chart-composition": "^0.12.0 || ^0.13.3",
|
"@superset-ui/core": "^0.15.0"
|
||||||
"@superset-ui/color": "^0.12.0 || ^0.13.3",
|
|
||||||
"@superset-ui/connection": "^0.12.0 || ^0.13.3",
|
|
||||||
"@superset-ui/time-format": "^0.12.0 || ^0.13.3",
|
|
||||||
"@superset-ui/translation": "^0.12.0 || ^0.13.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,16 @@ import '@babel/polyfill';
|
|||||||
import { setAddon, storiesOf } from '@storybook/react';
|
import { setAddon, storiesOf } from '@storybook/react';
|
||||||
import { withKnobs } from '@storybook/addon-knobs';
|
import { withKnobs } from '@storybook/addon-knobs';
|
||||||
import JSXAddon from 'storybook-addon-jsx';
|
import JSXAddon from 'storybook-addon-jsx';
|
||||||
import categoricalD3 from '@superset-ui/color/esm/colorSchemes/categorical/d3';
|
import categoricalD3 from '@superset-ui/core/lib/color/colorSchemes/categorical/d3';
|
||||||
import sequentialCommon from '@superset-ui/color/esm/colorSchemes/sequential/common';
|
import sequentialCommon from '@superset-ui/core/lib/color/colorSchemes/sequential/common';
|
||||||
import sequentialD3 from '@superset-ui/color/esm/colorSchemes/sequential/d3';
|
import sequentialD3 from '@superset-ui/core/lib/color/colorSchemes/sequential/d3';
|
||||||
import { configure } from '@superset-ui/translation';
|
import { configure } from '@superset-ui/core';
|
||||||
import { getCategoricalSchemeRegistry, getSequentialSchemeRegistry } from '@superset-ui/color';
|
import {
|
||||||
import { getTimeFormatterRegistry, smartDateFormatter } from '@superset-ui/time-format';
|
getTimeFormatterRegistry,
|
||||||
|
smartDateFormatter,
|
||||||
|
getCategoricalSchemeRegistry,
|
||||||
|
getSequentialSchemeRegistry,
|
||||||
|
} from '@superset-ui/core';
|
||||||
|
|
||||||
setAddon(JSXAddon);
|
setAddon(JSXAddon);
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable sort-keys */
|
/* eslint-disable sort-keys */
|
||||||
/* eslint-disable no-magic-numbers */
|
/* eslint-disable no-magic-numbers */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { SuperChart } from '@superset-ui/chart';
|
import { SuperChart } from '@superset-ui/core';
|
||||||
import payload from './payload';
|
import payload from './payload';
|
||||||
import dummyDatasource from '../../../shared/dummyDatasource';
|
import dummyDatasource from '../../../shared/dummyDatasource';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable sort-keys */
|
/* eslint-disable sort-keys */
|
||||||
/* eslint-disable no-magic-numbers */
|
/* eslint-disable no-magic-numbers */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { SuperChart } from '@superset-ui/chart';
|
import { SuperChart } from '@superset-ui/core';
|
||||||
import payload from './payload';
|
import payload from './payload';
|
||||||
import dummyDatasource from '../../../shared/dummyDatasource';
|
import dummyDatasource from '../../../shared/dummyDatasource';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable sort-keys */
|
/* eslint-disable sort-keys */
|
||||||
/* eslint-disable no-magic-numbers */
|
/* eslint-disable no-magic-numbers */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { SuperChart } from '@superset-ui/chart';
|
import { SuperChart } from '@superset-ui/core';
|
||||||
import payload from './payload';
|
import payload from './payload';
|
||||||
import dummyDatasource from '../../../shared/dummyDatasource';
|
import dummyDatasource from '../../../shared/dummyDatasource';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable sort-keys */
|
/* eslint-disable sort-keys */
|
||||||
/* eslint-disable no-magic-numbers */
|
/* eslint-disable no-magic-numbers */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { SuperChart } from '@superset-ui/chart';
|
import { SuperChart } from '@superset-ui/core';
|
||||||
import payload from './payload';
|
import payload from './payload';
|
||||||
import dummyDatasource from '../../../shared/dummyDatasource';
|
import dummyDatasource from '../../../shared/dummyDatasource';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable sort-keys */
|
/* eslint-disable sort-keys */
|
||||||
/* eslint-disable no-magic-numbers */
|
/* eslint-disable no-magic-numbers */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { SuperChart } from '@superset-ui/chart';
|
import { SuperChart } from '@superset-ui/core';
|
||||||
import payload from './payload';
|
import payload from './payload';
|
||||||
import geojsonPayload from './geojsonPayload';
|
import geojsonPayload from './geojsonPayload';
|
||||||
import dummyDatasource from '../../../shared/dummyDatasource';
|
import dummyDatasource from '../../../shared/dummyDatasource';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable sort-keys */
|
/* eslint-disable sort-keys */
|
||||||
/* eslint-disable no-magic-numbers */
|
/* eslint-disable no-magic-numbers */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { SuperChart } from '@superset-ui/chart';
|
import { SuperChart } from '@superset-ui/core';
|
||||||
import payload from './payload';
|
import payload from './payload';
|
||||||
import dummyDatasource from '../../../shared/dummyDatasource';
|
import dummyDatasource from '../../../shared/dummyDatasource';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable sort-keys */
|
/* eslint-disable sort-keys */
|
||||||
/* eslint-disable no-magic-numbers */
|
/* eslint-disable no-magic-numbers */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { SuperChart } from '@superset-ui/chart';
|
import { SuperChart } from '@superset-ui/core';
|
||||||
import payload from './payload';
|
import payload from './payload';
|
||||||
import dummyDatasource from '../../../shared/dummyDatasource';
|
import dummyDatasource from '../../../shared/dummyDatasource';
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user