@scalar/api-reference 1.25.6 → 1.25.9

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 (122) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/browser/standalone.js +10872 -11312
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.js +5 -5
  5. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  7. package/dist/components/ApiReferenceLayout.vue2.js +56 -53
  8. package/dist/components/Content/Authentication/Authentication.vue.js +1 -1
  9. package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -1
  10. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  12. package/dist/components/Content/Introduction/Introduction.vue2.js +9 -9
  13. package/dist/components/Content/Models/Models.vue.d.ts +1 -1
  14. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Models/Models.vue.js +1 -1
  16. package/dist/components/Content/Models/Models.vue2.js +65 -42
  17. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +1 -1
  18. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
  20. package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Operation/Operation.vue.js +2 -2
  22. package/dist/components/Content/Operation/Operation.vue2.js +46 -59
  23. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  24. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  26. package/dist/components/Content/Schema/Schema.vue2.js +18 -18
  27. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +1 -1
  28. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  30. package/dist/components/Content/Schema/SchemaHeading.vue2.js +14 -14
  31. package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Webhooks/Webhook.vue.js +5 -33
  33. package/dist/components/Content/Webhooks/Webhook.vue2.js +37 -2
  34. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
  36. package/dist/components/Content/Webhooks/Webhooks.vue2.js +93 -62
  37. package/dist/components/Section/CompactSection.vue.d.ts +28 -0
  38. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -0
  39. package/dist/components/Section/CompactSection.vue.js +7 -0
  40. package/dist/components/Section/CompactSection.vue2.js +59 -0
  41. package/dist/components/Section/index.d.ts +1 -0
  42. package/dist/components/Section/index.d.ts.map +1 -1
  43. package/dist/{components/Content/Models/CollapsedModel.vue.d.ts → embeds/ExampleRequest/ExampleRequest.vue.d.ts} +9 -5
  44. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -0
  45. package/dist/embeds/ExampleRequest/index.d.ts +2 -0
  46. package/dist/embeds/ExampleRequest/index.d.ts.map +1 -0
  47. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +508 -0
  48. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -0
  49. package/dist/embeds/OpenApiDocument/index.d.ts +3 -0
  50. package/dist/embeds/OpenApiDocument/index.d.ts.map +1 -0
  51. package/dist/embeds/OpenApiDocument/types.d.ts +3 -0
  52. package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -0
  53. package/dist/embeds/index.d.ts +3 -0
  54. package/dist/embeds/index.d.ts.map +1 -0
  55. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  56. package/dist/features/BaseUrl/BaseUrl.vue.js +24 -74
  57. package/dist/features/BaseUrl/types.d.ts +1 -1
  58. package/dist/features/BaseUrl/types.d.ts.map +1 -1
  59. package/dist/features/BaseUrl/utils/getServers.d.ts +3 -2
  60. package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -1
  61. package/dist/{components/Content/Introduction/DownloadSpec.vue.d.ts → features/DownloadLink/DownloadLink.vue.d.ts} +1 -1
  62. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -0
  63. package/dist/features/DownloadLink/DownloadLink.vue.js +7 -0
  64. package/dist/features/DownloadLink/DownloadLink.vue2.js +36 -0
  65. package/dist/features/DownloadLink/index.d.ts +2 -0
  66. package/dist/features/DownloadLink/index.d.ts.map +1 -0
  67. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +1 -3
  68. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  69. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  70. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +127 -122
  71. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  72. package/dist/features/Search/SearchModal.vue.js +3 -3
  73. package/dist/features/Search/SearchModal.vue2.js +63 -58
  74. package/dist/helpers/createEmptySpecification.d.ts +1 -1
  75. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  76. package/dist/helpers/getApiClientRequest.d.ts +1 -1
  77. package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
  78. package/dist/helpers/getHarRequest.d.ts.map +1 -1
  79. package/dist/helpers/getHarRequest.js +8 -15
  80. package/dist/helpers/getModels.d.ts +1 -1
  81. package/dist/helpers/getModels.d.ts.map +1 -1
  82. package/dist/helpers/openClientFor.d.ts +1 -1
  83. package/dist/helpers/openClientFor.d.ts.map +1 -1
  84. package/dist/helpers/openClientFor.js +5 -5
  85. package/dist/helpers/parse.d.ts.map +1 -1
  86. package/dist/helpers/provideSymbols.d.ts +3 -2
  87. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  88. package/dist/helpers/provideSymbols.js +3 -2
  89. package/dist/index.js +65 -64
  90. package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
  91. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  92. package/dist/legacy/components/SecurityScheme.vue.js +2 -2
  93. package/dist/legacy/components/SecurityScheme.vue2.js +57 -53
  94. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +1 -1
  95. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  96. package/dist/legacy/components/SecuritySchemeSelector.vue.js +4 -4
  97. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +5 -5
  98. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +1 -1
  99. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -1
  100. package/dist/legacy/helpers/getUrlFromServerState.d.ts +1 -1
  101. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
  102. package/dist/legacy/helpers/index.d.ts +1 -1
  103. package/dist/legacy/helpers/normalizeHeaders.d.ts +2 -3
  104. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
  105. package/dist/legacy/helpers/normalizeHeaders.js +24 -0
  106. package/dist/legacy/stores/useOpenApiStore.d.ts +2 -2
  107. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  108. package/dist/legacy/stores/useServerStore.d.ts +32 -6
  109. package/dist/legacy/stores/useServerStore.d.ts.map +1 -1
  110. package/dist/legacy/stores/useServerStore.js +70 -11
  111. package/dist/legacy/types.d.ts +0 -23
  112. package/dist/legacy/types.d.ts.map +1 -1
  113. package/dist/style.css +1 -1
  114. package/package.json +13 -12
  115. package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts.map +0 -1
  116. package/dist/components/Content/Introduction/DownloadSpec.vue.js +0 -7
  117. package/dist/components/Content/Introduction/DownloadSpec.vue2.js +0 -30
  118. package/dist/components/Content/Models/CollapsedModel.vue.d.ts.map +0 -1
  119. package/dist/components/Content/Models/CollapsedModel.vue.js +0 -7
  120. package/dist/components/Content/Models/CollapsedModel.vue2.js +0 -70
  121. package/dist/features/BaseUrl/utils/index.d.ts +0 -2
  122. package/dist/features/BaseUrl/utils/index.d.ts.map +0 -1
@@ -1,61 +1,52 @@
1
- import { defineComponent as S, computed as _, openBlock as i, createBlock as p, unref as o, withCtx as t, createVNode as r, createTextVNode as s, createCommentVNode as d, createElementVNode as u, normalizeClass as k, toDisplayString as y } from "vue";
2
- import E from "./EndpointDetails.vue.js";
3
- import g from "./EndpointPath.vue.js";
4
- import v from "./TestRequestButton.vue.js";
5
- import B from "../../Section/Section.vue.js";
6
- import N from "../../Section/SectionContent.vue.js";
7
- import R from "../../Section/SectionColumns.vue.js";
8
- import f from "../../Section/SectionColumn.vue.js";
1
+ import { defineComponent as f, openBlock as i, createBlock as p, unref as t, withCtx as r, createVNode as o, createTextVNode as l, createCommentVNode as s, createElementVNode as m, normalizeClass as u, toDisplayString as c } from "vue";
2
+ import h from "./EndpointDetails.vue.js";
3
+ import _ from "./EndpointPath.vue.js";
4
+ import C from "./TestRequestButton.vue.js";
5
+ import S from "../../Section/Section.vue.js";
6
+ import B from "../../Section/SectionContent.vue.js";
7
+ import N from "../../Section/SectionColumns.vue.js";
8
+ import d from "../../Section/SectionColumn.vue.js";
9
9
  import V from "../../Badge/Badge.vue.js";
10
- import b from "../../Section/SectionHeader.vue.js";
11
- import q from "../../Anchor/Anchor.vue.js";
12
- import x from "../../../features/ExampleRequest/ExampleRequest.vue.js";
13
- import T from "./PathResponses/PathResponses.vue.js";
14
- import { useHttpClientStore as D } from "../../../stores/useHttpClientStore.js";
15
- const H = { class: "examples" }, Q = /* @__PURE__ */ S({
10
+ import g from "../../Section/SectionHeader.vue.js";
11
+ import k from "../../Anchor/Anchor.vue.js";
12
+ import v from "../../../features/ExampleRequest/ExampleRequest.vue.js";
13
+ import y from "./PathResponses/PathResponses.vue.js";
14
+ const E = { class: "examples" }, I = /* @__PURE__ */ f({
16
15
  __name: "Operation",
17
16
  props: {
18
17
  id: {},
19
18
  operation: {}
20
19
  },
21
- setup(c) {
22
- const m = c, { availableTargets: h } = D(), C = _(() => {
23
- var n;
24
- const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
25
- for (const a of e)
26
- if ((n = m.operation.information) != null && n[a])
27
- return m.operation.information[a];
28
- return null;
29
- });
30
- return (e, n) => (i(), p(o(B), {
20
+ setup(R) {
21
+ return (e, b) => (i(), p(t(S), {
31
22
  id: e.id,
32
23
  label: e.operation.name
33
24
  }, {
34
- default: t(() => [
35
- r(o(N), null, {
36
- default: t(() => [
37
- r(o(R), null, {
38
- default: t(() => [
39
- r(o(f), null, {
40
- default: t(() => {
41
- var a, l;
25
+ default: r(() => [
26
+ o(t(B), null, {
27
+ default: r(() => [
28
+ o(t(N), null, {
29
+ default: r(() => [
30
+ o(t(d), null, {
31
+ default: r(() => {
32
+ var a, n;
42
33
  return [
43
- (a = e.operation.information) != null && a.deprecated ? (i(), p(o(V), { key: 0 }, {
44
- default: t(() => [
45
- s(" Deprecated ")
34
+ (a = e.operation.information) != null && a.deprecated ? (i(), p(t(V), { key: 0 }, {
35
+ default: r(() => [
36
+ l(" Deprecated ")
46
37
  ]),
47
38
  _: 1
48
- })) : d("", !0),
49
- u("div", {
50
- class: k((l = e.operation.information) != null && l.deprecated ? "deprecated" : "")
39
+ })) : s("", !0),
40
+ m("div", {
41
+ class: u((n = e.operation.information) != null && n.deprecated ? "deprecated" : "")
51
42
  }, [
52
- r(o(b), { level: 3 }, {
53
- default: t(() => [
54
- r(o(q), {
43
+ o(t(g), { level: 3 }, {
44
+ default: r(() => [
45
+ o(t(k), {
55
46
  id: e.id ?? ""
56
47
  }, {
57
- default: t(() => [
58
- s(y(e.operation.name), 1)
48
+ default: r(() => [
49
+ l(c(e.operation.name), 1)
59
50
  ]),
60
51
  _: 1
61
52
  }, 8, ["id"])
@@ -63,35 +54,31 @@ const H = { class: "examples" }, Q = /* @__PURE__ */ S({
63
54
  _: 1
64
55
  })
65
56
  ], 2),
66
- r(E, { operation: e.operation }, null, 8, ["operation"])
57
+ o(h, { operation: e.operation }, null, 8, ["operation"])
67
58
  ];
68
59
  }),
69
60
  _: 1
70
61
  }),
71
- r(o(f), null, {
72
- default: t(() => [
73
- u("div", H, [
74
- o(h).length ? (i(), p(o(x), {
75
- key: 0,
76
- customExamples: C.value,
77
- operation: e.operation
78
- }, {
79
- header: t(() => {
62
+ o(t(d), null, {
63
+ default: r(() => [
64
+ m("div", E, [
65
+ o(t(v), { operation: e.operation }, {
66
+ header: r(() => {
80
67
  var a;
81
68
  return [
82
- r(g, {
69
+ o(_, {
83
70
  class: "example-path",
84
71
  deprecated: (a = e.operation.information) == null ? void 0 : a.deprecated,
85
72
  path: e.operation.path
86
73
  }, null, 8, ["deprecated", "path"])
87
74
  ];
88
75
  }),
89
- footer: t(() => [
90
- r(v, { operation: e.operation }, null, 8, ["operation"])
76
+ footer: r(() => [
77
+ o(C, { operation: e.operation }, null, 8, ["operation"])
91
78
  ]),
92
79
  _: 1
93
- }, 8, ["customExamples", "operation"])) : d("", !0),
94
- r(o(T), {
80
+ }, 8, ["operation"]),
81
+ o(t(y), {
95
82
  operation: e.operation,
96
83
  style: { "margin-top": "12px" }
97
84
  }, null, 8, ["operation"])
@@ -111,5 +98,5 @@ const H = { class: "examples" }, Q = /* @__PURE__ */ S({
111
98
  }
112
99
  });
113
100
  export {
114
- Q as default
101
+ I as default
115
102
  };
@@ -1,4 +1,4 @@
1
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
1
+ import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  value?: OpenAPIV2.DefinitionsObject | OpenAPIV3.SchemaObject | OpenAPIV3.ArraySchemaObject | OpenAPIV3.NonArraySchemaObject | OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject;
4
4
  /** Track how deep we’ve gone */
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;YAUvE,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;kBACV,OAAO;;;;YAfjB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;kBACV,OAAO;;;;WAPb,MAAM;;AAiWlB,wBAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;YAUtE,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;kBACV,OAAO;;;;YAfjB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;kBACV,OAAO;;;;WAPb,MAAM;;AAiWlB,wBAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b345758"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c0b2cb19"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, computed as O, openBlock as l, createBlock as i, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as s, withDirectives as q, normalizeStyle as A, Fragment as t, createTextVNode as S, toDisplayString as C, vShow as H, renderList as N } from "vue";
1
+ import { defineComponent as O, computed as D, openBlock as l, createBlock as i, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as n, withDirectives as q, normalizeStyle as A, Fragment as t, createTextVNode as S, toDisplayString as C, vShow as H, renderList as N } from "vue";
2
2
  import { Disclosure as V, DisclosureButton as z, DisclosurePanel as E } from "@headlessui/vue";
3
3
  import { ScalarMarkdown as T, ScalarIcon as B } from "@scalar/components";
4
4
  import $ from "./SchemaHeading.vue.js";
@@ -6,38 +6,38 @@ import m from "./SchemaProperty.vue.js";
6
6
  const F = {
7
7
  key: 0,
8
8
  class: "schema-card-description"
9
- }, Q = /* @__PURE__ */ D({
9
+ }, Q = /* @__PURE__ */ O({
10
10
  __name: "Schema",
11
11
  props: {
12
- value: {},
12
+ value: { type: [Object, Boolean] },
13
13
  level: { default: 0 },
14
14
  name: {},
15
15
  compact: { type: Boolean },
16
16
  noncollapsible: { type: Boolean },
17
17
  hideHeading: { type: Boolean }
18
18
  },
19
- setup(w) {
20
- const v = w, y = O(() => !(v.noncollapsible || v.level === 0)), j = (e) => v.noncollapsible && e.stopPropagation();
19
+ setup(j) {
20
+ const v = j, y = D(() => !(v.noncollapsible || v.level === 0)), w = (e) => v.noncollapsible && e.stopPropagation();
21
21
  return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), i(r(V), {
22
22
  key: 0,
23
23
  defaultOpen: e.noncollapsible
24
24
  }, {
25
- default: h(({ open: n }) => {
25
+ default: h(({ open: s }) => {
26
26
  var k;
27
27
  return [
28
28
  P("div", {
29
29
  class: p(["schema-card", [
30
30
  `schema-card--level-${e.level}`,
31
- { "schema-card--compact": e.compact, "schema-card--open": n }
31
+ { "schema-card--compact": e.compact, "schema-card--open": s }
32
32
  ]])
33
33
  }, [
34
34
  (k = e.value) != null && k.description && typeof e.value.description == "string" ? (l(), o("div", F, [
35
35
  d(r(T), {
36
36
  value: e.value.description
37
37
  }, null, 8, ["value"])
38
- ])) : s("", !0),
38
+ ])) : n("", !0),
39
39
  P("div", {
40
- class: p(["schema-properties", { "schema-properties-open": n }])
40
+ class: p(["schema-properties", { "schema-properties-open": s }])
41
41
  }, [
42
42
  q(d(r(z), {
43
43
  as: e.noncollapsible ? "div" : "button",
@@ -45,7 +45,7 @@ const F = {
45
45
  style: A({
46
46
  top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
47
47
  }),
48
- onClickCapture: j
48
+ onClickCapture: w
49
49
  }, {
50
50
  default: h(() => {
51
51
  var c, a, u;
@@ -53,11 +53,11 @@ const F = {
53
53
  e.compact ? (l(), o(t, { key: 0 }, [
54
54
  y.value ? (l(), i(r(B), {
55
55
  key: 0,
56
- class: p(["schema-card-title-icon h-2.5", { "schema-card-title-icon--open": n }]),
56
+ class: p(["schema-card-title-icon h-2.5", { "schema-card-title-icon--open": s }]),
57
57
  icon: "Add",
58
58
  thickness: "3"
59
- }, null, 8, ["class"])) : s("", !0),
60
- n ? (l(), o(t, { key: 1 }, [
59
+ }, null, 8, ["class"])) : n("", !0),
60
+ s ? (l(), o(t, { key: 1 }, [
61
61
  S(" Hide " + C(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
62
62
  ], 64)) : (l(), o(t, { key: 2 }, [
63
63
  S(" Show " + C(((a = e.value) == null ? void 0 : a.title) ?? "Child Attributes"), 1)
@@ -65,11 +65,11 @@ const F = {
65
65
  ], 64)) : (l(), o(t, { key: 1 }, [
66
66
  y.value ? (l(), i(r(B), {
67
67
  key: 0,
68
- class: p(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
68
+ class: p(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
69
69
  icon: "Add",
70
70
  size: "xs",
71
71
  thickness: "2.5"
72
- }, null, 8, ["class"])) : s("", !0),
72
+ }, null, 8, ["class"])) : n("", !0),
73
73
  d($, {
74
74
  name: ((u = e.value) == null ? void 0 : u.title) ?? e.name,
75
75
  value: e.value
@@ -96,7 +96,7 @@ const F = {
96
96
  required: ((u = e.value.required) == null ? void 0 : u.includes(a)) || ((b = (f = e.value.properties) == null ? void 0 : f[a]) == null ? void 0 : b.required) === !0,
97
97
  value: (g = e.value.properties) == null ? void 0 : g[a]
98
98
  }, null, 8, ["compact", "level", "name", "required", "value"]);
99
- }), 128)) : s("", !0),
99
+ }), 128)) : n("", !0),
100
100
  e.value.additionalProperties ? (l(), o(t, { key: 1 }, [
101
101
  e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), i(m, {
102
102
  key: 0,
@@ -116,7 +116,7 @@ const F = {
116
116
  noncollapsible: "",
117
117
  value: e.value.additionalProperties
118
118
  }, null, 8, ["compact", "level", "value"]))
119
- ], 64)) : s("", !0)
119
+ ], 64)) : n("", !0)
120
120
  ], 64)) : (l(), i(m, {
121
121
  key: 1,
122
122
  compact: e.compact,
@@ -133,7 +133,7 @@ const F = {
133
133
  ];
134
134
  }),
135
135
  _: 1
136
- }, 8, ["defaultOpen"])) : s("", !0);
136
+ }, 8, ["defaultOpen"])) : n("", !0);
137
137
  }
138
138
  });
139
139
  export {
@@ -1,4 +1,4 @@
1
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
1
+ import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  value: OpenAPIV2.DefinitionsObject | OpenAPIV3.SchemaObject | OpenAPIV3.ArraySchemaObject | OpenAPIV3.NonArraySchemaObject | OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject;
4
4
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaHeading.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;WAMzE,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;WAC7B,MAAM;;WAPT,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;WAC7B,MAAM;;AAgFf,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
+ {"version":3,"file":"SchemaHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaHeading.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;WAMxE,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;WAC7B,MAAM;;WAPT,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;WAC7B,MAAM;;AAgFf,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 +1,7 @@
1
1
  import o from "./SchemaHeading.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c6c012d1"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-2a52eb0b"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,39 +1,39 @@
1
- import { defineComponent as v, openBlock as a, createElementBlock as t, createElementVNode as k, Fragment as n, createTextVNode as l, createCommentVNode as o, toDisplayString as r } from "vue";
1
+ import { defineComponent as v, openBlock as a, createElementBlock as t, createElementVNode as k, Fragment as n, createTextVNode as o, createCommentVNode as l, toDisplayString as r } from "vue";
2
2
  const d = {
3
3
  key: 0,
4
4
  class: "schema-type"
5
5
  }, c = ["title"], j = /* @__PURE__ */ v({
6
6
  __name: "SchemaHeading",
7
7
  props: {
8
- value: {},
8
+ value: { type: [Object, Boolean] },
9
9
  name: {}
10
10
  },
11
11
  setup(f) {
12
12
  return (e, h) => {
13
- var u, m, p, y, s, i;
13
+ var p, u, m, y, s, i;
14
14
  return typeof e.value == "object" ? (a(), t("span", d, [
15
15
  k("span", {
16
16
  class: "schema-type-icon",
17
17
  title: typeof e.value.type == "string" ? e.value.type : Array.isArray(e.value.type) ? e.value.type.join(" | ") : "unkown type"
18
18
  }, [
19
19
  e.value.type === "object" ? (a(), t(n, { key: 0 }, [
20
- l(" {} ")
21
- ], 64)) : o("", !0),
20
+ o(" {} ")
21
+ ], 64)) : l("", !0),
22
22
  e.value.type === "array" ? (a(), t(n, { key: 1 }, [
23
- l(" [] ")
24
- ], 64)) : o("", !0),
23
+ o(" [] ")
24
+ ], 64)) : l("", !0),
25
25
  e.value.enum ? (a(), t(n, { key: 2 }, [
26
- l(" enum ")
27
- ], 64)) : o("", !0)
26
+ o(" enum ")
27
+ ], 64)) : l("", !0)
28
28
  ], 8, c),
29
- (m = (u = e.value) == null ? void 0 : u.xml) != null && m.name && ((y = (p = e.value) == null ? void 0 : p.xml) == null ? void 0 : y.name) !== "##default" ? (a(), t(n, { key: 0 }, [
30
- l(" <" + r((i = (s = e.value) == null ? void 0 : s.xml) == null ? void 0 : i.name) + " /> ", 1)
29
+ (u = (p = e.value) == null ? void 0 : p.xml) != null && u.name && ((y = (m = e.value) == null ? void 0 : m.xml) == null ? void 0 : y.name) !== "##default" ? (a(), t(n, { key: 0 }, [
30
+ o(" <" + r((i = (s = e.value) == null ? void 0 : s.xml) == null ? void 0 : i.name) + " /> ", 1)
31
31
  ], 64)) : e.name ? (a(), t(n, { key: 1 }, [
32
- l(r(e.name), 1)
32
+ o(r(e.name), 1)
33
33
  ], 64)) : (a(), t(n, { key: 2 }, [
34
- l(r(e.value.type), 1)
34
+ o(r(e.value.type), 1)
35
35
  ], 64))
36
- ])) : o("", !0);
36
+ ])) : l("", !0);
37
37
  };
38
38
  }
39
39
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Webhook.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhook.vue"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;aASrD,oBAAoB;;aAApB,oBAAoB;;AAsE/B,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
+ {"version":3,"file":"Webhook.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhook.vue"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;aASrD,oBAAoB;;aAApB,oBAAoB;;AA2E/B,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,35 +1,7 @@
1
- import { defineComponent as p, openBlock as c, createElementBlock as i, Fragment as u, createVNode as t, withCtx as r, createTextVNode as s, unref as d, createCommentVNode as f } from "vue";
2
- import k from "../Operation/Parameters.vue.js";
3
- import h from "../Operation/RequestBody.vue.js";
4
- import { useResponses as l } from "../../../hooks/useResponses.js";
5
- const q = /* @__PURE__ */ p({
6
- __name: "Webhook",
7
- props: {
8
- webhook: {}
9
- },
10
- setup(n) {
11
- const a = n, { responses: m } = l(a.webhook);
12
- return (e, y) => {
13
- var o;
14
- return e.webhook ? (c(), i(u, { key: 0 }, [
15
- t(h, {
16
- requestBody: (o = e.webhook.information) == null ? void 0 : o.requestBody
17
- }, {
18
- title: r(() => [
19
- s("Payload")
20
- ]),
21
- _: 1
22
- }, 8, ["requestBody"]),
23
- t(k, { parameters: d(m) }, {
24
- title: r(() => [
25
- s("Responses")
26
- ]),
27
- _: 1
28
- }, 8, ["parameters"])
29
- ], 64)) : f("", !0);
30
- };
31
- }
32
- });
1
+ import o from "./Webhook.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8fced5af"]]);
33
5
  export {
34
- q as default
6
+ e as default
35
7
  };
@@ -1,4 +1,39 @@
1
- import f from "./Webhook.vue.js";
1
+ import { defineComponent as p, openBlock as c, createElementBlock as u, Fragment as d, createVNode as r, withCtx as t, createTextVNode as s, unref as i, createCommentVNode as k } from "vue";
2
+ import f from "../Operation/Parameters.vue.js";
3
+ import h from "../Operation/RequestBody.vue.js";
4
+ import { useResponses as l } from "../../../hooks/useResponses.js";
5
+ const q = /* @__PURE__ */ p({
6
+ __name: "Webhook",
7
+ props: {
8
+ webhook: {}
9
+ },
10
+ setup(a) {
11
+ const n = a, { responses: m } = l(n.webhook);
12
+ return (e, b) => {
13
+ var o;
14
+ return e.webhook ? (c(), u(d, { key: 0 }, [
15
+ r(h, {
16
+ class: "webhook-request-body",
17
+ requestBody: (o = e.webhook.information) == null ? void 0 : o.requestBody
18
+ }, {
19
+ title: t(() => [
20
+ s("Payload")
21
+ ]),
22
+ _: 1
23
+ }, 8, ["requestBody"]),
24
+ r(f, {
25
+ class: "webhook-response-parameters",
26
+ parameters: i(m)
27
+ }, {
28
+ title: t(() => [
29
+ s("Responses")
30
+ ]),
31
+ _: 1
32
+ }, 8, ["parameters"])
33
+ ], 64)) : k("", !0);
34
+ };
35
+ }
36
+ });
2
37
  export {
3
- f as default
38
+ q as default
4
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Webhooks.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhooks.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;;cAgBxC,QAAQ;;cAAR,QAAQ;;AAuKpB,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
+ {"version":3,"file":"Webhooks.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhooks.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;;cAiBxC,QAAQ;;cAAR,QAAQ;;AAkOpB,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 +1,7 @@
1
1
  import o from "./Webhooks.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-38408a09"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b5c5dcfc"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };