@scalar/api-client 2.2.49 → 2.2.50

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 (216) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts +15 -3
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBar.vue2.js +102 -94
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -0
  7. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  9. package/dist/components/AddressBar/AddressBarHistory.vue2.js +54 -58
  10. package/dist/components/CodeInput/CodeInput.vue.d.ts +9 -0
  11. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  12. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  13. package/dist/components/CodeInput/CodeInput.vue2.js +95 -93
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  15. package/dist/components/CodeInput/codeVariableWidget.js +1 -3
  16. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -22
  18. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +13 -13
  20. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
  22. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +54 -49
  24. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  25. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +9 -9
  26. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  27. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  28. package/dist/components/DataTable/DataTableCell.vue.js +11 -8
  29. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -0
  30. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  31. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  32. package/dist/components/DataTable/DataTableInput.vue2.js +36 -30
  33. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  34. package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -15
  35. package/dist/components/Form/Form.vue.d.ts +3 -1
  36. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  37. package/dist/components/Form/Form.vue.js +30 -25
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  39. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +41 -41
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +24 -24
  41. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  42. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  43. package/dist/components/Server/ServerDropdown.vue.js +13 -13
  44. package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
  45. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  46. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  47. package/dist/components/Server/ServerDropdownItem.vue2.js +19 -19
  48. package/dist/layouts/App/create-api-client-app.d.ts +387 -477
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/Modal/create-api-client-modal.d.ts +774 -954
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  52. package/dist/layouts/Web/create-api-client-web.d.ts +387 -477
  53. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  54. package/dist/libs/create-client.d.ts +390 -479
  55. package/dist/libs/create-client.d.ts.map +1 -1
  56. package/dist/libs/create-client.js +3 -15
  57. package/dist/libs/env-helpers.d.ts.map +1 -1
  58. package/dist/libs/find-request.d.ts +7 -7
  59. package/dist/libs/find-request.d.ts.map +1 -1
  60. package/dist/libs/hot-keys.d.ts +3 -1
  61. package/dist/libs/hot-keys.d.ts.map +1 -1
  62. package/dist/libs/hot-keys.js +11 -15
  63. package/dist/libs/hot-keys.test.d.ts +2 -0
  64. package/dist/libs/hot-keys.test.d.ts.map +1 -0
  65. package/dist/libs/index.js +27 -26
  66. package/dist/libs/send-request/build-request-security.d.ts +1 -1
  67. package/dist/libs/send-request/build-request-security.js +19 -16
  68. package/dist/libs/send-request/create-request-operation.test.d.ts +10 -10
  69. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  70. package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
  71. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  72. package/dist/libs/send-request/set-request-cookies.js +37 -34
  73. package/dist/store/active-entities.d.ts +58 -67
  74. package/dist/store/active-entities.d.ts.map +1 -1
  75. package/dist/store/active-entities.js +61 -74
  76. package/dist/store/collections.d.ts +90 -90
  77. package/dist/store/collections.d.ts.map +1 -1
  78. package/dist/store/collections.js +4 -17
  79. package/dist/store/cookies.d.ts +14 -14
  80. package/dist/store/environment.d.ts +19 -18
  81. package/dist/store/environment.d.ts.map +1 -1
  82. package/dist/store/environment.js +2 -8
  83. package/dist/store/import-spec.d.ts +16 -106
  84. package/dist/store/import-spec.d.ts.map +1 -1
  85. package/dist/store/import-spec.js +9 -14
  86. package/dist/store/request-example.d.ts +25 -25
  87. package/dist/store/request-example.d.ts.map +1 -1
  88. package/dist/store/request-example.js +15 -20
  89. package/dist/store/requests.d.ts +84 -84
  90. package/dist/store/requests.d.ts.map +1 -1
  91. package/dist/store/requests.js +17 -40
  92. package/dist/store/router-params.d.ts +13 -11
  93. package/dist/store/router-params.d.ts.map +1 -1
  94. package/dist/store/router-params.js +5 -5
  95. package/dist/store/security-schemes.d.ts +58 -58
  96. package/dist/store/security-schemes.d.ts.map +1 -1
  97. package/dist/store/security-schemes.js +1 -3
  98. package/dist/store/servers.d.ts +17 -17
  99. package/dist/store/servers.d.ts.map +1 -1
  100. package/dist/store/servers.js +2 -9
  101. package/dist/store/store.d.ts +387 -477
  102. package/dist/store/store.d.ts.map +1 -1
  103. package/dist/store/store.js +2 -4
  104. package/dist/store/tags.d.ts +28 -28
  105. package/dist/store/tags.d.ts.map +1 -1
  106. package/dist/store/tags.js +19 -34
  107. package/dist/store/workspace.d.ts +36 -36
  108. package/dist/store/workspace.d.ts.map +1 -1
  109. package/dist/store/workspace.js +1 -5
  110. package/dist/style.css +1 -1
  111. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  112. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  113. package/dist/views/Cookies/CookieForm.vue.js +18 -18
  114. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  116. package/dist/views/Cookies/Cookies.vue2.js +24 -24
  117. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  118. package/dist/views/Environment/Environment.vue2.js +140 -132
  119. package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -2
  120. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  121. package/dist/views/Environment/EnvironmentModal.vue.js +15 -15
  122. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  123. package/dist/views/Request/Request.vue.js +2 -2
  124. package/dist/views/Request/Request.vue2.js +160 -141
  125. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
  126. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -7
  128. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +6 -2
  129. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +99 -95
  131. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +4 -0
  132. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +70 -64
  135. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +4 -0
  136. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  138. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +40 -34
  139. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -0
  140. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +32 -26
  142. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +4 -0
  143. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  145. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +93 -85
  146. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +9 -0
  147. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  148. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  149. package/dist/views/Request/RequestSection/RequestBody.vue2.js +214 -244
  150. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +10 -1
  151. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  152. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  153. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +77 -80
  154. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
  155. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  156. package/dist/views/Request/RequestSection/RequestParams.vue.js +89 -96
  157. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +10 -2
  158. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  159. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +59 -66
  160. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +11 -0
  161. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  162. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  163. package/dist/views/Request/RequestSection/RequestSection.vue2.js +176 -155
  164. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +6 -0
  165. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  166. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  167. package/dist/views/Request/RequestSection/RequestTable.vue2.js +97 -100
  168. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  169. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
  170. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +31 -22
  171. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +2 -2
  172. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
  173. package/dist/views/Request/RequestSection/helpers/getting-started.js +11 -13
  174. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  175. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  176. package/dist/views/Request/RequestSidebar.vue2.js +50 -48
  177. package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
  178. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  179. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  180. package/dist/views/Request/RequestSidebarItem.vue2.js +38 -44
  181. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +10 -0
  182. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  183. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  184. package/dist/views/Request/RequestSubpageHeader.vue2.js +77 -69
  185. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
  186. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  187. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  188. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +41 -39
  189. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
  190. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  191. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  192. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
  193. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  194. package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
  195. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  196. package/dist/views/Request/handle-drag.d.ts +1 -1
  197. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  198. package/dist/views/Request/handle-drag.js +38 -55
  199. package/dist/views/Request/libs/auth.d.ts +2 -2
  200. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  201. package/dist/views/Request/libs/auth.js +28 -29
  202. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  203. package/dist/views/Request/libs/oauth2.js +42 -65
  204. package/dist/views/Request/libs/request.d.ts +5 -0
  205. package/dist/views/Request/libs/request.d.ts.map +1 -1
  206. package/dist/views/Request/libs/request.js +37 -2
  207. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  208. package/dist/views/Request/libs/watch-mode.js +10 -34
  209. package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
  210. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  211. package/dist/views/Servers/ServerForm.vue.js +21 -22
  212. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  213. package/dist/views/Servers/Servers.vue2.js +73 -81
  214. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  215. package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
  216. package/package.json +15 -15
@@ -1,78 +1,84 @@
1
- import { defineComponent as b, ref as m, computed as y, watch as k, openBlock as r, createElementBlock as s, withModifiers as w, Fragment as x, renderList as S, normalizeClass as p, createElementVNode as n, toDisplayString as g, createCommentVNode as h, createBlock as C, unref as c, withCtx as _, createVNode as f } from "vue";
1
+ import { defineComponent as b, ref as d, computed as y, watch as k, openBlock as o, createElementBlock as s, withModifiers as w, Fragment as x, renderList as S, normalizeClass as v, createElementVNode as a, toDisplayString as g, createCommentVNode as p, createBlock as C, unref as i, withCtx as V, createVNode as h } from "vue";
2
2
  import { useModal as z } from "@scalar/components";
3
3
  import O from "./DeleteRequestAuthModal.vue.js";
4
4
  import M from "./RequestAuthTab.vue.js";
5
5
  import N from "../../../../components/DataTable/DataTable.vue.js";
6
- const $ = {
6
+ const _ = {
7
7
  key: 0,
8
- class: "border-t flex px-3 flex-wrap gap-x-2.5 overflow-hidden"
9
- }, A = ["onClick"], B = { class: "whitespace-nowrap font-medium z-10 relative" }, V = {
8
+ class: "flex flex-wrap gap-x-2.5 overflow-hidden border-t px-3"
9
+ }, $ = ["onClick"], A = { class: "relative z-10 whitespace-nowrap font-medium" }, B = {
10
10
  key: 0,
11
- class: "absolute bottom-[var(--scalar-border-width)] z-1 inset-x-1 h-px bg-current left-1/2 -translate-x-1/2 w-full"
11
+ class: "z-1 absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 h-px w-full -translate-x-1/2 bg-current"
12
12
  }, q = {
13
13
  key: 2,
14
- class: "text-c-3 px-4 text-sm border-t min-h-16 justify-center flex items-center bg-b-1"
14
+ class: "text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm"
15
15
  }, F = /* @__PURE__ */ b({
16
16
  __name: "RequestAuthDataTable",
17
17
  props: {
18
18
  collection: {},
19
+ environment: {},
20
+ envVariables: {},
19
21
  layout: { default: "client" },
20
22
  selectedSchemeOptions: { default: () => [] },
21
23
  server: {},
22
24
  workspace: {}
23
25
  },
24
- setup(i) {
25
- const u = z(), v = m(null), o = m(0), d = y(() => {
26
- const e = i.selectedSchemeOptions[o.value];
26
+ setup(c) {
27
+ const u = z(), f = d(
28
+ null
29
+ ), r = d(0), m = y(() => {
30
+ const e = c.selectedSchemeOptions[r.value];
27
31
  if (!e) return [];
28
32
  const t = e == null ? void 0 : e.id.split(",");
29
33
  return t.length > 1 ? t : [e.id];
30
34
  });
31
35
  return k(
32
- () => i.selectedSchemeOptions,
36
+ () => c.selectedSchemeOptions,
33
37
  (e) => {
34
- e[o.value] || (o.value = Math.max(0, o.value - 1));
38
+ e[r.value] || (r.value = Math.max(0, r.value - 1));
35
39
  }
36
- ), (e, t) => (r(), s("form", {
40
+ ), (e, t) => (o(), s("form", {
37
41
  onSubmit: t[1] || (t[1] = w(() => {
38
42
  }, ["prevent"]))
39
43
  }, [
40
- e.selectedSchemeOptions.length > 1 ? (r(), s("div", $, [
41
- (r(!0), s(x, null, S(e.selectedSchemeOptions, (l, a) => (r(), s("div", {
44
+ e.selectedSchemeOptions.length > 1 ? (o(), s("div", _, [
45
+ (o(!0), s(x, null, S(e.selectedSchemeOptions, (l, n) => (o(), s("div", {
42
46
  key: l.id,
43
- class: p(["flex relative h-8 z-1 cursor-pointer -mb-[var(--scalar-border-width)]", [o.value === a ? "text-c-1" : "text-c-3"]])
47
+ class: v(["z-1 relative -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [r.value === n ? "text-c-1" : "text-c-3"]])
44
48
  }, [
45
- n("button", {
46
- class: "floating-bg py-1 text-sm border-b-[1px] border-transparent relative cursor-pointer font-medium",
49
+ a("button", {
50
+ class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
47
51
  type: "button",
48
- onClick: (D) => o.value = a
52
+ onClick: (D) => r.value = n
49
53
  }, [
50
- n("span", B, g(l.label), 1)
51
- ], 8, A),
52
- t[2] || (t[2] = n("div", { class: "absolute bottom-0 z-0 -inset-x-96 h-[var(--scalar-border-width)] bg-border" }, null, -1)),
53
- o.value === a ? (r(), s("div", V)) : h("", !0)
54
+ a("span", A, g(l.label), 1)
55
+ ], 8, $),
56
+ t[2] || (t[2] = a("div", { class: "bg-border absolute -inset-x-96 bottom-0 z-0 h-[var(--scalar-border-width)]" }, null, -1)),
57
+ r.value === n ? (o(), s("div", B)) : p("", !0)
54
58
  ], 2))), 128))
55
- ])) : h("", !0),
56
- d.value.length ? (r(), C(c(N), {
59
+ ])) : p("", !0),
60
+ m.value.length ? (o(), C(i(N), {
57
61
  key: 1,
58
- class: p(["flex-1", e.layout === "reference" && "border-0"]),
62
+ class: v(["flex-1", e.layout === "reference" && "border-0"]),
59
63
  columns: [""]
60
64
  }, {
61
- default: _(() => [
62
- f(M, {
65
+ default: V(() => [
66
+ h(M, {
63
67
  collection: e.collection,
68
+ envVariables: e.envVariables,
69
+ environment: e.environment,
64
70
  layout: e.layout,
65
- securitySchemeUids: d.value,
71
+ securitySchemeUids: m.value,
66
72
  server: e.server,
67
73
  workspace: e.workspace
68
- }, null, 8, ["collection", "layout", "securitySchemeUids", "server", "workspace"])
74
+ }, null, 8, ["collection", "envVariables", "environment", "layout", "securitySchemeUids", "server", "workspace"])
69
75
  ]),
70
76
  _: 1
71
- }, 8, ["class"])) : (r(), s("div", q, " No authentication selected ")),
72
- f(O, {
73
- scheme: v.value,
74
- state: c(u),
75
- onClose: t[0] || (t[0] = (l) => c(u).hide())
77
+ }, 8, ["class"])) : (o(), s("div", q, " No authentication selected ")),
78
+ h(O, {
79
+ scheme: f.value,
80
+ state: i(u),
81
+ onClose: t[0] || (t[0] = (l) => i(u).hide())
76
82
  }, null, 8, ["scheme", "state"])
77
83
  ], 32));
78
84
  }
@@ -1,10 +1,16 @@
1
+ import type { EnvVariable } from '../../../../store/active-entities';
1
2
  import type { VueClassProp } from '../../../../types/vue';
3
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
4
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
2
5
  type __VLS_Props = {
3
6
  type?: string;
4
7
  containerClass?: VueClassProp;
5
8
  required?: boolean;
6
9
  modelValue: string | number;
7
10
  readOnly?: boolean;
11
+ environment: Environment;
12
+ envVariables: EnvVariable[];
13
+ workspace: Workspace;
8
14
  };
9
15
  declare function __VLS_template(): {
10
16
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAK/C,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAuBJ,iBAAS,cAAc;WA4GT,OAAO,IAA6B;;yBATpB,GAAG;sBACN,GAAG;;;;EAa7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAzJN,OAAO;cAEP,OAAO;6EAgKpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAuBJ,iBAAS,cAAc;WA4GT,OAAO,IAA6B;;yBATpB,GAAG;sBACN,GAAG;;;;EAa7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cA5JN,OAAO;cAEP,OAAO;6EAmKpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,43 +1,49 @@
1
- import { defineComponent as p, useId as m, openBlock as f, createBlock as V, mergeProps as y, unref as u, withCtx as r, createElementVNode as c, renderSlot as s } from "vue";
2
- import C from "../../../../components/DataTable/DataTableInput.vue.js";
3
- const B = ["for"], I = /* @__PURE__ */ p({
1
+ import { defineComponent as p, useId as m, openBlock as V, createBlock as f, mergeProps as c, unref as r, withCtx as s, createElementVNode as y, renderSlot as u } from "vue";
2
+ import b from "../../../../components/DataTable/DataTableInput.vue.js";
3
+ const v = ["for"], k = /* @__PURE__ */ p({
4
4
  __name: "RequestAuthDataTableInput",
5
5
  props: {
6
6
  type: {},
7
7
  containerClass: {},
8
8
  required: { type: Boolean, default: !1 },
9
9
  modelValue: {},
10
- readOnly: { type: Boolean, default: !1 }
10
+ readOnly: { type: Boolean, default: !1 },
11
+ environment: {},
12
+ envVariables: {},
13
+ workspace: {}
11
14
  },
12
15
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
13
- setup(d, { emit: i }) {
14
- const t = d, n = i, a = m();
15
- return (o, e) => (f(), V(C, y({
16
- id: u(a),
17
- canAddCustomEnumValue: !t.readOnly,
18
- containerClass: t.containerClass,
19
- modelValue: t.modelValue,
20
- readOnly: t.readOnly,
21
- required: t.required,
22
- type: t.type
16
+ setup(i, { emit: d }) {
17
+ const e = i, a = d, l = m();
18
+ return (o, n) => (V(), f(b, c({
19
+ id: r(l),
20
+ canAddCustomEnumValue: !e.readOnly,
21
+ containerClass: e.containerClass
23
22
  }, o.$attrs, {
24
- onInputBlur: e[0] || (e[0] = (l) => n("inputBlur")),
25
- onInputFocus: e[1] || (e[1] = (l) => n("inputFocus")),
26
- onSelectVariable: e[2] || (e[2] = (l) => n("selectVariable", l)),
27
- "onUpdate:modelValue": e[3] || (e[3] = (l) => n("update:modelValue", l))
23
+ envVariables: e.envVariables,
24
+ environment: e.environment,
25
+ modelValue: e.modelValue,
26
+ readOnly: e.readOnly,
27
+ required: e.required,
28
+ type: e.type,
29
+ workspace: e.workspace,
30
+ onInputBlur: n[0] || (n[0] = (t) => a("inputBlur")),
31
+ onInputFocus: n[1] || (n[1] = (t) => a("inputFocus")),
32
+ onSelectVariable: n[2] || (n[2] = (t) => a("selectVariable", t)),
33
+ "onUpdate:modelValue": n[3] || (n[3] = (t) => a("update:modelValue", t))
28
34
  }), {
29
- default: r(() => [
30
- c("label", { for: u(a) }, [
31
- s(o.$slots, "default")
32
- ], 8, B)
35
+ default: s(() => [
36
+ y("label", { for: r(l) }, [
37
+ u(o.$slots, "default")
38
+ ], 8, v)
33
39
  ]),
34
- icon: r(() => [
35
- s(o.$slots, "icon")
40
+ icon: s(() => [
41
+ u(o.$slots, "icon")
36
42
  ]),
37
43
  _: 3
38
- }, 16, ["id", "canAddCustomEnumValue", "containerClass", "modelValue", "readOnly", "required", "type"]));
44
+ }, 16, ["id", "canAddCustomEnumValue", "containerClass", "envVariables", "environment", "modelValue", "readOnly", "required", "type", "workspace"]));
39
45
  }
40
46
  });
41
47
  export {
42
- I as default
48
+ k as default
43
49
  };
@@ -1,7 +1,11 @@
1
1
  import type { Workspace } from '@scalar/oas-utils/entities';
2
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
2
3
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
4
+ import type { EnvVariable } from '../../../../store/active-entities';
3
5
  type __VLS_Props = {
4
6
  collection: Collection;
7
+ environment: Environment;
8
+ envVariables: EnvVariable[];
5
9
  layout: 'client' | 'reference';
6
10
  securitySchemeUids: string[];
7
11
  server: Server | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAsNA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AASxC,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAgYJ,wBAMG"}
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAgPA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAkZF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthTab.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9f4fbbdb"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2b678dcb"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,182 +1,190 @@
1
- import { defineComponent as K, computed as F, ref as I, openBlock as o, createElementBlock as n, Fragment as i, renderList as w, createBlock as x, unref as s, normalizeClass as U, withCtx as r, createVNode as u, createTextVNode as y, toDisplayString as c, createCommentVNode as b, createElementVNode as C, capitalize as m } from "vue";
2
- import { useWorkspace as N } from "../../../../store/store.js";
3
- import j from "./OAuth2.vue.js";
4
- import v from "./RequestAuthDataTableInput.vue.js";
5
- import f from "../../../../components/DataTable/DataTableRow.vue.js";
6
- import q from "../../../../components/DataTable/DataTableCell.vue.js";
7
- const R = {
1
+ import { defineComponent as F, computed as N, ref as P, openBlock as o, createElementBlock as n, Fragment as i, renderList as U, createBlock as _, unref as f, normalizeClass as C, withCtx as l, createVNode as u, createTextVNode as b, toDisplayString as $, createCommentVNode as k, mergeProps as v, createElementVNode as T, capitalize as x } from "vue";
2
+ import { useWorkspace as j } from "../../../../store/store.js";
3
+ import q from "./OAuth2.vue.js";
4
+ import m from "./RequestAuthDataTableInput.vue.js";
5
+ import s from "../../../../components/DataTable/DataTableRow.vue.js";
6
+ import R from "../../../../components/DataTable/DataTableCell.vue.js";
7
+ const z = {
8
8
  key: 0,
9
- class: "border-t min-h-8 flex text-sm"
10
- }, z = { class: "flex h-8 gap-2.5 px-3 max-w-full overflow-x-auto" }, M = ["onClick"], P = { class: "z-10 relative" }, Q = {
9
+ class: "flex min-h-8 border-t text-sm"
10
+ }, M = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, Q = ["onClick"], D = { class: "relative z-10" }, E = {
11
11
  key: 4,
12
- class: "border-t text-c-3 px-4 text-sm min-h-16 justify-center flex items-center bg-b-1"
13
- }, G = /* @__PURE__ */ K({
12
+ class: "text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm"
13
+ }, X = /* @__PURE__ */ F({
14
14
  __name: "RequestAuthTab",
15
15
  props: {
16
16
  collection: {},
17
+ environment: {},
18
+ envVariables: {},
17
19
  layout: {},
18
20
  securitySchemeUids: {},
19
21
  server: {},
20
22
  workspace: {}
21
23
  },
22
- setup($) {
23
- const { securitySchemes: g, securitySchemeMutators: T } = N(), _ = F(
24
- () => $.securitySchemeUids.map((t) => ({
25
- scheme: g[t]
24
+ setup(w) {
25
+ const { securitySchemes: S, securitySchemeMutators: B } = j(), g = N(
26
+ () => w.securitySchemeUids.map((t) => ({
27
+ scheme: S[t]
26
28
  }))
27
- ), d = I(""), S = (t) => {
29
+ ), d = P(""), I = (t) => {
28
30
  if (t.type === "apiKey")
29
- return `${m(t.nameKey)}: ${t.in}`;
31
+ return `${x(t.nameKey)}: ${t.in}`;
30
32
  if (t.type === "oauth2") {
31
- const l = Object.values(t.flows ?? {})[0];
32
- return `${m(t.nameKey)}: ${d.value ? d.value : (l == null ? void 0 : l.type) ?? ""}`;
33
+ const r = Object.values(t.flows ?? {})[0];
34
+ return `${x(t.nameKey)}: ${d.value ? d.value : (r == null ? void 0 : r.type) ?? ""}`;
33
35
  }
34
- return t.type === "http" ? `${m(t.nameKey)}: ${t.scheme}` : `${m(t.nameKey)}: ${t.type}`;
35
- }, V = (t, l, e) => T.edit(t, l, e);
36
- return (t, l) => (o(!0), n(i, null, w(_.value, ({ scheme: e }, B) => (o(), n(i, {
36
+ return t.type === "http" ? `${x(t.nameKey)}: ${t.scheme}` : `${x(t.nameKey)}: ${t.type}`;
37
+ }, V = (t, r, e) => B.edit(t, r, e), y = {
38
+ environment: w.environment,
39
+ envVariables: w.envVariables,
40
+ workspace: w.workspace
41
+ };
42
+ return (t, r) => (o(!0), n(i, null, U(g.value, ({ scheme: e }, K) => (o(), n(i, {
37
43
  key: e == null ? void 0 : e.uid
38
44
  }, [
39
- _.value.length > 1 ? (o(), x(s(f), {
45
+ g.value.length > 1 ? (o(), _(f(s), {
40
46
  key: 0,
41
- class: U({
47
+ class: C({
42
48
  "request-example-references-header": t.layout === "reference"
43
49
  })
44
50
  }, {
45
- default: r(() => [
46
- u(s(q), {
47
- class: U([
48
- "text-c-3 pl-2 font-medium flex items-center",
49
- t.layout === "reference" && `border-t ${B !== 0 ? "mt-2" : ""}`
51
+ default: l(() => [
52
+ u(f(R), {
53
+ class: C([
54
+ "text-c-3 flex items-center pl-2 font-medium",
55
+ t.layout === "reference" && `border-t ${K !== 0 ? "mt-2" : ""}`
50
56
  ])
51
57
  }, {
52
- default: r(() => [
53
- y(c(S(e)), 1)
58
+ default: l(() => [
59
+ b($(I(e)), 1)
54
60
  ]),
55
61
  _: 2
56
62
  }, 1032, ["class"])
57
63
  ]),
58
64
  _: 2
59
- }, 1032, ["class"])) : b("", !0),
65
+ }, 1032, ["class"])) : k("", !0),
60
66
  (e == null ? void 0 : e.type) === "http" ? (o(), n(i, { key: 1 }, [
61
- e.scheme === "bearer" ? (o(), x(s(f), { key: 0 }, {
62
- default: r(() => [
63
- u(v, {
67
+ e.scheme === "bearer" ? (o(), _(f(s), { key: 0 }, {
68
+ default: l(() => [
69
+ u(m, v({ ref_for: !0 }, y, {
64
70
  containerClass: t.layout === "reference" && "border-t",
65
71
  modelValue: e.token,
66
72
  placeholder: "Token",
67
73
  type: "password",
68
74
  "onUpdate:modelValue": (a) => V(e.uid, "token", a)
69
- }, {
70
- default: r(() => l[0] || (l[0] = [
71
- y(" Bearer Token ")
75
+ }), {
76
+ default: l(() => r[0] || (r[0] = [
77
+ b(" Bearer Token ")
72
78
  ])),
73
79
  _: 2
74
- }, 1032, ["containerClass", "modelValue", "onUpdate:modelValue"])
80
+ }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
75
81
  ]),
76
82
  _: 2
77
83
  }, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (o(), n(i, { key: 1 }, [
78
- u(s(f), null, {
79
- default: r(() => [
80
- u(v, {
84
+ u(f(s), null, {
85
+ default: l(() => [
86
+ u(m, v({ ref_for: !0 }, y, {
81
87
  class: "text-c-2",
82
88
  containerClass: t.layout === "reference" && "auth-blend-required border-t",
83
89
  modelValue: e.username,
84
90
  placeholder: "janedoe",
85
91
  required: "",
86
92
  "onUpdate:modelValue": (a) => V(e.uid, "username", a)
87
- }, {
88
- default: r(() => l[1] || (l[1] = [
89
- y(" Username ")
93
+ }), {
94
+ default: l(() => r[1] || (r[1] = [
95
+ b(" Username ")
90
96
  ])),
91
97
  _: 2
92
- }, 1032, ["containerClass", "modelValue", "onUpdate:modelValue"])
98
+ }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
93
99
  ]),
94
100
  _: 2
95
101
  }, 1024),
96
- u(s(f), null, {
97
- default: r(() => [
98
- u(v, {
102
+ u(f(s), null, {
103
+ default: l(() => [
104
+ u(m, v({ ref_for: !0 }, y, {
99
105
  modelValue: e.password,
100
106
  placeholder: "********",
101
107
  type: "password",
102
108
  "onUpdate:modelValue": (a) => V(e.uid, "password", a)
103
- }, {
104
- default: r(() => l[2] || (l[2] = [
105
- y(" Password ")
109
+ }), {
110
+ default: l(() => r[2] || (r[2] = [
111
+ b(" Password ")
106
112
  ])),
107
113
  _: 2
108
- }, 1032, ["modelValue", "onUpdate:modelValue"])
114
+ }, 1040, ["modelValue", "onUpdate:modelValue"])
109
115
  ]),
110
116
  _: 2
111
117
  }, 1024)
112
- ], 64)) : b("", !0)
118
+ ], 64)) : k("", !0)
113
119
  ], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (o(), n(i, { key: 2 }, [
114
- u(s(f), null, {
115
- default: r(() => [
116
- u(v, {
120
+ u(f(s), null, {
121
+ default: l(() => [
122
+ u(m, v({ ref_for: !0 }, y, {
117
123
  containerClass: t.layout === "reference" && "border-t",
118
124
  modelValue: e.name,
119
125
  placeholder: "api-key",
120
126
  "onUpdate:modelValue": (a) => V(e.uid, "name", a)
121
- }, {
122
- default: r(() => l[3] || (l[3] = [
123
- y(" Name ")
127
+ }), {
128
+ default: l(() => r[3] || (r[3] = [
129
+ b(" Name ")
124
130
  ])),
125
131
  _: 2
126
- }, 1032, ["containerClass", "modelValue", "onUpdate:modelValue"])
132
+ }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
127
133
  ]),
128
134
  _: 2
129
135
  }, 1024),
130
- u(s(f), null, {
131
- default: r(() => [
132
- u(v, {
136
+ u(f(s), null, {
137
+ default: l(() => [
138
+ u(m, v({ ref_for: !0 }, y, {
133
139
  modelValue: e.value,
134
140
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
135
141
  "onUpdate:modelValue": (a) => V(e.uid, "value", a)
136
- }, {
137
- default: r(() => l[4] || (l[4] = [
138
- y(" Value ")
142
+ }), {
143
+ default: l(() => r[4] || (r[4] = [
144
+ b(" Value ")
139
145
  ])),
140
146
  _: 2
141
- }, 1032, ["modelValue", "onUpdate:modelValue"])
147
+ }, 1040, ["modelValue", "onUpdate:modelValue"])
142
148
  ]),
143
149
  _: 2
144
150
  }, 1024)
145
151
  ], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (o(), n(i, { key: 3 }, [
146
- u(s(f), null, {
147
- default: r(() => [
148
- Object.keys(e.flows).length > 1 ? (o(), n("div", R, [
149
- C("div", z, [
150
- (o(!0), n(i, null, w(e == null ? void 0 : e.flows, (a, p, k) => (o(), n("button", {
152
+ u(f(s), null, {
153
+ default: l(() => [
154
+ Object.keys(e.flows).length > 1 ? (o(), n("div", z, [
155
+ T("div", M, [
156
+ (o(!0), n(i, null, U(e == null ? void 0 : e.flows, (a, p, c) => (o(), n("button", {
151
157
  key: p,
152
- class: U(["floating-bg py-1 text-sm border-b-[1px] border-transparent relative cursor-pointer font-medium text-c-3", {
153
- "!text-c-1 !border-current border-b-[1px] !rounded-none": t.layout !== "reference" && (d.value === p || k === 0 && !d.value),
154
- "!text-c-1 !border-current border-b-[1px] !rounded-none opacity-100": t.layout === "reference" && (d.value === p || k === 0 && !d.value)
158
+ class: C(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium", {
159
+ "!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (d.value === p || c === 0 && !d.value),
160
+ "!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (d.value === p || c === 0 && !d.value)
155
161
  }]),
156
162
  type: "button",
157
- onClick: (D) => d.value = p
163
+ onClick: (L) => d.value = p
158
164
  }, [
159
- C("span", P, c(p), 1)
160
- ], 10, M))), 128))
165
+ T("span", D, $(p), 1)
166
+ ], 10, Q))), 128))
161
167
  ])
162
- ])) : b("", !0)
168
+ ])) : k("", !0)
163
169
  ]),
164
170
  _: 2
165
171
  }, 1024),
166
- (o(!0), n(i, null, w(e == null ? void 0 : e.flows, (a, p, k) => (o(), n(i, { key: p }, [
167
- d.value === p || k === 0 && !d.value ? (o(), x(j, {
172
+ (o(!0), n(i, null, U(e == null ? void 0 : e.flows, (a, p, c) => (o(), n(i, { key: p }, [
173
+ d.value === p || c === 0 && !d.value ? (o(), _(q, v({
168
174
  key: 0,
175
+ ref_for: !0
176
+ }, y, {
169
177
  collection: t.collection,
170
178
  flow: a,
171
179
  scheme: e,
172
180
  server: t.server,
173
181
  workspace: t.workspace
174
- }, null, 8, ["collection", "flow", "scheme", "server", "workspace"])) : b("", !0)
182
+ }), null, 16, ["collection", "flow", "scheme", "server", "workspace"])) : k("", !0)
175
183
  ], 64))), 128))
176
- ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (o(), n("div", Q, " Coming soon ")) : b("", !0)
184
+ ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (o(), n("div", E, " Coming soon ")) : k("", !0)
177
185
  ], 64))), 128));
178
186
  }
179
187
  });
180
188
  export {
181
- G as default
189
+ X as default
182
190
  };
@@ -1,4 +1,13 @@
1
+ import type { EnvVariable } from '../../../store/active-entities';
2
+ import type { Workspace } from '@scalar/oas-utils/entities';
3
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
4
+ import { type Operation, type RequestExample } from '@scalar/oas-utils/entities/spec';
1
5
  type __VLS_Props = {
6
+ example: RequestExample;
7
+ operation: Operation;
8
+ environment: Environment;
9
+ envVariables: EnvVariable[];
10
+ workspace: Workspace;
2
11
  title: string;
3
12
  };
4
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AA2nBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAg7BF,wBAOG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAolBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EACL,KAAK,SAAS,EACd,KAAK,cAAc,EAEpB,MAAM,iCAAiC,CAAA;AAUxC,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAg4BJ,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4753e355"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3f1cd888"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };