@scalar/api-reference 1.22.19 → 1.22.24

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 (62) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +4 -4
  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/Introduction.vue.d.ts +1 -1
  23. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts +1 -1
  25. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Operation/TryRequestButton.vue.d.ts +1 -1
  27. package/dist/components/Content/Operation/TryRequestButton.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +1 -1
  30. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Tag/mutationObserver.d.ts +1 -1
  32. package/dist/components/Content/Tag/mutationObserver.d.ts.map +1 -1
  33. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  34. package/dist/components/Layouts/ModernLayout.vue.d.ts +1 -1
  35. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  36. package/dist/components/SearchButton.vue.d.ts +1 -1
  37. package/dist/components/SearchButton.vue.d.ts.map +1 -1
  38. package/dist/helpers/getHeadingsFromMarkdown.d.ts +1 -1
  39. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +1 -1
  40. package/dist/helpers/getLowestHeadingLevel.d.ts +1 -1
  41. package/dist/helpers/getLowestHeadingLevel.d.ts.map +1 -1
  42. package/dist/helpers/hasSecuritySchemes.d.ts +1 -1
  43. package/dist/helpers/hasSecuritySchemes.d.ts.map +1 -1
  44. package/dist/helpers/hasWebhooks.d.ts +1 -1
  45. package/dist/helpers/hasWebhooks.d.ts.map +1 -1
  46. package/dist/helpers/provideSymbols.d.ts +2 -2
  47. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  48. package/dist/helpers/specHelpers.d.ts +1 -1
  49. package/dist/helpers/specHelpers.d.ts.map +1 -1
  50. package/dist/hooks/useReactiveSpec.d.ts +1 -37
  51. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  52. package/dist/hooks/useSidebar.d.ts.map +1 -1
  53. package/dist/index.cjs +140 -694
  54. package/dist/index.css +1 -1
  55. package/dist/index.js +13810 -13773
  56. package/dist/standalone.spec.d.ts +2 -0
  57. package/dist/standalone.spec.d.ts.map +1 -0
  58. package/package.json +16 -15
  59. package/dist/components/CustomToaster.vue.d.ts +0 -3
  60. package/dist/components/CustomToaster.vue.d.ts.map +0 -1
  61. package/dist/hooks/useToasts.d.ts +0 -12
  62. package/dist/hooks/useToasts.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,80 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.22.24
4
+
5
+ ### Patch Changes
6
+
7
+ - 9ba838b: chore: fetch scalar galaxy example from jsdelivr
8
+ - 45dc04b: fix: can’t release packages
9
+ - Updated dependencies [45dc04b]
10
+ - @scalar/use-tooltip@0.6.2
11
+ - @scalar/api-client@1.2.16
12
+ - @scalar/components@0.7.3
13
+ - @scalar/use-toasts@0.6.4
14
+ - @scalar/oas-utils@0.1.10
15
+ - @scalar/use-modal@0.3.3
16
+ - @scalar/themes@0.7.9
17
+
18
+ ## 1.22.23
19
+
20
+ ### Patch Changes
21
+
22
+ - 05e2e27: chore: add provenance statement
23
+ - Updated dependencies [05e2e27]
24
+ - @scalar/api-client@1.2.15
25
+ - @scalar/components@0.7.2
26
+ - @scalar/galaxy@0.1.1
27
+ - @scalar/oas-utils@0.1.9
28
+ - @scalar/themes@0.7.8
29
+ - @scalar/use-modal@0.3.2
30
+ - @scalar/use-toasts@0.6.3
31
+ - @scalar/use-tooltip@0.6.1
32
+
33
+ ## 1.22.22
34
+
35
+ ### Patch Changes
36
+
37
+ - f1bf5bc: fix: sidebar headings don’t reset
38
+ - 085a0c2: fix: mimetypes with charsets and variants are ignored
39
+ - Updated dependencies [085a0c2]
40
+ - Updated dependencies [fa10d45]
41
+ - @scalar/oas-utils@0.1.8
42
+ - @scalar/api-client@1.2.14
43
+ - @scalar/components@0.7.1
44
+
45
+ ## 1.22.21
46
+
47
+ ### Patch Changes
48
+
49
+ - 07211ad: chore: added new lint rule for type importing for better perf
50
+ - 801ad65: feat: use schema property title if available
51
+ - d4fa19b: feat: allow multiple configs for nuxt
52
+ - b234d1d: feat: added two events to standalone references build with tests
53
+ - Updated dependencies [c68939c]
54
+ - Updated dependencies [07211ad]
55
+ - Updated dependencies [d4fa19b]
56
+ - Updated dependencies [1c18f77]
57
+ - Updated dependencies [830b3c8]
58
+ - Updated dependencies [b234d1d]
59
+ - @scalar/api-client@1.2.13
60
+ - @scalar/components@0.7.0
61
+ - @scalar/oas-utils@0.1.7
62
+ - @scalar/use-modal@0.3.1
63
+ - @scalar/themes@0.7.7
64
+ - @scalar/use-toasts@0.6.2
65
+
66
+ ## 1.22.20
67
+
68
+ ### Patch Changes
69
+
70
+ - a8c3045: build: re-introduce @scalar/use-toasts package
71
+ - 1324378: feat: show two levels of headings in the sidebar
72
+ - 9201802: chore: update example page title
73
+ - Updated dependencies [c6e4385]
74
+ - Updated dependencies [a8c3045]
75
+ - @scalar/api-client@1.2.12
76
+ - @scalar/use-toasts@0.6.1
77
+
3
78
  ## 1.22.19
4
79
 
5
80
  ### Patch Changes
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Downloads](https://img.shields.io/npm/dm/%40scalar/api-reference)](https://www.npmjs.com/package/@scalar/api-reference)
5
5
  [![Hits on jsdelivr](https://img.shields.io/jsdelivr/npm/hm/%40scalar%2Fapi-reference)](https://www.jsdelivr.com/package/npm/@scalar/api-reference)
6
6
  [![License](https://img.shields.io/npm/l/%40scalar%2Fapi-reference)](https://www.npmjs.com/package/@scalar/api-reference)
7
- [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/8HeZcRGPFS)
7
+ [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)
8
8
 
9
9
  Generate interactive API documentations from Swagger files. [Try our Demo](https://docs.scalar.com/swagger-editor)
10
10
 
@@ -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
  } />
@@ -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;