@oceanbase/design 0.1.0 → 0.1.2
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.
- package/dist/design.min.css +1 -1
- package/dist/design.min.js +1 -1
- package/es/BasicLayout/Header.d.ts +2 -2
- package/es/BasicLayout/Header.js +7 -8
- package/es/BasicLayout/index.d.ts +2 -2
- package/es/BasicLayout/index.js +9 -9
- package/es/BatchOperationBar/index.d.ts +1 -1
- package/es/Boundary/Components/Code.d.ts +1 -1
- package/es/Boundary/Components/Exception.d.ts +1 -1
- package/es/Boundary/index.d.ts +2 -2
- package/es/Dialog/index.d.ts +1 -1
- package/es/DocDialog/index.d.ts +2 -1
- package/es/DocDialog/index.js +2 -2
- package/es/FullscreenBox/index.d.ts +1 -1
- package/es/GraphToolbar/index.d.ts +2 -1
- package/es/Highlight/index.d.ts +1 -1
- package/es/Login/index.d.ts +1 -1
- package/es/NavMenu/index.js +4 -3
- package/es/PageContainer/ItemRender.d.ts +8 -0
- package/es/PageContainer/ItemRender.js +21 -0
- package/es/PageContainer/index.d.ts +2 -2
- package/es/PageContainer/index.js +14 -7
- package/es/PageContainer/index.less +4 -4
- package/es/Password/index.d.ts +2 -1
- package/es/Ranger/Ranger.d.ts +2 -1
- package/es/SideTip/index.d.ts +1 -1
- package/es/Table/index.d.ts +2 -1
- package/es/Table/style/index.js +1 -1
- package/es/TaskGraph/Graph.d.ts +2 -1
- package/es/TaskGraph/index.d.ts +2 -1
- package/es/Welcome/index.d.ts +1 -1
- package/es/Welcome/step.d.ts +2 -1
- package/es/_util/useHistory.d.ts +4 -0
- package/es/_util/useHistory.js +9 -0
- package/es/locale/LocaleWrapper.d.ts +2 -1
- package/lib/Action/Group.js +0 -2
- package/lib/Action/index.js +0 -2
- package/lib/Alert/index.js +0 -2
- package/lib/BasicLayout/Header.d.ts +2 -2
- package/lib/BasicLayout/Header.js +8 -11
- package/lib/BasicLayout/index.d.ts +2 -2
- package/lib/BasicLayout/index.js +8 -10
- package/lib/BasicLayout/locale/en-US.js +0 -2
- package/lib/BasicLayout/locale/zh-CN.js +0 -2
- package/lib/BasicLayout/locale/zh-TW.js +0 -2
- package/lib/BatchOperationBar/index.d.ts +1 -1
- package/lib/BatchOperationBar/index.js +0 -2
- package/lib/BatchOperationBar/locale/en-US.js +0 -2
- package/lib/BatchOperationBar/locale/zh-CN.js +0 -2
- package/lib/BatchOperationBar/locale/zh-TW.js +0 -2
- package/lib/Boundary/Components/Code.d.ts +1 -1
- package/lib/Boundary/Components/Exception.d.ts +1 -1
- package/lib/Boundary/Components/index.js +6 -0
- package/lib/Boundary/index.d.ts +2 -2
- package/lib/Boundary/index.js +0 -2
- package/lib/Boundary/locale/en-US.js +0 -2
- package/lib/Boundary/locale/zh-CN.js +0 -2
- package/lib/Boundary/locale/zh-TW.js +0 -2
- package/lib/Button/index.js +0 -2
- package/lib/Card/index.js +0 -2
- package/lib/ContentWithQuestion/index.js +0 -2
- package/lib/Descriptions/Item.js +0 -2
- package/lib/Descriptions/index.js +0 -2
- package/lib/Dialog/index.d.ts +1 -1
- package/lib/Dialog/index.js +0 -2
- package/lib/Dialog/locale/en-US.js +0 -2
- package/lib/Dialog/locale/zh-CN.js +0 -2
- package/lib/Dialog/locale/zh-TW.js +0 -2
- package/lib/DocDialog/index.d.ts +2 -1
- package/lib/DocDialog/index.js +3 -5
- package/lib/DocDialog/locale/en-US.js +0 -2
- package/lib/DocDialog/locale/zh-CN.js +0 -2
- package/lib/DocDialog/locale/zh-TW.js +0 -2
- package/lib/Form/FormItem.js +0 -2
- package/lib/Form/index.js +0 -2
- package/lib/FullscreenBox/index.d.ts +1 -1
- package/lib/FullscreenBox/index.js +0 -2
- package/lib/FullscreenBox/locale/en-US.js +0 -2
- package/lib/FullscreenBox/locale/zh-CN.js +0 -2
- package/lib/FullscreenBox/locale/zh-TW.js +0 -2
- package/lib/GraphToolbar/index.d.ts +2 -1
- package/lib/GraphToolbar/locale/en-US.js +0 -2
- package/lib/GraphToolbar/locale/zh-CN.js +0 -2
- package/lib/GraphToolbar/locale/zh-TW.js +0 -2
- package/lib/Highlight/DiffView/DiffCells.js +0 -2
- package/lib/Highlight/DiffView/index.js +0 -2
- package/lib/Highlight/HighlightCell.js +0 -2
- package/lib/Highlight/JsonView.js +0 -2
- package/lib/Highlight/index.d.ts +1 -1
- package/lib/Highlight/languages/bash.js +0 -2
- package/lib/Highlight/languages/cpp.js +0 -2
- package/lib/Highlight/languages/css.js +0 -2
- package/lib/Highlight/languages/dockerfile.js +0 -2
- package/lib/Highlight/languages/go.js +0 -2
- package/lib/Highlight/languages/groovy.js +0 -2
- package/lib/Highlight/languages/http.js +0 -2
- package/lib/Highlight/languages/java.js +0 -2
- package/lib/Highlight/languages/javascript.js +0 -2
- package/lib/Highlight/languages/json.js +0 -2
- package/lib/Highlight/languages/markdown.js +0 -2
- package/lib/Highlight/languages/nginx.js +0 -2
- package/lib/Highlight/languages/python.js +0 -2
- package/lib/Highlight/languages/ruby.js +0 -2
- package/lib/Highlight/languages/solidity.js +0 -2
- package/lib/Highlight/languages/sql.js +0 -2
- package/lib/Highlight/languages/typescript.js +0 -2
- package/lib/Highlight/languages/xml.js +0 -2
- package/lib/Highlight/languages/yaml.js +0 -2
- package/lib/Highlight/locale/en-US.js +0 -2
- package/lib/Highlight/locale/zh-CN.js +0 -2
- package/lib/Highlight/locale/zh-TW.js +0 -2
- package/lib/IconFont/index.js +0 -2
- package/lib/LocaleDropdown/index.js +0 -2
- package/lib/Login/ActivateForm.js +0 -2
- package/lib/Login/LoginForm.js +0 -2
- package/lib/Login/index.d.ts +1 -1
- package/lib/Login/index.js +0 -2
- package/lib/Login/locale/en-US.js +0 -2
- package/lib/Login/locale/zh-CN.js +0 -2
- package/lib/Login/locale/zh-TW.js +0 -2
- package/lib/Lottie/index.js +0 -2
- package/lib/Modal/index.js +0 -2
- package/lib/NavMenu/index.js +4 -5
- package/lib/PageContainer/ItemRender.d.ts +8 -0
- package/lib/{_util/itemRender.js → PageContainer/ItemRender.js} +21 -14
- package/lib/PageContainer/index.d.ts +2 -2
- package/lib/PageContainer/index.js +7 -9
- package/lib/PageContainer/index.less +4 -4
- package/lib/PageContainer/locale/en-US.js +0 -2
- package/lib/PageContainer/locale/zh-CN.js +0 -2
- package/lib/PageContainer/locale/zh-TW.js +0 -2
- package/lib/Password/Content.js +0 -2
- package/lib/Password/index.d.ts +2 -1
- package/lib/Password/index.js +0 -2
- package/lib/Password/locale/en-US.js +0 -2
- package/lib/Password/locale/zh-CN.js +0 -2
- package/lib/Password/locale/zh-TW.js +0 -2
- package/lib/Ranger/QuickPicker.js +0 -2
- package/lib/Ranger/Ranger.d.ts +2 -1
- package/lib/Ranger/Ranger.js +0 -2
- package/lib/Ranger/index.js +0 -2
- package/lib/Ranger/locale/en-US.js +0 -2
- package/lib/Ranger/locale/zh-CN.js +0 -2
- package/lib/Ranger/locale/zh-TW.js +0 -2
- package/lib/SideTip/Dragger.js +2 -4
- package/lib/SideTip/IconLoading.js +0 -2
- package/lib/SideTip/index.d.ts +1 -1
- package/lib/SideTip/index.js +0 -2
- package/lib/SideTip/locale/en-US.js +0 -2
- package/lib/SideTip/locale/zh-CN.js +0 -2
- package/lib/SideTip/locale/zh-TW.js +0 -2
- package/lib/Table/index.d.ts +2 -1
- package/lib/Table/index.js +0 -2
- package/lib/Table/locale/en-US.js +0 -2
- package/lib/Table/locale/zh-CN.js +0 -2
- package/lib/Table/locale/zh-TW.js +0 -2
- package/lib/Table/style/index.js +1 -1
- package/lib/Tabs/TabPane.js +0 -2
- package/lib/Tabs/hooks/useInkBar.js +0 -2
- package/lib/Tabs/hooks/useLegacyItems.js +0 -2
- package/lib/Tabs/index.js +0 -2
- package/lib/TaskGraph/Graph.d.ts +2 -1
- package/lib/TaskGraph/Graph.js +0 -2
- package/lib/TaskGraph/index.d.ts +2 -1
- package/lib/TaskGraph/index.js +0 -2
- package/lib/TaskGraph/locale/en-US.js +0 -2
- package/lib/TaskGraph/locale/zh-CN.js +0 -2
- package/lib/TaskGraph/locale/zh-TW.js +0 -2
- package/lib/TaskGraph/register.js +0 -2
- package/lib/Tooltip/MouseTooltip.js +0 -2
- package/lib/TreeSearch/index.js +0 -2
- package/lib/Welcome/index.d.ts +1 -1
- package/lib/Welcome/index.js +0 -2
- package/lib/Welcome/locale/en-US.js +0 -2
- package/lib/Welcome/locale/zh-CN.js +0 -2
- package/lib/Welcome/locale/zh-TW.js +0 -2
- package/lib/Welcome/step.d.ts +2 -1
- package/lib/Welcome/step.js +0 -2
- package/lib/_util/useHistory.d.ts +4 -0
- package/lib/_util/useHistory.js +30 -0
- package/lib/index.js +5 -1
- package/lib/locale/LocaleWrapper.d.ts +2 -1
- package/lib/locale/LocaleWrapper.js +0 -2
- package/lib/locale/en-US.js +0 -2
- package/lib/locale/zh-CN.js +0 -2
- package/lib/locale/zh-TW.js +0 -2
- package/lib/theme/index.js +0 -2
- package/package.json +11 -8
- package/README.md +0 -22
- package/es/_util/itemRender.d.ts +0 -2
- package/es/_util/itemRender.js +0 -12
- package/lib/_util/itemRender.d.ts +0 -2
package/lib/BasicLayout/index.js
CHANGED
|
@@ -32,21 +32,21 @@ __export(BasicLayout_exports, {
|
|
|
32
32
|
default: () => BasicLayout_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(BasicLayout_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_antd = require("antd");
|
|
37
|
-
var import_react_router_dom = require("react-router-dom");
|
|
38
|
-
var import_util = require("@oceanbase/util");
|
|
39
35
|
var import_icons = require("@ant-design/icons");
|
|
40
36
|
var import_pro_components = require("@ant-design/pro-components");
|
|
37
|
+
var import_util = require("@oceanbase/util");
|
|
38
|
+
var import_antd = require("antd");
|
|
39
|
+
var import_classnames = __toESM(require("classnames"));
|
|
41
40
|
var import_lodash = require("lodash");
|
|
42
41
|
var import_path_to_regexp = require("path-to-regexp");
|
|
42
|
+
var import_react = __toESM(require("react"));
|
|
43
43
|
var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
|
|
44
|
-
var
|
|
44
|
+
var import_StaticFunction = require("../StaticFunction");
|
|
45
45
|
var import_util2 = require("../_util");
|
|
46
|
+
var import_useHistory = __toESM(require("../_util/useHistory"));
|
|
46
47
|
var import_Header = __toESM(require("./Header"));
|
|
47
|
-
var import_classnames = __toESM(require("classnames"));
|
|
48
48
|
var import_index = require("./index.less");
|
|
49
|
-
var
|
|
49
|
+
var import_zh_CN = __toESM(require("./locale/zh-CN"));
|
|
50
50
|
var { Content, Sider } = import_antd.Layout;
|
|
51
51
|
var { SubMenu, Item } = import_antd.Menu;
|
|
52
52
|
var prefix = (0, import_util2.getPrefix)("layout");
|
|
@@ -68,10 +68,10 @@ var BasicLayout = ({
|
|
|
68
68
|
className,
|
|
69
69
|
...restProps
|
|
70
70
|
}) => {
|
|
71
|
+
const history = (0, import_useHistory.default)();
|
|
71
72
|
const [collapsed, setCollapsed] = (0, import_react.useState)(defaultCollapsed);
|
|
72
73
|
const [selectedKeys, setSelectedKeys] = (0, import_react.useState)(defaultSelectedKeys);
|
|
73
74
|
const [openKeys, setOpenKeys] = (0, import_react.useState)(defaultOpenKeys);
|
|
74
|
-
const history = (0, import_react_router_dom.useHistory)();
|
|
75
75
|
(0, import_react.useEffect)(() => {
|
|
76
76
|
const selectedMenuKeys = (0, import_util2.urlToList)(pathname).map((itemPath) => getMenuMatches(getFlatMenuKeys(menus), itemPath).pop()) || [];
|
|
77
77
|
const newSelectedKeys = selectedMenuKeys.filter((item) => item);
|
|
@@ -344,5 +344,3 @@ var BasicLayout_default = (0, import_LocaleWrapper.default)({
|
|
|
344
344
|
componentName: "BasicLayout",
|
|
345
345
|
defaultLocale: import_zh_CN.default
|
|
346
346
|
})(BasicLayout);
|
|
347
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
348
|
-
0 && (module.exports = {});
|
|
@@ -29,5 +29,5 @@ export interface Props extends LocaleWrapperProps {
|
|
|
29
29
|
position?: [Vertical, Horizontal];
|
|
30
30
|
barStyle?: React.CSSProperties;
|
|
31
31
|
}
|
|
32
|
-
declare const _default:
|
|
32
|
+
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<React.ComponentType<Props>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<Props>, {}>;
|
|
33
33
|
export default _default;
|
|
@@ -163,5 +163,3 @@ var BatchOperationBar_default = (0, import_LocaleWrapper.default)({
|
|
|
163
163
|
componentName: "BatchOperationBar",
|
|
164
164
|
defaultLocale: import_zh_CN.default
|
|
165
165
|
})(BatchOperationBar);
|
|
166
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
167
|
-
0 && (module.exports = {});
|
|
@@ -11,4 +11,4 @@ export interface IBoundaryCode extends LocaleWrapperProps {
|
|
|
11
11
|
buttonText?: string;
|
|
12
12
|
locale?: BoundaryLocale;
|
|
13
13
|
}
|
|
14
|
-
export declare const Code:
|
|
14
|
+
export declare const Code: React.ForwardRefExoticComponent<IBoundaryCode & React.RefAttributes<React.ComponentType<IBoundaryCode>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<IBoundaryCode>, {}>;
|
|
@@ -14,4 +14,4 @@ export interface ExceptionProps extends LocaleWrapperProps {
|
|
|
14
14
|
hasButton?: boolean;
|
|
15
15
|
locale?: BoundaryLocale;
|
|
16
16
|
}
|
|
17
|
-
export declare const Exception:
|
|
17
|
+
export declare const Exception: React.ForwardRefExoticComponent<ExceptionProps & React.RefAttributes<React.ComponentType<ExceptionProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<ExceptionProps>, {}>;
|
|
@@ -19,3 +19,9 @@ module.exports = __toCommonJS(Components_exports);
|
|
|
19
19
|
__reExport(Components_exports, require("./Code"), module.exports);
|
|
20
20
|
__reExport(Components_exports, require("./Exception"), module.exports);
|
|
21
21
|
__reExport(Components_exports, require("./Function"), module.exports);
|
|
22
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
+
0 && (module.exports = {
|
|
24
|
+
...require("./Code"),
|
|
25
|
+
...require("./Exception"),
|
|
26
|
+
...require("./Function")
|
|
27
|
+
});
|
package/lib/Boundary/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './index.less';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
Code:
|
|
4
|
+
Code: import("react").ForwardRefExoticComponent<import("./Components").IBoundaryCode & import("react").RefAttributes<import("react").ComponentType<import("./Components").IBoundaryCode>>> & import("hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("./Components").IBoundaryCode>, {}>;
|
|
5
5
|
Function: import("react").FC<import("./Components").IBoundaryFunction>;
|
|
6
|
-
Exception:
|
|
6
|
+
Exception: import("react").ForwardRefExoticComponent<import("./Components").ExceptionProps & import("react").RefAttributes<import("react").ComponentType<import("./Components").ExceptionProps>>> & import("hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("./Components").ExceptionProps>, {}>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
package/lib/Boundary/index.js
CHANGED
|
@@ -25,5 +25,3 @@ module.exports = __toCommonJS(Boundary_exports);
|
|
|
25
25
|
var import_Components = require("./Components");
|
|
26
26
|
var import_index = require("./index.less");
|
|
27
27
|
var Boundary_default = { Code: import_Components.Code, Function: import_Components.BoundaryFunction, Exception: import_Components.Exception };
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {});
|
|
@@ -32,5 +32,3 @@ var en_US_default = {
|
|
|
32
32
|
incompatible: "Incompatible browser version",
|
|
33
33
|
proposal: "The browser version is too low. In order to avoid possible security risks, it is recommended to use Chrome browser version 80 or above"
|
|
34
34
|
};
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {});
|
package/lib/Button/index.js
CHANGED
package/lib/Card/index.js
CHANGED
package/lib/Descriptions/Item.js
CHANGED
package/lib/Dialog/index.d.ts
CHANGED
|
@@ -31,5 +31,5 @@ export interface IDialogProps extends LocaleWrapperProps {
|
|
|
31
31
|
setRootWidth?: (newWidth: string) => void;
|
|
32
32
|
isEmbed?: boolean;
|
|
33
33
|
}
|
|
34
|
-
declare const _default:
|
|
34
|
+
declare const _default: React.ForwardRefExoticComponent<IDialogProps & React.RefAttributes<React.ComponentType<IDialogProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<IDialogProps>, {}>;
|
|
35
35
|
export default _default;
|
package/lib/Dialog/index.js
CHANGED
package/lib/DocDialog/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { LocaleWrapperProps } from '../locale/LocaleWrapper';
|
|
2
3
|
interface IDialogConfig {
|
|
3
4
|
height?: number;
|
|
@@ -20,5 +21,5 @@ export interface IDocDialogProps extends LocaleWrapperProps {
|
|
|
20
21
|
setRootWidth: (newWidth: string) => void;
|
|
21
22
|
setVisible: (payload: boolean) => void;
|
|
22
23
|
}
|
|
23
|
-
declare const _default:
|
|
24
|
+
declare const _default: import("react").ForwardRefExoticComponent<IDocDialogProps & import("react").RefAttributes<import("react").ComponentType<IDocDialogProps>>> & import("hoist-non-react-statics").NonReactStatics<import("react").ComponentType<IDocDialogProps>, {}>;
|
|
24
25
|
export default _default;
|
package/lib/DocDialog/index.js
CHANGED
|
@@ -32,10 +32,10 @@ __export(DocDialog_exports, {
|
|
|
32
32
|
default: () => DocDialog_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(DocDialog_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_Dialog = __toESM(require("../Dialog"));
|
|
37
35
|
var import_lodash = require("lodash");
|
|
36
|
+
var import_react = require("react");
|
|
38
37
|
var import_react_router_dom = require("react-router-dom");
|
|
38
|
+
var import_Dialog = __toESM(require("../Dialog"));
|
|
39
39
|
var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
|
|
40
40
|
var import_zh_CN = __toESM(require("./locale/zh-CN"));
|
|
41
41
|
var DEFAULT_EMBDED_WIDTH = 0.4;
|
|
@@ -127,11 +127,9 @@ var DocDialogComp = (props) => {
|
|
|
127
127
|
setRootWidth,
|
|
128
128
|
setVisible
|
|
129
129
|
]);
|
|
130
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(import_Dialog.default, { ...DialogProps }, /* @__PURE__ */ React.createElement("iframe", { src: currentLink })));
|
|
131
131
|
};
|
|
132
132
|
var DocDialog_default = (0, import_LocaleWrapper.default)({
|
|
133
133
|
componentName: "DocDialog",
|
|
134
134
|
defaultLocale: import_zh_CN.default
|
|
135
135
|
})(DocDialogComp);
|
|
136
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
137
|
-
0 && (module.exports = {});
|
package/lib/Form/FormItem.js
CHANGED
package/lib/Form/index.js
CHANGED
|
@@ -36,5 +36,3 @@ var import_antd = require("antd");
|
|
|
36
36
|
var import_FormItem = __toESM(require("./FormItem"));
|
|
37
37
|
import_antd.Form.Item = import_FormItem.default;
|
|
38
38
|
var Form_default = import_antd.Form;
|
|
39
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
-
0 && (module.exports = {});
|
|
@@ -38,5 +38,5 @@ export interface FullscreenBoxProps extends LocaleWrapperProps {
|
|
|
38
38
|
*/
|
|
39
39
|
children?: any;
|
|
40
40
|
}
|
|
41
|
-
declare const _default:
|
|
41
|
+
declare const _default: React.ForwardRefExoticComponent<FullscreenBoxProps & React.RefAttributes<React.ComponentType<FullscreenBoxProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<FullscreenBoxProps>, {}>;
|
|
42
42
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { Graph } from '@antv/g6';
|
|
2
3
|
import type { LocaleWrapperProps } from '../locale/LocaleWrapper';
|
|
3
4
|
import './index.less';
|
|
@@ -22,5 +23,5 @@ export interface GraphToolbarProps extends LocaleWrapperProps {
|
|
|
22
23
|
locale?: GraphToolbarLocale;
|
|
23
24
|
className?: string;
|
|
24
25
|
}
|
|
25
|
-
declare const _default:
|
|
26
|
+
declare const _default: React.ForwardRefExoticComponent<GraphToolbarProps & React.RefAttributes<React.ComponentType<GraphToolbarProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<GraphToolbarProps>, {}>;
|
|
26
27
|
export default _default;
|
package/lib/Highlight/index.d.ts
CHANGED
|
@@ -99,5 +99,5 @@ export interface HighlightProps extends LocaleWrapperProps {
|
|
|
99
99
|
onCopyChange?: (value: string | Object) => void | Function;
|
|
100
100
|
}
|
|
101
101
|
export declare const renderHightlight: (language: any, content: any) => import("highlight.js").HighlightResult;
|
|
102
|
-
declare const _default:
|
|
102
|
+
declare const _default: React.ForwardRefExoticComponent<HighlightProps & React.RefAttributes<React.ComponentType<HighlightProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<HighlightProps>, {}>;
|
|
103
103
|
export default _default;
|
|
@@ -34,5 +34,3 @@ __export(bash_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(bash_exports);
|
|
35
35
|
var import_bash = __toESM(require("highlight.js/lib/languages/bash"));
|
|
36
36
|
var bash_default = import_bash.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(cpp_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(cpp_exports);
|
|
35
35
|
var import_cpp = __toESM(require("highlight.js/lib/languages/cpp"));
|
|
36
36
|
var cpp_default = import_cpp.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(css_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(css_exports);
|
|
35
35
|
var import_css = __toESM(require("highlight.js/lib/languages/css"));
|
|
36
36
|
var css_default = import_css.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(dockerfile_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(dockerfile_exports);
|
|
35
35
|
var import_dockerfile = __toESM(require("highlight.js/lib/languages/dockerfile"));
|
|
36
36
|
var dockerfile_default = import_dockerfile.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(go_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(go_exports);
|
|
35
35
|
var import_go = __toESM(require("highlight.js/lib/languages/go"));
|
|
36
36
|
var go_default = import_go.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(groovy_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(groovy_exports);
|
|
35
35
|
var import_groovy = __toESM(require("highlight.js/lib/languages/groovy"));
|
|
36
36
|
var groovy_default = import_groovy.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(http_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(http_exports);
|
|
35
35
|
var import_http = __toESM(require("highlight.js/lib/languages/http"));
|
|
36
36
|
var http_default = import_http.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(java_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(java_exports);
|
|
35
35
|
var import_java = __toESM(require("highlight.js/lib/languages/java"));
|
|
36
36
|
var java_default = import_java.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(javascript_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(javascript_exports);
|
|
35
35
|
var import_javascript = __toESM(require("highlight.js/lib/languages/javascript"));
|
|
36
36
|
var javascript_default = import_javascript.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(json_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(json_exports);
|
|
35
35
|
var import_json = __toESM(require("highlight.js/lib/languages/json"));
|
|
36
36
|
var json_default = import_json.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(markdown_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(markdown_exports);
|
|
35
35
|
var import_markdown = __toESM(require("highlight.js/lib/languages/markdown"));
|
|
36
36
|
var markdown_default = import_markdown.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(nginx_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(nginx_exports);
|
|
35
35
|
var import_nginx = __toESM(require("highlight.js/lib/languages/nginx"));
|
|
36
36
|
var nginx_default = import_nginx.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(python_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(python_exports);
|
|
35
35
|
var import_python = __toESM(require("highlight.js/lib/languages/python"));
|
|
36
36
|
var python_default = import_python.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(ruby_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(ruby_exports);
|
|
35
35
|
var import_ruby = __toESM(require("highlight.js/lib/languages/ruby"));
|
|
36
36
|
var ruby_default = import_ruby.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(solidity_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(solidity_exports);
|
|
35
35
|
var import_solidity = __toESM(require("highlightjs-solidity/src/languages/solidity"));
|
|
36
36
|
var solidity_default = import_solidity.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(sql_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(sql_exports);
|
|
35
35
|
var import_sql = __toESM(require("highlight.js/lib/languages/sql"));
|
|
36
36
|
var sql_default = import_sql.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(typescript_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(typescript_exports);
|
|
35
35
|
var import_typescript = __toESM(require("highlight.js/lib/languages/typescript"));
|
|
36
36
|
var typescript_default = import_typescript.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(xml_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(xml_exports);
|
|
35
35
|
var import_xml = __toESM(require("highlight.js/lib/languages/xml"));
|
|
36
36
|
var xml_default = import_xml.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
|
@@ -34,5 +34,3 @@ __export(yaml_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(yaml_exports);
|
|
35
35
|
var import_yaml = __toESM(require("highlight.js/lib/languages/yaml"));
|
|
36
36
|
var yaml_default = import_yaml.default;
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {});
|
package/lib/IconFont/index.js
CHANGED
|
@@ -80,5 +80,3 @@ var IconFont = (props) => {
|
|
|
80
80
|
return iconfontList.includes(type) ? /* @__PURE__ */ import_react.default.createElement(CustomIcon, { type, className, ...restProps }) : /* @__PURE__ */ import_react.default.createElement("i", { className: `iconfont ${type} ${className}`, ...restProps });
|
|
81
81
|
};
|
|
82
82
|
var IconFont_default = IconFont;
|
|
83
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
-
0 && (module.exports = {});
|
|
@@ -68,5 +68,3 @@ var LocaleDropdown = ({ locales, showLabel, ...restProps }) => {
|
|
|
68
68
|
) : /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { className: `${prefix}-extra-item` }, /* @__PURE__ */ import_react.default.createElement(import_icons.GlobalOutlined, null), (0, import_util.findByValue)(import_constant.LOCALE_LIST, (0, import_util2.getLocale)()).shortLabel));
|
|
69
69
|
};
|
|
70
70
|
var LocaleDropdown_default = LocaleDropdown;
|
|
71
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
-
0 && (module.exports = {});
|