@scalar/api-reference 1.25.72 → 1.25.74

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 (65) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/browser/standalone.js +9830 -9835
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +2 -2
  6. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  7. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  8. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +3 -3
  11. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  12. package/dist/components/Content/Introduction/Introduction.vue2.js +32 -32
  13. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  15. package/dist/components/Content/Schema/Schema.vue2.js +10 -11
  16. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  18. package/dist/components/Content/Schema/SchemaProperty.vue2.js +12 -12
  19. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  20. package/dist/components/Content/Tag/Endpoints.vue2.js +19 -19
  21. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  23. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  24. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  25. package/dist/components/Layouts/ModernLayout.vue2.js +30 -29
  26. package/dist/components/Section/CompactSection.vue.js +2 -2
  27. package/dist/components/Section/CompactSection.vue2.js +9 -8
  28. package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
  29. package/dist/components/Section/SectionColumn.vue.js +4 -4
  30. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  31. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  32. package/dist/components/Section/SectionHeader.vue.d.ts +2 -2
  33. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  34. package/dist/components/Section/SectionHeader.vue.js +1 -1
  35. package/dist/components/Section/SectionHeader.vue2.js +16 -14
  36. package/dist/components/ShowMoreButton.vue.js +2 -2
  37. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  38. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  39. package/dist/components/Sidebar/SidebarElement.vue2.js +3 -2
  40. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  41. package/dist/features/ApiClientModal/useApiClient.d.ts +2 -0
  42. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  43. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +3 -3
  44. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +5 -5
  45. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +2 -2
  46. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
  47. package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
  48. package/dist/features/Operation/components/ParameterHeaders.vue2.js +7 -7
  49. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  50. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  51. package/dist/features/Operation/components/ParameterListItem.vue2.js +3 -4
  52. package/dist/features/Operation/components/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
  53. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  54. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  55. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  56. package/dist/features/Operation/layouts/ModernLayout.vue2.js +95 -95
  57. package/dist/helpers/getExampleCode.d.ts +1 -1
  58. package/dist/helpers/getExampleCode.d.ts.map +1 -1
  59. package/dist/helpers/getExampleCode.js +0 -1
  60. package/dist/index.js +1 -1
  61. package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
  62. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +3 -3
  63. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  64. package/dist/style.css +1 -1
  65. package/package.json +12 -12
@@ -1,117 +1,117 @@
1
- import { defineComponent as s, openBlock as l, createBlock as m, unref as r, withCtx as t, createVNode as e, createTextVNode as d, createCommentVNode as c, createElementVNode as n, normalizeClass as _, toDisplayString as h } from "vue";
2
- import S from "../../../components/OperationPath.vue.js";
3
- import { ScalarMarkdown as C, ScalarErrorBoundary as u } from "@scalar/components";
4
- import v from "../components/OperationParameters.vue.js";
5
- import k from "../components/OperationResponses.vue.js";
6
- import y from "../../../components/Section/Section.vue.js";
7
- import B from "../../../components/Section/SectionContent.vue.js";
8
- import g from "../../../components/Section/SectionColumns.vue.js";
9
- import f from "../../../components/Section/SectionColumn.vue.js";
1
+ import { defineComponent as c, openBlock as m, createBlock as d, unref as r, withCtx as t, createVNode as e, createTextVNode as u, createCommentVNode as _, createElementVNode as a, normalizeClass as h, toDisplayString as S } from "vue";
2
+ import C from "../../../components/OperationPath.vue.js";
3
+ import { ScalarMarkdown as v, ScalarErrorBoundary as f } from "@scalar/components";
4
+ import k from "../components/OperationParameters.vue.js";
5
+ import y from "../components/OperationResponses.vue.js";
6
+ import B from "../../../components/Section/Section.vue.js";
7
+ import g from "../../../components/Section/SectionContent.vue.js";
10
8
  import E from "../../../components/Badge/Badge.vue.js";
11
9
  import N from "../../../components/Section/SectionHeader.vue.js";
12
10
  import V from "../../../components/Anchor/Anchor.vue.js";
13
- import b from "../../ExampleRequest/ExampleRequest.vue.js";
14
- import w from "../../TestRequestButton/TestRequestButton.vue.js";
15
- import R from "../../ExampleResponses/ExampleResponses.vue.js";
16
- const q = { class: "operation-details" }, D = { class: "examples" }, U = /* @__PURE__ */ s({
11
+ import b from "../../../components/Section/SectionColumns.vue.js";
12
+ import s from "../../../components/Section/SectionColumn.vue.js";
13
+ import w from "../../ExampleRequest/ExampleRequest.vue.js";
14
+ import R from "../../TestRequestButton/TestRequestButton.vue.js";
15
+ import q from "../../ExampleResponses/ExampleResponses.vue.js";
16
+ const D = { class: "operation-details" }, M = { class: "examples" }, W = /* @__PURE__ */ c({
17
17
  __name: "ModernLayout",
18
18
  props: {
19
19
  id: {},
20
20
  operation: {}
21
21
  },
22
- setup(M) {
23
- return (o, i) => (l(), m(r(y), {
22
+ setup(T) {
23
+ return (o, n) => (m(), d(r(B), {
24
24
  id: o.id,
25
25
  label: o.operation.name
26
26
  }, {
27
27
  default: t(() => [
28
- e(r(B), null, {
29
- default: t(() => [
30
- e(r(g), null, {
31
- default: t(() => [
32
- e(r(f), null, {
33
- default: t(() => {
34
- var a, p;
35
- return [
36
- (a = o.operation.information) != null && a.deprecated ? (l(), m(r(E), { key: 0 }, {
37
- default: t(() => i[0] || (i[0] = [
38
- d(" Deprecated ")
39
- ])),
40
- _: 1
41
- })) : c("", !0),
42
- n("div", {
43
- class: _((p = o.operation.information) != null && p.deprecated ? "deprecated" : "")
44
- }, [
45
- e(r(N), { level: 3 }, {
28
+ e(r(g), null, {
29
+ default: t(() => {
30
+ var i, p;
31
+ return [
32
+ (i = o.operation.information) != null && i.deprecated ? (m(), d(r(E), { key: 0 }, {
33
+ default: t(() => n[0] || (n[0] = [
34
+ u(" Deprecated ")
35
+ ])),
36
+ _: 1
37
+ })) : _("", !0),
38
+ a("div", {
39
+ class: h((p = o.operation.information) != null && p.deprecated ? "deprecated" : "")
40
+ }, [
41
+ e(r(N), { level: 3 }, {
42
+ default: t(() => [
43
+ e(r(V), {
44
+ id: o.id ?? ""
45
+ }, {
46
+ default: t(() => [
47
+ u(S(o.operation.name), 1)
48
+ ]),
49
+ _: 1
50
+ }, 8, ["id"])
51
+ ]),
52
+ _: 1
53
+ })
54
+ ], 2),
55
+ e(r(b), null, {
56
+ default: t(() => [
57
+ e(r(s), null, {
58
+ default: t(() => [
59
+ a("div", D, [
60
+ e(r(v), {
61
+ value: o.operation.description,
62
+ withImages: ""
63
+ }, null, 8, ["value"]),
64
+ e(k, { operation: o.operation }, null, 8, ["operation"]),
65
+ e(y, { operation: o.operation }, null, 8, ["operation"])
66
+ ])
67
+ ]),
68
+ _: 1
69
+ }),
70
+ e(r(s), null, {
71
+ default: t(() => [
72
+ a("div", M, [
73
+ e(r(f), null, {
46
74
  default: t(() => [
47
- e(r(V), {
48
- id: o.id ?? ""
75
+ e(r(w), {
76
+ fallback: "",
77
+ operation: o.operation
49
78
  }, {
50
- default: t(() => [
51
- d(h(o.operation.name), 1)
79
+ header: t(() => {
80
+ var l;
81
+ return [
82
+ e(C, {
83
+ class: "example-path",
84
+ deprecated: (l = o.operation.information) == null ? void 0 : l.deprecated,
85
+ path: o.operation.path
86
+ }, null, 8, ["deprecated", "path"])
87
+ ];
88
+ }),
89
+ footer: t(() => [
90
+ e(r(R), { operation: o.operation }, null, 8, ["operation"])
52
91
  ]),
53
92
  _: 1
54
- }, 8, ["id"])
93
+ }, 8, ["operation"])
94
+ ]),
95
+ _: 1
96
+ }),
97
+ e(r(f), null, {
98
+ default: t(() => [
99
+ e(r(q), {
100
+ operation: o.operation,
101
+ style: { "margin-top": "12px" }
102
+ }, null, 8, ["operation"])
55
103
  ]),
56
104
  _: 1
57
105
  })
58
- ], 2),
59
- n("div", q, [
60
- e(r(C), {
61
- value: o.operation.description,
62
- withImages: ""
63
- }, null, 8, ["value"]),
64
- e(v, { operation: o.operation }, null, 8, ["operation"]),
65
- e(k, { operation: o.operation }, null, 8, ["operation"])
66
106
  ])
67
- ];
68
- }),
69
- _: 1
70
- }),
71
- e(r(f), null, {
72
- default: t(() => [
73
- n("div", D, [
74
- e(r(u), null, {
75
- default: t(() => [
76
- e(r(b), {
77
- fallback: "",
78
- operation: o.operation
79
- }, {
80
- header: t(() => {
81
- var a;
82
- return [
83
- e(S, {
84
- class: "example-path",
85
- deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
86
- path: o.operation.path
87
- }, null, 8, ["deprecated", "path"])
88
- ];
89
- }),
90
- footer: t(() => [
91
- e(r(w), { operation: o.operation }, null, 8, ["operation"])
92
- ]),
93
- _: 1
94
- }, 8, ["operation"])
95
- ]),
96
- _: 1
97
- }),
98
- e(r(u), null, {
99
- default: t(() => [
100
- e(r(R), {
101
- operation: o.operation,
102
- style: { "margin-top": "12px" }
103
- }, null, 8, ["operation"])
104
- ]),
105
- _: 1
106
- })
107
- ])
108
- ]),
109
- _: 1
110
- })
111
- ]),
112
- _: 1
113
- })
114
- ]),
107
+ ]),
108
+ _: 1
109
+ })
110
+ ]),
111
+ _: 1
112
+ })
113
+ ];
114
+ }),
115
115
  _: 1
116
116
  })
117
117
  ]),
@@ -120,5 +120,5 @@ const q = { class: "operation-details" }, D = { class: "examples" }, U = /* @__P
120
120
  }
121
121
  });
122
122
  export {
123
- U as default
123
+ W as default
124
124
  };
@@ -5,5 +5,5 @@ export type ClientId<T extends SnippetzTargetId> = HttpSnippetLiteClientId | Sni
5
5
  /**
6
6
  * Returns a code example for given HAR request
7
7
  */
8
- export declare function getExampleCode<T extends SnippetzTargetId>(request: Request, target: TargetId, client: ClientId<T>): Promise<string>;
8
+ export declare function getExampleCode<T extends SnippetzTargetId>(request: Request, target: TargetId, client: ClientId<T>): Promise<string | undefined>;
9
9
  //# sourceMappingURL=getExampleCode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getExampleCode.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleCode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,IAAI,gBAAgB,EACjC,KAAK,QAAQ,IAAI,gBAAgB,EAElC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,KAAK,QAAQ,IAAI,uBAAuB,EACxC,KAAK,QAAQ,IAAI,uBAAuB,EACzC,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AACjE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,gBAAgB,IAC3C,uBAAuB,GACvB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAEvB;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,gBAAgB,EAC7D,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,mBA0CpB"}
1
+ {"version":3,"file":"getExampleCode.d.ts","sourceRoot":"","sources":["../../src/helpers/getExampleCode.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,IAAI,gBAAgB,EACjC,KAAK,QAAQ,IAAI,gBAAgB,EAElC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,KAAK,QAAQ,IAAI,uBAAuB,EACxC,KAAK,QAAQ,IAAI,uBAAuB,EACzC,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,QAAQ,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AACjE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,gBAAgB,IAC3C,uBAAuB,GACvB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAEvB;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,gBAAgB,EAC7D,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,+BAyCpB"}
@@ -5,7 +5,6 @@ async function f(t, e, p) {
5
5
  if (o().hasPlugin(r, p))
6
6
  return o().print(
7
7
  r,
8
- // @ts-expect-error Typecasting fails, but shouldn’t be necessary soon anway.
9
8
  p,
10
9
  t
11
10
  );