@scalar/api-client 2.2.48 → 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 (217) hide show
  1. package/CHANGELOG.md +41 -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/ResponseBodyVirtual.vue.js +7 -7
  186. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
  187. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  188. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  189. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +41 -39
  190. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
  191. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  192. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  193. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
  194. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  195. package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
  196. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  197. package/dist/views/Request/handle-drag.d.ts +1 -1
  198. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  199. package/dist/views/Request/handle-drag.js +38 -55
  200. package/dist/views/Request/libs/auth.d.ts +2 -2
  201. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  202. package/dist/views/Request/libs/auth.js +28 -29
  203. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  204. package/dist/views/Request/libs/oauth2.js +42 -65
  205. package/dist/views/Request/libs/request.d.ts +5 -0
  206. package/dist/views/Request/libs/request.d.ts.map +1 -1
  207. package/dist/views/Request/libs/request.js +37 -2
  208. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  209. package/dist/views/Request/libs/watch-mode.js +10 -34
  210. package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
  211. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  212. package/dist/views/Servers/ServerForm.vue.js +21 -22
  213. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  214. package/dist/views/Servers/Servers.vue2.js +73 -81
  215. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  216. package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
  217. package/package.json +14 -14
@@ -1,68 +1,67 @@
1
- import { defineComponent as $, resolveComponent as U, openBlock as r, createBlock as i, withCtx as t, createElementBlock as f, Fragment as b, renderList as T, createElementVNode as s, createVNode as d, unref as p, toDisplayString as y, normalizeClass as z, createSlots as D, createCommentVNode as w, createTextVNode as q, computed as E } from "vue";
2
- import V from "../../../components/CodeInput/CodeInput.vue.js";
3
- import G from "../../../components/DataTable/DataTable.vue.js";
1
+ import { defineComponent as _, resolveComponent as $, openBlock as r, createBlock as p, withCtx as t, createElementBlock as b, Fragment as f, renderList as I, normalizeClass as w, unref as i, createElementVNode as s, createVNode as u, toDisplayString as y, createCommentVNode as V } from "vue";
2
+ import { ScalarTooltip as T, ScalarIcon as x, ScalarButton as z } from "@scalar/components";
3
+ import g from "../../../components/CodeInput/CodeInput.vue.js";
4
+ import D from "../../../components/DataTable/DataTable.vue.js";
4
5
  import v from "../../../components/DataTable/DataTableCell.vue.js";
5
- import I from "../../../components/DataTable/DataTableCheckbox.vue.js";
6
- import N from "../../../components/DataTable/DataTableRow.vue.js";
7
- import { ScalarTooltip as O, ScalarIcon as g, ScalarButton as L } from "@scalar/components";
8
- import { hasItemProperties as B } from "../libs/request.js";
9
- import j from "./RequestTableTooltip.vue.js";
10
- const A = { class: "contents" }, M = { class: "sr-only" }, K = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, P = ["onClick"], oe = /* @__PURE__ */ $({
6
+ import q from "../../../components/DataTable/DataTableCheckbox.vue.js";
7
+ import E from "../../../components/DataTable/DataTableRow.vue.js";
8
+ import { parameterIsInvalid as G, hasItemProperties as B } from "../libs/request.js";
9
+ import L from "./RequestTableTooltip.vue.js";
10
+ const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-2 filemask flex max-w-[100%] items-end justify-end overflow-hidden" }, A = ["onClick"], Z = /* @__PURE__ */ _({
11
11
  __name: "RequestTable",
12
12
  props: {
13
13
  items: {},
14
14
  hasCheckboxDisabled: { type: Boolean, default: !1 },
15
15
  showUploadButton: { type: Boolean, default: !1 },
16
16
  isGlobal: { type: Boolean, default: !1 },
17
- isReadOnly: { type: Boolean, default: !1 }
17
+ isReadOnly: { type: Boolean, default: !1 },
18
+ environment: {},
19
+ envVariables: {},
20
+ workspace: {}
18
21
  },
19
22
  emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
20
23
  setup(R, { emit: h }) {
21
- const m = R, n = h, _ = ["", "", "36px"], x = (e, o, c) => {
22
- n("updateRow", e, o, c);
23
- }, C = (e) => {
24
- n("uploadFile", e);
25
- }, k = (e) => E(() => {
26
- if (e.type === "integer" && e.value !== void 0) {
27
- const o = Number(e.value);
28
- if (e.minimum !== void 0 && o < e.minimum)
29
- return `Min is ${e.minimum}`;
30
- if (e.maximum !== void 0 && o > e.maximum)
31
- return `Max is ${e.maximum}`;
32
- }
33
- return !1;
34
- }), F = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default;
35
- return (e, o) => {
36
- const c = U("RouterLink");
37
- return r(), i(G, {
38
- class: "flex-1",
39
- columns: _
24
+ const m = R, n = h, C = ["", "", "36px"], k = (l, a, c) => {
25
+ n("updateRow", l, a, c);
26
+ }, F = (l) => {
27
+ n("uploadFile", l);
28
+ }, S = (l) => Array.isArray(l.default) && l.default.length === 1 ? l.default[0] : l.default;
29
+ return (l, a) => {
30
+ const c = $("RouterLink");
31
+ return r(), p(D, {
32
+ class: "group/table flex-1",
33
+ columns: C
40
34
  }, {
41
35
  default: t(() => [
42
- (r(!0), f(b, null, T(e.items, (l, u) => (r(), i(N, { key: u }, {
36
+ (r(!0), b(f, null, I(l.items, (e, d) => (r(), p(E, {
37
+ key: d,
38
+ class: w({
39
+ alert: i(G)(e).value
40
+ })
41
+ }, {
43
42
  default: t(() => [
44
- s("label", A, [
45
- e.isGlobal ? (r(), i(c, {
43
+ s("label", N, [
44
+ l.isGlobal ? (r(), p(c, {
46
45
  key: 0,
47
- class: "!border-r-1/2 border-t-1/2 text-c-2 flex justify-center items-center",
48
- to: l.route ?? {}
46
+ class: "!border-r-1/2 border-t-1/2 text-c-2 flex items-center justify-center",
47
+ to: e.route ?? {}
49
48
  }, {
50
49
  default: t(() => [
51
- o[5] || (o[5] = s("span", { class: "sr-only" }, "Global", -1)),
52
- d(p(O), {
50
+ a[5] || (a[5] = s("span", { class: "sr-only" }, "Global", -1)),
51
+ u(i(T), {
53
52
  as: "div",
54
53
  side: "top"
55
54
  }, {
56
55
  trigger: t(() => [
57
- d(p(g), {
56
+ u(i(x), {
58
57
  class: "text-c-1",
59
58
  icon: "Globe",
60
59
  size: "xs"
61
60
  })
62
61
  ]),
63
- content: t(() => o[4] || (o[4] = [
64
- s("div", { class: "grid gap-1.5 pointer-events-none max-w-[320px] w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, [
65
- s("div", { class: "flex items-center text-c-1" }, [
62
+ content: t(() => a[4] || (a[4] = [
63
+ s("div", { class: "w-content bg-b-1 z-100 text-xxs text-c-1 pointer-events-none z-10 grid max-w-[320px] gap-1.5 rounded p-2 leading-5 shadow-lg" }, [
64
+ s("div", { class: "text-c-1 flex items-center" }, [
66
65
  s("span", { class: "text-pretty" }, " Global cookies are shared across the whole workspace. ")
67
66
  ])
68
67
  ], -1)
@@ -71,103 +70,101 @@ const A = { class: "contents" }, M = { class: "sr-only" }, K = { class: "text-c-
71
70
  })
72
71
  ]),
73
72
  _: 2
74
- }, 1032, ["to"])) : (r(), f(b, { key: 1 }, [
75
- s("span", M, " Row " + y(l.enabled ? "Enabled" : "Disabled"), 1),
76
- d(I, {
73
+ }, 1032, ["to"])) : (r(), b(f, { key: 1 }, [
74
+ s("span", O, " Row " + y(e.enabled ? "Enabled" : "Disabled"), 1),
75
+ u(q, {
77
76
  class: "!border-r-1/2",
78
77
  disabled: m.hasCheckboxDisabled,
79
- modelValue: l.enabled,
80
- "onUpdate:modelValue": (a) => n("toggleRow", u, a)
78
+ modelValue: e.enabled,
79
+ "onUpdate:modelValue": (o) => n("toggleRow", d, o)
81
80
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])
82
81
  ], 64))
83
82
  ]),
84
- d(v, null, {
83
+ u(v, null, {
85
84
  default: t(() => [
86
- d(V, {
85
+ u(g, {
87
86
  disableCloseBrackets: "",
88
87
  disabled: m.isReadOnly,
89
88
  disableEnter: "",
90
89
  disableTabIndent: "",
91
- modelValue: l.key,
90
+ envVariables: l.envVariables,
91
+ environment: l.environment,
92
+ modelValue: e.key,
92
93
  placeholder: "Key",
93
- required: !!l.required,
94
- onBlur: o[0] || (o[0] = (a) => n("inputBlur")),
95
- onFocus: o[1] || (o[1] = (a) => n("inputFocus")),
96
- onSelectVariable: (a) => x(u, "key", a),
97
- "onUpdate:modelValue": (a) => n("updateRow", u, "key", a)
98
- }, null, 8, ["disabled", "modelValue", "required", "onSelectVariable", "onUpdate:modelValue"])
94
+ required: !!e.required,
95
+ workspace: l.workspace,
96
+ onBlur: a[0] || (a[0] = (o) => n("inputBlur")),
97
+ onFocus: a[1] || (a[1] = (o) => n("inputFocus")),
98
+ onSelectVariable: (o) => k(d, "key", o),
99
+ "onUpdate:modelValue": (o) => n("updateRow", d, "key", o)
100
+ }, null, 8, ["disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
99
101
  ]),
100
102
  _: 2
101
103
  }, 1024),
102
- d(v, null, {
104
+ u(v, null, {
103
105
  default: t(() => [
104
- d(V, {
105
- class: z({
106
- "pr-6": p(B)(l)
106
+ u(g, {
107
+ class: w({
108
+ "pr-6": i(B)(e)
107
109
  }),
108
- default: l.default,
110
+ default: e.default,
109
111
  disableCloseBrackets: "",
110
112
  disabled: m.isReadOnly,
111
113
  disableEnter: "",
112
114
  disableTabIndent: "",
113
- enum: l.enum ?? [],
114
- examples: l.examples ?? [],
115
- max: l.maximum,
116
- min: l.minimum,
117
- modelValue: l.value,
118
- nullable: !!l.nullable,
115
+ enum: e.enum ?? [],
116
+ envVariables: l.envVariables,
117
+ environment: l.environment,
118
+ examples: e.examples ?? [],
119
+ max: e.maximum,
120
+ min: e.minimum,
121
+ modelValue: e.value,
122
+ nullable: !!e.nullable,
119
123
  placeholder: "Value",
120
- type: l.type,
121
- onBlur: o[2] || (o[2] = (a) => n("inputBlur")),
122
- onFocus: o[3] || (o[3] = (a) => n("inputFocus")),
123
- onSelectVariable: (a) => x(u, "value", a),
124
- "onUpdate:modelValue": (a) => n("updateRow", u, "value", a)
125
- }, D({
124
+ type: e.type,
125
+ workspace: l.workspace,
126
+ onBlur: a[2] || (a[2] = (o) => n("inputBlur")),
127
+ onFocus: a[3] || (a[3] = (o) => n("inputFocus")),
128
+ onSelectVariable: (o) => k(d, "value", o),
129
+ "onUpdate:modelValue": (o) => n("updateRow", d, "value", o)
130
+ }, {
126
131
  icon: t(() => [
127
- p(B)(l) ? (r(), i(j, {
132
+ i(B)(e) ? (r(), p(L, {
128
133
  key: 0,
129
- item: { ...l, default: F(l) }
130
- }, null, 8, ["item"])) : w("", !0)
134
+ item: { ...e, default: S(e) }
135
+ }, null, 8, ["item"])) : V("", !0)
131
136
  ]),
132
137
  _: 2
133
- }, [
134
- k(l).value ? {
135
- name: "warning",
136
- fn: t(() => [
137
- q(y(k(l).value), 1)
138
- ]),
139
- key: "0"
140
- } : void 0
141
- ]), 1032, ["class", "default", "disabled", "enum", "examples", "max", "min", "modelValue", "nullable", "type", "onSelectVariable", "onUpdate:modelValue"])
138
+ }, 1032, ["class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
142
139
  ]),
143
140
  _: 2
144
141
  }, 1024),
145
- e.showUploadButton ? (r(), i(v, {
142
+ l.showUploadButton ? (r(), p(v, {
146
143
  key: 0,
147
- class: "group/upload p-1 overflow-hidden relative text-ellipsis whitespace-nowrap"
144
+ class: "group/upload relative overflow-hidden text-ellipsis whitespace-nowrap p-1"
148
145
  }, {
149
146
  default: t(() => {
150
- var a;
147
+ var o;
151
148
  return [
152
- l.file ? (r(), f(b, { key: 0 }, [
153
- s("div", K, [
154
- s("span", null, y((a = l.file) == null ? void 0 : a.name), 1)
149
+ e.file ? (r(), b(f, { key: 0 }, [
150
+ s("div", j, [
151
+ s("span", null, y((o = e.file) == null ? void 0 : o.name), 1)
155
152
  ]),
156
153
  s("button", {
157
- class: "absolute bg-b-2 font-medium centered-x centered-y hidden rounded text-center p-0.5 w-[calc(100%_-_8px)] group-hover/upload:block text-xs",
154
+ class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
158
155
  type: "button",
159
- onClick: (S) => n("removeFile", u)
160
- }, " Delete ", 8, P)
161
- ], 64)) : (r(), i(p(L), {
156
+ onClick: (U) => n("removeFile", d)
157
+ }, " Delete ", 8, A)
158
+ ], 64)) : (r(), p(i(z), {
162
159
  key: 1,
163
- class: "bg-b-2 hover:bg-b-3 border-0 py-px text-c-2 shadow-none",
160
+ class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 py-px shadow-none",
164
161
  size: "sm",
165
162
  variant: "outlined",
166
- onClick: (S) => C(u)
163
+ onClick: (U) => F(d)
167
164
  }, {
168
165
  default: t(() => [
169
- o[6] || (o[6] = s("span", null, "File", -1)),
170
- d(p(g), {
166
+ a[6] || (a[6] = s("span", null, "File", -1)),
167
+ u(i(x), {
171
168
  class: "ml-1",
172
169
  icon: "UploadSimple",
173
170
  size: "xs",
@@ -179,10 +176,10 @@ const A = { class: "contents" }, M = { class: "sr-only" }, K = { class: "text-c-
179
176
  ];
180
177
  }),
181
178
  _: 2
182
- }, 1024)) : w("", !0)
179
+ }, 1024)) : V("", !0)
183
180
  ]),
184
181
  _: 2
185
- }, 1024))), 128))
182
+ }, 1032, ["class"]))), 128))
186
183
  ]),
187
184
  _: 1
188
185
  });
@@ -190,5 +187,5 @@ const A = { class: "contents" }, M = { class: "sr-only" }, K = { class: "text-c-
190
187
  }
191
188
  });
192
189
  export {
193
- oe as default
190
+ Z as default
194
191
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAI9E,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAAC;;AAsIrD,wBAOG"}
1
+ {"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AAsEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAM9E,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAAC;;AAsJrD,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestTableTooltip.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-936ae259"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-30c955c6"]]);
5
5
  export {
6
- r as default
6
+ a as default
7
7
  };
@@ -1,42 +1,51 @@
1
- import { defineComponent as m, openBlock as t, createBlock as l, unref as r, withCtx as a, createElementVNode as n, createVNode as p, createElementBlock as o, toDisplayString as s, createCommentVNode as i } from "vue";
2
- import { ScalarTooltip as c, ScalarIcon as d } from "@scalar/components";
3
- const f = { class: "bg-b-1 pl-1 pr-1.5 mr-0.25" }, u = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 p-2 text-xxs leading-5 text-c-1" }, h = { class: "schema flex items-center text-c-2" }, b = { key: 0 }, g = { key: 1 }, _ = { key: 2 }, y = { key: 3 }, k = { key: 4 }, x = {
1
+ import { defineComponent as l, openBlock as t, createBlock as p, unref as r, withCtx as a, createElementVNode as m, createVNode as d, normalizeClass as u, createElementBlock as o, toDisplayString as s, createCommentVNode as i } from "vue";
2
+ import { ScalarTooltip as c, ScalarIcon as f } from "@scalar/components";
3
+ import { parameterIsInvalid as n } from "../libs/request.js";
4
+ const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent" }, b = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, h = {
4
5
  key: 0,
5
- class: "leading-snug text-pretty text-sm",
6
+ class: "text-error-1"
7
+ }, y = {
8
+ key: 1,
9
+ class: "schema text-c-2 flex items-center"
10
+ }, v = { key: 0 }, k = { key: 1 }, _ = { key: 2 }, w = { key: 3 }, x = { key: 4 }, C = {
11
+ key: 2,
12
+ class: "text-pretty text-sm leading-snug",
6
13
  style: { maxWidth: "16rem" }
7
- }, N = /* @__PURE__ */ m({
14
+ }, V = /* @__PURE__ */ l({
8
15
  __name: "RequestTableTooltip",
9
16
  props: {
10
17
  item: {}
11
18
  },
12
- setup(v) {
13
- return (e, w) => (t(), l(r(c), {
19
+ setup(I) {
20
+ return (e, B) => (t(), p(r(c), {
14
21
  align: "start",
15
22
  class: "w-full pr-px",
16
23
  delay: 0,
17
24
  side: "left",
18
- triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0 -outline-offset-1"
25
+ triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 group-[.alert]:before:to-b-alert before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0 -outline-offset-1"
19
26
  }, {
20
27
  trigger: a(() => [
21
- n("div", f, [
22
- p(r(d), {
23
- class: "text-c-3 group-hover/info:text-c-1",
24
- icon: "Info",
28
+ m("div", g, [
29
+ d(r(f), {
30
+ class: u(
31
+ r(n)(e.item).value ? "text-orange brightness-[.9]" : "text-c-3 group-hover/info:text-c-1"
32
+ ),
33
+ icon: r(n)(e.item).value ? "Alert" : "Info",
25
34
  size: "sm",
26
35
  thickness: "1.5"
27
- })
36
+ }, null, 8, ["class", "icon"])
28
37
  ])
29
38
  ]),
30
39
  content: a(() => [
31
- n("div", u, [
32
- n("div", h, [
33
- e.item.type ? (t(), o("span", b, s(e.item.type), 1)) : i("", !0),
34
- e.item.format ? (t(), o("span", g, s(e.item.format), 1)) : i("", !0),
40
+ m("div", b, [
41
+ r(n)(e.item).value ? (t(), o("div", h, s(r(n)(e.item).value), 1)) : (t(), o("div", y, [
42
+ e.item.type ? (t(), o("span", v, s(e.item.type), 1)) : i("", !0),
43
+ e.item.format ? (t(), o("span", k, s(e.item.format), 1)) : i("", !0),
35
44
  e.item.minimum ? (t(), o("span", _, "min: " + s(e.item.minimum), 1)) : i("", !0),
36
- e.item.maximum ? (t(), o("span", y, "max: " + s(e.item.maximum), 1)) : i("", !0),
37
- e.item.default ? (t(), o("span", k, "default: " + s(e.item.default), 1)) : i("", !0)
38
- ]),
39
- e.item.description ? (t(), o("span", x, s(e.item.description), 1)) : i("", !0)
45
+ e.item.maximum ? (t(), o("span", w, "max: " + s(e.item.maximum), 1)) : i("", !0),
46
+ e.item.default ? (t(), o("span", x, "default: " + s(e.item.default), 1)) : i("", !0)
47
+ ])),
48
+ e.item.description && !r(n)(e.item).value ? (t(), o("span", C, s(e.item.description), 1)) : i("", !0)
40
49
  ])
41
50
  ]),
42
51
  _: 1
@@ -44,5 +53,5 @@ const f = { class: "bg-b-1 pl-1 pr-1.5 mr-0.25" }, u = { class: "grid gap-1.5 po
44
53
  }
45
54
  });
46
55
  export {
47
- N as default
56
+ V as default
48
57
  };
@@ -1,6 +1,6 @@
1
- import type { Collection } from '@scalar/oas-utils/entities/spec';
1
+ import type { Collection, Operation } from '@scalar/oas-utils/entities/spec';
2
2
  /**
3
3
  * Checks if the user gets the getting started state displayed
4
4
  */
5
- export declare const isGettingStarted: (activeWorkspaceCollections: Collection[], activeWorkspaceRequests: string[], requests: Record<string, any>) => boolean;
5
+ export declare const isGettingStarted: (activeWorkspaceCollections: Collection[], activeWorkspaceRequests: Operation["uid"][], requests: Record<string, any>) => boolean;
6
6
  //# sourceMappingURL=getting-started.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getting-started.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/helpers/getting-started.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE;;GAEG;AACH,eAAO,MAAM,gBAAgB,+BACC,UAAU,EAAE,2BACf,MAAM,EAAE,YACvB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAe9B,CAAA"}
1
+ {"version":3,"file":"getting-started.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/helpers/getting-started.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,gBAAgB,+BACC,UAAU,EAAE,2BACf,SAAS,CAAC,KAAK,CAAC,EAAE,YACjC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAY9B,CAAA"}
@@ -1,17 +1,15 @@
1
- const m = (u, e, i) => {
1
+ const q = (u, t, i) => {
2
2
  var n;
3
- const s = u.find(
4
- (g) => {
5
- var r;
6
- return ((r = g.info) == null ? void 0 : r.title) === "Drafts";
7
- }
8
- ), q = e.length === 1, t = s == null ? void 0 : s.requests.includes(
9
- e[0] ?? ""
10
- );
11
- if (!t) return !1;
12
- const f = ((n = i[(s == null ? void 0 : s.requests[0]) ?? ""]) == null ? void 0 : n.summary) !== "My First Request";
13
- return q && t && !f;
3
+ const s = u.find((m) => {
4
+ var r;
5
+ return ((r = m.info) == null ? void 0 : r.title) === "Drafts";
6
+ }), f = t.length === 1;
7
+ if (!t[0]) return !1;
8
+ const e = s == null ? void 0 : s.requests.includes(t[0]);
9
+ if (!e) return !1;
10
+ const g = ((n = i[(s == null ? void 0 : s.requests[0]) ?? ""]) == null ? void 0 : n.summary) !== "My First Request";
11
+ return f && e && !g;
14
12
  };
15
13
  export {
16
- m as isGettingStarted
14
+ q as isGettingStarted
17
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"AAshBA,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;cAMqC,MAAM;aAAO,MAAM;;;;;;;cAAnB,MAAM;aAAO,MAAM;;;;AA+xB1D,wBAOG"}
1
+ {"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"AAuhBA,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;cAMqC,MAAM;aAAO,MAAM;;;;;;;cAAnB,MAAM;aAAO,MAAM;;;;AA+xB1D,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestSidebar.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fdbf9a7e"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b7bf7c07"]]);
5
5
  export {
6
6
  f as default
7
7
  };