@scalar/api-reference 1.32.6 → 1.32.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/browser/standalone.js +16427 -16210
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue2.js +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +8 -8
  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 +164 -176
  10. package/dist/components/Badge/Badge.vue.js +1 -1
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +2 -2
  13. package/dist/components/Content/Content.vue2.js +20 -20
  14. package/dist/components/Content/Models/Models.vue2.js +5 -4
  15. package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
  16. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  18. package/dist/components/Content/Schema/Schema.vue2.js +99 -157
  19. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +7 -0
  20. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -0
  21. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +7 -0
  22. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +25 -0
  23. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +73 -90
  26. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +21 -0
  27. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -0
  28. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +92 -0
  29. package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +4 -0
  30. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -2
  31. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  33. package/dist/components/Content/Schema/SchemaProperty.vue2.js +54 -55
  34. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  35. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +1 -1
  36. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +0 -2
  37. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +95 -104
  40. package/dist/components/Content/Schema/helpers/{formatExample.d.ts → format-example.d.ts} +1 -1
  41. package/dist/components/Content/Schema/helpers/format-example.d.ts.map +1 -0
  42. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +3 -0
  43. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -0
  44. package/dist/components/Content/Schema/helpers/is-type-object.js +17 -0
  45. package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.d.ts → optimize-value-for-display.d.ts} +1 -1
  46. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -0
  47. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  49. package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
  50. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  51. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  52. package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
  53. package/dist/components/Content/Tag/Tag.vue.js +2 -1
  54. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  55. package/dist/components/GettingStarted.vue2.js +8 -6
  56. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  57. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  58. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  59. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  60. package/dist/components/Section/SectionAccordion.vue2.js +28 -29
  61. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  62. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  63. package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
  64. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  65. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  66. package/dist/features/Operation/Operation.vue.js +50 -49
  67. package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
  68. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  69. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  70. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  71. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  72. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  73. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  74. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  75. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  76. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  77. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  79. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
  80. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  81. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  83. package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
  84. package/dist/features/Search/SearchButton.vue.js +2 -1
  85. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  86. package/dist/features/Search/SearchModal.vue.js +2 -2
  87. package/dist/features/Search/SearchModal.vue2.js +16 -16
  88. package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
  89. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  90. package/dist/features/download-link/DownloadLink.vue2.js +4 -2
  91. package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
  92. package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
  93. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
  94. package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
  95. package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
  96. package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
  97. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
  98. package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
  99. package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
  100. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  101. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  102. package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
  103. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  104. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  105. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  106. package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
  107. package/dist/helpers/convert-security-scheme.d.ts +9 -0
  108. package/dist/helpers/convert-security-scheme.d.ts.map +1 -0
  109. package/dist/helpers/convert-security-scheme.js +23 -0
  110. package/dist/index.d.ts +0 -2
  111. package/dist/index.d.ts.map +1 -1
  112. package/dist/index.js +15 -29
  113. package/dist/style.css +1 -1
  114. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  115. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  116. package/dist/v2/ApiReferenceWorkspace.vue.js +114 -86
  117. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +6 -1
  118. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  119. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  120. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
  121. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  122. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  123. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
  124. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +3 -1
  125. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  126. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +22 -0
  127. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  128. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  129. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  130. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -1
  131. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -1
  132. package/dist/v2/events/definitions.d.ts +6 -6
  133. package/dist/v2/events/definitions.d.ts.map +1 -1
  134. package/dist/v2/events/definitions.js +7 -0
  135. package/dist/v2/events/index.d.ts +1 -1
  136. package/dist/v2/events/listeners.d.ts +1 -1
  137. package/dist/v2/hooks/useStore.d.ts +9 -0
  138. package/dist/v2/hooks/useStore.d.ts.map +1 -0
  139. package/dist/v2/hooks/useStore.js +14 -0
  140. package/package.json +24 -24
  141. package/dist/blocks/constants.js +0 -6
  142. package/dist/blocks/helpers/getPointer.js +0 -12
  143. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  144. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  145. package/dist/blocks/hooks/useBlockProps.js +0 -24
  146. package/dist/components/Card/Card.vue.d.ts +0 -18
  147. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  148. package/dist/components/Card/Card.vue.js +0 -13
  149. package/dist/components/Card/CardContent.vue.d.ts +0 -19
  150. package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
  151. package/dist/components/Card/CardContent.vue.js +0 -7
  152. package/dist/components/Card/CardContent.vue2.js +0 -27
  153. package/dist/components/Card/CardFooter.vue.d.ts +0 -19
  154. package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
  155. package/dist/components/Card/CardFooter.vue.js +0 -7
  156. package/dist/components/Card/CardFooter.vue2.js +0 -24
  157. package/dist/components/Card/CardHeader.vue.d.ts +0 -20
  158. package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
  159. package/dist/components/Card/CardHeader.vue.js +0 -7
  160. package/dist/components/Card/CardHeader.vue2.js +0 -31
  161. package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
  162. package/dist/components/Card/CardTab.vue.js +0 -7
  163. package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
  164. package/dist/components/Card/CardTabHeader.vue.js +0 -7
  165. package/dist/components/Card/index.d.ts +0 -7
  166. package/dist/components/Card/index.d.ts.map +0 -1
  167. package/dist/components/Card/types.d.ts +0 -8
  168. package/dist/components/Card/types.d.ts.map +0 -1
  169. package/dist/components/Content/Schema/helpers/formatExample.d.ts.map +0 -1
  170. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +0 -1
  171. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  172. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  173. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  174. package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
  175. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
  176. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  177. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  178. package/dist/features/example-request/ExampleRequest.vue2.js +0 -359
  179. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  180. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  181. package/dist/features/example-request/TextSelect.vue.js +0 -48
  182. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  183. package/dist/features/example-request/index.d.ts +0 -3
  184. package/dist/features/example-request/index.d.ts.map +0 -1
  185. /package/dist/components/Content/Schema/helpers/{formatExample.js → format-example.js} +0 -0
  186. /package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.js → optimize-value-for-display.js} +0 -0
@@ -1,68 +1,67 @@
1
- import { defineComponent as f, computed as c, createElementBlock as h, openBlock as r, createBlock as i, createCommentVNode as s, createElementVNode as n, unref as t, withCtx as u, createTextVNode as O, toDisplayString as l, withModifiers as y, createVNode as k, normalizeStyle as C, normalizeClass as V } from "vue";
2
- import { getHttpMethodInfo as b } from "@scalar/helpers/http/http-info";
3
- import { ScalarIconWebhooksLogo as g } from "@scalar/icons";
4
- import { isOperationDeprecated as v } from "@scalar/oas-utils/helpers";
5
- import { useSidebar as w } from "../../../features/sidebar/hooks/useSidebar.js";
6
- import S from "../../Section/SectionHeaderTag.vue.js";
1
+ import { defineComponent as c, computed as u, createElementBlock as h, openBlock as r, createBlock as a, createCommentVNode as s, createElementVNode as i, unref as t, withCtx as d, createTextVNode as O, toDisplayString as p, withModifiers as k, createVNode as y, normalizeClass as C } from "vue";
2
+ import { ScalarIconWebhooksLogo as V } from "@scalar/icons";
3
+ import { isOperationDeprecated as b } from "@scalar/oas-utils/helpers";
4
+ import { useSidebar as g } from "../../../features/sidebar/hooks/useSidebar.js";
5
+ import v from "../../Section/SectionHeaderTag.vue.js";
7
6
  import B from "../../HttpMethod/HttpMethod.vue.js";
8
- const H = ["href"], N = { class: "flex min-w-[62px] flex-row items-center justify-end gap-2" }, W = /* @__PURE__ */ f({
7
+ const N = ["href"], E = /* @__PURE__ */ c({
9
8
  __name: "OperationsListItem",
10
9
  props: {
11
10
  transformedOperation: {},
12
11
  collection: {},
13
12
  isCollapsed: { type: Boolean }
14
13
  },
15
- setup(a) {
16
- const { scrollToOperation: m } = w(), p = async (e) => {
14
+ setup(n) {
15
+ const { scrollToOperation: m } = g(), l = async (e) => {
17
16
  m(e.id, !0);
18
- }, d = c(
17
+ }, f = u(
19
18
  () => {
20
19
  var e, o;
21
- return ((e = a.transformedOperation) == null ? void 0 : e.name) || ((o = a.transformedOperation) == null ? void 0 : o.path);
20
+ return ((e = n.transformedOperation) == null ? void 0 : e.name) || ((o = n.transformedOperation) == null ? void 0 : o.path);
22
21
  }
23
22
  );
24
23
  return (e, o) => (r(), h("li", {
25
24
  key: e.transformedOperation.id,
26
25
  class: "contents"
27
26
  }, [
28
- e.isCollapsed ? (r(), i(t(S), {
27
+ e.isCollapsed ? (r(), a(t(v), {
29
28
  key: 0,
30
29
  class: "sr-only",
31
30
  level: 3
32
31
  }, {
33
- default: u(() => [
34
- O(l(d.value) + " (Hidden) ", 1)
32
+ default: d(() => [
33
+ O(p(f.value) + " (Hidden) ", 1)
35
34
  ]),
36
35
  _: 1
37
36
  })) : s("", !0),
38
- n("a", {
37
+ i("a", {
39
38
  class: "endpoint",
40
39
  href: `#${e.transformedOperation.id}`,
41
- onClick: o[0] || (o[0] = y((I) => p(e.transformedOperation), ["prevent"]))
40
+ onClick: o[0] || (o[0] = k((S) => l(e.transformedOperation), ["prevent"]))
42
41
  }, [
43
- n("div", N, [
44
- e.transformedOperation.isWebhook ? (r(), i(t(g), {
45
- key: 0,
46
- style: C({
47
- color: t(b)(e.transformedOperation.httpVerb).colorVar
48
- })
49
- }, null, 8, ["style"])) : s("", !0),
50
- k(t(B), {
51
- class: "endpoint-method min-w-0",
52
- method: e.transformedOperation.httpVerb
53
- }, null, 8, ["method"])
54
- ]),
55
- n("span", {
56
- class: V(["endpoint-path", {
57
- deprecated: t(v)(
42
+ y(t(B), {
43
+ class: "endpoint-method items-center justify-end gap-2",
44
+ method: e.transformedOperation.httpVerb
45
+ }, {
46
+ default: d(() => [
47
+ e.transformedOperation.isWebhook ? (r(), a(t(V), {
48
+ key: 0,
49
+ class: "size-3.5"
50
+ })) : s("", !0)
51
+ ]),
52
+ _: 1
53
+ }, 8, ["method"]),
54
+ i("span", {
55
+ class: C(["endpoint-path", {
56
+ deprecated: t(b)(
58
57
  e.transformedOperation.information
59
58
  )
60
59
  }])
61
- }, l(e.transformedOperation.path), 3)
62
- ], 8, H)
60
+ }, p(e.transformedOperation.path), 3)
61
+ ], 8, N)
63
62
  ]));
64
63
  }
65
64
  });
66
65
  export {
67
- W as default
66
+ E as default
68
67
  };
@@ -43,7 +43,8 @@ const P = /* @__PURE__ */ C({
43
43
  default: t(() => n[0] || (n[0] = [
44
44
  u(" (Collapsed)")
45
45
  ])),
46
- _: 1
46
+ _: 1,
47
+ __: [0]
47
48
  })) : S("", !0)
48
49
  ]),
49
50
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAiCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DwjgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C9sgB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAiCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DspgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C5ygB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as f, createElementBlock as o, openBlock as i, createElementVNode as e, createStaticVNode as r, createVNode as c, unref as l, withCtx as n, createTextVNode as d, Fragment as w, renderList as y, normalizeClass as A, toDisplayString as C } from "vue";
2
2
  import { ScalarButton as p } from "@scalar/components";
3
3
  import { themeLabels as v } from "@scalar/themes";
4
- const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ f({
4
+ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, _ = ["onClick"], P = /* @__PURE__ */ f({
5
5
  __name: "GettingStarted",
6
6
  props: {
7
7
  theme: {}
8
8
  },
9
9
  emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
10
- setup(F, { emit: g }) {
10
+ setup(E, { emit: g }) {
11
11
  const m = g, h = [
12
12
  "default",
13
13
  "alternate",
@@ -37,7 +37,8 @@ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { c
37
37
  default: n(() => a[1] || (a[1] = [
38
38
  d(" Show Example ")
39
39
  ])),
40
- _: 1
40
+ _: 1,
41
+ __: [1]
41
42
  }),
42
43
  c(l(p), {
43
44
  fullWidth: "",
@@ -47,7 +48,8 @@ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { c
47
48
  default: n(() => a[2] || (a[2] = [
48
49
  d(" Upload File ")
49
50
  ])),
50
- _: 1
51
+ _: 1,
52
+ __: [2]
51
53
  })
52
54
  ])
53
55
  ]),
@@ -58,8 +60,8 @@ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { c
58
60
  (i(), o(w, null, y(h, (t) => e("div", {
59
61
  key: t,
60
62
  class: A(["start-item", { "start-item-active": t === s.theme }]),
61
- onClick: (B) => s.$emit("changeTheme", { id: t, label: l(v)[t] })
62
- }, C(l(v)[t]), 11, E)), 64))
63
+ onClick: (F) => s.$emit("changeTheme", { id: t, label: l(v)[t] })
64
+ }, C(l(v)[t]), 11, _)), 64))
63
65
  ])
64
66
  ]),
65
67
  a[6] || (a[6] = r('<p class="start-h1" data-v-0aca3a20>Features</p><ul class="start-ul" data-v-0aca3a20><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
@@ -1,4 +1,4 @@
1
- import type { OpenAPI } from '@scalar/openapi-types';
1
+ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
2
  import { type Component } from 'vue';
3
3
  type __VLS_Props = {
4
4
  /** The type of element to render as, defaults to `span` */
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  /** Whether or not to abbreviated the slot content */
9
9
  short?: boolean;
10
10
  /** The HTTP method to show */
11
- method: OpenAPI.HttpMethod | string;
11
+ method: HttpMethod | string;
12
12
  };
13
13
  declare function __VLS_template(): {
14
14
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,KAAK,WAAW,GAAG;IACjB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IACvB,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8BAA8B;IAC9B,MAAM,EAAE,OAAO,CAAC,UAAU,GAAG,MAAM,CAAA;CACpC,CAAC;AAcF,iBAAS,cAAc;WA0CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,KAAK,WAAW,GAAG;IACjB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IACvB,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8BAA8B;IAC9B,MAAM,EAAE,UAAU,GAAG,MAAM,CAAA;CAC5B,CAAC;AAcF,iBAAS,cAAc;WA0CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AAoIA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAWF,iBAAS,cAAc;WA4HT,OAAO,IAA6B;;uBAZtB,GAAG;;;YACD,GAAG;6BACC,GAAG;yBACP,GAAG;;;;;;;;;;;;;;;;0BA1IjC,KA7EK,eA6EL,KA7EyB,uBA6EzB,KA3EA;;oBA2EA,KA1ES,eA0ET,KAzEU,uBAyEV,KAxEuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgOtB;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AA8IA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAWF,iBAAS,cAAc;WA8HT,OAAO,IAA6B;;uBAZtB,GAAG;;;YACD,GAAG;6BACC,GAAG;yBACP,GAAG;;;;;;;;;;;;;;;;0BAjJjC,KAjFyC,eAiFzC,KAhFG,uBAgFH,KA/EkB;;oBA+ElB,KA9E4C,eA8E5C,KA7Ee,uBA6Ef,KA5EK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2OJ;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SectionAccordion.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a371c135"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c13102ab"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1,59 +1,58 @@
1
- import { defineComponent as p, ref as m, createBlock as f, openBlock as c, withCtx as t, createVNode as s, unref as e, normalizeClass as _, createElementVNode as a, createElementBlock as d, createCommentVNode as l, renderSlot as n } from "vue";
1
+ import { defineComponent as p, ref as f, createBlock as _, openBlock as c, withCtx as e, createVNode as s, unref as t, normalizeClass as a, createElementVNode as d, createElementBlock as l, createCommentVNode as u, renderSlot as n } from "vue";
2
2
  import { Disclosure as v, DisclosureButton as h, DisclosurePanel as $ } from "@headlessui/vue";
3
- import { ScalarIcon as k } from "@scalar/components";
4
- import { useElementHover as C } from "@vueuse/core";
5
- import b from "../IntersectionObserver.vue.js";
6
- const B = { class: "section-accordion-button-content" }, y = {
3
+ import { ScalarIconCaretRight as k } from "@scalar/icons";
4
+ import { useElementHover as b } from "@vueuse/core";
5
+ import B from "../IntersectionObserver.vue.js";
6
+ const C = { class: "section-accordion-button-content" }, y = {
7
7
  key: 0,
8
8
  class: "section-accordion-button-actions"
9
9
  }, D = {
10
10
  key: 0,
11
11
  class: "section-accordion-description"
12
- }, w = { class: "section-accordion-content-card" }, A = /* @__PURE__ */ p({
12
+ }, E = { class: "section-accordion-content-card" }, A = /* @__PURE__ */ p({
13
13
  __name: "SectionAccordion",
14
14
  props: {
15
15
  id: {},
16
16
  transparent: { type: Boolean }
17
17
  },
18
- setup(E) {
19
- const i = m(), u = C(i);
20
- return (o, N) => (c(), f(b, {
18
+ setup(N) {
19
+ const r = f(), m = b(r);
20
+ return (o, S) => (c(), _(B, {
21
21
  id: o.id,
22
22
  class: "section-wrapper"
23
23
  }, {
24
- default: t(() => [
25
- s(e(v), {
24
+ default: e(() => [
25
+ s(t(v), {
26
26
  as: "section",
27
- class: _(["section-accordion", { "section-accordion-transparent": o.transparent }])
27
+ class: a(["section-accordion", { "section-accordion-transparent": o.transparent }])
28
28
  }, {
29
- default: t(({ open: r }) => [
30
- s(e(h), {
29
+ default: e(({ open: i }) => [
30
+ s(t(h), {
31
31
  ref_key: "button",
32
- ref: i,
32
+ ref: r,
33
33
  class: "section-accordion-button"
34
34
  }, {
35
- default: t(() => [
36
- a("div", B, [
35
+ default: e(() => [
36
+ d("div", C, [
37
37
  n(o.$slots, "title", {}, void 0, !0)
38
38
  ]),
39
- o.$slots.actions ? (c(), d("div", y, [
39
+ o.$slots.actions ? (c(), l("div", y, [
40
40
  n(o.$slots, "actions", {
41
- active: e(u) || r
41
+ active: t(m) || i
42
42
  }, void 0, !0)
43
- ])) : l("", !0),
44
- s(e(k), {
45
- class: "section-accordion-chevron size-5",
46
- icon: r ? "ChevronDown" : "ChevronRight"
47
- }, null, 8, ["icon"])
43
+ ])) : u("", !0),
44
+ s(t(k), {
45
+ class: a(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": i }])
46
+ }, null, 8, ["class"])
48
47
  ]),
49
48
  _: 2
50
49
  }, 1536),
51
- s(e($), { class: "section-accordion-content" }, {
52
- default: t(() => [
53
- o.$slots.description ? (c(), d("div", D, [
50
+ s(t($), { class: "section-accordion-content" }, {
51
+ default: e(() => [
52
+ o.$slots.description ? (c(), l("div", D, [
54
53
  n(o.$slots, "description", {}, void 0, !0)
55
- ])) : l("", !0),
56
- a("div", w, [
54
+ ])) : u("", !0),
55
+ d("div", E, [
57
56
  n(o.$slots, "default", {}, void 0, !0)
58
57
  ])
59
58
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAkGA,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAoGA,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -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,17 +1,17 @@
1
+ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
1
2
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
3
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
4
  type __VLS_Props = {
4
- document?: OpenAPIV3_1.Document;
5
5
  path: string;
6
- method: OpenAPIV3_1.HttpMethods;
6
+ method: HttpMethod;
7
7
  isWebhook?: boolean;
8
8
  layout?: 'modern' | 'classic';
9
9
  id: string;
10
- /**
11
- * @deprecated Use `document` instead
12
- */
13
- collection: Collection;
14
10
  server: Server | undefined;
11
+ /** @deprecated Use `document` instead, we just need the selected security scheme uids for now */
12
+ collection: Collection;
13
+ /** @deprecated Use the new workspace store instead*/
14
+ document?: OpenAPIV3_1.Document;
15
15
  };
16
16
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAYxD,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAC;;AAuKF,wBAMG"}
1
+ {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAaxD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;CAChC,CAAC;;AAiKF,wBAMG"}
@@ -1,79 +1,80 @@
1
- import { defineComponent as b, computed as k, createElementBlock as W, createCommentVNode as y, openBlock as c, Fragment as U, createBlock as f, unref as m } from "vue";
2
- import { useWorkspace as q } from "@scalar/api-client/store";
3
- import { getPointer as B } from "../../blocks/helpers/getPointer.js";
4
- import { useBlockProps as V } from "../../blocks/hooks/useBlockProps.js";
5
- import { useOperationDiscriminator as C } from "../../hooks/useOperationDiscriminator.js";
6
- import S from "./layouts/ClassicLayout.vue.js";
7
- import g from "./layouts/ModernLayout.vue.js";
8
- const M = /* @__PURE__ */ b({
1
+ import { defineComponent as S, computed as c, createElementBlock as b, createCommentVNode as W, openBlock as u, Fragment as O, createBlock as y, unref as k } from "vue";
2
+ import { useWorkspace as U } from "@scalar/api-client/store";
3
+ import { filterSecurityRequirements as V } from "@scalar/api-client/views/Request/RequestSection";
4
+ import { isReference as B } from "@scalar/workspace-store/schemas/v3.1/type-guard";
5
+ import { convertSecurityScheme as C } from "../../helpers/convert-security-scheme.js";
6
+ import { useOperationDiscriminator as w } from "../../hooks/useOperationDiscriminator.js";
7
+ import { useStore as D } from "../../v2/hooks/useStore.js";
8
+ import g from "./layouts/ClassicLayout.vue.js";
9
+ import L from "./layouts/ModernLayout.vue.js";
10
+ const A = /* @__PURE__ */ S({
9
11
  __name: "Operation",
10
12
  props: {
11
- document: {},
12
13
  path: {},
13
14
  method: {},
14
15
  isWebhook: { type: Boolean },
15
16
  layout: { default: "modern" },
16
17
  id: {},
18
+ server: {},
17
19
  collection: {},
18
- server: {}
20
+ document: {}
19
21
  },
20
22
  setup(o) {
21
- var v, p;
22
- const u = q(), s = k(
23
+ var l, p;
24
+ const { workspace: v } = D(), n = c(() => {
25
+ var a, r, m;
26
+ const e = o.isWebhook ? "webhooks" : "paths", t = (m = (r = (a = v.activeDocument) == null ? void 0 : a[e]) == null ? void 0 : r[o.path]) == null ? void 0 : m[o.method];
27
+ return B(t) ? null : t;
28
+ }), s = c(
23
29
  () => {
24
- var e, t, n, r, i, l;
25
- return o.isWebhook ? (n = (t = (e = o.document) == null ? void 0 : e.webhooks) == null ? void 0 : t[o.path]) == null ? void 0 : n[o.method] : (l = (i = (r = o.document) == null ? void 0 : r.paths) == null ? void 0 : i[o.path]) == null ? void 0 : l[o.method];
30
+ var e, t, a, r, m, i;
31
+ return o.isWebhook ? (a = (t = (e = o.document) == null ? void 0 : e.webhooks) == null ? void 0 : t[o.path]) == null ? void 0 : a[o.method] : (i = (m = (r = o.document) == null ? void 0 : r.paths) == null ? void 0 : m[o.path]) == null ? void 0 : i[o.method];
26
32
  }
27
- ), { handleDiscriminatorChange: d } = C(
33
+ ), { handleDiscriminatorChange: h } = w(
28
34
  s.value,
29
- (p = (v = o.document) == null ? void 0 : v.components) == null ? void 0 : p.schemas
30
- ), { operation: a } = V({
31
- store: u,
32
- collection: o.collection,
33
- location: B([o.isWebhook ? "webhooks" : "paths", o.path, o.method])
34
- }), h = k(() => {
35
- var e;
36
- if (!a.value)
37
- return o.server;
38
- if ((e = a.value) != null && e.selectedServerUid) {
39
- const t = u.servers[a.value.selectedServerUid];
40
- if (t)
41
- return t;
35
+ (p = (l = o.document) == null ? void 0 : l.components) == null ? void 0 : p.schemas
36
+ ), { securitySchemes: f } = U(), d = c(
37
+ () => {
38
+ var e, t;
39
+ return V(
40
+ ((e = n.value) == null ? void 0 : e.security) || ((t = o.document) == null ? void 0 : t.security),
41
+ o.collection.selectedSecuritySchemeUids,
42
+ f
43
+ ).map(C);
42
44
  }
43
- return o.server;
44
- });
45
+ );
45
46
  return (e, t) => {
46
- var n, r, i, l;
47
- return e.collection && s.value ? (c(), W(U, { key: 0 }, [
48
- e.layout === "classic" ? (c(), f(S, {
47
+ var a, r, m, i;
48
+ return n.value ? (u(), b(O, { key: 0 }, [
49
+ e.layout === "classic" ? (u(), y(g, {
49
50
  key: 0,
50
51
  id: e.id,
51
- operation: s.value,
52
- collection: e.collection,
53
52
  isWebhook: e.isWebhook,
54
53
  method: e.method,
54
+ operation: n.value,
55
+ oldOperation: s.value,
56
+ securitySchemes: d.value,
55
57
  path: e.path,
56
- request: m(a),
57
- schemas: (r = (n = e.document) == null ? void 0 : n.components) == null ? void 0 : r.schemas,
58
- server: h.value,
59
- "onUpdate:modelValue": m(d)
60
- }, null, 8, ["id", "operation", "collection", "isWebhook", "method", "path", "request", "schemas", "server", "onUpdate:modelValue"])) : (c(), f(g, {
58
+ schemas: (r = (a = e.document) == null ? void 0 : a.components) == null ? void 0 : r.schemas,
59
+ server: e.server,
60
+ "onUpdate:modelValue": k(h)
61
+ }, null, 8, ["id", "isWebhook", "method", "operation", "oldOperation", "securitySchemes", "path", "schemas", "server", "onUpdate:modelValue"])) : (u(), y(L, {
61
62
  key: 1,
62
63
  id: e.id,
63
- collection: e.collection,
64
64
  isWebhook: e.isWebhook,
65
65
  method: e.method,
66
+ oldOperation: s.value,
67
+ securitySchemes: d.value,
66
68
  path: e.path,
67
- request: m(a),
68
- operation: s.value,
69
- schemas: (l = (i = e.document) == null ? void 0 : i.components) == null ? void 0 : l.schemas,
70
- server: h.value,
71
- "onUpdate:modelValue": m(d)
72
- }, null, 8, ["id", "collection", "isWebhook", "method", "path", "request", "operation", "schemas", "server", "onUpdate:modelValue"]))
73
- ], 64)) : y("", !0);
69
+ operation: n.value,
70
+ schemas: (i = (m = e.document) == null ? void 0 : m.components) == null ? void 0 : i.schemas,
71
+ server: e.server,
72
+ "onUpdate:modelValue": k(h)
73
+ }, null, 8, ["id", "isWebhook", "method", "oldOperation", "securitySchemes", "path", "operation", "schemas", "server", "onUpdate:modelValue"]))
74
+ ], 64)) : W("", !0);
74
75
  };
75
76
  }
76
77
  });
77
78
  export {
78
- M as default
79
+ A as default
79
80
  };
@@ -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,7 +1,7 @@
1
1
  import t from "./ParameterListItem.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-df3b54dc"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-47696a96"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,14 +1,16 @@
1
- import { type Collection } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV3_1 } from '@scalar/types/legacy';
1
+ import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
2
+ import { type OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
3
+ import { type Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
3
4
  import type { Schemas } from '../../../../features/Operation/types/schemas';
4
5
  type __VLS_Props = {
5
- callback: OpenAPIV3_1.OperationObject;
6
- collection: Collection;
7
- method: string;
6
+ callback: Dereference<OperationObject>;
7
+ method: HttpMethodType;
8
+ path: string;
9
+ operationMethod: HttpMethodType;
8
10
  name: string;
9
11
  schemas?: Schemas;
10
12
  url: string;
11
13
  };
12
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDetailsElement>;
13
15
  export default _default;
14
16
  //# sourceMappingURL=Callback.vue.d.ts.map