@digi-frontend/dgate-api-documentation 2.0.3 → 2.0.5
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 +19 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -791,14 +791,14 @@ const convertToRenderableTreeData = (treeDataStructure, selectedEndpoint, cx) =>
|
|
|
791
791
|
let title;
|
|
792
792
|
if (node.isLeaf && node.method) title = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EndpointItem, {
|
|
793
793
|
method: node.method,
|
|
794
|
-
title: typeof node.title === "string" ? node.title : "",
|
|
794
|
+
title: typeof node.title === "string" ? node.title : "Endpoint Name",
|
|
795
795
|
cx
|
|
796
796
|
});
|
|
797
797
|
else if (node.data && "id" in node.data && "tags" in node.data && !("endpoint" in node.data) && !("tagName" in node.data)) {
|
|
798
798
|
const isHighlighted = isApiSectionHighlighted(node.key, selectedEndpoint);
|
|
799
799
|
title = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text$4, {
|
|
800
800
|
className: cx("api-title") + (isHighlighted ? " highlighted" : ""),
|
|
801
|
-
ellipsis: { tooltip: typeof node.title === "string" ? node.title : "" },
|
|
801
|
+
ellipsis: { tooltip: typeof node.title === "string" ? node.title : "API Name" },
|
|
802
802
|
children: node.title
|
|
803
803
|
});
|
|
804
804
|
} else title = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text$4, {
|
|
@@ -1297,7 +1297,9 @@ const ApiCard = ({ api, viewStyle }) => {
|
|
|
1297
1297
|
borderRadius: token$2.borderRadius,
|
|
1298
1298
|
border: `${token$2.lineWidth}rem solid ${token$2.Button?.defaultBorderColor}`,
|
|
1299
1299
|
paddingRight: token$2.Button?.paddingInline,
|
|
1300
|
-
paddingLeft: token$2.Button?.paddingInline
|
|
1300
|
+
paddingLeft: token$2.Button?.paddingInline,
|
|
1301
|
+
background: token$2.Button?.defaultBg,
|
|
1302
|
+
"&:hover": { background: token$2.Button?.defaultBg }
|
|
1301
1303
|
},
|
|
1302
1304
|
[scope("list-content")]: {
|
|
1303
1305
|
display: "flex",
|
|
@@ -1423,7 +1425,6 @@ const ApiCard = ({ api, viewStyle }) => {
|
|
|
1423
1425
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltippedText, { text: api?.summary || "Endpoint Name" })
|
|
1424
1426
|
})]
|
|
1425
1427
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
|
|
1426
|
-
variant: "outlined",
|
|
1427
1428
|
className: cx("list-see-details"),
|
|
1428
1429
|
onClick: handleOpenEndPointView,
|
|
1429
1430
|
children: "See Details"
|
|
@@ -2360,7 +2361,7 @@ const DocumentationLayout = ({ data }) => {
|
|
|
2360
2361
|
selectedApi,
|
|
2361
2362
|
selectFirstApi
|
|
2362
2363
|
]);
|
|
2363
|
-
const { cx } = useStyle("
|
|
2364
|
+
const { cx } = useStyle("APIDocumentationLayout", (token$1, scope) => ({
|
|
2364
2365
|
[scope("container")]: {
|
|
2365
2366
|
display: "flex",
|
|
2366
2367
|
flexDirection: "column",
|
|
@@ -2378,16 +2379,19 @@ const DocumentationLayout = ({ data }) => {
|
|
|
2378
2379
|
width: "100%"
|
|
2379
2380
|
}
|
|
2380
2381
|
}));
|
|
2381
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_nextjs_registry.AntdRegistry, { children: /* @__PURE__ */ (0, react_jsx_runtime.
|
|
2382
|
-
|
|
2383
|
-
children:
|
|
2384
|
-
className: cx("
|
|
2385
|
-
children: [
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2382
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_nextjs_registry.AntdRegistry, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.ConfigProvider, {
|
|
2383
|
+
prefixCls: "isolated",
|
|
2384
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2385
|
+
className: cx("container"),
|
|
2386
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Header, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2387
|
+
className: cx("layout"),
|
|
2388
|
+
children: [
|
|
2389
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Sidebar, {}),
|
|
2390
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MainContent, {}),
|
|
2391
|
+
focusedContent === "ENDPOINT" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodeboxSidebar_default, {})
|
|
2392
|
+
]
|
|
2393
|
+
})]
|
|
2394
|
+
})
|
|
2391
2395
|
}) });
|
|
2392
2396
|
};
|
|
2393
2397
|
|