@scalar/api-reference 1.25.36 → 1.25.37

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 (237) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/browser/standalone.js +13407 -13399
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts +3 -12
  5. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  6. package/dist/components/Anchor/Anchor.vue2.js +21 -21
  7. package/dist/components/ApiClientModal.vue.d.ts +3 -12
  8. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReference.vue.d.ts +4 -13
  10. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  11. package/dist/components/ApiReferenceLayout.vue.d.ts +8 -17
  12. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  13. package/dist/components/Badge/Badge.vue.d.ts +1 -1
  14. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  15. package/dist/components/Card/Card.vue.d.ts +1 -1
  16. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  17. package/dist/components/Card/CardContent.vue.d.ts +1 -10
  18. package/dist/components/Card/CardContent.vue.d.ts.map +1 -1
  19. package/dist/components/Card/CardFooter.vue.d.ts +1 -10
  20. package/dist/components/Card/CardFooter.vue.d.ts.map +1 -1
  21. package/dist/components/Card/CardHeader.vue.d.ts +1 -10
  22. package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
  23. package/dist/components/Card/CardTab.vue.d.ts +1 -1
  24. package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
  25. package/dist/components/Card/CardTabHeader.vue.d.ts +4 -4
  26. package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
  27. package/dist/components/ClassicHeader.vue.d.ts +1 -1
  28. package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Authentication/Authentication.vue.d.ts +3 -12
  30. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  31. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -1
  32. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +14 -14
  33. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
  34. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +56 -56
  35. package/dist/components/Content/Content.vue.d.ts +3 -12
  36. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Content.vue2.js +41 -41
  38. package/dist/components/Content/Introduction/Description.vue.d.ts +3 -12
  39. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Introduction/Introduction.vue.d.ts +3 -12
  41. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Lazy/Lazy.vue.d.ts +4 -27
  43. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
  44. package/dist/components/Content/Lazy/Loading.vue.d.ts +4 -25
  45. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Models/Models.vue.d.ts +3 -12
  47. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Models/Models.vue2.js +32 -32
  49. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +3 -12
  50. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  51. package/dist/components/Content/Models/ModelsAccordion.vue2.js +30 -30
  52. package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +6 -15
  53. package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -1
  54. package/dist/components/Content/Operation/EndpointDetails.vue.d.ts +3 -12
  55. package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
  56. package/dist/components/Content/Operation/EndpointDetails.vue.js +45 -45
  57. package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts +3 -12
  58. package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts.map +1 -1
  59. package/dist/components/Content/Operation/EndpointDetailsCard.vue2.js +37 -37
  60. package/dist/components/Content/Operation/EndpointPath.vue.d.ts +3 -12
  61. package/dist/components/Content/Operation/EndpointPath.vue.d.ts.map +1 -1
  62. package/dist/components/Content/Operation/Operation.vue.d.ts +3 -12
  63. package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
  64. package/dist/components/Content/Operation/Operation.vue2.js +35 -35
  65. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts +3 -12
  66. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  67. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts +3 -12
  68. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +1 -1
  69. package/dist/components/Content/Operation/ParameterItem.vue.d.ts +4 -27
  70. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  71. package/dist/components/Content/Operation/Parameters.vue.d.ts +4 -27
  72. package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
  73. package/dist/components/Content/Operation/RequestBody.vue.d.ts +3 -12
  74. package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +1 -1
  75. package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts +3 -12
  76. package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
  77. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts +3 -12
  78. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  79. package/dist/components/Content/Operation/TestRequestButton.vue2.js +16 -16
  80. package/dist/components/Content/Schema/Schema.vue.d.ts +4 -25
  81. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  82. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +3 -12
  83. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  84. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -29
  85. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  86. package/dist/components/Content/Schema/SchemaProperty.vue2.js +85 -85
  87. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +3 -12
  88. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
  89. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +11 -11
  90. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +4 -27
  91. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  92. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +114 -114
  93. package/dist/components/Content/Tag/Endpoints.vue.d.ts +3 -12
  94. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  95. package/dist/components/Content/Tag/Endpoints.vue2.js +11 -11
  96. package/dist/components/Content/Tag/Tag.vue.d.ts +3 -12
  97. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  98. package/dist/components/Content/Tag/TagAccordion.vue.d.ts +3 -12
  99. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
  100. package/dist/components/Content/Tag/TagList.vue.d.ts +3 -12
  101. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  102. package/dist/components/Content/Webhooks/Webhook.vue.d.ts +3 -12
  103. package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
  104. package/dist/components/Content/Webhooks/Webhook.vue2.js +22 -22
  105. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts +3 -12
  106. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  107. package/dist/components/Content/Webhooks/Webhooks.vue2.js +39 -39
  108. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts +6 -15
  109. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
  110. package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts +6 -15
  111. package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +1 -1
  112. package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +14 -14
  113. package/dist/components/GettingStarted.vue.d.ts +9 -18
  114. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  115. package/dist/components/GettingStarted.vue2.js +32 -32
  116. package/dist/components/HelpfulLink.vue.d.ts +3 -12
  117. package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
  118. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -12
  119. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  120. package/dist/components/IntersectionObserver.vue.d.ts +6 -15
  121. package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
  122. package/dist/components/Layouts/ClassicLayout.vue.d.ts +5 -14
  123. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  124. package/dist/components/Layouts/Layouts.vue.d.ts +5 -14
  125. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  126. package/dist/components/Layouts/ModernLayout.vue.d.ts +5 -14
  127. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  128. package/dist/components/LoadingSkeleton.vue.d.ts +4 -25
  129. package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
  130. package/dist/components/MobileHeader.vue.d.ts +6 -15
  131. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  132. package/dist/components/ScreenReader.vue.d.ts +4 -25
  133. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  134. package/dist/components/Section/CompactSection.vue.d.ts +3 -12
  135. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  136. package/dist/components/Section/Section.vue.d.ts +3 -12
  137. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  138. package/dist/components/Section/SectionAccordion.vue.d.ts +3 -12
  139. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  140. package/dist/components/Section/SectionColumn.vue.d.ts +1 -1
  141. package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
  142. package/dist/components/Section/SectionColumns.vue.d.ts +1 -1
  143. package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
  144. package/dist/components/Section/SectionContainer.vue.d.ts +1 -1
  145. package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
  146. package/dist/components/Section/SectionContainerAccordion.vue.d.ts +1 -1
  147. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  148. package/dist/components/Section/SectionContent.vue.d.ts +4 -25
  149. package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
  150. package/dist/components/Section/SectionHeader.vue.d.ts +4 -29
  151. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  152. package/dist/components/ShowMoreButton.vue.d.ts +3 -12
  153. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  154. package/dist/components/ShowMoreButton.vue2.js +9 -9
  155. package/dist/components/Sidebar/Sidebar.vue.d.ts +3 -12
  156. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  157. package/dist/components/Sidebar/SidebarElement.vue.d.ts +6 -15
  158. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  159. package/dist/components/Sidebar/SidebarElement.vue2.js +24 -24
  160. package/dist/components/Sidebar/SidebarGroup.vue.d.ts +3 -12
  161. package/dist/components/Sidebar/SidebarGroup.vue.d.ts.map +1 -1
  162. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +3 -12
  163. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
  164. package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
  165. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
  166. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  167. package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
  168. package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  169. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +253 -13
  170. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  171. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +3 -12
  172. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  173. package/dist/features/BaseUrl/ServerForm.vue.d.ts +8 -29
  174. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
  175. package/dist/features/BaseUrl/ServerForm.vue2.js +41 -41
  176. package/dist/features/BaseUrl/ServerUrl.vue.d.ts +3 -12
  177. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
  178. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +6 -15
  179. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  180. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +6 -15
  181. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
  182. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +6 -15
  183. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
  184. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +19 -19
  185. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +6 -15
  186. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
  187. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +3 -12
  188. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  189. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts +6 -15
  190. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
  191. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
  192. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  193. package/dist/features/ExampleRequest/TextSelect.vue.d.ts +6 -15
  194. package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
  195. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts +3 -12
  196. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
  197. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
  198. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  199. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +83 -83
  200. package/dist/features/Search/SearchButton.vue.d.ts +4 -25
  201. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  202. package/dist/features/Search/SearchButton.vue2.js +27 -27
  203. package/dist/features/Search/SearchModal.vue.d.ts +3 -12
  204. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  205. package/dist/features/Search/SearchModal.vue2.js +66 -66
  206. package/dist/features/Search/useSearchIndex.d.ts +2 -2
  207. package/dist/hooks/useDarkModeState.d.ts +1 -1
  208. package/dist/hooks/useNavState.d.ts +3 -3
  209. package/dist/hooks/useReactiveSpec.d.ts +2 -2
  210. package/dist/hooks/useRefOnMount.d.ts +1 -1
  211. package/dist/hooks/useRefOnMount.d.ts.map +1 -1
  212. package/dist/hooks/useSidebar.d.ts +3 -3
  213. package/dist/index.js +1 -1
  214. package/dist/legacy/components/CardForm.vue.d.ts +1 -1
  215. package/dist/legacy/components/CardForm.vue.d.ts.map +1 -1
  216. package/dist/legacy/components/CardFormButton.vue.d.ts +2 -2
  217. package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -1
  218. package/dist/legacy/components/CardFormGroup.vue.d.ts +1 -1
  219. package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -1
  220. package/dist/legacy/components/CardFormRows.vue.d.ts +1 -1
  221. package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -1
  222. package/dist/legacy/components/CardFormTextInput.vue.d.ts +3 -12
  223. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
  224. package/dist/legacy/components/CardFormTextInput.vue2.js +21 -21
  225. package/dist/legacy/components/SecurityScheme.vue.d.ts +3 -12
  226. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  227. package/dist/legacy/components/SecurityScheme.vue2.js +147 -147
  228. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +6 -15
  229. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -1
  230. package/dist/legacy/components/SecuritySchemeScopes.vue2.js +37 -37
  231. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +6 -15
  232. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  233. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +36 -36
  234. package/dist/legacy/stores/useRequestStore.d.ts +7 -3
  235. package/dist/legacy/stores/useRequestStore.d.ts.map +1 -1
  236. package/dist/style.css +1 -1
  237. package/package.json +11 -11
@@ -1,15 +1,15 @@
1
- import { defineComponent as Q, computed as X, openBlock as l, createBlock as m, withModifiers as Y, withCtx as o, unref as u, createElementBlock as U, Fragment as K, createTextVNode as i, toDisplayString as Z, createCommentVNode as v, createVNode as c, createElementVNode as W } from "vue";
2
- import { concatenateUrlAndPath as _, redirectToProxy as x } from "@scalar/oas-utils/helpers";
1
+ import { defineComponent as Q, computed as X, openBlock as l, createBlock as m, withModifiers as Y, withCtx as a, unref as u, createElementBlock as U, Fragment as K, createTextVNode as i, toDisplayString as Z, createCommentVNode as v, createVNode as d, createElementVNode as W } from "vue";
2
+ import { concatenateUrlAndPath as x, redirectToProxy as _ } from "@scalar/oas-utils/helpers";
3
3
  import { useToasts as ee } from "@scalar/use-toasts";
4
4
  import { apiClientBus as F } from "../../components/api-client-bus.js";
5
5
  import te from "./CardForm.vue.js";
6
- import ae from "./CardFormButton.vue.js";
6
+ import re from "./CardFormButton.vue.js";
7
7
  import P from "./CardFormGroup.vue.js";
8
8
  import j from "./CardFormRows.vue.js";
9
9
  import f from "./CardFormTextInput.vue.js";
10
10
  import R from "./SecuritySchemeScopes.vue.js";
11
- import { useServerStore as re } from "../stores/useServerStore.js";
12
- import { getUrlFromServerState as oe } from "../helpers/getUrlFromServerState.js";
11
+ import { useServerStore as oe } from "../stores/useServerStore.js";
12
+ import { getUrlFromServerState as ae } from "../helpers/getUrlFromServerState.js";
13
13
  import { useAuthenticationStore as se } from "../stores/useAuthenticationStore.js";
14
14
  const ke = /* @__PURE__ */ Q({
15
15
  __name: "SecurityScheme",
@@ -18,107 +18,107 @@ const ke = /* @__PURE__ */ Q({
18
18
  proxy: {}
19
19
  },
20
20
  setup(ue) {
21
- const { toast: L } = ee(), { server: N } = re(), { authentication: t, setAuthentication: p } = se(), V = (e) => {
22
- const a = e.target.value;
21
+ const { toast: L } = ee(), { server: N } = oe(), { authentication: r, setAuthentication: p } = se(), V = (t) => {
22
+ const e = t.target.value;
23
23
  p({
24
24
  apiKey: {
25
- ...t.apiKey,
26
- token: a
25
+ ...r.apiKey,
26
+ token: e
27
27
  }
28
- }), t.preferredSecurityScheme && F.emit({
28
+ }), r.preferredSecurityScheme && F.emit({
29
29
  updateAuth: {
30
- nameKey: t.preferredSecurityScheme,
30
+ nameKey: r.preferredSecurityScheme,
31
31
  propertyKey: "value",
32
- value: a
32
+ value: e
33
33
  }
34
34
  });
35
- }, D = (e) => {
36
- const a = e.target.value;
35
+ }, D = (t) => {
36
+ const e = t.target.value;
37
37
  p({
38
38
  http: {
39
- ...t.http,
39
+ ...r.http,
40
40
  basic: {
41
- ...t.http.basic,
42
- username: a
41
+ ...r.http.basic,
42
+ username: e
43
43
  }
44
44
  }
45
- }), t.preferredSecurityScheme && F.emit({
45
+ }), r.preferredSecurityScheme && F.emit({
46
46
  updateAuth: {
47
- nameKey: t.preferredSecurityScheme,
47
+ nameKey: r.preferredSecurityScheme,
48
48
  propertyKey: "username",
49
- value: a
49
+ value: e
50
50
  }
51
51
  });
52
- }, E = (e) => {
53
- const a = e.target.value;
52
+ }, E = (t) => {
53
+ const e = t.target.value;
54
54
  p({
55
55
  http: {
56
- ...t.http,
56
+ ...r.http,
57
57
  basic: {
58
- ...t.http.basic,
59
- password: a
58
+ ...r.http.basic,
59
+ password: e
60
60
  }
61
61
  }
62
- }), t.preferredSecurityScheme && F.emit({
62
+ }), r.preferredSecurityScheme && F.emit({
63
63
  updateAuth: {
64
- nameKey: t.preferredSecurityScheme,
64
+ nameKey: r.preferredSecurityScheme,
65
65
  propertyKey: "password",
66
- value: a
66
+ value: e
67
67
  }
68
68
  });
69
- }, H = (e) => {
70
- const a = e.target.value;
69
+ }, H = (t) => {
70
+ const e = t.target.value;
71
71
  p({
72
72
  http: {
73
- ...t.http,
73
+ ...r.http,
74
74
  bearer: {
75
- ...t.http.bearer,
76
- token: a
75
+ ...r.http.bearer,
76
+ token: e
77
77
  }
78
78
  }
79
- }), t.preferredSecurityScheme && F.emit({
79
+ }), r.preferredSecurityScheme && F.emit({
80
80
  updateAuth: {
81
- nameKey: t.preferredSecurityScheme,
81
+ nameKey: r.preferredSecurityScheme,
82
82
  propertyKey: "token",
83
- value: a
83
+ value: e
84
84
  }
85
85
  });
86
- }, B = (e) => {
86
+ }, B = (t) => {
87
87
  p({
88
88
  oAuth2: {
89
- ...t.oAuth2,
90
- clientId: e.target.value
89
+ ...r.oAuth2,
90
+ clientId: t.target.value
91
91
  }
92
92
  });
93
- }, M = (e) => {
93
+ }, M = (t) => {
94
94
  p({
95
95
  oAuth2: {
96
- ...t.oAuth2,
97
- username: e.target.value
96
+ ...r.oAuth2,
97
+ username: t.target.value
98
98
  }
99
99
  });
100
- }, G = (e) => {
100
+ }, G = (t) => {
101
101
  p({
102
102
  oAuth2: {
103
- ...t.oAuth2,
104
- password: e.target.value
103
+ ...r.oAuth2,
104
+ password: t.target.value
105
105
  }
106
106
  });
107
107
  };
108
- function $(e) {
109
- const a = t.oAuth2.scopes.join(" "), n = (Math.random() + 1).toString(36).substring(7), r = new URL(e.authorizationUrl);
108
+ function $(t) {
109
+ const e = r.oAuth2.scopes.join(" "), n = (Math.random() + 1).toString(36).substring(7), o = new URL(t.authorizationUrl);
110
110
  return p({
111
- oAuth2: { ...t.oAuth2, state: n }
112
- }), r.searchParams.set("response_type", "token"), r.searchParams.set("client_id", t.oAuth2.clientId), r.searchParams.set("redirect_uri", window.location.href), r.searchParams.set("scope", a), r.searchParams.set("state", n), r.toString();
111
+ oAuth2: { ...r.oAuth2, state: n }
112
+ }), o.searchParams.set("response_type", "token"), o.searchParams.set("client_id", r.oAuth2.clientId), o.searchParams.set("redirect_uri", window.location.href), o.searchParams.set("scope", e), o.searchParams.set("state", n), o.toString();
113
113
  }
114
- function q(e, a) {
115
- if (typeof e != "string") {
114
+ function q(t, e) {
115
+ if (typeof t != "string") {
116
116
  console.log("tokenUrl is not a string");
117
117
  return;
118
118
  }
119
- const n = a != null && a.baseUrl && !e.startsWith("http") ? _(a == null ? void 0 : a.baseUrl, e) : e, r = new URL(n);
120
- r.searchParams.set("grant_type", "password"), r.searchParams.set("username", t.oAuth2.username), r.searchParams.set("password", t.oAuth2.password), r.searchParams.set("client_id", t.oAuth2.clientId), r.searchParams.set("scope", t.oAuth2.scopes.join(" ")), fetch(
121
- a != null && a.proxy ? x(a == null ? void 0 : a.proxy, r.toString()) : r.toString(),
119
+ const n = e != null && e.baseUrl && !t.startsWith("http") ? x(e == null ? void 0 : e.baseUrl, t) : t, o = new URL(n);
120
+ o.searchParams.set("grant_type", "password"), o.searchParams.set("username", r.oAuth2.username), o.searchParams.set("password", r.oAuth2.password), o.searchParams.set("client_id", r.oAuth2.clientId), o.searchParams.set("scope", r.oAuth2.scopes.join(" ")), fetch(
121
+ e != null && e.proxy ? _(e == null ? void 0 : e.proxy, o.toString()) : o.toString(),
122
122
  {
123
123
  method: "POST",
124
124
  headers: {
@@ -133,7 +133,7 @@ const ke = /* @__PURE__ */ Q({
133
133
  return s.json();
134
134
  }).then((s) => {
135
135
  p({
136
- oAuth2: { ...t.oAuth2, accessToken: s.access_token }
136
+ oAuth2: { ...r.oAuth2, accessToken: s.access_token }
137
137
  });
138
138
  }).catch((s) => {
139
139
  L("Couldn’t retrieve the password grant token", "warn", {
@@ -142,20 +142,20 @@ const ke = /* @__PURE__ */ Q({
142
142
  });
143
143
  }
144
144
  const C = X({
145
- get: () => t.oAuth2.scopes,
146
- set: (e) => p({ oAuth2: { ...t.oAuth2, scopes: e } })
147
- }), J = (e) => {
148
- const n = window.open(e, "openAuth2Window", "left=100,top=100,width=800,height=600");
145
+ get: () => r.oAuth2.scopes,
146
+ set: (t) => p({ oAuth2: { ...r.oAuth2, scopes: t } })
147
+ }), J = (t) => {
148
+ const n = window.open(t, "openAuth2Window", "left=100,top=100,width=800,height=600");
149
149
  if (n) {
150
- const r = setInterval(function() {
150
+ const o = setInterval(function() {
151
151
  var s;
152
152
  try {
153
- const h = new URLSearchParams(n.location.href).get("access_token");
154
- if (n.closed || h) {
155
- clearInterval(r);
153
+ const c = new URLSearchParams(n.location.href).get("access_token");
154
+ if (n.closed || c) {
155
+ clearInterval(o);
156
156
  const w = (s = n.location.href.match(/state=([^&]*)/)) == null ? void 0 : s[1];
157
- h && t.oAuth2.state === w && p({
158
- oAuth2: { ...t.oAuth2, accessToken: h }
157
+ c && r.oAuth2.state === w && p({
158
+ oAuth2: { ...r.oAuth2, accessToken: c }
159
159
  }), n.close();
160
160
  }
161
161
  } catch {
@@ -163,170 +163,170 @@ const ke = /* @__PURE__ */ Q({
163
163
  }, 200);
164
164
  }
165
165
  };
166
- return (e, a) => {
166
+ return (t, e) => {
167
167
  var n;
168
- return e.value && ((n = e.value) != null && n.type) ? (l(), m(te, {
168
+ return t.value && ((n = t.value) != null && n.type) ? (l(), m(te, {
169
169
  key: 0,
170
- onSubmit: a[5] || (a[5] = Y(() => {
170
+ onSubmit: e[5] || (e[5] = Y(() => {
171
171
  }, ["prevent"]))
172
172
  }, {
173
- default: o(() => [
174
- e.value.type === "apiKey" ? (l(), m(f, {
173
+ default: a(() => [
174
+ t.value.type === "apiKey" ? (l(), m(f, {
175
175
  key: 0,
176
- id: `security-scheme-${e.value.name}`,
176
+ id: `security-scheme-${t.value.name}`,
177
177
  placeholder: "Token",
178
178
  type: "password",
179
- value: u(t).apiKey.token,
179
+ value: u(r).apiKey.token,
180
180
  onInput: V
181
181
  }, {
182
- default: o(() => {
183
- var r, s, d;
182
+ default: a(() => {
183
+ var o, s, h;
184
184
  return [
185
- e.value.in ? (l(), U(K, { key: 0 }, [
186
- i(Z(((s = (r = e.value.in) == null ? void 0 : r.charAt(0)) == null ? void 0 : s.toUpperCase()) + ((d = e.value.in) == null ? void 0 : d.slice(1))), 1)
185
+ t.value.in ? (l(), U(K, { key: 0 }, [
186
+ i(Z(((s = (o = t.value.in) == null ? void 0 : o.charAt(0)) == null ? void 0 : s.toUpperCase()) + ((h = t.value.in) == null ? void 0 : h.slice(1))), 1)
187
187
  ], 64)) : v("", !0),
188
- i(" API ")
188
+ e[6] || (e[6] = i(" API "))
189
189
  ];
190
190
  }),
191
191
  _: 1
192
- }, 8, ["id", "value"])) : e.value.type === "http" || e.value.type === "basic" ? (l(), U(K, { key: 1 }, [
193
- e.value.type === "basic" || e.value.scheme === "basic" ? (l(), m(P, { key: 0 }, {
194
- default: o(() => [
195
- c(f, {
192
+ }, 8, ["id", "value"])) : t.value.type === "http" || t.value.type === "basic" ? (l(), U(K, { key: 1 }, [
193
+ t.value.type === "basic" || t.value.scheme === "basic" ? (l(), m(P, { key: 0 }, {
194
+ default: a(() => [
195
+ d(f, {
196
196
  id: "http.basic.username",
197
197
  placeholder: "Username",
198
- value: u(t).http.basic.username,
198
+ value: u(r).http.basic.username,
199
199
  onInput: D
200
200
  }, {
201
- default: o(() => [
201
+ default: a(() => e[7] || (e[7] = [
202
202
  i(" Username ")
203
- ]),
203
+ ])),
204
204
  _: 1
205
205
  }, 8, ["value"]),
206
- c(f, {
206
+ d(f, {
207
207
  id: "http.basic.password",
208
208
  placeholder: "Password",
209
209
  type: "password",
210
- value: u(t).http.basic.password,
210
+ value: u(r).http.basic.password,
211
211
  onInput: E
212
212
  }, {
213
- default: o(() => [
213
+ default: a(() => e[8] || (e[8] = [
214
214
  i(" Password ")
215
- ]),
215
+ ])),
216
216
  _: 1
217
217
  }, 8, ["value"])
218
218
  ]),
219
219
  _: 1
220
- })) : e.value.type === "http" && e.value.scheme === "bearer" ? (l(), m(f, {
220
+ })) : t.value.type === "http" && t.value.scheme === "bearer" ? (l(), m(f, {
221
221
  key: 1,
222
222
  id: "http.bearer.token",
223
223
  placeholder: "Token",
224
224
  type: "password",
225
- value: u(t).http.bearer.token,
225
+ value: u(r).http.bearer.token,
226
226
  onInput: H
227
227
  }, {
228
- default: o(() => [
228
+ default: a(() => e[9] || (e[9] = [
229
229
  i(" Bearer Token ")
230
- ]),
230
+ ])),
231
231
  _: 1
232
232
  }, 8, ["value"])) : v("", !0)
233
- ], 64)) : e.value.type.toLowerCase() === "oauth2" && e.value.flows ? (l(), m(P, { key: 2 }, {
234
- default: o(() => {
235
- var r, s;
233
+ ], 64)) : t.value.type.toLowerCase() === "oauth2" && t.value.flows ? (l(), m(P, { key: 2 }, {
234
+ default: a(() => {
235
+ var o, s;
236
236
  return [
237
- e.value.flows.implicit ? (l(), U(K, { key: 0 }, [
238
- u(t).oAuth2.accessToken ? (l(), U(K, { key: 0 }, [
239
- c(f, {
237
+ t.value.flows.implicit ? (l(), U(K, { key: 0 }, [
238
+ u(r).oAuth2.accessToken ? (l(), U(K, { key: 0 }, [
239
+ d(f, {
240
240
  id: "oAuth2.accessToken",
241
241
  placeholder: "xxxxx",
242
242
  type: "password",
243
- value: u(t).oAuth2.accessToken
243
+ value: u(r).oAuth2.accessToken
244
244
  }, {
245
- default: o(() => [
245
+ default: a(() => e[10] || (e[10] = [
246
246
  i(" Access Token ")
247
- ]),
247
+ ])),
248
248
  _: 1
249
249
  }, 8, ["value"]),
250
- c(ae, {
251
- onClick: a[0] || (a[0] = () => u(p)({
250
+ d(re, {
251
+ onClick: e[0] || (e[0] = () => u(p)({
252
252
  oAuth2: {
253
- ...u(t).oAuth2,
253
+ ...u(r).oAuth2,
254
254
  accessToken: "",
255
255
  state: ""
256
256
  }
257
257
  }))
258
258
  }, {
259
- default: o(() => [
259
+ default: a(() => e[11] || (e[11] = [
260
260
  i(" Reset ")
261
- ]),
261
+ ])),
262
262
  _: 1
263
263
  })
264
264
  ], 64)) : v("", !0)
265
265
  ], 64)) : v("", !0),
266
- (s = (r = e.value) == null ? void 0 : r.flows) != null && s.password ? (l(), m(j, { key: 1 }, {
267
- default: o(() => [
268
- c(P, null, {
269
- default: o(() => [
270
- c(f, {
266
+ (s = (o = t.value) == null ? void 0 : o.flows) != null && s.password ? (l(), m(j, { key: 1 }, {
267
+ default: a(() => [
268
+ d(P, null, {
269
+ default: a(() => [
270
+ d(f, {
271
271
  id: "oAuth2.username",
272
272
  placeholder: "Username",
273
- value: u(t).oAuth2.username,
273
+ value: u(r).oAuth2.username,
274
274
  onInput: M
275
275
  }, {
276
- default: o(() => [
276
+ default: a(() => e[12] || (e[12] = [
277
277
  i(" Username ")
278
- ]),
278
+ ])),
279
279
  _: 1
280
280
  }, 8, ["value"]),
281
- c(f, {
281
+ d(f, {
282
282
  id: "oAuth2.password",
283
283
  placeholder: "Password",
284
284
  type: "password",
285
- value: u(t).oAuth2.password,
285
+ value: u(r).oAuth2.password,
286
286
  onInput: G
287
287
  }, {
288
- default: o(() => [
288
+ default: a(() => e[13] || (e[13] = [
289
289
  i(" Password ")
290
- ]),
290
+ ])),
291
291
  _: 1
292
292
  }, 8, ["value"])
293
293
  ]),
294
294
  _: 1
295
295
  }),
296
- c(P, null, {
297
- default: o(() => {
298
- var d, h, w, A, k, S, y, b, I, g, z;
296
+ d(P, null, {
297
+ default: a(() => {
298
+ var h, c, w, A, k, S, y, b, I, g, z;
299
299
  return [
300
- c(f, {
300
+ d(f, {
301
301
  id: "oAuth2.clientId",
302
302
  placeholder: "12345",
303
303
  type: "text",
304
- value: u(t).oAuth2.clientId,
304
+ value: u(r).oAuth2.clientId,
305
305
  onInput: B
306
306
  }, {
307
- default: o(() => [
307
+ default: a(() => e[14] || (e[14] = [
308
308
  i(" Client ID ")
309
- ]),
309
+ ])),
310
310
  _: 1
311
311
  }, 8, ["value"]),
312
- e.value !== void 0 && Object.entries(
313
- ((w = (h = (d = e.value) == null ? void 0 : d.flows) == null ? void 0 : h.implicit) == null ? void 0 : w.scopes) ?? ((S = (k = (A = e.value) == null ? void 0 : A.flows) == null ? void 0 : k.password) == null ? void 0 : S.scopes) ?? {}
312
+ t.value !== void 0 && Object.entries(
313
+ ((w = (c = (h = t.value) == null ? void 0 : h.flows) == null ? void 0 : c.implicit) == null ? void 0 : w.scopes) ?? ((S = (k = (A = t.value) == null ? void 0 : A.flows) == null ? void 0 : k.password) == null ? void 0 : S.scopes) ?? {}
314
314
  ).length > 0 ? (l(), m(R, {
315
315
  key: 0,
316
316
  selected: C.value,
317
- "onUpdate:selected": a[1] || (a[1] = (T) => C.value = T),
318
- scopes: ((I = (b = (y = e.value) == null ? void 0 : y.flows) == null ? void 0 : b.implicit) == null ? void 0 : I.scopes) ?? ((z = (g = e.value) == null ? void 0 : g.flows) == null ? void 0 : z.password.scopes)
317
+ "onUpdate:selected": e[1] || (e[1] = (T) => C.value = T),
318
+ scopes: ((I = (b = (y = t.value) == null ? void 0 : y.flows) == null ? void 0 : b.implicit) == null ? void 0 : I.scopes) ?? ((z = (g = t.value) == null ? void 0 : g.flows) == null ? void 0 : z.password.scopes)
319
319
  }, null, 8, ["selected", "scopes"])) : v("", !0),
320
320
  W("button", {
321
321
  class: "cardform-auth-button",
322
322
  type: "button",
323
- onClick: a[2] || (a[2] = () => {
323
+ onClick: e[2] || (e[2] = () => {
324
324
  var T, O;
325
325
  return q(
326
- (O = (T = e.value.flows) == null ? void 0 : T.password) == null ? void 0 : O.tokenUrl,
326
+ (O = (T = t.value.flows) == null ? void 0 : T.password) == null ? void 0 : O.tokenUrl,
327
327
  {
328
- baseUrl: u(oe)(u(N)),
329
- proxy: e.proxy
328
+ baseUrl: u(ae)(u(N)),
329
+ proxy: t.proxy
330
330
  }
331
331
  );
332
332
  })
@@ -338,39 +338,39 @@ const ke = /* @__PURE__ */ Q({
338
338
  ]),
339
339
  _: 1
340
340
  })) : (l(), m(j, { key: 2 }, {
341
- default: o(() => [
342
- c(P, null, {
343
- default: o(() => {
344
- var d, h, w, A, k, S;
341
+ default: a(() => [
342
+ d(P, null, {
343
+ default: a(() => {
344
+ var h, c, w, A, k, S;
345
345
  return [
346
- c(f, {
346
+ d(f, {
347
347
  id: "oAuth2.clientId",
348
348
  placeholder: "12345",
349
349
  type: "text",
350
- value: u(t).oAuth2.clientId,
350
+ value: u(r).oAuth2.clientId,
351
351
  onInput: B
352
352
  }, {
353
- default: o(() => [
353
+ default: a(() => e[15] || (e[15] = [
354
354
  i(" Client ID ")
355
- ]),
355
+ ])),
356
356
  _: 1
357
357
  }, 8, ["value"]),
358
- e.value !== void 0 && Object.entries(
359
- ((d = e.value.flows.implicit) == null ? void 0 : d.scopes) ?? ((h = e.value.flows.password) == null ? void 0 : h.scopes) ?? ((w = e.value.flows.authorizationCode) == null ? void 0 : w.scopes)
358
+ t.value !== void 0 && Object.entries(
359
+ ((h = t.value.flows.implicit) == null ? void 0 : h.scopes) ?? ((c = t.value.flows.password) == null ? void 0 : c.scopes) ?? ((w = t.value.flows.authorizationCode) == null ? void 0 : w.scopes)
360
360
  ).length > 0 ? (l(), m(R, {
361
361
  key: 0,
362
362
  selected: C.value,
363
- "onUpdate:selected": a[3] || (a[3] = (y) => C.value = y),
364
- scopes: ((A = e.value.flows.implicit) == null ? void 0 : A.scopes) ?? ((k = e.value.flows.password) == null ? void 0 : k.scopes) ?? ((S = e.value.flows.authorizationCode) == null ? void 0 : S.scopes)
363
+ "onUpdate:selected": e[3] || (e[3] = (y) => C.value = y),
364
+ scopes: ((A = t.value.flows.implicit) == null ? void 0 : A.scopes) ?? ((k = t.value.flows.password) == null ? void 0 : k.scopes) ?? ((S = t.value.flows.authorizationCode) == null ? void 0 : S.scopes)
365
365
  }, null, 8, ["selected", "scopes"])) : v("", !0),
366
366
  W("button", {
367
367
  class: "cardform-auth-button",
368
368
  type: "button",
369
- onClick: a[4] || (a[4] = () => {
369
+ onClick: e[4] || (e[4] = () => {
370
370
  var y, b, I, g;
371
371
  return J(
372
372
  $(
373
- ((b = (y = e.value) == null ? void 0 : y.flows) == null ? void 0 : b.implicit) ?? ((g = (I = e.value) == null ? void 0 : I.flows) == null ? void 0 : g.password)
373
+ ((b = (y = t.value) == null ? void 0 : y.flows) == null ? void 0 : b.implicit) ?? ((g = (I = t.value) == null ? void 0 : I.flows) == null ? void 0 : g.password)
374
374
  )
375
375
  );
376
376
  })
@@ -1,26 +1,17 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import("vue").DefineComponent<{
2
2
  scopes?: {
3
3
  [scope: string]: string;
4
4
  };
5
5
  selected: string[];
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- "update:selected": (v: string[]) => void;
8
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ "update:selected": (v: string[]) => any;
8
+ }, string, import("vue").PublicProps, Readonly<{
9
9
  scopes?: {
10
10
  [scope: string]: string;
11
11
  };
12
12
  selected: string[];
13
- }>>> & {
13
+ }> & Readonly<{
14
14
  "onUpdate:selected"?: ((v: string[]) => any) | undefined;
15
- }, {}, {}>;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  export default _default;
17
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
- type __VLS_TypePropsToOption<T> = {
19
- [K in keyof T]-?: {} extends Pick<T, K> ? {
20
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
- } : {
22
- type: import('vue').PropType<T[K]>;
23
- required: true;
24
- };
25
- };
26
17
  //# sourceMappingURL=SecuritySchemeScopes.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SecuritySchemeScopes.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeScopes.vue"],"names":[],"mappings":";aA0MW;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;cAC1B,MAAM,EAAE;;;;aADT;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;cAC1B,MAAM,EAAE;;;;AA8MpB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"SecuritySchemeScopes.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeScopes.vue"],"names":[],"mappings":";aA0MW;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;cAC1B,MAAM,EAAE;;;;aADT;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;cAC1B,MAAM,EAAE;;;;AAkNpB,wBASG"}