@scalar/api-reference 1.25.10 → 1.25.12

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 (105) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/browser/standalone.js +17048 -16623
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  5. package/dist/components/ApiClientModal.vue.js +37 -32
  6. package/dist/components/Content/Authentication/Authentication.stories.d.ts.map +1 -1
  7. package/dist/components/Content/Operation/Operation.vue.js +2 -2
  8. package/dist/components/Content/Operation/Operation.vue2.js +14 -14
  9. package/dist/components/Content/Operation/OperationAccordion.vue.js +1 -1
  10. package/dist/components/Content/Operation/OperationAccordion.vue2.js +24 -24
  11. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts +21 -0
  12. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +1 -0
  13. package/dist/components/Content/Operation/ParameterHeaders.vue.js +7 -0
  14. package/dist/components/Content/Operation/ParameterHeaders.vue2.js +62 -0
  15. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Operation/ParameterItem.vue.js +2 -2
  17. package/dist/components/Content/Operation/ParameterItem.vue2.js +34 -30
  18. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  20. package/dist/components/Content/Tag/Endpoints.vue2.js +10 -8
  21. package/dist/components/Content/Tag/Tag.vue.js +3 -3
  22. package/dist/components/Content/Tag/Tag.vue2.js +1 -1
  23. package/dist/components/api-client-bus.d.ts +3 -3
  24. package/dist/components/api-client-bus.d.ts.map +1 -1
  25. package/dist/{components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts → embeds/ExampleResponses/ExampleResponses.vue.d.ts} +4 -9
  26. package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
  27. package/dist/embeds/ExampleResponses/index.d.ts +2 -0
  28. package/dist/embeds/ExampleResponses/index.d.ts.map +1 -0
  29. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +8 -1
  30. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  31. package/dist/embeds/index.d.ts +1 -0
  32. package/dist/embeds/index.d.ts.map +1 -1
  33. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
  34. package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
  35. package/dist/features/BaseUrl/ServerForm.vue2.js +5 -5
  36. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  37. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  38. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +122 -139
  39. package/dist/{components/Content/Operation/PathResponses/Headers.vue.d.ts → features/ExampleResponses/ExampleResponse.vue.d.ts} +4 -4
  40. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -0
  41. package/dist/features/ExampleResponses/ExampleResponse.vue.js +7 -0
  42. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +37 -0
  43. package/dist/{components/Content/Operation/PathResponses/PathResponses.vue.d.ts → features/ExampleResponses/ExampleResponses.vue.d.ts} +1 -1
  44. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
  45. package/dist/features/ExampleResponses/ExampleResponses.vue.js +7 -0
  46. package/dist/{components/Content/Operation/PathResponses/PathResponses.vue2.js → features/ExampleResponses/ExampleResponses.vue2.js} +18 -18
  47. package/dist/features/ExampleResponses/index.d.ts +2 -0
  48. package/dist/features/ExampleResponses/index.d.ts.map +1 -0
  49. package/dist/helpers/createRequest.d.ts +6 -0
  50. package/dist/helpers/createRequest.d.ts.map +1 -0
  51. package/dist/helpers/createRequest.js +16 -0
  52. package/dist/helpers/getExampleCode.d.ts +9 -0
  53. package/dist/helpers/getExampleCode.d.ts.map +1 -0
  54. package/dist/helpers/getExampleCode.js +30 -0
  55. package/dist/helpers/index.d.ts +2 -0
  56. package/dist/helpers/index.d.ts.map +1 -1
  57. package/dist/helpers/mergeAllObjects.d.ts +3 -0
  58. package/dist/helpers/mergeAllObjects.d.ts.map +1 -1
  59. package/dist/hooks/useReactiveSpec.d.ts +7 -1
  60. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  61. package/dist/hooks/useResponses.d.ts +4 -0
  62. package/dist/hooks/useResponses.d.ts.map +1 -1
  63. package/dist/hooks/useResponses.js +11 -10
  64. package/dist/index.js +72 -68
  65. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  66. package/dist/legacy/components/SecurityScheme.vue.js +1 -1
  67. package/dist/legacy/components/SecurityScheme.vue2.js +158 -129
  68. package/dist/legacy/fixtures/httpRequestMethods.d.ts +1 -1
  69. package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +1 -1
  70. package/dist/legacy/helpers/index.d.ts +1 -0
  71. package/dist/legacy/helpers/index.d.ts.map +1 -1
  72. package/dist/legacy/helpers/normalizeHeaderName.d.ts +5 -0
  73. package/dist/legacy/helpers/normalizeHeaderName.d.ts.map +1 -0
  74. package/dist/legacy/helpers/normalizeHeaderName.js +6 -0
  75. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
  76. package/dist/legacy/helpers/normalizeHeaders.js +15 -17
  77. package/dist/legacy/helpers/normalizeRequestMethod.d.ts +1 -1
  78. package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -1
  79. package/dist/legacy/helpers/normalizeRequestMethod.js +1 -1
  80. package/dist/legacy/stores/useOpenApiStore.d.ts +7 -1
  81. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  82. package/dist/style.css +1 -1
  83. package/dist/types.d.ts +0 -8
  84. package/dist/types.d.ts.map +1 -1
  85. package/package.json +14 -14
  86. package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts.map +0 -1
  87. package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.js +0 -7
  88. package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue2.js +0 -101
  89. package/dist/components/Content/Operation/PathResponses/Headers.vue.d.ts.map +0 -1
  90. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +0 -1
  91. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +0 -7
  92. package/dist/components/Content/Operation/PathResponses/index.d.ts +0 -2
  93. package/dist/components/Content/Operation/PathResponses/index.d.ts.map +0 -1
  94. package/dist/components/SimpleTable/SimpleCell.vue.d.ts +0 -50
  95. package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +0 -1
  96. package/dist/components/SimpleTable/SimpleHeader.vue.d.ts +0 -12
  97. package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +0 -1
  98. package/dist/components/SimpleTable/SimpleRow.vue.d.ts +0 -12
  99. package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +0 -1
  100. package/dist/components/SimpleTable/SimpleTable.stories.d.ts +0 -7
  101. package/dist/components/SimpleTable/SimpleTable.stories.d.ts.map +0 -1
  102. package/dist/components/SimpleTable/SimpleTable.vue.d.ts +0 -12
  103. package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +0 -1
  104. package/dist/components/SimpleTable/index.d.ts +0 -5
  105. package/dist/components/SimpleTable/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;;eAQtD,MAAM;WACV,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;eAFd,MAAM;WACV,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;AA8F3B,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":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;;eAQtD,MAAM;WACV,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;eAFd,MAAM;WACV,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;AA8F3B,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,45 +1,50 @@
1
- import { defineComponent as S, ref as l, onMounted as U, watch as _, onBeforeUnmount as h, openBlock as x, createElementBlock as y } from "vue";
2
- import { modalStateBus as B, apiClientBus as A } from "./api-client-bus.js";
3
- import { useServerStore as C } from "../legacy/stores/useServerStore.js";
4
- import { getUrlFromServerState as k } from "../legacy/helpers/getUrlFromServerState.js";
5
- import { useAuthenticationStore as M } from "../legacy/stores/useAuthenticationStore.js";
6
- const b = /* @__PURE__ */ S({
1
+ import { defineComponent as v, ref as l, onMounted as S, watch as n, onBeforeUnmount as _, openBlock as U, createElementBlock as h } from "vue";
2
+ import { modalStateBus as x, apiClientBus as y } from "./api-client-bus.js";
3
+ import { useServerStore as A } from "../legacy/stores/useServerStore.js";
4
+ import { getUrlFromServerState as B } from "../legacy/helpers/getUrlFromServerState.js";
5
+ const g = /* @__PURE__ */ v({
7
6
  __name: "ApiClientModal",
8
7
  props: {
9
8
  proxyUrl: {},
10
9
  spec: {},
11
10
  servers: {}
12
11
  },
13
- setup(u) {
14
- const t = u, o = l(null), p = l(null), { authentication: c } = M(), { server: i } = C();
15
- return U(async () => {
16
- if (!o.value) return;
17
- const { createApiClientModal: r } = await import("@scalar/api-client"), { app: n, open: m, updateAuth: f, updateServerUrl: d, modalState: v, updateSpec: a } = await r(o.value, {
18
- spec: t.spec ?? {},
19
- proxyUrl: t.proxyUrl,
20
- servers: t.servers
12
+ setup(s) {
13
+ const p = s, a = l(null), o = l(null), { server: c } = A();
14
+ return S(async () => {
15
+ if (!a.value) return;
16
+ const { createApiClientModal: e } = await import("@scalar/api-client"), { app: r, open: i, updateAuth: m, modalState: d, updateSpec: u, updateServer: f } = await e(a.value, {
17
+ spec: p.spec ?? {},
18
+ proxyUrl: p.proxyUrl,
19
+ servers: p.servers
21
20
  });
22
- B.emit(v), A.on((e) => {
23
- if (e.open) {
24
- f(c);
25
- const s = k(i);
26
- s && d(s), m(e.open);
27
- }
28
- e.updateSpec && a(e.updateSpec);
29
- }), _(
30
- () => t.spec,
31
- (e) => e && a(e),
32
- { deep: !0 }
33
- ), p.value = n;
34
- }), h(() => {
35
- var r;
36
- return (r = p.value) == null ? void 0 : r.unmount();
37
- }), (r, n) => (x(), y("div", {
21
+ o.value = {
22
+ // @ts-expect-error not sure what the beef with app is, possible router related
23
+ app: r,
24
+ updateSpec: u,
25
+ updateServer: f
26
+ }, x.emit(d), y.on((t) => {
27
+ t.open && i(t.open), t.updateSpec && u(t.updateSpec), t.updateAuth && m(t.updateAuth);
28
+ });
29
+ }), n(c, (e) => {
30
+ const r = B(e);
31
+ r && o.value && o.value.updateServer(r);
32
+ }), n(
33
+ () => p.spec,
34
+ (e) => {
35
+ var r;
36
+ return e && ((r = o.value) == null ? void 0 : r.updateSpec(e));
37
+ },
38
+ { deep: !0 }
39
+ ), _(() => {
40
+ var e;
41
+ return (e = o.value) == null ? void 0 : e.app.unmount();
42
+ }), (e, r) => (U(), h("div", {
38
43
  ref_key: "el",
39
- ref: o
44
+ ref: a
40
45
  }, null, 512));
41
46
  }
42
47
  });
43
48
  export {
44
- b as default
49
+ g as default
45
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Authentication.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,cAAc,MAAM,sBAAsB,CAAA;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAIrC,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAA;AAE5C,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAgB9B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAmBjC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAoBlC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAmBpB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAkCvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAkC7B,CAAA"}
1
+ {"version":3,"file":"Authentication.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,cAAc,MAAM,sBAAsB,CAAA;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAIrC,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAA;AAE5C,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAe9B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkBjC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAoBlC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAmBpB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAkCvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA+B7B,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Operation.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-81bfb2d1"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-307792e5"]]);
5
5
  export {
6
- f as default
6
+ e as default
7
7
  };
@@ -4,14 +4,14 @@ import _ from "./EndpointPath.vue.js";
4
4
  import C from "./TestRequestButton.vue.js";
5
5
  import S from "../../Section/Section.vue.js";
6
6
  import B from "../../Section/SectionContent.vue.js";
7
- import N from "../../Section/SectionColumns.vue.js";
7
+ import E from "../../Section/SectionColumns.vue.js";
8
8
  import d from "../../Section/SectionColumn.vue.js";
9
- import V from "../../Badge/Badge.vue.js";
10
- import g from "../../Section/SectionHeader.vue.js";
11
- import k from "../../Anchor/Anchor.vue.js";
12
- import v from "../../../features/ExampleRequest/ExampleRequest.vue.js";
13
- import y from "./PathResponses/PathResponses.vue.js";
14
- const E = { class: "examples" }, I = /* @__PURE__ */ f({
9
+ import N from "../../Badge/Badge.vue.js";
10
+ import V from "../../Section/SectionHeader.vue.js";
11
+ import g from "../../Anchor/Anchor.vue.js";
12
+ import k from "../../../features/ExampleRequest/ExampleRequest.vue.js";
13
+ import v from "../../../features/ExampleResponses/ExampleResponses.vue.js";
14
+ const y = { class: "examples" }, I = /* @__PURE__ */ f({
15
15
  __name: "Operation",
16
16
  props: {
17
17
  id: {},
@@ -25,13 +25,13 @@ const E = { class: "examples" }, I = /* @__PURE__ */ f({
25
25
  default: r(() => [
26
26
  o(t(B), null, {
27
27
  default: r(() => [
28
- o(t(N), null, {
28
+ o(t(E), null, {
29
29
  default: r(() => [
30
30
  o(t(d), null, {
31
31
  default: r(() => {
32
32
  var a, n;
33
33
  return [
34
- (a = e.operation.information) != null && a.deprecated ? (i(), p(t(V), { key: 0 }, {
34
+ (a = e.operation.information) != null && a.deprecated ? (i(), p(t(N), { key: 0 }, {
35
35
  default: r(() => [
36
36
  l(" Deprecated ")
37
37
  ]),
@@ -40,9 +40,9 @@ const E = { class: "examples" }, I = /* @__PURE__ */ f({
40
40
  m("div", {
41
41
  class: u((n = e.operation.information) != null && n.deprecated ? "deprecated" : "")
42
42
  }, [
43
- o(t(g), { level: 3 }, {
43
+ o(t(V), { level: 3 }, {
44
44
  default: r(() => [
45
- o(t(k), {
45
+ o(t(g), {
46
46
  id: e.id ?? ""
47
47
  }, {
48
48
  default: r(() => [
@@ -61,8 +61,8 @@ const E = { class: "examples" }, I = /* @__PURE__ */ f({
61
61
  }),
62
62
  o(t(d), null, {
63
63
  default: r(() => [
64
- m("div", E, [
65
- o(t(v), { operation: e.operation }, {
64
+ m("div", y, [
65
+ o(t(k), { operation: e.operation }, {
66
66
  header: r(() => {
67
67
  var a;
68
68
  return [
@@ -78,7 +78,7 @@ const E = { class: "examples" }, I = /* @__PURE__ */ f({
78
78
  ]),
79
79
  _: 1
80
80
  }, 8, ["operation"]),
81
- o(t(y), {
81
+ o(t(v), {
82
82
  operation: e.operation,
83
83
  style: { "margin-top": "12px" }
84
84
  }, null, 8, ["operation"])
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationAccordion.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7f04d704"]]);
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9b0621a3"]]);
5
5
  export {
6
6
  c as default
7
7
  };
@@ -1,22 +1,22 @@
1
- import { defineComponent as m, inject as h, openBlock as p, createBlock as s, unref as e, createSlots as f, withCtx as i, createElementVNode as n, createVNode as t, toDisplayString as u, createCommentVNode as _, withModifiers as v } from "vue";
2
- import { ScalarIcon as y, ScalarIconButton as C, ScalarMarkdown as S } from "@scalar/components";
3
- import b from "./EndpointDetailsCard.vue.js";
4
- import k from "./EndpointPath.vue.js";
5
- import E from "./TestRequestButton.vue.js";
1
+ import { defineComponent as m, inject as h, openBlock as p, createBlock as s, unref as e, createSlots as f, withCtx as i, createElementVNode as t, createVNode as n, toDisplayString as u, createCommentVNode as _, withModifiers as v } from "vue";
2
+ import { ScalarIcon as y, ScalarIconButton as C, ScalarMarkdown as E } from "@scalar/components";
3
+ import S from "./EndpointDetailsCard.vue.js";
4
+ import b from "./EndpointPath.vue.js";
5
+ import k from "./TestRequestButton.vue.js";
6
6
  import T from "../../Section/SectionAccordion.vue.js";
7
7
  import B from "../../HttpMethod/HttpMethod.vue.js";
8
8
  import w from "../../Anchor/Anchor.vue.js";
9
- import I from "./PathResponses/PathResponses.vue.js";
9
+ import I from "../../../features/ExampleResponses/ExampleResponses.vue.js";
10
10
  import N from "../../../features/ExampleRequest/ExampleRequest.vue.js";
11
11
  import { useClipboard as R } from "../../../hooks/useClipboard.js";
12
12
  import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as V } from "../../../helpers/provideSymbols.js";
13
- const g = { class: "endpoint-header" }, A = { class: "endpoint-details" }, D = { class: "endpoint-label" }, M = { class: "endpoint-label-path" }, O = { class: "endpoint-label-name" }, P = { class: "endpoint-content" }, X = /* @__PURE__ */ m({
13
+ const g = { class: "endpoint-header" }, A = { class: "endpoint-details" }, D = { class: "endpoint-label" }, M = { class: "endpoint-label-path" }, O = { class: "endpoint-label-name" }, U = { class: "endpoint-content" }, X = /* @__PURE__ */ m({
14
14
  __name: "OperationAccordion",
15
15
  props: {
16
16
  id: {},
17
17
  operation: {}
18
18
  },
19
- setup(U) {
19
+ setup(L) {
20
20
  const { copyToClipboard: c } = R(), r = h(V);
21
21
  return console.log(!(r != null && r())), (o, d) => (p(), s(e(T), {
22
22
  id: o.id,
@@ -24,28 +24,28 @@ const g = { class: "endpoint-header" }, A = { class: "endpoint-details" }, D = {
24
24
  transparent: ""
25
25
  }, f({
26
26
  title: i(() => [
27
- n("h3", g, [
28
- n("div", A, [
29
- t(e(B), {
27
+ t("h3", g, [
28
+ t("div", A, [
29
+ n(e(B), {
30
30
  class: "endpoint-type",
31
31
  method: o.operation.httpVerb,
32
32
  short: ""
33
33
  }, null, 8, ["method"]),
34
- t(e(w), {
34
+ n(e(w), {
35
35
  id: o.id ?? "",
36
36
  class: "endpoint-anchor"
37
37
  }, {
38
38
  default: i(() => {
39
39
  var a;
40
40
  return [
41
- n("div", D, [
42
- n("div", M, [
43
- t(k, {
41
+ t("div", D, [
42
+ t("div", M, [
43
+ n(b, {
44
44
  deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
45
45
  path: o.operation.path
46
46
  }, null, 8, ["deprecated", "path"])
47
47
  ]),
48
- n("div", O, u(o.operation.name), 1)
48
+ t("div", O, u(o.operation.name), 1)
49
49
  ])
50
50
  ];
51
51
  }),
@@ -57,7 +57,7 @@ const g = { class: "endpoint-header" }, A = { class: "endpoint-details" }, D = {
57
57
  actions: i(({ active: a }) => {
58
58
  var l;
59
59
  return [
60
- a ? (p(), s(E, {
60
+ a ? (p(), s(k, {
61
61
  key: 0,
62
62
  operation: o.operation
63
63
  }, null, 8, ["operation"])) : (l = e(r)) != null && l() ? _("", !0) : (p(), s(e(y), {
@@ -66,21 +66,21 @@ const g = { class: "endpoint-header" }, A = { class: "endpoint-details" }, D = {
66
66
  icon: "Play",
67
67
  thickness: "1.75px"
68
68
  })),
69
- t(e(C), {
69
+ n(e(C), {
70
70
  class: "endpoint-copy",
71
71
  icon: "Clipboard",
72
72
  label: "Copy endpoint URL",
73
73
  size: "xs",
74
74
  variant: "ghost",
75
- onClick: d[0] || (d[0] = v((L) => e(c)(o.operation.path), ["stop"]))
75
+ onClick: d[0] || (d[0] = v((P) => e(c)(o.operation.path), ["stop"]))
76
76
  })
77
77
  ];
78
78
  }),
79
79
  default: i(() => [
80
- n("div", P, [
81
- t(b, { operation: o.operation }, null, 8, ["operation"]),
82
- t(e(I), { operation: o.operation }, null, 8, ["operation"]),
83
- t(e(N), { operation: o.operation }, null, 8, ["operation"])
80
+ t("div", U, [
81
+ n(S, { operation: o.operation }, null, 8, ["operation"]),
82
+ n(e(I), { operation: o.operation }, null, 8, ["operation"]),
83
+ n(e(N), { operation: o.operation }, null, 8, ["operation"])
84
84
  ])
85
85
  ]),
86
86
  _: 2
@@ -88,7 +88,7 @@ const g = { class: "endpoint-header" }, A = { class: "endpoint-details" }, D = {
88
88
  o.operation.description ? {
89
89
  name: "description",
90
90
  fn: i(() => [
91
- t(e(S), {
91
+ n(e(E), {
92
92
  value: o.operation.description,
93
93
  withImages: ""
94
94
  }, null, 8, ["value"])
@@ -0,0 +1,21 @@
1
+ import type { OpenAPI } from '@scalar/openapi-types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ headers: {
4
+ [key: string]: OpenAPI.HeaderObject;
5
+ };
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
+ headers: {
8
+ [key: string]: OpenAPI.HeaderObject;
9
+ };
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToOption<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ //# sourceMappingURL=ParameterHeaders.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParameterHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterHeaders.vue"],"names":[],"mappings":"AA4HA,OAAO,KAAK,EAAE,OAAO,EAA0B,MAAM,uBAAuB,CAAA;;aAOjE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;KAAE;;aAAvC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;KAAE;;AA8JlD,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"}
@@ -0,0 +1,7 @@
1
+ import e from "./ParameterHeaders.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(e, [["__scopeId", "data-v-eecfdd25"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as f, openBlock as e, createBlock as m, unref as a, withCtx as c, createElementVNode as p, normalizeClass as o, createVNode as d, createElementBlock as l, Fragment as n, createTextVNode as u, renderList as _ } from "vue";
2
+ import { Disclosure as v, DisclosureButton as k, DisclosurePanel as B } from "@headlessui/vue";
3
+ import { ScalarIcon as H } from "@scalar/components";
4
+ import S from "../Schema/SchemaProperty.vue.js";
5
+ const V = /* @__PURE__ */ f({
6
+ __name: "ParameterHeaders",
7
+ props: {
8
+ headers: {}
9
+ },
10
+ setup(x) {
11
+ function h(t) {
12
+ return t.schema !== void 0;
13
+ }
14
+ return (t, y) => (e(), m(a(v), null, {
15
+ default: c(({ open: r }) => [
16
+ p("div", {
17
+ class: o(["headers-card headers-card--compact", [{ "headers-card--open": r }]])
18
+ }, [
19
+ p("div", {
20
+ class: o(["headers-properties", { "headers-properties-open": r }])
21
+ }, [
22
+ d(a(k), {
23
+ class: "headers-card-title headers-card-title--compact",
24
+ style: {
25
+ top: "calc(var(--refs-header-height)))"
26
+ }
27
+ }, {
28
+ default: c(() => [
29
+ d(a(H), {
30
+ class: o(["headers-card-title-icon", { "headers-card-title-icon--open": r }]),
31
+ icon: "Add",
32
+ thickness: "3"
33
+ }, null, 8, ["class"]),
34
+ r ? (e(), l(n, { key: 0 }, [
35
+ u(" Hide Headers ")
36
+ ], 64)) : (e(), l(n, { key: 1 }, [
37
+ u(" Show Headers ")
38
+ ], 64))
39
+ ]),
40
+ _: 2
41
+ }, 1024),
42
+ d(a(B), null, {
43
+ default: c(() => [
44
+ (e(!0), l(n, null, _(t.headers, (s, i) => (e(), m(S, {
45
+ key: i,
46
+ description: s.description,
47
+ name: `${i}`,
48
+ value: h(s) ? s.schema : void 0
49
+ }, null, 8, ["description", "name", "value"]))), 128))
50
+ ]),
51
+ _: 1
52
+ })
53
+ ], 2)
54
+ ], 2)
55
+ ]),
56
+ _: 1
57
+ }));
58
+ }
59
+ });
60
+ export {
61
+ V as default
62
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"AAqLA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,sBAAsB,CAAA;;eASpD,UAAU;mBACN,OAAO;uBACH,OAAO;;;;;eAFf,UAAU;mBACN,OAAO;uBACH,OAAO;;;;;kBADX,OAAO;sBACH,OAAO;;AAoM9B,wBAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"AAyLA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,sBAAsB,CAAA;;eAUpD,UAAU;mBACN,OAAO;uBACH,OAAO;;;;;eAFf,UAAU;mBACN,OAAO;uBACH,OAAO;;;;;kBADX,OAAO;sBACH,OAAO;;AA+M9B,wBAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./ParameterItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-41582b48"]]);
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f4d4e7c0"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1,30 +1,31 @@
1
- import { defineComponent as B, ref as u, computed as d, openBlock as l, createElementBlock as s, normalizeClass as g, createVNode as v, unref as f, createElementVNode as y, toDisplayString as h, createBlock as b, createCommentVNode as m } from "vue";
1
+ import { defineComponent as g, ref as u, computed as d, openBlock as n, createElementBlock as m, normalizeClass as b, createVNode as v, unref as f, createElementVNode as h, toDisplayString as y, createBlock as C, createCommentVNode as s } from "vue";
2
2
  import { ScalarIcon as q } from "@scalar/components";
3
3
  import w from "./ContentTypeSelect.vue.js";
4
- import I from "../Schema/SchemaProperty.vue.js";
5
- const S = { class: "parameter-item" }, V = { class: "parameter-item-name" }, T = { class: "parameter-item-type" }, j = {
4
+ import I from "./ParameterHeaders.vue.js";
5
+ import S from "../Schema/SchemaProperty.vue.js";
6
+ const V = { class: "parameter-item" }, T = { class: "parameter-item-name" }, j = { class: "parameter-item-type" }, N = {
6
7
  key: 1,
7
8
  class: "parameter-item-container parameter-item-container-markdown"
8
- }, P = /* @__PURE__ */ B({
9
+ }, O = /* @__PURE__ */ g({
9
10
  __name: "ParameterItem",
10
11
  props: {
11
12
  parameter: {},
12
13
  showChildren: { type: Boolean, default: !1 },
13
14
  collapsableItems: { type: Boolean, default: !1 }
14
15
  },
15
- setup(C) {
16
- const t = C, r = u(!1), k = d(() => t.parameter.content ? Object.keys(t.parameter.content) : []), n = u(
17
- k.value[0]
16
+ setup(k) {
17
+ const a = k, r = u(!1), B = d(() => a.parameter.content ? Object.keys(a.parameter.content) : []), o = u(
18
+ B.value[0]
18
19
  );
19
- t.parameter.content && "application/json" in t.parameter.content && (n.value = "application/json");
20
- const a = d(() => t.collapsableItems && t.parameter.content);
21
- return (e, o) => {
20
+ a.parameter.content && "application/json" in a.parameter.content && (o.value = "application/json");
21
+ const t = d(() => a.collapsableItems && a.parameter.content);
22
+ return (e, l) => {
22
23
  var p, i;
23
- return l(), s("li", S, [
24
- a.value ? (l(), s("div", {
24
+ return n(), m("li", V, [
25
+ t.value ? (n(), m("div", {
25
26
  key: 0,
26
- class: g(["flex parameter-item-trigger", { "parameter-item-trigger-open": r.value }]),
27
- onClick: o[1] || (o[1] = (c) => r.value = !r.value)
27
+ class: b(["flex parameter-item-trigger", { "parameter-item-trigger-open": r.value }]),
28
+ onClick: l[1] || (l[1] = (c) => r.value = !r.value)
28
29
  }, [
29
30
  v(f(q), {
30
31
  class: "parameter-item-icon",
@@ -32,31 +33,34 @@ const S = { class: "parameter-item" }, V = { class: "parameter-item-name" }, T =
32
33
  size: "md",
33
34
  thickness: "1.75"
34
35
  }, null, 8, ["icon"]),
35
- y("span", V, h(e.parameter.name), 1),
36
- y("span", T, h(e.parameter.description), 1),
37
- a.value && t.parameter.content ? (l(), b(w, {
36
+ h("span", T, y(e.parameter.name), 1),
37
+ h("span", j, y(e.parameter.description), 1),
38
+ t.value && a.parameter.content ? (n(), C(w, {
38
39
  key: 0,
39
40
  class: "parameter-item-content-type",
40
- defaultValue: n.value,
41
- requestBody: t.parameter,
42
- onSelectContentType: o[0] || (o[0] = ({ contentType: c }) => n.value = c)
43
- }, null, 8, ["defaultValue", "requestBody"])) : m("", !0)
44
- ], 2)) : m("", !0),
45
- a.value && r.value || !a.value ? (l(), s("div", j, [
46
- v(f(I), {
41
+ defaultValue: o.value,
42
+ requestBody: a.parameter,
43
+ onSelectContentType: l[0] || (l[0] = ({ contentType: c }) => o.value = c)
44
+ }, null, 8, ["defaultValue", "requestBody"])) : s("", !0)
45
+ ], 2)) : s("", !0),
46
+ t.value && r.value || !t.value ? (n(), m("div", N, [
47
+ e.parameter.headers ? (n(), C(I, {
48
+ key: 0,
49
+ headers: e.parameter.headers
50
+ }, null, 8, ["headers"])) : s("", !0),
51
+ v(f(S), {
47
52
  compact: "",
48
- description: a.value ? "" : e.parameter.description,
49
- level: 0,
50
- name: a.value ? "" : e.parameter.name,
53
+ description: t.value ? "" : e.parameter.description,
54
+ name: t.value ? "" : e.parameter.name,
51
55
  noncollapsible: e.showChildren,
52
56
  required: e.parameter.required,
53
- value: e.parameter.content ? (i = (p = e.parameter.content) == null ? void 0 : p[n.value]) == null ? void 0 : i.schema : e.parameter.schema
57
+ value: e.parameter.content ? (i = (p = e.parameter.content) == null ? void 0 : p[o.value]) == null ? void 0 : i.schema : e.parameter.schema
54
58
  }, null, 8, ["description", "name", "noncollapsible", "required", "value"])
55
- ])) : m("", !0)
59
+ ])) : s("", !0)
56
60
  ]);
57
61
  };
58
62
  }
59
63
  });
60
64
  export {
61
- P as default
65
+ O as default
62
66
  };
@@ -1 +1 @@
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
+ {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;;SAgBxC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;SAAvC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;AA+QpE,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 s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1d49b784"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fe316e67"]]);
5
5
  export {
6
- s as default
6
+ f as default
7
7
  };
@@ -3,7 +3,7 @@ import { ScalarMarkdown as B } from "@scalar/components";
3
3
  import E from "../../Section/Section.vue.js";
4
4
  import I from "../../Section/SectionContent.vue.js";
5
5
  import w from "../../Section/SectionColumns.vue.js";
6
- import C from "../../Section/SectionColumn.vue.js";
6
+ import g 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";
@@ -19,8 +19,8 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
19
19
  tag: {},
20
20
  isCollapsed: { type: Boolean }
21
21
  },
22
- setup(g) {
23
- const _ = g, { getOperationId: n, getTagId: h } = F(), { scrollToOperation: k } = D(), S = async (t) => {
22
+ setup(C) {
23
+ const _ = C, { getOperationId: n, getTagId: h } = F(), { scrollToOperation: k } = D(), S = async (t) => {
24
24
  const s = n(t, _.tag);
25
25
  k(s);
26
26
  };
@@ -33,7 +33,7 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
33
33
  default: o(() => [
34
34
  a(e(w), null, {
35
35
  default: o(() => [
36
- a(e(C), null, {
36
+ a(e(g), null, {
37
37
  default: o(() => [
38
38
  a(e(H), { level: 2 }, {
39
39
  default: o(() => [
@@ -49,14 +49,14 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
49
49
  _: 1
50
50
  }),
51
51
  a(e(B), {
52
- isCollapsed: t.isCollapsed,
52
+ clamp: t.isCollapsed ? "7" : !1,
53
53
  value: t.tag.description,
54
54
  withImages: ""
55
- }, null, 8, ["isCollapsed", "value"])
55
+ }, null, 8, ["clamp", "value"])
56
56
  ]),
57
57
  _: 1
58
58
  }),
59
- a(e(C), null, {
59
+ a(e(g), null, {
60
60
  default: o(() => {
61
61
  var d;
62
62
  return [
@@ -88,7 +88,9 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
88
88
  method: r.httpVerb
89
89
  }, null, 8, ["method"]),
90
90
  u("span", {
91
- class: V({ deprecated: (i = r.information) == null ? void 0 : i.deprecated })
91
+ class: V({
92
+ deprecated: (i = r.information) == null ? void 0 : i.deprecated
93
+ })
92
94
  }, c(r.path), 3)
93
95
  ], 8, M);
94
96
  }), 128))
@@ -1,7 +1,7 @@
1
1
  import o from "./Tag.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-f1a48b5a"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f9c3c8a1"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -29,7 +29,7 @@ const D = /* @__PURE__ */ f({
29
29
  m.value ? (r(), i(S, {
30
30
  key: 0,
31
31
  id: e.id,
32
- isCollapsed: o(s)[o(l)(e.tag)],
32
+ isCollapsed: !o(s)[o(l)(e.tag)],
33
33
  tag: e.tag
34
34
  }, null, 8, ["id", "isCollapsed", "tag"])) : C("", !0),
35
35
  !o(s)[o(l)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (r(), i(k, {
@@ -1,9 +1,9 @@
1
- import type { OpenClientPayload } from '@scalar/api-client/libs';
2
- import type { AuthenticationState, SpecConfiguration } from '@scalar/types/legacy';
1
+ import type { ApiClient, OpenClientPayload } from '@scalar/api-client/libs';
2
+ import type { SpecConfiguration } from '@scalar/types/legacy';
3
3
  import type { RequireAtLeastOne } from 'type-fest';
4
4
  type ApiClientEvents = RequireAtLeastOne<{
5
5
  open?: OpenClientPayload;
6
- updateAuth?: AuthenticationState;
6
+ updateAuth?: Parameters<ApiClient['updateAuth']>[0];
7
7
  updateSpec?: SpecConfiguration;
8
8
  }>;
9
9
  /**