@scalar/api-reference 1.24.20 → 1.24.23

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 (225) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/browser/standalone.js +22673 -23143
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  5. package/dist/components/ApiClientModal.vue.js +19 -18
  6. package/dist/components/ApiClientModal.vue3.js +5 -0
  7. package/dist/components/ApiReference.vue.js +14 -14
  8. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  9. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  10. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  11. package/dist/components/ApiReferenceLayout.vue2.js +123 -155
  12. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
  14. package/dist/components/Content/Authentication/Authentication.vue2.js +20 -18
  15. package/dist/components/Content/Content.vue.d.ts +3 -3
  16. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.js +2 -2
  18. package/dist/components/Content/Content.vue2.js +72 -93
  19. package/dist/components/Content/Lazy/Loading.vue.js +1 -1
  20. package/dist/components/Content/Operation/CustomRequestExamples.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Operation/CustomRequestExamples.vue.js +1 -1
  22. package/dist/components/Content/Operation/CustomRequestExamples.vue2.js +19 -19
  23. package/dist/components/Content/Operation/ExampleRequest.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Operation/ExampleRequest.vue.js +2 -2
  25. package/dist/components/Content/Operation/ExampleRequest.vue2.js +63 -59
  26. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Operation/OperationAccordion.vue.js +1 -1
  28. package/dist/components/Content/Operation/OperationAccordion.vue2.js +26 -26
  29. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
  31. package/dist/components/Content/Operation/TestRequestButton.vue2.js +18 -36
  32. package/dist/components/Content/Schema/Schema.vue.d.ts +2 -2
  33. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  34. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  36. package/dist/components/Content/Tag/Endpoints.vue2.js +23 -23
  37. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +42 -0
  38. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -0
  39. package/dist/components/HttpMethod/HttpMethod.vue.js +28 -0
  40. package/dist/components/HttpMethod/HttpMethod.vue2.js +4 -0
  41. package/dist/components/HttpMethod/constants.d.ts +9 -0
  42. package/dist/components/HttpMethod/constants.d.ts.map +1 -0
  43. package/dist/components/HttpMethod/constants.js +36 -0
  44. package/dist/components/HttpMethod/index.d.ts +2 -0
  45. package/dist/components/HttpMethod/index.d.ts.map +1 -0
  46. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +4 -0
  47. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +1 -0
  48. package/dist/components/HttpMethod/utils/isRequestMethod.js +7 -0
  49. package/dist/components/Sidebar/SidebarHttpBadge.vue.js +1 -1
  50. package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +6 -6
  51. package/dist/components/api-client-bus.d.ts +1 -1
  52. package/dist/components/api-client-bus.d.ts.map +1 -1
  53. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +40 -0
  54. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -0
  55. package/dist/features/BaseUrl/BaseUrl.vue.js +97 -0
  56. package/dist/features/BaseUrl/BaseUrl.vue2.js +4 -0
  57. package/dist/features/BaseUrl/ServerForm.vue.d.ts +41 -0
  58. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -0
  59. package/dist/features/BaseUrl/ServerForm.vue.js +7 -0
  60. package/dist/features/BaseUrl/ServerForm.vue2.js +66 -0
  61. package/dist/{components/Content/BaseUrl/ServerItem.vue.d.ts → features/BaseUrl/ServerUrl.vue.d.ts} +6 -6
  62. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -0
  63. package/dist/features/BaseUrl/ServerUrl.vue.js +8 -0
  64. package/dist/features/BaseUrl/ServerUrl.vue2.js +29 -0
  65. package/dist/{components/ApiClientModalOld.vue.d.ts → features/BaseUrl/ServerUrlSelect.vue.d.ts} +9 -15
  66. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -0
  67. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +7 -0
  68. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +56 -0
  69. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +23 -0
  70. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -0
  71. package/dist/features/BaseUrl/ServerVariablesForm.vue.js +7 -0
  72. package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +53 -0
  73. package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue.d.ts → features/BaseUrl/ServerVariablesSelect.vue.d.ts} +1 -1
  74. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -0
  75. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +7 -0
  76. package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue2.js → features/BaseUrl/ServerVariablesSelect.vue2.js} +1 -1
  77. package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts → features/BaseUrl/ServerVariablesTextbox.vue.d.ts} +1 -1
  78. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -0
  79. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +7 -0
  80. package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue2.js → features/BaseUrl/ServerVariablesTextbox.vue2.js} +6 -6
  81. package/dist/features/BaseUrl/index.d.ts +3 -0
  82. package/dist/features/BaseUrl/index.d.ts.map +1 -0
  83. package/dist/features/BaseUrl/types.d.ts +10 -0
  84. package/dist/features/BaseUrl/types.d.ts.map +1 -0
  85. package/dist/features/BaseUrl/utils/getServers.d.ts +15 -0
  86. package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -0
  87. package/dist/features/BaseUrl/utils/getServers.js +29 -0
  88. package/dist/features/BaseUrl/utils/index.d.ts +2 -0
  89. package/dist/features/BaseUrl/utils/index.d.ts.map +1 -0
  90. package/dist/helpers/createEmptySpecification.d.ts +1 -1
  91. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  92. package/dist/helpers/createEmptySpecification.js +5 -4
  93. package/dist/helpers/getApiClientRequest.d.ts +1 -1
  94. package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
  95. package/dist/helpers/getApiClientRequest.js +12 -11
  96. package/dist/helpers/getModels.d.ts +1 -1
  97. package/dist/helpers/index.d.ts +1 -1
  98. package/dist/helpers/index.d.ts.map +1 -1
  99. package/dist/helpers/openClientFor.js +10 -7
  100. package/dist/helpers/parse.d.ts.map +1 -1
  101. package/dist/helpers/parse.js +33 -31
  102. package/dist/hooks/useReactiveSpec.d.ts +9 -9
  103. package/dist/hooks/useSidebar.js +18 -17
  104. package/dist/index.d.ts +0 -2
  105. package/dist/index.d.ts.map +1 -1
  106. package/dist/index.js +101 -102
  107. package/dist/legacy/components/CardForm.vue.d.ts +10 -0
  108. package/dist/legacy/components/CardForm.vue.d.ts.map +1 -0
  109. package/dist/legacy/components/CardForm.vue.js +13 -0
  110. package/dist/legacy/components/CardFormButton.vue.d.ts +12 -0
  111. package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -0
  112. package/dist/legacy/components/CardFormButton.vue.js +7 -0
  113. package/dist/legacy/components/CardFormButton.vue2.js +18 -0
  114. package/dist/legacy/components/CardFormGroup.vue.d.ts +10 -0
  115. package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -0
  116. package/dist/legacy/components/CardFormGroup.vue.js +13 -0
  117. package/dist/legacy/components/CardFormRows.vue.d.ts +10 -0
  118. package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -0
  119. package/dist/legacy/components/CardFormRows.vue.js +13 -0
  120. package/dist/legacy/components/CardFormTextInput.vue.d.ts +25 -0
  121. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -0
  122. package/dist/legacy/components/CardFormTextInput.vue.js +7 -0
  123. package/dist/legacy/components/CardFormTextInput.vue2.js +37 -0
  124. package/dist/{components/Content/BaseUrl/ServerVariables.vue.d.ts → legacy/components/SecurityScheme.vue.d.ts} +6 -4
  125. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -0
  126. package/dist/legacy/components/SecurityScheme.vue.js +7 -0
  127. package/dist/legacy/components/SecurityScheme.vue2.js +364 -0
  128. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +26 -0
  129. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -0
  130. package/dist/legacy/components/SecuritySchemeScopes.vue.js +7 -0
  131. package/dist/legacy/components/SecuritySchemeScopes.vue2.js +91 -0
  132. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +25 -0
  133. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -0
  134. package/dist/legacy/components/SecuritySchemeSelector.vue.js +7 -0
  135. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +64 -0
  136. package/dist/legacy/fixtures/httpHeaders.d.ts +6 -0
  137. package/dist/legacy/fixtures/httpHeaders.d.ts.map +1 -0
  138. package/dist/legacy/fixtures/httpRequestMethods.d.ts +10 -0
  139. package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +1 -0
  140. package/dist/legacy/fixtures/httpRequestMethods.js +18 -0
  141. package/dist/legacy/fixtures/index.d.ts +3 -0
  142. package/dist/legacy/fixtures/index.d.ts.map +1 -0
  143. package/dist/legacy/helpers/createPlaceholderRequest.d.ts +6 -0
  144. package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +1 -0
  145. package/dist/legacy/helpers/createPlaceholderRequest.js +14 -0
  146. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +5 -0
  147. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +1 -0
  148. package/dist/legacy/helpers/encodeStringAsBase64.js +6 -0
  149. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +10 -0
  150. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -0
  151. package/dist/legacy/helpers/getRequestFromAuthentication.js +83 -0
  152. package/dist/legacy/helpers/getUrlFromServerState.d.ts +6 -0
  153. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -0
  154. package/dist/legacy/helpers/getUrlFromServerState.js +9 -0
  155. package/dist/legacy/helpers/humanDiff.d.ts +5 -0
  156. package/dist/legacy/helpers/humanDiff.d.ts.map +1 -0
  157. package/dist/legacy/helpers/index.d.ts +12 -0
  158. package/dist/legacy/helpers/index.d.ts.map +1 -0
  159. package/dist/legacy/helpers/mapFromArray.d.ts +5 -0
  160. package/dist/legacy/helpers/mapFromArray.d.ts.map +1 -0
  161. package/dist/legacy/helpers/normalizeHeaders.d.ts +9 -0
  162. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -0
  163. package/dist/legacy/helpers/normalizePath.d.ts +5 -0
  164. package/dist/legacy/helpers/normalizePath.d.ts.map +1 -0
  165. package/dist/legacy/helpers/normalizeRequestMethod.d.ts +6 -0
  166. package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -0
  167. package/dist/legacy/helpers/normalizeRequestMethod.js +14 -0
  168. package/dist/legacy/helpers/normalizeUrl.d.ts +5 -0
  169. package/dist/legacy/helpers/normalizeUrl.d.ts.map +1 -0
  170. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +24 -0
  171. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +1 -0
  172. package/dist/legacy/index.d.ts +5 -0
  173. package/dist/legacy/index.d.ts.map +1 -0
  174. package/dist/legacy/stores/index.d.ts +6 -0
  175. package/dist/legacy/stores/index.d.ts.map +1 -0
  176. package/dist/legacy/stores/useApiClientStore.d.ts +18 -0
  177. package/dist/legacy/stores/useApiClientStore.d.ts.map +1 -0
  178. package/dist/legacy/stores/useApiClientStore.js +32 -0
  179. package/dist/legacy/stores/useAuthenticationStore.d.ts +59 -0
  180. package/dist/legacy/stores/useAuthenticationStore.d.ts.map +1 -0
  181. package/dist/legacy/stores/useAuthenticationStore.js +36 -0
  182. package/dist/legacy/stores/useOpenApiStore.d.ts +95 -0
  183. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -0
  184. package/dist/legacy/stores/useOpenApiStore.js +23 -0
  185. package/dist/legacy/stores/useRequestStore.d.ts +58 -0
  186. package/dist/legacy/stores/useRequestStore.d.ts.map +1 -0
  187. package/dist/legacy/stores/useRequestStore.js +33 -0
  188. package/dist/legacy/stores/useServerStore.d.ts +18 -0
  189. package/dist/legacy/stores/useServerStore.d.ts.map +1 -0
  190. package/dist/legacy/stores/useServerStore.js +18 -0
  191. package/dist/legacy/types.d.ts +117 -0
  192. package/dist/legacy/types.d.ts.map +1 -0
  193. package/dist/stores/index.d.ts +1 -0
  194. package/dist/stores/index.d.ts.map +1 -1
  195. package/dist/style.css +1 -1
  196. package/dist/types.d.ts +8 -11
  197. package/dist/types.d.ts.map +1 -1
  198. package/package.json +16 -15
  199. package/dist/components/ApiClientModal.vue2.js +0 -4
  200. package/dist/components/ApiClientModalOld.vue.d.ts.map +0 -1
  201. package/dist/components/ApiClientModalOld.vue.js +0 -7
  202. package/dist/components/ApiClientModalOld.vue2.js +0 -88
  203. package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts +0 -3
  204. package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
  205. package/dist/components/Content/BaseUrl/BaseUrl.vue.js +0 -7
  206. package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +0 -90
  207. package/dist/components/Content/BaseUrl/ServerItem.vue.d.ts.map +0 -1
  208. package/dist/components/Content/BaseUrl/ServerItem.vue.js +0 -8
  209. package/dist/components/Content/BaseUrl/ServerItem.vue2.js +0 -35
  210. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +0 -1
  211. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +0 -7
  212. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +0 -1
  213. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +0 -7
  214. package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +0 -1
  215. package/dist/components/Content/BaseUrl/ServerVariables.vue.js +0 -7
  216. package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +0 -47
  217. package/dist/components/Content/BaseUrl/index.d.ts +0 -2
  218. package/dist/components/Content/BaseUrl/index.d.ts.map +0 -1
  219. package/dist/components/Content/Schema/SchemaProperty.spec.d.ts +0 -2
  220. package/dist/components/Content/Schema/SchemaProperty.spec.d.ts.map +0 -1
  221. package/dist/features.d.ts +0 -8
  222. package/dist/features.d.ts.map +0 -1
  223. package/dist/features.js +0 -5
  224. package/dist/standalone.spec.d.ts +0 -2
  225. package/dist/standalone.spec.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,IAAI,EACJ,iBAAiB,EAClB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAI/B,KAAK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ClC,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IACxC,CAAC,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACzC,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5B,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5B,CAAC,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAC5B,CAAA"}
package/package.json CHANGED
@@ -20,18 +20,15 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.24.20",
23
+ "version": "1.24.23",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  },
27
27
  "type": "module",
28
28
  "main": "./dist/index.js",
29
- "types": "dist/index.d.ts",
29
+ "types": "./dist/index.d.ts",
30
30
  "exports": {
31
- ".": {
32
- "import": "./dist/index.js",
33
- "require": "./dist/index.cjs"
34
- },
31
+ ".": "./dist/index.js",
35
32
  "./style.css": "./dist/style.css",
36
33
  "./browser/standalone.js": "./dist/browser/standalone.js"
37
34
  },
@@ -40,9 +37,13 @@
40
37
  "!dist/webpack-stats.json",
41
38
  "CHANGELOG.md"
42
39
  ],
40
+ "imports": {
41
+ "#legacy": "./src/legacy/index.ts"
42
+ },
43
43
  "browser": "./dist/browser/standalone.js",
44
44
  "module": "./dist/index.js",
45
45
  "dependencies": {
46
+ "@floating-ui/vue": "^1.0.2",
46
47
  "@headlessui/vue": "^1.7.20",
47
48
  "@scalar/openapi-parser": "^0.7.1",
48
49
  "@scalar/snippetz": "^0.1.6",
@@ -53,17 +54,17 @@
53
54
  "fuse.js": "^7.0.0",
54
55
  "github-slugger": "^2.0.0",
55
56
  "httpsnippet-lite": "^3.0.5",
57
+ "nanoid": "^5.0.7",
56
58
  "postcss-nested": "^6.0.1",
57
59
  "unhead": "^1.8.3",
58
60
  "unified": "^11.0.4",
59
61
  "vue": "^3.4.22",
60
- "@scalar/api-client-modal": "0.0.16",
61
- "@scalar/api-client": "1.3.19",
62
- "@scalar/components": "0.12.4",
63
- "@scalar/oas-utils": "0.2.5",
64
- "@scalar/themes": "0.9.8",
65
- "@scalar/use-tooltip": "1.0.1",
66
- "@scalar/use-toasts": "0.7.4"
62
+ "@scalar/api-client": "2.0.0",
63
+ "@scalar/components": "0.12.6",
64
+ "@scalar/oas-utils": "0.2.7",
65
+ "@scalar/use-toasts": "0.7.4",
66
+ "@scalar/themes": "0.9.9",
67
+ "@scalar/use-tooltip": "1.0.2"
67
68
  },
68
69
  "devDependencies": {
69
70
  "@etchteam/storybook-addon-css-variables-theme": "^1.5.1",
@@ -90,8 +91,8 @@
90
91
  "vitest": "^1.6.0",
91
92
  "vitest-matchmedia-mock": "^1.0.5",
92
93
  "vue-tsc": "^2.0.13",
93
- "@scalar/build-tooling": "0.1.7",
94
- "@scalar/galaxy": "0.2.4"
94
+ "@scalar/galaxy": "0.2.4",
95
+ "@scalar/build-tooling": "0.1.7"
95
96
  },
96
97
  "scripts": {
97
98
  "analyze:default": "pnpm dlx vite-bundle-visualizer",
@@ -1,4 +0,0 @@
1
- import f from "./ApiClientModal.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApiClientModalOld.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModalOld.vue"],"names":[],"mappings":"AA+SA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;AAkP7C,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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,7 +0,0 @@
1
- import o from "./ApiClientModalOld.vue2.js";
2
- /* empty css */
3
- import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ad4018ae"]]);
5
- export {
6
- d as default
7
- };
@@ -1,88 +0,0 @@
1
- import { defineComponent as C, defineAsyncComponent as b, ref as f, openBlock as l, createElementBlock as d, Fragment as w, unref as e, createElementVNode as i, renderSlot as m, createVNode as n, withCtx as p, withDirectives as y, vShow as _, createCommentVNode as u } from "vue";
2
- import { useApiClientStore as k } from "@scalar/api-client";
3
- import { ScalarIcon as v } from "@scalar/components";
4
- import { useMediaQuery as A } from "@vueuse/core";
5
- import B from "./Sidebar/Sidebar.vue.js";
6
- const g = {
7
- key: 0,
8
- class: "api-client-drawer"
9
- }, x = { class: "api-client-container" }, E = { class: "scalar-api-client-height" }, M = { class: "scalar-api-client-states" }, U = { class: "t-doc__sidebar" }, K = /* @__PURE__ */ C({
10
- __name: "ApiClientModalOld",
11
- props: {
12
- parsedSpec: {},
13
- overloadShow: { type: Boolean },
14
- proxyUrl: {},
15
- theme: {}
16
- },
17
- emits: ["toggleDarkMode"],
18
- setup($) {
19
- const h = b(
20
- () => import("@scalar/api-client").then((t) => t.ApiClient)
21
- ), { hideApiClient: r, state: c } = k(), S = A("(max-width: 1000px)"), s = f(!1);
22
- return (t, o) => (l(), d(w, null, [
23
- e(c).showApiClient || t.overloadShow ? (l(), d("div", g, [
24
- i("div", x, [
25
- m(t.$slots, "header", {}, void 0, !0),
26
- i("div", E, [
27
- n(e(h), {
28
- proxyUrl: t.proxyUrl,
29
- showSideBar: s.value,
30
- theme: t.theme ?? "none",
31
- withDefaultFonts: !1,
32
- onEscapeKeyPress: e(r),
33
- onToggleSidebar: o[2] || (o[2] = (a) => s.value = !s.value)
34
- }, {
35
- "address-bar-controls": p(() => [
36
- i("div", M, [
37
- i("button", {
38
- class: "scalar-api-client-states-button scalar-api-client-states-button__endpoints",
39
- type: "button",
40
- onClick: o[0] || (o[0] = (a) => s.value = !s.value)
41
- }, [
42
- n(e(v), {
43
- icon: s.value ? "SideBarClosed" : "SideBarOpen",
44
- size: "sm"
45
- }, null, 8, ["icon"])
46
- ]),
47
- i("button", {
48
- class: "scalar-api-client-states-button",
49
- type: "button",
50
- onClick: o[1] || (o[1] = //@ts-ignore
51
- (...a) => e(r) && e(r)(...a))
52
- }, [
53
- n(e(v), {
54
- icon: "Close",
55
- size: "sm"
56
- })
57
- ])
58
- ])
59
- ]),
60
- sidebar: p(() => [
61
- i("div", U, [
62
- y(n(e(B), { parsedSpec: t.parsedSpec }, {
63
- "sidebar-start": p(() => [
64
- m(t.$slots, "sidebar-start", {}, void 0, !0)
65
- ]),
66
- _: 3
67
- }, 8, ["parsedSpec"]), [
68
- [_, !e(S)]
69
- ])
70
- ])
71
- ]),
72
- _: 3
73
- }, 8, ["proxyUrl", "showSideBar", "theme", "onEscapeKeyPress"])
74
- ])
75
- ])
76
- ])) : u("", !0),
77
- e(c).showApiClient ? (l(), d("div", {
78
- key: 1,
79
- class: "api-client-drawer-exit",
80
- onClick: o[3] || (o[3] = //@ts-ignore
81
- (...a) => e(r) && e(r)(...a))
82
- })) : u("", !0)
83
- ], 64));
84
- }
85
- });
86
- export {
87
- K as default
88
- };
@@ -1,3 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
- export default _default;
3
- //# sourceMappingURL=BaseUrl.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/BaseUrl.vue"],"names":[],"mappings":";AAiXA,wBAKG"}
@@ -1,7 +0,0 @@
1
- import o from "./BaseUrl.vue2.js";
2
- /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e4183eb6"]]);
5
- export {
6
- m as default
7
- };
@@ -1,90 +0,0 @@
1
- import { defineComponent as b, ref as S, watch as k, unref as r, openBlock as l, createElementBlock as v, createElementVNode as o, Fragment as g, renderList as I, toDisplayString as V, createCommentVNode as d, createVNode as p, createBlock as y, pushScopeId as B, popScopeId as w } from "vue";
2
- import { useServerStore as C, findVariables as E } from "@scalar/api-client";
3
- import { ScalarIcon as N, ScalarMarkdown as x } from "@scalar/components";
4
- import D from "./ServerItem.vue.js";
5
- import L from "./ServerVariables.vue.js";
6
- const U = (c) => (B("data-v-e4183eb6"), c = c(), w(), c), j = { key: 0 }, F = /* @__PURE__ */ U(() => /* @__PURE__ */ o("span", { class: "scalar-card-serverlist-title" }, "Base URL", -1)), M = { class: "scalar-card-serverlist" }, O = { class: "scalar-card-serverlist-container" }, R = { class: "server-item" }, q = { class: "server-selector" }, z = ["value"], A = ["value"], G = {
7
- key: 0,
8
- muted: ""
9
- }, H = { class: "description" }, W = /* @__PURE__ */ b({
10
- __name: "BaseUrl",
11
- setup(c) {
12
- const { server: e, setServer: f } = C(), s = S(0);
13
- return k(
14
- [s, () => e.servers],
15
- () => {
16
- var n, _, m;
17
- if (!e.servers.length) return;
18
- const a = ((n = e.servers[s.value]) == null ? void 0 : n.variables) ?? {}, i = a ? Object.keys(a).map((t) => {
19
- var h;
20
- return {
21
- name: t,
22
- value: ((h = a[t].default) == null ? void 0 : h.toString()) ?? "",
23
- enum: a[t].enum ?? []
24
- };
25
- }) : [];
26
- E(
27
- (_ = e.servers[s.value]) == null ? void 0 : _.url
28
- ).filter((t) => !a[t]).forEach((t) => {
29
- i.push({
30
- name: t,
31
- value: "",
32
- enum: []
33
- });
34
- }), f({
35
- selectedServer: s.value,
36
- description: (m = e.servers[s.value]) == null ? void 0 : m.description,
37
- variables: i
38
- });
39
- },
40
- {
41
- immediate: !0,
42
- deep: !0
43
- }
44
- ), (a, i) => r(e).servers.length > 0 ? (l(), v("div", j, [
45
- F,
46
- o("div", M, [
47
- o("div", O, [
48
- o("div", R, [
49
- o("div", q, [
50
- r(e).servers.length > 1 ? (l(), v("select", {
51
- key: 0,
52
- value: s.value,
53
- onInput: i[0] || (i[0] = (u) => s.value = parseInt(
54
- u.target.value,
55
- 10
56
- ))
57
- }, [
58
- (l(!0), v(g, null, I(r(e).servers, (u, n) => (l(), v("option", {
59
- key: n,
60
- value: n
61
- }, V(u.url), 9, A))), 128))
62
- ], 40, z)) : d("", !0),
63
- p(D, {
64
- value: r(e).servers[s.value],
65
- variables: r(e).variables
66
- }, null, 8, ["value", "variables"]),
67
- r(e).servers.length > 1 ? (l(), y(r(N), {
68
- key: 1,
69
- icon: "ChevronDown"
70
- })) : d("", !0)
71
- ])
72
- ]),
73
- p(L, {
74
- value: r(e).variables
75
- }, null, 8, ["value"])
76
- ])
77
- ]),
78
- r(e).description ? (l(), v("div", G, [
79
- o("div", H, [
80
- p(r(x), {
81
- value: r(e).description
82
- }, null, 8, ["value"])
83
- ])
84
- ])) : d("", !0)
85
- ])) : d("", !0);
86
- }
87
- });
88
- export {
89
- W as default
90
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerItem.vue"],"names":[],"mappings":"AA+EA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EAEd,MAAM,oBAAoB,CAAA;;;;;;;;AA+F3B,wBAMG;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,8 +0,0 @@
1
- import o from "./ServerItem.vue2.js";
2
- /* empty css */
3
- /* empty css */
4
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-41c016dc"]]);
6
- export {
7
- c as default
8
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as v, computed as u, openBlock as d, createElementBlock as f, unref as b, createCommentVNode as C } from "vue";
2
- import { replaceVariables as k } from "@scalar/api-client";
3
- import { useClipboard as T } from "../../../hooks/useClipboard.js";
4
- const _ = ["title", "innerHTML"], y = /* @__PURE__ */ v({
5
- __name: "ServerItem",
6
- props: {
7
- value: {},
8
- variables: {}
9
- },
10
- setup(p) {
11
- const n = p, { copyToClipboard: i } = T(), o = u(() => {
12
- var l;
13
- const r = (((l = n.value) == null ? void 0 : l.url) ?? "").replace(/(<([^>]+)>)/gi, "");
14
- return k(r, (a) => {
15
- var s;
16
- const e = (s = n.variables) == null ? void 0 : s.find(
17
- (m) => m.name === a
18
- );
19
- return `<span class="base-url-variable">${((e == null ? void 0 : e.value) ?? "") !== "" ? e == null ? void 0 : e.value : `{${a}}`}</span>`;
20
- });
21
- }), c = u(
22
- () => o.value.replace(/(<([^>]+)>)/gi, "")
23
- );
24
- return (t, r) => t.value ? (d(), f("a", {
25
- key: 0,
26
- class: "base-url",
27
- title: t.value.description,
28
- onClick: r[0] || (r[0] = (l) => b(i)(c.value)),
29
- innerHTML: o.value
30
- }, null, 8, _)) : C("", !0);
31
- }
32
- });
33
- export {
34
- y as default
35
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerVariableSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariableSelect.vue"],"names":[],"mappings":";;;;;;;;;;;AA6LA,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,7 +0,0 @@
1
- import e from "./ServerVariableSelect.vue2.js";
2
- /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(e, [["__scopeId", "data-v-59ebb6b5"]]);
5
- export {
6
- m as default
7
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerVariableTextbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariableTextbox.vue"],"names":[],"mappings":";;;;;;;;;AAyGA,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,7 +0,0 @@
1
- import o from "./ServerVariableTextbox.vue2.js";
2
- /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d02ff0e9"]]);
5
- export {
6
- f as default
7
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerVariables.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariables.vue"],"names":[],"mappings":"AA4EA,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,oBAAoB,CAAA;;;;;;AAgIlE,wBAMG;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,7 +0,0 @@
1
- import r from "./ServerVariables.vue2.js";
2
- /* empty css */
3
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ e(r, [["__scopeId", "data-v-99d6eef0"]]);
5
- export {
6
- f as default
7
- };
@@ -1,47 +0,0 @@
1
- import { defineComponent as p, openBlock as r, createElementBlock as o, Fragment as v, renderList as d, createElementVNode as s, toDisplayString as f, createBlock as m, createCommentVNode as _ } from "vue";
2
- import { useServerStore as h } from "@scalar/api-client";
3
- import S from "./ServerVariableSelect.vue.js";
4
- import g from "./ServerVariableTextbox.vue.js";
5
- const k = {
6
- key: 0,
7
- class: "variable-container"
8
- }, V = ["for"], E = /* @__PURE__ */ p({
9
- __name: "ServerVariables",
10
- props: {
11
- value: {}
12
- },
13
- setup(C) {
14
- const { server: u, setServer: c } = h(), t = (a, l) => {
15
- const e = [...u.variables], n = e.findIndex((i) => i.name === a);
16
- e[n].value = l, c({
17
- variables: e
18
- });
19
- };
20
- return (a, l) => a.value ? (r(), o("div", k, [
21
- (r(!0), o(v, null, d(a.value, (e) => (r(), o("div", {
22
- key: e.name,
23
- class: "variable-container-item"
24
- }, [
25
- s("label", {
26
- class: "variable-description",
27
- for: `variable-${e.name}`
28
- }, [
29
- s("code", null, f(e.name), 1)
30
- ], 8, V),
31
- e.enum && e.enum.length ? (r(), m(S, {
32
- key: 0,
33
- enum: e.enum.map((n) => `${n}`),
34
- value: e.value,
35
- onChange: (n) => t(e.name, n)
36
- }, null, 8, ["enum", "value", "onChange"])) : (r(), m(g, {
37
- key: 1,
38
- value: e.value,
39
- onChange: (n) => t(e.name, n)
40
- }, null, 8, ["value", "onChange"]))
41
- ]))), 128))
42
- ])) : _("", !0);
43
- }
44
- });
45
- export {
46
- E as default
47
- };
@@ -1,2 +0,0 @@
1
- export { default as BaseUrl } from './BaseUrl.vue.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=SchemaProperty.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SchemaProperty.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.spec.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- /**
2
- * We’re slowly switching from `@scalar/api-client@1.x` to 2.0, currently living in `packages/client-app`.
3
- *
4
- * To enable the new API client, copy `packages/api-reference/.env.example` to `packages/api-reference/.env`
5
- * and set `NEW_API_CLIENT=true`.
6
- */
7
- export declare const NEW_API_MODAL: boolean;
8
- //# sourceMappingURL=features.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../src/features.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,SAAiD,CAAA"}
package/dist/features.js DELETED
@@ -1,5 +0,0 @@
1
- var e = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
2
- const _ = e.VITE_NEW_API_CLIENT === "true";
3
- export {
4
- _ as NEW_API_MODAL
5
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=standalone.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"standalone.spec.d.ts","sourceRoot":"","sources":["../src/standalone.spec.ts"],"names":[],"mappings":""}