@digi-frontend/dgate-api-documentation 4.0.0-beta.0 → 4.0.0-beta.3

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 CHANGED
@@ -1,4 +1,5 @@
1
- //#region rolldown:runtime
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region \0rolldown/runtime.js
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -6,16 +7,12 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __getProtoOf = Object.getPrototypeOf;
7
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
9
  var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
10
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
+ get: ((k) => from[k]).bind(null, key),
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
19
16
  }
20
17
  return to;
21
18
  };
@@ -23,29 +20,28 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
20
  value: mod,
24
21
  enumerable: true
25
22
  }) : target, mod));
26
-
27
23
  //#endregion
28
24
  let zustand = require("zustand");
29
25
  let zustand_middleware = require("zustand/middleware");
30
26
  let zustand_middleware_immer = require("zustand/middleware/immer");
31
27
  let react = require("react");
28
+ let react$1 = __toESM(react, 1);
32
29
  react = __toESM(react);
33
30
  let antd = require("antd");
34
- let __ant_design_icons = require("@ant-design/icons");
31
+ let _ant_design_icons = require("@ant-design/icons");
35
32
  let react_jsx_runtime = require("react/jsx-runtime");
36
- let __ant_design_cssinjs = require("@ant-design/cssinjs");
33
+ let _ant_design_cssinjs = require("@ant-design/cssinjs");
37
34
  let antd_es_typography_Text = require("antd/es/typography/Text");
38
- antd_es_typography_Text = __toESM(antd_es_typography_Text);
35
+ antd_es_typography_Text = __toESM(antd_es_typography_Text, 1);
39
36
  let re_resizable = require("re-resizable");
40
37
  let antd_es_typography_Title = require("antd/es/typography/Title");
41
- antd_es_typography_Title = __toESM(antd_es_typography_Title);
38
+ antd_es_typography_Title = __toESM(antd_es_typography_Title, 1);
42
39
  let nanoid = require("nanoid");
43
40
  let react_syntax_highlighter = require("react-syntax-highlighter");
44
- let react_syntax_highlighter_dist_esm_languages_hljs_json = require("react-syntax-highlighter/dist/esm/languages/hljs/json");
45
- react_syntax_highlighter_dist_esm_languages_hljs_json = __toESM(react_syntax_highlighter_dist_esm_languages_hljs_json);
46
- let react_syntax_highlighter_dist_esm_styles_hljs = require("react-syntax-highlighter/dist/esm/styles/hljs");
47
- react_syntax_highlighter_dist_esm_styles_hljs = __toESM(react_syntax_highlighter_dist_esm_styles_hljs);
48
-
41
+ let react_syntax_highlighter_dist_esm_languages_hljs_json_js = require("react-syntax-highlighter/dist/esm/languages/hljs/json.js");
42
+ react_syntax_highlighter_dist_esm_languages_hljs_json_js = __toESM(react_syntax_highlighter_dist_esm_languages_hljs_json_js, 1);
43
+ let react_syntax_highlighter_dist_esm_styles_hljs_index_js = require("react-syntax-highlighter/dist/esm/styles/hljs/index.js");
44
+ react_syntax_highlighter_dist_esm_styles_hljs_index_js = __toESM(react_syntax_highlighter_dist_esm_styles_hljs_index_js, 1);
49
45
  //#region src/store/slices/view.ts
50
46
  const createViewSlice = (set) => ({ view: {
51
47
  selectedNodeKey: null,
@@ -101,32 +97,28 @@ const createViewSlice = (set) => ({ view: {
101
97
  state.view.selectedStatusCode = code;
102
98
  })
103
99
  } });
104
-
105
100
  //#endregion
106
101
  //#region src/store/index.ts
107
102
  const createStore = (set) => ({ ...createViewSlice(set) });
108
103
  const useStore = (0, zustand.create)()((0, zustand_middleware.devtools)((0, zustand_middleware_immer.immer)(createStore), { name: "dgate-docs-store" }));
109
- var store_default = useStore;
110
-
111
104
  //#endregion
112
105
  //#region src/hooks/useStyle.ts
113
106
  function useStyle(componentName, stylesFn) {
114
- const { token: token$1, theme: theme$2, hashId } = antd.theme.useToken();
107
+ const { token, theme, hashId } = antd.theme.useToken();
115
108
  const scope = (className) => `.${hashId}.${componentName}-${className}`;
116
109
  const cx = (...classes) => classes.map((cls) => `${componentName}-${cls} ${hashId}`).join(" ");
117
110
  return {
118
- wrapSSR: (0, __ant_design_cssinjs.useStyleRegister)({
119
- theme: theme$2,
120
- token: token$1,
111
+ wrapSSR: (0, _ant_design_cssinjs.useStyleRegister)({
112
+ theme,
113
+ token,
121
114
  path: [componentName]
122
- }, () => stylesFn(token$1, scope)),
115
+ }, () => stylesFn(token, scope)),
123
116
  cx,
124
117
  scope,
125
- token: token$1,
118
+ token,
126
119
  hashId
127
120
  };
128
121
  }
129
-
130
122
  //#endregion
131
123
  //#region src/theme/light.json
132
124
  var token = {
@@ -457,41 +449,40 @@ var token = {
457
449
  "marginXXXL": 60,
458
450
  "marginXXXXL": 72
459
451
  };
460
-
461
452
  //#endregion
462
453
  //#region src/view/helper/sidebar.utils.ts
463
454
  const methodColors = {
464
455
  GET: {
465
- bg: token.colorPrimaryBgHover,
456
+ bg: "transparent",
466
457
  color: token.colorPrimary
467
458
  },
468
459
  POST: {
469
- bg: token.colorSuccess,
470
- color: "#FFFFFF"
460
+ bg: "transparent",
461
+ color: token.colorSuccess
471
462
  },
472
463
  DELETE: {
473
- bg: token.colorErrorBg,
464
+ bg: "transparent",
474
465
  color: token.colorError
475
466
  },
476
467
  PUT: {
477
- bg: token.colorWarningBg,
468
+ bg: "transparent",
478
469
  color: token.colorWarning
479
470
  },
480
471
  PATCH: {
481
- bg: token["volcano.1"],
472
+ bg: "transparent",
482
473
  color: token["volcano.5"]
483
474
  },
484
475
  OPTIONS: {
485
- bg: token["geekblue.2"],
476
+ bg: "transparent",
486
477
  color: token["geekblue.6"]
487
478
  },
488
479
  HEAD: {
489
- bg: token["purple.1"],
480
+ bg: "transparent",
490
481
  color: token["purple.5"]
491
482
  },
492
483
  TRACE: {
493
- bg: token["cyan.1"],
494
- color: token["cyan.5"]
484
+ bg: "transparent",
485
+ color: token["volcano.4"]
495
486
  }
496
487
  };
497
488
  const darkerMethodColors = {
@@ -528,43 +519,91 @@ const darkerMethodColors = {
528
519
  color: "#FFFFFF"
529
520
  }
530
521
  };
522
+ const sidebarMethodColors = {
523
+ GET: {
524
+ bg: token.colorPrimaryBgHover,
525
+ color: token.colorPrimary
526
+ },
527
+ POST: {
528
+ bg: token.colorSuccessBg,
529
+ color: token.colorSuccess
530
+ },
531
+ DELETE: {
532
+ bg: token.colorErrorBg,
533
+ color: token.colorError
534
+ },
535
+ PUT: {
536
+ bg: token.colorWarningBg,
537
+ color: token.colorWarning
538
+ },
539
+ PATCH: {
540
+ bg: token["volcano.1"],
541
+ color: token["volcano.5"]
542
+ },
543
+ OPTIONS: {
544
+ bg: token["geekblue.2"],
545
+ color: token["geekblue.6"]
546
+ },
547
+ HEAD: {
548
+ bg: token["purple.1"],
549
+ color: token["purple.5"]
550
+ },
551
+ TRACE: {
552
+ bg: token["volcano.1"],
553
+ color: token["volcano.4"]
554
+ }
555
+ };
531
556
  const buildTreeDataStructure = (data) => {
532
557
  if (!data) return [];
533
558
  return data.map((api) => {
534
559
  const tagEntries = Object.entries(api.tags);
560
+ const defaultTag = tagEntries.find(([tag]) => tag.toLowerCase() === "default");
561
+ const nonDefaultTags = tagEntries.filter(([tag]) => tag.toLowerCase() !== "default");
562
+ const defaultEndpoints = defaultTag ? defaultTag[1].map((endpoint) => ({
563
+ title: endpoint.summary,
564
+ key: endpoint.id,
565
+ isLeaf: true,
566
+ selectable: true,
567
+ method: endpoint.method,
568
+ data: {
569
+ endpoint,
570
+ api,
571
+ tagName: "default",
572
+ parentApiId: api.id
573
+ }
574
+ })) : [];
575
+ const tagNodes = nonDefaultTags.map(([tag, endpoints]) => {
576
+ const tagId = `tag-${api.id}-${tag.replace(/\s+/g, "-").toLowerCase()}`;
577
+ return {
578
+ title: tag,
579
+ key: tagId,
580
+ selectable: true,
581
+ data: {
582
+ tagName: tag,
583
+ apiData: api
584
+ },
585
+ children: endpoints.map((endpoint) => ({
586
+ title: endpoint.summary,
587
+ key: endpoint.id,
588
+ isLeaf: true,
589
+ selectable: true,
590
+ method: endpoint.method,
591
+ data: {
592
+ endpoint,
593
+ api,
594
+ tagName: tag,
595
+ parentApiId: api.id,
596
+ tagId
597
+ }
598
+ }))
599
+ };
600
+ });
535
601
  return {
536
602
  title: api.title,
537
603
  key: api.id,
538
604
  selectable: true,
539
605
  data: api,
540
- children: tagEntries.map(([tag, endpoints]) => {
541
- const tagId = `tag-${api.id}-${tag.replace(/\s+/g, "-").toLowerCase()}`;
542
- return {
543
- title: tag,
544
- key: tagId,
545
- selectable: true,
546
- data: {
547
- tagName: tag,
548
- apiData: api
549
- },
550
- children: endpoints.map((endpoint) => {
551
- return {
552
- title: endpoint.summary,
553
- key: endpoint.id,
554
- isLeaf: true,
555
- selectable: true,
556
- method: endpoint.method,
557
- data: {
558
- endpoint,
559
- api,
560
- tagName: tag,
561
- parentApiId: api.id,
562
- tagId
563
- }
564
- };
565
- })
566
- };
567
- })
606
+ children: [...tagNodes, ...defaultEndpoints]
568
607
  };
569
608
  });
570
609
  };
@@ -622,18 +661,18 @@ const filterTreeData = (data, searchText) => {
622
661
  };
623
662
  return data.map((node) => filterNode(node)).filter((node) => node !== null);
624
663
  };
625
- const getSidebarStyles = (token$1, scope) => ({
664
+ const getSidebarStyles = (token, scope) => ({
626
665
  [scope("sider")]: {
627
- backgroundColor: token$1.colorBgElevated,
666
+ backgroundColor: token.colorBgElevated,
628
667
  overflowX: "clip",
629
- borderRadius: token$1.borderRadius,
668
+ borderRadius: token.borderRadius,
630
669
  height: "auto"
631
670
  },
632
- [scope("content")]: { padding: token$1.padding },
671
+ [scope("content")]: { padding: token.padding },
633
672
  [scope("controls")]: {
634
673
  display: "flex",
635
- gap: token$1.marginXS,
636
- marginBottom: token$1.marginSM
674
+ gap: token.marginXS,
675
+ marginBottom: token.marginSM
637
676
  },
638
677
  [scope("search-input")]: { flex: 1 },
639
678
  [scope("tree")]: {
@@ -659,15 +698,17 @@ const getSidebarStyles = (token$1, scope) => ({
659
698
  width: "100%",
660
699
  padding: 0
661
700
  },
662
- "& .ant-tree-switcher": { backgroundColor: token$1.colorBgElevated }
701
+ "& .ant-tree-switcher": { backgroundColor: token.colorBgElevated }
663
702
  },
664
703
  [scope("endpoint-item")]: {
665
704
  display: "flex",
666
705
  alignItems: "center",
667
- gap: token$1.marginXS,
706
+ gap: token.marginXS,
668
707
  width: "100%",
669
708
  maxWidth: "100%",
670
- minWidth: "100%"
709
+ minWidth: "100%",
710
+ paddingLeft: token.marginXS,
711
+ paddingRight: token.marginXS
671
712
  },
672
713
  [scope("method-tag")]: {
673
714
  width: 51,
@@ -690,26 +731,26 @@ const getSidebarStyles = (token$1, scope) => ({
690
731
  display: "block"
691
732
  },
692
733
  [scope("tag-title")]: {
693
- color: token$1.colorText,
734
+ color: token.colorText,
694
735
  maxWidth: "100%",
695
736
  display: "block",
696
737
  flex: 1
697
738
  },
698
739
  [scope("api-title")]: {
699
740
  flex: 1,
700
- color: token$1.colorText,
741
+ color: token.colorText,
701
742
  maxWidth: "100%",
702
743
  display: "block",
703
- padding: 0,
744
+ paddingLeft: "4px",
745
+ paddingRight: "4px",
704
746
  margin: 0
705
747
  }
706
748
  });
707
-
708
749
  //#endregion
709
750
  //#region src/view/helper/sidebar.components.tsx
710
751
  const { Text: Text$3 } = antd.Typography;
711
752
  const EndpointItem = ({ method, title, cx, isSelected = false }) => {
712
- const methodStyle = (isSelected ? darkerMethodColors : methodColors)[method];
753
+ const methodStyle = (isSelected ? darkerMethodColors : sidebarMethodColors)[method];
713
754
  const isPost = method?.toUpperCase() === "POST";
714
755
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
715
756
  className: `${cx("endpoint-item")}${isSelected ? ` ${cx("endpoint-item-selected")}` : ""}`,
@@ -759,7 +800,6 @@ const convertToRenderableTreeData = (treeDataStructure, selectedEndpoint, cx) =>
759
800
  };
760
801
  return treeDataStructure.map(renderNode);
761
802
  };
762
-
763
803
  //#endregion
764
804
  //#region src/hooks/useNodeSelection.ts
765
805
  const useNodeSelection = () => {
@@ -865,32 +905,23 @@ const useNodeSelection = () => {
865
905
  selectPreSelectedApi
866
906
  };
867
907
  };
868
-
869
908
  //#endregion
870
- //#region src/assets/Minify.svg
871
- var _path$5;
872
- function _extends$5() {
873
- return _extends$5 = Object.assign ? Object.assign.bind() : function(n) {
874
- for (var e = 1; e < arguments.length; e++) {
875
- var t = arguments[e];
876
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
877
- }
878
- return n;
879
- }, _extends$5.apply(null, arguments);
880
- }
881
- var SvgMinify = function SvgMinify$1(props) {
882
- return /* @__PURE__ */ react.createElement("svg", _extends$5({
883
- xmlns: "http://www.w3.org/2000/svg",
884
- width: 16,
885
- height: 16,
886
- fill: "none"
887
- }, props), _path$5 || (_path$5 = /* @__PURE__ */ react.createElement("path", {
888
- stroke: "currentcolor",
889
- d: "m6 11.334 2-2 2 2M6 4.666l2 2 2-2"
890
- })));
891
- };
892
- var Minify_default = SvgMinify;
893
-
909
+ //#region src/assets/Minify.tsx
910
+ const Minify = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
911
+ width: "16",
912
+ height: "16",
913
+ viewBox: "0 0 16 16",
914
+ fill: "none",
915
+ xmlns: "http://www.w3.org/2000/svg",
916
+ ...props,
917
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
918
+ d: "M6 11.334L8 9.33398L10 11.334",
919
+ stroke: "currentcolor"
920
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
921
+ d: "M6 4.66602L8 6.66602L10 4.66602",
922
+ stroke: "currentcolor"
923
+ })]
924
+ });
894
925
  //#endregion
895
926
  //#region src/view/components/NoDataIcon.tsx
896
927
  const NoDataIcon = ({ width = 298, height = 237, fill = "#F1F5FD", stroke = "#E0E9F9", ...props }) => {
@@ -1058,8 +1089,6 @@ const NoDataIcon = ({ width = 298, height = 237, fill = "#F1F5FD", stroke = "#E0
1058
1089
  ]
1059
1090
  });
1060
1091
  };
1061
- var NoDataIcon_default = NoDataIcon;
1062
-
1063
1092
  //#endregion
1064
1093
  //#region src/view/components/Sidebar.tsx
1065
1094
  const { useBreakpoint: useBreakpoint$4 } = antd.Grid;
@@ -1067,9 +1096,9 @@ const Sidebar = ({ searchValue, setSearchValue, onNodeSelect }) => {
1067
1096
  const expandedKeys = useStore((state) => state.view.expandedKeys);
1068
1097
  const { selectedNodeKey, selectedEndpoint, builtTreeData, setExpandedKeys, setSelectedNodeKey } = useStore(({ view }) => view);
1069
1098
  const { selectNodeByKey, clearSelection } = useNodeSelection();
1070
- const [autoExpandParent, setAutoExpandParent] = (0, react.useState)(true);
1099
+ const [autoExpandParent, setAutoExpandParent] = (0, react$1.useState)(true);
1071
1100
  const isMobile = !useBreakpoint$4().md;
1072
- const { wrapSSR, cx, token: token$1 } = useStyle("Sidebar", getSidebarStyles);
1101
+ const { wrapSSR, cx, token } = useStyle("Sidebar", getSidebarStyles);
1073
1102
  const handleSearch = (value) => {
1074
1103
  if (value && builtTreeData) {
1075
1104
  setExpandedKeys(getAllTreeKeys(builtTreeData));
@@ -1081,7 +1110,7 @@ const Sidebar = ({ searchValue, setSearchValue, onNodeSelect }) => {
1081
1110
  setAutoExpandParent(false);
1082
1111
  }
1083
1112
  };
1084
- const renderTreeData = (0, react.useMemo)(() => {
1113
+ const renderTreeData = (0, react$1.useMemo)(() => {
1085
1114
  if (!builtTreeData) return [];
1086
1115
  return convertToRenderableTreeData(builtTreeData, selectedEndpoint, cx);
1087
1116
  }, [
@@ -1089,7 +1118,7 @@ const Sidebar = ({ searchValue, setSearchValue, onNodeSelect }) => {
1089
1118
  selectedEndpoint,
1090
1119
  cx
1091
1120
  ]);
1092
- const filteredTreeData = (0, react.useMemo)(() => {
1121
+ const filteredTreeData = (0, react$1.useMemo)(() => {
1093
1122
  if (!searchValue) return renderTreeData;
1094
1123
  if (!builtTreeData) return [];
1095
1124
  return convertToRenderableTreeData(filterTreeData(builtTreeData, searchValue), selectedEndpoint, cx);
@@ -1126,7 +1155,7 @@ const Sidebar = ({ searchValue, setSearchValue, onNodeSelect }) => {
1126
1155
  onChange: (e) => handleSearch(e.target.value),
1127
1156
  allowClear: true,
1128
1157
  className: cx("search-input"),
1129
- addonAfter: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.SearchOutlined, {})
1158
+ addonAfter: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.SearchOutlined, {})
1130
1159
  })
1131
1160
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
1132
1161
  title: "Collapse All",
@@ -1134,13 +1163,13 @@ const Sidebar = ({ searchValue, setSearchValue, onNodeSelect }) => {
1134
1163
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
1135
1164
  onClick: collapseAll,
1136
1165
  title: "Collapse All",
1137
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Minify_default, {})
1166
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Minify, {})
1138
1167
  })
1139
1168
  })]
1140
1169
  }), filteredTreeData?.length ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tree, {
1141
1170
  showLine: { showLeafIcon: false },
1142
1171
  showIcon: false,
1143
- switcherIcon: (nodeProps) => nodeProps.isLeaf ? null : nodeProps.expanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.MinusSquareOutlined, { style: { fontSize: 12 } }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.PlusSquareOutlined, { style: { fontSize: 12 } }),
1172
+ switcherIcon: (nodeProps) => nodeProps.isLeaf ? null : nodeProps.expanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.MinusSquareOutlined, { style: { fontSize: 12 } }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.PlusSquareOutlined, { style: { fontSize: 12 } }),
1144
1173
  expandedKeys,
1145
1174
  autoExpandParent,
1146
1175
  selectedKeys: [selectedNodeKey || ""],
@@ -1159,30 +1188,30 @@ const Sidebar = ({ searchValue, setSearchValue, onNodeSelect }) => {
1159
1188
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd.Flex, {
1160
1189
  justify: "center",
1161
1190
  align: "center",
1162
- gap: token$1.marginSM,
1191
+ gap: token.marginSM,
1163
1192
  vertical: true,
1164
- style: { marginTop: token$1.paddingXL },
1165
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NoDataIcon_default, {
1166
- stroke: token$1.colorPrimaryHover,
1167
- fill: token$1.colorPrimaryBg,
1193
+ style: { marginTop: token.paddingXL },
1194
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NoDataIcon, {
1195
+ stroke: token.colorPrimaryHover,
1196
+ fill: token.colorPrimaryBg,
1168
1197
  width: "10.375rem",
1169
1198
  height: "8.1875rem"
1170
1199
  }), searchValue.length ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd_es_typography_Text.default, {
1171
1200
  style: {
1172
1201
  textAlign: "center",
1173
- fontFamily: token$1.fontFamily,
1202
+ fontFamily: token.fontFamily,
1174
1203
  fontWeight: 400,
1175
- fontSize: token$1.fontSizeLG,
1176
- color: token$1.colorTextTertiary
1204
+ fontSize: token.fontSizeLG,
1205
+ color: token.colorTextTertiary
1177
1206
  },
1178
1207
  children: "No results found"
1179
1208
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd_es_typography_Text.default, {
1180
1209
  style: {
1181
1210
  textAlign: "center",
1182
- fontFamily: token$1.fontFamily,
1211
+ fontFamily: token.fontFamily,
1183
1212
  fontWeight: 400,
1184
- fontSize: token$1.fontSizeLG,
1185
- color: token$1.colorTextTertiary
1213
+ fontSize: token.fontSizeLG,
1214
+ color: token.colorTextTertiary
1186
1215
  },
1187
1216
  children: [
1188
1217
  "No API",
@@ -1222,52 +1251,40 @@ const Sidebar = ({ searchValue, setSearchValue, onNodeSelect }) => {
1222
1251
  children: inner
1223
1252
  }));
1224
1253
  };
1225
-
1226
1254
  //#endregion
1227
- //#region src/assets/link.svg
1228
- var _path$4, _path2$3;
1229
- function _extends$4() {
1230
- return _extends$4 = Object.assign ? Object.assign.bind() : function(n) {
1231
- for (var e = 1; e < arguments.length; e++) {
1232
- var t = arguments[e];
1233
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1234
- }
1235
- return n;
1236
- }, _extends$4.apply(null, arguments);
1237
- }
1238
- var SvgLink = function SvgLink$1(props) {
1239
- return /* @__PURE__ */ react.createElement("svg", _extends$4({
1240
- xmlns: "http://www.w3.org/2000/svg",
1241
- width: 12,
1242
- height: 12,
1243
- fill: "none"
1244
- }, props), _path$4 || (_path$4 = /* @__PURE__ */ react.createElement("path", {
1245
- fill: "#4D75D9",
1246
- d: "M3.875 9.25C2.085 9.25.625 7.79.625 6s1.46-3.25 3.25-3.25c.205 0 .375.17.375.375s-.17.375-.375.375a2.5 2.5 0 0 0 0 5 2.5 2.5 0 0 0 2.5-2.5c0-.205.17-.375.375-.375s.375.17.375.375c0 1.79-1.46 3.25-3.25 3.25"
1247
- })), _path2$3 || (_path2$3 = /* @__PURE__ */ react.createElement("path", {
1248
- fill: "#4D75D9",
1249
- d: "M8 9.375A.38.38 0 0 1 7.625 9c0-.205.17-.375.375-.375A2.63 2.63 0 0 0 10.625 6 2.63 2.63 0 0 0 8 3.375 2.63 2.63 0 0 0 5.375 6c0 .205-.17.375-.375.375A.38.38 0 0 1 4.625 6 3.38 3.38 0 0 1 8 2.625 3.38 3.38 0 0 1 11.375 6 3.38 3.38 0 0 1 8 9.375"
1250
- })));
1251
- };
1252
- var link_default = SvgLink;
1253
-
1255
+ //#region src/assets/link.tsx
1256
+ const Link = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
1257
+ width: "12",
1258
+ height: "12",
1259
+ viewBox: "0 0 12 12",
1260
+ fill: "none",
1261
+ xmlns: "http://www.w3.org/2000/svg",
1262
+ ...props,
1263
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
1264
+ d: "M3.875 9.25C2.085 9.25 0.625 7.79 0.625 6C0.625 4.21 2.085 2.75 3.875 2.75C4.08 2.75 4.25 2.92 4.25 3.125C4.25 3.33 4.08 3.5 3.875 3.5C2.495 3.5 1.375 4.62 1.375 6C1.375 7.38 2.495 8.5 3.875 8.5C5.255 8.5 6.375 7.38 6.375 6C6.375 5.795 6.545 5.625 6.75 5.625C6.955 5.625 7.125 5.795 7.125 6C7.125 7.79 5.665 9.25 3.875 9.25Z",
1265
+ fill: "#4D75D9"
1266
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
1267
+ d: "M8 9.375C7.795 9.375 7.625 9.205 7.625 9C7.625 8.795 7.795 8.625 8 8.625C9.445 8.625 10.625 7.445 10.625 6C10.625 4.555 9.445 3.375 8 3.375C6.555 3.375 5.375 4.555 5.375 6C5.375 6.205 5.205 6.375 5 6.375C4.795 6.375 4.625 6.205 4.625 6C4.625 4.14 6.14 2.625 8 2.625C9.86 2.625 11.375 4.14 11.375 6C11.375 7.86 9.86 9.375 8 9.375Z",
1268
+ fill: "#4D75D9"
1269
+ })]
1270
+ });
1254
1271
  //#endregion
1255
1272
  //#region src/view/components/ApiPage/components/ApiCard.tsx
1256
1273
  const ApiCard = ({ api, viewStyle }) => {
1257
- const { wrapSSR, cx, token: token$1 } = useStyle("DocumentationApiCard", (token$2, scope) => ({
1274
+ const { wrapSSR, cx, token } = useStyle("DocumentationApiCard", (token, scope) => ({
1258
1275
  [scope("method-chip")]: {
1259
1276
  minWidth: "5.375rem",
1260
1277
  width: "fit-content",
1261
- paddingLeft: token$2.marginXS,
1262
- paddingRight: token$2.marginXS,
1278
+ paddingLeft: token.marginXS,
1279
+ paddingRight: token.marginXS,
1263
1280
  display: "flex",
1264
1281
  justifyContent: "center",
1265
1282
  alignItems: "center",
1266
- borderRadius: token$2.borderRadius
1283
+ borderRadius: token.borderRadius
1267
1284
  },
1268
1285
  [scope("list-container")]: {
1269
- paddingTop: token$2.marginXS,
1270
- paddingBottom: token$2.marginXS
1286
+ paddingTop: token.marginXS,
1287
+ paddingBottom: token.marginXS
1271
1288
  },
1272
1289
  [scope("chip-title")]: {
1273
1290
  alignSelf: "center",
@@ -1275,97 +1292,97 @@ const ApiCard = ({ api, viewStyle }) => {
1275
1292
  padding: 0,
1276
1293
  margin: 0,
1277
1294
  lineHeight: "1.375rem",
1278
- fontSize: token$2.fontSize
1295
+ fontSize: token.fontSize
1279
1296
  },
1280
1297
  [scope("list-see-details")]: {
1281
1298
  width: "6.5625rem",
1282
1299
  height: "2rem",
1283
- borderRadius: token$2.borderRadius,
1284
- border: `${token$2.lineWidth}px solid ${token$2.Button?.defaultBorderColor}`,
1285
- paddingRight: token$2.Button?.paddingInline,
1286
- paddingLeft: token$2.Button?.paddingInline,
1287
- background: token$2.Button?.defaultBg,
1288
- "&:hover": { background: token$2.Button?.defaultBg }
1300
+ borderRadius: token.borderRadius,
1301
+ border: `${token.lineWidth}px solid ${token.Button?.defaultBorderColor}`,
1302
+ paddingRight: token.Button?.paddingInline,
1303
+ paddingLeft: token.Button?.paddingInline,
1304
+ background: token.Button?.defaultBg,
1305
+ "&:hover": { background: token.Button?.defaultBg }
1289
1306
  },
1290
1307
  [scope("list-content")]: {
1291
1308
  display: "flex",
1292
- paddingTop: token$2.paddingXXS,
1293
- paddingBottom: token$2.paddingXXS,
1294
- paddingRight: token$2.paddingXS,
1295
- paddingLeft: token$2.paddingXS,
1309
+ paddingTop: token.paddingXXS,
1310
+ paddingBottom: token.paddingXXS,
1311
+ paddingRight: token.paddingXS,
1312
+ paddingLeft: token.paddingXS,
1296
1313
  alignItems: "center",
1297
- gap: token$2.marginXS,
1314
+ gap: token.marginXS,
1298
1315
  alignSelf: "stretch",
1299
1316
  flexDirection: "row",
1300
- borderRadius: token$2.borderRadiusSM,
1301
- border: `1px solid ${token$2.colorBorderSecondary}`,
1317
+ borderRadius: token.borderRadiusSM,
1318
+ border: `1px solid ${token.colorBorderSecondary}`,
1302
1319
  minWidth: "6.25rem",
1303
1320
  maxWidth: "fit-content",
1304
- svg: { path: { fill: token$2.colorPrimary } }
1321
+ svg: { path: { fill: token.colorPrimary } }
1305
1322
  },
1306
1323
  [scope("list-title")]: {
1307
- color: token$2.colorTextHeading,
1308
- fontSize: token$2.fontSizeHeading3,
1309
- fontWeight: token$2.fontWeightStrong,
1310
- lineHeight: token$2.lineHeightHeading3,
1324
+ color: token.colorTextHeading,
1325
+ fontSize: token.fontSizeHeading3,
1326
+ fontWeight: token.fontWeightStrong,
1327
+ lineHeight: token.lineHeightHeading3,
1311
1328
  paddingBottom: 0,
1312
1329
  marginBottom: 0,
1313
- fontFamily: token$2.fontFamily,
1330
+ fontFamily: token.fontFamily,
1314
1331
  cursor: "pointer",
1315
1332
  transition: "color 0.2s ease-in",
1316
1333
  "&:hover": {
1317
- color: `${token$2.colorPrimary} !important`,
1334
+ color: `${token.colorPrimary} !important`,
1318
1335
  textDecoration: "underline"
1319
1336
  }
1320
1337
  },
1321
1338
  [scope("path-name")]: {
1322
- color: token$2.colorText,
1323
- fontSize: token$2.fontSizeSM,
1339
+ color: token.colorText,
1340
+ fontSize: token.fontSizeSM,
1324
1341
  fontWeight: 400,
1325
- fontFamily: token$2.fontFamily
1342
+ fontFamily: token.fontFamily
1326
1343
  },
1327
1344
  [scope("grid-card")]: {
1328
1345
  width: "17.5rem",
1329
1346
  height: "100%",
1330
- borderRadius: token$2.borderRadiusLG
1347
+ borderRadius: token.borderRadiusLG
1331
1348
  },
1332
1349
  [scope("grid-title")]: {
1333
- color: token$2.colorTextHeading,
1334
- fontSize: token$2.fontSizeHeading3,
1335
- fontWeight: token$2.fontWeightStrong,
1336
- lineHeight: token$2.lineHeightHeading3,
1350
+ color: token.colorTextHeading,
1351
+ fontSize: token.fontSizeHeading3,
1352
+ fontWeight: token.fontWeightStrong,
1353
+ lineHeight: token.lineHeightHeading3,
1337
1354
  paddingBottom: 0,
1338
1355
  marginBottom: 0,
1339
- fontFamily: token$2.fontFamily
1356
+ fontFamily: token.fontFamily
1340
1357
  },
1341
1358
  [scope("grid-content")]: {
1342
1359
  display: "flex",
1343
- paddingTop: token$2.paddingXXS,
1344
- paddingBottom: token$2.paddingXXS,
1345
- paddingRight: token$2.paddingXS,
1346
- paddingLeft: token$2.paddingXS,
1360
+ paddingTop: token.paddingXXS,
1361
+ paddingBottom: token.paddingXXS,
1362
+ paddingRight: token.paddingXS,
1363
+ paddingLeft: token.paddingXS,
1347
1364
  alignItems: "center",
1348
- gap: token$2.marginXS,
1365
+ gap: token.marginXS,
1349
1366
  alignSelf: "stretch",
1350
1367
  flexDirection: "row",
1351
- borderRadius: token$2.borderRadiusSM,
1352
- border: `1px solid ${token$2.colorBorderSecondary}`,
1353
- svg: { path: { fill: token$2.colorPrimary } }
1368
+ borderRadius: token.borderRadiusSM,
1369
+ border: `1px solid ${token.colorBorderSecondary}`,
1370
+ svg: { path: { fill: token.colorPrimary } }
1354
1371
  },
1355
1372
  [scope("grid-path-name")]: {
1356
- color: token$2.colorText,
1357
- fontSize: token$2.fontSizeSM,
1373
+ color: token.colorText,
1374
+ fontSize: token.fontSizeSM,
1358
1375
  fontWeight: 400,
1359
- fontFamily: token$2.fontFamily
1376
+ fontFamily: token.fontFamily
1360
1377
  },
1361
1378
  [scope("grid-see-details")]: {
1362
1379
  paddingTop: 0,
1363
1380
  paddingBottom: 0,
1364
1381
  paddingLeft: "0.4375rem",
1365
1382
  paddingRight: "0.4375rem",
1366
- borderRadius: token$2.borderRadiusSM,
1367
- border: `1px solid ${token$2.Button?.defaultBorderColor}`,
1368
- background: token$2.Button?.defaultBg,
1383
+ borderRadius: token.borderRadiusSM,
1384
+ border: `1px solid ${token.Button?.defaultBorderColor}`,
1385
+ background: token.Button?.defaultBg,
1369
1386
  boxShadow: `0 2px 0 0 rgba(0, 0, 0, 0.02)`,
1370
1387
  width: "100%",
1371
1388
  height: "1.5rem"
@@ -1409,7 +1426,7 @@ const ApiCard = ({ api, viewStyle }) => {
1409
1426
  align: "center",
1410
1427
  className: cx("list-container"),
1411
1428
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd.Flex, {
1412
- gap: token$1.marginSM,
1429
+ gap: token.marginSM,
1413
1430
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MethodChip, { method: api.method }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd_es_typography_Title.default, {
1414
1431
  className: cx("list-title"),
1415
1432
  level: 4,
@@ -1424,7 +1441,7 @@ const ApiCard = ({ api, viewStyle }) => {
1424
1441
  }),
1425
1442
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1426
1443
  className: cx("list-content"),
1427
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(link_default, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd_es_typography_Text.default, {
1444
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Link, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd_es_typography_Text.default, {
1428
1445
  className: cx("path-name"),
1429
1446
  children: api?.path
1430
1447
  })]
@@ -1439,7 +1456,7 @@ const ApiCard = ({ api, viewStyle }) => {
1439
1456
  className: cx("grid-card"),
1440
1457
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd.Flex, {
1441
1458
  vertical: true,
1442
- gap: token$1.marginSM,
1459
+ gap: token.marginSM,
1443
1460
  children: [
1444
1461
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MethodChip, { method: api?.method }),
1445
1462
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd_es_typography_Title.default, {
@@ -1449,7 +1466,7 @@ const ApiCard = ({ api, viewStyle }) => {
1449
1466
  }),
1450
1467
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1451
1468
  className: cx("grid-content"),
1452
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(link_default, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd_es_typography_Text.default, {
1469
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Link, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd_es_typography_Text.default, {
1453
1470
  className: cx("grid-path-name"),
1454
1471
  children: api?.path
1455
1472
  })]
@@ -1463,8 +1480,6 @@ const ApiCard = ({ api, viewStyle }) => {
1463
1480
  })
1464
1481
  }));
1465
1482
  };
1466
- var ApiCard_default = ApiCard;
1467
-
1468
1483
  //#endregion
1469
1484
  //#region src/view/components/ApiPage/components/ViewModeApiHeader.tsx
1470
1485
  function formatAuthType(authType) {
@@ -1478,11 +1493,11 @@ function formatAuthType(authType) {
1478
1493
  }
1479
1494
  }
1480
1495
  const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1481
- const { wrapSSR, cx, token: token$1 } = useStyle("ViewModeApiHeader", (token$2, scope) => ({
1496
+ const { wrapSSR, cx } = useStyle("ViewModeApiHeader", (token, scope) => ({
1482
1497
  [scope("root")]: {
1483
1498
  display: "flex",
1484
1499
  flexDirection: "column",
1485
- gap: token$2.marginMD
1500
+ gap: token.marginMD
1486
1501
  },
1487
1502
  [scope("meta-bar")]: {
1488
1503
  display: "flex",
@@ -1498,20 +1513,20 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1498
1513
  display: "flex",
1499
1514
  alignItems: "center",
1500
1515
  paddingRight: 12,
1501
- borderRight: `1px solid ${token$2.colorBorderSecondary}`,
1516
+ borderRight: `1px solid ${token.colorBorderSecondary}`,
1502
1517
  marginRight: 12
1503
1518
  },
1504
1519
  [scope("jws-tag")]: {
1505
1520
  display: "flex",
1506
1521
  alignItems: "center",
1507
1522
  height: 32,
1508
- background: token$2.colorPrimaryBg,
1509
- border: `1px solid ${token$2.colorPrimaryBorder}`,
1523
+ background: token.colorPrimaryBg,
1524
+ border: `1px solid ${token.colorPrimaryBorder}`,
1510
1525
  borderRadius: 6,
1511
1526
  padding: "0 8px",
1512
1527
  fontSize: 12,
1513
1528
  lineHeight: "20px",
1514
- color: token$2.colorPrimary,
1529
+ color: token.colorPrimary,
1515
1530
  fontWeight: 400,
1516
1531
  margin: 0
1517
1532
  },
@@ -1519,14 +1534,14 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1519
1534
  display: "inline-flex",
1520
1535
  alignItems: "center",
1521
1536
  gap: 4,
1522
- background: token$2.colorBgContainer,
1523
- border: `1px solid ${token$2.colorBorder}`,
1537
+ background: token.colorBgContainer,
1538
+ border: `1px solid ${token.colorBorder}`,
1524
1539
  borderRadius: 4,
1525
1540
  padding: "0 8px",
1526
1541
  height: 32,
1527
1542
  fontSize: 12,
1528
1543
  lineHeight: "20px",
1529
- color: token$2.colorText,
1544
+ color: token.colorText,
1530
1545
  margin: 0,
1531
1546
  boxSizing: "border-box"
1532
1547
  },
@@ -1539,8 +1554,8 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1539
1554
  display: "inline-flex",
1540
1555
  alignItems: "center",
1541
1556
  gap: 8,
1542
- background: token$2.colorFillTertiary,
1543
- border: `1px solid ${token$2.colorBorder}`,
1557
+ background: token.colorFillTertiary,
1558
+ border: `1px solid ${token.colorBorder}`,
1544
1559
  borderRadius: 6,
1545
1560
  padding: "0 15px",
1546
1561
  height: 32,
@@ -1549,13 +1564,13 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1549
1564
  },
1550
1565
  [scope("version-icon")]: {
1551
1566
  fontSize: 16,
1552
- color: token$2.colorTextDisabled,
1567
+ color: token.colorTextDisabled,
1553
1568
  display: "flex",
1554
1569
  alignItems: "center"
1555
1570
  },
1556
1571
  [scope("version-text")]: {
1557
1572
  fontSize: 14,
1558
- color: token$2.colorTextDisabled,
1573
+ color: token.colorTextDisabled,
1559
1574
  fontWeight: 400,
1560
1575
  lineHeight: 1
1561
1576
  },
@@ -1569,16 +1584,16 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1569
1584
  justifyContent: "center"
1570
1585
  },
1571
1586
  [scope("toggle-btn-active")]: {
1572
- border: `1px solid ${token$2.colorPrimary} !important`,
1573
- color: `${token$2.colorPrimary} !important`,
1574
- backgroundColor: `${token$2.colorBgContainer} !important`,
1587
+ border: `1px solid ${token.colorPrimary} !important`,
1588
+ color: `${token.colorPrimary} !important`,
1589
+ backgroundColor: `${token.colorBgContainer} !important`,
1575
1590
  zIndex: 1
1576
1591
  },
1577
1592
  [scope("description")]: {
1578
- fontSize: token$2.fontSizeLG,
1579
- color: token$2.colorTextTertiary
1593
+ fontSize: token.fontSizeLG,
1594
+ color: token.colorTextTertiary
1580
1595
  },
1581
- [scope("title")]: { fontFamily: token$2.fontFamily }
1596
+ [scope("title")]: { fontFamily: token.fontFamily }
1582
1597
  }));
1583
1598
  const version = api.relatedVersions?.find((v) => v.apiId === api.currentVersion)?.version || api.version;
1584
1599
  return wrapSSR(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -1613,7 +1628,7 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1613
1628
  className: cx("auth-tag"),
1614
1629
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1615
1630
  className: cx("auth-icon"),
1616
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.SafetyOutlined, {})
1631
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.SafetyOutlined, {})
1617
1632
  }), formatAuthType(api.authType)]
1618
1633
  })
1619
1634
  }),
@@ -1624,7 +1639,7 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1624
1639
  children: [
1625
1640
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1626
1641
  className: cx("version-icon"),
1627
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.InfoCircleOutlined, {})
1642
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.InfoCircleOutlined, {})
1628
1643
  }),
1629
1644
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1630
1645
  className: cx("version-text"),
@@ -1632,7 +1647,7 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1632
1647
  }),
1633
1648
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1634
1649
  className: cx("version-icon"),
1635
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.DownOutlined, {})
1650
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.DownOutlined, {})
1636
1651
  })
1637
1652
  ]
1638
1653
  })
@@ -1642,12 +1657,12 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1642
1657
  className: cx("view-toggle"),
1643
1658
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
1644
1659
  className: cx("toggle-btn", viewLayout === "grid" ? "toggle-btn-active" : ""),
1645
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.AppstoreOutlined, {}),
1660
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.AppstoreOutlined, {}),
1646
1661
  onClick: () => onViewLayoutChange("grid"),
1647
1662
  style: { borderRadius: "4px 0 0 4px" }
1648
1663
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
1649
1664
  className: cx("toggle-btn", viewLayout === "list" ? "toggle-btn-active" : ""),
1650
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.BarsOutlined, {}),
1665
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.BarsOutlined, {}),
1651
1666
  onClick: () => onViewLayoutChange("list"),
1652
1667
  style: {
1653
1668
  borderRadius: "0 4px 4px 0",
@@ -1663,20 +1678,18 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
1663
1678
  ]
1664
1679
  }));
1665
1680
  };
1666
-
1667
1681
  //#endregion
1668
1682
  //#region src/view/components/ApiPage/index.tsx
1669
1683
  const APIPage = () => {
1670
- const [selectedUrl, setSelectedUrl] = (0, react.useState)("");
1671
- const { view: { selectedApi, transformedData, setSelectedApi, setFocusedContent, setSelectedNodeKey, focusedTag, setFocusedTag } } = store_default();
1672
- const [viewStyle, setViewStyle] = (0, react.useState)("grid");
1673
- const { wrapSSR, cx, token: token$1 } = useStyle("DocumentationApiPage", () => ({}));
1674
- selectedApi?.relatedVersions?.find((v) => v.apiId === selectedApi?.currentVersion);
1675
- const urlsOptions = (0, react.useMemo)(() => selectedApi?.servers?.map((server) => ({
1684
+ const [selectedUrl, setSelectedUrl] = (0, react$1.useState)("");
1685
+ const { view: { selectedApi, focusedTag, setFocusedTag } } = useStore();
1686
+ const [viewStyle, setViewStyle] = (0, react$1.useState)("grid");
1687
+ const { wrapSSR, token } = useStyle("DocumentationApiPage", () => ({}));
1688
+ const urlsOptions = (0, react$1.useMemo)(() => selectedApi?.servers?.map((server) => ({
1676
1689
  label: server?.url,
1677
1690
  value: server?.url
1678
1691
  })), [selectedApi?.servers]);
1679
- (0, react.useEffect)(() => {
1692
+ (0, react$1.useEffect)(() => {
1680
1693
  if (focusedTag && document.getElementById(focusedTag)) {
1681
1694
  const element = document.getElementById(focusedTag);
1682
1695
  if (element) element.scrollIntoView({ behavior: "smooth" });
@@ -1687,10 +1700,10 @@ const APIPage = () => {
1687
1700
  setFocusedTag,
1688
1701
  selectedApi
1689
1702
  ]);
1690
- (0, react.useEffect)(() => {
1703
+ (0, react$1.useEffect)(() => {
1691
1704
  if (!!urlsOptions?.length) setSelectedUrl(urlsOptions[0]?.value);
1692
1705
  }, [selectedApi, urlsOptions]);
1693
- (0, react.useEffect)(() => {
1706
+ (0, react$1.useEffect)(() => {
1694
1707
  if (selectedApi?.servers && !selectedUrl) setSelectedUrl(selectedApi?.servers?.[0].url);
1695
1708
  }, [selectedApi?.servers]);
1696
1709
  const getEndpointsForSelectedUrl = () => {
@@ -1711,7 +1724,7 @@ const APIPage = () => {
1711
1724
  };
1712
1725
  return wrapSSR(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd.Flex, {
1713
1726
  vertical: true,
1714
- gap: token$1.margin,
1727
+ gap: token.margin,
1715
1728
  children: [selectedApi && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ViewModeApiHeader, {
1716
1729
  api: selectedApi,
1717
1730
  viewLayout: viewStyle,
@@ -1728,14 +1741,14 @@ const APIPage = () => {
1728
1741
  haveUnderLine: index < arr.length - 1,
1729
1742
  contextPath: selectedApi?.contextPath,
1730
1743
  viewStyle,
1731
- token: token$1
1744
+ token
1732
1745
  }, `${selectedApi?.id}_${key}`);
1733
1746
  })]
1734
1747
  }));
1735
1748
  };
1736
- const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, viewStyle, token: token$1 }) => {
1749
+ const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, viewStyle, token }) => {
1737
1750
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd.Flex, {
1738
- gap: viewStyle === "grid" ? token$1.marginXS : 0,
1751
+ gap: viewStyle === "grid" ? token.marginXS : 0,
1739
1752
  style: {
1740
1753
  marginBottom: 0,
1741
1754
  paddingBottom: 0
@@ -1752,19 +1765,18 @@ const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, vi
1752
1765
  wrap: "wrap",
1753
1766
  gap: viewStyle === "grid" ? "1.5rem" : 0,
1754
1767
  vertical: viewStyle === "list",
1755
- children: apis.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiCard_default, {
1768
+ children: apis.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiCard, {
1756
1769
  api: item,
1757
1770
  viewStyle
1758
1771
  }, `${tagName}_renderer_${item.id}_${item.method}_${item.path}`))
1759
1772
  }),
1760
1773
  haveUnderLine && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Divider, { style: {
1761
- marginTop: token$1.marginSM,
1762
- marginBottom: token$1.marginSM
1774
+ marginTop: token.marginSM,
1775
+ marginBottom: token.marginSM
1763
1776
  } })
1764
1777
  ]
1765
1778
  }, `${tagName}_renderer_${contextPath}`);
1766
1779
  };
1767
-
1768
1780
  //#endregion
1769
1781
  //#region src/utils/index.ts
1770
1782
  const handleStatusColor = (code) => {
@@ -1775,7 +1787,6 @@ const handleStatusColor = (code) => {
1775
1787
  else if (code >= 300 && code < 400) return "orange";
1776
1788
  else return "gray";
1777
1789
  };
1778
-
1779
1790
  //#endregion
1780
1791
  //#region src/view/components/EndpointPage/EndpointPage.tsx
1781
1792
  const { Title: Title$5, Paragraph } = antd.Typography;
@@ -1797,7 +1808,7 @@ const requestColumns = [
1797
1808
  }
1798
1809
  ];
1799
1810
  const responseColumns = [...requestColumns];
1800
- const buildRequestData = (params, token$1) => [...params].sort((a, b) => a.required === b.required ? 0 : a.required ? -1 : 1).map((p, index) => {
1811
+ const buildRequestData = (params, token) => [...params].sort((a, b) => a.required === b.required ? 0 : a.required ? -1 : 1).map((p, index) => {
1801
1812
  let typeLabel = p.schema?.type;
1802
1813
  if (p.schema?.type === "array" && p.schema?.items?.type) typeLabel = `${p.schema.type}_${p.schema.items.type}`;
1803
1814
  return {
@@ -1806,17 +1817,17 @@ const buildRequestData = (params, token$1) => [...params].sort((a, b) => a.requi
1806
1817
  p.name,
1807
1818
  typeLabel && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1808
1819
  style: {
1809
- color: token$1.colorTextTertiary,
1820
+ color: token.colorTextTertiary,
1810
1821
  marginLeft: "0.25rem",
1811
1822
  marginRight: "0.25rem"
1812
1823
  },
1813
1824
  children: typeLabel
1814
1825
  }),
1815
1826
  p.required ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1816
- style: { color: token$1.colorError },
1827
+ style: { color: token.colorError },
1817
1828
  children: "*"
1818
1829
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1819
- style: { color: token$1.colorSuccess },
1830
+ style: { color: token.colorSuccess },
1820
1831
  children: "Optional"
1821
1832
  })
1822
1833
  ] }),
@@ -1824,7 +1835,7 @@ const buildRequestData = (params, token$1) => [...params].sort((a, b) => a.requi
1824
1835
  enum: p.schema?.enum ? p.schema.enum.map((e) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tag, { children: e }, e)) : "--"
1825
1836
  };
1826
1837
  });
1827
- const buildHeaderData = (headers, token$1) => {
1838
+ const buildHeaderData = (headers, token) => {
1828
1839
  if (!headers) return [];
1829
1840
  return Object.entries(headers).sort(([, a], [, b]) => a.required === b.required ? 0 : a.required ? -1 : 1).map(([name, header], idx) => {
1830
1841
  let typeLabel = header.schema?.type;
@@ -1835,17 +1846,17 @@ const buildHeaderData = (headers, token$1) => {
1835
1846
  name,
1836
1847
  typeLabel && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1837
1848
  style: {
1838
- color: token$1.colorTextTertiary,
1849
+ color: token.colorTextTertiary,
1839
1850
  marginLeft: "0.25rem",
1840
1851
  marginRight: "0.25rem"
1841
1852
  },
1842
1853
  children: typeLabel
1843
1854
  }),
1844
1855
  header.required ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1845
- style: { color: token$1.colorError },
1856
+ style: { color: token.colorError },
1846
1857
  children: "*"
1847
1858
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1848
- style: { color: token$1.colorSuccess },
1859
+ style: { color: token.colorSuccess },
1849
1860
  children: "Optional"
1850
1861
  })
1851
1862
  ] }, idx),
@@ -1854,7 +1865,7 @@ const buildHeaderData = (headers, token$1) => {
1854
1865
  };
1855
1866
  });
1856
1867
  };
1857
- const buildRequestBodyData = (requestBody, token$1) => {
1868
+ const buildRequestBodyData = (requestBody, token) => {
1858
1869
  if (!requestBody?.content) return [];
1859
1870
  const contentType = Object.keys(requestBody.content)[0];
1860
1871
  const schema = requestBody.content[contentType]?.schema;
@@ -1867,17 +1878,17 @@ const buildRequestBodyData = (requestBody, token$1) => {
1867
1878
  name,
1868
1879
  prop.type && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1869
1880
  style: {
1870
- color: token$1.colorTextTertiary,
1881
+ color: token.colorTextTertiary,
1871
1882
  marginLeft: "0.25rem",
1872
1883
  marginRight: "0.25rem"
1873
1884
  },
1874
1885
  children: prop.type
1875
1886
  }),
1876
1887
  required.includes(name) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1877
- style: { color: token$1.colorError },
1888
+ style: { color: token.colorError },
1878
1889
  children: "*"
1879
1890
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1880
- style: { color: token$1.colorSuccess },
1891
+ style: { color: token.colorSuccess },
1881
1892
  children: "Optional"
1882
1893
  })
1883
1894
  ] }),
@@ -1886,14 +1897,14 @@ const buildRequestBodyData = (requestBody, token$1) => {
1886
1897
  }));
1887
1898
  };
1888
1899
  const EndpointPage = () => {
1889
- const { selectedEndpoint, selectedApi, selectedStatusCode, setSelectedNodeKey, setFocusedContent, setFocusedTag, setActiveRequestTab } = store_default(({ view }) => view);
1890
- const [activeTabKey, setActiveTabKey] = (0, react.useState)("header");
1891
- const { token: token$1 } = antd.theme.useToken();
1892
- const { cx } = useStyle("EndpointPage", (token$2, scope) => ({
1900
+ const { selectedEndpoint, selectedApi, selectedStatusCode, setSelectedNodeKey, setFocusedContent, setFocusedTag, setActiveRequestTab } = useStore(({ view }) => view);
1901
+ const [activeTabKey, setActiveTabKey] = (0, react$1.useState)("header");
1902
+ const { token } = antd.theme.useToken();
1903
+ const { cx } = useStyle("EndpointPage", (token, scope) => ({
1893
1904
  [scope("docs-endpoint-container")]: {
1894
1905
  display: "flex",
1895
1906
  flexDirection: "column",
1896
- gap: token$2.marginLG,
1907
+ gap: token.marginLG,
1897
1908
  height: "100%"
1898
1909
  },
1899
1910
  [scope("content")]: {
@@ -1902,43 +1913,43 @@ const EndpointPage = () => {
1902
1913
  },
1903
1914
  [scope("code")]: {
1904
1915
  background: "unset",
1905
- borderRadius: token$2.borderRadius,
1906
- padding: token$2.paddingSM,
1916
+ borderRadius: token.borderRadius,
1917
+ padding: token.paddingSM,
1907
1918
  fontFamily: "monospace",
1908
1919
  whiteSpace: "pre-wrap"
1909
1920
  },
1910
1921
  [scope("breadcrumb")]: {
1911
1922
  display: "flex",
1912
- gap: token$2.marginLG,
1923
+ gap: token.marginLG,
1913
1924
  alignItems: "center",
1914
- marginBottom: token$2.marginLG
1925
+ marginBottom: token.marginLG
1915
1926
  },
1916
1927
  [scope("request-card")]: {
1917
- borderRadius: token$2.borderRadius,
1918
- backgroundColor: token$2.colorBgBase,
1928
+ borderRadius: token.borderRadius,
1929
+ backgroundColor: token.colorBgBase,
1919
1930
  ".ant-card-head": {
1920
1931
  minHeight: "unset",
1921
1932
  borderBottom: "unset",
1922
1933
  padding: "0.75rem",
1923
- backgroundColor: token$2.colorBgBase
1934
+ backgroundColor: token.colorBgBase
1924
1935
  },
1925
1936
  ".ant-card-body": {
1926
1937
  padding: "0px 0.75rem 0.75rem 0.75rem",
1927
- backgroundColor: token$2.colorBgBase,
1938
+ backgroundColor: token.colorBgBase,
1928
1939
  ".ant-tabs-tab": { paddingTop: "0" }
1929
1940
  },
1930
- "& .ant-table": { backgroundColor: `${token$2.colorBgBase} !important` },
1931
- "& .ant-table-thead > tr > th": { backgroundColor: `${token$2.colorBgBase} !important` },
1932
- "& .ant-table-tbody > tr > td": { backgroundColor: `${token$2.colorBgBase} !important` }
1941
+ "& .ant-table": { backgroundColor: `${token.colorBgBase} !important` },
1942
+ "& .ant-table-thead > tr > th": { backgroundColor: `${token.colorBgBase} !important` },
1943
+ "& .ant-table-tbody > tr > td": { backgroundColor: `${token.colorBgBase} !important` }
1933
1944
  },
1934
- [scope("row-odd")]: { "& > td": { background: `${token$2.colorBgElevated} !important` } },
1935
- [scope("row-even")]: { "& > td": { background: `${token$2.colorBgLayout} !important` } }
1945
+ [scope("row-odd")]: { "& > td": { background: `${token.colorBgElevated} !important` } },
1946
+ [scope("row-even")]: { "& > td": { background: `${token.colorBgLayout} !important` } }
1936
1947
  }));
1937
- const methodStyle = methodColors[selectedEndpoint?.method];
1938
- const headerParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "header") || [], token$1);
1939
- const pathParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "path") || [], token$1);
1940
- const queryParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "query") || [], token$1);
1941
- const requestBodyData = buildRequestBodyData(selectedEndpoint?.requestBody, token$1);
1948
+ const methodStyle = sidebarMethodColors[selectedEndpoint?.method];
1949
+ const headerParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "header") || [], token);
1950
+ const pathParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "path") || [], token);
1951
+ const queryParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "query") || [], token);
1952
+ const requestBodyData = buildRequestBodyData(selectedEndpoint?.requestBody, token);
1942
1953
  const requestTabs = [
1943
1954
  {
1944
1955
  key: "header",
@@ -1989,13 +2000,13 @@ const EndpointPage = () => {
1989
2000
  })
1990
2001
  }] : []
1991
2002
  ].filter((t) => t !== null);
1992
- (0, react.useEffect)(() => {
2003
+ (0, react$1.useEffect)(() => {
1993
2004
  const firstKey = requestTabs[0]?.key ?? "header";
1994
2005
  setActiveTabKey(firstKey);
1995
2006
  setActiveRequestTab(firstKey);
1996
2007
  }, [selectedEndpoint?.id]);
1997
2008
  const responseHeaders = (selectedEndpoint?.responses?.[selectedStatusCode || 200])?.headers;
1998
- const responseHeaderData = buildHeaderData(responseHeaders, token$1);
2009
+ const responseHeaderData = buildHeaderData(responseHeaders, token);
1999
2010
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2000
2011
  className: cx("docs-endpoint-container"),
2001
2012
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -2006,7 +2017,7 @@ const EndpointPage = () => {
2006
2017
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
2007
2018
  color: "default",
2008
2019
  variant: "outlined",
2009
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.LeftOutlined, {}),
2020
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.LeftOutlined, {}),
2010
2021
  onClick: (e) => {
2011
2022
  e.preventDefault();
2012
2023
  setSelectedNodeKey(selectedApi?.id);
@@ -2035,18 +2046,24 @@ const EndpointPage = () => {
2035
2046
  display: "flex",
2036
2047
  flexDirection: "row",
2037
2048
  alignItems: "center",
2038
- color: token$1.colorTextTertiary,
2049
+ color: token.colorTextTertiary,
2039
2050
  gap: "0.25rem"
2040
2051
  },
2041
2052
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: selectedEndpoint?.tagName || "default" })
2042
2053
  })
2043
2054
  },
2044
- { title: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2045
- style: {
2046
- display: "flex",
2047
- gap: "1rem"
2048
- },
2049
- children: selectedEndpoint?.summary || "Endpoint Name"
2055
+ { title: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
2056
+ title: selectedEndpoint?.summary || "Endpoint Name",
2057
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2058
+ style: {
2059
+ overflow: "hidden",
2060
+ textOverflow: "ellipsis",
2061
+ whiteSpace: "nowrap",
2062
+ display: "block",
2063
+ maxWidth: "300px"
2064
+ },
2065
+ children: selectedEndpoint?.summary || "Endpoint Name"
2066
+ })
2050
2067
  }) }
2051
2068
  ] })]
2052
2069
  }),
@@ -2069,11 +2086,21 @@ const EndpointPage = () => {
2069
2086
  flexShrink: 0
2070
2087
  },
2071
2088
  children: selectedEndpoint?.method
2072
- }), selectedEndpoint?.summary?.replace(selectedEndpoint?.method, "") ?? "--"]
2089
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
2090
+ title: selectedEndpoint?.summary ?? "--",
2091
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2092
+ style: {
2093
+ overflow: "hidden",
2094
+ textOverflow: "ellipsis",
2095
+ whiteSpace: "nowrap"
2096
+ },
2097
+ children: selectedEndpoint?.summary?.replace(selectedEndpoint?.method, "") ?? "--"
2098
+ })
2099
+ })]
2073
2100
  }),
2074
2101
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Paragraph, {
2075
2102
  style: {
2076
- color: token$1.colorTextTertiary,
2103
+ color: token.colorTextTertiary,
2077
2104
  marginBottom: "1.5rem"
2078
2105
  },
2079
2106
  children: selectedEndpoint?.description ?? "--"
@@ -2083,9 +2110,9 @@ const EndpointPage = () => {
2083
2110
  className: cx("request-card"),
2084
2111
  style: {
2085
2112
  marginBottom: "1.5rem",
2086
- backgroundColor: token$1.colorBgBase
2113
+ backgroundColor: token.colorBgBase
2087
2114
  },
2088
- styles: { body: { backgroundColor: token$1.colorBgBase } },
2115
+ styles: { body: { backgroundColor: token.colorBgBase } },
2089
2116
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tabs, {
2090
2117
  activeKey: activeTabKey,
2091
2118
  onChange: (key) => {
@@ -2119,51 +2146,41 @@ const EndpointPage = () => {
2119
2146
  })
2120
2147
  });
2121
2148
  };
2122
-
2123
2149
  //#endregion
2124
- //#region src/assets/mouseSquare.svg
2125
- var _path$3, _path2$2;
2126
- function _extends$3() {
2127
- return _extends$3 = Object.assign ? Object.assign.bind() : function(n) {
2128
- for (var e = 1; e < arguments.length; e++) {
2129
- var t = arguments[e];
2130
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2131
- }
2132
- return n;
2133
- }, _extends$3.apply(null, arguments);
2134
- }
2135
- var SvgMouseSquare = function SvgMouseSquare$1(props) {
2136
- return /* @__PURE__ */ react.createElement("svg", _extends$3({
2137
- xmlns: "http://www.w3.org/2000/svg",
2138
- width: 18,
2139
- height: 18,
2140
- fill: "none"
2141
- }, props), _path$3 || (_path$3 = /* @__PURE__ */ react.createElement("path", {
2142
- stroke: "#fff",
2150
+ //#region src/assets/mouseSquare.tsx
2151
+ const MouseSquare = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2152
+ width: "18",
2153
+ height: "18",
2154
+ viewBox: "0 0 18 18",
2155
+ fill: "none",
2156
+ xmlns: "http://www.w3.org/2000/svg",
2157
+ ...props,
2158
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2159
+ d: "M16.5 9V6.75C16.5 3 15 1.5 11.25 1.5H6.75C3 1.5 1.5 3 1.5 6.75V11.25C1.5 15 3 16.5 6.75 16.5H9",
2160
+ stroke: "white",
2161
+ strokeWidth: "1.5",
2143
2162
  strokeLinecap: "round",
2144
- strokeLinejoin: "round",
2145
- strokeWidth: 1.5,
2146
- d: "M16.5 9V6.75C16.5 3 15 1.5 11.25 1.5h-4.5C3 1.5 1.5 3 1.5 6.75v4.5C1.5 15 3 16.5 6.75 16.5H9"
2147
- })), _path2$2 || (_path2$2 = /* @__PURE__ */ react.createElement("path", {
2148
- stroke: "#fff",
2163
+ strokeLinejoin: "round"
2164
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2165
+ d: "M15.7202 13.3808L14.4978 13.7934C14.1603 13.9059 13.8902 14.1684 13.7777 14.5134L13.3652 15.7359C13.0127 16.7934 11.5277 16.7709 11.1977 15.7134L9.81025 11.2508C9.54025 10.3658 10.3577 9.54085 11.2352 9.81835L15.7053 11.2059C16.7553 11.5359 16.7702 13.0283 15.7202 13.3808Z",
2166
+ stroke: "white",
2167
+ strokeWidth: "1.5",
2149
2168
  strokeLinecap: "round",
2150
- strokeLinejoin: "round",
2151
- strokeWidth: 1.5,
2152
- d: "m15.72 13.38-1.222.413a1.13 1.13 0 0 0-.72.72l-.413 1.223c-.352 1.057-1.837 1.035-2.167-.023L9.81 11.251c-.27-.885.548-1.71 1.425-1.433l4.47 1.388c1.05.33 1.065 1.822.015 2.175"
2153
- })));
2154
- };
2155
- var mouseSquare_default = SvgMouseSquare;
2156
-
2169
+ strokeLinejoin: "round"
2170
+ })]
2171
+ });
2157
2172
  //#endregion
2158
2173
  //#region src/view/components/MainContent.tsx
2159
2174
  const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage }) => {
2160
- const { focusedContent, transformedData } = store_default(({ view }) => view);
2161
- const { wrapSSR, cx, token: token$1 } = useStyle("MainContent", (token$2, scope) => ({
2175
+ const { focusedContent, transformedData } = useStore(({ view }) => view);
2176
+ const { wrapSSR, cx, token } = useStyle("MainContent", (token, scope) => ({
2162
2177
  [scope("inner-doc-container")]: {
2163
2178
  width: "100%",
2164
2179
  height: "auto",
2165
- borderRadius: token$2.borderRadius,
2166
- padding: token$2.paddingXL
2180
+ borderRadius: token.borderRadius,
2181
+ padding: token.paddingXL,
2182
+ overflow: "hidden",
2183
+ minWidth: 0
2167
2184
  },
2168
2185
  [scope("centered")]: {
2169
2186
  display: "flex",
@@ -2174,31 +2191,31 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
2174
2191
  padding: 0
2175
2192
  },
2176
2193
  [scope("title")]: {
2177
- fontFamily: token$2.fontFamily,
2194
+ fontFamily: token.fontFamily,
2178
2195
  fontWeight: 600,
2179
- fontSize: token$2.fontSizeHeading4,
2180
- color: token$2.colorText
2196
+ fontSize: token.fontSizeHeading4,
2197
+ color: token.colorText
2181
2198
  },
2182
2199
  [scope("text")]: {
2183
- color: token$2.colorText,
2184
- fontFamily: token$2.fontFamily
2200
+ color: token.colorText,
2201
+ fontFamily: token.fontFamily
2185
2202
  },
2186
2203
  [scope("visit-landing-button")]: {
2187
2204
  width: "12.25rem",
2188
2205
  height: "2.5rem",
2189
- borderRadius: token$2.borderRadiusLG
2206
+ borderRadius: token.borderRadiusLG
2190
2207
  },
2191
2208
  [scope("reset-button")]: {
2192
2209
  width: "8.125rem",
2193
2210
  height: "2.5rem",
2194
- borderRadius: token$2.borderRadiusLG,
2195
- backgroundColor: token$2?.Button?.primaryColor,
2196
- fontSize: token$2.Button?.contentFontSizeLG
2211
+ borderRadius: token.borderRadiusLG,
2212
+ backgroundColor: token?.Button?.primaryColor,
2213
+ fontSize: token.Button?.contentFontSizeLG
2197
2214
  }
2198
2215
  }));
2199
2216
  return wrapSSR(/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2200
2217
  className: cx("inner-doc-container", !transformedData?.length ? "centered" : ""),
2201
- style: { backgroundColor: focusedContent === "ENDPOINT" ? token$1.colorBgBase : token$1.colorBgElevated },
2218
+ style: { backgroundColor: focusedContent === "ENDPOINT" ? token.colorBgBase : token.colorBgElevated },
2202
2219
  children: !transformedData?.length ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd.Flex, {
2203
2220
  justify: "center",
2204
2221
  align: "center",
@@ -2206,9 +2223,9 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
2206
2223
  vertical: true,
2207
2224
  flex: 1,
2208
2225
  children: [
2209
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NoDataIcon_default, {
2210
- stroke: token$1.colorPrimaryHover,
2211
- fill: token$1.colorPrimaryBg,
2226
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NoDataIcon, {
2227
+ stroke: token.colorPrimaryHover,
2228
+ fill: token.colorPrimaryBg,
2212
2229
  width: "18.625rem",
2213
2230
  height: "14.75rem"
2214
2231
  }),
@@ -2229,7 +2246,7 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
2229
2246
  !searchEnabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
2230
2247
  type: "primary",
2231
2248
  onClick: handleVisitLandingPage,
2232
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(mouseSquare_default, {}),
2249
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MouseSquare, {}),
2233
2250
  iconPosition: "start",
2234
2251
  className: cx("visit-landing-button"),
2235
2252
  children: "Visit Landing Page"
@@ -2243,27 +2260,26 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
2243
2260
  }) : focusedContent === "ENDPOINT" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EndpointPage, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(APIPage, {})
2244
2261
  }));
2245
2262
  };
2246
-
2247
2263
  //#endregion
2248
2264
  //#region src/view/components/ApiPage/components/ApiDocumentationBar.tsx
2249
2265
  const { useBreakpoint: useBreakpoint$3 } = antd.Grid;
2250
2266
  const { Title: Title$3 } = antd.Typography;
2251
2267
  const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, hasChanges = false, switcherNode }) => {
2252
2268
  const isMobile = !useBreakpoint$3().md;
2253
- const { wrapSSR, cx, token: token$1 } = useStyle("ApiDocumentationBar", (token$2, scope) => ({
2269
+ const { wrapSSR, cx, token } = useStyle("ApiDocumentationBar", (token, scope) => ({
2254
2270
  [scope("root")]: {
2255
2271
  display: "flex",
2256
2272
  alignItems: "center",
2257
2273
  justifyContent: "space-between",
2258
- padding: `${token$2.marginSM + 4}px ${token$2.paddingLG}px`,
2259
- background: token$2.colorBgContainer,
2260
- borderRadius: token$2.borderRadius,
2274
+ padding: `${token.marginSM + 4}px ${token.paddingLG}px`,
2275
+ background: token.colorBgContainer,
2276
+ borderRadius: token.borderRadius,
2261
2277
  width: "100%",
2262
- ["@media (max-width: 640px)"]: { padding: `${token$2.marginSM}px ${token$2.marginMD}px` }
2278
+ ["@media (max-width: 640px)"]: { padding: `${token.marginSM}px ${token.marginMD}px` }
2263
2279
  },
2264
2280
  [scope("mobileWrapper")]: {
2265
2281
  flexDirection: "column",
2266
- gap: token$2.marginMD
2282
+ gap: token.marginMD
2267
2283
  },
2268
2284
  [scope("mobileTopRow")]: {
2269
2285
  width: "100%",
@@ -2286,7 +2302,9 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2286
2302
  flex: 1,
2287
2303
  display: "flex",
2288
2304
  alignItems: "center",
2289
- gap: token$2.marginSM
2305
+ gap: token.marginSM,
2306
+ minWidth: 0,
2307
+ overflow: "hidden"
2290
2308
  },
2291
2309
  [scope("arrow-icon")]: {
2292
2310
  width: 24,
@@ -2294,14 +2312,14 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2294
2312
  display: "flex",
2295
2313
  alignItems: "center",
2296
2314
  justifyContent: "center",
2297
- color: token$2.colorText
2315
+ color: token.colorText
2298
2316
  },
2299
2317
  [scope("switcher")]: {
2300
2318
  display: "flex",
2301
2319
  alignItems: "center",
2302
- background: token$2.colorBgLayout,
2303
- padding: "4px 48px",
2304
- borderRadius: token$2.borderRadius,
2320
+ background: token.colorBgLayout,
2321
+ padding: "4px 4px",
2322
+ borderRadius: token.borderRadius,
2305
2323
  gap: 8
2306
2324
  },
2307
2325
  [scope("switcher-item")]: {
@@ -2312,17 +2330,17 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2312
2330
  background: "transparent",
2313
2331
  border: "none",
2314
2332
  cursor: "pointer",
2315
- fontSize: token$2.fontSizeLG,
2333
+ fontSize: token.fontSizeLG,
2316
2334
  fontWeight: 400,
2317
- color: token$2.colorText,
2318
- fontFamily: token$2.fontFamily,
2335
+ color: token.colorText,
2336
+ fontFamily: token.fontFamily,
2319
2337
  transition: "all 0.2s ease"
2320
2338
  },
2321
2339
  [scope("switcher-item-active")]: {
2322
- background: token$2.colorBgContainer,
2323
- borderRadius: token$2.borderRadius,
2340
+ background: token.colorBgContainer,
2341
+ borderRadius: token.borderRadius,
2324
2342
  boxShadow: "0px 2px 4px -2px rgba(17,12,34,0.12)",
2325
- fontSize: token$2.fontSize,
2343
+ fontSize: token.fontSize,
2326
2344
  fontWeight: 700
2327
2345
  },
2328
2346
  [scope("switcher-icon")]: {
@@ -2336,14 +2354,14 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2336
2354
  [scope("actions")]: {
2337
2355
  display: "flex",
2338
2356
  alignItems: "center",
2339
- gap: token$2.marginMD,
2357
+ gap: token.marginMD,
2340
2358
  flex: 1,
2341
2359
  justifyContent: "flex-end"
2342
2360
  },
2343
2361
  [scope("mobileActions")]: {
2344
2362
  display: "flex",
2345
2363
  alignItems: "center",
2346
- gap: token$2.marginSM,
2364
+ gap: token.marginSM,
2347
2365
  justifyContent: "flex-end"
2348
2366
  }
2349
2367
  }));
@@ -2364,13 +2382,13 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2364
2382
  style: {
2365
2383
  margin: 0,
2366
2384
  fontWeight: 600,
2367
- color: token$1.colorTextHeading
2385
+ color: token.colorTextHeading
2368
2386
  },
2369
2387
  children: apiName
2370
2388
  })
2371
2389
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2372
2390
  className: cx("arrow-icon"),
2373
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.RightOutlined, { style: { fontSize: 24 } })
2391
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.RightOutlined, { style: { fontSize: 24 } })
2374
2392
  })]
2375
2393
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2376
2394
  className: cx("mobileActions"),
@@ -2394,15 +2412,22 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2394
2412
  children: [
2395
2413
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2396
2414
  className: cx("title-section"),
2397
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Title$3, {
2398
- level: 3,
2399
- style: {
2400
- margin: 0,
2401
- fontWeight: 600,
2402
- whiteSpace: "nowrap",
2403
- color: token$1.colorTextHeading
2404
- },
2405
- children: [apiName, " API Documentation"]
2415
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
2416
+ title: `${apiName} API Documentation`,
2417
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Title$3, {
2418
+ level: 3,
2419
+ style: {
2420
+ margin: 0,
2421
+ fontWeight: 600,
2422
+ whiteSpace: "nowrap",
2423
+ overflow: "hidden",
2424
+ textOverflow: "ellipsis",
2425
+ color: token.colorTextHeading,
2426
+ minWidth: 0,
2427
+ flex: 1
2428
+ },
2429
+ children: [apiName, " API Documentation"]
2430
+ })
2406
2431
  })
2407
2432
  }),
2408
2433
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -2412,14 +2437,14 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2412
2437
  onClick: () => onModeChange("edit"),
2413
2438
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2414
2439
  className: cx("switcher-icon"),
2415
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EditOutlined, {})
2440
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EditOutlined, {})
2416
2441
  }), "Edit"]
2417
2442
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
2418
2443
  className: cx("switcher-item", mode === "view" ? "switcher-item-active" : ""),
2419
2444
  onClick: () => onModeChange("view"),
2420
2445
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2421
2446
  className: cx("switcher-icon"),
2422
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EyeOutlined, {})
2447
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EyeOutlined, {})
2423
2448
  }), "View"]
2424
2449
  })]
2425
2450
  }),
@@ -2441,17 +2466,16 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2441
2466
  ]
2442
2467
  }));
2443
2468
  };
2444
-
2445
2469
  //#endregion
2446
2470
  //#region src/view/components/ApiPage/components/GeneralSection.tsx
2447
2471
  const { useBreakpoint: useBreakpoint$2 } = antd.Grid;
2448
2472
  const GeneralSection = ({ apiName, authType, version, description, onApiNameChange, onDescriptionChange, collapsed = false, onToggleCollapse, onChangeDetected }) => {
2449
2473
  const isMobile = !useBreakpoint$2().md;
2450
- const { wrapSSR, cx, token: token$1 } = useStyle("GeneralSection", (token$2, scope) => ({
2474
+ const { wrapSSR, cx, token } = useStyle("GeneralSection", (token, scope) => ({
2451
2475
  [scope("root")]: {
2452
2476
  display: "flex",
2453
2477
  flexDirection: "column",
2454
- borderRadius: token$2.borderRadius,
2478
+ borderRadius: token.borderRadius,
2455
2479
  overflow: "hidden",
2456
2480
  width: "100%"
2457
2481
  },
@@ -2459,22 +2483,22 @@ const GeneralSection = ({ apiName, authType, version, description, onApiNameChan
2459
2483
  display: "flex",
2460
2484
  alignItems: "center",
2461
2485
  justifyContent: "space-between",
2462
- padding: `${token$2.paddingXS}px ${token$2.paddingLG}px`,
2463
- background: token$2.colorPrimaryBg,
2464
- borderRadius: `${token$2.borderRadius}px ${token$2.borderRadius}px 0 0`
2486
+ padding: `${token.paddingXS}px ${token.paddingLG}px`,
2487
+ background: token.colorPrimaryBg,
2488
+ borderRadius: `${token.borderRadius}px ${token.borderRadius}px 0 0`
2465
2489
  },
2466
2490
  [scope("body")]: {
2467
2491
  display: "flex",
2468
2492
  flexDirection: "column",
2469
- gap: token$2.paddingLG,
2470
- padding: token$2.paddingLG,
2471
- paddingBottom: token$2.paddingXXL ?? 48,
2472
- background: token$2.colorBgElevated,
2473
- borderRadius: `0 0 ${token$2.borderRadius}px ${token$2.borderRadius}px`
2493
+ gap: token.paddingLG,
2494
+ padding: token.paddingLG,
2495
+ paddingBottom: token.paddingXXL ?? 48,
2496
+ background: token.colorBgElevated,
2497
+ borderRadius: `0 0 ${token.borderRadius}px ${token.borderRadius}px`
2474
2498
  },
2475
2499
  [scope("row")]: {
2476
2500
  display: "flex",
2477
- gap: token$2.paddingLG,
2501
+ gap: token.paddingLG,
2478
2502
  width: "100%"
2479
2503
  },
2480
2504
  [scope("field")]: {
@@ -2486,22 +2510,22 @@ const GeneralSection = ({ apiName, authType, version, description, onApiNameChan
2486
2510
  [scope("label")]: {
2487
2511
  display: "flex",
2488
2512
  alignItems: "center",
2489
- gap: token$2.marginXXS,
2490
- fontSize: token$2.fontSize,
2513
+ gap: token.marginXXS,
2514
+ fontSize: token.fontSize,
2491
2515
  fontWeight: 400,
2492
- color: token$2.colorText,
2493
- paddingBottom: token$2.paddingXS,
2516
+ color: token.colorText,
2517
+ paddingBottom: token.paddingXS,
2494
2518
  lineHeight: "22px"
2495
2519
  },
2496
2520
  [scope("label-required")]: {
2497
- color: token$2.colorError,
2498
- fontSize: token$2.fontSize
2521
+ color: token.colorError,
2522
+ fontSize: token.fontSize
2499
2523
  },
2500
2524
  [scope("count")]: {
2501
2525
  alignSelf: "flex-end",
2502
- fontSize: token$2.fontSize,
2503
- color: token$2.colorTextDescription,
2504
- marginTop: token$2.marginXXS
2526
+ fontSize: token.fontSize,
2527
+ color: token.colorTextDescription,
2528
+ marginTop: token.marginXXS
2505
2529
  }
2506
2530
  }));
2507
2531
  return wrapSSR(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -2512,13 +2536,13 @@ const GeneralSection = ({ apiName, authType, version, description, onApiNameChan
2512
2536
  level: 4,
2513
2537
  style: {
2514
2538
  margin: 0,
2515
- color: token$1.colorTextHeading
2539
+ color: token.colorTextHeading
2516
2540
  },
2517
2541
  children: "General"
2518
2542
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
2519
2543
  type: "text",
2520
2544
  size: "large",
2521
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.UpCircleOutlined, { style: { fontSize: 18 } }),
2545
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.UpCircleOutlined, { style: { fontSize: 18 } }),
2522
2546
  onClick: onToggleCollapse,
2523
2547
  style: {
2524
2548
  transform: collapsed ? "rotate(180deg)" : "rotate(0deg)",
@@ -2528,8 +2552,8 @@ const GeneralSection = ({ apiName, authType, version, description, onApiNameChan
2528
2552
  }), !collapsed && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2529
2553
  className: cx("body"),
2530
2554
  style: isMobile ? {
2531
- padding: token$1.paddingMD,
2532
- paddingBottom: token$1.paddingXXL ?? 48
2555
+ padding: token.paddingMD,
2556
+ paddingBottom: token.paddingXXL ?? 48
2533
2557
  } : void 0,
2534
2558
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2535
2559
  className: cx("row"),
@@ -2610,73 +2634,101 @@ const GeneralSection = ({ apiName, authType, version, description, onApiNameChan
2610
2634
  })]
2611
2635
  }));
2612
2636
  };
2613
-
2614
2637
  //#endregion
2615
- //#region src/assets/trash.svg
2616
- var _mask, _path$2, _path2$1, _path3;
2617
- function _extends$2() {
2618
- return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
2619
- for (var e = 1; e < arguments.length; e++) {
2620
- var t = arguments[e];
2621
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2622
- }
2623
- return n;
2624
- }, _extends$2.apply(null, arguments);
2625
- }
2626
- var SvgTrash = function SvgTrash$1(props) {
2627
- return /* @__PURE__ */ react.createElement("svg", _extends$2({
2628
- xmlns: "http://www.w3.org/2000/svg",
2629
- fill: "none",
2630
- viewBox: "0 0 40 40"
2631
- }, props), _mask || (_mask = /* @__PURE__ */ react.createElement("mask", {
2632
- id: "trash_svg__a",
2633
- fill: "#fff"
2634
- }, /* @__PURE__ */ react.createElement("path", { d: "M0 8a8 8 0 0 1 8-8h24a8 8 0 0 1 8 8v24a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8z" }))), _path$2 || (_path$2 = /* @__PURE__ */ react.createElement("path", {
2635
- fill: "#FF4D4F",
2636
- d: "M8 0v1h24v-2H8zm32 8h-1v24h2V8zm-8 32v-1H8v2h24zM0 32h1V8h-2v24zm8 8v-1a7 7 0 0 1-7-7h-2a9 9 0 0 0 9 9zm32-8h-1a7 7 0 0 1-7 7v2a9 9 0 0 0 9-9zM32 0v1a7 7 0 0 1 7 7h2a9 9 0 0 0-9-9zM8 0v-1a9 9 0 0 0-9 9h2a7 7 0 0 1 7-7z",
2637
- mask: "url(#trash_svg__a)"
2638
- })), _path2$1 || (_path2$1 = /* @__PURE__ */ react.createElement("path", {
2639
- fill: "#FF4D4F",
2640
- d: "M26.75 15.484a76 76 0 0 0-7.515-.375q-2.227 0-4.455.225l-1.53.15"
2641
- })), _path3 || (_path3 = /* @__PURE__ */ react.createElement("path", {
2642
- stroke: "#FF4D4F",
2643
- strokeLinecap: "round",
2644
- strokeLinejoin: "round",
2645
- strokeWidth: 1.5,
2646
- d: "M26.75 15.484a76 76 0 0 0-7.515-.375q-2.227 0-4.455.225l-1.53.15M17.375 14.728l.165-.983c.12-.712.21-1.245 1.477-1.245h1.966c1.267 0 1.364.563 1.477 1.252l.165.975M25.137 17.856l-.487 7.552c-.083 1.177-.15 2.092-2.243 2.092h-4.815c-2.092 0-2.16-.915-2.242-2.092l-.488-7.553M18.748 23.375h2.497M18.125 20.375h3.75"
2647
- })));
2648
- };
2649
- var trash_default = SvgTrash;
2650
-
2638
+ //#region src/assets/trash.tsx
2639
+ const Trash = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2640
+ viewBox: "0 0 40 40",
2641
+ fill: "none",
2642
+ xmlns: "http://www.w3.org/2000/svg",
2643
+ ...props,
2644
+ children: [
2645
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("mask", {
2646
+ id: "path-1-inside-1_17984_239034",
2647
+ fill: "white",
2648
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z" })
2649
+ }),
2650
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2651
+ d: "M8 0V1H32V0V-1H8V0ZM40 8H39V32H40H41V8H40ZM32 40V39H8V40V41H32V40ZM0 32H1V8H0H-1V32H0ZM8 40V39C4.13401 39 1 35.866 1 32H0H-1C-1 36.9706 3.02944 41 8 41V40ZM40 32H39C39 35.866 35.866 39 32 39V40V41C36.9706 41 41 36.9706 41 32H40ZM32 0V1C35.866 1 39 4.13401 39 8H40H41C41 3.02944 36.9706 -1 32 -1V0ZM8 0V-1C3.02944 -1 -1 3.02944 -1 8H0H1C1 4.13401 4.13401 1 8 1V0Z",
2652
+ fill: "#FF4D4F",
2653
+ mask: "url(#path-1-inside-1_17984_239034)"
2654
+ }),
2655
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2656
+ d: "M26.75 15.4844C24.2525 15.2369 21.74 15.1094 19.235 15.1094C17.75 15.1094 16.265 15.1844 14.78 15.3344L13.25 15.4844",
2657
+ fill: "#FF4D4F"
2658
+ }),
2659
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2660
+ d: "M26.75 15.4844C24.2525 15.2369 21.74 15.1094 19.235 15.1094C17.75 15.1094 16.265 15.1844 14.78 15.3344L13.25 15.4844",
2661
+ stroke: "#FF4D4F",
2662
+ strokeWidth: "1.5",
2663
+ strokeLinecap: "round",
2664
+ strokeLinejoin: "round"
2665
+ }),
2666
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2667
+ d: "M17.375 14.7275L17.54 13.745C17.66 13.0325 17.75 12.5 19.0175 12.5H20.9825C22.25 12.5 22.3475 13.0625 22.46 13.7525L22.625 14.7275",
2668
+ stroke: "#FF4D4F",
2669
+ strokeWidth: "1.5",
2670
+ strokeLinecap: "round",
2671
+ strokeLinejoin: "round"
2672
+ }),
2673
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2674
+ d: "M25.1373 17.8555L24.6498 25.408C24.5673 26.5855 24.4998 27.5005 22.4073 27.5005H17.5923C15.4998 27.5005 15.4323 26.5855 15.3498 25.408L14.8623 17.8555",
2675
+ stroke: "#FF4D4F",
2676
+ strokeWidth: "1.5",
2677
+ strokeLinecap: "round",
2678
+ strokeLinejoin: "round"
2679
+ }),
2680
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2681
+ d: "M18.7476 23.375H21.2451",
2682
+ stroke: "#FF4D4F",
2683
+ strokeWidth: "1.5",
2684
+ strokeLinecap: "round",
2685
+ strokeLinejoin: "round"
2686
+ }),
2687
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2688
+ d: "M18.125 20.375H21.875",
2689
+ stroke: "#FF4D4F",
2690
+ strokeWidth: "1.5",
2691
+ strokeLinecap: "round",
2692
+ strokeLinejoin: "round"
2693
+ })
2694
+ ]
2695
+ });
2651
2696
  //#endregion
2652
- //#region src/assets/info-circle.svg
2653
- var _path$1;
2654
- function _extends$1() {
2655
- return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
2656
- for (var e = 1; e < arguments.length; e++) {
2657
- var t = arguments[e];
2658
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2659
- }
2660
- return n;
2661
- }, _extends$1.apply(null, arguments);
2662
- }
2663
- var SvgInfoCircle = function SvgInfoCircle$1(props) {
2664
- return /* @__PURE__ */ react.createElement("svg", _extends$1({
2665
- xmlns: "http://www.w3.org/2000/svg",
2666
- width: 24,
2667
- height: 24,
2668
- fill: "none"
2669
- }, props), _path$1 || (_path$1 = /* @__PURE__ */ react.createElement("path", {
2670
- stroke: "#000",
2671
- strokeLinecap: "round",
2672
- strokeLinejoin: "round",
2673
- strokeOpacity: .45,
2674
- strokeWidth: 1.5,
2675
- d: "M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10M12 8v5M11.995 16h.009"
2676
- })));
2677
- };
2678
- var info_circle_default = SvgInfoCircle;
2679
-
2697
+ //#region src/assets/info-circle.tsx
2698
+ const InfoCircle = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2699
+ width: "24",
2700
+ height: "24",
2701
+ viewBox: "0 0 24 24",
2702
+ fill: "none",
2703
+ xmlns: "http://www.w3.org/2000/svg",
2704
+ ...props,
2705
+ children: [
2706
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2707
+ d: "M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z",
2708
+ stroke: "black",
2709
+ strokeOpacity: "0.45",
2710
+ strokeWidth: "1.5",
2711
+ strokeLinecap: "round",
2712
+ strokeLinejoin: "round"
2713
+ }),
2714
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2715
+ d: "M12 8V13",
2716
+ stroke: "black",
2717
+ strokeOpacity: "0.45",
2718
+ strokeWidth: "1.5",
2719
+ strokeLinecap: "round",
2720
+ strokeLinejoin: "round"
2721
+ }),
2722
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2723
+ d: "M11.9946 16H12.0036",
2724
+ stroke: "black",
2725
+ strokeOpacity: "0.45",
2726
+ strokeWidth: "1.5",
2727
+ strokeLinecap: "round",
2728
+ strokeLinejoin: "round"
2729
+ })
2730
+ ]
2731
+ });
2680
2732
  //#endregion
2681
2733
  //#region src/hooks/useDebounce.ts
2682
2734
  function useDebounce(value, delay = 500) {
@@ -2691,7 +2743,6 @@ function useDebounce(value, delay = 500) {
2691
2743
  }, [value, delay]);
2692
2744
  return debouncedValue;
2693
2745
  }
2694
-
2695
2746
  //#endregion
2696
2747
  //#region src/view/components/ApiPage/components/AddParameterDrawer.tsx
2697
2748
  const PARAM_IN_OPTIONS = [
@@ -2737,16 +2788,16 @@ const PARAM_TYPE_OPTIONS = [
2737
2788
  const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initialValues }) => {
2738
2789
  const [form] = antd.Form.useForm();
2739
2790
  const [messageApi, contextHolder] = antd.message.useMessage();
2740
- const [confirmModalOpen, setConfirmModalOpen] = (0, react.useState)(false);
2741
- const [paramName, setParamName] = (0, react.useState)("");
2742
- const [enumInput, setEnumInput] = (0, react.useState)("");
2743
- const [enumValues, setEnumValues] = (0, react.useState)([]);
2791
+ const [confirmModalOpen, setConfirmModalOpen] = (0, react$1.useState)(false);
2792
+ const [paramName, setParamName] = (0, react$1.useState)("");
2793
+ const [enumInput, setEnumInput] = (0, react$1.useState)("");
2794
+ const [enumValues, setEnumValues] = (0, react$1.useState)([]);
2744
2795
  const nameValue = antd.Form.useWatch("name", form);
2745
2796
  const inValue = antd.Form.useWatch("in", form);
2746
2797
  const typeValue = antd.Form.useWatch("type", form);
2747
2798
  const requiredValue = antd.Form.useWatch("required", form);
2748
- const [hasChanges, setHasChanges] = (0, react.useState)(false);
2749
- (0, react.useEffect)(() => {
2799
+ const [hasChanges, setHasChanges] = (0, react$1.useState)(false);
2800
+ (0, react$1.useEffect)(() => {
2750
2801
  if (open) {
2751
2802
  if (mode === "edit" && initialValues) {
2752
2803
  form.setFieldsValue({
@@ -2765,11 +2816,11 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2765
2816
  setHasChanges(false);
2766
2817
  }
2767
2818
  }, [open]);
2768
- const { wrapSSR, cx, token: token$1 } = useStyle("AddParameterDrawer", (token$2, scope) => ({
2819
+ const { wrapSSR, cx, token } = useStyle("AddParameterDrawer", (token, scope) => ({
2769
2820
  [scope("title")]: {
2770
2821
  fontSize: 16,
2771
2822
  fontWeight: 600,
2772
- color: token$2.colorTextBase,
2823
+ color: token.colorTextBase,
2773
2824
  lineHeight: "24px",
2774
2825
  fontFamily: "Cairo SemiBold, Cairo, sans-serif"
2775
2826
  },
@@ -2780,21 +2831,21 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2780
2831
  "& .ant-form-item": { marginBottom: 0 }
2781
2832
  },
2782
2833
  [scope("label")]: {
2783
- fontSize: token$2.fontSize,
2784
- color: token$2.colorText
2834
+ fontSize: token.fontSize,
2835
+ color: token.colorText
2785
2836
  },
2786
2837
  [scope("asterisk")]: {
2787
- color: token$2.colorError,
2838
+ color: token.colorError,
2788
2839
  marginLeft: 2
2789
2840
  },
2790
2841
  [scope("label-optional")]: {
2791
- color: token$2.colorTextTertiary,
2842
+ color: token.colorTextTertiary,
2792
2843
  marginLeft: 4,
2793
- fontSize: token$2.fontSize
2844
+ fontSize: token.fontSize
2794
2845
  },
2795
2846
  [scope("label-secondary")]: {
2796
- fontSize: token$2.fontSize,
2797
- color: token$2.colorTextSecondary
2847
+ fontSize: token.fontSize,
2848
+ color: token.colorTextSecondary
2798
2849
  },
2799
2850
  [scope("switch-row")]: {
2800
2851
  display: "flex",
@@ -2802,8 +2853,8 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2802
2853
  gap: 8
2803
2854
  },
2804
2855
  [scope("switch-label")]: {
2805
- fontSize: token$2.fontSize,
2806
- color: token$2.colorText
2856
+ fontSize: token.fontSize,
2857
+ color: token.colorText
2807
2858
  },
2808
2859
  [scope("enum-input-row")]: {
2809
2860
  display: "flex",
@@ -2818,27 +2869,27 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2818
2869
  width: 32,
2819
2870
  height: 32,
2820
2871
  flexShrink: 0,
2821
- borderColor: token$2.colorPrimary,
2822
- color: token$2.colorPrimary,
2872
+ borderColor: token.colorPrimary,
2873
+ color: token.colorPrimary,
2823
2874
  padding: 0,
2824
2875
  display: "flex",
2825
2876
  alignItems: "center",
2826
2877
  justifyContent: "center",
2827
2878
  "&:hover": {
2828
- borderColor: `${token$2.colorPrimary} !important`,
2829
- color: `${token$2.colorPrimary} !important`
2879
+ borderColor: `${token.colorPrimary} !important`,
2880
+ color: `${token.colorPrimary} !important`
2830
2881
  }
2831
2882
  },
2832
2883
  [scope("enum-list")]: {
2833
2884
  display: "flex",
2834
2885
  flexDirection: "column",
2835
- gap: token$2.marginXS,
2836
- marginTop: token$2.marginXS
2886
+ gap: token.marginXS,
2887
+ marginTop: token.marginXS
2837
2888
  },
2838
2889
  [scope("enum-value-row")]: {
2839
2890
  display: "flex",
2840
2891
  alignItems: "center",
2841
- gap: token$2.marginXS
2892
+ gap: token.marginXS
2842
2893
  },
2843
2894
  [scope("enum-value-input-wrap")]: {
2844
2895
  flex: 1,
@@ -2847,10 +2898,10 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2847
2898
  [scope("enum-value-input")]: {
2848
2899
  height: 32,
2849
2900
  fontSize: 14,
2850
- color: token$2.colorText,
2851
- background: token$2.colorBgBase,
2852
- border: `1px solid ${token$2.colorBorder}`,
2853
- borderRadius: token$2.borderRadius,
2901
+ color: token.colorText,
2902
+ background: token.colorBgBase,
2903
+ border: `1px solid ${token.colorBorder}`,
2904
+ borderRadius: token.borderRadius,
2854
2905
  cursor: "default",
2855
2906
  width: "100%"
2856
2907
  },
@@ -2862,7 +2913,7 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2862
2913
  display: "flex",
2863
2914
  alignItems: "center",
2864
2915
  justifyContent: "center",
2865
- borderRadius: token$2.borderRadius
2916
+ borderRadius: token.borderRadius
2866
2917
  },
2867
2918
  [scope("footer")]: {
2868
2919
  display: "flex",
@@ -2899,7 +2950,7 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2899
2950
  fontSize: 16,
2900
2951
  fontWeight: 400,
2901
2952
  lineHeight: "24px",
2902
- color: token$2.colorText
2953
+ color: token.colorText
2903
2954
  },
2904
2955
  [scope("modalCloseBtn")]: {
2905
2956
  position: "absolute",
@@ -2915,12 +2966,12 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2915
2966
  border: "none",
2916
2967
  background: "transparent",
2917
2968
  padding: 0,
2918
- color: token$2.colorTextTertiary,
2969
+ color: token.colorTextTertiary,
2919
2970
  fontSize: 16,
2920
2971
  lineHeight: 1,
2921
2972
  "&:hover": {
2922
- color: token$2.colorText,
2923
- backgroundColor: token$2.colorFillSecondary
2973
+ color: token.colorText,
2974
+ backgroundColor: token.colorFillSecondary
2924
2975
  }
2925
2976
  },
2926
2977
  [scope("modalContent")]: {
@@ -2937,7 +2988,7 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2937
2988
  fontSize: 14,
2938
2989
  fontWeight: 400,
2939
2990
  lineHeight: "22px",
2940
- color: token$2.colorText
2991
+ color: token.colorText
2941
2992
  },
2942
2993
  [scope("modalFooter")]: {
2943
2994
  display: "flex",
@@ -3022,14 +3073,14 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
3022
3073
  styles: {
3023
3074
  header: {
3024
3075
  padding: "16px 24px",
3025
- borderBottom: `1px solid ${token$1.colorFillSecondary}`,
3026
- background: token$1.colorBgBase
3076
+ borderBottom: `1px solid ${token.colorFillSecondary}`,
3077
+ background: token.colorBgBase
3027
3078
  },
3028
3079
  body: { padding: "24px" },
3029
3080
  footer: {
3030
3081
  padding: "24px",
3031
- background: token$1.colorPrimaryBg,
3032
- borderTop: `1px solid ${token$1.colorFillSecondary}`
3082
+ background: token.colorPrimaryBg,
3083
+ borderTop: `1px solid ${token.colorFillSecondary}`
3033
3084
  }
3034
3085
  },
3035
3086
  footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -3042,7 +3093,7 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
3042
3093
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
3043
3094
  size: "large",
3044
3095
  type: "primary",
3045
- icon: mode === "edit" ? void 0 : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.PlusOutlined, {}),
3096
+ icon: mode === "edit" ? void 0 : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.PlusOutlined, {}),
3046
3097
  className: cx("footer-btn"),
3047
3098
  disabled: !isAddEnabled,
3048
3099
  onClick: handleAddClick,
@@ -3133,7 +3184,7 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
3133
3184
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Switch, {
3134
3185
  checked: requiredValue ?? true,
3135
3186
  onChange: (checked) => form.setFieldValue("required", checked),
3136
- style: { backgroundColor: requiredValue ?? true ? token$1.colorPrimary : void 0 }
3187
+ style: { backgroundColor: requiredValue ?? true ? token.colorPrimary : void 0 }
3137
3188
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
3138
3189
  className: cx("switch-label"),
3139
3190
  children: "Required?"
@@ -3182,7 +3233,7 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
3182
3233
  })
3183
3234
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
3184
3235
  ghost: true,
3185
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.PlusOutlined, {}),
3236
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.PlusOutlined, {}),
3186
3237
  className: cx("enum-add-btn"),
3187
3238
  onClick: handleAddEnumValue,
3188
3239
  disabled: !enumInput.trim()
@@ -3201,7 +3252,7 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
3201
3252
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
3202
3253
  danger: true,
3203
3254
  type: "text",
3204
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(trash_default, {
3255
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Trash, {
3205
3256
  width: 32,
3206
3257
  height: 32
3207
3258
  }),
@@ -3274,9 +3325,9 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
3274
3325
  borderRadius: 8,
3275
3326
  height: 32,
3276
3327
  paddingInline: 16,
3277
- backgroundColor: token$1.colorPrimary,
3278
- borderColor: token$1.colorPrimary,
3279
- boxShadow: `0px 2px 0px ${token$1.colorPrimaryBg}`
3328
+ backgroundColor: token.colorPrimary,
3329
+ borderColor: token.colorPrimary,
3330
+ boxShadow: `0px 2px 0px ${token.colorPrimaryBg}`
3280
3331
  },
3281
3332
  children: mode === "edit" ? "Yes, Edit" : "Yes, Add"
3282
3333
  })]
@@ -3285,20 +3336,19 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
3285
3336
  })
3286
3337
  ] }));
3287
3338
  };
3288
-
3289
3339
  //#endregion
3290
3340
  //#region src/view/components/ApiPage/components/EndpointsSection.tsx
3291
3341
  const { useBreakpoint: useBreakpoint$1 } = antd.Grid;
3292
3342
  const PAGE_SIZE = 5;
3293
- const getStatusCodeColor = (code, token$1) => {
3343
+ const getStatusCodeColor = (code, token) => {
3294
3344
  const n = parseInt(code, 10);
3295
3345
  if (n >= 400 && n < 500) return {
3296
- dot: token$1.colorError,
3297
- text: token$1.colorError
3346
+ dot: token.colorError,
3347
+ text: token.colorError
3298
3348
  };
3299
3349
  return {
3300
- dot: token$1.colorSuccess,
3301
- text: token$1.colorText
3350
+ dot: token.colorSuccess,
3351
+ text: token.colorText
3302
3352
  };
3303
3353
  };
3304
3354
  const buildViewParamRows = (params) => params.map((p, idx) => ({
@@ -3310,28 +3360,28 @@ const buildViewParamRows = (params) => params.map((p, idx) => ({
3310
3360
  enum: p.enum ?? []
3311
3361
  }));
3312
3362
  const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse, endpointNames, endpointDescs, endpointTags, availableTags, onEndpointNameChange, onEndpointDescChange, onEndpointTagsChange, endpointParams, onAddParameter, onEditParameter, onDeleteParameter, endpointResponseParams, onAddResponseParameter, onEditResponseParameter, onDeleteResponseParameter, mode = "edit" }) => {
3313
- const [expandedId, setExpandedId] = (0, react.useState)(null);
3314
- const [paramDrawerOpen, setParamDrawerOpen] = (0, react.useState)(false);
3315
- const [paramDrawerEndpointId, setParamDrawerEndpointId] = (0, react.useState)(null);
3316
- const [paramDrawerMode, setParamDrawerMode] = (0, react.useState)("add");
3317
- const [editParamIdx, setEditParamIdx] = (0, react.useState)(null);
3318
- const [deleteParamModal, setDeleteParamModal] = (0, react.useState)({
3363
+ const [expandedId, setExpandedId] = (0, react$1.useState)(null);
3364
+ const [paramDrawerOpen, setParamDrawerOpen] = (0, react$1.useState)(false);
3365
+ const [paramDrawerEndpointId, setParamDrawerEndpointId] = (0, react$1.useState)(null);
3366
+ const [paramDrawerMode, setParamDrawerMode] = (0, react$1.useState)("add");
3367
+ const [editParamIdx, setEditParamIdx] = (0, react$1.useState)(null);
3368
+ const [deleteParamModal, setDeleteParamModal] = (0, react$1.useState)({
3319
3369
  open: false,
3320
3370
  endpointId: "",
3321
3371
  idx: -1,
3322
3372
  name: "",
3323
3373
  source: "request"
3324
3374
  });
3325
- const [openRequestPanels, setOpenRequestPanels] = (0, react.useState)(/* @__PURE__ */ new Set());
3326
- const [openResponsePanels, setOpenResponsePanels] = (0, react.useState)(/* @__PURE__ */ new Set());
3327
- const [selectedStatusCodes, setSelectedStatusCodes] = (0, react.useState)({});
3328
- const [drawerSource, setDrawerSource] = (0, react.useState)("request");
3329
- const [requestPages, setRequestPages] = (0, react.useState)(/* @__PURE__ */ new Map());
3330
- const [responsePages, setResponsePages] = (0, react.useState)(/* @__PURE__ */ new Map());
3331
- const [requestSearches, setRequestSearches] = (0, react.useState)({});
3332
- const [responseSearches, setResponseSearches] = (0, react.useState)({});
3333
- const [showRequestSearch, setShowRequestSearch] = (0, react.useState)({});
3334
- const [showResponseSearch, setShowResponseSearch] = (0, react.useState)({});
3375
+ const [openRequestPanels, setOpenRequestPanels] = (0, react$1.useState)(/* @__PURE__ */ new Set());
3376
+ const [openResponsePanels, setOpenResponsePanels] = (0, react$1.useState)(/* @__PURE__ */ new Set());
3377
+ const [selectedStatusCodes, setSelectedStatusCodes] = (0, react$1.useState)({});
3378
+ const [drawerSource, setDrawerSource] = (0, react$1.useState)("request");
3379
+ const [requestPages, setRequestPages] = (0, react$1.useState)(/* @__PURE__ */ new Map());
3380
+ const [responsePages, setResponsePages] = (0, react$1.useState)(/* @__PURE__ */ new Map());
3381
+ const [requestSearches, setRequestSearches] = (0, react$1.useState)({});
3382
+ const [responseSearches, setResponseSearches] = (0, react$1.useState)({});
3383
+ const [showRequestSearch, setShowRequestSearch] = (0, react$1.useState)({});
3384
+ const [showResponseSearch, setShowResponseSearch] = (0, react$1.useState)({});
3335
3385
  const debouncedRequestSearches = useDebounce(requestSearches);
3336
3386
  const debouncedResponseSearches = useDebounce(responseSearches);
3337
3387
  const { selectNodeByKey } = useNodeSelection();
@@ -3353,11 +3403,11 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3353
3403
  return next;
3354
3404
  });
3355
3405
  };
3356
- const { wrapSSR, cx, token: token$1 } = useStyle("EndpointsSection", (token$2, scope) => ({
3406
+ const { wrapSSR, cx, token } = useStyle("EndpointsSection", (token, scope) => ({
3357
3407
  [scope("root")]: {
3358
3408
  display: "flex",
3359
3409
  flexDirection: "column",
3360
- borderRadius: token$2.borderRadius,
3410
+ borderRadius: token.borderRadius,
3361
3411
  overflow: "hidden",
3362
3412
  width: "100%",
3363
3413
  flexShrink: 0
@@ -3366,28 +3416,28 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3366
3416
  display: "flex",
3367
3417
  alignItems: "center",
3368
3418
  justifyContent: "space-between",
3369
- padding: `${token$2.paddingXS}px ${token$2.paddingLG}px`,
3370
- background: token$2.colorPrimaryBg,
3371
- borderRadius: `${token$2.borderRadius}px ${token$2.borderRadius}px 0 0`
3419
+ padding: `${token.paddingXS}px ${token.paddingLG}px`,
3420
+ background: token.colorPrimaryBg,
3421
+ borderRadius: `${token.borderRadius}px ${token.borderRadius}px 0 0`
3372
3422
  },
3373
3423
  [scope("body")]: {
3374
3424
  display: "flex",
3375
3425
  flexDirection: "column",
3376
- gap: token$2.margin,
3377
- padding: token$2.paddingLG,
3378
- background: token$2.colorBgElevated,
3379
- borderRadius: `0 0 ${token$2.borderRadius}px ${token$2.borderRadius}px`
3426
+ gap: token.margin,
3427
+ padding: token.paddingLG,
3428
+ background: token.colorBgElevated,
3429
+ borderRadius: `0 0 ${token.borderRadius}px ${token.borderRadius}px`
3380
3430
  },
3381
3431
  [scope("tag-title")]: {
3382
- fontSize: token$2.fontSize,
3432
+ fontSize: token.fontSize,
3383
3433
  fontWeight: 600,
3384
- color: token$2.colorTextSecondary,
3385
- marginBottom: token$2.marginXS
3434
+ color: token.colorTextSecondary,
3435
+ marginBottom: token.marginXS
3386
3436
  },
3387
3437
  [scope("endpoint-row")]: {
3388
3438
  display: "flex",
3389
3439
  alignItems: "center",
3390
- gap: token$2.marginSM,
3440
+ gap: token.marginSM,
3391
3441
  width: "100%"
3392
3442
  },
3393
3443
  [scope("endpoint-card")]: {
@@ -3395,44 +3445,48 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3395
3445
  flex: "1 0 0",
3396
3446
  alignItems: "center",
3397
3447
  gap: 14,
3398
- padding: `${token$2.paddingXS}px ${token$2.padding}px`,
3399
- background: token$2.colorFillSecondary,
3400
- borderRadius: token$2.borderRadius,
3401
- cursor: "pointer"
3448
+ padding: `${token.paddingXS}px ${token.padding}px`,
3449
+ background: token.colorFillSecondary,
3450
+ borderRadius: token.borderRadius,
3451
+ cursor: "pointer",
3452
+ overflow: "hidden"
3402
3453
  },
3403
3454
  [scope("endpoint-card-active")]: {
3404
3455
  background: "transparent",
3405
- border: `1px solid ${token$2.colorPrimaryBorder}`
3456
+ border: `1px solid ${token.colorPrimaryBorder}`
3406
3457
  },
3407
3458
  [scope("method-badge")]: {
3408
3459
  display: "flex",
3409
3460
  alignItems: "center",
3410
3461
  justifyContent: "center",
3411
3462
  width: 64,
3412
- padding: `0 ${token$2.paddingXS}px`,
3413
- borderRadius: token$2.borderRadius,
3463
+ padding: `0 ${token.paddingXS}px`,
3464
+ borderRadius: token.borderRadius,
3414
3465
  border: "1px solid",
3415
- fontSize: token$2.fontSize,
3466
+ fontSize: token.fontSize,
3416
3467
  fontWeight: 400,
3417
3468
  lineHeight: "22px",
3418
3469
  whiteSpace: "nowrap",
3419
3470
  alignSelf: "stretch"
3420
3471
  },
3421
3472
  [scope("endpoint-path")]: {
3422
- fontSize: token$2.fontSizeLG,
3473
+ fontSize: token.fontSizeLG,
3423
3474
  fontWeight: 600,
3424
- color: token$2.colorTextHeading,
3425
- lineHeight: "24px"
3475
+ color: token.colorTextHeading,
3476
+ lineHeight: "24px",
3477
+ overflow: "hidden",
3478
+ textOverflow: "ellipsis",
3479
+ whiteSpace: "nowrap"
3426
3480
  },
3427
3481
  [scope("endpoint-form")]: {
3428
3482
  display: "flex",
3429
3483
  flexDirection: "column",
3430
- gap: token$2.paddingLG,
3431
- padding: token$2.paddingLG,
3432
- borderLeft: `3px solid ${token$2.colorPrimaryBorder}`,
3433
- borderRight: `3px solid ${token$2.colorPrimaryBorder}`,
3434
- borderBottom: `3px solid ${token$2.colorPrimaryBorder}`,
3435
- borderRadius: `0 0 ${token$2.borderRadius}px ${token$2.borderRadius}px`
3484
+ gap: token.paddingLG,
3485
+ padding: token.paddingLG,
3486
+ borderLeft: `3px solid ${token.colorPrimaryBorder}`,
3487
+ borderRight: `3px solid ${token.colorPrimaryBorder}`,
3488
+ borderBottom: `3px solid ${token.colorPrimaryBorder}`,
3489
+ borderRadius: `0 0 ${token.borderRadius}px ${token.borderRadius}px`
3436
3490
  },
3437
3491
  [scope("form-row")]: {
3438
3492
  display: "flex",
@@ -3448,41 +3502,41 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3448
3502
  [scope("field-label")]: {
3449
3503
  display: "flex",
3450
3504
  alignItems: "center",
3451
- gap: token$2.marginXXS,
3452
- fontSize: token$2.fontSize,
3505
+ gap: token.marginXXS,
3506
+ fontSize: token.fontSize,
3453
3507
  fontWeight: 400,
3454
- color: token$2.colorText,
3455
- paddingBottom: token$2.paddingXS,
3508
+ color: token.colorText,
3509
+ paddingBottom: token.paddingXS,
3456
3510
  lineHeight: "22px"
3457
3511
  },
3458
- [scope("label-required")]: { color: token$2.colorError },
3459
- [scope("label-optional")]: { color: token$2.colorTextDescription },
3512
+ [scope("label-required")]: { color: token.colorError },
3513
+ [scope("label-optional")]: { color: token.colorTextDescription },
3460
3514
  [scope("section-header")]: {
3461
3515
  display: "flex",
3462
3516
  alignItems: "center",
3463
3517
  justifyContent: "space-between",
3464
- paddingBottom: token$2.marginXXS,
3465
- borderBottom: `1px solid ${token$2.colorBorder}`,
3518
+ paddingBottom: token.marginXXS,
3519
+ borderBottom: `1px solid ${token.colorBorder}`,
3466
3520
  width: "100%"
3467
3521
  },
3468
3522
  [scope("section-title")]: {
3469
- fontSize: token$2.fontSizeLG,
3523
+ fontSize: token.fontSizeLG,
3470
3524
  fontWeight: 600,
3471
- color: token$2.colorPrimary,
3525
+ color: token.colorPrimary,
3472
3526
  lineHeight: "24px"
3473
3527
  },
3474
3528
  [scope("param-row")]: {
3475
3529
  display: "flex",
3476
3530
  alignItems: "center",
3477
- gap: token$2.marginXS,
3478
- padding: `${token$2.marginXXS}px ${token$2.marginSM}px`,
3479
- border: `1px solid ${token$2.colorBorder}`,
3480
- borderRadius: token$2.borderRadius,
3481
- background: token$2.colorBgContainer,
3531
+ gap: token.marginXS,
3532
+ padding: `${token.marginXXS}px ${token.marginSM}px`,
3533
+ border: `1px solid ${token.colorBorder}`,
3534
+ borderRadius: token.borderRadius,
3535
+ background: token.colorBgContainer,
3482
3536
  width: "100%",
3483
3537
  cursor: "pointer",
3484
3538
  userSelect: "none",
3485
- "&:hover": { background: token$2.colorFillTertiary }
3539
+ "&:hover": { background: token.colorFillTertiary }
3486
3540
  },
3487
3541
  [scope("param-row-icon")]: {
3488
3542
  fontSize: 12,
@@ -3499,7 +3553,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3499
3553
  fontFamily: "Cairo, sans-serif",
3500
3554
  fontSize: 14,
3501
3555
  lineHeight: "20px",
3502
- color: token$2.colorTextLightSolid,
3556
+ color: token.colorTextLightSolid,
3503
3557
  width: "100%",
3504
3558
  whiteSpace: "pre",
3505
3559
  overflowX: "auto",
@@ -3515,7 +3569,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3515
3569
  },
3516
3570
  [scope("code-btn")]: {
3517
3571
  borderColor: "#fff",
3518
- color: token$2.colorTextLightSolid,
3572
+ color: token.colorTextLightSolid,
3519
3573
  "&:hover": {
3520
3574
  borderColor: "#fff !important",
3521
3575
  color: "#fff !important",
@@ -3533,8 +3587,8 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3533
3587
  justifyContent: "space-between",
3534
3588
  width: "100%",
3535
3589
  padding: `12px 24px`,
3536
- borderBottom: `1px solid ${token$2.colorBorderSecondary}`,
3537
- background: token$2.colorBgContainer,
3590
+ borderBottom: `1px solid ${token.colorBorderSecondary}`,
3591
+ background: token.colorBgContainer,
3538
3592
  "&:last-child": { borderBottom: "none" }
3539
3593
  },
3540
3594
  [scope("param-details")]: {
@@ -3552,12 +3606,12 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3552
3606
  [scope("param-detail-label")]: {
3553
3607
  fontFamily: "Cairo SemiBold, Cairo, sans-serif",
3554
3608
  fontSize: 16,
3555
- color: token$2.colorTextSecondary
3609
+ color: token.colorTextSecondary
3556
3610
  },
3557
3611
  [scope("param-detail-value")]: {
3558
3612
  fontFamily: "Cairo, sans-serif",
3559
3613
  fontSize: 16,
3560
- color: token$2.colorText
3614
+ color: token.colorText
3561
3615
  },
3562
3616
  [scope("param-detail-value--ellipsis")]: {
3563
3617
  overflow: "hidden",
@@ -3576,13 +3630,13 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3576
3630
  display: "inline-flex",
3577
3631
  alignItems: "center",
3578
3632
  verticalAlign: "middle",
3579
- background: token$2.colorBgContainer,
3580
- border: `1px solid ${token$2.colorBorder}`,
3633
+ background: token.colorBgContainer,
3634
+ border: `1px solid ${token.colorBorder}`,
3581
3635
  borderRadius: 6,
3582
3636
  padding: "1px 8px",
3583
3637
  fontSize: 12,
3584
3638
  lineHeight: "20px",
3585
- color: token$2.colorText,
3639
+ color: token.colorText,
3586
3640
  fontFamily: "Cairo, sans-serif",
3587
3641
  margin: 0
3588
3642
  },
@@ -3594,10 +3648,10 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3594
3648
  width: 20,
3595
3649
  height: 20,
3596
3650
  borderRadius: "50%",
3597
- border: `1px solid ${token$2.colorBorder}`,
3651
+ border: `1px solid ${token.colorBorder}`,
3598
3652
  background: "white",
3599
3653
  fontSize: 12,
3600
- color: token$2.colorText,
3654
+ color: token.colorText,
3601
3655
  cursor: "default"
3602
3656
  },
3603
3657
  [scope("enum-tooltip-list")]: {
@@ -3605,7 +3659,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3605
3659
  padding: "0 0 0 16px",
3606
3660
  fontSize: 14,
3607
3661
  lineHeight: "22px",
3608
- color: token$2.colorTextLightSolid,
3662
+ color: token.colorTextLightSolid,
3609
3663
  fontFamily: "Cairo, sans-serif"
3610
3664
  },
3611
3665
  [scope("status-label")]: {
@@ -3656,7 +3710,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3656
3710
  alignItems: "center",
3657
3711
  gap: 8
3658
3712
  },
3659
- "& .ant-select-item-option-selected": { background: `${token$2.colorPrimaryBg} !important` }
3713
+ "& .ant-select-item-option-selected": { background: `${token.colorPrimaryBg} !important` }
3660
3714
  },
3661
3715
  [scope("param-actions")]: {
3662
3716
  display: "flex",
@@ -3669,11 +3723,11 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3669
3723
  display: "flex",
3670
3724
  alignItems: "center",
3671
3725
  justifyContent: "center",
3672
- borderColor: token$2.colorPrimary,
3673
- color: token$2.colorPrimary,
3726
+ borderColor: token.colorPrimary,
3727
+ color: token.colorPrimary,
3674
3728
  "&:hover": {
3675
- borderColor: `${token$2.colorPrimary} !important`,
3676
- color: `${token$2.colorPrimary} !important`
3729
+ borderColor: `${token.colorPrimary} !important`,
3730
+ color: `${token.colorPrimary} !important`
3677
3731
  }
3678
3732
  },
3679
3733
  [scope("param-delete-btn")]: {
@@ -3703,7 +3757,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3703
3757
  fontSize: 16,
3704
3758
  fontWeight: 400,
3705
3759
  lineHeight: "24px",
3706
- color: token$2.colorText
3760
+ color: token.colorText
3707
3761
  },
3708
3762
  [scope("deleteModalCloseBtn")]: {
3709
3763
  position: "absolute",
@@ -3719,12 +3773,12 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3719
3773
  border: "none",
3720
3774
  background: "transparent",
3721
3775
  padding: 0,
3722
- color: token$2.colorTextSecondary,
3776
+ color: token.colorTextSecondary,
3723
3777
  fontSize: 16,
3724
3778
  lineHeight: 1,
3725
3779
  "&:hover": {
3726
- color: token$2.colorText,
3727
- backgroundColor: token$2.colorFillSecondary
3780
+ color: token.colorText,
3781
+ backgroundColor: token.colorFillSecondary
3728
3782
  }
3729
3783
  },
3730
3784
  [scope("deleteModalContent")]: {
@@ -3741,7 +3795,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3741
3795
  fontSize: 14,
3742
3796
  fontWeight: 400,
3743
3797
  lineHeight: "22px",
3744
- color: token$2.colorText
3798
+ color: token.colorText
3745
3799
  },
3746
3800
  [scope("deleteModalFooter")]: {
3747
3801
  display: "flex",
@@ -3759,33 +3813,33 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3759
3813
  flexDirection: "column",
3760
3814
  gap: 16,
3761
3815
  width: "100%",
3762
- borderLeft: `3px solid ${token$2.colorPrimaryBorder}`,
3763
- borderRight: `3px solid ${token$2.colorPrimaryBorder}`,
3764
- borderBottom: `3px solid ${token$2.colorPrimaryBorder}`,
3765
- borderRadius: `0 0 ${token$2.borderRadius}px ${token$2.borderRadius}px`,
3766
- padding: token$2.paddingLG
3816
+ borderLeft: `3px solid ${token.colorPrimaryBorder}`,
3817
+ borderRight: `3px solid ${token.colorPrimaryBorder}`,
3818
+ borderBottom: `3px solid ${token.colorPrimaryBorder}`,
3819
+ borderRadius: `0 0 ${token.borderRadius}px ${token.borderRadius}px`,
3820
+ padding: token.paddingLG
3767
3821
  },
3768
3822
  [scope("view-params-card")]: {
3769
- border: `1px solid ${token$2.colorBorder}`,
3770
- borderRadius: token$2.borderRadius,
3823
+ border: `1px solid ${token.colorBorder}`,
3824
+ borderRadius: token.borderRadius,
3771
3825
  display: "flex",
3772
3826
  flexDirection: "column",
3773
- gap: token$2.marginSM,
3827
+ gap: token.marginSM,
3774
3828
  paddingTop: 12,
3775
3829
  width: "100%",
3776
3830
  overflow: "hidden",
3777
3831
  "& .ant-table-thead > tr > th": {
3778
- background: token$2.colorFillSecondary,
3832
+ background: token.colorFillSecondary,
3779
3833
  fontWeight: 700,
3780
3834
  fontSize: 14,
3781
- padding: `${token$2.paddingXS}px`,
3782
- paddingInline: `${token$2.paddingXS}px`,
3783
- borderColor: `${token$2.colorSplit} !important`
3835
+ padding: `${token.paddingXS}px`,
3836
+ paddingInline: `${token.paddingXS}px`,
3837
+ borderColor: `${token.colorSplit} !important`
3784
3838
  },
3785
3839
  "& .ant-table-tbody > tr > td": {
3786
- padding: `${token$2.paddingXS}px`,
3787
- paddingInline: `${token$2.paddingXS}px`,
3788
- borderColor: `${token$2.colorBorder} !important`,
3840
+ padding: `${token.paddingXS}px`,
3841
+ paddingInline: `${token.paddingXS}px`,
3842
+ borderColor: `${token.colorBorder} !important`,
3789
3843
  height: 38
3790
3844
  },
3791
3845
  "& .ant-table-container": {
@@ -3804,30 +3858,30 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3804
3858
  [scope("view-params-title")]: {
3805
3859
  fontSize: 16,
3806
3860
  fontWeight: 600,
3807
- color: token$2.colorText
3861
+ color: token.colorText
3808
3862
  },
3809
3863
  [scope("view-status-select-sm")]: { width: 65 },
3810
3864
  [scope("view-param-name")]: {
3811
3865
  fontSize: 14,
3812
3866
  fontWeight: 400,
3813
- color: token$2.colorText
3867
+ color: token.colorText
3814
3868
  },
3815
3869
  [scope("view-param-type")]: {
3816
3870
  fontFamily: "'Cascadia Code', sans-serif",
3817
3871
  fontSize: 12,
3818
- color: token$2.colorTextSecondary,
3872
+ color: token.colorTextSecondary,
3819
3873
  marginLeft: 4,
3820
3874
  marginRight: 4
3821
3875
  },
3822
- [scope("view-param-required")]: { color: token$2.colorError },
3876
+ [scope("view-param-required")]: { color: token.colorError },
3823
3877
  [scope("view-param-optional")]: {
3824
- color: token$2.colorSuccess,
3878
+ color: token.colorSuccess,
3825
3879
  fontSize: 12,
3826
3880
  marginLeft: 4
3827
3881
  },
3828
3882
  [scope("view-param-desc")]: {
3829
3883
  fontSize: 12,
3830
- color: token$2.colorText
3884
+ color: token.colorText
3831
3885
  },
3832
3886
  [scope("view-enum-container")]: {
3833
3887
  display: "inline-flex",
@@ -3836,21 +3890,21 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3836
3890
  alignItems: "center"
3837
3891
  },
3838
3892
  [scope("view-enum-tag")]: {
3839
- background: token$2.colorFillSecondary,
3840
- border: `1px solid ${token$2.colorBorder}`,
3893
+ background: token.colorFillSecondary,
3894
+ border: `1px solid ${token.colorBorder}`,
3841
3895
  borderRadius: 4,
3842
3896
  padding: "1px 8px",
3843
3897
  fontSize: 12,
3844
3898
  lineHeight: "20px",
3845
- color: token$2.colorText,
3899
+ color: token.colorText,
3846
3900
  margin: 0,
3847
3901
  cursor: "default"
3848
3902
  },
3849
- [scope("view-row-odd")]: { "& > td": { background: `${token$2.colorBgLayout} !important` } },
3850
- [scope("view-row-even")]: { "& > td": { background: `${token$2.colorBgContainer} !important` } },
3903
+ [scope("view-row-odd")]: { "& > td": { background: `${token.colorBgLayout} !important` } },
3904
+ [scope("view-row-even")]: { "& > td": { background: `${token.colorBgContainer} !important` } },
3851
3905
  [scope("empty-wrapper")]: {
3852
- background: token$2.colorBgElevated,
3853
- borderRadius: token$2.borderRadius,
3906
+ background: token.colorBgElevated,
3907
+ borderRadius: token.borderRadius,
3854
3908
  paddingTop: 16,
3855
3909
  paddingBottom: 16,
3856
3910
  gap: 8,
@@ -3883,25 +3937,25 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3883
3937
  [scope("empty-description")]: {
3884
3938
  fontSize: 14,
3885
3939
  lineHeight: "22px",
3886
- color: token$2.colorTextDescription,
3940
+ color: token.colorTextDescription,
3887
3941
  textAlign: "center",
3888
3942
  fontWeight: 400
3889
3943
  },
3890
3944
  [scope("pagination")]: {
3891
3945
  display: "flex",
3892
3946
  justifyContent: "center",
3893
- marginTop: token$2.marginMD,
3947
+ marginTop: token.marginMD,
3894
3948
  ".ant-pagination-item-active": {
3895
- backgroundColor: token$2.colorBgContainer,
3896
- borderColor: token$2.colorPrimary,
3897
- borderRadius: token$2.borderRadius,
3949
+ backgroundColor: token.colorBgContainer,
3950
+ borderColor: token.colorPrimary,
3951
+ borderRadius: token.borderRadius,
3898
3952
  display: "flex",
3899
3953
  alignItems: "center",
3900
3954
  justifyContent: "center",
3901
3955
  a: {
3902
- color: token$2.colorPrimary,
3903
- fontWeight: token$2.fontWeightStrong,
3904
- fontSize: token$2.fontSize,
3956
+ color: token.colorPrimary,
3957
+ fontWeight: token.fontWeightStrong,
3958
+ fontSize: token.fontSize,
3905
3959
  lineHeight: "22px",
3906
3960
  display: "flex",
3907
3961
  alignItems: "center",
@@ -3910,18 +3964,18 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
3910
3964
  }
3911
3965
  },
3912
3966
  ".ant-pagination-item": {
3913
- borderRadius: token$2.borderRadius,
3967
+ borderRadius: token.borderRadius,
3914
3968
  minWidth: 32,
3915
3969
  height: 32,
3916
3970
  lineHeight: "32px",
3917
3971
  a: {
3918
- color: token$2.colorText,
3972
+ color: token.colorText,
3919
3973
  fontWeight: 400,
3920
- fontSize: token$2.fontSize
3974
+ fontSize: token.fontSize
3921
3975
  }
3922
3976
  },
3923
3977
  ".ant-pagination-prev .ant-pagination-item-link, .ant-pagination-next .ant-pagination-item-link": {
3924
- borderRadius: token$2.borderRadius,
3978
+ borderRadius: token.borderRadius,
3925
3979
  width: 32,
3926
3980
  height: 32,
3927
3981
  display: "flex",
@@ -4015,13 +4069,13 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4015
4069
  level: 4,
4016
4070
  style: {
4017
4071
  margin: 0,
4018
- color: token$1.colorTextHeading
4072
+ color: token.colorTextHeading
4019
4073
  },
4020
4074
  children: "Endpoints"
4021
4075
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4022
4076
  type: "text",
4023
4077
  size: "large",
4024
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.UpCircleOutlined, { style: { fontSize: 18 } }),
4078
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.UpCircleOutlined, { style: { fontSize: 18 } }),
4025
4079
  onClick: onToggleCollapse,
4026
4080
  style: {
4027
4081
  transform: collapsed ? "rotate(180deg)" : "rotate(0deg)",
@@ -4043,16 +4097,19 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4043
4097
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4044
4098
  className: cx("method-badge"),
4045
4099
  style: {
4046
- color: methodColor?.color,
4100
+ color: isExpanded ? "#ffffff" : methodColor?.color,
4047
4101
  borderColor: methodColor?.color,
4048
- backgroundColor: methodColor?.bg
4102
+ backgroundColor: isExpanded ? methodColor?.color : "transparent"
4049
4103
  },
4050
4104
  children: ep.method
4051
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4052
- className: cx("endpoint-path"),
4053
- children: ep.path
4105
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
4106
+ title: ep.path,
4107
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4108
+ className: cx("endpoint-path"),
4109
+ children: ep.path
4110
+ })
4054
4111
  })]
4055
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.UpCircleOutlined, {
4112
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.UpCircleOutlined, {
4056
4113
  onClick: () => handleEndpointClick(ep),
4057
4114
  style: {
4058
4115
  fontSize: 16,
@@ -4060,7 +4117,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4060
4117
  transform: isExpanded ? "rotate(0deg)" : "rotate(180deg)",
4061
4118
  transition: "transform 0.2s",
4062
4119
  flexShrink: 0,
4063
- color: isExpanded ? token$1.colorPrimary : token$1.colorText
4120
+ color: isExpanded ? token.colorPrimary : token.colorText
4064
4121
  }
4065
4122
  })]
4066
4123
  }),
@@ -4187,7 +4244,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4187
4244
  style: {
4188
4245
  display: "flex",
4189
4246
  alignItems: "center",
4190
- gap: token$1.marginMD
4247
+ gap: token.marginMD
4191
4248
  },
4192
4249
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4193
4250
  className: cx("section-title"),
@@ -4195,7 +4252,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4195
4252
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4196
4253
  ghost: true,
4197
4254
  type: "primary",
4198
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.SearchOutlined, {}),
4255
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.SearchOutlined, {}),
4199
4256
  size: "large",
4200
4257
  style: {
4201
4258
  width: 40,
@@ -4213,7 +4270,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4213
4270
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4214
4271
  ghost: true,
4215
4272
  type: "primary",
4216
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.PlusOutlined, {}),
4273
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.PlusOutlined, {}),
4217
4274
  onClick: () => {
4218
4275
  setDrawerSource("request");
4219
4276
  setParamDrawerMode("add");
@@ -4249,7 +4306,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4249
4306
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4250
4307
  ghost: true,
4251
4308
  type: "primary",
4252
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.PlusOutlined, {}),
4309
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.PlusOutlined, {}),
4253
4310
  onClick: () => {
4254
4311
  setDrawerSource("request");
4255
4312
  setParamDrawerMode("add");
@@ -4313,7 +4370,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4313
4370
  const pagedReqParams = allReqParams.slice((reqPage - 1) * PAGE_SIZE, reqPage * PAGE_SIZE);
4314
4371
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
4315
4372
  className: cx("param-list"),
4316
- style: { marginTop: token$1.margin },
4373
+ style: { marginTop: token.margin },
4317
4374
  children: pagedReqParams.map((param, i) => {
4318
4375
  const idx = (reqPage - 1) * PAGE_SIZE + i;
4319
4376
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -4353,16 +4410,16 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4353
4410
  style: {
4354
4411
  display: "flex",
4355
4412
  alignItems: "center",
4356
- gap: token$1.margin,
4357
- background: token$1.colorFillTertiary,
4358
- borderRadius: token$1.borderRadius,
4359
- padding: `0 ${token$1.marginSM}px`,
4413
+ gap: token.margin,
4414
+ background: token.colorFillTertiary,
4415
+ borderRadius: token.borderRadius,
4416
+ padding: `0 ${token.marginSM}px`,
4360
4417
  height: 50,
4361
4418
  flexShrink: 0
4362
4419
  },
4363
4420
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4364
4421
  danger: true,
4365
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(trash_default, {
4422
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Trash, {
4366
4423
  width: 32,
4367
4424
  height: 32
4368
4425
  }),
@@ -4383,7 +4440,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4383
4440
  })
4384
4441
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4385
4442
  ghost: true,
4386
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EditOutlined, {}),
4443
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EditOutlined, {}),
4387
4444
  className: cx("param-edit-btn"),
4388
4445
  onClick: () => {
4389
4446
  setDrawerSource("request");
@@ -4481,7 +4538,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4481
4538
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4482
4539
  danger: true,
4483
4540
  type: "text",
4484
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(trash_default, {
4541
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Trash, {
4485
4542
  height: 32,
4486
4543
  width: 32
4487
4544
  }),
@@ -4499,7 +4556,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4499
4556
  })
4500
4557
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4501
4558
  ghost: true,
4502
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EditOutlined, {}),
4559
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EditOutlined, {}),
4503
4560
  className: cx("param-edit-btn"),
4504
4561
  onClick: () => {
4505
4562
  setDrawerSource("request");
@@ -4523,12 +4580,12 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4523
4580
  })(),
4524
4581
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
4525
4582
  className: cx("param-row"),
4526
- style: { marginTop: token$1.margin },
4583
+ style: { marginTop: token.margin },
4527
4584
  onClick: () => toggleRequestPanel(ep.id),
4528
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.DownOutlined, { className: cx("param-row-icon", openRequestPanels.has(ep.id) ? "param-row-icon--open" : "") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
4529
- style: { fontSize: token$1.fontSize },
4585
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.DownOutlined, { className: cx("param-row-icon", openRequestPanels.has(ep.id) ? "param-row-icon--open" : "") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
4586
+ style: { fontSize: token.fontSize },
4530
4587
  children: ["Request ", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4531
- style: { color: token$1.colorError },
4588
+ style: { color: token.colorError },
4532
4589
  children: "*"
4533
4590
  })]
4534
4591
  })]
@@ -4572,7 +4629,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4572
4629
  style: {
4573
4630
  display: "flex",
4574
4631
  alignItems: "center",
4575
- gap: token$1.marginMD
4632
+ gap: token.marginMD
4576
4633
  },
4577
4634
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4578
4635
  className: cx("section-title"),
@@ -4580,7 +4637,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4580
4637
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4581
4638
  ghost: true,
4582
4639
  type: "primary",
4583
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.SearchOutlined, {}),
4640
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.SearchOutlined, {}),
4584
4641
  size: "large",
4585
4642
  style: {
4586
4643
  width: 40,
@@ -4598,7 +4655,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4598
4655
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4599
4656
  ghost: true,
4600
4657
  type: "primary",
4601
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.PlusOutlined, {}),
4658
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.PlusOutlined, {}),
4602
4659
  onClick: () => {
4603
4660
  setDrawerSource("response");
4604
4661
  setParamDrawerMode("add");
@@ -4674,7 +4731,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4674
4731
  style: { color: text },
4675
4732
  children: code
4676
4733
  }),
4677
- isSelected && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.CheckCircleOutlined, {
4734
+ isSelected && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.CheckCircleOutlined, {
4678
4735
  className: cx("status-checkmark"),
4679
4736
  style: { color: text }
4680
4737
  })
@@ -4688,7 +4745,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4688
4745
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4689
4746
  ghost: true,
4690
4747
  type: "primary",
4691
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.PlusOutlined, {}),
4748
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.PlusOutlined, {}),
4692
4749
  onClick: () => {
4693
4750
  setDrawerSource("response");
4694
4751
  setParamDrawerMode("add");
@@ -4752,7 +4809,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4752
4809
  const pagedResParams = allResParams.slice((resPage - 1) * PAGE_SIZE, resPage * PAGE_SIZE);
4753
4810
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
4754
4811
  className: cx("param-list"),
4755
- style: { marginTop: token$1.margin },
4812
+ style: { marginTop: token.margin },
4756
4813
  children: pagedResParams.map((param, i) => {
4757
4814
  const idx = (resPage - 1) * PAGE_SIZE + i;
4758
4815
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -4792,16 +4849,16 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4792
4849
  style: {
4793
4850
  display: "flex",
4794
4851
  alignItems: "center",
4795
- gap: token$1.margin,
4796
- background: token$1.colorFillTertiary,
4797
- borderRadius: token$1.borderRadius,
4798
- padding: `0 ${token$1.marginSM}px`,
4852
+ gap: token.margin,
4853
+ background: token.colorFillTertiary,
4854
+ borderRadius: token.borderRadius,
4855
+ padding: `0 ${token.marginSM}px`,
4799
4856
  height: 50,
4800
4857
  flexShrink: 0
4801
4858
  },
4802
4859
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4803
4860
  danger: true,
4804
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(trash_default, {
4861
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Trash, {
4805
4862
  width: 32,
4806
4863
  height: 32
4807
4864
  }),
@@ -4822,7 +4879,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4822
4879
  })
4823
4880
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4824
4881
  ghost: true,
4825
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EditOutlined, {}),
4882
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EditOutlined, {}),
4826
4883
  className: cx("param-edit-btn"),
4827
4884
  onClick: () => {
4828
4885
  setDrawerSource("response");
@@ -4919,7 +4976,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4919
4976
  className: cx("param-actions"),
4920
4977
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4921
4978
  ghost: true,
4922
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EditOutlined, {}),
4979
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EditOutlined, {}),
4923
4980
  className: cx("param-edit-btn"),
4924
4981
  onClick: () => {
4925
4982
  setDrawerSource("response");
@@ -4931,7 +4988,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4931
4988
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
4932
4989
  danger: true,
4933
4990
  type: "text",
4934
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(trash_default, {
4991
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Trash, {
4935
4992
  height: 18,
4936
4993
  width: 18
4937
4994
  }),
@@ -4962,18 +5019,18 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4962
5019
  })(),
4963
5020
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
4964
5021
  className: cx("param-row"),
4965
- style: { marginTop: token$1.margin },
5022
+ style: { marginTop: token.margin },
4966
5023
  onClick: () => toggleResponsePanel(ep.id),
4967
5024
  children: [
4968
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.DownOutlined, { className: cx("param-row-icon", openResponsePanels.has(ep.id) ? "param-row-icon--open" : "") }),
5025
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.DownOutlined, { className: cx("param-row-icon", openResponsePanels.has(ep.id) ? "param-row-icon--open" : "") }),
4969
5026
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
4970
- style: { fontSize: token$1.fontSize },
5027
+ style: { fontSize: token.fontSize },
4971
5028
  children: ["Response ", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4972
- style: { color: token$1.colorError },
5029
+ style: { color: token.colorError },
4973
5030
  children: "*"
4974
5031
  })]
4975
5032
  }),
4976
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(info_circle_default, { style: {
5033
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InfoCircle, { style: {
4977
5034
  width: 24,
4978
5035
  height: 24
4979
5036
  } })
@@ -5155,11 +5212,10 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
5155
5212
  ]
5156
5213
  }));
5157
5214
  };
5158
-
5159
5215
  //#endregion
5160
5216
  //#region src/view/components/ApiPage/components/UnsavedChangesBanner.tsx
5161
5217
  const UnsavedChangesBanner = ({ onClose }) => {
5162
- const { wrapSSR, cx, token: token$1 } = useStyle("UnsavedChangesBanner", (token$2, scope) => ({
5218
+ const { wrapSSR, cx } = useStyle("UnsavedChangesBanner", (token, scope) => ({
5163
5219
  [scope("root")]: {
5164
5220
  position: "sticky",
5165
5221
  top: 0,
@@ -5169,7 +5225,7 @@ const UnsavedChangesBanner = ({ onClose }) => {
5169
5225
  },
5170
5226
  [scope("alert")]: {
5171
5227
  padding: "8px 12px",
5172
- fontSize: token$2.fontSize,
5228
+ fontSize: token.fontSize,
5173
5229
  fontWeight: 400,
5174
5230
  borderRadius: 0
5175
5231
  }
@@ -5182,22 +5238,21 @@ const UnsavedChangesBanner = ({ onClose }) => {
5182
5238
  message: "There are changes you made may not be saved",
5183
5239
  closable: true,
5184
5240
  onClose,
5185
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.ExclamationCircleFilled, {}),
5241
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.ExclamationCircleFilled, {}),
5186
5242
  showIcon: true
5187
5243
  })
5188
5244
  }));
5189
5245
  };
5190
-
5191
5246
  //#endregion
5192
5247
  //#region src/view/components/ApiPage/components/TagsSection.tsx
5193
5248
  const { useBreakpoint } = antd.Grid;
5194
5249
  const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEditTag, onDeleteTag }) => {
5195
5250
  const isMobile = !useBreakpoint().md;
5196
- const { wrapSSR, cx, token: token$1 } = useStyle("TagsSection", (token$2, scope) => ({
5251
+ const { wrapSSR, cx, token } = useStyle("TagsSection", (token, scope) => ({
5197
5252
  [scope("root")]: {
5198
5253
  display: "flex",
5199
5254
  flexDirection: "column",
5200
- borderRadius: token$2.borderRadius,
5255
+ borderRadius: token.borderRadius,
5201
5256
  overflow: "hidden",
5202
5257
  width: "100%",
5203
5258
  flexShrink: 0
@@ -5206,36 +5261,37 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5206
5261
  display: "flex",
5207
5262
  alignItems: "center",
5208
5263
  justifyContent: "space-between",
5209
- padding: `${token$2.paddingXS}px ${token$2.paddingLG}px`,
5210
- background: token$2.colorPrimaryBg,
5211
- borderRadius: `${token$2.borderRadius}px ${token$2.borderRadius}px 0 0`
5264
+ padding: `${token.paddingXS}px ${token.paddingLG}px`,
5265
+ background: token.colorPrimaryBg,
5266
+ borderRadius: `${token.borderRadius}px ${token.borderRadius}px 0 0`
5212
5267
  },
5213
5268
  [scope("head-actions")]: {
5214
5269
  display: "flex",
5215
5270
  alignItems: "center",
5216
- gap: token$2.margin
5271
+ gap: token.margin
5217
5272
  },
5218
5273
  [scope("body")]: {
5219
5274
  display: "flex",
5220
5275
  flexDirection: "column",
5221
5276
  gap: 0,
5222
- padding: token$2.paddingLG,
5223
- background: token$2.colorBgElevated,
5224
- borderRadius: `0 0 ${token$2.borderRadius}px ${token$2.borderRadius}px`
5277
+ padding: token.paddingLG,
5278
+ background: token.colorBgElevated,
5279
+ borderRadius: `0 0 ${token.borderRadius}px ${token.borderRadius}px`
5225
5280
  },
5226
5281
  [scope("tag-row")]: {
5227
5282
  display: "flex",
5228
5283
  alignItems: "center",
5229
5284
  justifyContent: "space-between",
5230
5285
  height: 50,
5231
- paddingBottom: token$2.margin,
5232
- paddingRight: token$2.paddingLG,
5233
- borderBottom: `1px solid ${token$2.colorBorder}`,
5286
+ paddingTop: token.controlHeightLG,
5287
+ paddingBottom: token.controlHeightLG,
5288
+ paddingRight: token.paddingLG,
5289
+ borderBottom: `1px solid ${token.colorBorder}`,
5234
5290
  width: "100%"
5235
5291
  },
5236
5292
  [scope("tag-row-last")]: {
5237
5293
  borderBottom: "none",
5238
- paddingBottom: 0
5294
+ paddingBottom: token.marginLG
5239
5295
  },
5240
5296
  [scope("tag-info")]: {
5241
5297
  display: "flex",
@@ -5247,26 +5303,26 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5247
5303
  [scope("tag-col")]: {
5248
5304
  display: "flex",
5249
5305
  flexDirection: "column",
5250
- gap: token$2.marginXXS
5306
+ gap: token.marginXXS
5251
5307
  },
5252
5308
  [scope("col-label")]: {
5253
- fontSize: token$2.fontSizeLG,
5309
+ fontSize: token.fontSizeLG,
5254
5310
  fontWeight: 600,
5255
- color: token$2.colorTextTertiary,
5311
+ color: token.colorTextTertiary,
5256
5312
  lineHeight: "24px",
5257
5313
  whiteSpace: "nowrap"
5258
5314
  },
5259
5315
  [scope("col-value")]: {
5260
- fontSize: token$2.fontSizeLG,
5316
+ fontSize: token.fontSizeLG,
5261
5317
  fontWeight: 400,
5262
- color: token$2.colorText,
5318
+ color: token.colorText,
5263
5319
  lineHeight: "24px",
5264
5320
  whiteSpace: "nowrap"
5265
5321
  },
5266
5322
  [scope("col-value-link")]: {
5267
- fontSize: token$2.fontSize,
5323
+ fontSize: token.fontSize,
5268
5324
  fontWeight: 400,
5269
- color: token$2.colorPrimary,
5325
+ color: token.colorPrimary,
5270
5326
  lineHeight: "22px",
5271
5327
  textDecoration: "underline",
5272
5328
  whiteSpace: "nowrap"
@@ -5274,13 +5330,13 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5274
5330
  [scope("tag-actions")]: {
5275
5331
  display: "flex",
5276
5332
  alignItems: "center",
5277
- gap: token$2.margin
5333
+ gap: token.margin
5278
5334
  },
5279
5335
  [scope("btn-delete")]: {
5280
5336
  width: 40,
5281
5337
  height: 40,
5282
- border: `1px solid ${token$2.colorError}`,
5283
- borderRadius: token$2.borderRadius,
5338
+ border: `1px solid ${token.colorError}`,
5339
+ borderRadius: token.borderRadius,
5284
5340
  display: "flex",
5285
5341
  alignItems: "center",
5286
5342
  justifyContent: "center"
@@ -5288,9 +5344,9 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5288
5344
  [scope("btn-edit")]: {
5289
5345
  width: 40,
5290
5346
  height: 40,
5291
- border: `1px solid ${token$2.colorBorder}`,
5292
- borderRadius: token$2.borderRadius,
5293
- background: token$2.colorBgContainer,
5347
+ border: `1px solid ${token.colorBorder}`,
5348
+ borderRadius: token.borderRadius,
5349
+ background: token.colorBgContainer,
5294
5350
  boxShadow: "0px 2px 0px 0px rgba(0,0,0,0.02)",
5295
5351
  display: "flex",
5296
5352
  alignItems: "center",
@@ -5302,8 +5358,8 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5302
5358
  alignItems: "flex-start",
5303
5359
  justifyContent: "space-between",
5304
5360
  gap: 8,
5305
- paddingBottom: token$2.margin,
5306
- borderBottom: `1px solid ${token$2.colorBorder}`,
5361
+ paddingBottom: token.margin,
5362
+ borderBottom: `1px solid ${token.colorBorder}`,
5307
5363
  width: "100%",
5308
5364
  minHeight: 50
5309
5365
  },
@@ -5331,9 +5387,9 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5331
5387
  display: "flex",
5332
5388
  flexDirection: "column",
5333
5389
  gap: 0,
5334
- padding: token$2.paddingMD,
5335
- background: token$2.colorBgElevated,
5336
- borderRadius: `0 0 ${token$2.borderRadius}px ${token$2.borderRadius}px`,
5390
+ padding: token.paddingMD,
5391
+ background: token.colorBgElevated,
5392
+ borderRadius: `0 0 ${token.borderRadius}px ${token.borderRadius}px`,
5337
5393
  overflowX: "auto"
5338
5394
  }
5339
5395
  }));
@@ -5345,7 +5401,7 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5345
5401
  level: 4,
5346
5402
  style: {
5347
5403
  margin: 0,
5348
- color: token$1.colorTextHeading
5404
+ color: token.colorTextHeading
5349
5405
  },
5350
5406
  children: "Tags"
5351
5407
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -5353,14 +5409,14 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5353
5409
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
5354
5410
  ghost: true,
5355
5411
  type: "primary",
5356
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.PlusOutlined, {}),
5412
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.PlusOutlined, {}),
5357
5413
  onClick: onAddTag,
5358
- style: { borderRadius: token$1.borderRadius },
5414
+ style: { borderRadius: token.borderRadius },
5359
5415
  children: "Add Tag"
5360
5416
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
5361
5417
  type: "text",
5362
5418
  size: "large",
5363
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.UpCircleOutlined, { style: { fontSize: 18 } }),
5419
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.UpCircleOutlined, { style: { fontSize: 18 } }),
5364
5420
  onClick: onToggleCollapse,
5365
5421
  style: {
5366
5422
  transform: collapsed ? "rotate(180deg)" : "rotate(0deg)",
@@ -5380,14 +5436,14 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5380
5436
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5381
5437
  className: cx("col-label"),
5382
5438
  style: {
5383
- fontSize: token$1.fontSize,
5439
+ fontSize: token.fontSize,
5384
5440
  lineHeight: "20px"
5385
5441
  },
5386
5442
  children: "Tag Name:"
5387
5443
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5388
5444
  className: cx("col-value"),
5389
5445
  style: {
5390
- fontSize: token$1.fontSize,
5446
+ fontSize: token.fontSize,
5391
5447
  lineHeight: "20px",
5392
5448
  overflow: "hidden",
5393
5449
  textOverflow: "ellipsis",
@@ -5400,7 +5456,7 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5400
5456
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5401
5457
  className: cx("col-label"),
5402
5458
  style: {
5403
- fontSize: token$1.fontSize,
5459
+ fontSize: token.fontSize,
5404
5460
  lineHeight: "20px"
5405
5461
  },
5406
5462
  children: "Description:"
@@ -5409,7 +5465,7 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5409
5465
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5410
5466
  className: cx("col-value"),
5411
5467
  style: {
5412
- fontSize: token$1.fontSize,
5468
+ fontSize: token.fontSize,
5413
5469
  lineHeight: "20px",
5414
5470
  overflow: "hidden",
5415
5471
  textOverflow: "ellipsis",
@@ -5432,7 +5488,7 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5432
5488
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
5433
5489
  danger: true,
5434
5490
  type: "text",
5435
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(trash_default, {
5491
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Trash, {
5436
5492
  width: 32,
5437
5493
  height: 32
5438
5494
  }),
@@ -5448,7 +5504,7 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5448
5504
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
5449
5505
  title: tag.isDefault ? "The default tag cannot be deleted or edited" : "",
5450
5506
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
5451
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EditOutlined, { style: { fontSize: 18 } }),
5507
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EditOutlined, { style: { fontSize: 18 } }),
5452
5508
  disabled: tag.isDefault,
5453
5509
  onClick: () => !tag.isDefault && onEditTag?.(tag),
5454
5510
  style: {
@@ -5539,7 +5595,7 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5539
5595
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
5540
5596
  danger: true,
5541
5597
  type: "text",
5542
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(trash_default, {
5598
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Trash, {
5543
5599
  width: 32,
5544
5600
  height: 32
5545
5601
  }),
@@ -5555,7 +5611,7 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5555
5611
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
5556
5612
  title: tag.isDefault ? "The default tag cannot be deleted or edited" : "",
5557
5613
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
5558
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EditOutlined, { style: { fontSize: 18 } }),
5614
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EditOutlined, { style: { fontSize: 18 } }),
5559
5615
  disabled: tag.isDefault,
5560
5616
  onClick: () => !tag.isDefault && onEditTag?.(tag),
5561
5617
  style: {
@@ -5572,7 +5628,6 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
5572
5628
  }))]
5573
5629
  }));
5574
5630
  };
5575
-
5576
5631
  //#endregion
5577
5632
  //#region src/view/components/ApiPage/components/AddTagDrawer.tsx
5578
5633
  const TAG_NAME_REGEX = /^[A-Za-z0-9_-]+$/;
@@ -5581,16 +5636,16 @@ const EXT_DESC_REGEX = /^[A-Za-z0-9_-]+$/;
5581
5636
  const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag }) => {
5582
5637
  const [form] = antd.Form.useForm();
5583
5638
  const [messageApi, contextHolder] = antd.message.useMessage();
5584
- const [confirmModalOpen, setConfirmModalOpen] = (0, react.useState)(false);
5585
- const [tagName, setTagName] = (0, react.useState)("");
5639
+ const [confirmModalOpen, setConfirmModalOpen] = (0, react$1.useState)(false);
5640
+ const [tagName, setTagName] = (0, react$1.useState)("");
5586
5641
  const tagNameValue = antd.Form.useWatch("name", form);
5587
5642
  const extDocsDesc = antd.Form.useWatch("externalDocsDescription", form);
5588
5643
  const extDocsLink = antd.Form.useWatch("externalDocsLink", form);
5589
- const { wrapSSR, cx, token: token$1 } = useStyle("AddTagDrawer", (token$2, scope) => ({
5644
+ const { wrapSSR, cx, token } = useStyle("AddTagDrawer", (token, scope) => ({
5590
5645
  [scope("title")]: {
5591
5646
  fontSize: 16,
5592
5647
  fontWeight: 600,
5593
- color: token$2.colorTextBase,
5648
+ color: token.colorTextBase,
5594
5649
  lineHeight: "24px",
5595
5650
  fontFamily: "Cairo SemiBold, Cairo, sans-serif"
5596
5651
  },
@@ -5601,25 +5656,25 @@ const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag
5601
5656
  "& .ant-form-item": { marginBottom: 0 }
5602
5657
  },
5603
5658
  [scope("label")]: {
5604
- fontSize: token$2.fontSize,
5605
- color: token$2.colorText
5659
+ fontSize: token.fontSize,
5660
+ color: token.colorText
5606
5661
  },
5607
5662
  [scope("asterisk")]: {
5608
- color: token$2.colorError,
5663
+ color: token.colorError,
5609
5664
  marginLeft: 2
5610
5665
  },
5611
5666
  [scope("label-optional")]: {
5612
- color: token$2.colorTextTertiary,
5667
+ color: token.colorTextTertiary,
5613
5668
  marginLeft: 4,
5614
- fontSize: token$2.fontSize
5669
+ fontSize: token.fontSize
5615
5670
  },
5616
5671
  [scope("label-secondary")]: {
5617
- fontSize: token$2.fontSize,
5618
- color: token$2.colorTextSecondary
5672
+ fontSize: token.fontSize,
5673
+ color: token.colorTextSecondary
5619
5674
  },
5620
5675
  [scope("label-disabled")]: {
5621
- fontSize: token$2.fontSize,
5622
- color: token$2.colorTextDisabled
5676
+ fontSize: token.fontSize,
5677
+ color: token.colorTextDisabled
5623
5678
  },
5624
5679
  [scope("footer")]: {
5625
5680
  display: "flex",
@@ -5656,7 +5711,7 @@ const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag
5656
5711
  fontSize: 16,
5657
5712
  fontWeight: 400,
5658
5713
  lineHeight: "24px",
5659
- color: token$2.colorText
5714
+ color: token.colorText
5660
5715
  },
5661
5716
  [scope("modalCloseBtn")]: {
5662
5717
  position: "absolute",
@@ -5672,12 +5727,12 @@ const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag
5672
5727
  border: "none",
5673
5728
  background: "transparent",
5674
5729
  padding: 0,
5675
- color: token$2.colorTextTertiary,
5730
+ color: token.colorTextTertiary,
5676
5731
  fontSize: 16,
5677
5732
  lineHeight: 1,
5678
5733
  "&:hover": {
5679
- color: token$2.colorText,
5680
- backgroundColor: token$2.colorFillSecondary
5734
+ color: token.colorText,
5735
+ backgroundColor: token.colorFillSecondary
5681
5736
  }
5682
5737
  },
5683
5738
  [scope("modalContent")]: {
@@ -5694,7 +5749,7 @@ const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag
5694
5749
  fontSize: 14,
5695
5750
  fontWeight: 400,
5696
5751
  lineHeight: "22px",
5697
- color: token$2.colorText
5752
+ color: token.colorText
5698
5753
  },
5699
5754
  [scope("modalFooter")]: {
5700
5755
  display: "flex",
@@ -5710,18 +5765,18 @@ const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag
5710
5765
  }));
5711
5766
  const isLinkEnabled = Boolean(extDocsDesc?.trim());
5712
5767
  const isAddEnabled = !!(tagNameValue && TAG_NAME_REGEX.test(tagNameValue));
5713
- (0, react.useEffect)(() => {
5768
+ (0, react$1.useEffect)(() => {
5714
5769
  if (open && mode === "edit" && initialValues) form.setFieldsValue(initialValues);
5715
5770
  if (!open) form.resetFields();
5716
5771
  }, [open]);
5717
- (0, react.useEffect)(() => {
5772
+ (0, react$1.useEffect)(() => {
5718
5773
  if (!extDocsDesc?.trim()) form.setFields([{
5719
5774
  name: "externalDocsLink",
5720
5775
  value: void 0,
5721
5776
  errors: []
5722
5777
  }]);
5723
5778
  }, [extDocsDesc]);
5724
- (0, react.useEffect)(() => {
5779
+ (0, react$1.useEffect)(() => {
5725
5780
  if (extDocsDesc?.trim()) form.validateFields(["externalDocsLink"]).catch(() => {});
5726
5781
  }, [extDocsLink, extDocsDesc]);
5727
5782
  const handleClose = () => {
@@ -5771,14 +5826,14 @@ const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag
5771
5826
  styles: {
5772
5827
  header: {
5773
5828
  padding: "16px 24px",
5774
- borderBottom: `1px solid ${token$1.colorFillSecondary}`,
5775
- background: token$1.colorBgBase
5829
+ borderBottom: `1px solid ${token.colorFillSecondary}`,
5830
+ background: token.colorBgBase
5776
5831
  },
5777
5832
  body: { padding: "24px" },
5778
5833
  footer: {
5779
5834
  padding: "24px",
5780
- background: token$1.colorPrimaryBg,
5781
- borderTop: `1px solid ${token$1.colorFillSecondary}`
5835
+ background: token.colorPrimaryBg,
5836
+ borderTop: `1px solid ${token.colorFillSecondary}`
5782
5837
  }
5783
5838
  },
5784
5839
  footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -5791,7 +5846,7 @@ const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag
5791
5846
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Button, {
5792
5847
  size: "large",
5793
5848
  type: "primary",
5794
- icon: mode === "add" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.PlusOutlined, {}) : void 0,
5849
+ icon: mode === "add" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.PlusOutlined, {}) : void 0,
5795
5850
  className: cx("footer-btn"),
5796
5851
  disabled: !isAddEnabled,
5797
5852
  onClick: handleAddTagClick,
@@ -5979,9 +6034,9 @@ const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag
5979
6034
  borderRadius: 8,
5980
6035
  height: 32,
5981
6036
  paddingInline: 16,
5982
- backgroundColor: token$1.colorPrimary,
5983
- borderColor: token$1.colorPrimary,
5984
- boxShadow: `0px 2px 0px ${token$1.colorPrimaryBg}`
6037
+ backgroundColor: token.colorPrimary,
6038
+ borderColor: token.colorPrimary,
6039
+ boxShadow: `0px 2px 0px ${token.colorPrimaryBg}`
5985
6040
  },
5986
6041
  children: confirmBtnLabel
5987
6042
  })]
@@ -5990,7 +6045,6 @@ const AddTagDrawer = ({ open, onClose, mode, initialValues, onAddTag, onEditTag
5990
6045
  })
5991
6046
  ] }));
5992
6047
  };
5993
-
5994
6048
  //#endregion
5995
6049
  //#region src/view/helper/mutate.ts
5996
6050
  const resolveSchema = (schema, components) => {
@@ -6075,44 +6129,32 @@ const transformOpenApiToDocs = (api) => {
6075
6129
  curl
6076
6130
  };
6077
6131
  };
6078
-
6079
6132
  //#endregion
6080
- //#region src/assets/copy.svg
6081
- var _path, _path2;
6082
- function _extends() {
6083
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
6084
- for (var e = 1; e < arguments.length; e++) {
6085
- var t = arguments[e];
6086
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
6087
- }
6088
- return n;
6089
- }, _extends.apply(null, arguments);
6090
- }
6091
- var SvgCopy = function SvgCopy$1(props) {
6092
- return /* @__PURE__ */ react.createElement("svg", _extends({
6093
- xmlns: "http://www.w3.org/2000/svg",
6094
- width: 16,
6095
- height: 16,
6096
- fill: "none"
6097
- }, props), _path || (_path = /* @__PURE__ */ react.createElement("path", {
6098
- fill: "currentcolor",
6099
- d: "M7.4 15.167H4.6c-2.607 0-3.767-1.16-3.767-3.766V8.6c0-2.607 1.16-3.767 3.767-3.767h2.8c2.606 0 3.766 1.16 3.766 3.767v2.8c0 2.606-1.16 3.766-3.766 3.766M4.6 5.834c-2.067 0-2.767.7-2.767 2.767v2.8c0 2.066.7 2.766 2.767 2.766h2.8c2.066 0 2.766-.7 2.766-2.766V8.6c0-2.067-.7-2.767-2.766-2.767z"
6100
- })), _path2 || (_path2 = /* @__PURE__ */ react.createElement("path", {
6101
- fill: "currentcolor",
6102
- d: "M11.4 11.167h-.734a.504.504 0 0 1-.5-.5V8.601c0-2.067-.7-2.767-2.766-2.767H5.333a.504.504 0 0 1-.5-.5v-.733C4.833 1.994 5.993.834 8.6.834h2.8c2.606 0 3.766 1.16 3.766 3.767v2.8c0 2.606-1.16 3.766-3.766 3.766m-.234-1h.234c2.066 0 2.766-.7 2.766-2.766V4.6c0-2.067-.7-2.767-2.766-2.767H8.6c-2.067 0-2.767.7-2.767 2.767v.233H7.4c2.606 0 3.766 1.16 3.766 3.767z"
6103
- })));
6104
- };
6105
- var copy_default = SvgCopy;
6106
-
6133
+ //#region src/assets/copy.tsx
6134
+ const Copy = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
6135
+ width: "16",
6136
+ height: "16",
6137
+ viewBox: "0 0 16 16",
6138
+ fill: "none",
6139
+ xmlns: "http://www.w3.org/2000/svg",
6140
+ ...props,
6141
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
6142
+ d: "M7.39967 15.1673H4.59967C1.99301 15.1673 0.833008 14.0073 0.833008 11.4007V8.60065C0.833008 5.99398 1.99301 4.83398 4.59967 4.83398H7.39967C10.0063 4.83398 11.1663 5.99398 11.1663 8.60065V11.4007C11.1663 14.0073 10.0063 15.1673 7.39967 15.1673ZM4.59967 5.83398C2.53301 5.83398 1.83301 6.53398 1.83301 8.60065V11.4007C1.83301 13.4673 2.53301 14.1673 4.59967 14.1673H7.39967C9.46634 14.1673 10.1663 13.4673 10.1663 11.4007V8.60065C10.1663 6.53398 9.46634 5.83398 7.39967 5.83398H4.59967Z",
6143
+ fill: "currentcolor"
6144
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
6145
+ d: "M11.3997 11.1673H10.6663C10.393 11.1673 10.1663 10.9407 10.1663 10.6673V8.60065C10.1663 6.53398 9.46634 5.83398 7.39967 5.83398H5.33301C5.05967 5.83398 4.83301 5.60732 4.83301 5.33398V4.60065C4.83301 1.99398 5.99301 0.833984 8.59967 0.833984H11.3997C14.0063 0.833984 15.1663 1.99398 15.1663 4.60065V7.40065C15.1663 10.0073 14.0063 11.1673 11.3997 11.1673ZM11.1663 10.1673H11.3997C13.4663 10.1673 14.1663 9.46732 14.1663 7.40065V4.60065C14.1663 2.53398 13.4663 1.83398 11.3997 1.83398H8.59967C6.53301 1.83398 5.83301 2.53398 5.83301 4.60065V4.83398H7.39967C10.0063 4.83398 11.1663 5.99398 11.1663 8.60065V10.1673Z",
6146
+ fill: "currentcolor"
6147
+ })]
6148
+ });
6107
6149
  //#endregion
6108
6150
  //#region src/view/components/EndpointPage/Codebox/Codebox.tsx
6109
- react_syntax_highlighter.Light.registerLanguage("json", react_syntax_highlighter_dist_esm_languages_hljs_json.default);
6151
+ react_syntax_highlighter.Light.registerLanguage("json", react_syntax_highlighter_dist_esm_languages_hljs_json_js.default);
6110
6152
  const Codebox = ({ code, language, wrapLongLines }) => {
6111
- const [appTheme] = (0, react.useState)("DARK");
6112
- const { token: token$1, theme: themeConfig } = antd.theme.useToken();
6113
- const bodyBg = themeConfig.id == 1 ? token$1.colorBgContainer : "#1d2856";
6114
- const { cx } = useStyle("codeBox", (token$2, scope) => ({ [scope("codebox")]: {
6115
- borderRadius: token$2.borderRadius,
6153
+ const [appTheme] = (0, react$1.useState)("DARK");
6154
+ const { token, theme: themeConfig } = antd.theme.useToken();
6155
+ const bodyBg = themeConfig.id == 1 ? token.colorBgContainer : "#1d2856";
6156
+ const { cx } = useStyle("codeBox", (token, scope) => ({ [scope("codebox")]: {
6157
+ borderRadius: token.borderRadius,
6116
6158
  height: "100%",
6117
6159
  maxHeight: "100%",
6118
6160
  overflow: "auto",
@@ -6122,7 +6164,7 @@ const Codebox = ({ code, language, wrapLongLines }) => {
6122
6164
  className: cx("codebox"),
6123
6165
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_syntax_highlighter.Light, {
6124
6166
  language: language || "json",
6125
- style: appTheme === "LIGHT" ? react_syntax_highlighter_dist_esm_styles_hljs.stackoverflowLight : react_syntax_highlighter_dist_esm_styles_hljs.stackoverflowDark,
6167
+ style: appTheme === "LIGHT" ? react_syntax_highlighter_dist_esm_styles_hljs_index_js.stackoverflowLight : react_syntax_highlighter_dist_esm_styles_hljs_index_js.stackoverflowDark,
6126
6168
  showLineNumbers: true,
6127
6169
  wrapLines: true,
6128
6170
  wrapLongLines,
@@ -6139,13 +6181,11 @@ const Codebox = ({ code, language, wrapLongLines }) => {
6139
6181
  })
6140
6182
  });
6141
6183
  };
6142
- var Codebox_default = Codebox;
6143
-
6144
6184
  //#endregion
6145
6185
  //#region src/view/components/CodeboxSidebar.tsx
6146
6186
  function CodeboxSidebar() {
6147
- const { selectedEndpoint, selectedApi, activeRequestTab, selectedStatusCode, statusCodeOptions, setSelectedStatusCode } = store_default(({ view }) => view);
6148
- const httpStatusOptions = (0, react.useMemo)(() => statusCodeOptions.map((code) => ({
6187
+ const { selectedEndpoint, selectedApi, activeRequestTab, selectedStatusCode, statusCodeOptions, setSelectedStatusCode } = useStore(({ view }) => view);
6188
+ const httpStatusOptions = (0, react$1.useMemo)(() => statusCodeOptions.map((code) => ({
6149
6189
  value: code,
6150
6190
  label: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
6151
6191
  style: {
@@ -6164,7 +6204,7 @@ function CodeboxSidebar() {
6164
6204
  } }), code]
6165
6205
  })
6166
6206
  })), [statusCodeOptions]);
6167
- const [curlTooltip, setCurlTooltip] = (0, react.useState)("Copy Request");
6207
+ const [curlTooltip, setCurlTooltip] = (0, react$1.useState)("Copy Request");
6168
6208
  const curlCommand = (() => {
6169
6209
  if (!selectedEndpoint || !Array.isArray(selectedApi?.curl)) return "";
6170
6210
  return selectedApi.curl.find((c) => c.path === selectedEndpoint.path && c.method?.toUpperCase() === selectedEndpoint.method.toUpperCase())?.curlCommand ?? "";
@@ -6318,7 +6358,7 @@ function CodeboxSidebar() {
6318
6358
  setCurlTooltip("Copied!");
6319
6359
  setTimeout(() => setCurlTooltip("Copy cURL"), 1500);
6320
6360
  },
6321
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(copy_default, { style: { color: "white" } })
6361
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Copy, { style: { color: "white" } })
6322
6362
  })
6323
6363
  })]
6324
6364
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -6348,47 +6388,45 @@ function CodeboxSidebar() {
6348
6388
  open: httpStatusOptions.length === 1 ? false : void 0,
6349
6389
  suffixIcon: httpStatusOptions.length > 1 ? void 0 : false
6350
6390
  })]
6351
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Codebox_default, { code: JSON.stringify(selectedEndpoint?.responses[selectedStatusCode], null, 2) || "" })]
6391
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Codebox, { code: JSON.stringify(selectedEndpoint?.responses[selectedStatusCode], null, 2) || "" })]
6352
6392
  })]
6353
6393
  });
6354
6394
  }
6355
- var CodeboxSidebar_default = CodeboxSidebar;
6356
-
6357
6395
  //#endregion
6358
6396
  //#region src/view/layout.tsx
6359
6397
  const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onSave }) => {
6360
- const [searchValue, setSearchValue] = (0, react.useState)("");
6361
- const [mode, setMode] = (0, react.useState)("edit");
6362
- const [hasChanges, setHasChanges] = (0, react.useState)(false);
6363
- const [bannerVisible, setBannerVisible] = (0, react.useState)(false);
6364
- const [resetKey, setResetKey] = (0, react.useState)(0);
6365
- const [generalCollapsed, setGeneralCollapsed] = (0, react.useState)(false);
6366
- const [tagsCollapsed, setTagsCollapsed] = (0, react.useState)(false);
6367
- const [endpointsCollapsed, setEndpointsCollapsed] = (0, react.useState)(false);
6368
- const [localApiName, setLocalApiName] = (0, react.useState)("");
6369
- const [localDescription, setLocalDescription] = (0, react.useState)("");
6370
- const [selectedUrl, setSelectedUrl] = (0, react.useState)("");
6371
- const [endpointNames, setEndpointNames] = (0, react.useState)({});
6372
- const [endpointDescs, setEndpointDescs] = (0, react.useState)({});
6373
- const [endpointTags, setEndpointTags] = (0, react.useState)({});
6374
- const [endpointParams, setEndpointParams] = (0, react.useState)({});
6375
- const [endpointResponseParams, setEndpointResponseParams] = (0, react.useState)({});
6376
- const [tagDrawerState, setTagDrawerState] = (0, react.useState)({
6398
+ const [searchValue, setSearchValue] = (0, react$1.useState)("");
6399
+ const [mode, setMode] = (0, react$1.useState)("edit");
6400
+ const [hasChanges, setHasChanges] = (0, react$1.useState)(false);
6401
+ const [bannerVisible, setBannerVisible] = (0, react$1.useState)(false);
6402
+ const [resetKey, setResetKey] = (0, react$1.useState)(0);
6403
+ const [generalCollapsed, setGeneralCollapsed] = (0, react$1.useState)(false);
6404
+ const [tagsCollapsed, setTagsCollapsed] = (0, react$1.useState)(false);
6405
+ const [endpointsCollapsed, setEndpointsCollapsed] = (0, react$1.useState)(false);
6406
+ const [localApiName, setLocalApiName] = (0, react$1.useState)("");
6407
+ const [localDescription, setLocalDescription] = (0, react$1.useState)("");
6408
+ const [selectedUrl, setSelectedUrl] = (0, react$1.useState)("");
6409
+ const [endpointNames, setEndpointNames] = (0, react$1.useState)({});
6410
+ const [endpointDescs, setEndpointDescs] = (0, react$1.useState)({});
6411
+ const [endpointTags, setEndpointTags] = (0, react$1.useState)({});
6412
+ const [endpointParams, setEndpointParams] = (0, react$1.useState)({});
6413
+ const [endpointResponseParams, setEndpointResponseParams] = (0, react$1.useState)({});
6414
+ const [tagDrawerState, setTagDrawerState] = (0, react$1.useState)({
6377
6415
  open: false,
6378
6416
  mode: "add"
6379
6417
  });
6380
- const [deleteTagModal, setDeleteTagModal] = (0, react.useState)({
6418
+ const [deleteTagModal, setDeleteTagModal] = (0, react$1.useState)({
6381
6419
  open: false,
6382
6420
  tagName: ""
6383
6421
  });
6384
- const [localTags, setLocalTags] = (0, react.useState)([]);
6422
+ const [localTags, setLocalTags] = (0, react$1.useState)([]);
6385
6423
  const [messageApi, contextHolder] = antd.message.useMessage();
6386
- const { focusedContent, selectedNodeKey, selectedApi, originalData, builtTreeData, selectedEndpoint, setOriginalData, setTransformedData, setBuiltTreeData, setFocusedContent, setExpandedKeys, setSelectedEndpoint } = store_default(({ view }) => view);
6424
+ const { focusedContent, selectedNodeKey, selectedApi, originalData, builtTreeData, selectedEndpoint, setOriginalData, setTransformedData, setBuiltTreeData, setFocusedContent, setExpandedKeys, setSelectedEndpoint } = useStore(({ view }) => view);
6387
6425
  const { selectFirstApi, selectPreSelectedApi, clearSelection } = useNodeSelection();
6388
- const hasInitializedRef = (0, react.useRef)(false);
6389
- const { useBreakpoint: useBreakpoint$5 } = antd.Grid;
6390
- const isMobile = !useBreakpoint$5().md;
6391
- (0, react.useEffect)(() => {
6426
+ const hasInitializedRef = (0, react$1.useRef)(false);
6427
+ const { useBreakpoint } = antd.Grid;
6428
+ const isMobile = !useBreakpoint().md;
6429
+ (0, react$1.useEffect)(() => {
6392
6430
  return () => {
6393
6431
  resetStore();
6394
6432
  };
@@ -6403,7 +6441,7 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6403
6441
  clearSelection();
6404
6442
  hasInitializedRef.current = false;
6405
6443
  };
6406
- (0, react.useEffect)(() => {
6444
+ (0, react$1.useEffect)(() => {
6407
6445
  if (!hasInitializedRef.current && data.length > 0) {
6408
6446
  setOriginalData(data);
6409
6447
  const transformedData = data.map(transformOpenApiToDocs).sort((a, b) => a.title.localeCompare(b.title));
@@ -6417,7 +6455,7 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6417
6455
  setTransformedData,
6418
6456
  setBuiltTreeData
6419
6457
  ]);
6420
- (0, react.useEffect)(() => {
6458
+ (0, react$1.useEffect)(() => {
6421
6459
  if (builtTreeData && builtTreeData.length > 0 && !selectedApi && !selectedNodeKey && hasInitializedRef.current) {
6422
6460
  if (!preSelectedApi) selectFirstApi(builtTreeData);
6423
6461
  else selectPreSelectedApi(builtTreeData, preSelectedApi);
@@ -6429,11 +6467,11 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6429
6467
  selectedApi,
6430
6468
  selectFirstApi
6431
6469
  ]);
6432
- const { cx, token: token$1 } = useStyle("APIDocumentationLayout", (token$2, scope) => ({
6470
+ const { cx, token } = useStyle("APIDocumentationLayout", (token, scope) => ({
6433
6471
  [scope("documentation-container")]: {
6434
6472
  display: "flex",
6435
6473
  flexDirection: "column",
6436
- gap: token$2.marginLG,
6474
+ gap: token.marginLG,
6437
6475
  height: "100%",
6438
6476
  overflowY: "auto"
6439
6477
  },
@@ -6445,7 +6483,7 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6445
6483
  display: "flex",
6446
6484
  flexShrink: 0,
6447
6485
  height: "auto",
6448
- gap: token$2.marginLG,
6486
+ gap: token.marginLG,
6449
6487
  width: "100%"
6450
6488
  },
6451
6489
  [".delete-tag-confirm-modal .ant-modal-container"]: {
@@ -6467,7 +6505,7 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6467
6505
  fontSize: 16,
6468
6506
  fontWeight: 400,
6469
6507
  lineHeight: "24px",
6470
- color: token$2.colorText
6508
+ color: token.colorText
6471
6509
  },
6472
6510
  [scope("deleteModalCloseBtn")]: {
6473
6511
  position: "absolute",
@@ -6483,12 +6521,12 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6483
6521
  border: "none",
6484
6522
  background: "transparent",
6485
6523
  padding: 0,
6486
- color: token$2.colorTextTertiary,
6524
+ color: token.colorTextTertiary,
6487
6525
  fontSize: 16,
6488
6526
  lineHeight: 1,
6489
6527
  "&:hover": {
6490
- color: token$2.colorText,
6491
- backgroundColor: token$2.colorFillSecondary
6528
+ color: token.colorText,
6529
+ backgroundColor: token.colorFillSecondary
6492
6530
  }
6493
6531
  },
6494
6532
  [scope("deleteModalContent")]: {
@@ -6505,7 +6543,7 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6505
6543
  fontSize: 14,
6506
6544
  fontWeight: 400,
6507
6545
  lineHeight: "22px",
6508
- color: token$2.colorText
6546
+ color: token.colorText
6509
6547
  },
6510
6548
  [scope("deleteModalFooter")]: {
6511
6549
  display: "flex",
@@ -6519,12 +6557,12 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6519
6557
  backgroundColor: "transparent"
6520
6558
  }
6521
6559
  }));
6522
- (0, react.useEffect)(() => {
6560
+ (0, react$1.useEffect)(() => {
6523
6561
  setLocalApiName(selectedApi?.title || "");
6524
6562
  setLocalDescription(selectedApi?.description || "");
6525
6563
  if (selectedApi?.servers?.length) setSelectedUrl(selectedApi.servers[0].url);
6526
6564
  }, [selectedApi]);
6527
- const tagMetadata = (0, react.useMemo)(() => {
6565
+ const tagMetadata = (0, react$1.useMemo)(() => {
6528
6566
  if (!originalData || !selectedApi) return [];
6529
6567
  const rawFile = originalData.find((f) => Object.keys(f.paths)[0] === selectedApi.contextPath);
6530
6568
  if (!rawFile?.tags) return [];
@@ -6536,7 +6574,7 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6536
6574
  isDefault: t.name.toLowerCase() === "default"
6537
6575
  }));
6538
6576
  }, [originalData, selectedApi]);
6539
- const initialEndpointResponseParams = (0, react.useMemo)(() => {
6577
+ const initialEndpointResponseParams = (0, react$1.useMemo)(() => {
6540
6578
  if (!originalData || !selectedApi) return {};
6541
6579
  const rawFile = originalData.find((f) => Object.keys(f.paths)[0] === selectedApi.contextPath);
6542
6580
  if (!rawFile) return {};
@@ -6566,7 +6604,7 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6566
6604
  });
6567
6605
  return result;
6568
6606
  }, [originalData, selectedApi]);
6569
- const initialEndpointParams = (0, react.useMemo)(() => {
6607
+ const initialEndpointParams = (0, react$1.useMemo)(() => {
6570
6608
  if (!originalData || !selectedApi) return {};
6571
6609
  const rawFile = originalData.find((f) => Object.keys(f.paths)[0] === selectedApi.contextPath);
6572
6610
  if (!rawFile) return {};
@@ -6596,12 +6634,12 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6596
6634
  });
6597
6635
  return result;
6598
6636
  }, [originalData, selectedApi]);
6599
- (0, react.useEffect)(() => {
6637
+ (0, react$1.useEffect)(() => {
6600
6638
  setLocalTags(tagMetadata);
6601
6639
  setEndpointParams(initialEndpointParams);
6602
6640
  setEndpointResponseParams(initialEndpointResponseParams);
6603
6641
  }, [selectedApi]);
6604
- (0, react.useEffect)(() => {
6642
+ (0, react$1.useEffect)(() => {
6605
6643
  if (mode !== "view" || !selectedEndpoint) return;
6606
6644
  const epId = selectedEndpoint.id;
6607
6645
  const openApiParams = (endpointParams[epId] ?? []).map((p) => ({
@@ -6794,7 +6832,7 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6794
6832
  style: {
6795
6833
  display: "flex",
6796
6834
  alignItems: "center",
6797
- background: token$1.colorBgLayout,
6835
+ background: token.colorBgLayout,
6798
6836
  padding: "4px",
6799
6837
  borderRadius: 8,
6800
6838
  gap: 8
@@ -6809,14 +6847,14 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6809
6847
  border: "none",
6810
6848
  cursor: "pointer",
6811
6849
  borderRadius: 8,
6812
- fontFamily: token$1.fontFamily,
6813
- background: mode === "edit" ? token$1.colorBgContainer : "transparent",
6850
+ fontFamily: token.fontFamily,
6851
+ background: mode === "edit" ? token.colorBgContainer : "transparent",
6814
6852
  boxShadow: mode === "edit" ? "0px 2px 4px -2px rgba(17,12,34,0.12)" : "none",
6815
6853
  fontWeight: mode === "edit" ? 700 : 400,
6816
- fontSize: mode === "edit" ? token$1.fontSize : token$1.fontSizeLG,
6817
- color: token$1.colorText
6854
+ fontSize: mode === "edit" ? token.fontSize : token.fontSizeLG,
6855
+ color: token.colorText
6818
6856
  },
6819
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EditOutlined, { style: { fontSize: 18 } }), "Edit"]
6857
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EditOutlined, { style: { fontSize: 18 } }), "Edit"]
6820
6858
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
6821
6859
  onClick: () => setMode("view"),
6822
6860
  style: {
@@ -6827,14 +6865,14 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6827
6865
  border: "none",
6828
6866
  cursor: "pointer",
6829
6867
  borderRadius: 8,
6830
- fontFamily: token$1.fontFamily,
6831
- background: mode === "view" ? token$1.colorBgContainer : "transparent",
6868
+ fontFamily: token.fontFamily,
6869
+ background: mode === "view" ? token.colorBgContainer : "transparent",
6832
6870
  boxShadow: mode === "view" ? "0px 2px 4px -2px rgba(17,12,34,0.12)" : "none",
6833
6871
  fontWeight: mode === "view" ? 700 : 400,
6834
- fontSize: mode === "view" ? token$1.fontSize : token$1.fontSizeLG,
6835
- color: token$1.colorText
6872
+ fontSize: mode === "view" ? token.fontSize : token.fontSizeLG,
6873
+ color: token.colorText
6836
6874
  },
6837
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.EyeOutlined, { style: { fontSize: 18 } }), "View"]
6875
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EyeOutlined, { style: { fontSize: 18 } }), "View"]
6838
6876
  })]
6839
6877
  });
6840
6878
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -6997,7 +7035,7 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
6997
7035
  handleResetSearch,
6998
7036
  searchEnabled: !!searchValue
6999
7037
  }),
7000
- !isMobile && focusedContent === "ENDPOINT" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodeboxSidebar_default, {})
7038
+ !isMobile && focusedContent === "ENDPOINT" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodeboxSidebar, {})
7001
7039
  ]
7002
7040
  }),
7003
7041
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddTagDrawer, {
@@ -7097,9 +7135,105 @@ const DocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage, onS
7097
7135
  ]
7098
7136
  });
7099
7137
  };
7100
-
7138
+ //#endregion
7139
+ //#region src/view/devportal-layout.tsx
7140
+ const DevportalDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPage }) => {
7141
+ const [searchValue, setSearchValue] = (0, react$1.useState)("");
7142
+ const { focusedContent, selectedNodeKey, selectedApi, builtTreeData, setOriginalData, setTransformedData, setBuiltTreeData, setFocusedContent, setExpandedKeys } = useStore(({ view }) => view);
7143
+ const { selectFirstApi, selectPreSelectedApi, clearSelection } = useNodeSelection();
7144
+ const hasInitializedRef = (0, react$1.useRef)(false);
7145
+ (0, react$1.useEffect)(() => {
7146
+ return () => {
7147
+ resetStore();
7148
+ };
7149
+ }, []);
7150
+ const resetStore = () => {
7151
+ setExpandedKeys([]);
7152
+ setFocusedContent(null);
7153
+ setBuiltTreeData([]);
7154
+ setTransformedData([]);
7155
+ setOriginalData([]);
7156
+ setSearchValue("");
7157
+ clearSelection();
7158
+ hasInitializedRef.current = false;
7159
+ };
7160
+ (0, react$1.useEffect)(() => {
7161
+ if (!hasInitializedRef.current && data.length > 0) {
7162
+ setOriginalData(data);
7163
+ const transformedData = data.map(transformOpenApiToDocs).sort((a, b) => a.title.localeCompare(b.title));
7164
+ setTransformedData(transformedData);
7165
+ setBuiltTreeData(buildTreeDataStructure(transformedData));
7166
+ hasInitializedRef.current = true;
7167
+ }
7168
+ }, [
7169
+ data,
7170
+ setOriginalData,
7171
+ setTransformedData,
7172
+ setBuiltTreeData
7173
+ ]);
7174
+ (0, react$1.useEffect)(() => {
7175
+ if (builtTreeData && builtTreeData.length > 0 && !selectedApi && !selectedNodeKey && hasInitializedRef.current) {
7176
+ if (!preSelectedApi) selectFirstApi(builtTreeData);
7177
+ else selectPreSelectedApi(builtTreeData, preSelectedApi);
7178
+ hasInitializedRef.current = false;
7179
+ }
7180
+ }, [
7181
+ builtTreeData,
7182
+ selectedNodeKey,
7183
+ selectedApi,
7184
+ selectFirstApi
7185
+ ]);
7186
+ const { cx } = useStyle("APIDocumentationLayout", (token, scope) => ({
7187
+ [scope("documentation-container")]: {
7188
+ display: "flex",
7189
+ flexDirection: "column",
7190
+ gap: token.marginLG,
7191
+ height: "100%",
7192
+ maxHeight: "100%",
7193
+ overflow: "hidden"
7194
+ },
7195
+ [scope("docs-layout")]: {
7196
+ display: "flex",
7197
+ height: "100%",
7198
+ maxHeight: "100%",
7199
+ overflow: "hidden",
7200
+ gap: token.marginLG,
7201
+ width: "100%"
7202
+ }
7203
+ }));
7204
+ const handleResetSearch = () => {
7205
+ setSearchValue("");
7206
+ };
7207
+ const _handleVisitLandingPage = () => {
7208
+ if (handleVisitLandingPage) {
7209
+ handleVisitLandingPage();
7210
+ return;
7211
+ }
7212
+ window.location.pathname = "/";
7213
+ };
7214
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7215
+ className: cx("documentation-container"),
7216
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7217
+ className: cx("docs-layout"),
7218
+ children: [
7219
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Sidebar, {
7220
+ searchValue,
7221
+ setSearchValue
7222
+ }),
7223
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MainContent, {
7224
+ handleVisitLandingPage: _handleVisitLandingPage,
7225
+ handleResetSearch,
7226
+ searchEnabled: !!searchValue
7227
+ }),
7228
+ focusedContent === "ENDPOINT" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodeboxSidebar, {})
7229
+ ]
7230
+ })
7231
+ });
7232
+ };
7101
7233
  //#endregion
7102
7234
  exports.ApiDocumentationBar = ApiDocumentationBar;
7235
+ exports.DevportalDocumentationLayout = DevportalDocumentationLayout;
7103
7236
  exports.DocumentationLayout = DocumentationLayout;
7104
7237
  exports.useStore = useStore;
7238
+
7105
7239
  //# sourceMappingURL=index.cjs.map