@scalar/api-reference 1.25.7 → 1.25.10

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 (143) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/browser/standalone.js +12353 -12767
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.js +5 -5
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +43 -42
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +67 -61
  10. package/dist/components/Content/Authentication/Authentication.vue.js +1 -1
  11. package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -1
  12. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  14. package/dist/components/Content/Introduction/Introduction.vue2.js +9 -9
  15. package/dist/components/Content/Models/Models.vue.d.ts +1 -1
  16. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models/Models.vue.js +2 -2
  18. package/dist/components/Content/Models/Models.vue2.js +68 -47
  19. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +1 -1
  20. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
  22. package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Operation/Operation.vue.js +2 -2
  24. package/dist/components/Content/Operation/Operation.vue2.js +46 -59
  25. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Operation/OperationAccordion.vue.js +2 -2
  27. package/dist/components/Content/Operation/OperationAccordion.vue2.js +53 -49
  28. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +1 -1
  29. package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
  30. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Operation/TestRequestButton.vue.js +1 -1
  32. package/dist/components/Content/Operation/TestRequestButton.vue2.js +30 -22
  33. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  34. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  36. package/dist/components/Content/Schema/Schema.vue2.js +18 -18
  37. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +1 -1
  38. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  40. package/dist/components/Content/Schema/SchemaHeading.vue2.js +14 -14
  41. package/dist/components/Content/Tag/Endpoints.vue.d.ts +2 -0
  42. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  44. package/dist/components/Content/Tag/Endpoints.vue2.js +31 -29
  45. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tag/Tag.vue.js +3 -3
  47. package/dist/components/Content/Tag/Tag.vue2.js +15 -14
  48. package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
  49. package/dist/components/Content/Webhooks/Webhook.vue.js +5 -33
  50. package/dist/components/Content/Webhooks/Webhook.vue2.js +37 -2
  51. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  52. package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
  53. package/dist/components/Content/Webhooks/Webhooks.vue2.js +91 -62
  54. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
  55. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +3 -3
  56. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  57. package/dist/components/Layouts/ClassicLayout.vue.js +18 -17
  58. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  59. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  60. package/dist/components/Layouts/ModernLayout.vue2.js +31 -28
  61. package/dist/components/Section/CompactSection.vue.d.ts +28 -0
  62. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -0
  63. package/dist/components/Section/CompactSection.vue.js +7 -0
  64. package/dist/components/Section/CompactSection.vue2.js +59 -0
  65. package/dist/components/Section/index.d.ts +1 -0
  66. package/dist/components/Section/index.d.ts.map +1 -1
  67. package/dist/{components/Content/Models/CollapsedModel.vue.d.ts → embeds/ExampleRequest/ExampleRequest.vue.d.ts} +9 -5
  68. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -0
  69. package/dist/embeds/ExampleRequest/index.d.ts +2 -0
  70. package/dist/embeds/ExampleRequest/index.d.ts.map +1 -0
  71. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +508 -0
  72. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -0
  73. package/dist/embeds/OpenApiDocument/index.d.ts +3 -0
  74. package/dist/embeds/OpenApiDocument/index.d.ts.map +1 -0
  75. package/dist/embeds/OpenApiDocument/types.d.ts +3 -0
  76. package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -0
  77. package/dist/embeds/index.d.ts +3 -0
  78. package/dist/embeds/index.d.ts.map +1 -0
  79. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  80. package/dist/features/BaseUrl/BaseUrl.vue.js +24 -74
  81. package/dist/features/BaseUrl/types.d.ts +1 -1
  82. package/dist/features/BaseUrl/types.d.ts.map +1 -1
  83. package/dist/features/BaseUrl/utils/getServers.d.ts +3 -2
  84. package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -1
  85. package/dist/{components/Content/Introduction/DownloadSpec.vue.d.ts → features/DownloadLink/DownloadLink.vue.d.ts} +1 -1
  86. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -0
  87. package/dist/features/DownloadLink/DownloadLink.vue.js +7 -0
  88. package/dist/features/DownloadLink/DownloadLink.vue2.js +36 -0
  89. package/dist/features/DownloadLink/index.d.ts +2 -0
  90. package/dist/features/DownloadLink/index.d.ts.map +1 -0
  91. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +1 -3
  92. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  93. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  94. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +127 -122
  95. package/dist/helpers/createEmptySpecification.d.ts +1 -1
  96. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  97. package/dist/helpers/getApiClientRequest.d.ts +1 -1
  98. package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
  99. package/dist/helpers/getHarRequest.d.ts.map +1 -1
  100. package/dist/helpers/getHarRequest.js +8 -15
  101. package/dist/helpers/getModels.d.ts +1 -1
  102. package/dist/helpers/getModels.d.ts.map +1 -1
  103. package/dist/helpers/openClientFor.d.ts +1 -1
  104. package/dist/helpers/openClientFor.d.ts.map +1 -1
  105. package/dist/helpers/openClientFor.js +5 -5
  106. package/dist/helpers/parse.d.ts.map +1 -1
  107. package/dist/helpers/provideSymbols.d.ts +4 -2
  108. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  109. package/dist/helpers/provideSymbols.js +5 -3
  110. package/dist/index.js +66 -64
  111. package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
  112. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  113. package/dist/legacy/components/SecurityScheme.vue.js +2 -2
  114. package/dist/legacy/components/SecurityScheme.vue2.js +57 -53
  115. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +1 -1
  116. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  117. package/dist/legacy/components/SecuritySchemeSelector.vue.js +4 -4
  118. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +5 -5
  119. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +1 -1
  120. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -1
  121. package/dist/legacy/helpers/getUrlFromServerState.d.ts +1 -1
  122. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
  123. package/dist/legacy/helpers/index.d.ts +1 -1
  124. package/dist/legacy/helpers/normalizeHeaders.d.ts +2 -3
  125. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
  126. package/dist/legacy/helpers/normalizeHeaders.js +24 -0
  127. package/dist/legacy/stores/useOpenApiStore.d.ts +2 -2
  128. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  129. package/dist/legacy/stores/useServerStore.d.ts +32 -6
  130. package/dist/legacy/stores/useServerStore.d.ts.map +1 -1
  131. package/dist/legacy/stores/useServerStore.js +70 -11
  132. package/dist/legacy/types.d.ts +0 -23
  133. package/dist/legacy/types.d.ts.map +1 -1
  134. package/dist/style.css +1 -1
  135. package/package.json +12 -11
  136. package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts.map +0 -1
  137. package/dist/components/Content/Introduction/DownloadSpec.vue.js +0 -7
  138. package/dist/components/Content/Introduction/DownloadSpec.vue2.js +0 -30
  139. package/dist/components/Content/Models/CollapsedModel.vue.d.ts.map +0 -1
  140. package/dist/components/Content/Models/CollapsedModel.vue.js +0 -7
  141. package/dist/components/Content/Models/CollapsedModel.vue2.js +0 -70
  142. package/dist/features/BaseUrl/utils/index.d.ts +0 -2
  143. package/dist/features/BaseUrl/utils/index.d.ts.map +0 -1
@@ -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
  });
@@ -2,9 +2,11 @@ import type { Tag } from '@scalar/types/legacy';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  id?: string;
4
4
  tag: Tag;
5
+ isCollapsed?: boolean;
5
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
7
  id?: string;
7
8
  tag: Tag;
9
+ isCollapsed?: boolean;
8
10
  }>>>, {}, {}>;
9
11
  export default _default;
10
12
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1 +1 @@
1
- {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;;SAgBxC,MAAM;SAAO,GAAG;;SAAhB,MAAM;SAAO,GAAG;;AA2Q7C,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":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;;SAgBxC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;SAAvC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;AA2QpE,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 "./Endpoints.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ccfa4910"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1d49b784"]]);
5
5
  export {
6
- c as default
6
+ s as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as v, openBlock as n, createBlock as s, unref as e, withCtx as o, createVNode as a, createTextVNode as c, toDisplayString as p, createElementVNode as u, createElementBlock as f, Fragment as y, renderList as N, normalizeClass as V, createCommentVNode as b } from "vue";
2
- import { ScalarMarkdown as E } from "@scalar/components";
3
- import I from "../../Section/Section.vue.js";
4
- import w from "../../Section/SectionContent.vue.js";
5
- import B from "../../Section/SectionColumns.vue.js";
6
- import g from "../../Section/SectionColumn.vue.js";
1
+ import { defineComponent as y, openBlock as l, createBlock as m, unref as e, withCtx as o, createVNode as a, createTextVNode as p, toDisplayString as c, createElementVNode as u, createElementBlock as f, Fragment as v, renderList as N, normalizeClass as V, createCommentVNode as b } from "vue";
2
+ import { ScalarMarkdown as B } from "@scalar/components";
3
+ import E from "../../Section/Section.vue.js";
4
+ import I from "../../Section/SectionContent.vue.js";
5
+ import w from "../../Section/SectionColumns.vue.js";
6
+ import C from "../../Section/SectionColumn.vue.js";
7
7
  import H from "../../Section/SectionHeader.vue.js";
8
8
  import T from "../../Anchor/Anchor.vue.js";
9
9
  import O from "../../Card/Card.vue.js";
@@ -12,27 +12,28 @@ import z from "../../Card/CardContent.vue.js";
12
12
  import A from "../../HttpMethod/HttpMethod.vue.js";
13
13
  import { useSidebar as D } from "../../../hooks/useSidebar.js";
14
14
  import { useNavState as F } from "../../../hooks/useNavState.js";
15
- const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ v({
15
+ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
16
16
  __name: "Endpoints",
17
17
  props: {
18
18
  id: {},
19
- tag: {}
19
+ tag: {},
20
+ isCollapsed: { type: Boolean }
20
21
  },
21
- setup(C) {
22
- const _ = C, { getOperationId: l, getTagId: h } = F(), { scrollToOperation: k } = D(), S = async (t) => {
23
- const d = l(t, _.tag);
24
- k(d);
22
+ setup(g) {
23
+ const _ = g, { getOperationId: n, getTagId: h } = F(), { scrollToOperation: k } = D(), S = async (t) => {
24
+ const s = n(t, _.tag);
25
+ k(s);
25
26
  };
26
- return (t, d) => (n(), s(e(I), {
27
+ return (t, s) => (l(), m(e(E), {
27
28
  id: t.id,
28
29
  label: t.tag.name.toUpperCase()
29
30
  }, {
30
31
  default: o(() => [
31
- a(e(w), null, {
32
+ a(e(I), null, {
32
33
  default: o(() => [
33
- a(e(B), null, {
34
+ a(e(w), null, {
34
35
  default: o(() => [
35
- a(e(g), null, {
36
+ a(e(C), null, {
36
37
  default: o(() => [
37
38
  a(e(H), { level: 2 }, {
38
39
  default: o(() => [
@@ -40,32 +41,33 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ v({
40
41
  id: e(h)(t.tag)
41
42
  }, {
42
43
  default: o(() => [
43
- c(p(t.tag["x-displayName"] ?? t.tag.name), 1)
44
+ p(c(t.tag["x-displayName"] ?? t.tag.name), 1)
44
45
  ]),
45
46
  _: 1
46
47
  }, 8, ["id"])
47
48
  ]),
48
49
  _: 1
49
50
  }),
50
- a(e(E), {
51
+ a(e(B), {
52
+ isCollapsed: t.isCollapsed,
51
53
  value: t.tag.description,
52
54
  withImages: ""
53
- }, null, 8, ["value"])
55
+ }, null, 8, ["isCollapsed", "value"])
54
56
  ]),
55
57
  _: 1
56
58
  }),
57
- a(e(g), null, {
59
+ a(e(C), null, {
58
60
  default: o(() => {
59
- var i;
61
+ var d;
60
62
  return [
61
- ((i = t.tag.operations) == null ? void 0 : i.length) > 0 ? (n(), s(e(O), {
63
+ ((d = t.tag.operations) == null ? void 0 : d.length) > 0 ? (l(), m(e(O), {
62
64
  key: 0,
63
65
  class: "scalar-card-sticky"
64
66
  }, {
65
67
  default: o(() => [
66
68
  a(e($), { muted: "" }, {
67
69
  default: o(() => [
68
- c("Endpoints")
70
+ p("Endpoints")
69
71
  ]),
70
72
  _: 1
71
73
  }),
@@ -75,10 +77,10 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ v({
75
77
  }, {
76
78
  default: o(() => [
77
79
  u("div", L, [
78
- (n(!0), f(y, null, N(t.tag.operations, (r) => {
79
- var m;
80
- return n(), f("a", {
81
- key: e(l)(r, t.tag),
80
+ (l(!0), f(v, null, N(t.tag.operations, (r) => {
81
+ var i;
82
+ return l(), f("a", {
83
+ key: e(n)(r, t.tag),
82
84
  class: "endpoint",
83
85
  onClick: (U) => S(r)
84
86
  }, [
@@ -86,8 +88,8 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ v({
86
88
  method: r.httpVerb
87
89
  }, null, 8, ["method"]),
88
90
  u("span", {
89
- class: V({ deprecated: (m = r.information) == null ? void 0 : m.deprecated })
90
- }, p(r.path), 3)
91
+ class: V({ deprecated: (i = r.information) == null ? void 0 : i.deprecated })
92
+ }, c(r.path), 3)
91
93
  ], 8, M);
92
94
  }), 128))
93
95
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAkCrD,iBAAS,cAAc;qBA6DO,GAAG;EAqBhC;AACD,QAAA,MAAM,eAAe;SA1Gd,MAAM;SACN,GAAG;UACF,IAAI;;SAFL,MAAM;SACN,GAAG;UACF,IAAI;aA8GV,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAkCrD,iBAAS,cAAc;qBA6DO,GAAG;EAqBhC;AACD,QAAA,MAAM,eAAe;SA1Gd,MAAM;SACN,GAAG;UACF,IAAI;;SAFL,MAAM;SACN,GAAG;UACF,IAAI;aA8GV,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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 "./Tag.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ac369778"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-f1a48b5a"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,40 +1,41 @@
1
- import { defineComponent as c, ref as f, computed as u, openBlock as r, createBlock as a, unref as i, withCtx as g, createCommentVNode as h, renderSlot as k } from "vue";
2
- import C from "../../ShowMoreButton.vue.js";
1
+ import { defineComponent as f, ref as u, computed as c, openBlock as r, createBlock as i, unref as o, withCtx as g, createCommentVNode as C, renderSlot as h } from "vue";
2
+ import k from "../../ShowMoreButton.vue.js";
3
3
  import S from "./Endpoints.vue.js";
4
4
  import y from "../../Section/SectionContainer.vue.js";
5
5
  import { useSidebar as T } from "../../../hooks/useSidebar.js";
6
6
  import { useNavState as v } from "../../../hooks/useNavState.js";
7
- const _ = /* @__PURE__ */ c({
7
+ const D = /* @__PURE__ */ f({
8
8
  __name: "Tag",
9
9
  props: {
10
10
  id: {},
11
11
  tag: {},
12
12
  spec: {}
13
13
  },
14
- setup(s) {
15
- const o = s, d = f(null), { collapsedSidebarItems: l } = T(), { getTagId: m } = v(), p = u(
14
+ setup(d) {
15
+ const n = d, p = u(null), { collapsedSidebarItems: s } = T(), { getTagId: l } = v(), m = c(
16
16
  () => {
17
- var e, n, t;
18
- return ((e = o.spec.tags) == null ? void 0 : e.length) !== 1 || ((n = o.tag) == null ? void 0 : n.name) !== "default" || ((t = o.tag) == null ? void 0 : t.description) !== "";
17
+ var e, a, t;
18
+ return ((e = n.spec.tags) == null ? void 0 : e.length) !== 1 || ((a = n.tag) == null ? void 0 : a.name) !== "default" || ((t = n.tag) == null ? void 0 : t.description) !== "";
19
19
  }
20
20
  );
21
- return (e, n) => (r(), a(i(y), {
21
+ return (e, a) => (r(), i(o(y), {
22
22
  ref_key: "sectionContainerRef",
23
- ref: d,
23
+ ref: p,
24
24
  class: "tag-section-container"
25
25
  }, {
26
26
  default: g(() => {
27
27
  var t;
28
28
  return [
29
- p.value ? (r(), a(S, {
29
+ m.value ? (r(), i(S, {
30
30
  key: 0,
31
31
  id: e.id,
32
+ isCollapsed: o(s)[o(l)(e.tag)],
32
33
  tag: e.tag
33
- }, null, 8, ["id", "tag"])) : h("", !0),
34
- !i(l)[i(m)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (r(), a(C, {
34
+ }, null, 8, ["id", "isCollapsed", "tag"])) : C("", !0),
35
+ !o(s)[o(l)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (r(), i(k, {
35
36
  key: 1,
36
37
  id: e.id ?? ""
37
- }, null, 8, ["id"])) : k(e.$slots, "default", { key: 2 }, void 0, !0)
38
+ }, null, 8, ["id"])) : h(e.$slots, "default", { key: 2 }, void 0, !0)
38
39
  ];
39
40
  }),
40
41
  _: 3
@@ -42,5 +43,5 @@ const _ = /* @__PURE__ */ c({
42
43
  }
43
44
  });
44
45
  export {
45
- _ as default
46
+ D as default
46
47
  };
@@ -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":"AAwHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;;cAiBxC,QAAQ;;cAAR,QAAQ;;AAgOpB,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 s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-87687203"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };