fix(viz): bump superset-ui to fix bugs in table and graph chart (#14438)

This commit is contained in:
Jesse Yang
2021-05-03 16:23:42 -07:00
committed by GitHub
parent 2d991ec359
commit a75e4af99b
3 changed files with 354 additions and 349 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -66,35 +66,36 @@
"@data-ui/sparkline": "^0.0.84",
"@emotion/cache": "^11.1.3",
"@emotion/core": "^10.0.35",
"@superset-ui/chart-controls": "^0.17.36",
"@superset-ui/core": "^0.17.32",
"@superset-ui/legacy-plugin-chart-calendar": "^0.17.36",
"@superset-ui/legacy-plugin-chart-chord": "^0.17.36",
"@superset-ui/legacy-plugin-chart-country-map": "^0.17.36",
"@superset-ui/legacy-plugin-chart-event-flow": "^0.17.36",
"@superset-ui/legacy-plugin-chart-force-directed": "^0.17.36",
"@superset-ui/legacy-plugin-chart-heatmap": "^0.17.36",
"@superset-ui/legacy-plugin-chart-histogram": "^0.17.36",
"@superset-ui/legacy-plugin-chart-horizon": "^0.17.36",
"@superset-ui/legacy-plugin-chart-map-box": "^0.17.36",
"@superset-ui/legacy-plugin-chart-paired-t-test": "^0.17.36",
"@superset-ui/legacy-plugin-chart-parallel-coordinates": "^0.17.36",
"@superset-ui/legacy-plugin-chart-partition": "^0.17.36",
"@superset-ui/legacy-plugin-chart-pivot-table": "^0.17.36",
"@superset-ui/legacy-plugin-chart-rose": "^0.17.36",
"@superset-ui/legacy-plugin-chart-sankey": "^0.17.36",
"@superset-ui/legacy-plugin-chart-sankey-loop": "^0.17.36",
"@superset-ui/legacy-plugin-chart-sunburst": "^0.17.36",
"@superset-ui/legacy-plugin-chart-treemap": "^0.17.36",
"@superset-ui/legacy-plugin-chart-world-map": "^0.17.36",
"@superset-ui/legacy-preset-chart-big-number": "^0.17.36",
"@emotion/react": "^11.1.5",
"@superset-ui/chart-controls": "^0.17.41",
"@superset-ui/core": "^0.17.40",
"@superset-ui/legacy-plugin-chart-calendar": "^0.17.41",
"@superset-ui/legacy-plugin-chart-chord": "^0.17.41",
"@superset-ui/legacy-plugin-chart-country-map": "^0.17.41",
"@superset-ui/legacy-plugin-chart-event-flow": "^0.17.41",
"@superset-ui/legacy-plugin-chart-force-directed": "^0.17.41",
"@superset-ui/legacy-plugin-chart-heatmap": "^0.17.41",
"@superset-ui/legacy-plugin-chart-histogram": "^0.17.41",
"@superset-ui/legacy-plugin-chart-horizon": "^0.17.41",
"@superset-ui/legacy-plugin-chart-map-box": "^0.17.41",
"@superset-ui/legacy-plugin-chart-paired-t-test": "^0.17.41",
"@superset-ui/legacy-plugin-chart-parallel-coordinates": "^0.17.41",
"@superset-ui/legacy-plugin-chart-partition": "^0.17.41",
"@superset-ui/legacy-plugin-chart-pivot-table": "^0.17.41",
"@superset-ui/legacy-plugin-chart-rose": "^0.17.41",
"@superset-ui/legacy-plugin-chart-sankey": "^0.17.41",
"@superset-ui/legacy-plugin-chart-sankey-loop": "^0.17.41",
"@superset-ui/legacy-plugin-chart-sunburst": "^0.17.41",
"@superset-ui/legacy-plugin-chart-treemap": "^0.17.41",
"@superset-ui/legacy-plugin-chart-world-map": "^0.17.41",
"@superset-ui/legacy-preset-chart-big-number": "^0.17.41",
"@superset-ui/legacy-preset-chart-deckgl": "^0.4.6",
"@superset-ui/legacy-preset-chart-nvd3": "^0.17.36",
"@superset-ui/plugin-chart-echarts": "^0.17.38",
"@superset-ui/plugin-chart-pivot-table": "^0.17.36",
"@superset-ui/plugin-chart-table": "^0.17.37",
"@superset-ui/plugin-chart-word-cloud": "^0.17.36",
"@superset-ui/preset-chart-xy": "^0.17.36",
"@superset-ui/legacy-preset-chart-nvd3": "^0.17.41",
"@superset-ui/plugin-chart-echarts": "^0.17.41",
"@superset-ui/plugin-chart-pivot-table": "^0.17.41",
"@superset-ui/plugin-chart-table": "^0.17.41",
"@superset-ui/plugin-chart-word-cloud": "^0.17.41",
"@superset-ui/preset-chart-xy": "^0.17.41",
"@vx/responsive": "^0.0.195",
"abortcontroller-polyfill": "^1.1.9",
"antd": "^4.9.4",

View File

@@ -295,7 +295,6 @@ const config = {
// Both `@emotion/core` and `@superset-ui/core` remember some globals within
// module after imported, which will not be available everywhere if two
// different copies of the same module are imported in different places.
'@emotion/core': path.resolve(APP_DIR, './node_modules/@emotion/core'),
'@superset-ui/core': path.resolve(
APP_DIR,
'./node_modules/@superset-ui/core',
@@ -484,6 +483,15 @@ if (isDevMode) {
contentBase: path.join(process.cwd(), '../static/assets'),
};
// make sure to use @emotion/* modules in the root directory
fs.readdirSync(path.resolve(APP_DIR, './node_modules/@emotion'), pkg => {
config.resolve.alias[pkg] = path.resolve(
APP_DIR,
'./node_modules/@emotion',
pkg,
);
});
// find all the symlinked plugins and use their source code for imports
let hasSymlink = false;
Object.entries(packageConfig.dependencies).forEach(([pkg, version]) => {