Skip to content

Commit ac6513c

Browse files
authored
Merge pull request #351 from antvis/site/0612
Site/0612
2 parents a265b8c + 005c2f9 commit ac6513c

File tree

8 files changed

+9569
-11257
lines changed

8 files changed

+9569
-11257
lines changed

packages/gi-assets-advance/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antv/gi-assets-advance",
3-
"version": "2.4.4",
3+
"version": "2.4.5",
44
"description": "G6VP 高级资产包",
55
"main": "lib/index.js",
66
"module": "es/index.js",

packages/gi-assets-basic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antv/gi-assets-basic",
3-
"version": "2.3.5",
3+
"version": "2.3.6",
44
"description": "G6VP 基础资产包",
55
"main": "lib/index.js",
66
"module": "es/index.js",

packages/gi-common-components/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antv/gi-common-components",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "G6VP 通用UI组件",
55
"main": "lib/index.js",
66
"module": "es/index.js",

packages/gi-sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antv/gi-sdk",
3-
"version": "2.3.4",
3+
"version": "2.3.5",
44
"description": "G6VP 核心画布渲染",
55
"main": "lib/index.js",
66
"module": "es/index.js",

packages/gi-sdk/src/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** export */
2-
import { version } from '../package.json';
2+
import pkg from '../package.json';
33
import {
44
deepClone,
55
GI_CONTAINER_METAS,
@@ -13,6 +13,7 @@ import template from './constants/template';
1313
import { useContext } from './context';
1414
import GISDK from './GISDK';
1515
import * as utils from './process';
16+
const { version } = pkg;
1617
console.log(`%c 🎉 GI_SDK_VERSION:${version}`, 'color:#3e5dff');
1718
const extra = {
1819
/** 原子组件 META */
@@ -25,12 +26,12 @@ const extra = {
2526
deepClone,
2627
GIAComponent,
2728
};
28-
export { Info } from './constants/info';
2929
export { Icon, icons } from '@antv/gi-common-components';
3030
export { default as CollapseCard } from './components/CollapseCard';
3131
export type { IGIAC } from './components/const';
3232
export { default as EngineBanner } from './components/EngineBanner';
3333
export { default as EngineServer } from './components/EngineServer';
34+
export { Info } from './constants/info';
3435
// export { default as Icon } from './components/Icon';
3536
/** export typing */
3637
export { COLORS, IEdgeSchema, INodeSchema } from './process/schema';
@@ -58,7 +59,6 @@ export type {
5859
ISourceDataMap,
5960
ServiceObject,
6061
} from './typing';
61-
export { useContext, utils, version };
62-
export { extra, template };
62+
export { extra, template, useContext, utils, version };
6363

6464
export default GISDK;

packages/gi-site/.umirc.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import GI_SDK from '@antv/gi-sdk/package.json';
2+
import GI_THEME_ANTD from '@antv/gi-theme-antd/package.json';
23

34
import deps_externals from './scripts/deps_externals.json';
45
export const G6_VERSION = '4.8.14';
56
export const GRAPHIN_VERSION = '2.7.16';
67
export const G2PLOT_VERSION = '2.4.16';
78
export const ANTD_VERSION = '4.24.8';
89
export const GI_VERSION = GI_SDK.version;
10+
export const GI_THEME_ANTD_VERSION = GI_THEME_ANTD.version;
911

1012
/** 是否为本地研发模式 */
1113
//@ts-ignore

packages/gi-site/src/components/Navbar/ExportSdk.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { CodeOutlined } from '@ant-design/icons';
22
import { Alert, Button, Col, Modal, Row } from 'antd';
33
import React from 'react';
44
import { useImmer } from 'use-immer';
5-
import { ANTD_VERSION, G6_VERSION, GI_VERSION, GRAPHIN_VERSION } from '../../../.umirc';
5+
import { ANTD_VERSION, G6_VERSION, GI_THEME_ANTD_VERSION, GI_VERSION, GRAPHIN_VERSION } from '../../../.umirc';
66
import { useCodeSandbox, useHtml, useNodeModule } from '../../hooks';
77
import { useContext } from '../../pages/Analysis/hooks/useContext';
88
import { saveAs } from '../utils';
@@ -58,7 +58,7 @@ const SdkContent = () => {
5858
'react-dom': '17.x',
5959
localforage: '1.10.0',
6060
antd: ANTD_VERSION,
61-
// '@antv/gi-theme-antd': GI_THEME_ANTD_VERSION,
61+
'@antv/gi-theme-antd': GI_THEME_ANTD_VERSION,
6262
'@antv/g6': G6_VERSION,
6363
'@antv/graphin': GRAPHIN_VERSION,
6464
'@antv/gi-sdk': GI_VERSION,

0 commit comments

Comments
 (0)