@scalar/api-client 2.5.35 → 2.6.0

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 (203) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +0 -3
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  5. package/dist/components/CodeInput/CodeInput.vue2.js +60 -62
  6. package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -3
  7. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  8. package/dist/components/CodeInput/codeVariableWidget.js +25 -32
  9. package/dist/components/DataTable/DataTableInput.vue.d.ts +0 -2
  10. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  11. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  12. package/dist/components/DataTable/DataTableInput.vue2.js +17 -19
  13. package/dist/layouts/App/create-api-client-app.d.ts +10 -10
  14. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  15. package/dist/layouts/Modal/create-api-client-modal.d.ts +20 -20
  16. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  17. package/dist/layouts/Web/create-api-client-web.d.ts +10 -10
  18. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  19. package/dist/libs/create-client.d.ts +10 -10
  20. package/dist/libs/create-client.d.ts.map +1 -1
  21. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  22. package/dist/store/security-schemes.d.ts +10 -10
  23. package/dist/store/security-schemes.d.ts.map +1 -1
  24. package/dist/store/store.d.ts +10 -10
  25. package/dist/store/store.d.ts.map +1 -1
  26. package/dist/style.css +1 -1
  27. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts +2 -0
  28. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts.map +1 -0
  29. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts +14 -0
  30. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -0
  31. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +55 -0
  32. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue2.js +4 -0
  33. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts +2 -0
  34. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts.map +1 -0
  35. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +104 -0
  36. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -0
  37. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +7 -0
  38. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +237 -0
  39. package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +41 -0
  40. package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts.map +1 -0
  41. package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +20 -0
  42. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts +2 -0
  43. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts.map +1 -0
  44. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +20 -0
  45. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts.map +1 -0
  46. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +4 -0
  47. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts +2 -0
  48. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts.map +1 -0
  49. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +17 -0
  50. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -0
  51. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +30 -0
  52. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts +2 -0
  53. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts.map +1 -0
  54. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +29 -0
  55. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -0
  56. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +209 -0
  57. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts +2 -0
  58. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts.map +1 -0
  59. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +26 -0
  60. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -0
  61. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +29 -0
  62. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts +2 -0
  63. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts.map +1 -0
  64. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +4 -0
  65. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts.map +1 -0
  66. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.js +10 -0
  67. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts +2 -0
  68. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts.map +1 -0
  69. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts +7 -0
  70. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts.map +1 -0
  71. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.js +28 -0
  72. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts +2 -0
  73. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts.map +1 -0
  74. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +52 -0
  75. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -0
  76. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +59 -0
  77. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts +2 -0
  78. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts.map +1 -0
  79. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +12 -0
  80. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -0
  81. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +57 -0
  82. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts +2 -0
  83. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts.map +1 -0
  84. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +25 -0
  85. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -0
  86. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +212 -0
  87. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts +2 -0
  88. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts.map +1 -0
  89. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +15 -0
  90. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts.map +1 -0
  91. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.js +55 -0
  92. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts +2 -0
  93. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts.map +1 -0
  94. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts +6 -0
  95. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts.map +1 -0
  96. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +18 -0
  97. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts +2 -0
  98. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts.map +1 -0
  99. package/dist/v2/blocks/operation-code-sample/index.d.ts +3 -0
  100. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -0
  101. package/dist/v2/blocks/operation-code-sample/index.js +6 -0
  102. package/dist/v2/blocks/operation-code-sample/types.d.ts +29 -0
  103. package/dist/v2/blocks/operation-code-sample/types.d.ts.map +1 -0
  104. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts +2 -0
  105. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts.map +1 -0
  106. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +65 -0
  107. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -0
  108. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +7 -0
  109. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +122 -0
  110. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts +2 -0
  111. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts.map +1 -0
  112. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts +25 -0
  113. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts.map +1 -0
  114. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +7 -0
  115. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +90 -0
  116. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +55 -0
  117. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -0
  118. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +39 -0
  119. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +2 -0
  120. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -0
  121. package/dist/v2/blocks/scalar-address-bar-block/index.js +4 -0
  122. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts +2 -0
  123. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts.map +1 -0
  124. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +49 -0
  125. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -0
  126. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -0
  127. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +172 -0
  128. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts +2 -0
  129. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts.map +1 -0
  130. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +17 -0
  131. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +1 -0
  132. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +52 -0
  133. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +4 -0
  134. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts +2 -0
  135. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts.map +1 -0
  136. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +45 -0
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +254 -0
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +4 -0
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts +2 -0
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts.map +1 -0
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +16 -0
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -0
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +134 -0
  145. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +4 -0
  146. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts +2 -0
  147. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts.map +1 -0
  148. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +33 -0
  149. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -0
  150. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +7 -0
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +82 -0
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +48 -0
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -0
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +48 -0
  155. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +4 -0
  156. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts +2 -0
  157. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts.map +1 -0
  158. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +29 -0
  159. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
  160. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +232 -0
  161. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +4 -0
  162. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +29 -0
  163. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +1 -0
  164. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.d.ts +9 -0
  165. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.d.ts.map +1 -0
  166. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +121 -0
  167. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +34 -0
  168. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -0
  169. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +111 -0
  170. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts +2 -0
  171. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts.map +1 -0
  172. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +39 -0
  173. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -0
  174. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +52 -0
  175. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts +2 -0
  176. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts.map +1 -0
  177. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +2 -0
  178. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -0
  179. package/dist/v2/blocks/scalar-auth-selector-block/index.js +4 -0
  180. package/dist/v2/components/server/ServerDropdown.test.d.ts +2 -0
  181. package/dist/v2/components/server/ServerDropdown.test.d.ts.map +1 -0
  182. package/dist/v2/components/server/ServerDropdown.vue.d.ts +33 -0
  183. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -0
  184. package/dist/v2/components/server/ServerDropdown.vue.js +87 -0
  185. package/dist/v2/components/server/ServerDropdown.vue2.js +4 -0
  186. package/dist/v2/components/server/ServerDropdownItem.test.d.ts +2 -0
  187. package/dist/v2/components/server/ServerDropdownItem.test.d.ts.map +1 -0
  188. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +21 -0
  189. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -0
  190. package/dist/v2/components/server/ServerDropdownItem.vue.js +7 -0
  191. package/dist/v2/components/server/ServerDropdownItem.vue2.js +51 -0
  192. package/dist/v2/components/server/index.d.ts +2 -0
  193. package/dist/v2/components/server/index.d.ts.map +1 -0
  194. package/dist/v2/components/server/index.js +4 -0
  195. package/dist/views/Request/Request.vue.js +1 -1
  196. package/dist/views/Request/Request.vue2.js +4 -4
  197. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +2 -2
  198. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  199. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +2 -2
  200. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  201. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  202. package/dist/vitest.setup.d.ts.map +1 -1
  203. package/package.json +14 -10
@@ -0,0 +1,52 @@
1
+ import { isDefined as c } from "@scalar/oas-utils/helpers";
2
+ import { getResolvedRef as u } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { authOptions as d } from "./auth-options.js";
4
+ const l = ({
5
+ name: o,
6
+ type: n,
7
+ value: i
8
+ }) => ({
9
+ id: o,
10
+ label: n === "openIdConnect" ? `${o} (coming soon)` : o,
11
+ value: i
12
+ }), m = (o) => l(
13
+ Object.keys(o).reduce(
14
+ (n, i, r) => (n.name += `${r > 0 ? " & " : ""}${i}`, n),
15
+ { type: "complex", name: "", value: o }
16
+ )
17
+ ), v = (o, n, i = !1) => {
18
+ {
19
+ const r = o.map((e) => {
20
+ const t = Object.keys(e);
21
+ if (t.length > 1)
22
+ return m(e);
23
+ if (t[0]) {
24
+ const p = u(n[t[0]]);
25
+ return p ? l({ name: t[0], type: p.type, value: e }) : void 0;
26
+ }
27
+ }).filter(c), s = Object.keys(n).filter((e) => !r.some((t) => t.id === e)).map((e) => {
28
+ const t = u(n[e]);
29
+ if (t)
30
+ return l({ name: e, type: t.type, value: { [e]: [] } });
31
+ }).filter(c), a = [
32
+ { label: "Required authentication", options: r },
33
+ { label: "Available authentication", options: s }
34
+ ];
35
+ return i ? r.length ? a : s : (a.push({
36
+ label: "Add new authentication",
37
+ options: Object.entries(d).map(([e, t]) => ({
38
+ id: e,
39
+ label: t.label,
40
+ value: { [e]: [] },
41
+ payload: t.payload,
42
+ // Disable deleting built-in options
43
+ isDeletable: !1
44
+ }))
45
+ }), a);
46
+ }
47
+ };
48
+ export {
49
+ m as formatComplexScheme,
50
+ l as formatScheme,
51
+ v as getSecuritySchemeOptions
52
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=security-scheme.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-scheme.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { default as AuthSelector } from './components/AuthSelector.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./components/AuthSelector.vue.js";
2
+ export {
3
+ o as AuthSelector
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ServerDropdown.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerDropdown.test.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ import type { ClientLayout } from '../../../hooks/index.js';
3
+ type __VLS_Props = {
4
+ /** List of servers that are available for the operation/document level */
5
+ servers: ServerObject[];
6
+ /** Currently selected server */
7
+ server: ServerObject | undefined;
8
+ /** The id of the target to use for the popover (e.g. address bar) */
9
+ target: string;
10
+ /** Client layout */
11
+ layout: ClientLayout;
12
+ };
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ addServer: () => any;
15
+ "update:variable": (payload: {
16
+ key: string;
17
+ value: string;
18
+ }) => any;
19
+ "update:selectedServer": (payload: {
20
+ id: string;
21
+ }) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onAddServer?: (() => any) | undefined;
24
+ "onUpdate:variable"?: ((payload: {
25
+ key: string;
26
+ value: string;
27
+ }) => any) | undefined;
28
+ "onUpdate:selectedServer"?: ((payload: {
29
+ id: string;
30
+ }) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ export default _default;
33
+ //# sourceMappingURL=ServerDropdown.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,0EAA0E;IAC1E,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;;;;aAMuC,MAAM;eAAS,MAAM;;;YADhB,MAAM;;;;;aACX,MAAM;eAAS,MAAM;;;YADhB,MAAM;;;AAwOpD,wBAOG"}
@@ -0,0 +1,87 @@
1
+ import { defineComponent as y, computed as m, createBlock as c, openBlock as t, unref as o, withCtx as l, createVNode as n, createElementBlock as d, Fragment as v, createElementVNode as s, createTextVNode as h, toDisplayString as w, createCommentVNode as C, renderList as B } from "vue";
2
+ import { ScalarPopover as z, ScalarButton as A, ScalarIcon as f, ScalarFloatingBackdrop as N } from "@scalar/components";
3
+ import U from "./ServerDropdownItem.vue.js";
4
+ const V = ["onClick"], D = { class: "flex h-4 w-4 items-center justify-center" }, I = /* @__PURE__ */ y({
5
+ __name: "ServerDropdown",
6
+ props: {
7
+ servers: {},
8
+ server: {},
9
+ target: {},
10
+ layout: {}
11
+ },
12
+ emits: ["update:selectedServer", "update:variable", "addServer"],
13
+ setup(a, { emit: b }) {
14
+ const i = b, g = m(
15
+ () => a.servers.map((r) => ({
16
+ id: r.url,
17
+ label: r.url ?? "Unknown server"
18
+ }))
19
+ ), S = m(() => a.server?.url?.endsWith("/") ? a.server.url.slice(0, -1) : a.server?.url || "");
20
+ return (r, e) => (t(), c(o(z), {
21
+ class: "max-h-[inherit] p-0 text-base",
22
+ focus: "",
23
+ offset: 0,
24
+ placement: "bottom-start",
25
+ resize: "",
26
+ target: r.target,
27
+ teleport: `#${r.target}`
28
+ }, {
29
+ popover: l(({ close: x }) => [
30
+ s("div", {
31
+ class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
32
+ onClick: x
33
+ }, [
34
+ (t(!0), d(v, null, B(g.value, (u) => (t(), c(U, {
35
+ key: u.id,
36
+ server: r.server,
37
+ serverOption: u,
38
+ type: "request",
39
+ "onUpdate:selectedServer": e[0] || (e[0] = (p) => i("update:selectedServer", p)),
40
+ "onUpdate:variable": e[1] || (e[1] = (p, k) => i("update:variable", { key: p, value: k }))
41
+ }, null, 8, ["server", "serverOption"]))), 128)),
42
+ r.layout !== "modal" ? (t(), d("button", {
43
+ key: 0,
44
+ class: "text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",
45
+ type: "button",
46
+ onClick: e[2] || (e[2] = (u) => i("addServer"))
47
+ }, [
48
+ s("div", D, [
49
+ n(o(f), {
50
+ icon: "Add",
51
+ size: "sm"
52
+ })
53
+ ]),
54
+ e[5] || (e[5] = s("span", null, "Add Server", -1))
55
+ ])) : C("", !0)
56
+ ], 8, V)
57
+ ]),
58
+ backdrop: l(() => [
59
+ n(o(N), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
60
+ ]),
61
+ default: l(() => [
62
+ n(o(A), {
63
+ class: "z-context-plus hover:bg-b-2 font-code text-c-2 ml-0.75 h-auto gap-0.75 rounded border px-1.5 text-base whitespace-nowrap",
64
+ variant: "ghost"
65
+ }, {
66
+ default: l(() => [
67
+ r.server ? (t(), d(v, { key: 0 }, [
68
+ e[3] || (e[3] = s("span", { class: "sr-only" }, "Server:", -1)),
69
+ h(" " + w(S.value), 1)
70
+ ], 64)) : (t(), d(v, { key: 1 }, [
71
+ e[4] || (e[4] = s("span", { class: "sr-only" }, "Add Server", -1)),
72
+ n(o(f), {
73
+ icon: "Add",
74
+ size: "xs"
75
+ })
76
+ ], 64))
77
+ ]),
78
+ _: 1
79
+ })
80
+ ]),
81
+ _: 1
82
+ }, 8, ["target", "teleport"]));
83
+ }
84
+ });
85
+ export {
86
+ I as default
87
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ServerDropdown.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ServerDropdownItem.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerDropdownItem.test.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdownItem.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ type __VLS_Props = {
3
+ server: ServerObject | undefined;
4
+ serverOption: {
5
+ id: string;
6
+ label: string;
7
+ };
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ "update:variable": (key: string, value: string) => any;
11
+ "update:selectedServer": (payload: {
12
+ id: string;
13
+ }) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:variable"?: ((key: string, value: string) => any) | undefined;
16
+ "onUpdate:selectedServer"?: ((payload: {
17
+ id: string;
18
+ }) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ export default _default;
21
+ //# sourceMappingURL=ServerDropdownItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdownItem.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAC;;;;YAO4C,MAAM;;;;;YAAN,MAAM;;;AA0JpD,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import o from "./ServerDropdownItem.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-96792a7f"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,51 @@
1
+ import { defineComponent as h, useId as x, computed as c, createElementBlock as a, openBlock as n, normalizeClass as k, createElementVNode as d, createCommentVNode as u, mergeProps as S, unref as s, createVNode as l, toDisplayString as g, withModifiers as y } from "vue";
2
+ import { ScalarListboxCheckbox as w, ScalarMarkdown as C } from "@scalar/components";
3
+ import O from "../../../components/Server/ServerVariablesForm.vue.js";
4
+ const V = ["aria-expanded"], _ = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, E = ["id"], I = { key: 0 }, N = { class: "description text-c-3 px-3 py-1.5" }, j = /* @__PURE__ */ h({
5
+ __name: "ServerDropdownItem",
6
+ props: {
7
+ server: {},
8
+ serverOption: {}
9
+ },
10
+ emits: ["update:variable", "update:selectedServer"],
11
+ setup(o, { emit: m }) {
12
+ const v = m, p = x(), b = () => Object.keys(o.server?.variables ?? {}).length > 0, t = c(() => o.serverOption.id === o.server?.url), i = c(() => t.value && b()), f = (e, r) => {
13
+ v("update:variable", e, r);
14
+ };
15
+ return (e, r) => (n(), a("div", {
16
+ class: k(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !t.value }])
17
+ }, [
18
+ d("button", S(i.value ? { "aria-controls": s(p) } : {}, {
19
+ "aria-expanded": i.value,
20
+ class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5", t.value ? "text-c-1 bg-b-2" : "hover:bg-b-2"],
21
+ type: "button",
22
+ onClick: r[0] || (r[0] = (B) => v("update:selectedServer", { id: e.serverOption.id }))
23
+ }), [
24
+ l(s(w), { selected: t.value }, null, 8, ["selected"]),
25
+ d("span", _, g(e.serverOption.label), 1)
26
+ ], 16, V),
27
+ i.value ? (n(), a("div", {
28
+ key: 0,
29
+ id: s(p),
30
+ class: "bg-b-2 divide divide-y rounded-b border-t *:pl-4",
31
+ onClick: r[1] || (r[1] = y(() => {
32
+ }, ["stop"]))
33
+ }, [
34
+ l(O, {
35
+ variables: e.server?.variables,
36
+ "onUpdate:variable": f
37
+ }, null, 8, ["variables"]),
38
+ e.server?.description ? (n(), a("div", I, [
39
+ d("div", N, [
40
+ l(s(C), {
41
+ value: e.server.description
42
+ }, null, 8, ["value"])
43
+ ])
44
+ ])) : u("", !0)
45
+ ], 8, E)) : u("", !0)
46
+ ], 2));
47
+ }
48
+ });
49
+ export {
50
+ j as default
51
+ };
@@ -0,0 +1,2 @@
1
+ export { default as ServerDropdown } from './ServerDropdown.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./ServerDropdown.vue.js";
2
+ export {
3
+ o as ServerDropdown
4
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./Request.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0100effe"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-57ae0d10"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -83,12 +83,12 @@ const O = { class: "flex h-full" }, T = {
83
83
  }, null, 8, ["collection", "envVariables", "environment", "example", "invalidParams", "operation", "selectedSecuritySchemeUids", "server", "workspace"]),
84
84
  n(D, {
85
85
  collection: e(t),
86
+ numWorkspaceRequests: e(h).length,
86
87
  operation: e(a),
87
- workspace: e(l),
88
88
  requestResult: o.requestResult,
89
- numWorkspaceRequests: e(h).length,
90
- response: V.value?.response
91
- }, null, 8, ["collection", "operation", "workspace", "requestResult", "numWorkspaceRequests", "response"])
89
+ response: V.value?.response,
90
+ workspace: e(l)
91
+ }, null, 8, ["collection", "numWorkspaceRequests", "operation", "requestResult", "response", "workspace"])
92
92
  ]),
93
93
  _: 1
94
94
  }, 8, ["class"])) : H("", !0)
@@ -113,7 +113,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
113
113
  } | undefined;
114
114
  };
115
115
  description?: string | undefined;
116
- 'x-default-scopes'?: string | string[] | undefined;
116
+ 'x-default-scopes'?: string[] | undefined;
117
117
  })[]) => any;
118
118
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
119
119
  onAuthorized?: (() => any) | undefined;
@@ -208,7 +208,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
208
208
  } | undefined;
209
209
  };
210
210
  description?: string | undefined;
211
- 'x-default-scopes'?: string | string[] | undefined;
211
+ 'x-default-scopes'?: string[] | undefined;
212
212
  })[]) => any) | undefined;
213
213
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
214
214
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAmaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAa1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAuBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAghBF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsBw4lD,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA17E,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;kFAfr1qD,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAmaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAa1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAuBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAghBF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsBiwlD,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA17E,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;kFAf9sqD,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -111,7 +111,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
111
111
  } | undefined;
112
112
  };
113
113
  description?: string | undefined;
114
- 'x-default-scopes'?: string | string[] | undefined;
114
+ 'x-default-scopes'?: string[] | undefined;
115
115
  })[]) => any;
116
116
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
117
117
  onAuthorized?: (() => any) | undefined;
@@ -206,7 +206,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
206
206
  } | undefined;
207
207
  };
208
208
  description?: string | undefined;
209
- 'x-default-scopes'?: string | string[] | undefined;
209
+ 'x-default-scopes'?: string[] | undefined;
210
210
  })[]) => any) | undefined;
211
211
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
212
212
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAkBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAwQF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsBs6lE,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA17E,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;kFAfn3qE,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAkBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAwQF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsB+xlE,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA17E,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;kFAf5uqE,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
33
33
  }));
34
34
  }, f = (o) => {
35
35
  o?.createNew && g.name === "request" && d();
36
- }, v = "2.5.35";
36
+ }, v = "2.6.0";
37
37
  return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (o, e) => (i(), l("div", W, [
38
38
  s("div", {
39
39
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -1 +1 @@
1
- {"version":3,"file":"vitest.setup.d.ts","sourceRoot":"","sources":["../src/vitest.setup.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa;;CAAY,CAAA;AAMtC,eAAO,MAAM,cAAc;;;;;;;;;CAAa,CAAA;AAExC,0BAA0B;AAC1B,eAAO,MAAM,cAAc;;;EAA4B,CAAA;AAGvD,2BAA2B;AAC3B,eAAO,MAAM,eAAe;;;EAA6B,CAAA;AAGzD,sBAAsB;AACtB,eAAO,MAAM,iBAAiB,YAG7B,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,eAAsC,CAAA;AAEpE,4CAA4C;AAC5C,eAAO,MAAM,kBAAkB,eAAuC,CAAA;AAEtE,4CAA4C;AAC5C,eAAO,MAAM,kBAAkB,eAAuC,CAAA;AAEtE,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,eAAwC,CAAA"}
1
+ {"version":3,"file":"vitest.setup.d.ts","sourceRoot":"","sources":["../src/vitest.setup.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa;;CAAY,CAAA;AAMtC,eAAO,MAAM,cAAc;;;;;;;;;CAAa,CAAA;AAExC,0BAA0B;AAC1B,eAAO,MAAM,cAAc;;;EAA4B,CAAA;AAGvD,2BAA2B;AAC3B,eAAO,MAAM,eAAe;;;EAA6B,CAAA;AAGzD,sBAAsB;AACtB,eAAO,MAAM,iBAAiB,YAG7B,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,eAAsC,CAAA;AAEpE,4CAA4C;AAC5C,eAAO,MAAM,kBAAkB,eAAuC,CAAA;AAEtE,4CAA4C;AAC5C,eAAO,MAAM,kBAAkB,eAAuC,CAAA;AAEtE,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,eAAwC,CAAA"}
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.5.35",
21
+ "version": "2.6.0",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -207,23 +207,24 @@
207
207
  "yaml": "2.8.0",
208
208
  "zod": "3.24.1",
209
209
  "@scalar/analytics-client": "1.0.0",
210
- "@scalar/components": "0.14.36",
210
+ "@scalar/components": "0.14.37",
211
211
  "@scalar/draggable": "0.2.0",
212
212
  "@scalar/helpers": "0.0.11",
213
213
  "@scalar/icons": "0.4.7",
214
- "@scalar/oas-utils": "0.4.31",
215
- "@scalar/import": "0.4.26",
214
+ "@scalar/import": "0.4.27",
215
+ "@scalar/oas-utils": "0.4.32",
216
+ "@scalar/json-magic": "0.5.2",
217
+ "@scalar/openapi-parser": "0.21.2",
216
218
  "@scalar/object-utils": "1.2.7",
217
- "@scalar/openapi-parser": "0.21.1",
218
- "@scalar/postman-to-openapi": "0.3.34",
219
219
  "@scalar/openapi-types": "0.3.7",
220
+ "@scalar/postman-to-openapi": "0.3.35",
220
221
  "@scalar/snippetz": "0.4.10",
221
222
  "@scalar/themes": "0.13.18",
222
- "@scalar/use-codemirror": "0.12.37",
223
- "@scalar/use-toasts": "0.8.0",
224
- "@scalar/use-hooks": "0.2.5",
225
223
  "@scalar/types": "0.2.16",
226
- "@scalar/workspace-store": "0.15.8"
224
+ "@scalar/use-codemirror": "0.12.38",
225
+ "@scalar/use-hooks": "0.2.5",
226
+ "@scalar/use-toasts": "0.8.0",
227
+ "@scalar/workspace-store": "0.16.0"
227
228
  },
228
229
  "devDependencies": {
229
230
  "@tailwindcss/vite": "^4.1.7",
@@ -249,6 +250,9 @@
249
250
  "playground:web": "vite ./playground/web -c ./vite.config.ts",
250
251
  "preview": "vite preview",
251
252
  "test": "vitest",
253
+ "test:benchmark": "vitest bench",
254
+ "test:benchmark:compare": "vitest bench --compare test/results/main.json",
255
+ "test:benchmark:save": "vitest bench --outputJson test/results/branch.json",
252
256
  "types:build": "scalar-types-build-vue",
253
257
  "types:check": "scalar-types-check-vue"
254
258
  }