@digi-frontend/dgate-api-documentation 4.1.9 → 4.2.1

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
@@ -2214,6 +2214,39 @@ const MainContent$1 = ({ searchEnabled, handleResetSearch, handleVisitLandingPag
2214
2214
  }));
2215
2215
  };
2216
2216
  //#endregion
2217
+ //#region src/assets/icons/md_left_icon.tsx
2218
+ const MdLeftIcon = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2219
+ width: "18",
2220
+ height: "18",
2221
+ viewBox: "0 0 18 18",
2222
+ fill: "none",
2223
+ xmlns: "http://www.w3.org/2000/svg",
2224
+ stroke: "rgba(0,0,0,0.45)",
2225
+ ...props,
2226
+ children: [
2227
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2228
+ d: "M8.25 1.5H6.75C3 1.5 1.5 3 1.5 6.75V11.25C1.5 15 3 16.5 6.75 16.5H11.25C15 16.5 16.5 15 16.5 11.25V9.75",
2229
+ strokeWidth: "1.5",
2230
+ strokeLinecap: "round",
2231
+ strokeLinejoin: "round"
2232
+ }),
2233
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2234
+ d: "M12.0299 2.26592L6.11991 8.17592C5.89491 8.40092 5.66991 8.84342 5.62491 9.16592L5.30241 11.4234C5.18241 12.2409 5.75991 12.8109 6.57741 12.6984L8.83491 12.3759C9.14991 12.3309 9.59241 12.1059 9.82491 11.8809L15.7349 5.97092C16.7549 4.95092 17.2349 3.76592 15.7349 2.26592C14.2349 0.765922 13.0499 1.24592 12.0299 2.26592Z",
2235
+ strokeWidth: "1.5",
2236
+ strokeMiterlimit: "10",
2237
+ strokeLinecap: "round",
2238
+ strokeLinejoin: "round"
2239
+ }),
2240
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2241
+ d: "M11.1826 3.11328C11.6851 4.90578 13.0876 6.30828 14.8876 6.81828",
2242
+ strokeWidth: "1.5",
2243
+ strokeMiterlimit: "10",
2244
+ strokeLinecap: "round",
2245
+ strokeLinejoin: "round"
2246
+ })
2247
+ ]
2248
+ });
2249
+ //#endregion
2217
2250
  //#region src/view/components/ApiPage/components/ApiDocumentationBar.tsx
2218
2251
  const { useBreakpoint: useBreakpoint$4 } = antd.Grid;
2219
2252
  const { Title: Title$6 } = antd.Typography;
@@ -2273,10 +2306,11 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2273
2306
  background: token.colorBgLayout,
2274
2307
  padding: "4px 4px",
2275
2308
  borderRadius: token.borderRadius,
2276
- gap: 8
2309
+ gap: 4
2277
2310
  },
2278
2311
  [scope("switcher-item")]: {
2279
2312
  display: "flex",
2313
+ justifyContent: "center",
2280
2314
  alignItems: "center",
2281
2315
  gap: 8,
2282
2316
  padding: "8px 12px",
@@ -2392,7 +2426,7 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
2392
2426
  onClick: () => onModeChange("edit"),
2393
2427
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2394
2428
  className: cx("switcher-icon"),
2395
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_icons.EditOutlined, {})
2429
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MdLeftIcon, {})
2396
2430
  }), "Edit"]
2397
2431
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
2398
2432
  className: cx("switcher-item", mode === "view" ? "switcher-item-active" : ""),
@@ -2730,42 +2764,42 @@ function useDebounce(value, delay = 500) {
2730
2764
  //#region src/view/components/ApiPage/components/AddParameterDrawer.tsx
2731
2765
  const PARAM_IN_OPTIONS = [
2732
2766
  {
2733
- label: "QUERY",
2767
+ label: "Query",
2734
2768
  value: "query"
2735
2769
  },
2736
2770
  {
2737
- label: "HEADER",
2771
+ label: "Header",
2738
2772
  value: "header"
2739
2773
  },
2740
2774
  {
2741
- label: "PATH",
2775
+ label: "Path",
2742
2776
  value: "path"
2743
2777
  }
2744
2778
  ];
2745
2779
  const RESPONSE_PARAM_IN_OPTIONS = PARAM_IN_OPTIONS.filter((o) => o.value === "header");
2746
2780
  const PARAM_TYPE_OPTIONS = [
2747
2781
  {
2748
- label: "STRING",
2782
+ label: "String",
2749
2783
  value: "string"
2750
2784
  },
2751
2785
  {
2752
- label: "NUMBER",
2786
+ label: "Number",
2753
2787
  value: "number"
2754
2788
  },
2755
2789
  {
2756
- label: "INTEGER",
2790
+ label: "Integer",
2757
2791
  value: "integer"
2758
2792
  },
2759
2793
  {
2760
- label: "BOOLEAN",
2794
+ label: "Boolean",
2761
2795
  value: "boolean"
2762
2796
  },
2763
2797
  {
2764
- label: "ARRAY",
2798
+ label: "Array",
2765
2799
  value: "array"
2766
2800
  },
2767
2801
  {
2768
- label: "OBJECT",
2802
+ label: "Object",
2769
2803
  value: "object"
2770
2804
  }
2771
2805
  ];
@@ -2925,7 +2959,6 @@ const AddParameterDrawer = ({ open, onClose, onAdd, onEdit, mode = "add", initia
2925
2959
  alignItems: "center",
2926
2960
  position: "relative",
2927
2961
  paddingTop: 20,
2928
- paddingBottom: 5,
2929
2962
  paddingLeft: 24,
2930
2963
  paddingRight: 24,
2931
2964
  width: "100%"
@@ -4055,7 +4088,6 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4055
4088
  alignItems: "center",
4056
4089
  justifyContent: "center",
4057
4090
  width: "100%",
4058
- flex: 1,
4059
4091
  minHeight: 0,
4060
4092
  "& .ant-empty": {
4061
4093
  margin: 0,
@@ -4502,7 +4534,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4502
4534
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4503
4535
  className: cx("param-detail-label"),
4504
4536
  children: "Parameter Name"
4505
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
4537
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
4506
4538
  title: param.name,
4507
4539
  placement: "bottom",
4508
4540
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -4584,7 +4616,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4584
4616
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4585
4617
  className: cx("param-detail-label"),
4586
4618
  children: "Parameter Name"
4587
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
4619
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
4588
4620
  title: param.name,
4589
4621
  placement: "bottom",
4590
4622
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -4657,13 +4689,11 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4657
4689
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4658
4690
  className: cx("param-detail-label"),
4659
4691
  children: "Description"
4660
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
4692
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
4661
4693
  title: param.description || "—",
4662
4694
  placement: "bottom",
4663
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4664
- className: cx("param-detail-value", "param-detail-value--ellipsis"),
4665
- children: param.description || "—"
4666
- })
4695
+ className: cx("param-detail-value", "param-detail-value--ellipsis"),
4696
+ children: param.description || ""
4667
4697
  })]
4668
4698
  })
4669
4699
  ]
@@ -5073,7 +5103,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
5073
5103
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5074
5104
  className: cx("param-detail-label"),
5075
5105
  children: "Parameter Name"
5076
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
5106
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
5077
5107
  title: param.name,
5078
5108
  placement: "bottom",
5079
5109
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -5146,13 +5176,11 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
5146
5176
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5147
5177
  className: cx("param-detail-label"),
5148
5178
  children: "Description"
5149
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
5179
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
5150
5180
  title: param.description || "—",
5151
5181
  placement: "bottom",
5152
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5153
- className: cx("param-detail-value", "param-detail-value--ellipsis"),
5154
- children: param.description || "—"
5155
- })
5182
+ className: cx("param-detail-value", "param-detail-value--ellipsis"),
5183
+ children: param.description || ""
5156
5184
  })]
5157
5185
  })
5158
5186
  ]