@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,50 +1,55 @@
1
- import { defineComponent as se, ref as b, watch as ie, onMounted as ue, onBeforeUnmount as me, openBlock as v, createBlock as k, withCtx as d, createVNode as u, createElementVNode as p, createElementBlock as $, Fragment as W, renderList as z, unref as s, normalizeClass as A, createTextVNode as B, toDisplayString as K, withDirectives as de, withModifiers as ce, createCommentVNode as F, vShow as ve, createSlots as fe } from "vue";
2
- import pe from "../../components/CodeInput/CodeInput.vue.js";
3
- import xe from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
4
- import be from "../../components/Sidebar/Sidebar.vue.js";
5
- import he from "../../components/Sidebar/SidebarButton.vue.js";
6
- import Ce from "../../components/Sidebar/SidebarList.vue.js";
7
- import G from "../../components/Sidebar/SidebarListElement.vue.js";
8
- import Ee from "../../components/ViewLayout/ViewLayout.vue.js";
9
- import ye from "../../components/ViewLayout/ViewLayoutContent.vue.js";
10
- import ke from "../../components/ViewLayout/ViewLayoutSection.vue.js";
1
+ import { defineComponent as ie, ref as h, watch as ue, onMounted as me, onBeforeUnmount as ce, openBlock as v, createBlock as g, withCtx as c, createVNode as u, createElementVNode as p, createElementBlock as $, Fragment as z, renderList as A, unref as s, normalizeClass as B, createTextVNode as K, toDisplayString as F, withDirectives as de, withModifiers as ve, createCommentVNode as G, vShow as fe, createSlots as pe } from "vue";
2
+ import { useModal as N, ScalarIcon as J, ScalarButton as xe, ScalarModal as be } from "@scalar/components";
3
+ import { LibraryIcon as he } from "@scalar/icons";
4
+ import { useToasts as Ce } from "@scalar/use-toasts";
5
+ import { useRouter as Ee, useRoute as ye } from "vue-router";
6
+ import ke from "../../components/CodeInput/CodeInput.vue.js";
7
+ import ge from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
8
+ import _e from "../../components/Sidebar/Sidebar.vue.js";
9
+ import we from "../../components/Sidebar/SidebarButton.vue.js";
10
+ import Ie from "../../components/Sidebar/SidebarList.vue.js";
11
+ import T from "../../components/Sidebar/SidebarListElement.vue.js";
12
+ import Se from "../../components/ViewLayout/ViewLayout.vue.js";
13
+ import Me from "../../components/ViewLayout/ViewLayoutContent.vue.js";
14
+ import Ve from "../../components/ViewLayout/ViewLayoutSection.vue.js";
11
15
  import { PathId as m } from "../../routes.js";
12
- import { useActiveEntities as ge } from "../../store/active-entities.js";
13
- import { useModal as N, ScalarIcon as J, ScalarButton as _e, ScalarModal as we } from "@scalar/components";
14
- import { LibraryIcon as Ie } from "@scalar/icons";
15
- import { useToasts as Se } from "@scalar/use-toasts";
16
- import { useRouter as Me, useRoute as Ve } from "vue-router";
17
- import $e from "./EnvironmentColorModal.vue.js";
18
- import Ne from "./EnvironmentModal.vue.js";
19
- import { useWorkspace as Oe } from "../../store/store.js";
20
- import { useSidebar as je } from "../../hooks/useSidebar.js";
21
- const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-center justify-center max-w-[14px]" }, an = /* @__PURE__ */ se({
16
+ import { useActiveEntities as $e } from "../../store/active-entities.js";
17
+ import Ne from "./EnvironmentColorModal.vue.js";
18
+ import Oe from "./EnvironmentModal.vue.js";
19
+ import { useWorkspace as je } from "../../store/store.js";
20
+ import { useSidebar as Re } from "../../hooks/useSidebar.js";
21
+ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-[14px] items-center justify-center" }, ln = /* @__PURE__ */ ie({
22
22
  __name: "Environment",
23
- setup(Ue) {
24
- const h = Me(), C = Ve(), { activeWorkspace: g, activeEnvironment: T, activeWorkspaceCollections: i } = ge(), { events: O, workspaceMutators: H, collectionMutators: E } = Oe(), { collapsedSidebarFolders: y, toggleSidebarFolder: _ } = je(), w = N(), I = N(), S = N(), j = b(null), r = b("default"), R = b(""), x = b(void 0), c = b(void 0), M = b(void 0), { toast: D } = Se(), P = (e) => JSON.parse(e);
25
- function L(e, o, n) {
23
+ setup(We) {
24
+ const C = Ee(), E = ye(), {
25
+ activeWorkspace: x,
26
+ activeEnvironment: O,
27
+ activeWorkspaceCollections: i,
28
+ activeEnvVariables: H
29
+ } = $e(), { events: j, workspaceMutators: P, collectionMutators: y } = je(), { collapsedSidebarFolders: k, toggleSidebarFolder: _ } = Re(), w = N(), I = N(), S = N(), R = h(null), r = h("default"), D = h(""), b = h(void 0), d = h(void 0), M = h(void 0), { toast: L } = Ce(), q = (e) => JSON.parse(e);
30
+ function U(e, o, n) {
26
31
  var t;
27
- e && (o.uid === n ? D(
32
+ e && (o.uid === n ? L(
28
33
  `Environment name already used in ${(t = o.info) == null ? void 0 : t.title}`,
29
34
  "error"
30
- ) : D("Environment name already used in another collection", "error"));
35
+ ) : L("Environment name already used in another collection", "error"));
31
36
  }
32
- function q(e) {
37
+ function Q(e) {
33
38
  i.value.some(
34
39
  (n) => {
35
40
  const t = Object.keys(
36
41
  n["x-scalar-environments"] || {}
37
42
  ).includes(e.name);
38
- return L(t, n, e.collectionId), t;
43
+ return U(t, n, e.collectionId), t;
39
44
  }
40
- ) || (e.collectionId && (E.addEnvironment(
45
+ ) || (e.collectionId && (y.addEnvironment(
41
46
  e.name,
42
47
  {
43
48
  variables: {},
44
49
  color: e.color
45
50
  },
46
51
  e.collectionId
47
- ), y[e.collectionId] || _(e.collectionId), h.push({
52
+ ), k[e.collectionId] || _(e.collectionId), C.push({
48
53
  name: "environment.collection",
49
54
  params: {
50
55
  [m.Collection]: e.collectionId,
@@ -52,13 +57,13 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
52
57
  }
53
58
  })), I.hide());
54
59
  }
55
- function Q(e) {
60
+ function X(e) {
56
61
  var o, n;
57
- if (T) {
58
- const t = P(e);
62
+ if (O) {
63
+ const t = q(e);
59
64
  if (r.value === "default")
60
- H.edit(
61
- ((o = g.value) == null ? void 0 : o.uid) ?? "",
65
+ P.edit(
66
+ (o = x.value) == null ? void 0 : o.uid,
62
67
  "environments",
63
68
  t
64
69
  );
@@ -71,7 +76,7 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
71
76
  );
72
77
  if ((n = a == null ? void 0 : a["x-scalar-environments"]) != null && n[r.value ?? ""]) {
73
78
  const l = a["x-scalar-environments"][r.value ?? ""];
74
- l && (l.variables = t, E.edit(
79
+ l && (l.variables = t, y.edit(
75
80
  a.uid,
76
81
  "x-scalar-environments",
77
82
  a["x-scalar-environments"]
@@ -81,19 +86,19 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
81
86
  }
82
87
  }
83
88
  const V = (e) => {
84
- x.value = e, I.show();
85
- }, X = (e, o) => {
86
- c.value = e, x.value = o, M.value = e, S.show();
87
- }, Y = (e) => {
89
+ b.value = e, I.show();
90
+ }, Y = (e, o) => {
91
+ d.value = e, b.value = o, M.value = e, S.show();
92
+ }, Z = (e) => {
88
93
  var o, n, t;
89
- j.value = e, R.value = ((t = (n = (o = i.value.find(
94
+ R.value = e, D.value = ((t = (n = (o = i.value.find(
90
95
  (a) => {
91
96
  var l;
92
97
  return (l = a["x-scalar-environments"]) == null ? void 0 : l[e];
93
98
  }
94
99
  )) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "", w.show();
95
- }, Z = (e) => {
96
- const o = j.value;
100
+ }, ee = (e) => {
101
+ const o = R.value;
97
102
  typeof o == "string" && (i.value.some(
98
103
  (t) => {
99
104
  var a;
@@ -101,16 +106,16 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
101
106
  }
102
107
  ) && i.value.forEach((t) => {
103
108
  var a;
104
- (a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, E.edit(
109
+ (a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, y.edit(
105
110
  t.uid,
106
111
  "x-scalar-environments",
107
112
  t["x-scalar-environments"]
108
113
  ));
109
114
  }), w.hide());
110
115
  };
111
- function ee(e) {
116
+ function ne(e) {
112
117
  i.value.forEach((n) => {
113
- E.removeEnvironment(e, n.uid);
118
+ y.removeEnvironment(e, n.uid);
114
119
  });
115
120
  const o = i.value.flatMap(
116
121
  (n) => Object.keys(n["x-scalar-environments"] || {})
@@ -123,22 +128,22 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
123
128
  n
124
129
  )
125
130
  );
126
- r.value = n, h.push({
131
+ r.value = n, C.push({
127
132
  name: "environment.collection",
128
133
  params: {
129
134
  collectionId: t == null ? void 0 : t.uid,
130
135
  environmentId: n
131
136
  }
132
- }), t && !y[t.uid] && _(t.uid);
137
+ }), t && !k[t.uid] && _(t.uid);
133
138
  } else
134
- r.value = "default", h.push({
139
+ r.value = "default", C.push({
135
140
  name: "environment",
136
141
  params: { environment: "default" }
137
142
  });
138
143
  }
139
- const ne = () => r.value === "default" ? "Global Environment" : r.value, te = () => {
144
+ const te = () => r.value === "default" ? "Global Environment" : r.value, oe = () => {
140
145
  var e, o, n, t;
141
- return r.value === "default" ? JSON.stringify((e = g.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
146
+ return r.value === "default" ? JSON.stringify((e = x.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
142
147
  (t = (n = (o = i.value.find(
143
148
  (a) => {
144
149
  var l;
@@ -148,72 +153,72 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
148
153
  null,
149
154
  2
150
155
  );
151
- }, oe = (e) => y[e], U = (e) => {
152
- e != null && e.createNew && C.name === "environment" && V();
156
+ }, ae = (e) => k[e], W = (e) => {
157
+ e != null && e.createNew && E.name === "environment" && V();
153
158
  };
154
- ie(
155
- () => [C.params[m.Collection], C.params[m.Environment]],
159
+ ue(
160
+ () => [E.params[m.Collection], E.params[m.Environment]],
156
161
  ([e, o]) => {
157
162
  e ? r.value = o : r.value = "default";
158
163
  }
159
- ), ue(() => {
160
- r.value = C.params[m.Environment] || "default", O.hotKeys.on(U);
161
- const e = C.params[m.Collection];
162
- e && !y[e] && _(e);
163
- }), me(() => O.hotKeys.off(U));
164
- const ae = (e, o, n) => {
164
+ ), me(() => {
165
+ r.value = E.params[m.Environment] || "default", j.hotKeys.on(W);
166
+ const e = E.params[m.Collection];
167
+ e && !k[e] && _(e);
168
+ }), ce(() => j.hotKeys.off(W));
169
+ const le = (e, o, n) => {
165
170
  var a, l;
166
171
  const t = n ? {
167
172
  name: "environment.collection",
168
173
  params: {
169
- [m.Workspace]: (a = g.value) == null ? void 0 : a.uid,
174
+ [m.Workspace]: (a = x.value) == null ? void 0 : a.uid,
170
175
  [m.Collection]: n,
171
176
  [m.Environment]: o
172
177
  }
173
178
  } : {
174
179
  name: "environment.default",
175
180
  params: {
176
- [m.Workspace]: (l = g.value) == null ? void 0 : l.uid,
181
+ [m.Workspace]: (l = x.value) == null ? void 0 : l.uid,
177
182
  [m.Environment]: o
178
183
  }
179
184
  };
180
- e.metaKey ? window.open(h.resolve(t).href, "_blank") : h.push(t);
185
+ e.metaKey ? window.open(C.resolve(t).href, "_blank") : C.push(t);
181
186
  };
182
- function le() {
183
- c.value = void 0, x.value = void 0, M.value = void 0, S.hide();
187
+ function re() {
188
+ d.value = void 0, b.value = void 0, M.value = void 0, S.hide();
184
189
  }
185
- function re(e) {
190
+ function se(e) {
186
191
  i.value.some(
187
192
  (n) => {
188
193
  const t = Object.keys(
189
194
  n["x-scalar-environments"] || {}
190
195
  ).includes(e);
191
- return L(
196
+ return U(
192
197
  t,
193
198
  n,
194
- x.value
199
+ b.value
195
200
  ), t;
196
201
  }
197
- ) || (e && c.value !== "default" && i.value.forEach((n) => {
202
+ ) || (e && d.value !== "default" && i.value.forEach((n) => {
198
203
  var t;
199
- if ((t = n["x-scalar-environments"]) != null && t[c.value ?? ""]) {
200
- const a = n["x-scalar-environments"][c.value ?? ""];
201
- a && (delete n["x-scalar-environments"][c.value ?? ""], n["x-scalar-environments"][e] = a, E.edit(
204
+ if ((t = n["x-scalar-environments"]) != null && t[d.value ?? ""]) {
205
+ const a = n["x-scalar-environments"][d.value ?? ""];
206
+ a && (delete n["x-scalar-environments"][d.value ?? ""], n["x-scalar-environments"][e] = a, y.edit(
202
207
  n.uid,
203
208
  "x-scalar-environments",
204
209
  n["x-scalar-environments"]
205
210
  ));
206
211
  }
207
- }), e && r.value === c.value && (r.value = e), c.value = void 0, x.value = void 0, M.value = void 0, S.hide());
212
+ }), e && r.value === d.value && (r.value = e), d.value = void 0, b.value = void 0, M.value = void 0, S.hide());
208
213
  }
209
- return (e, o) => (v(), k(Ee, null, {
210
- default: d(() => [
211
- u(be, { title: "Collections" }, {
212
- content: d(() => [
213
- p("div", Re, [
214
- u(Ce, null, {
215
- default: d(() => [
216
- (v(), k(G, {
214
+ return (e, o) => (v(), g(Se, null, {
215
+ default: c(() => [
216
+ u(_e, { title: "Collections" }, {
217
+ content: c(() => [
218
+ p("div", De, [
219
+ u(Ie, null, {
220
+ default: c(() => [
221
+ (v(), g(T, {
217
222
  key: "default",
218
223
  class: "text-xs",
219
224
  isCopyable: !1,
@@ -225,42 +230,42 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
225
230
  isDefault: !0
226
231
  }
227
232
  })),
228
- (v(!0), $(W, null, z(s(i), (n) => {
233
+ (v(!0), $(z, null, A(s(i), (n) => {
229
234
  var t;
230
235
  return v(), $("li", {
231
236
  key: n.uid,
232
- class: "flex flex-col gap-1/2"
237
+ class: "gap-1/2 flex flex-col"
233
238
  }, [
234
239
  p("button", {
235
- class: "flex font-medium gap-1.5 group items-center p-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
240
+ class: "hover:bg-b-2 group flex w-full items-center gap-1.5 break-words rounded p-1.5 text-left text-sm font-medium",
236
241
  type: "button",
237
242
  onClick: (a) => s(_)(n.uid)
238
243
  }, [
239
- p("span", Le, [
240
- u(s(Ie), {
241
- class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
244
+ p("span", Ue, [
245
+ u(s(he), {
246
+ class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
242
247
  src: n["x-scalar-icon"] || "interface-content-folder"
243
248
  }, null, 8, ["src"]),
244
249
  p("div", {
245
- class: A({
246
- "rotate-90": s(y)[n.uid]
250
+ class: B({
251
+ "rotate-90": s(k)[n.uid]
247
252
  })
248
253
  }, [
249
254
  u(s(J), {
250
- class: "text-c-3 hidden text-sm group-hover:block hover:text-c-1",
255
+ class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
251
256
  icon: "ChevronRight",
252
257
  size: "md"
253
258
  })
254
259
  ], 2)
255
260
  ]),
256
- B(" " + K(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
257
- ], 8, De),
261
+ K(" " + F(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
262
+ ], 8, Le),
258
263
  de(p("div", {
259
- class: A({
260
- "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative": Object.keys(n["x-scalar-environments"] || {}).length > 0
264
+ class: B({
265
+ "before:bg-border before:z-1 relative mb-[.5px] before:pointer-events-none before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(n["x-scalar-environments"] || {}).length > 0
261
266
  })
262
267
  }, [
263
- (v(!0), $(W, null, z(n["x-scalar-environments"], (a, l) => (v(), k(G, {
268
+ (v(!0), $(z, null, A(n["x-scalar-environments"], (a, l) => (v(), g(T, {
264
269
  key: l,
265
270
  class: "text-xs [&>a]:pl-5",
266
271
  collectionId: n.uid,
@@ -275,18 +280,18 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
275
280
  isDefault: !1
276
281
  },
277
282
  warningMessage: "Are you sure you want to delete this environment?",
278
- onClick: ce((f) => ae(f, l, n.uid), ["prevent"]),
279
- onColorModal: (f) => Y(l),
280
- onDelete: (f) => ee(l),
281
- onRename: (f) => X(l, n.uid)
283
+ onClick: ve((f) => le(f, l, n.uid), ["prevent"]),
284
+ onColorModal: (f) => Z(l),
285
+ onDelete: (f) => ne(l),
286
+ onRename: (f) => Y(l, n.uid)
282
287
  }, null, 8, ["collectionId", "variable", "onClick", "onColorModal", "onDelete", "onRename"]))), 128)),
283
- Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(), k(s(_e), {
288
+ Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(), g(s(xe), {
284
289
  key: 0,
285
- class: "flex gap-1.5 h-8 text-c-1 pl-6 py-0 justify-start text-xs w-full hover:bg-b-2",
290
+ class: "text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
286
291
  variant: "ghost",
287
292
  onClick: (a) => V(n.uid)
288
293
  }, {
289
- default: d(() => [
294
+ default: c(() => [
290
295
  u(s(J), {
291
296
  icon: "Add",
292
297
  size: "sm"
@@ -294,9 +299,9 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
294
299
  o[2] || (o[2] = p("span", null, "Add Environment", -1))
295
300
  ]),
296
301
  _: 2
297
- }, 1032, ["onClick"])) : F("", !0)
302
+ }, 1032, ["onClick"])) : G("", !0)
298
303
  ], 2), [
299
- [ve, oe(n.uid)]
304
+ [fe, ae(n.uid)]
300
305
  ])
301
306
  ]);
302
307
  }), 128))
@@ -305,40 +310,43 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
305
310
  })
306
311
  ])
307
312
  ]),
308
- button: d(() => [
309
- u(he, {
313
+ button: c(() => [
314
+ u(we, {
310
315
  click: V,
311
316
  hotkey: "N"
312
317
  }, {
313
- title: d(() => o[3] || (o[3] = [
314
- B("Add Environment")
318
+ title: c(() => o[3] || (o[3] = [
319
+ K(" Add Environment ")
315
320
  ])),
316
321
  _: 1
317
322
  })
318
323
  ]),
319
324
  _: 1
320
325
  }),
321
- u(ye, { class: "flex-1" }, {
322
- default: d(() => [
323
- u(ke, null, fe({
324
- default: d(() => [
325
- r.value ? (v(), k(pe, {
326
+ u(Me, { class: "flex-1" }, {
327
+ default: c(() => [
328
+ u(Ve, null, pe({
329
+ default: c(() => [
330
+ r.value && s(x) ? (v(), g(ke, {
326
331
  key: 0,
327
- class: "border-t pl-px pr-2 md:px-4 py-2",
332
+ class: "border-t py-2 pl-px pr-2 md:px-4",
333
+ envVariables: s(H),
334
+ environment: s(O),
328
335
  isCopyable: "",
329
336
  language: "json",
330
337
  lineNumbers: "",
331
338
  lint: "",
332
- modelValue: te(),
333
- "onUpdate:modelValue": Q
334
- }, null, 8, ["modelValue"])) : F("", !0)
339
+ modelValue: oe(),
340
+ workspace: s(x),
341
+ "onUpdate:modelValue": X
342
+ }, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : G("", !0)
335
343
  ]),
336
344
  _: 2
337
345
  }, [
338
346
  r.value ? {
339
347
  name: "title",
340
- fn: d(() => [
341
- p("span", null, K(ne()), 1)
348
+ fn: c(() => [
349
+ p("span", null, F(te()), 1)
342
350
  ]),
343
351
  key: "0"
344
352
  } : void 0
@@ -346,29 +354,29 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
346
354
  ]),
347
355
  _: 1
348
356
  }),
349
- u($e, {
350
- selectedColor: R.value,
357
+ u(Ne, {
358
+ selectedColor: D.value,
351
359
  state: s(w),
352
360
  onCancel: o[0] || (o[0] = (n) => s(w).hide()),
353
- onSubmit: Z
361
+ onSubmit: ee
354
362
  }, null, 8, ["selectedColor", "state"]),
355
- u(Ne, {
363
+ u(Oe, {
356
364
  activeWorkspaceCollections: s(i),
357
- collectionId: x.value,
365
+ collectionId: b.value,
358
366
  state: s(I),
359
367
  onCancel: o[1] || (o[1] = (n) => s(I).hide()),
360
- onSubmit: q
368
+ onSubmit: Q
361
369
  }, null, 8, ["activeWorkspaceCollections", "collectionId", "state"]),
362
- u(s(we), {
370
+ u(s(be), {
363
371
  size: "xxs",
364
372
  state: s(S),
365
- title: `Edit ${c.value}`
373
+ title: `Edit ${d.value}`
366
374
  }, {
367
- default: d(() => [
368
- u(xe, {
375
+ default: c(() => [
376
+ u(ge, {
369
377
  name: M.value ?? "",
370
- onClose: le,
371
- onEdit: re
378
+ onClose: re,
379
+ onEdit: se
372
380
  }, null, 8, ["name"])
373
381
  ]),
374
382
  _: 1
@@ -379,5 +387,5 @@ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-
379
387
  }
380
388
  });
381
389
  export {
382
- an as default
390
+ ln as default
383
391
  };
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
10
10
  name: string;
11
11
  color: string;
12
12
  type: string;
13
- collectionId: string | undefined;
13
+ collectionId: Collection["uid"] | undefined;
14
14
  }) => any;
15
15
  cancel: () => any;
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
18
18
  name: string;
19
19
  color: string;
20
20
  type: string;
21
- collectionId: string | undefined;
21
+ collectionId: Collection["uid"] | undefined;
22
22
  }) => any;
23
23
  onCancel?: () => any;
24
24
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentModal.vue"],"names":[],"mappings":"AA8JA,OAAO,EACL,KAAK,UAAU,EAMhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,0BAA0B,EAAE,UAAU,EAAE,CAAA;IACxC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC,CAAC;;;cAQU,MAAM;eACL,MAAM;cACP,MAAM;sBACE,MAAM,GAAG,SAAS;;;;;cAH1B,MAAM;eACL,MAAM;cACP,MAAM;sBACE,MAAM,GAAG,SAAS;;;;AAkStC,wBAQG"}
1
+ {"version":3,"file":"EnvironmentModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentModal.vue"],"names":[],"mappings":"AA2JA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAYjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,0BAA0B,EAAE,UAAU,EAAE,CAAA;IACxC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC,CAAC;;;cAQU,MAAM;eACL,MAAM;cACP,MAAM;sBACE,UAAU,CAAC,KAAK,CAAC,GAAG,SAAS;;;;;cAHrC,MAAM;eACL,MAAM;cACP,MAAM;sBACE,UAAU,CAAC,KAAK,CAAC,GAAG,SAAS;;;;AAkSjD,wBAQG"}
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as _, ref as u, computed as h, watch as w, openBlock as m, createBlock as v, unref as i, withCtx as a, createVNode as s, createElementVNode as p, normalizeClass as I, toDisplayString as N, createTextVNode as T } from "vue";
2
- import $ from "../../components/CommandPalette/CommandActionForm.vue.js";
3
- import z from "../../components/CommandPalette/CommandActionInput.vue.js";
4
- import { ScalarModal as B, ScalarListbox as D, ScalarButton as C, ScalarIcon as U } from "@scalar/components";
5
- import { useToasts as W } from "@scalar/use-toasts";
2
+ import { ScalarModal as $, ScalarListbox as z, ScalarButton as C, ScalarIcon as B } from "@scalar/components";
3
+ import { useToasts as D } from "@scalar/use-toasts";
4
+ import U from "../../components/CommandPalette/CommandActionForm.vue.js";
5
+ import W from "../../components/CommandPalette/CommandActionInput.vue.js";
6
6
  import j from "./EnvironmentColors.vue.js";
7
7
  import { useWorkspace as M } from "../../store/store.js";
8
- const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
8
+ const P = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
9
9
  __name: "EnvironmentModal",
10
10
  props: {
11
11
  state: {},
@@ -27,7 +27,7 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
27
27
  })
28
28
  ]), l = u(
29
29
  d.value.find((t) => t.id === n.collectionId)
30
- ), { toast: S } = W(), V = (t) => {
30
+ ), { toast: S } = D(), V = (t) => {
31
31
  c.value = t;
32
32
  };
33
33
  w(
@@ -53,19 +53,19 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
53
53
  }, y = () => {
54
54
  n.state.hide(), E.commandPalette.emit({ commandName: "Create Collection" });
55
55
  };
56
- return (t, e) => (m(), v(i(B), {
56
+ return (t, e) => (m(), v(i($), {
57
57
  bodyClass: "border-t-0 rounded-t-lg",
58
58
  size: "xs",
59
59
  state: t.state
60
60
  }, {
61
61
  default: a(() => [
62
- s($, {
62
+ s(U, {
63
63
  disabled: !l.value,
64
64
  onCancel: e[2] || (e[2] = (o) => f("cancel")),
65
65
  onSubmit: k
66
66
  }, {
67
67
  options: a(() => [
68
- s(i(D), {
68
+ s(i(z), {
69
69
  modelValue: l.value,
70
70
  "onUpdate:modelValue": e[1] || (e[1] = (o) => l.value = o),
71
71
  options: d.value,
@@ -74,14 +74,14 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
74
74
  default: a(() => [
75
75
  d.value.length > 0 ? (m(), v(i(C), {
76
76
  key: 0,
77
- class: "justify-between p-2 max-h-8 gap-1 text-xs hover:bg-b-2 w-fit",
77
+ class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
78
78
  variant: "outlined"
79
79
  }, {
80
80
  default: a(() => [
81
81
  p("span", {
82
82
  class: I(l.value ? "text-c-1" : "text-c-3")
83
83
  }, N(l.value ? l.value.label : "Select Collection"), 3),
84
- s(i(U), {
84
+ s(i(B), {
85
85
  class: "text-c-3",
86
86
  icon: "ChevronDown",
87
87
  size: "xs"
@@ -90,7 +90,7 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
90
90
  _: 1
91
91
  })) : (m(), v(i(C), {
92
92
  key: 1,
93
- class: "justify-between p-2 max-h-8 gap-1 text-xs hover:bg-b-2",
93
+ class: "hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",
94
94
  variant: "outlined",
95
95
  onClick: y
96
96
  }, {
@@ -104,7 +104,7 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
104
104
  }, 8, ["modelValue", "options"])
105
105
  ]),
106
106
  submit: a(() => e[4] || (e[4] = [
107
- T("Add Environment")
107
+ T(" Add Environment ")
108
108
  ])),
109
109
  default: a(() => [
110
110
  p("div", P, [
@@ -114,10 +114,10 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
114
114
  selector: "",
115
115
  onSelect: V
116
116
  }, null, 8, ["activeColor"]),
117
- s(z, {
117
+ s(W, {
118
118
  modelValue: r.value,
119
119
  "onUpdate:modelValue": e[0] || (e[0] = (o) => r.value = o),
120
- class: "!p-0 peer-has-[.color-selector]:hidden -mt-[.5px]",
120
+ class: "-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",
121
121
  placeholder: "Environment name"
122
122
  }, null, 8, ["modelValue"])
123
123
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cAqT8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA+ajD,wBAMG"}
1
+ {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cAuU8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA0bjD,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Request.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-92a497c5"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-97482b69"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };