@scalar/api-reference 1.32.7 → 1.32.8

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 (135) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/browser/standalone.js +16286 -16092
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue2.js +2 -1
  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 +164 -176
  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 +20 -20
  11. package/dist/components/Content/Models/Models.vue2.js +5 -4
  12. package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
  13. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  14. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +14 -7
  15. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  17. package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
  18. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  20. package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
  21. package/dist/components/Content/Tag/Tag.vue.js +2 -1
  22. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  23. package/dist/components/GettingStarted.vue2.js +8 -6
  24. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  25. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  26. package/dist/components/Section/SectionAccordion.vue2.js +28 -29
  27. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  28. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  29. package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
  30. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  31. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  32. package/dist/features/Operation/Operation.vue.js +50 -49
  33. package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
  34. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  35. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  36. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  37. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  38. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  39. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  40. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  41. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  42. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  43. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  44. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
  45. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  46. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  47. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  48. package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
  49. package/dist/features/Search/SearchButton.vue.js +2 -1
  50. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  51. package/dist/features/Search/SearchModal.vue.js +2 -2
  52. package/dist/features/Search/SearchModal.vue2.js +16 -16
  53. package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
  54. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  55. package/dist/features/download-link/DownloadLink.vue2.js +4 -2
  56. package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
  57. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
  58. package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
  59. package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
  60. package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
  61. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
  62. package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
  63. package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
  64. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  65. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  66. package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
  67. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  68. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  69. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  70. package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
  71. package/dist/helpers/convert-security-scheme.js +23 -0
  72. package/dist/index.d.ts +0 -2
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +15 -29
  75. package/dist/style.css +1 -1
  76. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  77. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  78. package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
  79. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  80. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
  81. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  82. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  83. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
  84. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
  85. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  86. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  87. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  88. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
  89. package/dist/v2/events/definitions.js +7 -0
  90. package/dist/v2/events/index.d.ts +1 -1
  91. package/dist/v2/events/listeners.d.ts +1 -1
  92. package/dist/v2/hooks/useStore.js +14 -0
  93. package/package.json +26 -26
  94. package/dist/blocks/constants.js +0 -6
  95. package/dist/blocks/helpers/getPointer.js +0 -12
  96. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  97. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  98. package/dist/blocks/hooks/useBlockProps.js +0 -24
  99. package/dist/components/Card/Card.vue.d.ts +0 -18
  100. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  101. package/dist/components/Card/Card.vue.js +0 -13
  102. package/dist/components/Card/CardContent.vue.d.ts +0 -19
  103. package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
  104. package/dist/components/Card/CardContent.vue.js +0 -7
  105. package/dist/components/Card/CardContent.vue2.js +0 -27
  106. package/dist/components/Card/CardFooter.vue.d.ts +0 -19
  107. package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
  108. package/dist/components/Card/CardFooter.vue.js +0 -7
  109. package/dist/components/Card/CardFooter.vue2.js +0 -24
  110. package/dist/components/Card/CardHeader.vue.d.ts +0 -20
  111. package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
  112. package/dist/components/Card/CardHeader.vue.js +0 -7
  113. package/dist/components/Card/CardHeader.vue2.js +0 -31
  114. package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
  115. package/dist/components/Card/CardTab.vue.js +0 -7
  116. package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
  117. package/dist/components/Card/CardTabHeader.vue.js +0 -7
  118. package/dist/components/Card/index.d.ts +0 -7
  119. package/dist/components/Card/index.d.ts.map +0 -1
  120. package/dist/components/Card/types.d.ts +0 -8
  121. package/dist/components/Card/types.d.ts.map +0 -1
  122. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  123. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  124. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  125. package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
  126. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
  127. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  128. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  129. package/dist/features/example-request/ExampleRequest.vue2.js +0 -361
  130. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  131. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  132. package/dist/features/example-request/TextSelect.vue.js +0 -48
  133. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  134. package/dist/features/example-request/index.d.ts +0 -3
  135. package/dist/features/example-request/index.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, computed as p, createElementBlock as i, openBlock as r, Fragment as m, createStaticVNode as H, createElementVNode as M, renderSlot as f, createBlock as s, createCommentVNode as n, unref as t, withCtx as W, createVNode as v, normalizeClass as J, renderList as K } from "vue";
1
+ import { defineComponent as D, computed as p, createElementBlock as l, openBlock as r, Fragment as m, createStaticVNode as H, createElementVNode as M, renderSlot as f, createBlock as s, createCommentVNode as i, unref as t, withCtx as W, createVNode as v, normalizeClass as J, renderList as K } from "vue";
2
2
  import { useWorkspace as P, useActiveEntities as Q } from "@scalar/api-client/store";
3
3
  import { RequestAuth as T } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
4
  import { ScalarErrorBoundary as X } from "@scalar/components";
@@ -15,7 +15,7 @@ import re from "./Models/Models.vue.js";
15
15
  const se = { class: "narrow-references-container" }, ae = {
16
16
  key: 0,
17
17
  class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm leading-normal [--scalar-address-bar-height:0px]"
18
- }, le = {
18
+ }, ce = {
19
19
  key: 1,
20
20
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
21
21
  }, Ce = /* @__PURE__ */ D({
@@ -52,8 +52,8 @@ const se = { class: "narrow-references-container" }, ae = {
52
52
  );
53
53
  return (e, k) => {
54
54
  var g, C, b, w, A, V, E, U, $, B, N;
55
- return r(), i(m, null, [
56
- k[0] || (k[0] = H('<div class="section-flare" data-v-3358908f><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div></div>', 1)),
55
+ return r(), l(m, null, [
56
+ k[0] || (k[0] = H('<div class="section-flare" data-v-75c50136><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div></div>', 1)),
57
57
  M("div", se, [
58
58
  f(e.$slots, "start", {}, void 0, !0),
59
59
  o.value ? (r(), s(t(_), {
@@ -63,7 +63,7 @@ const se = { class: "narrow-references-container" }, ae = {
63
63
  layout: e.layout,
64
64
  parsedSpec: e.parsedSpec,
65
65
  server: a.value
66
- }, null, 8, ["document", "collection", "layout", "parsedSpec", "server"])) : n("", !0),
66
+ }, null, 8, ["document", "collection", "layout", "parsedSpec", "server"])) : i("", !0),
67
67
  (C = (g = e.document) == null ? void 0 : g.info) != null && C.title || (w = (b = e.document) == null ? void 0 : b.info) != null && w.description ? (r(), s(t(x), {
68
68
  key: 1,
69
69
  document: e.document
@@ -71,18 +71,18 @@ const se = { class: "narrow-references-container" }, ae = {
71
71
  [O.value]: W(() => [
72
72
  v(t(X), null, {
73
73
  default: W(() => {
74
- var c, l, d;
74
+ var n, c, d;
75
75
  return [
76
76
  M("div", {
77
77
  class: J(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
78
78
  }, [
79
- (l = (c = o.value) == null ? void 0 : c.servers) != null && l.length ? (r(), i("div", ae, [
79
+ (c = (n = o.value) == null ? void 0 : n.servers) != null && c.length ? (r(), l("div", ae, [
80
80
  v(t(ee), {
81
81
  collection: o.value,
82
82
  server: a.value
83
83
  }, null, 8, ["collection", "server"])
84
- ])) : n("", !0),
85
- o.value && t(S) && Object.keys(t(z) ?? {}).length ? (r(), i("div", le, [
84
+ ])) : i("", !0),
85
+ o.value && t(S) && Object.keys(t(z) ?? {}).length ? (r(), l("div", ce, [
86
86
  v(t(T), {
87
87
  collection: o.value,
88
88
  envVariables: t(G),
@@ -94,7 +94,7 @@ const se = { class: "narrow-references-container" }, ae = {
94
94
  title: "Authentication",
95
95
  workspace: t(S)
96
96
  }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
97
- ])) : n("", !0),
97
+ ])) : i("", !0),
98
98
  v(t(te), { class: "introduction-card-item scalar-reference-intro-clients" })
99
99
  ], 2)
100
100
  ];
@@ -104,18 +104,18 @@ const se = { class: "narrow-references-container" }, ae = {
104
104
  ]),
105
105
  _: 2
106
106
  }, 1032, ["document"])) : f(e.$slots, "empty-state", { key: 2 }, void 0, !0),
107
- e.parsedSpec.tags && o.value ? (r(), i(m, { key: 3 }, [
108
- e.parsedSpec["x-tagGroups"] ? (r(!0), i(m, { key: 0 }, K(e.parsedSpec["x-tagGroups"], (c) => (r(), s(t(y), {
107
+ e.parsedSpec.tags && o.value ? (r(), l(m, { key: 3 }, [
108
+ e.parsedSpec["x-tagGroups"] ? (r(!0), l(m, { key: 0 }, K(e.parsedSpec["x-tagGroups"], (n) => (r(), s(t(y), {
109
109
  document: e.document,
110
- key: c.name,
110
+ key: n.name,
111
111
  collection: o.value,
112
112
  layout: e.layout,
113
113
  server: a.value,
114
114
  spec: e.parsedSpec,
115
- tags: c.tags.map((l) => {
115
+ tags: n.tags.map((c) => {
116
116
  var d;
117
- return (d = e.parsedSpec.tags) == null ? void 0 : d.find((R) => R.name === l);
118
- }).filter((l) => !!l)
117
+ return (d = e.parsedSpec.tags) == null ? void 0 : d.find((R) => R.name === c);
118
+ }).filter((c) => !!c)
119
119
  }, null, 8, ["document", "collection", "layout", "server", "spec", "tags"]))), 128)) : (r(), s(t(y), {
120
120
  key: 1,
121
121
  collection: o.value,
@@ -125,7 +125,7 @@ const se = { class: "narrow-references-container" }, ae = {
125
125
  spec: e.parsedSpec,
126
126
  tags: e.parsedSpec.tags
127
127
  }, null, 8, ["collection", "document", "layout", "server", "spec", "tags"]))
128
- ], 64)) : n("", !0),
128
+ ], 64)) : i("", !0),
129
129
  (A = e.parsedSpec.webhooks) != null && A.length && o.value ? (r(), s(t(y), {
130
130
  key: 4,
131
131
  document: e.document,
@@ -141,8 +141,8 @@ const se = { class: "narrow-references-container" }, ae = {
141
141
  operations: e.parsedSpec.webhooks
142
142
  }
143
143
  ]
144
- }, null, 8, ["document", "collection", "layout", "server", "spec", "tags"])) : n("", !0),
145
- (E = (V = e.document) == null ? void 0 : V.components) != null && E.schemas && !t(u).hideModels ? (r(), i(m, { key: 5 }, [
144
+ }, null, 8, ["document", "collection", "layout", "server", "spec", "tags"])) : i("", !0),
145
+ (E = (V = e.document) == null ? void 0 : V.components) != null && E.schemas && !t(u).hideModels ? (r(), l(m, { key: 5 }, [
146
146
  e.layout === "classic" ? (r(), s(t(oe), {
147
147
  key: 0,
148
148
  schemas: ($ = (U = e.document) == null ? void 0 : U.components) == null ? void 0 : $.schemas
@@ -150,7 +150,7 @@ const se = { class: "narrow-references-container" }, ae = {
150
150
  key: 1,
151
151
  schemas: (N = (B = e.document) == null ? void 0 : B.components) == null ? void 0 : N.schemas
152
152
  }, null, 8, ["schemas"]))
153
- ], 64)) : n("", !0),
153
+ ], 64)) : i("", !0),
154
154
  f(e.$slots, "end", {}, void 0, !0)
155
155
  ])
156
156
  ], 64);
@@ -16,9 +16,9 @@ const v = 10, Z = /* @__PURE__ */ M({
16
16
  props: {
17
17
  schemas: {}
18
18
  },
19
- setup(b) {
20
- const i = b, n = k(), { collapsedSidebarItems: _ } = O(), { getModelId: a } = w(), d = f(
21
- () => Object.keys(i.schemas ?? {}).length <= v || _[a()]
19
+ setup(_) {
20
+ const i = _, n = k(), { collapsedSidebarItems: b } = O(), { getModelId: a } = w(), d = f(
21
+ () => Object.keys(i.schemas ?? {}).length <= v || b[a()]
22
22
  ), y = f(() => {
23
23
  const l = Object.keys(i.schemas ?? {});
24
24
  return d.value ? l : l.slice(0, v);
@@ -39,7 +39,8 @@ const v = 10, Z = /* @__PURE__ */ M({
39
39
  default: t(() => c[0] || (c[0] = [
40
40
  g(" Models ")
41
41
  ])),
42
- _: 1
42
+ _: 1,
43
+ __: [0]
43
44
  }, 8, ["id"])
44
45
  ]),
45
46
  _: 1
@@ -29,7 +29,8 @@ const T = {
29
29
  default: o(() => i[0] || (i[0] = [
30
30
  N("Models")
31
31
  ])),
32
- _: 1
32
+ _: 1,
33
+ __: [0]
33
34
  })
34
35
  ]),
35
36
  default: o(() => [
@@ -102,7 +102,8 @@ const Y = {
102
102
  _: 1
103
103
  })) : n("", !0)
104
104
  ]),
105
- _: 1
105
+ _: 1,
106
+ __: [0]
106
107
  })
107
108
  ], 512)), [
108
109
  [A, !o]
@@ -76,7 +76,8 @@ const j = { class: "property-heading" }, G = {
76
76
  default: u(() => t[0] || (t[0] = [
77
77
  l("Type: ")
78
78
  ])),
79
- _: 1
79
+ _: 1,
80
+ __: [0]
80
81
  }),
81
82
  D.value ? (r(), m(f, { key: 0 }, [
82
83
  l(o(D.value), 1)
@@ -114,7 +115,8 @@ const j = { class: "property-heading" }, G = {
114
115
  default: u(() => t[3] || (t[3] = [
115
116
  l(" unique! ")
116
117
  ])),
117
- _: 1
118
+ _: 1,
119
+ __: [3]
118
120
  })) : a("", !0),
119
121
  e.value.format ? (r(), i(n, { key: 5 }, {
120
122
  default: u(() => [
@@ -122,7 +124,8 @@ const j = { class: "property-heading" }, G = {
122
124
  default: u(() => t[4] || (t[4] = [
123
125
  l("Format:")
124
126
  ])),
125
- _: 1
127
+ _: 1,
128
+ __: [4]
126
129
  }),
127
130
  l(" " + o(e.value.format), 1)
128
131
  ]),
@@ -183,7 +186,8 @@ const j = { class: "property-heading" }, G = {
183
186
  default: u(() => t[10] || (t[10] = [
184
187
  l("Pattern:")
185
188
  ])),
186
- _: 1
189
+ _: 1,
190
+ __: [10]
187
191
  }),
188
192
  l(" " + o(e.value.pattern), 1)
189
193
  ]),
@@ -193,7 +197,8 @@ const j = { class: "property-heading" }, G = {
193
197
  default: u(() => t[11] || (t[11] = [
194
198
  l("enum")
195
199
  ])),
196
- _: 1
200
+ _: 1,
201
+ __: [11]
197
202
  })) : a("", !0),
198
203
  e.value.default !== void 0 ? (r(), i(n, {
199
204
  key: 13,
@@ -220,7 +225,8 @@ const j = { class: "property-heading" }, G = {
220
225
  default: u(() => t[13] || (t[13] = [
221
226
  l("deprecated")
222
227
  ])),
223
- _: 1
228
+ _: 1,
229
+ __: [13]
224
230
  })
225
231
  ])) : a("", !0),
226
232
  B.value !== void 0 ? (r(), m("div", U, [
@@ -238,7 +244,8 @@ const j = { class: "property-heading" }, G = {
238
244
  default: u(() => t[15] || (t[15] = [
239
245
  l(" nullable ")
240
246
  ])),
241
- _: 1
247
+ _: 1,
248
+ __: [15]
242
249
  })) : a("", !0)
243
250
  ], 64)),
244
251
  (w = e.value) != null && w.writeOnly ? (r(), m("div", W, " write-only ")) : (O = e.value) != null && O.readOnly ? (r(), m("div", X, " read-only ")) : a("", !0),
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAU/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA8GF,wBAMG"}
1
+ {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAS/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA+GF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationsList.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b3881ce4"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d9656fb3"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,28 +1,26 @@
1
- import { defineComponent as u, computed as f, createBlock as m, createCommentVNode as C, openBlock as o, unref as a, withCtx as t, createVNode as r, createTextVNode as p, toDisplayString as g, createElementVNode as k, createElementBlock as y, Fragment as N, renderList as _ } from "vue";
2
- import O from "../../ScreenReader.vue.js";
3
- import B from "./OperationsListItem.vue.js";
4
- import V from "../../Card/Card.vue.js";
5
- import L from "../../Card/CardHeader.vue.js";
6
- import b from "../../Card/CardContent.vue.js";
7
- const h = ["aria-label"], F = /* @__PURE__ */ u({
1
+ import { defineComponent as u, computed as f, createBlock as c, createCommentVNode as C, openBlock as a, unref as o, withCtx as t, createVNode as l, createTextVNode as p, toDisplayString as g, createElementVNode as _, createElementBlock as N, Fragment as S, renderList as k } from "vue";
2
+ import { ScalarCard as y, ScalarCardHeader as O, ScalarCardSection as B } from "@scalar/components";
3
+ import V from "../../ScreenReader.vue.js";
4
+ import L from "./OperationsListItem.vue.js";
5
+ const b = ["aria-label"], x = /* @__PURE__ */ u({
8
6
  __name: "OperationsList",
9
7
  props: {
10
8
  tag: {},
11
9
  collection: {},
12
10
  isCollapsed: { type: Boolean }
13
11
  },
14
- setup(c) {
15
- const l = c, n = f(() => l.tag["x-displayName"] ?? l.tag.name);
12
+ setup(m) {
13
+ const r = m, n = f(() => r.tag["x-displayName"] ?? r.tag.name);
16
14
  return (e, s) => {
17
15
  var i;
18
- return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (o(), m(a(V), {
16
+ return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (a(), c(o(y), {
19
17
  key: 0,
20
- class: "scalar-card-sticky"
18
+ class: "endpoints-card"
21
19
  }, {
22
20
  default: t(() => [
23
- r(a(L), { muted: "" }, {
21
+ l(o(O), null, {
24
22
  default: t(() => [
25
- r(O, null, {
23
+ l(V, null, {
26
24
  default: t(() => [
27
25
  p(g(n.value), 1)
28
26
  ]),
@@ -30,24 +28,22 @@ const h = ["aria-label"], F = /* @__PURE__ */ u({
30
28
  }),
31
29
  s[0] || (s[0] = p(" Operations "))
32
30
  ]),
33
- _: 1
31
+ _: 1,
32
+ __: [0]
34
33
  }),
35
- r(a(b), {
36
- class: "custom-scroll",
37
- muted: ""
38
- }, {
34
+ l(o(B), { class: "custom-scroll" }, {
39
35
  default: t(() => [
40
- k("ul", {
36
+ _("ul", {
41
37
  "aria-label": `${n.value} endpoints`,
42
38
  class: "endpoints"
43
39
  }, [
44
- (o(!0), y(N, null, _(e.tag.operations, (d) => (o(), m(B, {
40
+ (a(!0), N(S, null, k(e.tag.operations, (d) => (a(), c(L, {
45
41
  key: d.id,
46
42
  collection: e.collection,
47
43
  isCollapsed: e.isCollapsed,
48
44
  transformedOperation: d
49
45
  }, null, 8, ["collection", "isCollapsed", "transformedOperation"]))), 128))
50
- ], 8, h)
46
+ ], 8, b)
51
47
  ]),
52
48
  _: 1
53
49
  })
@@ -58,5 +54,5 @@ const h = ["aria-label"], F = /* @__PURE__ */ u({
58
54
  }
59
55
  });
60
56
  export {
61
- F as default
57
+ x as default
62
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAS7B,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAmJF,wBAOG"}
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAS7B,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA4IF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./OperationsListItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-782723fb"]]);
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-19af3744"]]);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };
@@ -1,68 +1,67 @@
1
- import { defineComponent as f, computed as c, createElementBlock as h, openBlock as r, createBlock as i, createCommentVNode as s, createElementVNode as n, unref as t, withCtx as u, createTextVNode as O, toDisplayString as l, withModifiers as y, createVNode as k, normalizeStyle as C, normalizeClass as V } from "vue";
2
- import { getHttpMethodInfo as b } from "@scalar/helpers/http/http-info";
3
- import { ScalarIconWebhooksLogo as g } from "@scalar/icons";
4
- import { isOperationDeprecated as v } from "@scalar/oas-utils/helpers";
5
- import { useSidebar as w } from "../../../features/sidebar/hooks/useSidebar.js";
6
- import S from "../../Section/SectionHeaderTag.vue.js";
1
+ import { defineComponent as c, computed as u, createElementBlock as h, openBlock as r, createBlock as a, createCommentVNode as s, createElementVNode as i, unref as t, withCtx as d, createTextVNode as O, toDisplayString as p, withModifiers as k, createVNode as y, normalizeClass as C } from "vue";
2
+ import { ScalarIconWebhooksLogo as V } from "@scalar/icons";
3
+ import { isOperationDeprecated as b } from "@scalar/oas-utils/helpers";
4
+ import { useSidebar as g } from "../../../features/sidebar/hooks/useSidebar.js";
5
+ import v from "../../Section/SectionHeaderTag.vue.js";
7
6
  import B from "../../HttpMethod/HttpMethod.vue.js";
8
- const H = ["href"], N = { class: "flex min-w-[62px] flex-row items-center justify-end gap-2" }, W = /* @__PURE__ */ f({
7
+ const N = ["href"], E = /* @__PURE__ */ c({
9
8
  __name: "OperationsListItem",
10
9
  props: {
11
10
  transformedOperation: {},
12
11
  collection: {},
13
12
  isCollapsed: { type: Boolean }
14
13
  },
15
- setup(a) {
16
- const { scrollToOperation: m } = w(), p = async (e) => {
14
+ setup(n) {
15
+ const { scrollToOperation: m } = g(), l = async (e) => {
17
16
  m(e.id, !0);
18
- }, d = c(
17
+ }, f = u(
19
18
  () => {
20
19
  var e, o;
21
- return ((e = a.transformedOperation) == null ? void 0 : e.name) || ((o = a.transformedOperation) == null ? void 0 : o.path);
20
+ return ((e = n.transformedOperation) == null ? void 0 : e.name) || ((o = n.transformedOperation) == null ? void 0 : o.path);
22
21
  }
23
22
  );
24
23
  return (e, o) => (r(), h("li", {
25
24
  key: e.transformedOperation.id,
26
25
  class: "contents"
27
26
  }, [
28
- e.isCollapsed ? (r(), i(t(S), {
27
+ e.isCollapsed ? (r(), a(t(v), {
29
28
  key: 0,
30
29
  class: "sr-only",
31
30
  level: 3
32
31
  }, {
33
- default: u(() => [
34
- O(l(d.value) + " (Hidden) ", 1)
32
+ default: d(() => [
33
+ O(p(f.value) + " (Hidden) ", 1)
35
34
  ]),
36
35
  _: 1
37
36
  })) : s("", !0),
38
- n("a", {
37
+ i("a", {
39
38
  class: "endpoint",
40
39
  href: `#${e.transformedOperation.id}`,
41
- onClick: o[0] || (o[0] = y((I) => p(e.transformedOperation), ["prevent"]))
40
+ onClick: o[0] || (o[0] = k((S) => l(e.transformedOperation), ["prevent"]))
42
41
  }, [
43
- n("div", N, [
44
- e.transformedOperation.isWebhook ? (r(), i(t(g), {
45
- key: 0,
46
- style: C({
47
- color: t(b)(e.transformedOperation.httpVerb).colorVar
48
- })
49
- }, null, 8, ["style"])) : s("", !0),
50
- k(t(B), {
51
- class: "endpoint-method min-w-0",
52
- method: e.transformedOperation.httpVerb
53
- }, null, 8, ["method"])
54
- ]),
55
- n("span", {
56
- class: V(["endpoint-path", {
57
- deprecated: t(v)(
42
+ y(t(B), {
43
+ class: "endpoint-method items-center justify-end gap-2",
44
+ method: e.transformedOperation.httpVerb
45
+ }, {
46
+ default: d(() => [
47
+ e.transformedOperation.isWebhook ? (r(), a(t(V), {
48
+ key: 0,
49
+ class: "size-3.5"
50
+ })) : s("", !0)
51
+ ]),
52
+ _: 1
53
+ }, 8, ["method"]),
54
+ i("span", {
55
+ class: C(["endpoint-path", {
56
+ deprecated: t(b)(
58
57
  e.transformedOperation.information
59
58
  )
60
59
  }])
61
- }, l(e.transformedOperation.path), 3)
62
- ], 8, H)
60
+ }, p(e.transformedOperation.path), 3)
61
+ ], 8, N)
63
62
  ]));
64
63
  }
65
64
  });
66
65
  export {
67
- W as default
66
+ E as default
68
67
  };
@@ -43,7 +43,8 @@ const P = /* @__PURE__ */ C({
43
43
  default: t(() => n[0] || (n[0] = [
44
44
  u(" (Collapsed)")
45
45
  ])),
46
- _: 1
46
+ _: 1,
47
+ __: [0]
47
48
  })) : S("", !0)
48
49
  ]),
49
50
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAiCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DwjgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C9sgB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAiCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DspgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C5ygB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as f, createElementBlock as o, openBlock as i, createElementVNode as e, createStaticVNode as r, createVNode as c, unref as l, withCtx as n, createTextVNode as d, Fragment as w, renderList as y, normalizeClass as A, toDisplayString as C } from "vue";
2
2
  import { ScalarButton as p } from "@scalar/components";
3
3
  import { themeLabels as v } from "@scalar/themes";
4
- const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ f({
4
+ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, _ = ["onClick"], P = /* @__PURE__ */ f({
5
5
  __name: "GettingStarted",
6
6
  props: {
7
7
  theme: {}
8
8
  },
9
9
  emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
10
- setup(F, { emit: g }) {
10
+ setup(E, { emit: g }) {
11
11
  const m = g, h = [
12
12
  "default",
13
13
  "alternate",
@@ -37,7 +37,8 @@ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { c
37
37
  default: n(() => a[1] || (a[1] = [
38
38
  d(" Show Example ")
39
39
  ])),
40
- _: 1
40
+ _: 1,
41
+ __: [1]
41
42
  }),
42
43
  c(l(p), {
43
44
  fullWidth: "",
@@ -47,7 +48,8 @@ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { c
47
48
  default: n(() => a[2] || (a[2] = [
48
49
  d(" Upload File ")
49
50
  ])),
50
- _: 1
51
+ _: 1,
52
+ __: [2]
51
53
  })
52
54
  ])
53
55
  ]),
@@ -58,8 +60,8 @@ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { c
58
60
  (i(), o(w, null, y(h, (t) => e("div", {
59
61
  key: t,
60
62
  class: A(["start-item", { "start-item-active": t === s.theme }]),
61
- onClick: (B) => s.$emit("changeTheme", { id: t, label: l(v)[t] })
62
- }, C(l(v)[t]), 11, E)), 64))
63
+ onClick: (F) => s.$emit("changeTheme", { id: t, label: l(v)[t] })
64
+ }, C(l(v)[t]), 11, _)), 64))
63
65
  ])
64
66
  ]),
65
67
  a[6] || (a[6] = r('<p class="start-h1" data-v-0aca3a20>Features</p><ul class="start-ul" data-v-0aca3a20><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
@@ -1 +1 @@
1
- {"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AAoIA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAWF,iBAAS,cAAc;WA4HT,OAAO,IAA6B;;uBAZtB,GAAG;;;YACD,GAAG;6BACC,GAAG;yBACP,GAAG;;;;;;;;;;;;;;;;0BA1IjC,KA7EK,eA6EL,KA7EyB,uBA6EzB,KA3EA;;oBA2EA,KA1ES,eA0ET,KAzEU,uBAyEV,KAxEuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgOtB;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AA8IA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAWF,iBAAS,cAAc;WA8HT,OAAO,IAA6B;;uBAZtB,GAAG;;;YACD,GAAG;6BACC,GAAG;yBACP,GAAG;;;;;;;;;;;;;;;;0BAjJjC,KAjFyC,eAiFzC,KAhFG,uBAgFH,KA/EkB;;oBA+ElB,KA9E4C,eA8E5C,KA7Ee,uBA6Ef,KA5EK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2OJ;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SectionAccordion.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a371c135"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c13102ab"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1,59 +1,58 @@
1
- import { defineComponent as p, ref as m, createBlock as f, openBlock as c, withCtx as t, createVNode as s, unref as e, normalizeClass as _, createElementVNode as a, createElementBlock as d, createCommentVNode as l, renderSlot as n } from "vue";
1
+ import { defineComponent as p, ref as f, createBlock as _, openBlock as c, withCtx as e, createVNode as s, unref as t, normalizeClass as a, createElementVNode as d, createElementBlock as l, createCommentVNode as u, renderSlot as n } from "vue";
2
2
  import { Disclosure as v, DisclosureButton as h, DisclosurePanel as $ } from "@headlessui/vue";
3
- import { ScalarIcon as k } from "@scalar/components";
4
- import { useElementHover as C } from "@vueuse/core";
5
- import b from "../IntersectionObserver.vue.js";
6
- const B = { class: "section-accordion-button-content" }, y = {
3
+ import { ScalarIconCaretRight as k } from "@scalar/icons";
4
+ import { useElementHover as b } from "@vueuse/core";
5
+ import B from "../IntersectionObserver.vue.js";
6
+ const C = { class: "section-accordion-button-content" }, y = {
7
7
  key: 0,
8
8
  class: "section-accordion-button-actions"
9
9
  }, D = {
10
10
  key: 0,
11
11
  class: "section-accordion-description"
12
- }, w = { class: "section-accordion-content-card" }, A = /* @__PURE__ */ p({
12
+ }, E = { class: "section-accordion-content-card" }, A = /* @__PURE__ */ p({
13
13
  __name: "SectionAccordion",
14
14
  props: {
15
15
  id: {},
16
16
  transparent: { type: Boolean }
17
17
  },
18
- setup(E) {
19
- const i = m(), u = C(i);
20
- return (o, N) => (c(), f(b, {
18
+ setup(N) {
19
+ const r = f(), m = b(r);
20
+ return (o, S) => (c(), _(B, {
21
21
  id: o.id,
22
22
  class: "section-wrapper"
23
23
  }, {
24
- default: t(() => [
25
- s(e(v), {
24
+ default: e(() => [
25
+ s(t(v), {
26
26
  as: "section",
27
- class: _(["section-accordion", { "section-accordion-transparent": o.transparent }])
27
+ class: a(["section-accordion", { "section-accordion-transparent": o.transparent }])
28
28
  }, {
29
- default: t(({ open: r }) => [
30
- s(e(h), {
29
+ default: e(({ open: i }) => [
30
+ s(t(h), {
31
31
  ref_key: "button",
32
- ref: i,
32
+ ref: r,
33
33
  class: "section-accordion-button"
34
34
  }, {
35
- default: t(() => [
36
- a("div", B, [
35
+ default: e(() => [
36
+ d("div", C, [
37
37
  n(o.$slots, "title", {}, void 0, !0)
38
38
  ]),
39
- o.$slots.actions ? (c(), d("div", y, [
39
+ o.$slots.actions ? (c(), l("div", y, [
40
40
  n(o.$slots, "actions", {
41
- active: e(u) || r
41
+ active: t(m) || i
42
42
  }, void 0, !0)
43
- ])) : l("", !0),
44
- s(e(k), {
45
- class: "section-accordion-chevron size-5",
46
- icon: r ? "ChevronDown" : "ChevronRight"
47
- }, null, 8, ["icon"])
43
+ ])) : u("", !0),
44
+ s(t(k), {
45
+ class: a(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": i }])
46
+ }, null, 8, ["class"])
48
47
  ]),
49
48
  _: 2
50
49
  }, 1536),
51
- s(e($), { class: "section-accordion-content" }, {
52
- default: t(() => [
53
- o.$slots.description ? (c(), d("div", D, [
50
+ s(t($), { class: "section-accordion-content" }, {
51
+ default: e(() => [
52
+ o.$slots.description ? (c(), l("div", D, [
54
53
  n(o.$slots, "description", {}, void 0, !0)
55
- ])) : l("", !0),
56
- a("div", w, [
54
+ ])) : u("", !0),
55
+ d("div", E, [
57
56
  n(o.$slots, "default", {}, void 0, !0)
58
57
  ])
59
58
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAkGA,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAoGA,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}