echarts-for-react 3.0.6 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +14 -0
  2. package/esm/core.d.ts +2 -2
  3. package/esm/core.js.map +1 -1
  4. package/esm/types.d.ts +10 -3
  5. package/esm/types.js.map +1 -1
  6. package/lib/core.d.ts +2 -2
  7. package/lib/core.js.map +1 -1
  8. package/lib/types.d.ts +10 -3
  9. package/lib/types.js.map +1 -1
  10. package/package.json +25 -2
  11. package/src/core.tsx +1 -1
  12. package/src/types.ts +10 -3
  13. package/src/.umi/core/devScripts.ts +0 -53
  14. package/src/.umi/core/history.ts +0 -21
  15. package/src/.umi/core/plugin.ts +0 -8
  16. package/src/.umi/core/pluginConfig.d.ts +0 -300
  17. package/src/.umi/core/pluginRegister.ts +0 -5
  18. package/src/.umi/core/polyfill.ts +0 -4
  19. package/src/.umi/core/routes.ts +0 -389
  20. package/src/.umi/core/umiExports.ts +0 -3
  21. package/src/.umi/dumi/apis.json +0 -1
  22. package/src/.umi/dumi/config.json +0 -129
  23. package/src/.umi/dumi/demos/index.ts +0 -5469
  24. package/src/.umi/dumi/layout.tsx +0 -8
  25. package/src/.umi/umi.ts +0 -58
  26. package/src/.umi-production/core/history.ts +0 -21
  27. package/src/.umi-production/core/plugin.ts +0 -8
  28. package/src/.umi-production/core/pluginConfig.d.ts +0 -300
  29. package/src/.umi-production/core/pluginRegister.ts +0 -5
  30. package/src/.umi-production/core/polyfill.ts +0 -4
  31. package/src/.umi-production/core/routes.ts +0 -389
  32. package/src/.umi-production/core/umiExports.ts +0 -3
  33. package/src/.umi-production/dumi/apis.json +0 -1
  34. package/src/.umi-production/dumi/config.json +0 -129
  35. package/src/.umi-production/dumi/demos/index.ts +0 -5469
  36. package/src/.umi-production/dumi/layout.tsx +0 -8
  37. package/src/.umi-production/umi.ts +0 -58
@@ -1,8 +0,0 @@
1
- // @ts-nocheck
2
- import React from 'react';
3
- import config from '@@/dumi/config';
4
- import demos from '@@/dumi/demos';
5
- import apis from '@@/dumi/apis';
6
- import Layout from '/Users/xiaowei/Documents/code/antv/echarts-for-react/node_modules/_@umijs_preset-dumi@1.1.54@@umijs/preset-dumi/lib/theme/layout';
7
-
8
- export default (props) => <Layout {...props} config={config} demos={demos} apis={apis} />;
@@ -1,58 +0,0 @@
1
- // @ts-nocheck
2
- import './core/polyfill';
3
-
4
- import { plugin } from './core/plugin';
5
- import './core/pluginRegister';
6
- import { createHistory } from './core/history';
7
- import { ApplyPluginsType } from '/Users/xiaowei/Documents/code/antv/echarts-for-react/node_modules/_@umijs_runtime@3.5.43@@umijs/runtime';
8
- import { renderClient } from '/Users/xiaowei/Documents/code/antv/echarts-for-react/node_modules/_@umijs_renderer-react@3.5.43@@umijs/renderer-react/dist/index.js';
9
- import { getRoutes } from './core/routes';
10
-
11
-
12
-
13
-
14
- const getClientRender = (args: { hot?: boolean; routes?: any[] } = {}) => plugin.applyPlugins({
15
- key: 'render',
16
- type: ApplyPluginsType.compose,
17
- initialValue: () => {
18
- const opts = plugin.applyPlugins({
19
- key: 'modifyClientRenderOpts',
20
- type: ApplyPluginsType.modify,
21
- initialValue: {
22
- routes: args.routes || getRoutes(),
23
- plugin,
24
- history: createHistory(args.hot),
25
- isServer: process.env.__IS_SERVER,
26
- rootElement: 'root',
27
- defaultTitle: ``,
28
- },
29
- });
30
- return renderClient(opts);
31
- },
32
- args,
33
- });
34
-
35
- const clientRender = getClientRender();
36
- export default clientRender();
37
-
38
-
39
- window.g_umi = {
40
- version: '3.5.43',
41
- };
42
-
43
-
44
- // hot module replacement
45
- // @ts-ignore
46
- if (module.hot) {
47
- // @ts-ignore
48
- module.hot.accept('./core/routes', () => {
49
- const ret = require('./core/routes');
50
- if (ret.then) {
51
- ret.then(({ getRoutes }) => {
52
- getClientRender({ hot: true, routes: getRoutes() })();
53
- });
54
- } else {
55
- getClientRender({ hot: true, routes: ret.getRoutes() })();
56
- }
57
- });
58
- }