@scalar/api-client 2.2.4 → 2.2.7

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 (93) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  3. package/dist/components/AddressBar/AddressBar.vue2.js +1 -1
  4. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  5. package/dist/components/AddressBar/AddressBarServer.vue.js +28 -28
  6. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +1 -1
  7. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  8. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +41 -41
  9. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +2 -2
  10. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +5 -5
  11. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  12. package/dist/components/DataTable/DataTableCheckbox.vue.js +5 -6
  13. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  14. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -8
  15. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  16. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -10
  17. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  18. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  19. package/dist/components/HttpMethod/HttpMethod.vue2.js +24 -25
  20. package/dist/components/HttpMethod/index.d.ts +0 -1
  21. package/dist/components/HttpMethod/index.d.ts.map +1 -1
  22. package/dist/components/HttpMethod/index.js +2 -4
  23. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  24. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +121 -103
  25. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  26. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +24 -26
  27. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +6 -0
  28. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +28 -23
  30. package/dist/components/OpenApiClientButton.vue.d.ts +1 -0
  31. package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
  32. package/dist/components/OpenApiClientButton.vue.js +2 -2
  33. package/dist/components/OpenApiClientButton.vue2.js +21 -15
  34. package/dist/components/Search/useSearch.d.ts.map +1 -1
  35. package/dist/components/Search/useSearch.js +45 -41
  36. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  37. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -6
  38. package/dist/layouts/App/create-api-client-app.d.ts +1 -0
  39. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  40. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  41. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  42. package/dist/layouts/Modal/ApiClientModal.vue2.js +28 -23
  43. package/dist/layouts/Modal/create-api-client-modal.d.ts +2 -0
  44. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  45. package/dist/layouts/Web/create-api-client-web.d.ts +1 -0
  46. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  47. package/dist/libs/create-client.d.ts +3 -1
  48. package/dist/libs/create-client.d.ts.map +1 -1
  49. package/dist/libs/create-client.js +50 -48
  50. package/dist/store/store.d.ts +3 -1
  51. package/dist/store/store.d.ts.map +1 -1
  52. package/dist/store/store.js +47 -45
  53. package/dist/style.css +1 -1
  54. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  55. package/dist/views/Cookies/Cookies.vue2.js +18 -20
  56. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  57. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +63 -60
  58. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  59. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +20 -19
  60. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  61. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  62. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +84 -86
  63. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  64. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  65. package/dist/views/Request/RequestSection/RequestBody.vue2.js +37 -36
  66. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  67. package/dist/views/Request/RequestSidebar.vue.js +3 -3
  68. package/dist/views/Request/RequestSidebar.vue2.js +60 -61
  69. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  70. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  71. package/dist/views/Request/RequestSidebarItem.vue2.js +187 -195
  72. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  73. package/dist/views/Request/RequestSubpageHeader.vue.js +3 -3
  74. package/dist/views/Request/RequestSubpageHeader.vue2.js +34 -36
  75. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  76. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  77. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +5 -5
  78. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  79. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  80. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +30 -25
  81. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  82. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +41 -30
  83. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  84. package/dist/views/Request/components/WorkspaceDropdown.vue.js +3 -5
  85. package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
  86. package/dist/views/Request/libs/live-sync.js +77 -78
  87. package/dist/views/Request/libs/oauth2.d.ts +6 -2
  88. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  89. package/dist/views/Request/libs/oauth2.js +43 -37
  90. package/package.json +10 -11
  91. package/dist/components/HttpMethod/helpers.d.ts +0 -4
  92. package/dist/components/HttpMethod/helpers.d.ts.map +0 -1
  93. package/dist/components/HttpMethod/helpers.js +0 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,67 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - a90d827: feat(components): create ScalarTeleport component
8
+ - d0adebf: fix: updates tailwind config content
9
+ - c2be791: fix: watches text input to fuse search
10
+ - 3b4a788: fix: updates default row for request body
11
+ - f4440f5: feat: added logo functionality to the importer
12
+ - 4c5be96: feat: adds isHttpMethod to helpers
13
+ - Updated dependencies [a90d827]
14
+ - Updated dependencies [3b4a788]
15
+ - Updated dependencies [4c5be96]
16
+ - Updated dependencies [4c5be96]
17
+ - @scalar/components@0.13.2
18
+ - @scalar/oas-utils@0.2.85
19
+ - @scalar/use-codemirror@0.11.46
20
+ - @scalar/import@0.2.3
21
+
22
+ ## 2.2.6
23
+
24
+ ### Patch Changes
25
+
26
+ - b744324: style: removes add item hotkey style
27
+ - 0804d6b: feat: fall back to just the request path in the sidebar
28
+ - 0076308: feat: show API client button in GitBook
29
+ - 13432e7: feat: fall back to the API reference URL for the import
30
+ - Updated dependencies [9b4f85d]
31
+ - @scalar/oas-utils@0.2.84
32
+ - @scalar/import@0.2.2
33
+
34
+ ## 2.2.5
35
+
36
+ ### Patch Changes
37
+
38
+ - e199e9b: feat: updates chevron down icon
39
+ - f524411: feat: adds response status color
40
+ - e199e9b: feat: updates add icon
41
+ - 10c01b2: fix: updates overflow and height for image response preview
42
+ - e199e9b: feat: adds request creation from sidebar
43
+ - 31cb86b: style: updates http method variants
44
+ - c2f5f08: feat: adds hideClientButton option configuration
45
+ - 1f730c6: feat: upgraded cva and added tests
46
+ - 8958af0: feat: add the proxy to oauth authorize calls
47
+ - Updated dependencies [e199e9b]
48
+ - Updated dependencies [e199e9b]
49
+ - Updated dependencies [f524411]
50
+ - Updated dependencies [e199e9b]
51
+ - Updated dependencies [d6e7008]
52
+ - Updated dependencies [10c9016]
53
+ - Updated dependencies [c2f5f08]
54
+ - Updated dependencies [1f730c6]
55
+ - Updated dependencies [b11294c]
56
+ - Updated dependencies [f30ce11]
57
+ - @scalar/components@0.13.1
58
+ - @scalar/oas-utils@0.2.83
59
+ - @scalar/use-codemirror@0.11.45
60
+ - @scalar/types@0.0.23
61
+ - @scalar/import@0.2.1
62
+ - @scalar/themes@0.9.54
63
+ - @scalar/use-hooks@0.1.7
64
+
3
65
  ## 2.2.4
4
66
 
5
67
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4d3290fc"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-455b0236"]]);
5
5
  export {
6
- d as default
6
+ m as default
7
7
  };
@@ -95,7 +95,7 @@ const te = {
95
95
  isEditable: !a(c),
96
96
  isSquare: "",
97
97
  method: a(l).method,
98
- teleport: ".scalar-client",
98
+ teleport: "",
99
99
  onChange: V
100
100
  }, null, 8, ["isEditable", "method"])
101
101
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AAqWA,wBAKG"}
1
+ {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AAoWA,wBAKG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, computed as u, watch as E, openBlock as l, createBlock as S, unref as n, withCtx as w, createElementBlock as o, createCommentVNode as v, Fragment as m, renderList as g, createVNode as p, createElementVNode as a, createTextVNode as O, toDisplayString as b } from "vue";
1
+ import { defineComponent as V, computed as c, watch as E, openBlock as l, createBlock as S, unref as o, withCtx as w, createElementBlock as n, createCommentVNode as v, Fragment as m, renderList as g, createVNode as p, createElementVNode as a, createTextVNode as O, toDisplayString as b } from "vue";
2
2
  import { useActiveEntities as R } from "../../store/active-entities.js";
3
3
  import { ScalarDropdown as W, ScalarDropdownDivider as A, ScalarDropdownItem as I, ScalarIcon as L } from "@scalar/components";
4
4
  import C from "./AddressBarServerItem.vue.js";
@@ -6,44 +6,44 @@ import { useWorkspace as T } from "../../store/store.js";
6
6
  const j = {
7
7
  class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 py-0.5 text-c-2 -outline-offset-1",
8
8
  type: "button"
9
- }, F = {
9
+ }, z = {
10
10
  key: 0,
11
11
  class: "text-xxs text-c-2 ml-8"
12
- }, M = { class: "flex items-center justify-center h-4 w-4" }, P = {
12
+ }, F = { class: "flex items-center justify-center h-4 w-4" }, M = {
13
13
  key: 1,
14
14
  class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
15
15
  }, K = /* @__PURE__ */ V({
16
16
  __name: "AddressBarServer",
17
- setup($) {
18
- const { activeRequest: y, activeCollection: h, activeServer: x } = R(), { isReadOnly: D, servers: k, collectionMutators: N, events: B } = T(), c = u(
17
+ setup(P) {
18
+ const { activeRequest: y, activeCollection: k, activeServer: x } = R(), { isReadOnly: D, servers: _, collectionMutators: N, events: B } = T(), d = c(
19
19
  () => {
20
20
  var t, e;
21
21
  return (e = (t = y.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
22
22
  var s;
23
23
  return {
24
24
  id: r,
25
- label: ((s = k[r]) == null ? void 0 : s.url) ?? "Unknown server"
25
+ label: ((s = _[r]) == null ? void 0 : s.url) ?? "Unknown server"
26
26
  };
27
27
  });
28
28
  }
29
- ), d = u(
29
+ ), u = c(
30
30
  () => {
31
31
  var t, e;
32
- return (e = (t = h.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
32
+ return (e = (t = k.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
33
33
  var s;
34
34
  return {
35
35
  id: r,
36
- label: ((s = k[r]) == null ? void 0 : s.url) ?? "Unknown server"
36
+ label: ((s = _[r]) == null ? void 0 : s.url) ?? "Unknown server"
37
37
  };
38
38
  });
39
39
  }
40
- ), _ = u(
40
+ ), h = c(
41
41
  () => {
42
42
  var t, e;
43
- return ((t = c.value) == null ? void 0 : t.length) && ((e = d.value) == null ? void 0 : e.length);
43
+ return ((t = d.value) == null ? void 0 : t.length) && ((e = u.value) == null ? void 0 : e.length);
44
44
  }
45
45
  );
46
- E([h, y], ([t, e]) => {
46
+ E([k, y], ([t, e]) => {
47
47
  !t || t.selectedServerUid || e != null && e.selectedServerUid || N.edit(
48
48
  t.uid,
49
49
  "selectedServerUid",
@@ -52,45 +52,45 @@ const j = {
52
52
  });
53
53
  const U = () => B.commandPalette.emit({
54
54
  commandName: "Add Server"
55
- }), f = u(() => {
55
+ }), f = c(() => {
56
56
  var t, e, r;
57
57
  return (e = (t = x.value) == null ? void 0 : t.url) != null && e.endsWith("/") ? x.value.url.slice(0, -1) : ((r = x.value) == null ? void 0 : r.url) || "";
58
58
  });
59
59
  return (t, e) => {
60
60
  var r, s;
61
- return c.value && ((r = c.value) == null ? void 0 : r.length) > 1 || d.value && ((s = d.value) == null ? void 0 : s.length) > 1 ? (l(), S(n(W), {
61
+ return d.value && ((r = d.value) == null ? void 0 : r.length) > 1 || u.value && ((s = u.value) == null ? void 0 : s.length) > 1 ? (l(), S(o(W), {
62
62
  key: 0,
63
63
  class: "w-max",
64
- teleport: ".scalar-client"
64
+ teleport: ""
65
65
  }, {
66
66
  items: w(() => [
67
- _.value ? (l(), o("div", F, " Request Servers ")) : v("", !0),
68
- (l(!0), o(m, null, g(c.value, (i) => (l(), S(C, {
67
+ h.value ? (l(), n("div", z, " Request Servers ")) : v("", !0),
68
+ (l(!0), n(m, null, g(d.value, (i) => (l(), S(C, {
69
69
  key: i.id,
70
70
  serverOption: i,
71
71
  type: "request"
72
72
  }, null, 8, ["serverOption"]))), 128)),
73
- _.value ? (l(), o(m, { key: 1 }, [
74
- p(n(A)),
73
+ h.value ? (l(), n(m, { key: 1 }, [
74
+ p(o(A)),
75
75
  e[1] || (e[1] = a("div", { class: "text-xxs text-c-2 ml-8" }, "Collection Servers", -1))
76
76
  ], 64)) : v("", !0),
77
- (l(!0), o(m, null, g(d.value, (i) => (l(), S(C, {
77
+ (l(!0), n(m, null, g(u.value, (i) => (l(), S(C, {
78
78
  key: i.id,
79
79
  serverOption: i,
80
80
  type: "collection"
81
81
  }, null, 8, ["serverOption"]))), 128)),
82
- n(D) ? v("", !0) : (l(), o(m, { key: 2 }, [
83
- p(n(A)),
84
- p(n(I), null, {
82
+ o(D) ? v("", !0) : (l(), n(m, { key: 2 }, [
83
+ p(o(A)),
84
+ p(o(I), null, {
85
85
  default: w(() => [
86
86
  a("div", {
87
87
  class: "font-code text-xxs flex items-center gap-1.5",
88
88
  onClick: U
89
89
  }, [
90
- a("div", M, [
91
- p(n(L), {
92
- class: "h-2.5",
93
- icon: "Add"
90
+ a("div", F, [
91
+ p(o(L), {
92
+ icon: "Add",
93
+ size: "sm"
94
94
  })
95
95
  ]),
96
96
  e[2] || (e[2] = a("span", null, "Add Server", -1))
@@ -107,7 +107,7 @@ const j = {
107
107
  ])
108
108
  ]),
109
109
  _: 1
110
- })) : f.value ? (l(), o("div", P, b(f.value), 1)) : v("", !0);
110
+ })) : f.value ? (l(), n("div", M, b(f.value), 1)) : v("", !0);
111
111
  };
112
112
  }
113
113
  });
@@ -72,7 +72,7 @@ const F = { class: "flex items-center gap-2" }, H = { class: "max-h-40 custom-sc
72
72
  s(a(I), {
73
73
  class: "text-c-3",
74
74
  icon: "ChevronDown",
75
- size: "xs"
75
+ size: "md"
76
76
  })
77
77
  ])
78
78
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":"AAwMA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE;QACT,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,CAAC;;;;;;;;AA2TF,wBAQG"}
1
+ {"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":"AA4MA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE;QACT,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,CAAC;;;;;;;;AA4TF,wBAQG"}
@@ -1,55 +1,55 @@
1
- import { defineComponent as P, ref as c, computed as g, 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 W, createTextVNode as j } from "vue";
2
- import H from "../HttpMethod/HttpMethod.vue.js";
3
- import { useActiveEntities as I } from "../../store/active-entities.js";
4
- import { ScalarListbox as D, ScalarButton as k, ScalarIcon as w } from "@scalar/components";
5
- import { useToasts as $ } from "@scalar/use-toasts";
6
- import { useRouter as A } from "vue-router";
7
- import L from "./CommandActionForm.vue.js";
8
- import O from "./CommandActionInput.vue.js";
9
- import { isHTTPMethod as F } from "../HttpMethod/helpers.js";
1
+ import { defineComponent as W, ref as c, computed as x, openBlock as h, createBlock as C, withCtx as u, createElementVNode as f, createVNode as i, unref as n, normalizeClass as q, toDisplayString as V, createCommentVNode as j, createTextVNode as H } from "vue";
2
+ import I from "../HttpMethod/HttpMethod.vue.js";
3
+ import { useActiveEntities as P } from "../../store/active-entities.js";
4
+ import { ScalarListbox as w, ScalarButton as D, ScalarIcon as k } from "@scalar/components";
5
+ import { isHttpMethod as $ } from "@scalar/oas-utils/helpers";
6
+ import { useToasts as A } from "@scalar/use-toasts";
7
+ import { useRouter as L } from "vue-router";
8
+ import O from "./CommandActionForm.vue.js";
9
+ import F from "./CommandActionInput.vue.js";
10
10
  import { useWorkspace as G } from "../../store/store.js";
11
- const J = { class: "flex" }, se = /* @__PURE__ */ P({
11
+ const J = { class: "flex" }, se = /* @__PURE__ */ W({
12
12
  __name: "CommandPaletteRequest",
13
13
  props: {
14
14
  metaData: {}
15
15
  },
16
16
  emits: ["close", "back"],
17
17
  setup(S, { emit: _ }) {
18
- const r = S, b = _, { push: M } = A(), { toast: N } = $(), {
18
+ const r = S, b = _, { push: M } = L(), { toast: N } = A(), {
19
19
  activeCollection: R,
20
20
  activeWorkspace: U,
21
- activeWorkspaceCollections: x,
22
- activeRequest: T
23
- } = I(), { requestMutators: y, tags: z } = G(), o = c(""), m = c("get"), v = g(
24
- () => x.value.map((t) => {
21
+ activeWorkspaceCollections: g,
22
+ activeRequest: y
23
+ } = P(), { requestMutators: T, tags: z } = G(), o = c(""), m = c("get"), p = x(
24
+ () => g.value.map((t) => {
25
25
  var e;
26
26
  return {
27
27
  id: t.uid,
28
28
  label: ((e = t.info) == null ? void 0 : e.title) ?? "Unititled Collection"
29
29
  };
30
30
  })
31
- ), d = g(
32
- () => x.value.flatMap(
31
+ ), d = x(
32
+ () => g.value.flatMap(
33
33
  (t) => {
34
34
  var e;
35
35
  return t.uid === ((e = l.value) == null ? void 0 : e.id) ? t.tags.flatMap((a) => {
36
- const p = z[a];
37
- return p ? [
36
+ const v = z[a];
37
+ return v ? [
38
38
  {
39
- id: p.uid,
40
- label: p.name
39
+ id: v.uid,
40
+ label: v.name
41
41
  }
42
42
  ] : [];
43
43
  }) : [];
44
44
  }
45
45
  )
46
46
  ), l = c(
47
- r.metaData ? v.value.find(
47
+ r.metaData ? p.value.find(
48
48
  (t) => {
49
49
  var e, a;
50
50
  return t.id === ((e = r.metaData) == null ? void 0 : e.itemUid) || t.id === ((a = r.metaData) == null ? void 0 : a.parentUid);
51
51
  }
52
- ) : v.value.find(
52
+ ) : p.value.find(
53
53
  (t) => {
54
54
  var e;
55
55
  return t.id === ((e = R.value) == null ? void 0 : e.uid);
@@ -61,7 +61,7 @@ const J = { class: "flex" }, se = /* @__PURE__ */ P({
61
61
  return t.id === ((e = r.metaData) == null ? void 0 : e.itemUid);
62
62
  }) : d.value.find((t) => {
63
63
  var e, a;
64
- return t.label === ((a = (e = T.value) == null ? void 0 : e.tags) == null ? void 0 : a[0]);
64
+ return t.label === ((a = (e = y.value) == null ? void 0 : e.tags) == null ? void 0 : a[0]);
65
65
  })
66
66
  ), B = (t) => m.value = t, E = () => {
67
67
  var e;
@@ -69,9 +69,9 @@ const J = { class: "flex" }, se = /* @__PURE__ */ P({
69
69
  N("Please enter a name before creating a request.", "error");
70
70
  return;
71
71
  }
72
- if (!((e = l.value) != null && e.id) || !F(m.value))
72
+ if (!((e = l.value) != null && e.id) || !$(m.value))
73
73
  return;
74
- const t = y.add(
74
+ const t = T.add(
75
75
  {
76
76
  path: "",
77
77
  method: m.value,
@@ -90,36 +90,36 @@ const J = { class: "flex" }, se = /* @__PURE__ */ P({
90
90
  }
91
91
  }), b("close");
92
92
  };
93
- return (t, e) => (C(), h(L, {
93
+ return (t, e) => (h(), C(O, {
94
94
  disabled: !o.value.trim(),
95
95
  onSubmit: E
96
96
  }, {
97
97
  options: u(() => [
98
98
  f("div", J, [
99
- i(H, {
99
+ i(I, {
100
100
  isEditable: !0,
101
101
  isSquare: "",
102
102
  method: m.value,
103
103
  onChange: B
104
104
  }, null, 8, ["method"]),
105
- i(n(D), {
105
+ i(n(w), {
106
106
  modelValue: l.value,
107
107
  "onUpdate:modelValue": e[2] || (e[2] = (a) => l.value = a),
108
- options: v.value
108
+ options: p.value
109
109
  }, {
110
110
  default: u(() => [
111
- i(n(k), {
111
+ i(n(D), {
112
112
  class: "justify-between p-2 ml-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
113
113
  variant: "outlined"
114
114
  }, {
115
115
  default: u(() => [
116
116
  f("span", {
117
- class: q(l.value ? "text-c-1" : "text-c-3")
117
+ class: q(["whitespace-nowrap", l.value ? "text-c-1" : "text-c-3"])
118
118
  }, V(l.value ? l.value.label : "Select Collection"), 3),
119
- i(n(w), {
119
+ i(n(k), {
120
120
  class: "text-c-3",
121
121
  icon: "ChevronDown",
122
- size: "xs"
122
+ size: "md"
123
123
  })
124
124
  ]),
125
125
  _: 1
@@ -127,14 +127,14 @@ const J = { class: "flex" }, se = /* @__PURE__ */ P({
127
127
  ]),
128
128
  _: 1
129
129
  }, 8, ["modelValue", "options"]),
130
- d.value.length ? (C(), h(n(D), {
130
+ d.value.length ? (h(), C(n(w), {
131
131
  key: 0,
132
132
  modelValue: s.value,
133
133
  "onUpdate:modelValue": e[3] || (e[3] = (a) => s.value = a),
134
134
  options: d.value
135
135
  }, {
136
136
  default: u(() => [
137
- i(n(k), {
137
+ i(n(D), {
138
138
  class: "justify-between p-2 ml-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
139
139
  variant: "outlined"
140
140
  }, {
@@ -142,24 +142,24 @@ const J = { class: "flex" }, se = /* @__PURE__ */ P({
142
142
  f("span", {
143
143
  class: q(s.value ? "text-c-1" : "text-c-3")
144
144
  }, V(s.value ? s.value.label : "Select Tag"), 3),
145
- i(n(w), {
145
+ i(n(k), {
146
146
  class: "text-c-3",
147
147
  icon: "ChevronDown",
148
- size: "xs"
148
+ size: "md"
149
149
  })
150
150
  ]),
151
151
  _: 1
152
152
  })
153
153
  ]),
154
154
  _: 1
155
- }, 8, ["modelValue", "options"])) : W("", !0)
155
+ }, 8, ["modelValue", "options"])) : j("", !0)
156
156
  ])
157
157
  ]),
158
158
  submit: u(() => e[4] || (e[4] = [
159
- j("Create Request")
159
+ H("Create Request")
160
160
  ])),
161
161
  default: u(() => [
162
- i(O, {
162
+ i(F, {
163
163
  modelValue: o.value,
164
164
  "onUpdate:modelValue": e[0] || (e[0] = (a) => o.value = a),
165
165
  label: "Request Name",
@@ -55,7 +55,7 @@ const q = /* @__PURE__ */ w({
55
55
  default: a(() => [
56
56
  n.value.length > 0 ? (s(), u(i(p), {
57
57
  key: 0,
58
- class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
58
+ class: "justify-between p-2 max-h-8 w-fit gap-1 text-xs hover:bg-b-2",
59
59
  variant: "outlined"
60
60
  }, {
61
61
  default: a(() => [
@@ -65,7 +65,7 @@ const q = /* @__PURE__ */ w({
65
65
  c(i(L), {
66
66
  class: "text-c-3",
67
67
  icon: "ChevronDown",
68
- size: "xs"
68
+ size: "md"
69
69
  })
70
70
  ]),
71
71
  _: 1
@@ -8,9 +8,9 @@ import { useWorkspace as P } from "../../store/store.js";
8
8
  const O = /* @__PURE__ */ g({
9
9
  __name: "CommandPaletteTag",
10
10
  emits: ["close", "back"],
11
- setup(U, { emit: c }) {
12
- const r = c, { activeWorkspaceCollections: d, activeCollection: p } = N(), { tagMutators: f } = P(), { toast: v } = y(), u = x(
13
- () => d.value.map((o) => {
11
+ setup(U, { emit: d }) {
12
+ const r = d, { activeWorkspaceCollections: c, activeCollection: p } = N(), { tagMutators: f } = P(), { toast: v } = y(), u = x(
13
+ () => c.value.map((o) => {
14
14
  var e;
15
15
  return {
16
16
  id: o.uid,
@@ -49,7 +49,7 @@ const O = /* @__PURE__ */ g({
49
49
  }, {
50
50
  default: n(() => [
51
51
  i(s(B), {
52
- class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
52
+ class: "justify-between p-2 max-h-8 w-fit gap-1 text-xs hover:bg-b-2",
53
53
  variant: "outlined"
54
54
  }, {
55
55
  default: n(() => [
@@ -59,7 +59,7 @@ const O = /* @__PURE__ */ g({
59
59
  i(s(D), {
60
60
  class: "text-c-3",
61
61
  icon: "ChevronDown",
62
- size: "xs"
62
+ size: "md"
63
63
  })
64
64
  ]),
65
65
  _: 1
@@ -1 +1 @@
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
+ {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AAwDA,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,7 @@
1
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";
2
+ import { cva as u, ScalarIcon as m } from "@scalar/components";
4
3
  import f from "./DataTableCell.vue.js";
5
- const b = ["checked", "disabled"], x = /* @__PURE__ */ s({
4
+ const b = ["checked", "disabled"], y = /* @__PURE__ */ s({
6
5
  __name: "DataTableCheckbox",
7
6
  props: {
8
7
  modelValue: { type: Boolean },
@@ -11,7 +10,7 @@ const b = ["checked", "disabled"], x = /* @__PURE__ */ s({
11
10
  },
12
11
  emits: ["update:modelValue"],
13
12
  setup(h) {
14
- const l = m({
13
+ const l = u({
15
14
  base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-2 pointer-events-none absolute",
16
15
  variants: {
17
16
  align: {
@@ -33,7 +32,7 @@ const b = ["checked", "disabled"], x = /* @__PURE__ */ s({
33
32
  class: d(a(l)({ align: e.align }))
34
33
  }, [
35
34
  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), {
35
+ p(a(m), {
37
36
  icon: "Checkmark",
38
37
  size: "xs",
39
38
  thickness: "2.5"
@@ -45,5 +44,5 @@ const b = ["checked", "disabled"], x = /* @__PURE__ */ s({
45
44
  }
46
45
  });
47
46
  export {
48
- x as default
47
+ y as default
49
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAC;;;;;;uBADoB,OAAO;;AAoR/B,wBASG"}
1
+ {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAC;;;;;;uBADoB,OAAO;;AAmR/B,wBASG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, computed as h, ref as p, watch as w, nextTick as N, openBlock as n, createElementBlock as i, withDirectives as T, withKeys as j, vModelText as I, createBlock as k, unref as a, withCtx as d, Fragment as y, renderList as E, createElementVNode as c, normalizeClass as K, createVNode as o, createTextVNode as R, toDisplayString as C, createCommentVNode as $ } from "vue";
1
+ import { defineComponent as A, computed as w, ref as p, watch as h, nextTick as N, openBlock as n, createElementBlock as i, withDirectives as T, withKeys as j, vModelText as I, createBlock as k, unref as a, withCtx as d, Fragment as y, renderList as E, createElementVNode as c, normalizeClass as K, createVNode as o, createTextVNode as R, toDisplayString as C, createCommentVNode as $ } from "vue";
2
2
  import { ScalarDropdown as F, ScalarDropdownItem as g, ScalarIcon as f, ScalarDropdownDivider as L, ScalarButton as M } from "@scalar/components";
3
3
  const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex items-center justify-center h-4 w-4" }, O = /* @__PURE__ */ A({
4
4
  __name: "DataTableInputSelect",
@@ -10,8 +10,8 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
10
10
  },
11
11
  emits: ["update:modelValue"],
12
12
  setup(S, { emit: _ }) {
13
- const s = S, m = _, D = h(() => s.value ?? []), r = p(!1), u = p(""), v = p(null);
14
- w(u, (e) => {
13
+ const s = S, m = _, D = w(() => s.value ?? []), r = p(!1), u = p(""), v = p(null);
14
+ h(u, (e) => {
15
15
  m("update:modelValue", e);
16
16
  });
17
17
  const V = (e) => {
@@ -21,13 +21,13 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
21
21
  }, b = () => {
22
22
  u.value.trim() || (m("update:modelValue", ""), r.value = !1);
23
23
  }, z = (e) => s.modelValue.toString() === e;
24
- w(r, (e) => {
24
+ h(r, (e) => {
25
25
  e && N(() => {
26
26
  var t;
27
27
  (t = v.value) == null || t.focus();
28
28
  });
29
29
  });
30
- const x = h(() => s.modelValue !== void 0 ? s.modelValue : s.default);
30
+ const x = w(() => s.modelValue !== void 0 ? s.modelValue : s.default);
31
31
  return (e, t) => (n(), i("div", U, [
32
32
  r.value ? T((n(), i("input", {
33
33
  key: 0,
@@ -79,8 +79,8 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
79
79
  default: d(() => [
80
80
  c("div", q, [
81
81
  o(a(f), {
82
- class: "h-2.5",
83
- icon: "Add"
82
+ icon: "Add",
83
+ size: "sm"
84
84
  })
85
85
  ]),
86
86
  t[2] || (t[2] = c("span", null, "Add value", -1))
@@ -99,7 +99,7 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
99
99
  c("span", W, C(x.value || "Select a value"), 1),
100
100
  o(a(f), {
101
101
  icon: "ChevronDown",
102
- size: "xs"
102
+ size: "md"
103
103
  })
104
104
  ]),
105
105
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAuXA,wBAMG"}
1
+ {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAqXA,wBAMG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as y, renderList as N, createBlock as v, withModifiers as w, createTextVNode as l, toDisplayString as x, createElementVNode as c, normalizeClass as D, createCommentVNode as B } from "vue";
1
+ import { defineComponent as b, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as y, renderList as N, createBlock as v, withModifiers as w, createTextVNode as c, toDisplayString as x, createElementVNode as l, normalizeClass as D, createCommentVNode as B } from "vue";
2
2
  import { useActiveEntities as I } from "../../store/active-entities.js";
3
3
  import { ScalarDropdown as j, ScalarDropdownItem as m, ScalarListboxCheckbox as z, ScalarIcon as d, ScalarDropdownDivider as V, ScalarButton as M } from "@scalar/components";
4
4
  import { useRouter as W } from "vue-router";
@@ -30,7 +30,7 @@ const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
30
30
  n(e(z), {
31
31
  selected: e(i).activeEnvironmentId === t.uid
32
32
  }, null, 8, ["selected"]),
33
- l(" " + x(t.name), 1)
33
+ c(" " + x(t.name), 1)
34
34
  ]),
35
35
  _: 2
36
36
  }, 1032, ["onClick"]))), 128)),
@@ -39,7 +39,7 @@ const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
39
39
  onClick: o[0] || (o[0] = w((t) => p(""), ["stop"]))
40
40
  }, {
41
41
  default: r(() => [
42
- c("div", {
42
+ l("div", {
43
43
  class: D([
44
44
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
45
45
  e(i).activeEnvironmentId === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
@@ -51,7 +51,7 @@ const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
51
51
  thickness: "3.5"
52
52
  })
53
53
  ], 2),
54
- o[1] || (o[1] = l(" No Environment "))
54
+ o[1] || (o[1] = c(" No Environment "))
55
55
  ]),
56
56
  _: 1
57
57
  }),
@@ -62,13 +62,13 @@ const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
62
62
  onClick: C
63
63
  }, {
64
64
  default: r(() => [
65
- c("div", R, [
65
+ l("div", R, [
66
66
  n(e(d), {
67
67
  icon: "Brackets",
68
68
  size: "sm"
69
69
  })
70
70
  ]),
71
- o[2] || (o[2] = c("span", { class: "leading-none" }, "Manage Environments", -1))
71
+ o[2] || (o[2] = l("span", { class: "leading-none" }, "Manage Environments", -1))
72
72
  ]),
73
73
  _: 1
74
74
  }))
@@ -82,12 +82,11 @@ const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
82
82
  default: r(() => {
83
83
  var t;
84
84
  return [
85
- c("h2", O, [
86
- l(x(((t = e(h)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
85
+ l("h2", O, [
86
+ c(x(((t = e(h)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
87
87
  n(e(d), {
88
- class: "size-3",
89
88
  icon: "ChevronDown",
90
- thickness: "3"
89
+ size: "md"
91
90
  })
92
91
  ])
93
92
  ];