@scalar/api-reference 1.32.7 → 1.32.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 (95) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/browser/standalone.js +15835 -15738
  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/Content/Content.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Content.vue.js +1 -1
  9. package/dist/components/Content/Content.vue2.js +24 -24
  10. package/dist/components/Content/Models/Models.vue2.js +5 -4
  11. package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
  12. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  13. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +14 -7
  14. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  16. package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
  17. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  19. package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
  20. package/dist/components/Content/Tag/Tag.vue.js +2 -1
  21. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  22. package/dist/components/GettingStarted.vue2.js +8 -6
  23. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  24. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  25. package/dist/components/Section/SectionAccordion.vue2.js +28 -29
  26. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  27. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  28. package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
  29. package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
  30. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  31. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  32. package/dist/features/Operation/components/callbacks/Callback.vue2.js +15 -15
  33. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  34. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +8 -8
  35. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  36. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  37. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +87 -75
  38. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  39. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  40. package/dist/features/Operation/layouts/ModernLayout.vue2.js +20 -18
  41. package/dist/features/Search/SearchButton.vue.js +2 -1
  42. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  43. package/dist/features/Search/SearchModal.vue.js +2 -2
  44. package/dist/features/Search/SearchModal.vue2.js +16 -16
  45. package/dist/features/api-client-modal/useApiClient.d.ts +84 -4
  46. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  47. package/dist/features/download-link/DownloadLink.vue2.js +4 -2
  48. package/dist/features/example-request/ExamplePicker.vue2.js +10 -9
  49. package/dist/features/example-request/ExampleRequest.vue.d.ts +10 -4
  50. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -1
  51. package/dist/features/example-request/ExampleRequest.vue.js +1 -1
  52. package/dist/features/example-request/ExampleRequest.vue2.js +108 -121
  53. package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
  54. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
  55. package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
  56. package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
  57. package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
  58. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
  59. package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
  60. package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
  61. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  62. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  63. package/dist/features/example-responses/ExampleResponses.vue2.js +81 -89
  64. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  65. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  66. package/dist/features/test-request-button/TestRequestButton.vue2.js +12 -12
  67. package/dist/index.d.ts +0 -1
  68. package/dist/index.d.ts.map +1 -1
  69. package/dist/index.js +21 -33
  70. package/dist/style.css +1 -1
  71. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  72. package/package.json +24 -24
  73. package/dist/components/Card/Card.vue.d.ts +0 -18
  74. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  75. package/dist/components/Card/Card.vue.js +0 -13
  76. package/dist/components/Card/CardContent.vue.d.ts +0 -19
  77. package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
  78. package/dist/components/Card/CardContent.vue.js +0 -7
  79. package/dist/components/Card/CardContent.vue2.js +0 -27
  80. package/dist/components/Card/CardFooter.vue.d.ts +0 -19
  81. package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
  82. package/dist/components/Card/CardFooter.vue.js +0 -7
  83. package/dist/components/Card/CardFooter.vue2.js +0 -24
  84. package/dist/components/Card/CardHeader.vue.d.ts +0 -20
  85. package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
  86. package/dist/components/Card/CardHeader.vue.js +0 -7
  87. package/dist/components/Card/CardHeader.vue2.js +0 -31
  88. package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
  89. package/dist/components/Card/CardTab.vue.js +0 -7
  90. package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
  91. package/dist/components/Card/CardTabHeader.vue.js +0 -7
  92. package/dist/components/Card/index.d.ts +0 -7
  93. package/dist/components/Card/index.d.ts.map +0 -1
  94. package/dist/components/Card/types.d.ts +0 -8
  95. package/dist/components/Card/types.d.ts.map +0 -1
@@ -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"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SectionContainerAccordion.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-6f297947"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-88109f3f"]]);
5
5
  export {
6
- a as default
6
+ i as default
7
7
  };
@@ -1,31 +1,30 @@
1
- import { defineComponent as i, createElementBlock as r, openBlock as a, createVNode as o, unref as e, withCtx as t, createElementVNode as l, renderSlot as n } from "vue";
2
- import { Disclosure as d, DisclosureButton as u, DisclosurePanel as _ } from "@headlessui/vue";
3
- import { ScalarIcon as f } from "@scalar/components";
4
- const p = { class: "section-accordion-wrapper" }, m = { class: "section-accordion-title" }, B = /* @__PURE__ */ i({
1
+ import { defineComponent as r, createElementBlock as a, openBlock as i, createVNode as o, unref as e, withCtx as t, createElementVNode as l, normalizeClass as d, renderSlot as s } from "vue";
2
+ import { Disclosure as u, DisclosureButton as f, DisclosurePanel as m } from "@headlessui/vue";
3
+ import { ScalarIconCaretRight as _ } from "@scalar/icons";
4
+ const p = { class: "section-accordion-wrapper" }, h = { class: "section-accordion-title" }, k = /* @__PURE__ */ r({
5
5
  __name: "SectionContainerAccordion",
6
- setup(h) {
7
- return (c, v) => (a(), r("div", p, [
8
- o(e(d), {
6
+ setup(v) {
7
+ return (c, C) => (i(), a("div", p, [
8
+ o(e(u), {
9
9
  as: "div",
10
10
  class: "section-accordion",
11
11
  defaultOpen: ""
12
12
  }, {
13
- default: t(({ open: s }) => [
14
- o(e(u), { class: "section-accordion-button" }, {
13
+ default: t(({ open: n }) => [
14
+ o(e(f), { class: "section-accordion-button" }, {
15
15
  default: t(() => [
16
- o(e(f), {
17
- class: "section-accordion-chevron size-6",
18
- icon: s ? "ChevronDown" : "ChevronRight"
19
- }, null, 8, ["icon"]),
20
- l("div", m, [
21
- n(c.$slots, "title", {}, void 0, !0)
16
+ o(e(_), {
17
+ class: d(["section-accordion-chevron size-5 transition-transform", { "rotate-90": n }])
18
+ }, null, 8, ["class"]),
19
+ l("div", h, [
20
+ s(c.$slots, "title", {}, void 0, !0)
22
21
  ])
23
22
  ]),
24
23
  _: 2
25
24
  }, 1024),
26
- o(e(_), { class: "section-accordion-content" }, {
25
+ o(e(m), { class: "section-accordion-content" }, {
27
26
  default: t(() => [
28
- n(c.$slots, "default", {}, void 0, !0)
27
+ s(c.$slots, "default", {}, void 0, !0)
29
28
  ]),
30
29
  _: 3
31
30
  })
@@ -36,5 +35,5 @@ const p = { class: "section-accordion-wrapper" }, m = { class: "section-accordio
36
35
  }
37
36
  });
38
37
  export {
39
- B as default
38
+ k as default
40
39
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as S, computed as s, ref as B, createBlock as V, createElementBlock as k, openBlock as p, unref as n, withCtx as r, createVNode as c, normalizeClass as m, createElementVNode as f, createTextVNode as g, toDisplayString as y } from "vue";
2
- import { cva as h, ScalarListbox as w, ScalarButton as _, ScalarIcon as q } from "@scalar/components";
1
+ import { defineComponent as S, computed as s, ref as B, createBlock as V, createElementBlock as k, openBlock as p, unref as n, withCtx as r, createVNode as c, normalizeClass as m, createElementVNode as f, createTextVNode as _, toDisplayString as y } from "vue";
2
+ import { cva as g, ScalarListbox as h, ScalarButton as w, ScalarIcon as q } from "@scalar/components";
3
3
  import N from "../../../components/ScreenReader.vue.js";
4
4
  const O = /* @__PURE__ */ S({
5
5
  __name: "ContentTypeSelect",
@@ -24,7 +24,7 @@ const O = /* @__PURE__ */ S({
24
24
  }), d = s(() => a.value.map((e) => ({
25
25
  id: e,
26
26
  label: e
27
- }))), i = h({
27
+ }))), i = g({
28
28
  base: "font-normal text-c-2 bg-b-2 py-0.75 flex cursor-pointer items-center gap-1 rounded-full text-xs",
29
29
  variants: {
30
30
  dropdown: {
@@ -33,7 +33,7 @@ const O = /* @__PURE__ */ S({
33
33
  }
34
34
  }
35
35
  });
36
- return (e, o) => t != null && t.requestBody && a.value.length > 1 ? (p(), V(n(w), {
36
+ return (e, o) => t != null && t.requestBody && a.value.length > 1 ? (p(), V(n(h), {
37
37
  key: 0,
38
38
  modelValue: u.value,
39
39
  "onUpdate:modelValue": [
@@ -45,16 +45,17 @@ const O = /* @__PURE__ */ S({
45
45
  placement: "bottom-end"
46
46
  }, {
47
47
  default: r(() => [
48
- c(n(_), {
48
+ c(n(w), {
49
49
  class: m(["h-fit", n(i)({ dropdown: !0 })]),
50
50
  variant: "ghost"
51
51
  }, {
52
52
  default: r(() => [
53
53
  c(N, null, {
54
54
  default: r(() => o[1] || (o[1] = [
55
- g("Selected Content Type:")
55
+ _("Selected Content Type:")
56
56
  ])),
57
- _: 1
57
+ _: 1,
58
+ __: [1]
58
59
  }),
59
60
  f("span", null, y(l.value), 1),
60
61
  c(n(q), {
@@ -1 +1 @@
1
- {"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AAqHA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAA;IACrC,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;;AAqJF,wBAMG"}
1
+ {"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AAsHA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAA;IACrC,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;;AA0JF,wBAMG"}
@@ -1,7 +1,7 @@
1
- import o from "./Callback.vue2.js";
1
+ import a from "./Callback.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-744e489e"]]);
3
+ import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-e9ea54a1"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as l, computed as m, createElementBlock as n, createCommentVNode as i, openBlock as p, createElementVNode as o, createVNode as s, unref as a, createTextVNode as d, toDisplayString as r } from "vue";
1
+ import { defineComponent as r, computed as m, createElementBlock as n, createCommentVNode as i, openBlock as p, createElementVNode as t, createVNode as a, unref as o, createTextVNode as d, toDisplayString as l } from "vue";
2
2
  import { ScalarIconCaretRight as u } from "@scalar/icons";
3
3
  import { requestSchema as f } from "@scalar/oas-utils/entities/spec";
4
4
  import { schemaModel as h } from "@scalar/oas-utils/helpers";
@@ -7,8 +7,8 @@ import k from "../OperationResponses.vue.js";
7
7
  import g from "../../../../components/HttpMethod/HttpMethod.vue.js";
8
8
  const y = {
9
9
  key: 0,
10
- class: "group"
11
- }, _ = { class: "font-code bg-b-1 callback-sticky-offset sticky flex cursor-pointer flex-row items-center gap-2 border-t py-3 text-sm group-open:flex-wrap" }, q = { class: "text-c-1 truncate leading-3 group-open:whitespace-normal" }, B = { class: "text-c-2" }, v = { class: "callback-operation-container flex flex-col gap-2" }, I = /* @__PURE__ */ l({
10
+ class: "group callback-list-item"
11
+ }, _ = { class: "font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-center gap-2 border-t py-3 text-sm group-open:flex-wrap" }, q = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, x = { class: "text-c-2" }, B = { class: "callback-operation-container flex flex-col gap-2" }, I = /* @__PURE__ */ r({
12
12
  __name: "Callback",
13
13
  props: {
14
14
  callback: {},
@@ -18,30 +18,30 @@ const y = {
18
18
  schemas: {},
19
19
  url: {}
20
20
  },
21
- setup(t) {
21
+ setup(s) {
22
22
  const c = m(
23
- () => h({ ...t.callback, path: t.url, method: t.method }, f, !1)
23
+ () => h({ ...s.callback, path: s.url, method: s.method }, f, !1)
24
24
  );
25
- return (e, x) => e.collection && c.value ? (p(), n("details", y, [
26
- o("summary", _, [
27
- s(a(u), { class: "text-c-3 group-hover:text-c-1 absolute -left-5 size-4 transition-transform group-open:rotate-90" }),
28
- s(a(g), {
25
+ return (e, v) => e.collection && c.value ? (p(), n("details", y, [
26
+ t("summary", _, [
27
+ a(o(u), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute -left-5 size-4 transition-transform group-open:rotate-90" }),
28
+ a(o(g), {
29
29
  as: "span",
30
30
  class: "request-method",
31
31
  method: e.method
32
32
  }, null, 8, ["method"]),
33
- o("div", q, [
34
- d(r(e.name) + " ", 1),
35
- o("span", B, r(e.url), 1)
33
+ t("div", q, [
34
+ d(l(e.name) + " ", 1),
35
+ t("span", x, l(e.url), 1)
36
36
  ])
37
37
  ]),
38
- o("div", v, [
39
- s(b, {
38
+ t("div", B, [
39
+ a(b, {
40
40
  requestBody: e.callback.requestBody,
41
41
  parameters: e.callback.parameters,
42
42
  schemas: e.schemas
43
43
  }, null, 8, ["requestBody", "parameters", "schemas"]),
44
- s(k, {
44
+ a(k, {
45
45
  collapsableItems: !1,
46
46
  responses: e.callback.responses,
47
47
  schemas: e.schemas
@@ -1 +1 @@
1
- {"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAMjE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;IACjC,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AA2EF,wBAOG"}
1
+ {"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAMjE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;IACjC,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AA4EF,wBAOG"}
@@ -1,6 +1,6 @@
1
- import { defineComponent as p, createElementBlock as l, openBlock as e, createElementVNode as k, Fragment as t, renderList as n, createBlock as d } from "vue";
1
+ import { defineComponent as k, createElementBlock as e, openBlock as l, createElementVNode as p, Fragment as t, renderList as a, createBlock as d } from "vue";
2
2
  import b from "./Callback.vue.js";
3
- const f = { class: "mt-6 gap-3" }, g = /* @__PURE__ */ p({
3
+ const f = { class: "callbacks-list gap-3" }, g = /* @__PURE__ */ k({
4
4
  __name: "Callbacks",
5
5
  props: {
6
6
  callbacks: {},
@@ -8,15 +8,15 @@ const f = { class: "mt-6 gap-3" }, g = /* @__PURE__ */ p({
8
8
  schemas: {}
9
9
  },
10
10
  setup(h) {
11
- return (c, o) => (e(), l("div", f, [
12
- o[0] || (o[0] = k("div", { class: "text-c-1 my-3 text-lg font-medium" }, "Callbacks", -1)),
13
- (e(!0), l(t, null, n(c.callbacks, (a, r) => (e(), l(t, { key: r }, [
14
- (e(!0), l(t, null, n(a, (s, m) => (e(), l(t, null, [
15
- (e(!0), l(t, null, n(s, (u, i) => (e(), d(b, {
11
+ return (c, s) => (l(), e("div", f, [
12
+ s[0] || (s[0] = p("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)),
13
+ (l(!0), e(t, null, a(c.callbacks, (o, n) => (l(), e(t, { key: n }, [
14
+ (l(!0), e(t, null, a(o, (r, m) => (l(), e(t, null, [
15
+ (l(!0), e(t, null, a(r, (u, i) => (l(), d(b, {
16
16
  callback: u,
17
17
  collection: c.collection,
18
18
  method: i,
19
- name: r,
19
+ name: n,
20
20
  schemas: c.schemas,
21
21
  url: m
22
22
  }, null, 8, ["callback", "collection", "method", "name", "schemas", "url"]))), 256))
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAuXA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAWzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA2VF,wBAQG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAkbA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAYzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AAgYF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6d48a0e7"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1d97e7c7"]]);
5
5
  export {
6
- m as default
6
+ c as default
7
7
  };
@@ -1,20 +1,24 @@
1
- import { defineComponent as B, computed as S, createBlock as n, openBlock as p, unref as o, createSlots as V, withCtx as a, createElementVNode as s, createVNode as t, createCommentVNode as d, withModifiers as w, toDisplayString as u, normalizeClass as T, createTextVNode as f } from "vue";
2
- import { ScalarIcon as I, ScalarIconButton as R, ScalarMarkdown as N } from "@scalar/components";
3
- import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
4
- import { isOperationDeprecated as P, getOperationStability as y, getOperationStabilityColor as W } from "@scalar/oas-utils/helpers";
5
- import { useClipboard as $ } from "@scalar/use-hooks/useClipboard";
6
- import z from "../../../components/OperationPath.vue.js";
7
- import { useConfig as A } from "../../../hooks/useConfig.js";
8
- import D from "../components/OperationParameters.vue.js";
9
- import E from "../components/OperationResponses.vue.js";
10
- import L from "../../../components/Section/SectionAccordion.vue.js";
11
- import U from "../../example-responses/ExampleResponses.vue.js";
12
- import M from "../../example-request/ExampleRequest.vue.js";
13
- import _ from "../../test-request-button/TestRequestButton.vue.js";
14
- import j from "../../../components/HttpMethod/HttpMethod.vue.js";
15
- import F from "../../../components/Anchor/Anchor.vue.js";
1
+ import { defineComponent as S, computed as V, createBlock as l, openBlock as r, unref as o, createSlots as w, withCtx as i, createElementVNode as s, createVNode as t, createElementBlock as I, createCommentVNode as d, withModifiers as T, toDisplayString as f, normalizeClass as R, createTextVNode as y } from "vue";
2
+ import { ScalarIconButton as $, ScalarMarkdown as E } from "@scalar/components";
3
+ import { ScalarIconPlay as N, ScalarIconCopy as O, ScalarIconWebhooksLogo as P } from "@scalar/icons";
4
+ import { isOperationDeprecated as W, getOperationStability as k, getOperationStabilityColor as _ } from "@scalar/oas-utils/helpers";
5
+ import { useClipboard as z } from "@scalar/use-hooks/useClipboard";
6
+ import A from "../../../components/OperationPath.vue.js";
7
+ import D from "../components/callbacks/Callbacks.vue.js";
8
+ import { useConfig as L } from "../../../hooks/useConfig.js";
9
+ import U from "../components/OperationParameters.vue.js";
10
+ import M from "../components/OperationResponses.vue.js";
11
+ import j from "../../../components/Section/SectionAccordion.vue.js";
12
+ import F from "../../example-responses/ExampleResponses.vue.js";
13
+ import G from "../../example-request/ExampleRequest.vue.js";
14
+ import H from "../../test-request-button/TestRequestButton.vue.js";
15
+ import J from "../../../components/HttpMethod/HttpMethod.vue.js";
16
+ import K from "../../../components/Anchor/Anchor.vue.js";
16
17
  import v from "../../../components/Badge/Badge.vue.js";
17
- const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, X = { class: "endpoint-content" }, Y = { class: "operation-details-card" }, Z = { class: "operation-details-card-item" }, x = { class: "operation-details-card-item" }, ve = /* @__PURE__ */ B({
18
+ const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y = { class: "endpoint-label" }, Z = { class: "endpoint-label-path" }, x = { class: "endpoint-label-name" }, ee = { class: "endpoint-content" }, oe = { class: "operation-details-card" }, te = { class: "operation-details-card-item" }, se = { class: "operation-details-card-item" }, ae = {
19
+ key: 0,
20
+ class: "operation-details-card-item"
21
+ }, qe = /* @__PURE__ */ S({
18
22
  __name: "ClassicLayout",
19
23
  props: {
20
24
  id: {},
@@ -29,58 +33,59 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
29
33
  },
30
34
  emits: ["update:modelValue"],
31
35
  setup(m, { emit: b }) {
32
- const g = S(() => {
36
+ const g = V(() => {
33
37
  var e;
34
38
  return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
35
- }), { copyToClipboard: k } = $(), C = A(), q = b, c = (e) => {
36
- q("update:modelValue", e);
39
+ }), { copyToClipboard: C } = z(), q = L(), B = b, h = (e) => {
40
+ B("update:modelValue", e);
37
41
  };
38
- return (e, l) => {
39
- var h;
40
- return p(), n(o(L), {
42
+ return (e, p) => {
43
+ var u;
44
+ return r(), l(o(j), {
41
45
  id: e.id,
42
46
  class: "reference-endpoint",
43
47
  transparent: ""
44
- }, V({
45
- title: a(() => [
46
- s("div", G, [
47
- s("div", H, [
48
- t(o(j), {
48
+ }, w({
49
+ title: i(() => [
50
+ s("div", Q, [
51
+ s("div", X, [
52
+ t(o(J), {
49
53
  class: "endpoint-type",
50
54
  method: e.method,
51
55
  short: ""
52
56
  }, null, 8, ["method"]),
53
- t(o(F), {
57
+ t(o(K), {
54
58
  id: e.id,
55
59
  class: "endpoint-anchor"
56
60
  }, {
57
- default: a(() => [
58
- s("h3", J, [
59
- s("div", K, [
60
- t(z, {
61
- deprecated: o(P)(e.operation),
61
+ default: i(() => [
62
+ s("h3", Y, [
63
+ s("div", Z, [
64
+ t(A, {
65
+ deprecated: o(W)(e.operation),
62
66
  path: e.path
63
67
  }, null, 8, ["deprecated", "path"])
64
68
  ]),
65
- s("div", Q, u(g.value), 1),
66
- o(y)(e.operation) ? (p(), n(o(v), {
69
+ s("div", x, f(g.value), 1),
70
+ o(k)(e.operation) ? (r(), l(o(v), {
67
71
  key: 0,
68
- class: T(o(W)(e.operation))
72
+ class: R(o(_)(e.operation))
69
73
  }, {
70
- default: a(() => [
71
- f(u(o(y)(e.operation)), 1)
74
+ default: i(() => [
75
+ y(f(o(k)(e.operation)), 1)
72
76
  ]),
73
77
  _: 1
74
78
  }, 8, ["class"])) : d("", !0),
75
- e.isWebhook ? (p(), n(o(v), {
79
+ e.isWebhook ? (r(), l(o(v), {
76
80
  key: 1,
77
81
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
78
82
  }, {
79
- default: a(() => [
80
- t(o(O), { weight: "bold" }),
81
- l[1] || (l[1] = f("Webhook "))
83
+ default: i(() => [
84
+ t(o(P), { weight: "bold" }),
85
+ p[1] || (p[1] = y("Webhook "))
82
86
  ]),
83
- _: 1
87
+ _: 1,
88
+ __: [1]
84
89
  })) : d("", !0)
85
90
  ])
86
91
  ]),
@@ -89,72 +94,79 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
89
94
  ])
90
95
  ])
91
96
  ]),
92
- actions: a(({ active: i }) => {
93
- var r;
97
+ actions: i(({ active: a }) => {
98
+ var n;
94
99
  return [
95
- i && e.request ? (p(), n(o(_), {
100
+ a && e.request ? (r(), l(o(H), {
96
101
  key: 0,
97
102
  operation: e.request
98
- }, null, 8, ["operation"])) : (r = o(C)) != null && r.hideTestRequestButton ? d("", !0) : (p(), n(o(I), {
103
+ }, null, 8, ["operation"])) : (n = o(q)) != null && n.hideTestRequestButton ? d("", !0) : (r(), l(o(N), {
99
104
  key: 1,
100
- class: "endpoint-try-hint size-6",
101
- icon: "Play",
102
- thickness: "1.75px"
105
+ class: "endpoint-try-hint size-4.5"
103
106
  })),
104
- t(o(R), {
107
+ t(o($), {
105
108
  class: "endpoint-copy p-0.5",
106
- icon: "Clipboard",
109
+ icon: o(O),
107
110
  label: "Copy endpoint URL",
108
111
  size: "xs",
109
112
  variant: "ghost",
110
- onClick: l[0] || (l[0] = w((ee) => o(k)(e.path), ["stop"]))
111
- })
113
+ onClick: p[0] || (p[0] = T((c) => o(C)(e.path), ["stop"]))
114
+ }, null, 8, ["icon"])
112
115
  ];
113
116
  }),
114
- default: a(() => {
115
- var i, r;
117
+ default: i(() => {
118
+ var a, n, c;
116
119
  return [
117
- s("div", X, [
118
- s("div", Y, [
119
- s("div", Z, [
120
- t(D, {
121
- parameters: (i = e.operation) == null ? void 0 : i.parameters,
122
- requestBody: (r = e.operation) == null ? void 0 : r.requestBody,
120
+ s("div", ee, [
121
+ s("div", oe, [
122
+ s("div", te, [
123
+ t(U, {
124
+ parameters: (a = e.operation) == null ? void 0 : a.parameters,
125
+ requestBody: (n = e.operation) == null ? void 0 : n.requestBody,
123
126
  schemas: e.schemas,
124
- "onUpdate:modelValue": c
127
+ "onUpdate:modelValue": h
125
128
  }, null, 8, ["parameters", "requestBody", "schemas"])
126
129
  ]),
127
- s("div", x, [
128
- t(E, {
130
+ s("div", se, [
131
+ t(M, {
129
132
  collapsableItems: !1,
130
133
  responses: e.operation.responses,
131
134
  schemas: e.schemas
132
135
  }, null, 8, ["responses", "schemas"])
133
- ])
136
+ ]),
137
+ (c = e.operation) != null && c.callbacks ? (r(), I("div", ae, [
138
+ t(D, {
139
+ callbacks: e.operation.callbacks,
140
+ schemas: e.schemas,
141
+ collection: e.collection
142
+ }, null, 8, ["callbacks", "schemas", "collection"])
143
+ ])) : d("", !0)
134
144
  ]),
135
- t(o(U), {
145
+ t(o(F), {
146
+ class: "operation-example-card",
136
147
  responses: e.operation.responses
137
148
  }, null, 8, ["responses"]),
138
- t(o(M), {
149
+ t(o(G), {
150
+ class: "operation-example-card",
139
151
  request: e.request,
140
152
  method: e.method,
141
153
  collection: e.collection,
142
154
  operation: e.operation,
143
155
  server: e.server,
144
- "onUpdate:modelValue": c
156
+ "onUpdate:modelValue": h
145
157
  }, null, 8, ["request", "method", "collection", "operation", "server"])
146
158
  ])
147
159
  ];
148
160
  }),
149
161
  _: 2
150
162
  }, [
151
- (h = e.operation) != null && h.description ? {
163
+ (u = e.operation) != null && u.description ? {
152
164
  name: "description",
153
- fn: a(() => {
154
- var i;
165
+ fn: i(() => {
166
+ var a;
155
167
  return [
156
- t(o(N), {
157
- value: (i = e.operation) == null ? void 0 : i.description,
168
+ t(o(E), {
169
+ value: (a = e.operation) == null ? void 0 : a.description,
158
170
  withImages: "",
159
171
  withAnchors: "",
160
172
  transformType: "heading",
@@ -169,5 +181,5 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
169
181
  }
170
182
  });
171
183
  export {
172
- ve as default
184
+ qe as default
173
185
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAiLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAsBzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA8TF,wBAQG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAmMA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAsBzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AAiUF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.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-40b5a836"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1030b20c"]]);
5
5
  export {
6
6
  p as default
7
7
  };