@scalar/api-reference 1.25.127 → 1.25.130

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 (128) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/dist/browser/standalone.js +13272 -13158
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +40 -64
  6. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +158 -159
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +69 -17
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +5 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +73 -94
  17. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +16 -0
  18. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -0
  19. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +36 -0
  20. package/dist/components/Content/Lazy/Loading.vue.js +15 -15
  21. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  23. package/dist/components/Content/Schema/Schema.vue2.js +4 -1
  24. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  25. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  27. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  29. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +143 -124
  30. package/dist/components/Content/Tag/{Endpoints.vue.d.ts → OperationsList.vue.d.ts} +1 -3
  31. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -0
  32. package/dist/components/Content/Tag/OperationsList.vue.js +7 -0
  33. package/dist/components/Content/Tag/OperationsList.vue2.js +62 -0
  34. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +9 -0
  35. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -0
  36. package/dist/components/Content/Tag/OperationsListItem.vue.js +7 -0
  37. package/dist/components/Content/Tag/OperationsListItem.vue2.js +66 -0
  38. package/dist/components/Content/Tag/Tag.vue.d.ts +4 -64
  39. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Tag/Tag.vue.js +87 -5
  41. package/dist/components/Content/Tag/Tag.vue2.js +2 -63
  42. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/TagList.vue.js +11 -11
  44. package/dist/components/Content/Tag/TagSection.vue.d.ts +70 -0
  45. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -0
  46. package/dist/components/Content/Tag/TagSection.vue.js +7 -0
  47. package/dist/components/Content/Tag/TagSection.vue2.js +65 -0
  48. package/dist/components/Content/Tag/index.d.ts +1 -2
  49. package/dist/components/Content/Tag/index.d.ts.map +1 -1
  50. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  51. package/dist/components/GettingStarted.vue.js +1 -1
  52. package/dist/components/GettingStarted.vue2.js +13 -13
  53. package/dist/components/Layouts/ClassicLayout.vue.d.ts +3 -3
  54. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  55. package/dist/components/Layouts/Layouts.vue.d.ts +3 -3
  56. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  57. package/dist/components/Layouts/ModernLayout.vue.d.ts +3 -3
  58. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  59. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  60. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  61. package/dist/components/Section/CompactSection.vue.js +2 -2
  62. package/dist/components/Section/CompactSection.vue2.js +30 -29
  63. package/dist/esm.d.ts +5 -3
  64. package/dist/esm.d.ts.map +1 -1
  65. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
  66. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  67. package/dist/features/ApiClientModal/useApiClient.d.ts +386 -346
  68. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  69. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  70. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  71. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +82 -74
  72. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
  73. package/dist/features/ExampleResponses/ExampleResponse.vue.js +2 -2
  74. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +11 -11
  75. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  76. package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
  77. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +90 -78
  78. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +1 -1
  79. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  80. package/dist/features/Operation/components/ContentTypeSelect.vue.js +1 -1
  81. package/dist/features/Operation/components/ContentTypeSelect.vue2.js +29 -25
  82. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  83. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  84. package/dist/features/Operation/components/ParameterListItem.vue2.js +40 -47
  85. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  86. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  87. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  89. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -54
  90. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  92. package/dist/features/Operation/layouts/ModernLayout.vue2.js +65 -67
  93. package/dist/helpers/get-request.d.ts +2 -1
  94. package/dist/helpers/get-request.d.ts.map +1 -1
  95. package/dist/helpers/index.d.ts +0 -1
  96. package/dist/helpers/index.d.ts.map +1 -1
  97. package/dist/hooks/index.d.ts +0 -1
  98. package/dist/hooks/index.d.ts.map +1 -1
  99. package/dist/hooks/useConfig.d.ts +3 -3
  100. package/dist/hooks/useConfig.d.ts.map +1 -1
  101. package/dist/hooks/useConfig.js +5 -4
  102. package/dist/hooks/useReactiveSpec.d.ts +8 -8
  103. package/dist/hooks/useSidebar.d.ts.map +1 -1
  104. package/dist/hooks/useSidebar.js +126 -116
  105. package/dist/index.js +56 -62
  106. package/dist/libs/operation.d.ts +15 -0
  107. package/dist/libs/operation.d.ts.map +1 -0
  108. package/dist/libs/operation.js +16 -0
  109. package/dist/standalone/lib/html-api.d.ts +3 -3
  110. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  111. package/dist/stores/useHttpClientStore.d.ts +1 -1
  112. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  113. package/dist/style.css +1 -1
  114. package/dist/types.d.ts +20 -3
  115. package/dist/types.d.ts.map +1 -1
  116. package/package.json +13 -13
  117. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +0 -1
  118. package/dist/components/Content/Tag/Endpoints.vue.js +0 -7
  119. package/dist/components/Content/Tag/Endpoints.vue2.js +0 -161
  120. package/dist/helpers/operation.d.ts +0 -14
  121. package/dist/helpers/operation.d.ts.map +0 -1
  122. package/dist/helpers/operation.js +0 -18
  123. package/dist/hooks/useDeprecationWarnings.d.ts +0 -6
  124. package/dist/hooks/useDeprecationWarnings.d.ts.map +0 -1
  125. package/dist/hooks/useDeprecationWarnings.js +0 -20
  126. package/dist/standalone/lib/html-rendering.d.ts +0 -51
  127. package/dist/standalone/lib/html-rendering.d.ts.map +0 -1
  128. package/dist/standalone/lib/html-rendering.js +0 -54
@@ -1,19 +1,19 @@
1
- import { defineComponent as v, openBlock as a, createBlock as s, unref as e, createSlots as y, withCtx as n, createElementVNode as t, createVNode as r, toDisplayString as m, normalizeClass as O, createTextVNode as _, createCommentVNode as c, withModifiers as C } from "vue";
2
- import { ScalarIcon as b, ScalarIconButton as k, ScalarMarkdown as g } from "@scalar/components";
3
- import { useClipboard as S } from "@scalar/use-hooks/useClipboard";
4
- import B from "../../../components/OperationPath.vue.js";
5
- import { useConfig as R } from "../../../hooks/useConfig.js";
6
- import w from "../components/OperationParameters.vue.js";
7
- import I from "../components/OperationResponses.vue.js";
8
- import N from "../../../components/Section/SectionAccordion.vue.js";
9
- import T from "../../../components/HttpMethod/HttpMethod.vue.js";
10
- import V from "../../../components/Anchor/Anchor.vue.js";
11
- import { isOperationDeprecated as $, getOperationStability as f, getOperationStabilityColor as q } from "../../../helpers/operation.js";
12
- import E from "../../../components/Badge/Badge.vue.js";
13
- import z from "../../TestRequestButton/TestRequestButton.vue.js";
14
- import A from "../../ExampleResponses/ExampleResponses.vue.js";
15
- import D from "../../ExampleRequest/ExampleRequest.vue.js";
16
- const L = { class: "operation-title" }, M = { class: "operation-details" }, P = { class: "endpoint-label" }, U = { class: "endpoint-label-path" }, j = { class: "endpoint-label-name" }, F = { class: "endpoint-content" }, G = { class: "operation-details-card" }, H = { class: "operation-details-card-item" }, J = { class: "operation-details-card-item" }, mo = /* @__PURE__ */ v({
1
+ import { defineComponent as C, computed as b, openBlock as a, createBlock as s, unref as e, createSlots as _, withCtx as n, createElementVNode as t, createVNode as i, toDisplayString as m, normalizeClass as k, createTextVNode as O, createCommentVNode as f, withModifiers as g } from "vue";
2
+ import { ScalarIcon as S, ScalarIconButton as B, ScalarMarkdown as R } from "@scalar/components";
3
+ import { useClipboard as w } from "@scalar/use-hooks/useClipboard";
4
+ import I from "../../../components/OperationPath.vue.js";
5
+ import { useConfig as N } from "../../../hooks/useConfig.js";
6
+ import { isOperationDeprecated as T, getOperationStability as u, getOperationStabilityColor as V } from "../../../libs/operation.js";
7
+ import $ from "../components/OperationParameters.vue.js";
8
+ import q from "../components/OperationResponses.vue.js";
9
+ import E from "../../../components/Section/SectionAccordion.vue.js";
10
+ import z from "../../../components/HttpMethod/HttpMethod.vue.js";
11
+ import A from "../../../components/Anchor/Anchor.vue.js";
12
+ import D from "../../../components/Badge/Badge.vue.js";
13
+ import L from "../../TestRequestButton/TestRequestButton.vue.js";
14
+ import M from "../../ExampleResponses/ExampleResponses.vue.js";
15
+ import P from "../../ExampleRequest/ExampleRequest.vue.js";
16
+ const U = { class: "operation-title" }, j = { class: "operation-details" }, F = { class: "endpoint-label" }, G = { class: "endpoint-label-path" }, H = { class: "endpoint-label-name" }, J = { class: "endpoint-content" }, K = { class: "operation-details-card" }, Q = { class: "operation-details-card-item" }, W = { class: "operation-details-card-item" }, fo = /* @__PURE__ */ C({
17
17
  __name: "ClassicLayout",
18
18
  props: {
19
19
  id: {},
@@ -22,45 +22,45 @@ const L = { class: "operation-title" }, M = { class: "operation-details" }, P =
22
22
  operation: {},
23
23
  transformedOperation: {}
24
24
  },
25
- setup(K) {
26
- const { copyToClipboard: u } = S(), h = R();
27
- return (o, p) => {
28
- var l;
29
- return a(), s(e(N), {
25
+ setup(p) {
26
+ const { copyToClipboard: h } = w(), v = N(), y = b(() => p.operation.summary || p.operation.path);
27
+ return (o, l) => {
28
+ var d;
29
+ return a(), s(e(E), {
30
30
  id: o.id,
31
31
  class: "reference-endpoint",
32
32
  transparent: ""
33
- }, y({
33
+ }, _({
34
34
  title: n(() => [
35
- t("div", L, [
36
- t("div", M, [
37
- r(e(T), {
35
+ t("div", U, [
36
+ t("div", j, [
37
+ i(e(z), {
38
38
  class: "endpoint-type",
39
39
  method: o.operation.method,
40
40
  short: ""
41
41
  }, null, 8, ["method"]),
42
- r(e(V), {
42
+ i(e(A), {
43
43
  id: o.id ?? "",
44
44
  class: "endpoint-anchor"
45
45
  }, {
46
46
  default: n(() => [
47
- t("h3", P, [
48
- t("div", U, [
49
- r(B, {
50
- deprecated: e($)(o.transformedOperation),
47
+ t("h3", F, [
48
+ t("div", G, [
49
+ i(I, {
50
+ deprecated: e(T)(o.operation),
51
51
  path: o.operation.path
52
52
  }, null, 8, ["deprecated", "path"])
53
53
  ]),
54
- t("div", j, m(o.transformedOperation.name), 1),
55
- e(f)(o.transformedOperation) ? (a(), s(e(E), {
54
+ t("div", H, m(y.value), 1),
55
+ e(u)(o.operation) ? (a(), s(e(D), {
56
56
  key: 0,
57
- class: O(e(q)(o.transformedOperation))
57
+ class: k(e(V)(o.operation))
58
58
  }, {
59
59
  default: n(() => [
60
- _(m(e(f)(o.transformedOperation)), 1)
60
+ O(m(e(u)(o.operation)), 1)
61
61
  ]),
62
62
  _: 1
63
- }, 8, ["class"])) : c("", !0)
63
+ }, 8, ["class"])) : f("", !0)
64
64
  ])
65
65
  ]),
66
66
  _: 1
@@ -68,45 +68,45 @@ const L = { class: "operation-title" }, M = { class: "operation-details" }, P =
68
68
  ])
69
69
  ])
70
70
  ]),
71
- actions: n(({ active: i }) => {
72
- var d;
71
+ actions: n(({ active: r }) => {
72
+ var c;
73
73
  return [
74
- i ? (a(), s(e(z), {
74
+ r ? (a(), s(e(L), {
75
75
  key: 0,
76
76
  operation: o.operation
77
- }, null, 8, ["operation"])) : (d = e(h)) != null && d.hideTestRequestButton ? c("", !0) : (a(), s(e(b), {
77
+ }, null, 8, ["operation"])) : (c = e(v)) != null && c.hideTestRequestButton ? f("", !0) : (a(), s(e(S), {
78
78
  key: 1,
79
79
  class: "endpoint-try-hint",
80
80
  icon: "Play",
81
81
  thickness: "1.75px"
82
82
  })),
83
- r(e(k), {
83
+ i(e(B), {
84
84
  class: "endpoint-copy",
85
85
  icon: "Clipboard",
86
86
  label: "Copy endpoint URL",
87
87
  size: "xs",
88
88
  variant: "ghost",
89
- onClick: p[0] || (p[0] = C((Q) => e(u)(o.operation.path), ["stop"]))
89
+ onClick: l[0] || (l[0] = g((X) => e(h)(o.operation.path), ["stop"]))
90
90
  })
91
91
  ];
92
92
  }),
93
93
  default: n(() => [
94
- t("div", F, [
95
- t("div", G, [
96
- t("div", H, [
97
- r(w, { operation: o.operation }, null, 8, ["operation"])
94
+ t("div", J, [
95
+ t("div", K, [
96
+ t("div", Q, [
97
+ i($, { operation: o.operation }, null, 8, ["operation"])
98
98
  ]),
99
- t("div", J, [
100
- r(I, {
99
+ t("div", W, [
100
+ i(q, {
101
101
  collapsableItems: !1,
102
102
  operation: o.transformedOperation
103
103
  }, null, 8, ["operation"])
104
104
  ])
105
105
  ]),
106
- r(e(A), {
106
+ i(e(M), {
107
107
  responses: o.operation.responses
108
108
  }, null, 8, ["responses"]),
109
- r(e(D), {
109
+ i(e(P), {
110
110
  collection: o.collection,
111
111
  operation: o.operation,
112
112
  server: o.server,
@@ -116,13 +116,13 @@ const L = { class: "operation-title" }, M = { class: "operation-details" }, P =
116
116
  ]),
117
117
  _: 2
118
118
  }, [
119
- (l = o.operation) != null && l.description ? {
119
+ (d = o.operation) != null && d.description ? {
120
120
  name: "description",
121
121
  fn: n(() => {
122
- var i;
122
+ var r;
123
123
  return [
124
- r(e(g), {
125
- value: (i = o.operation) == null ? void 0 : i.description,
124
+ i(e(R), {
125
+ value: (r = o.operation) == null ? void 0 : r.description,
126
126
  withImages: ""
127
127
  }, null, 8, ["value"])
128
128
  ];
@@ -134,5 +134,5 @@ const L = { class: "operation-title" }, M = { class: "operation-details" }, P =
134
134
  }
135
135
  });
136
136
  export {
137
- mo as default
137
+ fo as default
138
138
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AA4BhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,CAAC;;AAsOF,wBAOG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AA4BhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,CAAC;;AAyOF,wBAOG"}
@@ -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-135b2d14"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-00a4c91b"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,21 +1,21 @@
1
- import { defineComponent as O, useId as h, openBlock as l, createBlock as p, unref as e, withCtx as a, createVNode as r, normalizeClass as s, createTextVNode as m, toDisplayString as d, createCommentVNode as S, createElementVNode as t } from "vue";
2
- import { ScalarMarkdown as b, ScalarErrorBoundary as f } from "@scalar/components";
3
- import v from "../../../components/OperationPath.vue.js";
4
- import { getOperationStability as u, getOperationStabilityColor as y, isOperationDeprecated as _ } from "../../../helpers/operation.js";
5
- import C from "../components/OperationParameters.vue.js";
6
- import g from "../components/OperationResponses.vue.js";
7
- import k from "../../../components/Section/Section.vue.js";
8
- import B from "../../../components/Section/SectionContent.vue.js";
9
- import E from "../../../components/Badge/Badge.vue.js";
10
- import N from "../../../components/Section/SectionHeader.vue.js";
11
- import V from "../../../components/Anchor/Anchor.vue.js";
12
- import w from "../../../components/Section/SectionHeaderTag.vue.js";
13
- import I from "../../../components/Section/SectionColumns.vue.js";
14
- import c from "../../../components/Section/SectionColumn.vue.js";
15
- import R from "../../ExampleRequest/ExampleRequest.vue.js";
16
- import T from "../../TestRequestButton/TestRequestButton.vue.js";
17
- import q from "../../ExampleResponses/ExampleResponses.vue.js";
18
- const D = { class: "operation-details" }, H = { class: "examples" }, oe = /* @__PURE__ */ O({
1
+ import { defineComponent as O, useId as S, computed as b, openBlock as m, createBlock as s, unref as e, withCtx as t, createVNode as r, normalizeClass as d, createTextVNode as f, toDisplayString as u, createCommentVNode as y, createElementVNode as a } from "vue";
2
+ import { ScalarMarkdown as C, ScalarErrorBoundary as c } from "@scalar/components";
3
+ import g from "../../../components/OperationPath.vue.js";
4
+ import { getOperationStability as h, getOperationStabilityColor as _, isOperationDeprecated as k } from "../../../libs/operation.js";
5
+ import B from "../components/OperationParameters.vue.js";
6
+ import E from "../components/OperationResponses.vue.js";
7
+ import N from "../../../components/Section/Section.vue.js";
8
+ import V from "../../../components/Section/SectionContent.vue.js";
9
+ import w from "../../../components/Badge/Badge.vue.js";
10
+ import I from "../../../components/Section/SectionHeader.vue.js";
11
+ import R from "../../../components/Anchor/Anchor.vue.js";
12
+ import T from "../../../components/Section/SectionHeaderTag.vue.js";
13
+ import q from "../../../components/Section/SectionColumns.vue.js";
14
+ import v from "../../../components/Section/SectionColumn.vue.js";
15
+ import D from "../../ExampleRequest/ExampleRequest.vue.js";
16
+ import H from "../../TestRequestButton/TestRequestButton.vue.js";
17
+ import M from "../../ExampleResponses/ExampleResponses.vue.js";
18
+ const $ = { class: "operation-details" }, z = { class: "examples" }, te = /* @__PURE__ */ O({
19
19
  __name: "ModernLayout",
20
20
  props: {
21
21
  id: {},
@@ -24,42 +24,40 @@ const D = { class: "operation-details" }, H = { class: "examples" }, oe = /* @__
24
24
  operation: {},
25
25
  transformedOperation: {}
26
26
  },
27
- setup(M) {
28
- const n = h();
29
- return (o, $) => (l(), p(e(k), {
27
+ setup(n) {
28
+ const i = S(), l = b(() => n.operation.summary || n.operation.path);
29
+ return (o, A) => (m(), s(e(N), {
30
30
  id: o.id,
31
- "aria-labelledby": e(n),
32
- label: o.transformedOperation.name
31
+ "aria-labelledby": e(i),
32
+ label: l.value
33
33
  }, {
34
- default: a(() => [
35
- r(e(B), null, {
36
- default: a(() => [
37
- e(u)(o.transformedOperation) ? (l(), p(e(E), {
34
+ default: t(() => [
35
+ r(e(V), null, {
36
+ default: t(() => [
37
+ e(h)(o.operation) ? (m(), s(e(w), {
38
38
  key: 0,
39
- class: s(e(y)(o.transformedOperation))
39
+ class: d(e(_)(o.operation))
40
40
  }, {
41
- default: a(() => [
42
- m(d(e(u)(o.transformedOperation)), 1)
41
+ default: t(() => [
42
+ f(u(e(h)(o.operation)), 1)
43
43
  ]),
44
44
  _: 1
45
- }, 8, ["class"])) : S("", !0),
46
- t("div", {
47
- class: s(
48
- e(_)(o.transformedOperation) ? "deprecated" : ""
49
- )
45
+ }, 8, ["class"])) : y("", !0),
46
+ a("div", {
47
+ class: d(e(k)(o.operation) ? "deprecated" : "")
50
48
  }, [
51
- r(e(N), null, {
52
- default: a(() => [
53
- r(e(V), {
49
+ r(e(I), null, {
50
+ default: t(() => [
51
+ r(e(R), {
54
52
  id: o.id ?? ""
55
53
  }, {
56
- default: a(() => [
57
- r(e(w), {
58
- id: e(n),
54
+ default: t(() => [
55
+ r(e(T), {
56
+ id: e(i),
59
57
  level: 3
60
58
  }, {
61
- default: a(() => [
62
- m(d(o.transformedOperation.name), 1)
59
+ default: t(() => [
60
+ f(u(l.value), 1)
63
61
  ]),
64
62
  _: 1
65
63
  }, 8, ["id"])
@@ -70,54 +68,54 @@ const D = { class: "operation-details" }, H = { class: "examples" }, oe = /* @__
70
68
  _: 1
71
69
  })
72
70
  ], 2),
73
- r(e(I), null, {
74
- default: a(() => [
75
- r(e(c), null, {
76
- default: a(() => [
77
- t("div", D, [
78
- r(e(b), {
71
+ r(e(q), null, {
72
+ default: t(() => [
73
+ r(e(v), null, {
74
+ default: t(() => [
75
+ a("div", $, [
76
+ r(e(C), {
79
77
  value: o.operation.description,
80
78
  withImages: ""
81
79
  }, null, 8, ["value"]),
82
- r(C, { operation: o.operation }, null, 8, ["operation"]),
83
- r(g, { operation: o.transformedOperation }, null, 8, ["operation"])
80
+ r(B, { operation: o.operation }, null, 8, ["operation"]),
81
+ r(E, { operation: o.transformedOperation }, null, 8, ["operation"])
84
82
  ])
85
83
  ]),
86
84
  _: 1
87
85
  }),
88
- r(e(c), null, {
89
- default: a(() => [
90
- t("div", H, [
91
- r(e(f), null, {
92
- default: a(() => [
93
- r(e(R), {
86
+ r(e(v), null, {
87
+ default: t(() => [
88
+ a("div", z, [
89
+ r(e(c), null, {
90
+ default: t(() => [
91
+ r(e(D), {
94
92
  collection: o.collection,
95
93
  fallback: "",
96
94
  operation: o.operation,
97
95
  server: o.server,
98
96
  transformedOperation: o.transformedOperation
99
97
  }, {
100
- header: a(() => {
101
- var i;
98
+ header: t(() => {
99
+ var p;
102
100
  return [
103
- r(v, {
101
+ r(g, {
104
102
  class: "example-path",
105
- deprecated: (i = o.transformedOperation.information) == null ? void 0 : i.deprecated,
103
+ deprecated: (p = o.transformedOperation.information) == null ? void 0 : p.deprecated,
106
104
  path: o.transformedOperation.path
107
105
  }, null, 8, ["deprecated", "path"])
108
106
  ];
109
107
  }),
110
- footer: a(() => [
111
- r(e(T), { operation: o.operation }, null, 8, ["operation"])
108
+ footer: t(() => [
109
+ r(e(H), { operation: o.operation }, null, 8, ["operation"])
112
110
  ]),
113
111
  _: 1
114
112
  }, 8, ["collection", "operation", "server", "transformedOperation"])
115
113
  ]),
116
114
  _: 1
117
115
  }),
118
- r(e(f), null, {
119
- default: a(() => [
120
- r(e(q), {
116
+ r(e(c), null, {
117
+ default: t(() => [
118
+ r(e(M), {
121
119
  responses: o.operation.responses,
122
120
  style: { "margin-top": "12px" }
123
121
  }, null, 8, ["responses"])
@@ -140,5 +138,5 @@ const D = { class: "operation-details" }, H = { class: "examples" }, oe = /* @__
140
138
  }
141
139
  });
142
140
  export {
143
- oe as default
141
+ te as default
144
142
  };
@@ -31,12 +31,13 @@ export declare const getRequest: (requests: WorkspaceStore["requests"], path: st
31
31
  schema?: unknown;
32
32
  content?: unknown;
33
33
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
34
- examples?: Record<string, {
34
+ examples?: unknown[] | Record<string, {
35
35
  value?: unknown;
36
36
  summary?: string | undefined;
37
37
  }> | undefined;
38
38
  }[] | undefined;
39
39
  requestBody?: any;
40
40
  responses?: Record<string, any> | undefined;
41
+ 'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
41
42
  } | undefined;
42
43
  //# sourceMappingURL=get-request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-request.d.ts","sourceRoot":"","sources":["../../src/helpers/get-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,UAAU,aAAc,cAAc,CAAC,UAAU,CAAC,QAAQ,MAAM,UAAU,MAAM;;;yBAEw/T,KAAK;kDAA4E,KAAK,8CAA8C,KAAK;wCAA6E,KAAK;8BAA6D,KAAK;+BAAyD,KAAK;;;;;;mBAAwR,CAAC;;;;;;;;;;;;;eAA0f,CAAC;mBAAkC,CAAC;cAAwC,CAAC;eAA8B,CAAC;aAA4B,CAAC;gBAA8H,CAAC;iBAAwC,CAAC;mBAAkC,CAAC;;;;;aAD96W,CAAA"}
1
+ {"version":3,"file":"get-request.d.ts","sourceRoot":"","sources":["../../src/helpers/get-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,UAAU,aAAc,cAAc,CAAC,UAAU,CAAC,QAAQ,MAAM,UAAU,MAAM;;;yBAEoyT,KAAK;kDAA4E,KAAK,8CAA8C,KAAK;wCAA6E,KAAK;8BAA6D,KAAK;+BAAyD,KAAK;;;;;;mBAAwR,CAAC;;;;;;;;;;;;;eAA0f,CAAC;mBAAkC,CAAC;cAAwC,CAAC;eAA8B,CAAC;aAA4B,CAAC;gBAA8H,CAAC;iBAAoD,CAAC;mBAAkC,CAAC;;;;;kCAAiM,eAAe;aADt7W,CAAA"}
@@ -1,6 +1,5 @@
1
1
  export * from './createEmptySpecification.js';
2
2
  export * from './deepMerge.js';
3
- export * from './operation.js';
4
3
  export * from './getHeadingsFromMarkdown.js';
5
4
  export * from './getLowestHeadingLevel.js';
6
5
  export * from './getModels.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
@@ -1,5 +1,4 @@
1
1
  export * from './useClientStore.js';
2
- export * from './useDeprecationWarnings.js';
3
2
  export * from './useNavState.js';
4
3
  export * from './useOperation.js';
5
4
  export * from './useReactiveSpec.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA"}
@@ -1,6 +1,6 @@
1
- import type { ReferenceConfiguration } from '../types';
1
+ import { type ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  import { type InjectionKey } from 'vue';
3
- export declare const CONFIGURATION_SYMBOL: InjectionKey<ReferenceConfiguration>;
3
+ export declare const CONFIGURATION_SYMBOL: InjectionKey<ApiReferenceConfiguration>;
4
4
  /** Hook for easy access to the reference configuration */
5
- export declare const useConfig: () => ReferenceConfiguration;
5
+ export declare const useConfig: () => ApiReferenceConfiguration;
6
6
  //# sourceMappingURL=useConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AACrD,OAAO,EAAE,KAAK,YAAY,EAAU,MAAM,KAAK,CAAA;AAE/C,eAAO,MAAM,oBAAoB,EAAe,YAAY,CAAC,sBAAsB,CAAC,CAAA;AAEpF,0DAA0D;AAC1D,eAAO,MAAM,SAAS,8BAGrB,CAAA"}
1
+ {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC7G,OAAO,EAAE,KAAK,YAAY,EAAU,MAAM,KAAK,CAAA;AAE/C,eAAO,MAAM,oBAAoB,EAAe,YAAY,CAAC,yBAAyB,CAAC,CAAA;AAEvF,0DAA0D;AAC1D,eAAO,MAAM,SAAS,iCAGrB,CAAA"}
@@ -1,6 +1,7 @@
1
- import { inject as o } from "vue";
2
- const n = Symbol(), i = () => o(n, {});
1
+ import { apiReferenceConfigurationSchema as o } from "@scalar/types/api-reference";
2
+ import { inject as n } from "vue";
3
+ const e = Symbol(), c = () => n(e, o.parse({}));
3
4
  export {
4
- n as CONFIGURATION_SYMBOL,
5
- i as useConfig
5
+ e as CONFIGURATION_SYMBOL,
6
+ c as useConfig
6
7
  };
@@ -38,11 +38,11 @@ export declare function useReactiveSpec({ specConfig, proxyUrl, }: {
38
38
  default?: any;
39
39
  format?: string | undefined;
40
40
  description?: string | undefined;
41
- properties?: Record<string, import("@scalar/types/legacy").Schema> | undefined;
41
+ properties?: Record<string, import("@scalar/types").Schema> | undefined;
42
42
  } | undefined;
43
43
  example?: any;
44
44
  examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
45
- content?: import("@scalar/types/legacy").RequestBodyMimeTypes | undefined;
45
+ content?: import("@scalar/types").RequestBodyMimeTypes | undefined;
46
46
  headers?: {
47
47
  [key: string]: import("@scalar/openapi-types").OpenAPI.HeaderObject;
48
48
  } | undefined;
@@ -52,7 +52,7 @@ export declare function useReactiveSpec({ specConfig, proxyUrl, }: {
52
52
  requestBody?: {
53
53
  description?: string | undefined;
54
54
  required?: boolean | undefined;
55
- content?: import("@scalar/types/legacy").RequestBodyMimeTypes | undefined;
55
+ content?: import("@scalar/types").RequestBodyMimeTypes | undefined;
56
56
  } | undefined;
57
57
  summary?: string | undefined;
58
58
  tags?: string[] | undefined;
@@ -67,7 +67,7 @@ export declare function useReactiveSpec({ specConfig, proxyUrl, }: {
67
67
  label: string;
68
68
  source: string;
69
69
  }[] | undefined;
70
- 'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
70
+ 'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
71
71
  'x-codeSamples'?: {
72
72
  lang: string;
73
73
  label: string;
@@ -101,11 +101,11 @@ export declare function useReactiveSpec({ specConfig, proxyUrl, }: {
101
101
  default?: any;
102
102
  format?: string | undefined;
103
103
  description?: string | undefined;
104
- properties?: Record<string, import("@scalar/types/legacy").Schema> | undefined;
104
+ properties?: Record<string, import("@scalar/types").Schema> | undefined;
105
105
  } | undefined;
106
106
  example?: any;
107
107
  examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
108
- content?: import("@scalar/types/legacy").RequestBodyMimeTypes | undefined;
108
+ content?: import("@scalar/types").RequestBodyMimeTypes | undefined;
109
109
  headers?: {
110
110
  [key: string]: import("@scalar/openapi-types").OpenAPI.HeaderObject;
111
111
  } | undefined;
@@ -216,8 +216,8 @@ export declare function useReactiveSpec({ specConfig, proxyUrl, }: {
216
216
  callbacks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.CallbackObject> | undefined;
217
217
  pathItems?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject> | undefined;
218
218
  } | undefined;
219
- webhooks?: import("@scalar/types/legacy").Webhooks | undefined;
220
- definitions?: import("@scalar/types/legacy").Definitions | undefined;
219
+ webhooks?: import("@scalar/types").Webhooks | undefined;
220
+ definitions?: import("@scalar/types").Definitions | undefined;
221
221
  swagger?: import("@scalar/openapi-types").OpenAPIV2.Document["swagger"];
222
222
  openapi?: import("@scalar/openapi-types").OpenAPIV3.Document["openapi"] | import("@scalar/openapi-types").OpenAPIV3_1.Document["openapi"];
223
223
  'x-tagGroups'?: {
@@ -1 +1 @@
1
- {"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAc3E,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAcD,uDAAuD;AACvD,iBAAS,aAAa,CAAC,IAAI,EAAE,IAAI,QA0ChC;AAMD,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAIpD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,MAAM,QAE9C;AAED,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,QAE3D;AAsND,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC,CAAA;IACnD,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,EAAE,oBAAoB,KAAK,MAAM,CAAC,CAAA;CACvG,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,MAAM,SAepD,CAAA;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,YAAY;;;;;;;;;;;;;qCApBrB,MAAM;EA2EpD"}
1
+ {"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAa3E,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAcD,uDAAuD;AACvD,iBAAS,aAAa,CAAC,IAAI,EAAE,IAAI,QA0ChC;AAMD,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAIpD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,MAAM,QAE9C;AAED,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,QAE3D;AAgOD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC,CAAA;IACnD,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,EAAE,oBAAoB,KAAK,MAAM,CAAC,CAAA;CACvG,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,MAAM,SAepD,CAAA;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,YAAY;;;;;;;;;;;;;qCApBrB,MAAM;EA2EpD"}