@scalar/api-client 2.0.24 → 2.0.25

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.
Files changed (166) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +79 -83
  5. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
  7. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.js +3 -2
  9. package/dist/components/CodeInput/CodeInput.vue2.js +42 -37
  10. package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
  11. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
  12. package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
  13. package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
  15. package/dist/components/CodeInput/codeVariableWidget.js +124 -0
  16. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  18. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
  19. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
  20. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
  22. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
  23. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
  24. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
  25. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
  26. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  27. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
  28. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
  29. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  30. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
  31. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
  32. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
  33. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
  34. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
  35. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
  36. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
  37. package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
  38. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
  39. package/dist/components/CommandPalette/index.d.ts +2 -0
  40. package/dist/components/CommandPalette/index.d.ts.map +1 -0
  41. package/dist/components/CommandPalette/index.js +4 -0
  42. package/dist/components/ContextBar.vue.js +4 -4
  43. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  44. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  45. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  46. package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
  47. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  48. package/dist/components/SideNav/SideNav.vue.js +26 -23
  49. package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
  50. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  51. package/dist/components/SideNav/SideNavLink.vue.js +5 -5
  52. package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
  53. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  54. package/dist/components/Sidebar/Sidebar.vue.js +14 -12
  55. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  56. package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
  57. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  58. package/dist/components/TopNav/TopNav.vue.js +2 -2
  59. package/dist/components/TopNav/TopNav.vue2.js +31 -28
  60. package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
  61. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  62. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  63. package/dist/components/TopNav/TopNavItem.vue2.js +16 -15
  64. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  65. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  66. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  67. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
  68. package/dist/constants.d.ts +13 -7
  69. package/dist/constants.d.ts.map +1 -1
  70. package/dist/constants.js +4 -4
  71. package/dist/index.d.ts +2 -4
  72. package/dist/index.d.ts.map +1 -1
  73. package/dist/index.js +11 -16
  74. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
  75. package/dist/layouts/App/ApiClientApp.vue.js +72 -0
  76. package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
  77. package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
  78. package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
  79. package/dist/layouts/App/index.d.ts.map +1 -0
  80. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
  81. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
  82. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
  83. package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
  84. package/dist/{Modal → layouts/Modal}/api-client-modal.js +2 -2
  85. package/dist/layouts/Modal/index.d.ts.map +1 -0
  86. package/dist/libs/eventBusses/command-palette.d.ts +14 -0
  87. package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
  88. package/dist/libs/eventBusses/command-palette.js +5 -0
  89. package/dist/libs/local-storage.d.ts +1 -1
  90. package/dist/libs/local-storage.d.ts.map +1 -1
  91. package/dist/libs/local-storage.js +19 -19
  92. package/dist/router.d.ts +5 -10
  93. package/dist/router.d.ts.map +1 -1
  94. package/dist/router.js +23 -19
  95. package/dist/store/topNav.d.ts +94 -82
  96. package/dist/store/topNav.d.ts.map +1 -1
  97. package/dist/store/topNav.js +21 -20
  98. package/dist/store/workspace.d.ts +314 -84
  99. package/dist/store/workspace.d.ts.map +1 -1
  100. package/dist/store/workspace.js +299 -220
  101. package/dist/style.css +1 -1
  102. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  103. package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
  104. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  105. package/dist/views/Cookies/Cookies.vue2.js +9 -12
  106. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  107. package/dist/views/Environment/Environment.vue2.js +22 -25
  108. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  109. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
  110. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  111. package/dist/views/Request/Request.vue.js +1 -1
  112. package/dist/views/Request/Request.vue2.js +122 -105
  113. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  114. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  115. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  116. package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -4
  117. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  118. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  119. package/dist/views/Request/RequestSection/RequestTable.vue2.js +19 -19
  120. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  121. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
  122. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  123. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  124. package/dist/views/Request/RequestSidebarItem.vue2.js +78 -81
  125. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  126. package/dist/views/Request/RequestSidebarItemMenu.vue.js +53 -33
  127. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  128. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +6 -5
  129. package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
  130. package/dist/views/Request/components/OAuth2.vue.js +2 -0
  131. package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
  132. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
  133. package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
  134. package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
  135. package/dist/views/Request/components/index.d.ts +1 -0
  136. package/dist/views/Request/components/index.d.ts.map +1 -1
  137. package/dist/views/Request/components/index.js +4 -2
  138. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  139. package/dist/views/Servers/Servers.vue2.js +12 -15
  140. package/package.json +20 -16
  141. package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
  142. package/dist/App/ApiClientApp.vue.js +0 -56
  143. package/dist/App/createApiClientApp.d.ts.map +0 -1
  144. package/dist/App/index.d.ts.map +0 -1
  145. package/dist/App.vue.d.ts.map +0 -1
  146. package/dist/App.vue.js +0 -77
  147. package/dist/App.vue3.js +0 -5
  148. package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
  149. package/dist/Modal/api-client-modal.d.ts.map +0 -1
  150. package/dist/Modal/index.d.ts.map +0 -1
  151. package/dist/components/AddressBar/AddressBarServer.vue.js +0 -113
  152. package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
  153. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
  154. package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
  155. package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
  156. package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -185
  157. package/dist/main.d.ts +0 -2
  158. package/dist/main.d.ts.map +0 -1
  159. /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
  160. /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
  161. /package/dist/{App → layouts/App}/index.d.ts +0 -0
  162. /package/dist/{App → layouts/App}/index.js +0 -0
  163. /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
  164. /package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +0 -0
  165. /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
  166. /package/dist/{Modal → layouts/Modal}/index.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA6EA,iBAAS,cAAc;qBA6FO,GAAG;kBACN,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;QAzIb,MAAM;WACH,MAAM;qBACI,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;;;;;;;;;;QALd,MAAM;WACH,MAAM;qBACI,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;;;;;;;;;;cAAP,OAAO;cAFP,OAAO;MA6IpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA6EA,iBAAS,cAAc;qBA6FO,GAAG;kBACN,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;QAzIb,MAAM;WACH,MAAM;qBACI,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;;;;;;;;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AA;KAAE;CACzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":";AA8WA,wBAKG"}
1
+ {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":";AA+WA,wBAKG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, computed as v, ref as x, watch as A, openBlock as S, createBlock as q, withCtx as _, createVNode as l, unref as n, createElementVNode as r, createTextVNode as k, toDisplayString as B, withDirectives as o, vShow as a } from "vue";
1
+ import { defineComponent as y, computed as v, ref as x, watch as A, openBlock as S, createBlock as k, withCtx as _, createVNode as l, unref as n, createElementVNode as r, createTextVNode as q, toDisplayString as B, withDirectives as o, vShow as a } from "vue";
2
2
  import R from "../../../components/ContextBar.vue.js";
3
3
  import C from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
4
  import { useWorkspace as E } from "../../../store/workspace.js";
@@ -26,17 +26,18 @@ const P = { class: "flex-1" }, T = { class: "text-c-3 pl-1" }, w = { class: "req
26
26
  ), e = x("All");
27
27
  return A(i, (t) => {
28
28
  e.value === "Body" && !c.includes(t.method) && (e.value = "All");
29
- }), (t, f) => (S(), q(C, null, {
29
+ }), (t, f) => (S(), k(C, null, {
30
30
  title: _(() => {
31
31
  var s;
32
32
  return [
33
33
  l(n(O), {
34
34
  class: "text-c-3 mr-2",
35
35
  icon: "ExternalLink",
36
- size: "sm"
36
+ size: "sm",
37
+ thickness: "2.5"
37
38
  }),
38
39
  r("div", P, [
39
- k(" Request "),
40
+ q(" Request "),
40
41
  r("span", T, B((s = n(i)) == null ? void 0 : s.summary), 1)
41
42
  ])
42
43
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAgMA,OAAO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*/
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a27b706c"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-92212893"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as F, openBlock as u, createBlock as d, unref as m, withCtx as r, createElementBlock as y, Fragment as w, renderList as I, createCommentVNode as c, createVNode as i, createSlots as C, createTextVNode as U, toDisplayString as V, createElementVNode as p, computed as x, pushScopeId as E, popScopeId as T } from "vue";
1
+ import { defineComponent as F, openBlock as u, createBlock as r, unref as m, withCtx as d, createElementBlock as y, Fragment as w, renderList as I, createCommentVNode as c, createVNode as i, createSlots as C, createTextVNode as U, toDisplayString as V, createElementVNode as p, computed as x, pushScopeId as E, popScopeId as T } from "vue";
2
2
  import k from "../../../components/CodeInput/CodeInput.vue.js";
3
- import q from "../../../components/DataTable/DataTable.vue.js";
3
+ import N from "../../../components/DataTable/DataTable.vue.js";
4
4
  import f from "../../../components/DataTable/DataTableCell.vue.js";
5
- import N from "../../../components/DataTable/DataTableCheckbox.vue.js";
5
+ import q from "../../../components/DataTable/DataTableCheckbox.vue.js";
6
6
  import D from "../../../components/DataTable/DataTableRow.vue.js";
7
7
  import { ScalarButton as H, ScalarIcon as z } from "@scalar/components";
8
8
  import A from "./RequestTableTooltip.vue.js";
9
- const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, j = ["onClick"], K = /* @__PURE__ */ M(() => /* @__PURE__ */ p("span", null, "File", -1)), Z = /* @__PURE__ */ F({
9
+ const M = (s) => (E("data-v-92212893"), s = s(), T(), s), O = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, j = ["onClick"], K = /* @__PURE__ */ M(() => /* @__PURE__ */ p("span", null, "File", -1)), Z = /* @__PURE__ */ F({
10
10
  __name: "RequestTable",
11
11
  props: {
12
12
  items: {},
@@ -29,20 +29,20 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
29
29
  }
30
30
  return !1;
31
31
  }), R = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default;
32
- return (e, n) => (u(), d(q, {
32
+ return (e, n) => (u(), r(N, {
33
33
  class: "flex-1",
34
34
  columns: m(B)
35
35
  }, {
36
- default: r(() => [
37
- (u(!0), y(w, null, I(e.items, (l, a) => (u(), d(D, { key: a }, {
38
- default: r(() => [
39
- e.isEnabledHidden ? c("", !0) : (u(), d(N, {
36
+ default: d(() => [
37
+ (u(!0), y(w, null, I(e.items, (l, a) => (u(), r(D, { key: a }, {
38
+ default: d(() => [
39
+ e.isEnabledHidden ? c("", !0) : (u(), r(q, {
40
40
  key: 0,
41
- modelValue: !!l.required,
41
+ modelValue: l.enabled,
42
42
  "onUpdate:modelValue": (o) => t("toggleRow", a, o)
43
43
  }, null, 8, ["modelValue", "onUpdate:modelValue"])),
44
44
  i(f, null, {
45
- default: r(() => [
45
+ default: d(() => [
46
46
  i(k, {
47
47
  disableCloseBrackets: "",
48
48
  disableEnter: "",
@@ -60,7 +60,7 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
60
60
  _: 2
61
61
  }, 1024),
62
62
  i(f, null, {
63
- default: r(() => [
63
+ default: d(() => [
64
64
  i(k, {
65
65
  disableCloseBrackets: "",
66
66
  disableEnter: "",
@@ -78,8 +78,8 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
78
78
  onSelectVariable: (o) => b(a, "value", o),
79
79
  "onUpdate:modelValue": (o) => t("updateRow", a, "value", o)
80
80
  }, C({
81
- icon: r(() => [
82
- $(l) ? (u(), d(A, {
81
+ icon: d(() => [
82
+ $(l) ? (u(), r(A, {
83
83
  key: 0,
84
84
  item: { ...l, default: R(l) }
85
85
  }, null, 8, ["item"])) : c("", !0)
@@ -88,7 +88,7 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
88
88
  }, [
89
89
  v(l).value ? {
90
90
  name: "warning",
91
- fn: r(() => [
91
+ fn: d(() => [
92
92
  U(V(v(l).value), 1)
93
93
  ]),
94
94
  key: "0"
@@ -97,11 +97,11 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
97
97
  ]),
98
98
  _: 2
99
99
  }, 1024),
100
- e.showUploadButton ? (u(), d(f, {
100
+ e.showUploadButton ? (u(), r(f, {
101
101
  key: 1,
102
102
  class: "group/upload p-1 overflow-hidden relative text-ellipsis whitespace-nowrap"
103
103
  }, {
104
- default: r(() => {
104
+ default: d(() => {
105
105
  var o;
106
106
  return [
107
107
  l.file ? (u(), y(w, { key: 0 }, [
@@ -113,14 +113,14 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
113
113
  type: "button",
114
114
  onClick: (S) => t("removeFile", a)
115
115
  }, " Delete ", 8, j)
116
- ], 64)) : (u(), d(m(H), {
116
+ ], 64)) : (u(), r(m(H), {
117
117
  key: 1,
118
118
  class: "bg-b-2 hover:bg-b-3 border-0 py-px text-c-2",
119
119
  size: "sm",
120
120
  variant: "outlined",
121
121
  onClick: (S) => _(a)
122
122
  }, {
123
- default: r(() => [
123
+ default: d(() => [
124
124
  K,
125
125
  i(m(z), {
126
126
  class: "ml-1",
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;UAI1D,uBAAuB;;UAAvB,uBAAuB;;AAuJrD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;UAI1D,uBAAuB;;UAAvB,uBAAuB;;AAuJrD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -6,10 +6,10 @@ const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-l
6
6
  }, g = {
7
7
  key: 2,
8
8
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
9
- }, x = {
9
+ }, k = {
10
10
  key: 3,
11
11
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
12
- }, k = {
12
+ }, x = {
13
13
  key: 4,
14
14
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
15
15
  }, _ = {
@@ -33,7 +33,8 @@ const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-l
33
33
  l(i(f), {
34
34
  class: "ml-1 text-c-3 group-hover/info:text-c-1",
35
35
  icon: "Info",
36
- size: "sm"
36
+ size: "sm",
37
+ thickness: "1.5"
37
38
  })
38
39
  ]),
39
40
  content: r(() => [
@@ -42,8 +43,8 @@ const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-l
42
43
  e.item.type ? (t(), o("span", h, s(e.item.type), 1)) : n("", !0),
43
44
  e.item.format ? (t(), o("span", b, s(e.item.format), 1)) : n("", !0),
44
45
  e.item.minimum ? (t(), o("span", g, "min: " + s(e.item.minimum), 1)) : n("", !0),
45
- e.item.maximum ? (t(), o("span", x, "max: " + s(e.item.maximum), 1)) : n("", !0),
46
- e.item.default ? (t(), o("span", k, "default: " + s(e.item.default), 1)) : n("", !0)
46
+ e.item.maximum ? (t(), o("span", k, "max: " + s(e.item.maximum), 1)) : n("", !0),
47
+ e.item.default ? (t(), o("span", x, "default: " + s(e.item.default), 1)) : n("", !0)
47
48
  ]),
48
49
  e.item.description ? (t(), o("span", _, s(e.item.description), 1)) : n("", !0)
49
50
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAkPA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,K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AAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-304b5123"]]);
5
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-18928cac"]]);
6
6
  export {
7
- a as default
7
+ p as default
8
8
  };
@@ -1,12 +1,13 @@
1
- import { defineComponent as V, useCssVars as j, computed as l, resolveComponent as F, openBlock as n, createElementBlock as p, normalizeClass as u, unref as t, createVNode as f, withCtx as k, createBlock as b, createElementVNode as o, toDisplayString as w, createCommentVNode as g, createTextVNode as q, renderSlot as L, withDirectives as T, Fragment as W, renderList as K, vShow as A } from "vue";
2
- import { useWorkspace as G } from "../../store/workspace.js";
3
- import { ScalarIcon as H } from "@scalar/components";
4
- import { Draggable as J } from "@scalar/draggable";
5
- import { useRouter as M, RouterLink as P } from "vue-router";
1
+ import { defineComponent as N, useCssVars as j, computed as o, resolveComponent as F, openBlock as a, createElementBlock as d, normalizeClass as u, unref as i, createVNode as m, withCtx as D, createBlock as p, createElementVNode as n, toDisplayString as y, createCommentVNode as f, createTextVNode as k, renderSlot as L, withDirectives as P, Fragment as T, renderList as W, vShow as A } from "vue";
2
+ import { activeRouterParams as _, PathId as G } from "../../router.js";
3
+ import { useWorkspace as H } from "../../store/workspace.js";
4
+ import { ScalarIcon as J } from "@scalar/components";
5
+ import { Draggable as K } from "@scalar/draggable";
6
+ import { RouterLink as M } from "vue-router";
6
7
  import Q from "./RequestSidebarItemMenu.vue.js";
7
8
  import X from "../../components/HttpMethod/HttpMethod.vue.js";
8
9
  import { useSidebar as Y } from "../../hooks/useSidebar.js";
9
- const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" }, _ = { class: "relative" }, ee = { class: "flex" }, te = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, ie = { class: "z-10 font-medium" }, re = { key: 2 }, $ = "hover:bg-sidebar-active-b indent-padding-left", me = /* @__PURE__ */ V({
10
+ const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" }, ee = { class: "relative" }, te = { class: "flex" }, ie = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, se = { class: "z-10 font-medium" }, re = { key: 2 }, q = "hover:bg-sidebar-active-b indent-padding-left", be = /* @__PURE__ */ N({
10
11
  __name: "RequestSidebarItem",
11
12
  props: {
12
13
  isDraggable: { type: Boolean, default: !1 },
@@ -15,118 +16,114 @@ const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" },
15
16
  item: {}
16
17
  },
17
18
  emits: ["onDragEnd"],
18
- setup(C) {
19
+ setup($) {
19
20
  j((e) => ({
20
- "0e609a18": z.value,
21
- e3e1f6b4: I.value
21
+ "28f0b1bd": S.value,
22
+ "9782e23e": R.value
22
23
  }));
23
- const i = C, {
24
- activeRequest: c,
25
- activeWorkspace: h,
26
- folders: S,
27
- isReadOnly: a,
28
- requests: v,
24
+ const t = $, {
25
+ activeRequest: b,
26
+ activeWorkspace: c,
27
+ folders: w,
28
+ isReadOnly: l,
29
+ requests: g,
29
30
  requestExamples: x
30
- } = G(), { collapsedSidebarFolders: D, toggleSidebarFolder: E } = Y(), R = M(), U = l(() => "childUids" in i.item), z = l(() => i.parentUids.length ? a.value ? `${(i.parentUids.length - 1) * 12}px` : `${i.parentUids.length * 12}px` : "12px"), I = l(() => i.parentUids.length ? a.value ? `${(i.parentUids.length - 1) * 12}px` : `${i.parentUids.length * 12}px` : "0px"), B = (e, r) => {
31
- const d = `/workspace/${h.value.uid}/request/${r}`;
32
- e.metaKey ? window.open(d, "_blank") : R.push(d);
33
- }, y = (e) => {
34
- var r;
35
- return "spec" in e ? (r = e.spec.info) == null ? void 0 : r.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
36
- }, N = l(() => ("requestUid" in i.item ? v[i.item.requestUid] : i.item).method), O = l(
31
+ } = H(), { collapsedSidebarFolders: h, toggleSidebarFolder: C } = Y(), v = o(() => "childUids" in t.item), S = o(() => t.parentUids.length ? l.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), R = o(() => t.parentUids.length ? l.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), U = (e) => {
32
+ var s;
33
+ return "spec" in e ? (s = e.spec.info) == null ? void 0 : s.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
34
+ }, E = o(() => ("requestUid" in t.item ? g[t.item.requestUid] : t.item).method), I = o(
37
35
  () => {
38
36
  var e;
39
- return D[i.item.uid] || ((e = c.value) == null ? void 0 : e.uid) === i.item.uid && i.item.childUids.length > 1;
37
+ return h[t.item.uid] || ((e = b.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
40
38
  }
39
+ ), z = () => "requestUid" in t.item ? `/workspace/${c.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${c.value.uid}/request/${t.item.uid}`, B = o(
40
+ () => _.value[G.Request] === "default" && b.value.uid === t.item.uid
41
41
  );
42
- return (e, r) => {
43
- const d = F("RequestSidebarItem", !0);
44
- return n(), p("div", {
42
+ return (e, s) => {
43
+ const O = F("RequestSidebarItem", !0);
44
+ return a(), d("div", {
45
45
  class: u(["relative flex flex-row", [
46
- t(a) && e.parentUids.length > 1 || !t(a) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-px mb-[.5px] last:mb-0 indent-border-line-offset" : ""
46
+ i(l) && e.parentUids.length > 1 || !i(l) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-px mb-[.5px] last:mb-0 indent-border-line-offset" : ""
47
47
  ]])
48
48
  }, [
49
- f(t(J), {
49
+ m(i(K), {
50
50
  id: e.item.uid,
51
- ceiling: U.value ? 0.8 : 0.5,
51
+ ceiling: v.value ? 0.8 : 0.5,
52
52
  class: "flex flex-1 flex-col gap-[.5px] text-sm",
53
- floor: U.value ? 0.2 : 0.5,
53
+ floor: v.value ? 0.2 : 0.5,
54
54
  isDraggable: e.parentUids.length > 0 && e.isDraggable,
55
55
  isDroppable: e.isDroppable,
56
56
  parentIds: e.parentUids,
57
- onOnDragEnd: r[3] || (r[3] = (...s) => e.$emit("onDragEnd", ...s))
57
+ onOnDragEnd: s[2] || (s[2] = (...r) => e.$emit("onDragEnd", ...r))
58
58
  }, {
59
- default: k(() => [
60
- "summary" in e.item || "requestUid" in e.item ? (n(), b(t(P), {
59
+ default: D(() => [
60
+ "summary" in e.item || "requestUid" in e.item ? (a(), p(i(M), {
61
61
  key: 0,
62
- custom: "",
63
- to: `/workspace/${t(h).uid}/request/${e.item.uid}`
62
+ class: "no-underline",
63
+ to: z()
64
64
  }, {
65
- default: k(() => {
66
- var s;
67
- return [
68
- o("div", {
69
- class: u(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover", [
70
- $,
71
- ((s = t(c)) == null ? void 0 : s.uid) === e.item.uid ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
72
- ]]),
73
- tabindex: "0",
74
- onClick: r[0] || (r[0] = (m) => B(m, e.item.uid))
75
- }, [
76
- o("span", Z, w(y(e.item)), 1),
77
- o("div", _, [
78
- t(a) ? g("", !0) : (n(), b(Q, {
79
- key: 0,
80
- item: e.item
81
- }, null, 8, ["item"])),
82
- o("span", ee, [
83
- q("   "),
84
- f(t(X), {
85
- class: "font-bold",
86
- method: N.value
87
- }, null, 8, ["method"])
88
- ])
65
+ default: D(({ isExactActive: r }) => [
66
+ n("div", {
67
+ class: u(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover", [
68
+ q,
69
+ r || B.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
70
+ ]]),
71
+ tabindex: "0"
72
+ }, [
73
+ n("span", Z, y(U(e.item)), 1),
74
+ n("div", ee, [
75
+ i(l) ? f("", !0) : (a(), p(Q, {
76
+ key: 0,
77
+ item: e.item
78
+ }, null, 8, ["item"])),
79
+ n("span", te, [
80
+ k("   "),
81
+ m(i(X), {
82
+ class: "font-bold",
83
+ method: E.value
84
+ }, null, 8, ["method"])
89
85
  ])
90
- ], 2)
91
- ];
92
- }),
86
+ ])
87
+ ], 2)
88
+ ]),
93
89
  _: 1
94
- }, 8, ["to"])) : !t(a) || e.parentUids.length ? (n(), p("button", {
90
+ }, 8, ["to"])) : !i(l) || e.parentUids.length ? (a(), d("button", {
95
91
  key: 1,
96
- class: u(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", $]),
92
+ class: u(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", q]),
97
93
  type: "button",
98
- onClick: r[1] || (r[1] = (s) => t(E)(e.item.uid))
94
+ onClick: s[0] || (s[0] = (r) => i(C)(e.item.uid))
99
95
  }, [
100
- o("span", te, [
96
+ n("span", ie, [
101
97
  L(e.$slots, "leftIcon", {}, () => [
102
- o("div", {
98
+ n("div", {
103
99
  class: u({
104
- "rotate-90": t(D)[e.item.uid]
100
+ "rotate-90": i(h)[e.item.uid]
105
101
  })
106
102
  }, [
107
- f(t(H), {
103
+ m(i(J), {
108
104
  class: "text-c-3 text-sm",
109
105
  icon: "ChevronRight",
110
- size: "sm"
106
+ size: "sm",
107
+ thickness: "2.5"
111
108
  })
112
109
  ], 2)
113
110
  ], !0),
114
- q("   ")
111
+ k("   ")
115
112
  ]),
116
- o("span", ie, w(y(e.item)), 1)
117
- ])) : g("", !0),
118
- "childUids" in e.item ? T((n(), p("div", re, [
119
- (n(!0), p(W, null, K(e.item.childUids, (s) => (n(), b(d, {
120
- key: s,
113
+ n("span", se, y(U(e.item)), 1)
114
+ ])) : f("", !0),
115
+ "childUids" in e.item ? P((a(), d("div", re, [
116
+ (a(!0), d(T, null, W("summary" in e.item ? e.item.childUids.slice(1) : e.item.childUids, (r) => (a(), p(O, {
117
+ key: r,
121
118
  isDraggable: e.isDraggable,
122
119
  isDroppable: e.isDroppable,
123
- item: t(S)[s] || t(v)[s] || t(x)[s],
120
+ item: i(w)[r] || i(g)[r] || i(x)[r],
124
121
  parentUids: [...e.parentUids, e.item.uid],
125
- onOnDragEnd: r[2] || (r[2] = (...m) => e.$emit("onDragEnd", ...m))
122
+ onOnDragEnd: s[1] || (s[1] = (...V) => e.$emit("onDragEnd", ...V))
126
123
  }, null, 8, ["isDraggable", "isDroppable", "item", "parentUids"]))), 128))
127
124
  ], 512)), [
128
- [A, O.value]
129
- ]) : g("", !0)
125
+ [A, I.value]
126
+ ]) : f("", !0)
130
127
  ]),
131
128
  _: 3
132
129
  }, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
@@ -135,5 +132,5 @@ const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" },
135
132
  }
136
133
  });
137
134
  export {
138
- me as default
135
+ be as default
139
136
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;;UAM1C,OAAO,GAAG,cAAc;;UAAxB,OAAO,GAAG,cAAc;;AA+RhC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AA0IA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;;UAO1C,OAAO,GAAG,cAAc;;UAAxB,OAAO,GAAG,cAAc;;AA8VhC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,82 +1,102 @@
1
- import { defineComponent as _, computed as h, openBlock as c, createBlock as m, unref as e, withCtx as s, createVNode as t, createCommentVNode as g, withModifiers as z, createElementVNode as n } from "vue";
2
- import { useWorkspace as D } from "../../store/workspace.js";
3
- import { ScalarDropdown as k, ScalarDropdownItem as a, ScalarIcon as i, ScalarDropdownDivider as E, ScalarButton as S } from "@scalar/components";
4
- const v = /* @__PURE__ */ n("span", null, "Add Example", -1), w = /* @__PURE__ */ n("span", null, "Rename", -1), C = /* @__PURE__ */ n("span", null, "Duplicate", -1), b = /* @__PURE__ */ n("span", null, "Delete", -1), B = /* @__PURE__ */ _({
1
+ import { defineComponent as C, computed as E, openBlock as u, createBlock as d, unref as e, withCtx as s, createVNode as t, createCommentVNode as R, withModifiers as w, createElementVNode as i } from "vue";
2
+ import { commandPaletteBus as z } from "../../libs/eventBusses/command-palette.js";
3
+ import { activeRouterParams as p, PathId as f } from "../../router.js";
4
+ import { useWorkspace as I, findRequestFolders as S } from "../../store/workspace.js";
5
+ import { ScalarDropdown as b, ScalarDropdownItem as o, ScalarIcon as a, ScalarDropdownDivider as A, ScalarButton as B } from "@scalar/components";
6
+ import { useRouter as M } from "vue-router";
7
+ const N = /* @__PURE__ */ i("span", null, "Add Example", -1), P = /* @__PURE__ */ i("span", null, "Rename", -1), V = /* @__PURE__ */ i("span", null, "Duplicate", -1), y = /* @__PURE__ */ i("span", null, "Delete", -1), G = /* @__PURE__ */ C({
5
8
  __name: "RequestSidebarItemMenu",
6
9
  props: {
7
10
  item: {}
8
11
  },
9
- setup(d) {
10
- const l = d, { createExampleFromRequest: u, requestMutators: p } = D(), f = () => {
11
- if (!("summary" in l.item)) return;
12
- const o = u(l.item);
13
- p.edit(l.item.uid, "childUids", [
14
- ...l.item.childUids,
15
- o.uid
16
- ]);
17
- }, x = h(() => "summary" in l.item);
18
- return (o, r) => (c(), m(e(k), { teleport: "#scalar-client" }, {
12
+ setup(x) {
13
+ const l = x, { activeWorkspace: r, requestMutators: _, requestExampleMutators: h } = I(), { replace: c } = M(), k = () => z.emit({
14
+ commandName: "Add Example",
15
+ metaData: l.item.uid
16
+ }), v = () => {
17
+ console.log("rename");
18
+ }, g = () => {
19
+ console.log("duplicate");
20
+ }, D = () => {
21
+ if ("requestUid" in l.item)
22
+ h.delete(l.item), p.value[f.Examples] === l.item.uid && c(`/workspace/${r.value}/request/default`);
23
+ else {
24
+ const n = S(l.item.uid);
25
+ if (!n.length) return;
26
+ _.delete(l.item, n[0]), p.value[f.Request] === l.item.uid && c(`/workspace/${r.value.uid}/request/default`);
27
+ }
28
+ }, q = E(() => "summary" in l.item);
29
+ return (n, m) => (u(), d(e(b), { teleport: "#scalar-client" }, {
19
30
  items: s(() => [
20
- x.value ? (c(), m(e(a), {
31
+ q.value ? (u(), d(e(o), {
21
32
  key: 0,
22
33
  class: "flex !gap-2",
23
- onClick: f
34
+ onClick: k
24
35
  }, {
25
36
  default: s(() => [
26
- t(e(i), {
37
+ t(e(a), {
27
38
  class: "inline-flex",
28
39
  icon: "Add",
29
40
  size: "sm"
30
41
  }),
31
- v
42
+ N
32
43
  ]),
33
44
  _: 1
34
- })) : g("", !0),
35
- t(e(a), { class: "flex !gap-2" }, {
45
+ })) : R("", !0),
46
+ t(e(o), {
47
+ class: "flex !gap-2",
48
+ onClick: v
49
+ }, {
36
50
  default: s(() => [
37
- t(e(i), {
51
+ t(e(a), {
38
52
  class: "inline-flex",
39
53
  icon: "Edit",
40
54
  size: "sm"
41
55
  }),
42
- w
56
+ P
43
57
  ]),
44
58
  _: 1
45
59
  }),
46
- t(e(a), { class: "flex !gap-2" }, {
60
+ t(e(o), {
61
+ class: "flex !gap-2",
62
+ onClick: g
63
+ }, {
47
64
  default: s(() => [
48
- t(e(i), {
65
+ t(e(a), {
49
66
  class: "inline-flex",
50
67
  icon: "Duplicate",
51
68
  size: "sm"
52
69
  }),
53
- C
70
+ V
54
71
  ]),
55
72
  _: 1
56
73
  }),
57
- t(e(E)),
58
- t(e(a), { class: "flex !gap-2" }, {
74
+ t(e(A)),
75
+ t(e(o), {
76
+ class: "flex !gap-2",
77
+ onClick: D
78
+ }, {
59
79
  default: s(() => [
60
- t(e(i), {
80
+ t(e(a), {
61
81
  class: "inline-flex",
62
82
  icon: "Trash",
63
83
  size: "sm"
64
84
  }),
65
- b
85
+ y
66
86
  ]),
67
87
  _: 1
68
88
  })
69
89
  ]),
70
90
  default: s(() => [
71
- t(e(S), {
91
+ t(e(B), {
72
92
  class: "z-10 hover:bg-b-3 transition-none p-1 group-hover:flex ui-open:flex absolute left-0 hidden -translate-x-full -ml-1",
73
93
  size: "sm",
74
94
  variant: "ghost",
75
- onClick: r[0] || (r[0] = z(() => {
95
+ onClick: m[0] || (m[0] = w(() => {
76
96
  }, ["stop"]))
77
97
  }, {
78
98
  default: s(() => [
79
- t(e(i), {
99
+ t(e(a), {
80
100
  icon: "Ellipses",
81
101
  size: "sm"
82
102
  })
@@ -89,5 +109,5 @@ const v = /* @__PURE__ */ n("span", null, "Add Example", -1), w = /* @__PURE__ *
89
109
  }
90
110
  });
91
111
  export {
92
- B as default
112
+ G as default
93
113
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;;cAUrE,gBAAgB,GAAG,SAAS;;cAA5B,gBAAgB,GAAG,SAAS;;AA+NxC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;;cAUrE,gBAAgB,GAAG,SAAS;;cAA5B,gBAAgB,GAAG,SAAS;;AA+NxC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC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