@scalar/api-client 2.1.45 → 2.1.47

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 (192) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +66 -58
  5. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  6. package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarServer.vue.js +40 -39
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  11. package/dist/components/CodeInput/CodeInput.vue2.js +7 -7
  12. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  13. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +32 -26
  14. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  15. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -9
  16. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
  18. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +15 -10
  19. package/dist/components/ContextBar.vue.d.ts +1 -1
  20. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  21. package/dist/components/ContextBar.vue.js +2 -2
  22. package/dist/components/ContextBar.vue2.js +30 -19
  23. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  24. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  25. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  26. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  27. package/dist/components/DataTable/DataTableInput.vue2.js +10 -10
  28. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  29. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -18
  30. package/dist/components/Form/Form.vue.js +15 -15
  31. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  32. package/dist/components/ImportCollection/DropEventListener.vue.d.ts +2 -2
  33. package/dist/components/ImportCollection/DropEventListener.vue.js +6 -6
  34. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
  35. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -21
  36. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -0
  37. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +87 -74
  39. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
  41. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +2 -2
  42. package/dist/components/ImportCollection/PasteEventListener.vue.js +5 -5
  43. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +2 -2
  44. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
  45. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +10 -5
  46. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  47. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +43 -33
  48. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -0
  49. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  50. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +31 -21
  51. package/dist/components/Search/useSearch.d.ts +2 -0
  52. package/dist/components/Search/useSearch.d.ts.map +1 -1
  53. package/dist/components/Search/useSearch.js +25 -24
  54. package/dist/components/SideNav/DownloadAppButton.vue.d.ts +3 -0
  55. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -0
  56. package/dist/components/SideNav/DownloadAppButton.vue.js +7 -0
  57. package/dist/components/SideNav/DownloadAppButton.vue2.js +33 -0
  58. package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
  59. package/dist/components/SideNav/SideHelp.vue.js +55 -53
  60. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  61. package/dist/components/SideNav/SideNav.vue.js +82 -5
  62. package/dist/components/SideNav/SideNav.vue2.js +2 -72
  63. package/dist/components/{SubpageHeader.vue.d.ts → SideNav/SideNavGroup.vue.d.ts} +3 -3
  64. package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -0
  65. package/dist/components/SideNav/SideNavGroup.vue.js +16 -0
  66. package/dist/components/SideNav/SideNavGroup.vue2.js +4 -0
  67. package/dist/components/SideNav/SideNavLink.vue.d.ts +5 -5
  68. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  69. package/dist/components/SideNav/SideNavLink.vue.js +31 -34
  70. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +25 -0
  71. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -0
  72. package/dist/components/SideNav/SideNavRouterLink.vue.js +29 -0
  73. package/dist/components/SideNav/SideNavRouterLink.vue2.js +4 -0
  74. package/dist/components/Sidebar/SidebarButton.vue.d.ts +1 -4
  75. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  76. package/dist/components/Sidebar/SidebarButton.vue.js +17 -17
  77. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  78. package/dist/components/Sidebar/SidebarToggle.vue.js +16 -15
  79. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  80. package/dist/components/TopNav/TopNav.vue.js +2 -2
  81. package/dist/components/TopNav/TopNav.vue2.js +14 -14
  82. package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
  83. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  84. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +31 -31
  85. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  86. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +13 -21
  87. package/dist/hooks/index.d.ts +2 -1
  88. package/dist/hooks/index.d.ts.map +1 -1
  89. package/dist/hooks/index.js +6 -4
  90. package/dist/hooks/useLayout.d.ts +13 -0
  91. package/dist/hooks/useLayout.d.ts.map +1 -0
  92. package/dist/hooks/useLayout.js +7 -0
  93. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  94. package/dist/layouts/App/ApiClientApp.vue.js +37 -37
  95. package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
  96. package/dist/layouts/App/MainLayout.vue.js +21 -13
  97. package/dist/layouts/App/create-api-client-app.d.ts +28 -28
  98. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  99. package/dist/layouts/App/create-api-client-app.js +10 -8
  100. package/dist/layouts/Modal/ApiClientModal.vue.d.ts +3 -1
  101. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  102. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  103. package/dist/layouts/Modal/ApiClientModal.vue2.js +37 -25
  104. package/dist/layouts/Modal/create-api-client-modal.d.ts +56 -56
  105. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  106. package/dist/layouts/Modal/create-api-client-modal.js +8 -7
  107. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  108. package/dist/layouts/Web/ApiClientWeb.vue.js +30 -30
  109. package/dist/layouts/Web/create-api-client-web.d.ts +28 -28
  110. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  111. package/dist/layouts/Web/create-api-client-web.js +9 -7
  112. package/dist/libs/create-client.d.ts +35 -29
  113. package/dist/libs/create-client.d.ts.map +1 -1
  114. package/dist/libs/create-client.js +55 -42
  115. package/dist/libs/hot-keys.d.ts +1 -1
  116. package/dist/router.d.ts +4 -41
  117. package/dist/router.d.ts.map +1 -1
  118. package/dist/router.js +18 -149
  119. package/dist/routes.d.ts +150 -0
  120. package/dist/routes.d.ts.map +1 -0
  121. package/dist/routes.js +182 -0
  122. package/dist/store/collections.d.ts +4 -4
  123. package/dist/store/cookies.d.ts +4 -4
  124. package/dist/store/request-example.d.ts +4 -4
  125. package/dist/store/requests.d.ts +4 -4
  126. package/dist/store/router-params.js +1 -1
  127. package/dist/store/security-schemes.d.ts +4 -4
  128. package/dist/store/store.d.ts +56 -56
  129. package/dist/store/store.d.ts.map +1 -1
  130. package/dist/store/store.js +90 -90
  131. package/dist/store/tags.d.ts +4 -4
  132. package/dist/store/workspace.d.ts +4 -4
  133. package/dist/style.css +1 -1
  134. package/dist/views/Cookies/CookieRaw.vue.js +10 -10
  135. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  136. package/dist/views/Cookies/Cookies.vue2.js +52 -53
  137. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  138. package/dist/views/Environment/Environment.vue2.js +79 -80
  139. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  140. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +20 -15
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  142. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +146 -108
  143. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -52
  145. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  146. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  147. package/dist/views/Request/RequestSection/RequestSection.vue2.js +102 -97
  148. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  149. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  150. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  151. package/dist/views/Request/RequestSection/RequestTable.vue2.js +44 -40
  152. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  153. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  154. package/dist/views/Request/RequestSidebar.vue2.js +152 -134
  155. package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
  156. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  157. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  158. package/dist/views/Request/RequestSidebarItem.vue2.js +129 -115
  159. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -6
  160. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  161. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  162. package/dist/views/Request/RequestSubpageHeader.vue2.js +36 -34
  163. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  164. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
  165. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  166. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +13 -10
  167. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  168. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  169. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -2
  170. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
  171. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
  172. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  173. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +3 -3
  174. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +32 -33
  175. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  176. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +61 -55
  177. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  178. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +32 -25
  179. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  180. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  181. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +102 -70
  182. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  183. package/dist/views/Request/components/WorkspaceDropdown.vue.js +60 -50
  184. package/dist/views/Request/types/sidebar-item.d.ts +2 -1
  185. package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
  186. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  187. package/dist/views/Servers/Servers.vue2.js +12 -7
  188. package/package.json +10 -8
  189. package/dist/components/SubpageHeader.vue.d.ts.map +0 -1
  190. package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
  191. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -7
  192. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
@@ -1,27 +1,27 @@
1
- import { defineComponent as P, ref as c, computed as x, openBlock as C, createBlock as h, withCtx as u, createElementVNode as f, createVNode as i, unref as n, normalizeClass as V, toDisplayString as q, createCommentVNode as W, createTextVNode as j } from "vue";
2
- import E from "../HttpMethod/HttpMethod.vue.js";
1
+ import { defineComponent as W, ref as c, computed as x, openBlock as C, createBlock as h, withCtx as u, createElementVNode as f, createVNode as i, unref as n, normalizeClass as q, toDisplayString as V, createCommentVNode as j, createTextVNode as E } from "vue";
2
+ import H from "../HttpMethod/HttpMethod.vue.js";
3
3
  import { ScalarListbox as D, ScalarButton as k, ScalarIcon as w } from "@scalar/components";
4
- import { useToasts as H } from "@scalar/use-toasts";
5
- import { useRouter as I } from "vue-router";
4
+ import { useToasts as I } from "@scalar/use-toasts";
5
+ import { useRouter as $ } from "vue-router";
6
6
  import L from "./CommandActionForm.vue.js";
7
7
  import O from "./CommandActionInput.vue.js";
8
8
  import { isHTTPMethod as A } from "../HttpMethod/helpers.js";
9
9
  import { useWorkspace as F } from "../../store/store.js";
10
- const G = { class: "flex gap-2" }, le = /* @__PURE__ */ P({
10
+ const G = { class: "flex gap-2" }, le = /* @__PURE__ */ W({
11
11
  __name: "CommandPaletteRequest",
12
12
  props: {
13
13
  metaData: {}
14
14
  },
15
15
  emits: ["close", "back"],
16
16
  setup(S, { emit: _ }) {
17
- const r = S, b = _, { push: M } = I(), { toast: N } = H(), {
17
+ const r = S, b = _, { push: M } = $(), { toast: N } = I(), {
18
18
  activeCollection: R,
19
19
  activeWorkspace: U,
20
20
  activeWorkspaceCollections: g,
21
21
  requestMutators: T,
22
22
  activeRequest: y,
23
- tags: $
24
- } = F(), o = c(""), d = c("get"), v = x(
23
+ tags: z
24
+ } = F(), o = c(""), d = c("get"), p = x(
25
25
  () => g.value.map((t) => {
26
26
  var e;
27
27
  return {
@@ -34,23 +34,23 @@ const G = { class: "flex gap-2" }, le = /* @__PURE__ */ P({
34
34
  (t) => {
35
35
  var e;
36
36
  return t.uid === ((e = l.value) == null ? void 0 : e.id) ? t.tags.flatMap((a) => {
37
- const p = $[a];
38
- return p ? [
37
+ const v = z[a];
38
+ return v ? [
39
39
  {
40
- id: p.uid,
41
- label: p.name
40
+ id: v.uid,
41
+ label: v.name
42
42
  }
43
43
  ] : [];
44
44
  }) : [];
45
45
  }
46
46
  )
47
47
  ), l = c(
48
- r.metaData ? v.value.find(
48
+ r.metaData ? p.value.find(
49
49
  (t) => {
50
50
  var e, a;
51
51
  return t.id === ((e = r.metaData) == null ? void 0 : e.itemUid) || t.id === ((a = r.metaData) == null ? void 0 : a.parentUid);
52
52
  }
53
- ) : v.value.find(
53
+ ) : p.value.find(
54
54
  (t) => {
55
55
  var e;
56
56
  return t.id === ((e = R.value) == null ? void 0 : e.uid);
@@ -64,7 +64,7 @@ const G = { class: "flex gap-2" }, le = /* @__PURE__ */ P({
64
64
  var e, a;
65
65
  return t.label === ((a = (e = y.value) == null ? void 0 : e.tags) == null ? void 0 : a[0]);
66
66
  })
67
- ), z = (t) => d.value = t, B = () => {
67
+ ), B = (t) => d.value = t, P = () => {
68
68
  var e;
69
69
  if (!o.value.trim()) {
70
70
  N("Please enter a name before creating a request.", "error");
@@ -83,24 +83,30 @@ const G = { class: "flex gap-2" }, le = /* @__PURE__ */ P({
83
83
  },
84
84
  l.value.id
85
85
  );
86
- t && M(`/workspace/${U.value.uid}/request/${t.uid}`), b("close");
86
+ t && M({
87
+ name: "request",
88
+ params: {
89
+ workspace: U.value.uid,
90
+ request: t.uid
91
+ }
92
+ }), b("close");
87
93
  };
88
94
  return (t, e) => (C(), h(L, {
89
95
  disabled: !o.value.trim(),
90
- onSubmit: B
96
+ onSubmit: P
91
97
  }, {
92
98
  options: u(() => [
93
99
  f("div", G, [
94
- i(E, {
100
+ i(H, {
95
101
  isEditable: !0,
96
102
  isSquare: "",
97
103
  method: d.value,
98
- onChange: z
104
+ onChange: B
99
105
  }, null, 8, ["method"]),
100
106
  i(n(D), {
101
107
  modelValue: l.value,
102
108
  "onUpdate:modelValue": e[2] || (e[2] = (a) => l.value = a),
103
- options: v.value
109
+ options: p.value
104
110
  }, {
105
111
  default: u(() => [
106
112
  i(n(k), {
@@ -109,8 +115,8 @@ const G = { class: "flex gap-2" }, le = /* @__PURE__ */ P({
109
115
  }, {
110
116
  default: u(() => [
111
117
  f("span", {
112
- class: V(l.value ? "text-c-1" : "text-c-3")
113
- }, q(l.value ? l.value.label : "Select Collection"), 3),
118
+ class: q(l.value ? "text-c-1" : "text-c-3")
119
+ }, V(l.value ? l.value.label : "Select Collection"), 3),
114
120
  i(n(w), {
115
121
  class: "text-c-3",
116
122
  icon: "ChevronDown",
@@ -135,8 +141,8 @@ const G = { class: "flex gap-2" }, le = /* @__PURE__ */ P({
135
141
  }, {
136
142
  default: u(() => [
137
143
  f("span", {
138
- class: V(s.value ? "text-c-1" : "text-c-3")
139
- }, q(s.value ? s.value.label : "Select Tag"), 3),
144
+ class: q(s.value ? "text-c-1" : "text-c-3")
145
+ }, V(s.value ? s.value.label : "Select Tag"), 3),
140
146
  i(n(w), {
141
147
  class: "text-c-3",
142
148
  icon: "ChevronDown",
@@ -147,11 +153,11 @@ const G = { class: "flex gap-2" }, le = /* @__PURE__ */ P({
147
153
  })
148
154
  ]),
149
155
  _: 1
150
- }, 8, ["modelValue", "options"])) : W("", !0)
156
+ }, 8, ["modelValue", "options"])) : j("", !0)
151
157
  ])
152
158
  ]),
153
159
  submit: u(() => e[4] || (e[4] = [
154
- j("Create Request")
160
+ E("Create Request")
155
161
  ])),
156
162
  default: u(() => [
157
163
  i(O, {
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteWorkspace.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteWorkspace.vue"],"names":[],"mappings":";;;;;;;AAwLA,wBAOG"}
1
+ {"version":3,"file":"CommandPaletteWorkspace.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteWorkspace.vue"],"names":[],"mappings":";;;;;;;AAsMA,wBAOG"}
@@ -1,14 +1,14 @@
1
- import { defineComponent as i, ref as c, openBlock as d, createBlock as f, withCtx as s, createTextVNode as k, createVNode as b } from "vue";
2
- import { useToasts as _ } from "@scalar/use-toasts";
3
- import { useRouter as w } from "vue-router";
1
+ import { defineComponent as c, ref as i, openBlock as d, createBlock as f, withCtx as s, createTextVNode as k, createVNode as b } from "vue";
2
+ import { useToasts as w } from "@scalar/use-toasts";
3
+ import { useRouter as _ } from "vue-router";
4
4
  import v from "./CommandActionForm.vue.js";
5
5
  import N from "./CommandActionInput.vue.js";
6
6
  import { useWorkspace as V } from "../../store/store.js";
7
- const T = /* @__PURE__ */ i({
7
+ const $ = /* @__PURE__ */ c({
8
8
  __name: "CommandPaletteWorkspace",
9
9
  emits: ["close", "back"],
10
10
  setup(W, { emit: m }) {
11
- const a = m, { push: n } = w(), { toast: l } = _(), { workspaceMutators: p } = V(), o = c(""), u = () => {
11
+ const t = m, { push: n } = _(), { toast: l } = w(), { workspaceMutators: p } = V(), o = i(""), u = () => {
12
12
  if (!o.value.trim()) {
13
13
  l("Please enter a name before creating a workspace.", "error");
14
14
  return;
@@ -16,7 +16,12 @@ const T = /* @__PURE__ */ i({
16
16
  const r = p.add({
17
17
  name: o.value
18
18
  });
19
- n(`/workspace/${r.uid}`), a("close");
19
+ n({
20
+ name: "workspace",
21
+ params: {
22
+ workspace: r.uid
23
+ }
24
+ }), t("close");
20
25
  };
21
26
  return (r, e) => (d(), f(v, {
22
27
  disabled: !o.value.trim(),
@@ -28,10 +33,10 @@ const T = /* @__PURE__ */ i({
28
33
  default: s(() => [
29
34
  b(N, {
30
35
  modelValue: o.value,
31
- "onUpdate:modelValue": e[0] || (e[0] = (t) => o.value = t),
36
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => o.value = a),
32
37
  label: "Workspace Name",
33
38
  placeholder: "Workspace Name",
34
- onOnDelete: e[1] || (e[1] = (t) => a("back", t))
39
+ onOnDelete: e[1] || (e[1] = (a) => t("back", a))
35
40
  }, null, 8, ["modelValue"])
36
41
  ]),
37
42
  _: 1
@@ -39,5 +44,5 @@ const T = /* @__PURE__ */ i({
39
44
  }
40
45
  });
41
46
  export {
42
- T as default
47
+ $ as default
43
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAwYA;;;;GAIG;;AACH,wBAydI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AA8YA;;;;GAIG;;AACH,wBA+dI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
@@ -1,9 +1,9 @@
1
1
  import o from "./TheCommandPalette.vue2.js";
2
- import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
2
+ import { PaletteComponents as f } from "./TheCommandPalette.vue2.js";
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-feffe6c9"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8de4d9e3"]]);
6
6
  export {
7
- s as PaletteComponents,
8
- r as default
7
+ f as PaletteComponents,
8
+ a as default
9
9
  };
@@ -73,12 +73,12 @@ const ve = {
73
73
  {
74
74
  name: "Add Environment",
75
75
  icon: "Brackets",
76
- path: "/environment"
76
+ path: "environment"
77
77
  },
78
78
  {
79
79
  name: "Add Cookie",
80
80
  icon: "Cookie",
81
- path: "/cookies"
81
+ path: "cookies"
82
82
  }
83
83
  ]
84
84
  },
@@ -87,10 +87,10 @@ const ve = {
87
87
  commands: se.map((e) => ({
88
88
  name: e.prettyName,
89
89
  icon: e.icon,
90
- path: `/${e.name}`
90
+ path: `${e.name}.default`
91
91
  }))
92
92
  }
93
- ], d = oe(), { push: W } = le(), { activeWorkspace: H, events: f } = fe(), x = i(), l = i(""), s = i(null), c = i(-1), $ = i([]), v = T(
93
+ ], d = oe(), { push: W } = le(), { activeWorkspace: H, events: f } = fe(), x = i(), l = i(""), s = i(null), c = i(-1), D = i([]), v = T(
94
94
  () => P.reduce((e, o) => {
95
95
  const t = o.commands.filter(
96
96
  (n) => n.name.toLowerCase().includes(l.value.toLowerCase())
@@ -104,8 +104,13 @@ const ve = {
104
104
  var o;
105
105
  return (o = _.value) == null ? void 0 : o.focus();
106
106
  });
107
- }, D = (e) => {
108
- "path" in e ? (W(`/workspace/${H.value.uid}${e.path}`), h()) : s.value = e.name;
107
+ }, $ = (e) => {
108
+ "path" in e ? (W({
109
+ name: e.path,
110
+ params: {
111
+ workspace: H.value.uid
112
+ }
113
+ }), h()) : s.value = e.name;
109
114
  }, _ = i(), I = ({
110
115
  commandName: e,
111
116
  metaData: o
@@ -123,14 +128,14 @@ const ve = {
123
128
  if (!d.open) return;
124
129
  o.preventDefault();
125
130
  const t = e === "up" ? -1 : 1, n = v.value.length;
126
- c.value = (c.value + t + n) % n, (C = $.value[c.value]) == null || C.scrollIntoView({
131
+ c.value = (c.value + t + n) % n, (C = D.value[c.value]) == null || C.scrollIntoView({
127
132
  behavior: "smooth",
128
133
  block: "nearest"
129
134
  });
130
135
  }, k = T(
131
136
  () => v.value[c.value]
132
137
  ), U = (e) => {
133
- !k.value || s.value || (e.preventDefault(), e.stopPropagation(), D(k.value));
138
+ !k.value || s.value || (e.preventDefault(), e.stopPropagation(), $(k.value));
134
139
  }, L = (e) => {
135
140
  d.open && e != null && e.closeModal && h();
136
141
  };
@@ -216,12 +221,12 @@ const ve = {
216
221
  key: n.name,
217
222
  ref_for: !0,
218
223
  ref: (b) => {
219
- b && ($.value[C] = b);
224
+ b && (D.value[C] = b);
220
225
  },
221
226
  class: X(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
222
227
  "bg-b-2": n.name === ((E = k.value) == null ? void 0 : E.name)
223
228
  }]),
224
- onClick: (b) => D(n)
229
+ onClick: (b) => $(n)
225
230
  }, [
226
231
  p(r(A), {
227
232
  class: "text-c-2 mr-2.5",
@@ -6,6 +6,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
6
6
  setActiveSection: (value: string) => any;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onSetActiveSection?: ((value: string) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
10
10
  export default _default;
11
11
  //# sourceMappingURL=ContextBar.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":"AAoIA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;AA2IF,wBAQG"}
1
+ {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;AAwKF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ContextBar.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-df918011"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3015ddb3"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,27 +1,38 @@
1
- import { defineComponent as r, openBlock as n, createElementBlock as o, createElementVNode as i, Fragment as c, renderList as a, normalizeClass as l, toDisplayString as s, createVNode as d, unref as p } from "vue";
2
- import { ScalarIcon as u } from "@scalar/components";
3
- const m = { class: "hidden lg:flex ml-auto filter-hover context-bar-group lg:w-[120px]" }, v = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 hidden xl:flex justify-end rounded text-xs gap-[1.5px] pointer-events-auto relative w-full py-2" }, f = ["isActive", "onClick"], h = { class: "flex items-center context-bar-group-hover:text-c-1 absolute -right-6 top-1/2 -translate-y-1/2" }, x = { class: "mr-1.5 context-bar-group-hover:hidden" }, y = /* @__PURE__ */ r({
1
+ import { defineComponent as f, useId as x, computed as h, openBlock as r, createElementBlock as i, createElementVNode as e, Fragment as g, renderList as _, normalizeClass as b, createTextVNode as y, toDisplayString as l, withDirectives as S, unref as a, vModelRadio as w, createVNode as k } from "vue";
2
+ import { ScalarIcon as V } from "@scalar/components";
3
+ const q = { class: "hidden lg:flex ml-auto filter-hover context-bar-group lg:w-[120px]" }, B = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 hidden xl:flex justify-end rounded text-xs gap-[1.5px] pointer-events-auto relative w-full py-2" }, C = ["name", "value"], F = { class: "flex items-center context-bar-group-hover:text-c-1 absolute -right-6 top-1/2 -translate-y-1/2" }, N = { class: "mr-1.5 context-bar-group-hover:hidden" }, D = /* @__PURE__ */ f({
4
4
  __name: "ContextBar",
5
5
  props: {
6
6
  sections: {},
7
7
  activeSection: {}
8
8
  },
9
9
  emits: ["setActiveSection"],
10
- setup(_) {
11
- return (e, g) => (n(), o("div", m, [
12
- i("div", v, [
13
- (n(!0), o(c, null, a(e.sections, (t) => (n(), o("button", {
14
- key: t,
15
- class: l(["hover:bg-b-2 rounded p-1 px-2 text-center font-medium w-fit whitespace-nowrap", [
16
- e.activeSection === t ? "text-c-1 pointer-events-none" : ""
17
- ]]),
18
- isActive: e.activeSection === t,
19
- type: "button",
20
- onClick: (b) => e.$emit("setActiveSection", t)
21
- }, s(t), 11, f))), 128)),
22
- i("div", h, [
23
- i("span", x, s(e.activeSection), 1),
24
- d(p(u), {
10
+ setup(c, { emit: d }) {
11
+ const u = c, p = d, m = x(), t = h({
12
+ get: () => u.activeSection,
13
+ set: (s) => p("setActiveSection", s)
14
+ });
15
+ return (s, o) => (r(), i("fieldset", q, [
16
+ o[1] || (o[1] = e("legend", { class: "sr-only" }, "Filter Sections", -1)),
17
+ e("div", B, [
18
+ (r(!0), i(g, null, _(s.sections, (n) => (r(), i("label", {
19
+ key: n,
20
+ class: b(["filter-hover-item flex items-center hover:bg-b-2 rounded p-1 px-2 cursor-pointer text-center font-medium w-fit whitespace-nowrap has-[:focus-visible]:outline", [t.value === n ? "text-c-1 pointer-events-none" : ""]])
21
+ }, [
22
+ y(l(n) + " ", 1),
23
+ S(e("input", {
24
+ "onUpdate:modelValue": o[0] || (o[0] = (v) => t.value = v),
25
+ class: "sr-only",
26
+ name: a(m),
27
+ type: "radio",
28
+ value: n
29
+ }, null, 8, C), [
30
+ [w, t.value]
31
+ ])
32
+ ], 2))), 128)),
33
+ e("div", F, [
34
+ e("span", N, l(t.value), 1),
35
+ k(a(V), {
25
36
  icon: "FilterList",
26
37
  size: "md",
27
38
  thickness: "2"
@@ -32,5 +43,5 @@ const m = { class: "hidden lg:flex ml-auto filter-hover context-bar-group lg:w-[
32
43
  }
33
44
  });
34
45
  export {
35
- y as default
46
+ D as default
36
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AAyDA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC1B,CAAC;;;;;;WADQ,MAAM,GAAG,QAAQ;;AA4G7B,wBASG"}
1
+ {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AA0DA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC1B,CAAC;;;;;;WADQ,MAAM,GAAG,QAAQ;;AAsH7B,wBASG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as n, openBlock as s, createBlock as c, withCtx as i, createElementVNode as t, normalizeClass as d, unref as r, createVNode as f } from "vue";
2
- import { ScalarIcon as p } from "@scalar/components";
3
- import { cva as b } from "cva";
4
- import m from "./DataTableCell.vue.js";
5
- const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
1
+ import { defineComponent as s, openBlock as n, createBlock as i, withCtx as c, createElementVNode as o, normalizeClass as d, unref as a, createVNode as p } from "vue";
2
+ import { ScalarIcon as u } from "@scalar/components";
3
+ import { cva as m } from "cva";
4
+ import f from "./DataTableCell.vue.js";
5
+ const b = ["checked", "disabled"], x = /* @__PURE__ */ s({
6
6
  __name: "DataTableCheckbox",
7
7
  props: {
8
8
  modelValue: { type: Boolean },
@@ -11,8 +11,8 @@ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
11
11
  },
12
12
  emits: ["update:modelValue"],
13
13
  setup(h) {
14
- const a = b({
15
- base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-2 pointer-events-none absolute before:absolute before:opacity-0 group-hover/cell:before:opacity-100 before:border before:rounded before:w-9/12 before:aspect-square before:top-1/2 before:left-1/2 before:transform before:-translate-x-1/2 before:-translate-y-1/2 before:border-[1px]",
14
+ const l = m({
15
+ base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-2 pointer-events-none absolute",
16
16
  variants: {
17
17
  align: {
18
18
  left: "left-0",
@@ -20,20 +20,20 @@ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
20
20
  }
21
21
  }
22
22
  });
23
- return (e, o) => (s(), c(m, { class: "group/cell relative flex min-w-8" }, {
24
- default: i(() => [
25
- t("input", {
23
+ return (e, t) => (n(), i(f, { class: "group/cell relative flex min-w-8" }, {
24
+ default: c(() => [
25
+ o("input", {
26
26
  checked: e.modelValue,
27
27
  class: "peer absolute inset-0 opacity-0 cursor-pointer",
28
28
  disabled: e.disabled,
29
- tabindex: "-1",
30
29
  type: "checkbox",
31
- onChange: o[0] || (o[0] = (l) => e.$emit("update:modelValue", l.target.checked))
32
- }, null, 40, u),
33
- t("div", {
34
- class: d(r(a)({ align: e.align }))
30
+ onChange: t[0] || (t[0] = (r) => e.$emit("update:modelValue", r.target.checked))
31
+ }, null, 40, b),
32
+ o("div", {
33
+ class: d(a(l)({ align: e.align }))
35
34
  }, [
36
- f(r(p), {
35
+ t[1] || (t[1] = o("div", { class: "absolute opacity-0 group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100 group-has-[:focus-visible]/cell:border-c-accent border-[1px] rounded size-3/4 m-auto" }, null, -1)),
36
+ p(a(u), {
37
37
  icon: "Checkmark",
38
38
  size: "xs",
39
39
  thickness: "2.5"
@@ -45,5 +45,5 @@ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
45
45
  }
46
46
  });
47
47
  export {
48
- v as default
48
+ x as default
49
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAsLA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAqDJ,iBAAS,cAAc;WA8OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAnUN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAuUpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAsLA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAqDJ,iBAAS,cAAc;WA4OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAjUN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAqUpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3ff02c4c"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-8574d822"]]);
5
5
  export {
6
- r as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, ref as i, computed as k, openBlock as l, createBlock as u, normalizeClass as b, withCtx as g, createElementBlock as r, renderSlot as p, createCommentVNode as d, createElementVNode as C, Fragment as B, mergeProps as y, unref as $ } from "vue";
1
+ import { defineComponent as V, ref as i, computed as b, openBlock as l, createBlock as u, normalizeClass as k, withCtx as g, createElementBlock as r, renderSlot as p, createCommentVNode as d, createElementVNode as C, Fragment as B, mergeProps as f, unref as $ } from "vue";
2
2
  import h from "../CodeInput/CodeInput.vue.js";
3
3
  import { ScalarIconButton as x } from "@scalar/components";
4
4
  import O from "./DataTableCell.vue.js";
@@ -8,7 +8,7 @@ const A = {
8
8
  class: "text-c-1 flex min-w-[94px] items-center pl-2 pr-0"
9
9
  }, I = { class: "row-1 overflow-x-auto" }, E = ["id", "readOnly", "type", "value"], F = {
10
10
  key: 2,
11
- class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
11
+ class: "absolute centered-y right-2 pt-px text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[:focus-visible]:opacity-0"
12
12
  }, S = {
13
13
  key: 1,
14
14
  class: "absolute centered-y right-7 text-orange text-xs"
@@ -28,16 +28,16 @@ const A = {
28
28
  max: {}
29
29
  },
30
30
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
31
- setup(c, { emit: f }) {
32
- const o = c, s = f, n = i(!0);
31
+ setup(y, { emit: c }) {
32
+ const o = y, s = c, n = i(!0);
33
33
  i("");
34
34
  const v = i(!1), w = () => {
35
35
  v.value || s("inputBlur");
36
- }, m = k(
36
+ }, m = b(
37
37
  () => o.type === "password" ? n.value ? "password" : "text" : o.type ?? "text"
38
38
  );
39
39
  return (e, t) => (l(), u(O, {
40
- class: b(["relative row", e.containerClass])
40
+ class: k(["relative row", e.containerClass])
41
41
  }, {
42
42
  default: g(() => [
43
43
  e.$slots.default ? (l(), r("div", A, [
@@ -51,10 +51,10 @@ const A = {
51
51
  value: o.enum,
52
52
  "onUpdate:modelValue": t[0] || (t[0] = (a) => s("update:modelValue", a))
53
53
  }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), r(B, { key: 1 }, [
54
- n.value && e.type === "password" ? (l(), r("input", y({ key: 0 }, e.$attrs, {
54
+ n.value && e.type === "password" ? (l(), r("input", f({ key: 0 }, e.$attrs, {
55
55
  id: e.id,
56
56
  autocomplete: "off",
57
- class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.25 outline-none",
57
+ class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.25 -outline-offset-2",
58
58
  "data-1p-ignore": "",
59
59
  readOnly: e.readOnly,
60
60
  spellcheck: "false",
@@ -64,9 +64,9 @@ const A = {
64
64
  "update:modelValue",
65
65
  a.target.value ?? ""
66
66
  ))
67
- }), null, 16, E)) : (l(), u(h, y({ key: 1 }, e.$attrs, {
67
+ }), null, 16, E)) : (l(), u(h, f({ key: 1 }, e.$attrs, {
68
68
  id: e.id,
69
- class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer outline-none",
69
+ class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer",
70
70
  disableCloseBrackets: "",
71
71
  disableTabIndent: "",
72
72
  max: e.max,
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AA0YA,wBAMG"}
1
+ {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAkZA,wBAMG"}