@scalar/api-client 2.5.13 → 2.5.16

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 (127) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  7. package/dist/components/CodeInput/CodeInput.vue2.js +3 -3
  8. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
  9. package/dist/components/CommandPalette/CommandActionInput.vue.js +11 -10
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +10 -10
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +129 -116
  14. package/dist/components/DataTable/DataTableCell.vue.js +8 -8
  15. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  16. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  17. package/dist/components/Form/Form.vue.js +1 -1
  18. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  19. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +7 -7
  20. package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
  21. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +1 -1
  22. package/dist/components/ImportCollection/utils/get-openapi-version.d.ts +5 -0
  23. package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +1 -0
  24. package/dist/components/ImportCollection/utils/get-openapi-version.js +20 -0
  25. package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +2 -0
  26. package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +1 -0
  27. package/dist/components/ImportCollection/utils/import-collection.js +1 -1
  28. package/dist/components/ImportCollection/utils/{isDocument.d.ts → is-document.d.ts} +2 -2
  29. package/dist/components/ImportCollection/utils/is-document.d.ts.map +1 -0
  30. package/dist/components/ImportCollection/utils/is-document.js +9 -0
  31. package/dist/components/ImportCollection/utils/is-document.test.d.ts +2 -0
  32. package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +1 -0
  33. package/dist/components/ImportCollection/utils/is-url.d.ts +5 -0
  34. package/dist/components/ImportCollection/utils/is-url.d.ts.map +1 -0
  35. package/dist/components/ImportCollection/utils/is-url.js +9 -0
  36. package/dist/components/ImportCollection/utils/is-url.test.d.ts +2 -0
  37. package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +1 -0
  38. package/dist/components/OpenApiClientButton.vue.js +2 -2
  39. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  40. package/dist/components/Server/ServerDropdown.vue.js +8 -8
  41. package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
  42. package/dist/components/Server/ServerSelector.vue.js +13 -13
  43. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
  44. package/dist/components/Server/ServerVariablesSelect.vue.js +3 -3
  45. package/dist/components/TopNav/TopNav.vue.js +10 -10
  46. package/dist/components/TopNav/TopNavItem.vue.js +1 -1
  47. package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
  48. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +5 -1
  49. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  50. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +42 -36
  51. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +4 -4
  52. package/dist/hooks/useClientConfig.d.ts +42 -36
  53. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  54. package/dist/layouts/App/create-api-client-app.d.ts +202 -162
  55. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  56. package/dist/layouts/Modal/create-api-client-modal.d.ts +404 -324
  57. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  58. package/dist/layouts/Web/create-api-client-web.d.ts +202 -162
  59. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  60. package/dist/libs/create-client.d.ts +202 -162
  61. package/dist/libs/create-client.d.ts.map +1 -1
  62. package/dist/libs/find-request.d.ts +5 -5
  63. package/dist/libs/find-request.d.ts.map +1 -1
  64. package/dist/libs/get-request-uid-by-path-method.d.ts.map +1 -1
  65. package/dist/libs/get-request-uid-by-path-method.js +15 -7
  66. package/dist/libs/send-request/create-request-operation.js +10 -10
  67. package/dist/libs/send-request/create-request-operation.test.d.ts +33 -33
  68. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  69. package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
  70. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  71. package/dist/plugins/plugin-manager.d.ts +5 -3
  72. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  73. package/dist/plugins/plugin-manager.js +17 -9
  74. package/dist/plugins/plugin-manager.test.d.ts +2 -0
  75. package/dist/plugins/plugin-manager.test.d.ts.map +1 -0
  76. package/dist/store/active-entities.d.ts +33 -33
  77. package/dist/store/active-entities.d.ts.map +1 -1
  78. package/dist/store/request-example.d.ts +130 -130
  79. package/dist/store/request-example.d.ts.map +1 -1
  80. package/dist/store/requests.d.ts +55 -55
  81. package/dist/store/requests.d.ts.map +1 -1
  82. package/dist/store/security-schemes.d.ts +42 -2
  83. package/dist/store/security-schemes.d.ts.map +1 -1
  84. package/dist/store/store.d.ts +204 -164
  85. package/dist/store/store.d.ts.map +1 -1
  86. package/dist/style.css +1 -1
  87. package/dist/views/Collection/CollectionInfoForm.vue.js +2 -2
  88. package/dist/views/Collection/components/EnvironmentForm.vue.js +2 -2
  89. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
  90. package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
  91. package/dist/views/Collection/components/MarkdownInput.vue2.js +32 -26
  92. package/dist/views/Cookies/CookieForm.vue.js +1 -1
  93. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  94. package/dist/views/Cookies/Cookies.vue2.js +67 -61
  95. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  96. package/dist/views/Environment/Environment.vue2.js +98 -92
  97. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +1 -1
  98. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  99. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  100. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +126 -122
  101. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +1 -1
  102. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +22 -22
  103. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  104. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  105. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  106. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  107. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  108. package/dist/views/Request/RequestSidebarItem.vue2.js +9 -9
  109. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +9 -9
  110. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  111. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
  112. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  113. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  114. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
  115. package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
  116. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  117. package/dist/views/Request/libs/oauth2.js +39 -39
  118. package/dist/views/Settings/SettingsGeneral.vue.js +2 -2
  119. package/package.json +19 -19
  120. package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts +0 -5
  121. package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts.map +0 -1
  122. package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.js +0 -20
  123. package/dist/components/ImportCollection/utils/isDocument.d.ts.map +0 -1
  124. package/dist/components/ImportCollection/utils/isDocument.js +0 -7
  125. package/dist/components/ImportCollection/utils/isUrl.d.ts +0 -3
  126. package/dist/components/ImportCollection/utils/isUrl.d.ts.map +0 -1
  127. package/dist/components/ImportCollection/utils/isUrl.js +0 -6
@@ -1,14 +1,14 @@
1
- import { defineComponent as $, useId as K, ref as E, computed as p, createBlock as N, openBlock as d, withCtx as f, createVNode as y, unref as i, createElementVNode as a, createElementBlock as S, Fragment as k, createTextVNode as x, toDisplayString as A, createCommentVNode as j, normalizeClass as z } from "vue";
1
+ import { defineComponent as $, useId as N, ref as k, computed as h, createBlock as K, openBlock as m, withCtx as d, createVNode as f, unref as r, createElementVNode as a, createElementBlock as v, Fragment as x, createTextVNode as A, toDisplayString as C, createCommentVNode as j, normalizeClass as z } from "vue";
2
2
  import { useModal as W, ScalarComboboxMultiselect as Y, ScalarButton as F, ScalarIcon as H } from "@scalar/components";
3
- import { safeLocalStorage as J, CLIENT_LS_KEYS as G } from "@scalar/helpers/object/local-storage";
4
- import { isDefined as P } from "@scalar/oas-utils/helpers";
3
+ import { safeLocalStorage as J, CLIENT_LS_KEYS as P } from "@scalar/helpers/object/local-storage";
4
+ import { isDefined as G } from "@scalar/oas-utils/helpers";
5
5
  import Q from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
6
6
  import { useLayout as X } from "../../../../hooks/useLayout.js";
7
7
  import { useWorkspace as Z } from "../../../../store/store.js";
8
8
  import _ from "./DeleteRequestAuthModal.vue.js";
9
9
  import ee from "./RequestAuthDataTable.vue.js";
10
- import { getSecurityRequirements as te, formatComplexScheme as le, formatScheme as oe, getSchemeOptions as ne } from "../../libs/auth.js";
11
- const se = ["id"], re = { class: "-mx-1 flex flex-1" }, ie = { class: "text-c-1" }, ve = /* @__PURE__ */ $({
10
+ import { getSecurityRequirements as te, formatComplexScheme as oe, formatScheme as le, getSchemeOptions as ne } from "../../libs/auth.js";
11
+ const se = ["id"], re = { class: "absolute right-1 flex flex-1" }, ie = { class: "text-c-1" }, Se = /* @__PURE__ */ $({
12
12
  __name: "RequestAuth",
13
13
  props: {
14
14
  collection: {},
@@ -23,145 +23,149 @@ const se = ["id"], re = { class: "-mx-1 flex flex-1" }, ie = { class: "text-c-1"
23
23
  workspace: {}
24
24
  },
25
25
  setup(s) {
26
- const { layout: C } = X(), {
27
- securitySchemes: u,
26
+ const { layout: q } = X(), {
27
+ securitySchemes: c,
28
28
  securitySchemeMutators: O,
29
- requestMutators: T,
30
- collectionMutators: w
31
- } = Z(), q = K(), R = E(null), h = W(), v = E(
29
+ requestMutators: w,
30
+ collectionMutators: U
31
+ } = Z(), R = N(), S = k(null), p = W(), b = k(
32
32
  null
33
- ), V = p(() => {
34
- const e = te(s.operation, s.collection);
35
- return { filteredRequirements: e.filter((n) => Object.keys(n).length), requirements: e };
36
- }), g = p(() => {
37
- const { filteredRequirements: e, requirements: t } = V.value;
38
- if (!t.length)
33
+ ), V = k(!1), D = h(() => {
34
+ const t = te(s.operation, s.collection);
35
+ return { filteredRequirements: t.filter((o) => Object.keys(o).length), requirements: t };
36
+ }), g = h(() => {
37
+ const { filteredRequirements: t, requirements: e } = D.value;
38
+ if (!e.length)
39
39
  return null;
40
- const o = !t.some(
41
- (m) => Object.keys(m).length > 1
42
- ) && e.length < t.length, l = o ? "Unlock" : "Lock", r = o ? "Optional" : "Required", L = `${e.length === 1 ? (() => {
43
- const m = Object.keys(e[0] || {});
44
- return m.length > 1 ? m.join(" & ") : m[0] || "";
45
- })() : ""} ${r}`;
46
- return { icon: l, text: L };
47
- }), c = p(
48
- () => s.selectedSecuritySchemeUids.map((e) => {
49
- if (Array.isArray(e))
50
- return le(e, u);
51
- const t = u[e ?? ""];
52
- if (t)
53
- return oe(t);
54
- }).filter(P)
40
+ const l = !e.some(
41
+ (y) => Object.keys(y).length > 1
42
+ ) && t.length < e.length;
43
+ return { icon: l ? "Unlock" : "Lock", text: l ? "Optional" : "Required" };
44
+ }), u = h(
45
+ () => s.selectedSecuritySchemeUids.map((t) => {
46
+ if (Array.isArray(t))
47
+ return oe(t, c);
48
+ const e = c[t ?? ""];
49
+ if (e)
50
+ return le(e);
51
+ }).filter(G)
55
52
  );
56
- function M(e) {
57
- var o;
58
- const t = e.find((l) => l.payload), n = e.filter((l) => !l.payload).map(({ id: l }) => {
59
- const r = l.split(",");
60
- return r.length > 1 ? r : l;
53
+ function L(t) {
54
+ var l;
55
+ const e = t.find((n) => n.payload), o = t.filter((n) => !n.payload).map(({ id: n }) => {
56
+ const i = n.split(",");
57
+ return i.length > 1 ? i : n;
61
58
  });
62
- if (t != null && t.payload) {
63
- const l = O.add(
64
- t.payload,
65
- (o = s.collection) == null ? void 0 : o.uid
59
+ if (e != null && e.payload) {
60
+ const n = O.add(
61
+ e.payload,
62
+ (l = s.collection) == null ? void 0 : l.uid
66
63
  );
67
- l && n.push(l.uid);
64
+ n && o.push(n.uid);
68
65
  }
69
- D(n);
66
+ E(o);
70
67
  }
71
- const D = (e) => {
72
- var t;
68
+ const E = (t) => {
69
+ var e;
73
70
  if (s.collection.useCollectionSecurity) {
74
- if (w.edit(s.collection.uid, "selectedSecuritySchemeUids", e), !s.persistAuth)
71
+ if (U.edit(s.collection.uid, "selectedSecuritySchemeUids", t), !s.persistAuth)
75
72
  return;
76
- const n = e.map((o) => {
77
- var l;
78
- return Array.isArray(o) ? o.map((r) => {
79
- var b;
80
- return (b = u[r]) == null ? void 0 : b.nameKey;
81
- }) : (l = u[o]) == null ? void 0 : l.nameKey;
73
+ const o = t.map((l) => {
74
+ var n;
75
+ return Array.isArray(l) ? l.map((i) => {
76
+ var y;
77
+ return (y = c[i]) == null ? void 0 : y.nameKey;
78
+ }) : (n = c[l]) == null ? void 0 : n.nameKey;
82
79
  });
83
80
  J().setItem(
84
- G.SELECTED_SECURITY_SCHEMES,
85
- JSON.stringify(n)
81
+ P.SELECTED_SECURITY_SCHEMES,
82
+ JSON.stringify(o)
86
83
  );
87
- } else (t = s.operation) != null && t.uid && T.edit(s.operation.uid, "selectedSecuritySchemeUids", e);
84
+ } else (e = s.operation) != null && e.uid && w.edit(s.operation.uid, "selectedSecuritySchemeUids", t);
88
85
  };
89
- function U({ id: e, label: t }) {
90
- v.value = { id: e, label: t }, h.show();
86
+ function M({ id: t, label: e }) {
87
+ b.value = { id: t, label: e }, p.show();
91
88
  }
92
- const B = (e) => {
93
- var n;
94
- if (!e)
89
+ const T = (t) => {
90
+ var o;
91
+ if (!t)
95
92
  return;
96
- const t = s.selectedSecuritySchemeUids.filter((o) => {
97
- const l = e.split(",");
98
- return l.length > 1 && Array.isArray(o) && l.length === o.length ? o.every((r) => !l.includes(r)) : o !== e;
93
+ const e = s.selectedSecuritySchemeUids.filter((l) => {
94
+ const n = t.split(",");
95
+ return n.length > 1 && Array.isArray(l) && n.length === l.length ? l.every((i) => !n.includes(i)) : l !== t;
99
96
  });
100
- D(t), (n = R.value) == null || n.$el.focus(), h.hide();
101
- }, I = p(
97
+ E(e), (o = S.value) == null || o.$el.focus(), p.hide();
98
+ }, B = h(
102
99
  () => {
103
- var e;
100
+ var t;
104
101
  return ne(
105
- V.value.filteredRequirements,
106
- ((e = s.collection) == null ? void 0 : e.securitySchemes) ?? [],
107
- u,
108
- C === "modal" || s.layout === "reference"
102
+ D.value.filteredRequirements,
103
+ ((t = s.collection) == null ? void 0 : t.securitySchemes) ?? [],
104
+ c,
105
+ q === "modal" || s.layout === "reference"
109
106
  );
110
107
  }
111
- );
112
- return (e, t) => (d(), N(Q, {
113
- class: "group/params",
114
- itemCount: c.value.length,
115
- layout: e.layout
108
+ ), I = (t) => {
109
+ var e;
110
+ V.value && t.stopPropagation(), (e = S.value) == null || e.$el.click();
111
+ };
112
+ return (t, e) => (m(), K(Q, {
113
+ class: "group/params relative",
114
+ itemCount: u.value.length,
115
+ layout: t.layout,
116
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => V.value = o)
116
117
  }, {
117
- title: f(() => [
118
+ title: d(() => [
118
119
  a("div", {
119
- id: i(q),
120
- class: "inline-flex items-center gap-1"
120
+ id: r(R),
121
+ class: "inline-flex items-center gap-0.5"
121
122
  }, [
122
- a("span", null, A(e.title), 1),
123
- g.value ? (d(), S("span", {
123
+ a("span", null, C(t.title), 1),
124
+ g.value ? (m(), v("span", {
124
125
  key: 0,
125
- class: z(["text-c-3 text-xs leading-[normal]", { "text-c-1": g.value.text === "Required" }])
126
- }, A(g.value.text), 3)) : j("", !0)
126
+ class: z(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": g.value.text === "Required" }]),
127
+ onClick: I
128
+ }, C(g.value.text), 3)) : j("", !0)
127
129
  ], 8, se)
128
130
  ]),
129
- actions: f(() => [
131
+ actions: d(() => [
130
132
  a("div", re, [
131
- y(i(Y), {
133
+ f(r(Y), {
132
134
  class: "w-72 text-xs",
133
- isDeletable: i(C) !== "modal" && e.layout !== "reference",
134
- modelValue: c.value,
135
+ isDeletable: r(q) !== "modal" && t.layout !== "reference",
136
+ modelValue: u.value,
137
+ teleport: "",
135
138
  multiple: "",
136
- options: I.value,
137
- onDelete: U,
138
- "onUpdate:modelValue": M
139
+ placement: "bottom-end",
140
+ options: B.value,
141
+ onDelete: M,
142
+ "onUpdate:modelValue": L
139
143
  }, {
140
- default: f(() => [
141
- y(i(F), {
144
+ default: d(() => [
145
+ f(r(F), {
142
146
  ref_key: "comboboxButtonRef",
143
- ref: R,
144
- "aria-describedby": i(q),
147
+ ref: S,
148
+ "aria-describedby": r(R),
145
149
  class: "hover:bg-b-3 text-c-1 hover:text-c-1 h-fit px-1.5 py-0.25 font-normal",
146
150
  fullWidth: "",
147
151
  variant: "ghost"
148
152
  }, {
149
- default: f(() => {
150
- var n;
153
+ default: d(() => {
154
+ var o;
151
155
  return [
152
156
  a("div", ie, [
153
- c.value.length === 0 ? (d(), S(k, { key: 0 }, [
154
- t[2] || (t[2] = a("span", { class: "sr-only" }, "Select", -1)),
155
- t[3] || (t[3] = x(" Auth Type "))
156
- ], 64)) : c.value.length === 1 ? (d(), S(k, { key: 1 }, [
157
- t[4] || (t[4] = a("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
158
- x(" " + A((n = c.value[0]) == null ? void 0 : n.label), 1)
159
- ], 64)) : (d(), S(k, { key: 2 }, [
160
- t[5] || (t[5] = x(" Multiple ")),
161
- t[6] || (t[6] = a("span", { class: "sr-only" }, "Auth Types Selected", -1))
157
+ u.value.length === 0 ? (m(), v(x, { key: 0 }, [
158
+ e[3] || (e[3] = a("span", { class: "sr-only" }, "Select", -1)),
159
+ e[4] || (e[4] = A(" Auth Type "))
160
+ ], 64)) : u.value.length === 1 ? (m(), v(x, { key: 1 }, [
161
+ e[5] || (e[5] = a("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
162
+ A(" " + C((o = u.value[0]) == null ? void 0 : o.label), 1)
163
+ ], 64)) : (m(), v(x, { key: 2 }, [
164
+ e[6] || (e[6] = A(" Multiple ")),
165
+ e[7] || (e[7] = a("span", { class: "sr-only" }, "Auth Types Selected", -1))
162
166
  ], 64))
163
167
  ]),
164
- y(i(H), {
168
+ f(r(H), {
165
169
  class: "ml-1 shrink-0",
166
170
  icon: "ChevronDown",
167
171
  size: "sm"
@@ -175,24 +179,24 @@ const se = ["id"], re = { class: "-mx-1 flex flex-1" }, ie = { class: "text-c-1"
175
179
  }, 8, ["isDeletable", "modelValue", "options"])
176
180
  ])
177
181
  ]),
178
- default: f(() => [
179
- y(ee, {
180
- collection: e.collection,
181
- envVariables: e.envVariables,
182
- environment: e.environment,
183
- layout: e.layout,
184
- persistAuth: e.persistAuth,
185
- selectedSchemeOptions: c.value,
186
- server: e.server,
187
- workspace: e.workspace
182
+ default: d(() => [
183
+ f(ee, {
184
+ collection: t.collection,
185
+ envVariables: t.envVariables,
186
+ environment: t.environment,
187
+ layout: t.layout,
188
+ persistAuth: t.persistAuth,
189
+ selectedSchemeOptions: u.value,
190
+ server: t.server,
191
+ workspace: t.workspace
188
192
  }, null, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "selectedSchemeOptions", "server", "workspace"]),
189
- y(_, {
190
- scheme: v.value,
191
- state: i(h),
192
- onClose: t[0] || (t[0] = (n) => i(h).hide()),
193
- onDelete: t[1] || (t[1] = (n) => {
194
- var o;
195
- return B((o = v.value) == null ? void 0 : o.id);
193
+ f(_, {
194
+ scheme: b.value,
195
+ state: r(p),
196
+ onClose: e[0] || (e[0] = (o) => r(p).hide()),
197
+ onDelete: e[1] || (e[1] = (o) => {
198
+ var l;
199
+ return T((l = b.value) == null ? void 0 : l.id);
196
200
  })
197
201
  }, null, 8, ["scheme", "state"])
198
202
  ]),
@@ -201,5 +205,5 @@ const se = ["id"], re = { class: "-mx-1 flex flex-1" }, ie = { class: "text-c-1"
201
205
  }
202
206
  });
203
207
  export {
204
- ve as default
208
+ Se as default
205
209
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthTab.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7289bc09"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-292b33c8"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, computed as P, ref as R, onMounted as q, createElementBlock as i, openBlock as l, Fragment as p, renderList as C, createBlock as S, createCommentVNode as v, unref as d, normalizeClass as g, withCtx as n, createVNode as u, createTextVNode as m, toDisplayString as _, mergeProps as V, createElementVNode as A, capitalize as U } from "vue";
1
+ import { defineComponent as F, computed as P, ref as R, onMounted as q, createElementBlock as i, openBlock as l, Fragment as p, renderList as C, createBlock as S, createCommentVNode as v, unref as d, normalizeClass as g, withCtx as n, createVNode as u, createTextVNode as V, toDisplayString as _, mergeProps as k, createElementVNode as A, capitalize as U } from "vue";
2
2
  import { ScalarMarkdown as z } from "@scalar/components";
3
3
  import { safeLocalStorage as I, CLIENT_LS_KEYS as N } from "@scalar/helpers/object/local-storage";
4
4
  import { isDefined as j } from "@scalar/oas-utils/helpers";
@@ -10,7 +10,7 @@ import f from "../../../../components/DataTable/DataTableRow.vue.js";
10
10
  import B from "../../../../components/DataTable/DataTableCell.vue.js";
11
11
  const J = {
12
12
  key: 0,
13
- class: "flex min-h-8 border-t text-sm"
13
+ class: "flex min-h-8 border-t text-base"
14
14
  }, Y = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, W = ["onClick"], G = { class: "relative z-10" }, ue = /* @__PURE__ */ F({
15
15
  __name: "RequestAuthTab",
16
16
  props: {
@@ -37,7 +37,7 @@ const J = {
37
37
  return `${U(t.nameKey)}: ${s.value ? s.value : (o == null ? void 0 : o.type) ?? ""}${r}`;
38
38
  }
39
39
  return t.type === "http" ? `${U(t.nameKey)}: ${t.scheme}${r}` : `${e}${r}`;
40
- }, k = (t, r, e) => {
40
+ }, m = (t, r, e) => {
41
41
  H(t, r, e, T, c.persistAuth);
42
42
  };
43
43
  q(() => {
@@ -85,7 +85,7 @@ const J = {
85
85
  class: g(["text-c-2 flex items-center pl-3", t.layout === "reference" && "border-b"])
86
86
  }, {
87
87
  default: n(() => [
88
- m(_(O(e)), 1)
88
+ V(_(O(e)), 1)
89
89
  ]),
90
90
  _: 2
91
91
  }, 1032, ["class"])
@@ -112,15 +112,15 @@ const J = {
112
112
  (e == null ? void 0 : e.type) === "http" ? (l(), i(p, { key: 2 }, [
113
113
  e.scheme === "bearer" ? (l(), S(d(f), { key: 0 }, {
114
114
  default: n(() => [
115
- u(w, V({ ref_for: !0 }, b, {
115
+ u(w, k({ ref_for: !0 }, b, {
116
116
  containerClass: t.layout === "reference" && "border-t",
117
117
  modelValue: e.token,
118
118
  placeholder: "Token",
119
119
  type: "password",
120
- "onUpdate:modelValue": (o) => k(e.uid, "token", o)
120
+ "onUpdate:modelValue": (o) => m(e.uid, "token", o)
121
121
  }), {
122
122
  default: n(() => r[0] || (r[0] = [
123
- m(" Bearer Token ")
123
+ V(" Bearer Token ")
124
124
  ])),
125
125
  _: 2
126
126
  }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
@@ -129,16 +129,16 @@ const J = {
129
129
  }, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (l(), i(p, { key: 1 }, [
130
130
  u(d(f), null, {
131
131
  default: n(() => [
132
- u(w, V({ ref_for: !0 }, b, {
132
+ u(w, k({ ref_for: !0 }, b, {
133
133
  class: "text-c-2",
134
134
  containerClass: t.layout === "reference" && "auth-blend-required border-t",
135
135
  modelValue: e.username,
136
136
  placeholder: "janedoe",
137
137
  required: "",
138
- "onUpdate:modelValue": (o) => k(e.uid, "username", o)
138
+ "onUpdate:modelValue": (o) => m(e.uid, "username", o)
139
139
  }), {
140
140
  default: n(() => r[1] || (r[1] = [
141
- m(" Username ")
141
+ V(" Username ")
142
142
  ])),
143
143
  _: 2
144
144
  }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
@@ -147,14 +147,14 @@ const J = {
147
147
  }, 1024),
148
148
  u(d(f), null, {
149
149
  default: n(() => [
150
- u(w, V({ ref_for: !0 }, b, {
150
+ u(w, k({ ref_for: !0 }, b, {
151
151
  modelValue: e.password,
152
152
  placeholder: "********",
153
153
  type: "password",
154
- "onUpdate:modelValue": (o) => k(e.uid, "password", o)
154
+ "onUpdate:modelValue": (o) => m(e.uid, "password", o)
155
155
  }), {
156
156
  default: n(() => r[2] || (r[2] = [
157
- m(" Password ")
157
+ V(" Password ")
158
158
  ])),
159
159
  _: 2
160
160
  }, 1040, ["modelValue", "onUpdate:modelValue"])
@@ -165,14 +165,14 @@ const J = {
165
165
  ], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (l(), i(p, { key: 3 }, [
166
166
  u(d(f), null, {
167
167
  default: n(() => [
168
- u(w, V({ ref_for: !0 }, b, {
168
+ u(w, k({ ref_for: !0 }, b, {
169
169
  containerClass: t.layout === "reference" && "border-t",
170
170
  modelValue: e.name,
171
171
  placeholder: "api-key",
172
- "onUpdate:modelValue": (o) => k(e.uid, "name", o)
172
+ "onUpdate:modelValue": (o) => m(e.uid, "name", o)
173
173
  }), {
174
174
  default: n(() => r[3] || (r[3] = [
175
- m(" Name ")
175
+ V(" Name ")
176
176
  ])),
177
177
  _: 2
178
178
  }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
@@ -181,14 +181,14 @@ const J = {
181
181
  }, 1024),
182
182
  u(d(f), null, {
183
183
  default: n(() => [
184
- u(w, V({ ref_for: !0 }, b, {
184
+ u(w, k({ ref_for: !0 }, b, {
185
185
  modelValue: e.value,
186
186
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
187
187
  type: "password",
188
- "onUpdate:modelValue": (o) => k(e.uid, "value", o)
188
+ "onUpdate:modelValue": (o) => m(e.uid, "value", o)
189
189
  }), {
190
190
  default: n(() => r[4] || (r[4] = [
191
- m(" Value ")
191
+ V(" Value ")
192
192
  ])),
193
193
  _: 2
194
194
  }, 1040, ["modelValue", "onUpdate:modelValue"])
@@ -202,7 +202,7 @@ const J = {
202
202
  A("div", Y, [
203
203
  (l(!0), i(p, null, C(e == null ? void 0 : e.flows, (o, a, y) => (l(), i("button", {
204
204
  key: a,
205
- class: g(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium", {
205
+ class: g(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
206
206
  "!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (s.value === a || y === 0 && !s.value),
207
207
  "!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (s.value === a || y === 0 && !s.value)
208
208
  }]),
@@ -217,7 +217,7 @@ const J = {
217
217
  _: 2
218
218
  }, 1024),
219
219
  (l(!0), i(p, null, C(e == null ? void 0 : e.flows, (o, a, y) => (l(), i(p, { key: a }, [
220
- s.value === a || y === 0 && !s.value ? (l(), S(Q, V({
220
+ s.value === a || y === 0 && !s.value ? (l(), S(Q, k({
221
221
  key: 0,
222
222
  ref_for: !0
223
223
  }, b, {
@@ -231,7 +231,7 @@ const J = {
231
231
  ], 64))), 128))
232
232
  ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (l(), i("div", {
233
233
  key: 5,
234
- class: g(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-sm", { "rounded-b-lg": t.layout === "reference" }])
234
+ class: g(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": t.layout === "reference" }])
235
235
  }, " Coming soon ", 2)) : v("", !0)
236
236
  ], 64))), 128));
237
237
  }
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-124bfbc5"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-49d6ce0d"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestCodeExample.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-92438804"]]);
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-9e7d5436"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestTable.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-d8146cd8"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5831422d"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+rBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAY,QAAQ,EAAO,MAAM,KAAK,CAAA;AAU7C,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA4VF,iBAAS,cAAc;WAguBT,OAAO,IAA6B;;oBA1iCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KA5oBmB;;;;;;;oCA4oBnB,KAxoBO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqyBQ,GAAG,8CACgB,GAAG,yBAC/B,GAAD,6DACe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAg9BtB;AAqCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+rBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAY,QAAQ,EAAO,MAAM,KAAK,CAAA;AAU7C,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA4VF,iBAAS,cAAc;WA+tBT,OAAO,IAA6B;;oBAziCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KA5oBmB;;;;;;;oCA4oBnB,KAxoBO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqyBM,GAAG,8CACgB,GAAG,yBAC7B,GAAH,6DACe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+8BpB;AAqCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3e34b330"]]);
5
+ const d = /* @__PURE__ */ o(t, [["__scopeId", "data-v-4dedda07"]]);
6
6
  export {
7
- a as default
7
+ d as default
8
8
  };
@@ -10,7 +10,7 @@ import { PathId as $ } from "../../routes.js";
10
10
  import Ce from "../../components/HttpMethod/HttpMethod.vue.js";
11
11
  import { getModifiers as Re } from "../../libs/hot-keys.js";
12
12
  import { useWorkspace as Ie } from "../../store/store.js";
13
- const Te = { class: "line-clamp-1 w-full pl-2 font-medium break-all" }, Me = { class: "flex flex-row items-center gap-1" }, $e = { class: "relative" }, ze = { class: "flex items-start" }, Ee = { class: "flex flex-1 flex-row justify-between font-medium" }, Se = { class: "line-clamp-1 w-full text-left break-all" }, je = { class: "relative flex h-fit justify-end" }, Be = {
13
+ const Te = { class: "line-clamp-1 w-full pl-2 break-all" }, Me = { class: "flex flex-row items-center gap-1" }, $e = { class: "relative" }, ze = { class: "flex items-start" }, Ee = { class: "flex flex-1 flex-row justify-between font-medium" }, Se = { class: "line-clamp-1 w-full text-left break-all" }, je = { class: "relative flex h-fit justify-end" }, Be = {
14
14
  class: "flex items-center justify-center",
15
15
  type: "button"
16
16
  }, We = ["aria-expanded"], Ae = { class: "flex h-5 max-w-[14px] items-center justify-center" }, Ne = { class: "flex flex-1 flex-row justify-between" }, Oe = { class: "line-clamp-1 w-full text-left font-medium break-all" }, Pe = { class: "relative flex h-fit justify-end" }, Ve = {
@@ -28,8 +28,8 @@ const Te = { class: "line-clamp-1 w-full pl-2 font-medium break-all" }, Me = { c
28
28
  emits: ["onDragEnd", "newTab", "openMenu"],
29
29
  setup(l, { emit: ne }) {
30
30
  ve((e) => ({
31
- d6dab45e: ae.value,
32
- "07f1324d": re.value
31
+ eae2c57a: ae.value,
32
+ "7c91ad9b": re.value
33
33
  }));
34
34
  const oe = ne, { activeCollection: le, activeRequest: P, activeRouterParams: se, activeWorkspace: U } = De(), {
35
35
  collections: C,
@@ -59,7 +59,7 @@ const Te = { class: "line-clamp-1 w-full pl-2 font-medium break-all" }, Me = { c
59
59
  [$.Collection]: e.uid
60
60
  }
61
61
  } : void 0,
62
- warning: "This cannot be undone. Youre about to delete the collection and all folders and requests inside it.",
62
+ warning: "This cannot be undone. You're about to delete the collection and all folders and requests inside it.",
63
63
  edit: (k, X) => {
64
64
  S.edit(e.uid, "info.title", k), X && S.edit(e.uid, "x-scalar-icon", X);
65
65
  },
@@ -71,7 +71,7 @@ const Te = { class: "line-clamp-1 w-full pl-2 font-medium break-all" }, Me = { c
71
71
  entity: t,
72
72
  resourceTitle: "Tag",
73
73
  children: t.children,
74
- warning: "This cannot be undone. Youre about to delete the tag and all requests inside it",
74
+ warning: "This cannot be undone. You're about to delete the tag and all requests inside it",
75
75
  edit: (k) => V.edit(t.uid, "name", k),
76
76
  delete: () => l.parentUids[0] && V.delete(t, l.parentUids[0])
77
77
  } : r ? {
@@ -86,7 +86,7 @@ const Te = { class: "line-clamp-1 w-full pl-2 font-medium break-all" }, Me = { c
86
86
  method: r.method,
87
87
  entity: r,
88
88
  resourceTitle: "Request",
89
- warning: "This cannot be undone. Youre about to delete the request.",
89
+ warning: "This cannot be undone. You're about to delete the request.",
90
90
  children: r.examples.slice(1),
91
91
  edit: (k) => j.edit(r.uid, "summary", k),
92
92
  delete: () => l.parentUids[0] && j.delete(r, l.parentUids[0])
@@ -103,7 +103,7 @@ const Te = { class: "line-clamp-1 w-full pl-2 font-medium break-all" }, Me = { c
103
103
  method: (Q = z[a.requestUid]) == null ? void 0 : Q.method,
104
104
  entity: a,
105
105
  resourceTitle: "Example",
106
- warning: "This cannot be undone. Youre about to delete the example from the request.",
106
+ warning: "This cannot be undone. You're about to delete the example from the request.",
107
107
  children: [],
108
108
  edit: (k) => F.edit(a.uid, "name", k),
109
109
  delete: () => F.delete(a)
@@ -178,7 +178,7 @@ const Te = { class: "line-clamp-1 w-full pl-2 font-medium break-all" }, Me = { c
178
178
  ref_key: "draggableRef",
179
179
  ref: B,
180
180
  ceiling: L.value.ceiling,
181
- class: "gap-1/2 flex flex-1 flex-col text-sm",
181
+ class: "gap-1/2 flex flex-1 flex-col text-base",
182
182
  floor: L.value.floor,
183
183
  isDraggable: e.isDraggable,
184
184
  isDroppable: e.isDroppable,
@@ -203,7 +203,7 @@ const Te = { class: "line-clamp-1 w-full pl-2 font-medium break-all" }, Me = { c
203
203
  s("div", {
204
204
  class: y(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2", [
205
205
  O,
206
- o || de.value ? "bg-sidebar-b-active text-sidebar-c-active transition-none" : "text-sidebar-c-2"
206
+ o || de.value ? "bg-sidebar-b-active text-sidebar-c-active font-medium transition-none" : "text-sidebar-c-2"
207
207
  ]])
208
208
  }, [
209
209
  s("span", Te, A(i.value.title || "Untitled"), 1),