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

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
  ];
@@ -4055,7 +4089,6 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4055
4089
  alignItems: "center",
4056
4090
  justifyContent: "center",
4057
4091
  width: "100%",
4058
- flex: 1,
4059
4092
  minHeight: 0,
4060
4093
  "& .ant-empty": {
4061
4094
  margin: 0,
@@ -4502,7 +4535,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4502
4535
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4503
4536
  className: cx("param-detail-label"),
4504
4537
  children: "Parameter Name"
4505
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
4538
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
4506
4539
  title: param.name,
4507
4540
  placement: "bottom",
4508
4541
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -4584,7 +4617,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4584
4617
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4585
4618
  className: cx("param-detail-label"),
4586
4619
  children: "Parameter Name"
4587
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
4620
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
4588
4621
  title: param.name,
4589
4622
  placement: "bottom",
4590
4623
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -4657,13 +4690,11 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
4657
4690
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4658
4691
  className: cx("param-detail-label"),
4659
4692
  children: "Description"
4660
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
4693
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
4661
4694
  title: param.description || "—",
4662
4695
  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
- })
4696
+ className: cx("param-detail-value", "param-detail-value--ellipsis"),
4697
+ children: param.description || ""
4667
4698
  })]
4668
4699
  })
4669
4700
  ]
@@ -5073,7 +5104,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
5073
5104
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5074
5105
  className: cx("param-detail-label"),
5075
5106
  children: "Parameter Name"
5076
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
5107
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
5077
5108
  title: param.name,
5078
5109
  placement: "bottom",
5079
5110
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -5146,13 +5177,11 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
5146
5177
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5147
5178
  className: cx("param-detail-label"),
5148
5179
  children: "Description"
5149
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
5180
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverflowTooltip, {
5150
5181
  title: param.description || "—",
5151
5182
  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
- })
5183
+ className: cx("param-detail-value", "param-detail-value--ellipsis"),
5184
+ children: param.description || ""
5156
5185
  })]
5157
5186
  })
5158
5187
  ]