@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.cjs
CHANGED
|
@@ -637,7 +637,8 @@ const getSidebarStyles$1 = (token, scope) => ({
|
|
|
637
637
|
backgroundColor: token.colorBgContainer,
|
|
638
638
|
overflowY: "auto",
|
|
639
639
|
overflowX: "clip",
|
|
640
|
-
borderRadius: token.borderRadius
|
|
640
|
+
borderRadius: token.borderRadius,
|
|
641
|
+
height: "100%"
|
|
641
642
|
},
|
|
642
643
|
[scope("content")]: { padding: token.padding },
|
|
643
644
|
[scope("controls")]: {
|
|
@@ -1284,10 +1285,7 @@ const ApiCard = ({ api, viewStyle }) => {
|
|
|
1284
1285
|
fontFamily: token.fontFamily
|
|
1285
1286
|
},
|
|
1286
1287
|
[scope("grid-card")]: {
|
|
1287
|
-
width: "
|
|
1288
|
-
flex: "1 1 17.5rem",
|
|
1289
|
-
minWidth: "17.5rem",
|
|
1290
|
-
height: "100%",
|
|
1288
|
+
width: "100%",
|
|
1291
1289
|
borderRadius: token.borderRadiusLG
|
|
1292
1290
|
},
|
|
1293
1291
|
[scope("grid-title")]: {
|
|
@@ -1705,10 +1703,21 @@ const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, vi
|
|
|
1705
1703
|
level: 4,
|
|
1706
1704
|
children: tagName
|
|
1707
1705
|
}),
|
|
1708
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1706
|
+
viewStyle === "grid" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Row, {
|
|
1707
|
+
gutter: [24, 24],
|
|
1708
|
+
children: apis.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Col, {
|
|
1709
|
+
xs: 24,
|
|
1710
|
+
sm: 24,
|
|
1711
|
+
md: 12,
|
|
1712
|
+
lg: 8,
|
|
1713
|
+
xl: 8,
|
|
1714
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiCard, {
|
|
1715
|
+
api: item,
|
|
1716
|
+
viewStyle
|
|
1717
|
+
})
|
|
1718
|
+
}, `${tagName}_renderer_${item.id}_${item.method}_${item.path}`))
|
|
1719
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Flex, {
|
|
1720
|
+
vertical: true,
|
|
1712
1721
|
children: apis.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiCard, {
|
|
1713
1722
|
api: item,
|
|
1714
1723
|
viewStyle
|
|
@@ -1817,13 +1826,9 @@ const EndpointPage$1 = () => {
|
|
|
1817
1826
|
[scope("docs-endpoint-container")]: {
|
|
1818
1827
|
display: "flex",
|
|
1819
1828
|
flexDirection: "column",
|
|
1820
|
-
gap: token.marginLG
|
|
1821
|
-
height: "100%"
|
|
1822
|
-
},
|
|
1823
|
-
[scope("content")]: {
|
|
1824
|
-
width: "100%",
|
|
1825
|
-
height: "100%"
|
|
1829
|
+
gap: token.marginLG
|
|
1826
1830
|
},
|
|
1831
|
+
[scope("content")]: { width: "100%" },
|
|
1827
1832
|
[scope("code")]: {
|
|
1828
1833
|
background: "unset",
|
|
1829
1834
|
borderRadius: token.borderRadius,
|
|
@@ -2035,9 +2040,9 @@ const MainContent$1 = ({ searchEnabled, handleResetSearch, handleVisitLandingPag
|
|
|
2035
2040
|
const { wrapSSR, cx, token } = useStyle("MainContent", (token, scope) => ({
|
|
2036
2041
|
[scope("inner-doc-container")]: {
|
|
2037
2042
|
backgroundColor: token.colorBgContainer,
|
|
2043
|
+
flex: 1,
|
|
2044
|
+
minWidth: 0,
|
|
2038
2045
|
height: "100%",
|
|
2039
|
-
width: "100%",
|
|
2040
|
-
maxHeight: "100%",
|
|
2041
2046
|
overflow: "auto",
|
|
2042
2047
|
borderRadius: token.borderRadius,
|
|
2043
2048
|
padding: token.paddingXL
|
|
@@ -6074,9 +6079,10 @@ const filterTreeData = (data, searchText) => {
|
|
|
6074
6079
|
const getSidebarStyles = (token, scope) => ({
|
|
6075
6080
|
[scope("sider")]: {
|
|
6076
6081
|
backgroundColor: token.colorBgElevated,
|
|
6082
|
+
overflowY: "auto",
|
|
6077
6083
|
overflowX: "clip",
|
|
6078
6084
|
borderRadius: token.borderRadius,
|
|
6079
|
-
height: "
|
|
6085
|
+
height: "100%"
|
|
6080
6086
|
},
|
|
6081
6087
|
[scope("content")]: { padding: token.padding },
|
|
6082
6088
|
[scope("controls")]: {
|
|
@@ -6489,13 +6495,9 @@ const EndpointPage = () => {
|
|
|
6489
6495
|
[scope("docs-endpoint-container")]: {
|
|
6490
6496
|
display: "flex",
|
|
6491
6497
|
flexDirection: "column",
|
|
6492
|
-
gap: token.marginLG
|
|
6493
|
-
height: "100%"
|
|
6494
|
-
},
|
|
6495
|
-
[scope("content")]: {
|
|
6496
|
-
width: "100%",
|
|
6497
|
-
height: "100%"
|
|
6498
|
+
gap: token.marginLG
|
|
6498
6499
|
},
|
|
6500
|
+
[scope("content")]: { width: "100%" },
|
|
6499
6501
|
[scope("code")]: {
|
|
6500
6502
|
background: "unset",
|
|
6501
6503
|
borderRadius: token.borderRadius,
|
|
@@ -6737,12 +6739,12 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
|
|
|
6737
6739
|
const { focusedContent, transformedData } = useStore(({ view }) => view);
|
|
6738
6740
|
const { wrapSSR, cx, token } = useStyle("MainContent", (token, scope) => ({
|
|
6739
6741
|
[scope("inner-doc-container")]: {
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
+
flex: 1,
|
|
6743
|
+
minWidth: 0,
|
|
6744
|
+
height: "100%",
|
|
6745
|
+
overflow: "auto",
|
|
6742
6746
|
borderRadius: token.borderRadius,
|
|
6743
|
-
padding: token.paddingXL
|
|
6744
|
-
overflow: "hidden",
|
|
6745
|
-
minWidth: 0
|
|
6747
|
+
padding: token.paddingXL
|
|
6746
6748
|
},
|
|
6747
6749
|
[scope("centered")]: {
|
|
6748
6750
|
display: "flex",
|
|
@@ -7249,8 +7251,7 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
|
|
|
7249
7251
|
display: "flex",
|
|
7250
7252
|
flexDirection: "column",
|
|
7251
7253
|
gap: token.marginLG,
|
|
7252
|
-
height: "100%"
|
|
7253
|
-
overflowY: "auto"
|
|
7254
|
+
height: "100%"
|
|
7254
7255
|
},
|
|
7255
7256
|
[scope("section")]: {
|
|
7256
7257
|
flexShrink: 0,
|
|
@@ -7258,8 +7259,8 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
|
|
|
7258
7259
|
},
|
|
7259
7260
|
[scope("docs-layout")]: {
|
|
7260
7261
|
display: "flex",
|
|
7261
|
-
|
|
7262
|
-
|
|
7262
|
+
flex: 1,
|
|
7263
|
+
minHeight: 0,
|
|
7263
7264
|
gap: token.marginLG,
|
|
7264
7265
|
width: "100%"
|
|
7265
7266
|
},
|
|
@@ -7654,6 +7655,7 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
|
|
|
7654
7655
|
});
|
|
7655
7656
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7656
7657
|
className: cx("documentation-container"),
|
|
7658
|
+
style: { overflow: mode === "view" ? "hidden" : "auto" },
|
|
7657
7659
|
children: [
|
|
7658
7660
|
contextHolder,
|
|
7659
7661
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|