@digi-frontend/dgate-api-documentation 4.0.2 → 4.0.4
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/index.cjs +35 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +36 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { create } from "zustand";
|
|
|
2
2
|
import { devtools } from "zustand/middleware";
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
4
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
5
|
-
import { Alert, Breadcrumb, Button, Card, Divider, Drawer, Empty, Flex, Form, Grid, Input, Modal, Pagination, Select, Switch, Table, Tabs, Tag, Tooltip, Tree, Typography, message, theme } from "antd";
|
|
5
|
+
import { Alert, Breadcrumb, Button, Card, Col, Divider, Drawer, Empty, Flex, Form, Grid, Input, Modal, Pagination, Row, Select, Switch, Table, Tabs, Tag, Tooltip, Tree, Typography, message, theme } from "antd";
|
|
6
6
|
import { useStyleRegister } from "@ant-design/cssinjs";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import Text from "antd/es/typography/Text.js";
|
|
@@ -608,7 +608,8 @@ const getSidebarStyles$1 = (token, scope) => ({
|
|
|
608
608
|
backgroundColor: token.colorBgContainer,
|
|
609
609
|
overflowY: "auto",
|
|
610
610
|
overflowX: "clip",
|
|
611
|
-
borderRadius: token.borderRadius
|
|
611
|
+
borderRadius: token.borderRadius,
|
|
612
|
+
height: "100%"
|
|
612
613
|
},
|
|
613
614
|
[scope("content")]: { padding: token.padding },
|
|
614
615
|
[scope("controls")]: {
|
|
@@ -1255,10 +1256,7 @@ const ApiCard = ({ api, viewStyle }) => {
|
|
|
1255
1256
|
fontFamily: token.fontFamily
|
|
1256
1257
|
},
|
|
1257
1258
|
[scope("grid-card")]: {
|
|
1258
|
-
width: "
|
|
1259
|
-
flex: "1 1 17.5rem",
|
|
1260
|
-
minWidth: "17.5rem",
|
|
1261
|
-
height: "100%",
|
|
1259
|
+
width: "100%",
|
|
1262
1260
|
borderRadius: token.borderRadiusLG
|
|
1263
1261
|
},
|
|
1264
1262
|
[scope("grid-title")]: {
|
|
@@ -1676,10 +1674,21 @@ const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, vi
|
|
|
1676
1674
|
level: 4,
|
|
1677
1675
|
children: tagName
|
|
1678
1676
|
}),
|
|
1679
|
-
/* @__PURE__ */ jsx(
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1677
|
+
viewStyle === "grid" ? /* @__PURE__ */ jsx(Row, {
|
|
1678
|
+
gutter: [24, 24],
|
|
1679
|
+
children: apis.map((item) => /* @__PURE__ */ jsx(Col, {
|
|
1680
|
+
xs: 24,
|
|
1681
|
+
sm: 24,
|
|
1682
|
+
md: 12,
|
|
1683
|
+
lg: 8,
|
|
1684
|
+
xl: 8,
|
|
1685
|
+
children: /* @__PURE__ */ jsx(ApiCard, {
|
|
1686
|
+
api: item,
|
|
1687
|
+
viewStyle
|
|
1688
|
+
})
|
|
1689
|
+
}, `${tagName}_renderer_${item.id}_${item.method}_${item.path}`))
|
|
1690
|
+
}) : /* @__PURE__ */ jsx(Flex, {
|
|
1691
|
+
vertical: true,
|
|
1683
1692
|
children: apis.map((item) => /* @__PURE__ */ jsx(ApiCard, {
|
|
1684
1693
|
api: item,
|
|
1685
1694
|
viewStyle
|
|
@@ -1788,13 +1797,9 @@ const EndpointPage$1 = () => {
|
|
|
1788
1797
|
[scope("docs-endpoint-container")]: {
|
|
1789
1798
|
display: "flex",
|
|
1790
1799
|
flexDirection: "column",
|
|
1791
|
-
gap: token.marginLG
|
|
1792
|
-
height: "100%"
|
|
1793
|
-
},
|
|
1794
|
-
[scope("content")]: {
|
|
1795
|
-
width: "100%",
|
|
1796
|
-
height: "100%"
|
|
1800
|
+
gap: token.marginLG
|
|
1797
1801
|
},
|
|
1802
|
+
[scope("content")]: { width: "100%" },
|
|
1798
1803
|
[scope("code")]: {
|
|
1799
1804
|
background: "unset",
|
|
1800
1805
|
borderRadius: token.borderRadius,
|
|
@@ -2006,9 +2011,9 @@ const MainContent$1 = ({ searchEnabled, handleResetSearch, handleVisitLandingPag
|
|
|
2006
2011
|
const { wrapSSR, cx, token } = useStyle("MainContent", (token, scope) => ({
|
|
2007
2012
|
[scope("inner-doc-container")]: {
|
|
2008
2013
|
backgroundColor: token.colorBgContainer,
|
|
2014
|
+
flex: 1,
|
|
2015
|
+
minWidth: 0,
|
|
2009
2016
|
height: "100%",
|
|
2010
|
-
width: "100%",
|
|
2011
|
-
maxHeight: "100%",
|
|
2012
2017
|
overflow: "auto",
|
|
2013
2018
|
borderRadius: token.borderRadius,
|
|
2014
2019
|
padding: token.paddingXL
|
|
@@ -6045,9 +6050,10 @@ const filterTreeData = (data, searchText) => {
|
|
|
6045
6050
|
const getSidebarStyles = (token, scope) => ({
|
|
6046
6051
|
[scope("sider")]: {
|
|
6047
6052
|
backgroundColor: token.colorBgElevated,
|
|
6053
|
+
overflowY: "auto",
|
|
6048
6054
|
overflowX: "clip",
|
|
6049
6055
|
borderRadius: token.borderRadius,
|
|
6050
|
-
height: "
|
|
6056
|
+
height: "100%"
|
|
6051
6057
|
},
|
|
6052
6058
|
[scope("content")]: { padding: token.padding },
|
|
6053
6059
|
[scope("controls")]: {
|
|
@@ -6460,13 +6466,9 @@ const EndpointPage = () => {
|
|
|
6460
6466
|
[scope("docs-endpoint-container")]: {
|
|
6461
6467
|
display: "flex",
|
|
6462
6468
|
flexDirection: "column",
|
|
6463
|
-
gap: token.marginLG
|
|
6464
|
-
height: "100%"
|
|
6465
|
-
},
|
|
6466
|
-
[scope("content")]: {
|
|
6467
|
-
width: "100%",
|
|
6468
|
-
height: "100%"
|
|
6469
|
+
gap: token.marginLG
|
|
6469
6470
|
},
|
|
6471
|
+
[scope("content")]: { width: "100%" },
|
|
6470
6472
|
[scope("code")]: {
|
|
6471
6473
|
background: "unset",
|
|
6472
6474
|
borderRadius: token.borderRadius,
|
|
@@ -6708,12 +6710,12 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
|
|
|
6708
6710
|
const { focusedContent, transformedData } = useStore(({ view }) => view);
|
|
6709
6711
|
const { wrapSSR, cx, token } = useStyle("MainContent", (token, scope) => ({
|
|
6710
6712
|
[scope("inner-doc-container")]: {
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
+
flex: 1,
|
|
6714
|
+
minWidth: 0,
|
|
6715
|
+
height: "100%",
|
|
6716
|
+
overflow: "auto",
|
|
6713
6717
|
borderRadius: token.borderRadius,
|
|
6714
|
-
padding: token.paddingXL
|
|
6715
|
-
overflow: "hidden",
|
|
6716
|
-
minWidth: 0
|
|
6718
|
+
padding: token.paddingXL
|
|
6717
6719
|
},
|
|
6718
6720
|
[scope("centered")]: {
|
|
6719
6721
|
display: "flex",
|
|
@@ -7220,8 +7222,7 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
|
|
|
7220
7222
|
display: "flex",
|
|
7221
7223
|
flexDirection: "column",
|
|
7222
7224
|
gap: token.marginLG,
|
|
7223
|
-
height: "100%"
|
|
7224
|
-
overflowY: "auto"
|
|
7225
|
+
height: "100%"
|
|
7225
7226
|
},
|
|
7226
7227
|
[scope("section")]: {
|
|
7227
7228
|
flexShrink: 0,
|
|
@@ -7229,8 +7230,8 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
|
|
|
7229
7230
|
},
|
|
7230
7231
|
[scope("docs-layout")]: {
|
|
7231
7232
|
display: "flex",
|
|
7232
|
-
|
|
7233
|
-
|
|
7233
|
+
flex: 1,
|
|
7234
|
+
minHeight: 0,
|
|
7234
7235
|
gap: token.marginLG,
|
|
7235
7236
|
width: "100%"
|
|
7236
7237
|
},
|
|
@@ -7625,6 +7626,7 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
|
|
|
7625
7626
|
});
|
|
7626
7627
|
return /* @__PURE__ */ jsxs("div", {
|
|
7627
7628
|
className: cx("documentation-container"),
|
|
7629
|
+
style: { overflow: mode === "view" ? "hidden" : "auto" },
|
|
7628
7630
|
children: [
|
|
7629
7631
|
contextHolder,
|
|
7630
7632
|
/* @__PURE__ */ jsx("div", {
|