@scalar/api-reference 1.22.20 → 1.22.25

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 (64) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +4 -5
  3. package/dist/Hide-Q3GPkIKH-Ba4DV2wS.cjs +1 -0
  4. package/dist/Hide-Q3GPkIKH-CR2flZgt.js +21 -0
  5. package/dist/Show-D86hKz5y-CLGkc2Cs.js +21 -0
  6. package/dist/Show-D86hKz5y-DCaWj13Q.cjs +1 -0
  7. package/dist/browser/standalone.js +14 -14
  8. package/dist/browser/webpack-stats.json +1 -1
  9. package/dist/components/ApiClientModal.vue.d.ts +1 -1
  10. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  11. package/dist/components/ApiReference.vue.d.ts +1 -1
  12. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  13. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  14. package/dist/components/Card/CardContent.vue.d.ts +1 -1
  15. package/dist/components/Card/CardContent.vue.d.ts.map +1 -1
  16. package/dist/components/Card/CardFooter.vue.d.ts +1 -1
  17. package/dist/components/Card/CardFooter.vue.d.ts.map +1 -1
  18. package/dist/components/Card/CardHeader.vue.d.ts +1 -1
  19. package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Authentication/Authentication.vue.d.ts +1 -1
  21. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts +14 -1
  23. package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -1
  25. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts +1 -1
  27. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Operation/TryRequestButton.vue.d.ts +1 -1
  29. package/dist/components/Content/Operation/TryRequestButton.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +1 -1
  32. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Tag/mutationObserver.d.ts +1 -1
  34. package/dist/components/Content/Tag/mutationObserver.d.ts.map +1 -1
  35. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  36. package/dist/components/Layouts/ModernLayout.vue.d.ts +1 -1
  37. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  38. package/dist/components/MarkdownRenderer/MarkdownRenderer.vue.d.ts.map +1 -1
  39. package/dist/components/SearchButton.vue.d.ts +1 -1
  40. package/dist/components/SearchButton.vue.d.ts.map +1 -1
  41. package/dist/helpers/getHeadingsFromMarkdown.d.ts +1 -1
  42. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +1 -1
  43. package/dist/helpers/getLowestHeadingLevel.d.ts +1 -1
  44. package/dist/helpers/getLowestHeadingLevel.d.ts.map +1 -1
  45. package/dist/helpers/hasSecuritySchemes.d.ts +1 -1
  46. package/dist/helpers/hasSecuritySchemes.d.ts.map +1 -1
  47. package/dist/helpers/hasWebhooks.d.ts +1 -1
  48. package/dist/helpers/hasWebhooks.d.ts.map +1 -1
  49. package/dist/helpers/provideSymbols.d.ts +2 -2
  50. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  51. package/dist/helpers/specDownloads.d.ts +2 -1
  52. package/dist/helpers/specDownloads.d.ts.map +1 -1
  53. package/dist/helpers/specHelpers.d.ts +1 -1
  54. package/dist/helpers/specHelpers.d.ts.map +1 -1
  55. package/dist/hooks/useReactiveSpec.d.ts +1 -37
  56. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  57. package/dist/hooks/useSidebar.d.ts +2 -0
  58. package/dist/hooks/useSidebar.d.ts.map +1 -1
  59. package/dist/index.cjs +131 -693
  60. package/dist/index.css +1 -1
  61. package/dist/index.js +13975 -15644
  62. package/dist/standalone.spec.d.ts +2 -0
  63. package/dist/standalone.spec.d.ts.map +1 -0
  64. package/package.json +18 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,82 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.22.25
4
+
5
+ ### Patch Changes
6
+
7
+ - 5b24896: fix: sidebar doesn’t react to changes
8
+ - 64024a5: refactor: use prismjs instead of highlightjs in the markdown component
9
+ - 36e1e66: feat: include spec title in downloaded spec filename
10
+ - 2e7b074: feat: clean up toast styles and colors
11
+ - 298735f: fix: hide default caret on <summary> on Safari
12
+ - Updated dependencies [d649691]
13
+ - Updated dependencies [2e7b074]
14
+ - @scalar/api-client@1.2.17
15
+ - @scalar/use-toasts@0.6.5
16
+
17
+ ## 1.22.24
18
+
19
+ ### Patch Changes
20
+
21
+ - 9ba838b: chore: fetch scalar galaxy example from jsdelivr
22
+ - 45dc04b: fix: can’t release packages
23
+ - Updated dependencies [45dc04b]
24
+ - @scalar/use-tooltip@0.6.2
25
+ - @scalar/api-client@1.2.16
26
+ - @scalar/components@0.7.3
27
+ - @scalar/use-toasts@0.6.4
28
+ - @scalar/oas-utils@0.1.10
29
+ - @scalar/use-modal@0.3.3
30
+ - @scalar/themes@0.7.9
31
+
32
+ ## 1.22.23
33
+
34
+ ### Patch Changes
35
+
36
+ - 05e2e27: chore: add provenance statement
37
+ - Updated dependencies [05e2e27]
38
+ - @scalar/api-client@1.2.15
39
+ - @scalar/components@0.7.2
40
+ - @scalar/galaxy@0.1.1
41
+ - @scalar/oas-utils@0.1.9
42
+ - @scalar/themes@0.7.8
43
+ - @scalar/use-modal@0.3.2
44
+ - @scalar/use-toasts@0.6.3
45
+ - @scalar/use-tooltip@0.6.1
46
+
47
+ ## 1.22.22
48
+
49
+ ### Patch Changes
50
+
51
+ - f1bf5bc: fix: sidebar headings don’t reset
52
+ - 085a0c2: fix: mimetypes with charsets and variants are ignored
53
+ - Updated dependencies [085a0c2]
54
+ - Updated dependencies [fa10d45]
55
+ - @scalar/oas-utils@0.1.8
56
+ - @scalar/api-client@1.2.14
57
+ - @scalar/components@0.7.1
58
+
59
+ ## 1.22.21
60
+
61
+ ### Patch Changes
62
+
63
+ - 07211ad: chore: added new lint rule for type importing for better perf
64
+ - 801ad65: feat: use schema property title if available
65
+ - d4fa19b: feat: allow multiple configs for nuxt
66
+ - b234d1d: feat: added two events to standalone references build with tests
67
+ - Updated dependencies [c68939c]
68
+ - Updated dependencies [07211ad]
69
+ - Updated dependencies [d4fa19b]
70
+ - Updated dependencies [1c18f77]
71
+ - Updated dependencies [830b3c8]
72
+ - Updated dependencies [b234d1d]
73
+ - @scalar/api-client@1.2.13
74
+ - @scalar/components@0.7.0
75
+ - @scalar/oas-utils@0.1.7
76
+ - @scalar/use-modal@0.3.1
77
+ - @scalar/themes@0.7.7
78
+ - @scalar/use-toasts@0.6.2
79
+
3
80
  ## 1.22.20
4
81
 
5
82
  ### Patch Changes
package/README.md CHANGED
@@ -171,7 +171,7 @@ You can listen to spec changes with onSpecUpdate that runs on spec/swagger conte
171
171
 
172
172
  To make authentication easier you can prefill the credentials for your users:
173
173
 
174
- ````vue
174
+ ```vue
175
175
  <ApiReference :configuration="{
176
176
  authentication: {
177
177
  // The OpenAPI file has keys for all security schemes:
@@ -183,7 +183,7 @@ To make authentication easier you can prefill the credentials for your users:
183
183
  },
184
184
  },
185
185
  } />
186
- ``
186
+ ```
187
187
 
188
188
  For OpenAuth2 it’s more looking like this:
189
189
 
@@ -192,12 +192,12 @@ For OpenAuth2 it’s more looking like this:
192
192
  authentication: {
193
193
  // The OpenAPI file has keys for all security schemes
194
194
  // Which one should be used by default?
195
- preferredSecurityScheme: 'petstore_auth',
195
+ preferredSecurityScheme: 'planets_auth',
196
196
  // The `petstore_auth` security scheme is of type `oAuth2`, so prefill the client id and the scopes:
197
197
  oAuth2: {
198
198
  clientId: 'foobar123',
199
199
  // optional:
200
- scopes: ['read:pets', 'write:pets'],
200
+ scopes: ['read:planets', 'write:planets'],
201
201
  },
202
202
  },
203
203
  } />
@@ -212,4 +212,3 @@ By default we’re using Inter and JetBrains Mono, served by Google Fonts. If yo
212
212
  withDefaultFonts: false
213
213
  } />
214
214
  ```
215
- ````
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},r=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M.264 1.324a.75.75 0 0 1 1.06-1.06l2.629 2.628C4.86 2.393 5.893 2.04 7 2.04c1.532 0 2.92.676 4.035 1.48 1.118.805 2.003 1.769 2.539 2.416l.004.006c.24.298.366.675.366 1.058s-.126.76-.366 1.058l-.004.006a14.5 14.5 0 0 1-2.249 2.2l2.411 2.412a.75.75 0 1 1-1.06 1.06zm8.753 6.632a2.232 2.232 0 0 0-2.974-2.974zm-8.59-2.02c.319-.386.762-.884 1.305-1.394l7.104 7.104A5.7 5.7 0 0 1 7 11.96c-1.532 0-2.92-.676-4.035-1.48C1.847 9.676.962 8.712.426 8.065l-.004-.006A1.7 1.7 0 0 1 .056 7c0-.383.126-.76.366-1.058l.004-.006Z","clip-rule":"evenodd"},null,-1),t=[r];function l(c,d){return e.openBlock(),e.createElementBlock("svg",n,[...t])}const o={render:l};exports.default=o;exports.render=l;
@@ -0,0 +1,21 @@
1
+ import { openBlock as e, createElementBlock as l, createElementVNode as n } from "vue";
2
+ const r = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ viewBox: "0 0 14 14"
6
+ }, o = /* @__PURE__ */ n("path", {
7
+ fill: "currentColor",
8
+ "fill-rule": "evenodd",
9
+ d: "M.264 1.324a.75.75 0 0 1 1.06-1.06l2.629 2.628C4.86 2.393 5.893 2.04 7 2.04c1.532 0 2.92.676 4.035 1.48 1.118.805 2.003 1.769 2.539 2.416l.004.006c.24.298.366.675.366 1.058s-.126.76-.366 1.058l-.004.006a14.5 14.5 0 0 1-2.249 2.2l2.411 2.412a.75.75 0 1 1-1.06 1.06zm8.753 6.632a2.232 2.232 0 0 0-2.974-2.974zm-8.59-2.02c.319-.386.762-.884 1.305-1.394l7.104 7.104A5.7 5.7 0 0 1 7 11.96c-1.532 0-2.92-.676-4.035-1.48C1.847 9.676.962 8.712.426 8.065l-.004-.006A1.7 1.7 0 0 1 .056 7c0-.383.126-.76.366-1.058l.004-.006Z",
10
+ "clip-rule": "evenodd"
11
+ }, null, -1), t = [
12
+ o
13
+ ];
14
+ function c(a, d) {
15
+ return e(), l("svg", r, [...t]);
16
+ }
17
+ const i = { render: c };
18
+ export {
19
+ i as default,
20
+ c as render
21
+ };
@@ -0,0 +1,21 @@
1
+ import { openBlock as e, createElementBlock as l, createElementVNode as n } from "vue";
2
+ const r = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ viewBox: "0 0 14 14"
6
+ }, o = /* @__PURE__ */ n("path", {
7
+ fill: "currentColor",
8
+ "fill-rule": "evenodd",
9
+ d: "M2.933 3.491C4.056 2.681 5.456 2 7 2s2.944.682 4.067 1.491c1.128.812 2.02 1.784 2.56 2.437l.005.005c.241.3.368.681.368 1.067s-.127.766-.368 1.067l-.005.005c-.54.653-1.432 1.625-2.56 2.437C9.944 11.32 8.544 12 7 12s-2.944-.682-4.067-1.49C1.805 9.696.913 8.724.373 8.071l-.005-.005A1.7 1.7 0 0 1 0 7c0-.386.127-.766.368-1.067l.005-.005c.54-.653 1.432-1.625 2.56-2.437M7 9.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5",
10
+ "clip-rule": "evenodd"
11
+ }, null, -1), t = [
12
+ o
13
+ ];
14
+ function c(s, d) {
15
+ return e(), l("svg", r, [...t]);
16
+ }
17
+ const i = { render: c };
18
+ export {
19
+ i as default,
20
+ c as render
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},r=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M2.933 3.491C4.056 2.681 5.456 2 7 2s2.944.682 4.067 1.491c1.128.812 2.02 1.784 2.56 2.437l.005.005c.241.3.368.681.368 1.067s-.127.766-.368 1.067l-.005.005c-.54.653-1.432 1.625-2.56 2.437C9.944 11.32 8.544 12 7 12s-2.944-.682-4.067-1.49C1.805 9.696.913 8.724.373 8.071l-.005-.005A1.7 1.7 0 0 1 0 7c0-.386.127-.766.368-1.067l.005-.005c.54-.653 1.432-1.625 2.56-2.437M7 9.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5","clip-rule":"evenodd"},null,-1),t=[r];function l(c,d){return e.openBlock(),e.createElementBlock("svg",n,[...t])}const o={render:l};exports.default=o;exports.render=l;