@digi-frontend/dgate-api-documentation 2.0.1-test.15 → 2.0.1-test.17
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 +30 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -31,7 +31,6 @@ const react_jsx_runtime = __toESM(require("react/jsx-runtime"));
|
|
|
31
31
|
const zustand = __toESM(require("zustand"));
|
|
32
32
|
const zustand_middleware = __toESM(require("zustand/middleware"));
|
|
33
33
|
const zustand_middleware_immer = __toESM(require("zustand/middleware/immer"));
|
|
34
|
-
const nanoid = __toESM(require("nanoid"));
|
|
35
34
|
const __ant_design_nextjs_registry = __toESM(require("@ant-design/nextjs-registry"));
|
|
36
35
|
|
|
37
36
|
//#region src/hooks/useStyle.ts
|
|
@@ -149,6 +148,31 @@ const createStore = (set) => ({
|
|
|
149
148
|
const useStore = (0, zustand.create)()((0, zustand_middleware.devtools)((0, zustand_middleware_immer.immer)(createStore), { name: "dgate-docs-store" }));
|
|
150
149
|
var store_default = useStore;
|
|
151
150
|
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/assets/Minify.svg
|
|
153
|
+
var _path;
|
|
154
|
+
function _extends() {
|
|
155
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
156
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
157
|
+
var t = arguments[e];
|
|
158
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
159
|
+
}
|
|
160
|
+
return n;
|
|
161
|
+
}, _extends.apply(null, arguments);
|
|
162
|
+
}
|
|
163
|
+
var SvgMinify = function SvgMinify$1(props) {
|
|
164
|
+
return /* @__PURE__ */ react.createElement("svg", _extends({
|
|
165
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
166
|
+
width: 16,
|
|
167
|
+
height: 16,
|
|
168
|
+
fill: "none"
|
|
169
|
+
}, props), _path || (_path = /* @__PURE__ */ react.createElement("path", {
|
|
170
|
+
stroke: "currentcolor",
|
|
171
|
+
d: "m6 11.334 2-2 2 2M6 4.666l2 2 2-2"
|
|
172
|
+
})));
|
|
173
|
+
};
|
|
174
|
+
var Minify_default = SvgMinify;
|
|
175
|
+
|
|
152
176
|
//#endregion
|
|
153
177
|
//#region src/theme/light.json
|
|
154
178
|
var token = {
|
|
@@ -525,7 +549,7 @@ const buildTreeDataStructure = (data) => {
|
|
|
525
549
|
selectable: true,
|
|
526
550
|
data: api,
|
|
527
551
|
children: Object.entries(api.tags).map(([tag, endpoints]) => {
|
|
528
|
-
const tagId = `tag-${
|
|
552
|
+
const tagId = `tag-${tag}`;
|
|
529
553
|
return {
|
|
530
554
|
title: tag,
|
|
531
555
|
key: tagId,
|
|
@@ -849,7 +873,7 @@ const Sidebar = () => {
|
|
|
849
873
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
|
|
850
874
|
onClick: collapseAll,
|
|
851
875
|
title: "Collapse All",
|
|
852
|
-
|
|
876
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Minify_default, {})
|
|
853
877
|
})]
|
|
854
878
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tree, {
|
|
855
879
|
showLine: { showLeafIcon: false },
|
|
@@ -902,17 +926,17 @@ const transformOpenApiToDocs = (api) => {
|
|
|
902
926
|
if (!groupedPathsByTags[tag]) groupedPathsByTags[tag] = [];
|
|
903
927
|
groupedPathsByTags[tag].push({
|
|
904
928
|
...entry,
|
|
905
|
-
id: `endpoint-${
|
|
929
|
+
id: `endpoint-${entry.summary}`
|
|
906
930
|
});
|
|
907
931
|
});
|
|
908
932
|
else groupedPathsByTags.default.push({
|
|
909
933
|
...entry,
|
|
910
|
-
id: `endpoint-${
|
|
934
|
+
id: `endpoint-${entry.summary}`
|
|
911
935
|
});
|
|
912
936
|
}
|
|
913
937
|
return {
|
|
914
938
|
...api.info,
|
|
915
|
-
id: `api-${
|
|
939
|
+
id: `api-${api.info.title}`,
|
|
916
940
|
contextPath,
|
|
917
941
|
tags: groupedPathsByTags,
|
|
918
942
|
servers: api.servers
|