@scalar/api-reference 1.20.11 → 1.20.13

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 (74) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/README.md +5 -5
  3. package/dist/browser/standalone.js +10 -10
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/ApiClientModal.vue.d.ts +0 -1
  6. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Operation/ExampleRequest.vue.d.ts.map +1 -1
  15. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  16. package/dist/components/Layouts/index.d.ts +2 -2
  17. package/dist/components/Layouts/index.d.ts.map +1 -1
  18. package/dist/components/MarkdownRenderer/MarkdownRenderer.vue.d.ts.map +1 -1
  19. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  20. package/dist/helpers/createHash.d.ts +7 -0
  21. package/dist/helpers/createHash.d.ts.map +1 -0
  22. package/dist/helpers/getApiClientRequest.d.ts +6 -6
  23. package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
  24. package/dist/helpers/getHeadingsFromMarkdown.d.ts +1 -5
  25. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +1 -1
  26. package/dist/helpers/index.d.ts +1 -1
  27. package/dist/helpers/index.d.ts.map +1 -1
  28. package/dist/helpers/openClientFor.d.ts +1 -1
  29. package/dist/helpers/openClientFor.d.ts.map +1 -1
  30. package/dist/hooks/index.d.ts +2 -2
  31. package/dist/hooks/index.d.ts.map +1 -1
  32. package/dist/hooks/{useSnippetTargets.d.ts → useHttpClients.d.ts} +2 -2
  33. package/dist/hooks/useHttpClients.d.ts.map +1 -0
  34. package/dist/hooks/useNavState.d.ts +1 -2
  35. package/dist/hooks/useNavState.d.ts.map +1 -1
  36. package/dist/hooks/useSidebar.d.ts +1 -0
  37. package/dist/hooks/useSidebar.d.ts.map +1 -1
  38. package/dist/index.cjs +159 -159
  39. package/dist/index.css +1 -1
  40. package/dist/index.d.ts +2 -1
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +28285 -27484
  43. package/dist/stores/index.d.ts +2 -1
  44. package/dist/stores/index.d.ts.map +1 -1
  45. package/dist/stores/useHttpClientStore.d.ts +22 -0
  46. package/dist/stores/useHttpClientStore.d.ts.map +1 -0
  47. package/dist/stores/useServerStore.d.ts +16 -0
  48. package/dist/stores/useServerStore.d.ts.map +1 -0
  49. package/dist/types.d.ts +4 -26
  50. package/dist/types.d.ts.map +1 -1
  51. package/package.json +12 -6
  52. package/dist/components/Content/Authentication/CardForm.vue.d.ts +0 -10
  53. package/dist/components/Content/Authentication/CardForm.vue.d.ts.map +0 -1
  54. package/dist/components/Content/Authentication/CardFormButton.vue.d.ts +0 -12
  55. package/dist/components/Content/Authentication/CardFormButton.vue.d.ts.map +0 -1
  56. package/dist/components/Content/Authentication/CardFormGroup.vue.d.ts +0 -10
  57. package/dist/components/Content/Authentication/CardFormGroup.vue.d.ts.map +0 -1
  58. package/dist/components/Content/Authentication/CardFormTextInput.vue.d.ts +0 -25
  59. package/dist/components/Content/Authentication/CardFormTextInput.vue.d.ts.map +0 -1
  60. package/dist/components/Content/Authentication/SecurityScheme.vue.d.ts +0 -17
  61. package/dist/components/Content/Authentication/SecurityScheme.vue.d.ts.map +0 -1
  62. package/dist/components/Content/Authentication/SecuritySchemeScopes.vue.d.ts +0 -26
  63. package/dist/components/Content/Authentication/SecuritySchemeScopes.vue.d.ts.map +0 -1
  64. package/dist/components/Content/Authentication/SecuritySchemeSelector.vue.d.ts +0 -25
  65. package/dist/components/Content/Authentication/SecuritySchemeSelector.vue.d.ts.map +0 -1
  66. package/dist/helpers/getRequestFromAuthentication.d.ts +0 -10
  67. package/dist/helpers/getRequestFromAuthentication.d.ts.map +0 -1
  68. package/dist/hooks/useSnippetTargets.d.ts.map +0 -1
  69. package/dist/stores/globalStore.d.ts +0 -43
  70. package/dist/stores/globalStore.d.ts.map +0 -1
  71. package/dist/stores/template.d.ts +0 -44
  72. package/dist/stores/template.d.ts.map +0 -1
  73. package/dist/stores/utility.d.ts +0 -10
  74. package/dist/stores/utility.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.20.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 8b0691b: feat: added future support for SSR server state hydration
8
+ - Updated dependencies [8b0691b]
9
+ - @scalar/api-client@1.1.11
10
+ - @scalar/oas-utils@0.1.2
11
+
12
+ ## 1.20.12
13
+
14
+ ### Patch Changes
15
+
16
+ - 999dfc9: chore: moved sidemenu control to css
17
+ - fd5c714: feat: add authentication UI to the API client
18
+ - 5c1b385: fix: improper variables name + remove importants
19
+ - 5f5395f: fix: toast notification doesn't show up
20
+ - Updated dependencies [999dfc9]
21
+ - @scalar/api-client@1.1.10
22
+
3
23
  ## 1.20.11
4
24
 
5
25
  ### Patch Changes
@@ -466,7 +486,7 @@
466
486
 
467
487
  - 92a8b9f: chore: update dependencies
468
488
  - 230f9fb: feat: prefill the authentication data
469
- - 77c62d3: fix: path isn’t prefixed (https://github.com/scalar/scalar/issues/937)
489
+ - 77c62d3: fix: path isn’t prefixed (<https://github.com/scalar/scalar/issues/937>)
470
490
  - Updated dependencies [e0faebb]
471
491
  - Updated dependencies [92a8b9f]
472
492
  - Updated dependencies [abfb086]
package/README.md CHANGED
@@ -154,10 +154,10 @@ To make authentication easier you can prefill the credentials for your users:
154
154
  ````vue
155
155
  <ApiReference :configuration="{
156
156
  authentication: {
157
- // The OpenAPI file has keys for all security schemes
157
+ // The OpenAPI file has keys for all security schemes:
158
158
  // Which one should be used by default?
159
- securitySchemeKey: 'api_key',
160
- // Okay, the `api_key` security scheme is of type `apiKey`, so prefill the token:
159
+ preferredSecurityScheme: 'my_custom_security_scheme',
160
+ // The `my_custom_security_scheme` security scheme is of type `apiKey`, so prefill the token:
161
161
  apiKey: {
162
162
  token: 'super-secret-token',
163
163
  },
@@ -172,8 +172,8 @@ For OpenAuth2 it’s more looking like this:
172
172
  authentication: {
173
173
  // The OpenAPI file has keys for all security schemes
174
174
  // Which one should be used by default?
175
- securitySchemeKey: 'petstore_auth',
176
- // Okay, the `api_key` security scheme is of type `oAuth2`, so prefill the client id and the scopes:
175
+ preferredSecurityScheme: 'petstore_auth',
176
+ // The `petstore_auth` security scheme is of type `oAuth2`, so prefill the client id and the scopes:
177
177
  oAuth2: {
178
178
  clientId: 'foobar123',
179
179
  // optional: