@scalar/api-reference 1.35.5 → 1.35.6

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 (217) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/browser/standalone.js +18150 -18465
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/WithBreadcrumb.vue2.js +8 -11
  5. package/dist/components/ApiReference.vue.js +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +4 -4
  7. package/dist/components/ApiReferenceLayout.vue2.js +247 -268
  8. package/dist/components/Badge/Badge.vue.js +1 -1
  9. package/dist/components/ClassicHeader.vue.js +1 -1
  10. package/dist/components/Content/Content.vue.js +145 -169
  11. package/dist/components/Content/Content.vue3.js +1 -1
  12. package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
  13. package/dist/components/Content/Models/ClassicLayout.vue2.js +32 -35
  14. package/dist/components/Content/Models/Models.vue.js +27 -31
  15. package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
  16. package/dist/components/Content/Operations/TraversedEntry.vue.js +32 -35
  17. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +26 -27
  18. package/dist/components/Content/Operations/get-current-index.js +1 -1
  19. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  20. package/dist/components/Content/Schema/Schema.vue2.js +68 -74
  21. package/dist/components/Content/Schema/SchemaComposition.vue.js +42 -45
  22. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +1 -1
  23. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  24. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +45 -50
  25. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +41 -48
  27. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  28. package/dist/components/Content/Schema/SchemaProperty.vue2.js +142 -157
  29. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +1 -1
  31. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  32. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +160 -164
  33. package/dist/components/Content/Schema/helpers/get-schema-type.js +15 -17
  34. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +74 -77
  35. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +10 -11
  36. package/dist/components/Content/Tags/ClassicLayout.vue.js +1 -1
  37. package/dist/components/Content/Tags/ClassicLayout.vue2.js +36 -39
  38. package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
  39. package/dist/components/Content/Tags/ModernLayout.vue2.js +31 -35
  40. package/dist/components/Content/Tags/TagSection.vue.js +86 -92
  41. package/dist/components/GettingStarted.vue.js +1 -1
  42. package/dist/components/LinkList/LinkList.vue.js +1 -1
  43. package/dist/components/LoadingSkeleton.vue.js +1 -1
  44. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  45. package/dist/components/MobileHeader.vue.js +3 -3
  46. package/dist/components/MobileHeader.vue2.js +13 -12
  47. package/dist/components/OperationPath.vue.js +1 -1
  48. package/dist/components/OperationsList/OperationsList.vue.js +1 -1
  49. package/dist/components/OperationsList/OperationsList.vue2.js +45 -51
  50. package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
  51. package/dist/components/ScreenReader.vue.js +1 -1
  52. package/dist/components/Section/CompactSection.vue.js +1 -1
  53. package/dist/components/Section/Section.vue.js +1 -1
  54. package/dist/components/Section/Section.vue2.js +13 -14
  55. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  56. package/dist/components/Section/SectionAccordion.vue2.js +29 -30
  57. package/dist/components/Section/SectionColumn.vue.js +1 -1
  58. package/dist/components/Section/SectionColumns.vue.js +1 -1
  59. package/dist/components/Section/SectionContainer.vue.js +1 -1
  60. package/dist/components/Section/SectionContainerAccordion.vue.js +1 -1
  61. package/dist/components/Section/SectionContent.vue.js +1 -1
  62. package/dist/components/Section/SectionHeader.vue.js +1 -1
  63. package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
  64. package/dist/components/SectionFlare/SectionFlare.vue.js +1 -1
  65. package/dist/components/ShowMoreButton.vue.js +1 -1
  66. package/dist/components/ShowMoreButton.vue2.js +12 -13
  67. package/dist/features/Operation/Operation.vue.js +31 -36
  68. package/dist/features/Operation/components/Headers.vue.js +1 -1
  69. package/dist/features/Operation/components/OperationParameters.vue.js +8 -11
  70. package/dist/features/Operation/components/ParameterList.vue.js +21 -24
  71. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  72. package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -37
  73. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  74. package/dist/features/Operation/components/RequestBody.vue2.js +45 -52
  75. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  76. package/dist/features/Operation/components/callbacks/Callback.vue2.js +32 -35
  77. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/layouts/ClassicLayout.vue.js +4 -4
  79. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -119
  80. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  81. package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
  82. package/dist/features/Operation/layouts/ModernLayout.vue2.js +87 -89
  83. package/dist/features/Search/components/SearchButton.vue.js +23 -25
  84. package/dist/features/Search/components/SearchModal.vue.js +1 -1
  85. package/dist/features/Search/components/SearchModal.vue2.js +53 -54
  86. package/dist/features/api-client-modal/ApiClientModal.vue.js +31 -38
  87. package/dist/features/document-source/hooks/useDocumentFetcher.js +17 -18
  88. package/dist/features/document-source/hooks/useDocumentSource.js +16 -16
  89. package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
  90. package/dist/features/example-responses/ExampleResponse.vue2.js +23 -26
  91. package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
  92. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  93. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  94. package/dist/features/example-responses/ExampleResponses.vue2.js +128 -153
  95. package/dist/features/info-object/Contact.vue.js +24 -27
  96. package/dist/features/info-object/License.vue.js +26 -29
  97. package/dist/features/multiple-documents/DocumentSelector.vue.js +22 -31
  98. package/dist/features/multiple-documents/useMultipleDocuments.js +52 -56
  99. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
  100. package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
  101. package/dist/features/sidebar/components/Sidebar.vue2.js +74 -79
  102. package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
  103. package/dist/features/sidebar/components/SidebarElement.vue2.js +52 -53
  104. package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
  105. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
  106. package/dist/features/specification-extension/SpecificationExtension.vue2.js +28 -31
  107. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  108. package/dist/features/test-request-button/TestRequestButton.vue2.js +1 -2
  109. package/dist/features/traverse-schema/helpers/traverse-description.js +13 -14
  110. package/dist/features/traverse-schema/helpers/traverse-document.js +14 -15
  111. package/dist/features/traverse-schema/helpers/traverse-paths.js +20 -23
  112. package/dist/features/traverse-schema/helpers/traverse-schemas.js +13 -15
  113. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +8 -10
  114. package/dist/hooks/useFreezing.js +14 -14
  115. package/dist/hooks/useNavState.js +37 -39
  116. package/dist/index.js +2 -2
  117. package/dist/libs/openapi.js +28 -31
  118. package/dist/style.css +1 -1
  119. package/dist/v2/ApiReferenceWorkspace.vue.js +68 -75
  120. package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
  121. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  122. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +116 -135
  123. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +40 -47
  124. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +45 -46
  125. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +109 -125
  126. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
  127. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +84 -84
  128. package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +12 -13
  129. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
  130. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +1 -4
  131. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
  132. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +77 -82
  133. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
  134. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +46 -49
  135. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
  136. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +1 -1
  137. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +1 -1
  138. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
  139. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +74 -89
  140. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +24 -27
  141. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +1 -1
  142. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +106 -119
  143. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +11 -12
  144. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +3 -3
  145. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +11 -14
  146. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +45 -48
  147. package/dist/v2/helpers/get-document-name.js +10 -10
  148. package/dist/v2/helpers/map-configuration.js +48 -51
  149. package/dist/v2/hooks/use-legacy-store-events.js +44 -48
  150. package/dist/v2/hooks/use-workspace-store-events.js +23 -26
  151. package/package.json +22 -22
  152. package/dist/components/ApiReferenceLayout.vue3.js +0 -4
  153. package/dist/components/ApiReferenceLayout.vue4.js +0 -4
  154. package/dist/components/ApiReferenceLayout.vue5.js +0 -4
  155. package/dist/components/ApiReferenceLayout.vue6.js +0 -4
  156. package/dist/components/Badge/Badge.vue3.js +0 -4
  157. package/dist/components/ClassicHeader.vue2.js +0 -4
  158. package/dist/components/Content/Content.vue2.js +0 -4
  159. package/dist/components/Content/Models/ClassicLayout.vue3.js +0 -4
  160. package/dist/components/Content/Models/ModernLayout.vue3.js +0 -4
  161. package/dist/components/Content/Schema/Schema.vue3.js +0 -4
  162. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +0 -4
  163. package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +0 -4
  164. package/dist/components/Content/Schema/SchemaHeading.vue3.js +0 -4
  165. package/dist/components/Content/Schema/SchemaProperty.vue3.js +0 -4
  166. package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +0 -4
  167. package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +0 -4
  168. package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +0 -4
  169. package/dist/components/Content/Tags/ClassicLayout.vue3.js +0 -4
  170. package/dist/components/Content/Tags/ModernLayout.vue3.js +0 -4
  171. package/dist/components/GettingStarted.vue3.js +0 -4
  172. package/dist/components/LinkList/LinkList.vue3.js +0 -4
  173. package/dist/components/LoadingSkeleton.vue3.js +0 -4
  174. package/dist/components/MobileHeader.vue3.js +0 -4
  175. package/dist/components/OperationPath.vue3.js +0 -4
  176. package/dist/components/OperationsList/OperationsList.vue3.js +0 -4
  177. package/dist/components/OperationsList/OperationsListItem.vue3.js +0 -4
  178. package/dist/components/ScreenReader.vue3.js +0 -4
  179. package/dist/components/Section/CompactSection.vue3.js +0 -4
  180. package/dist/components/Section/Section.vue3.js +0 -4
  181. package/dist/components/Section/SectionAccordion.vue3.js +0 -4
  182. package/dist/components/Section/SectionColumn.vue2.js +0 -4
  183. package/dist/components/Section/SectionColumns.vue2.js +0 -4
  184. package/dist/components/Section/SectionContainer.vue3.js +0 -4
  185. package/dist/components/Section/SectionContainerAccordion.vue3.js +0 -4
  186. package/dist/components/Section/SectionContent.vue3.js +0 -4
  187. package/dist/components/Section/SectionHeader.vue3.js +0 -4
  188. package/dist/components/Section/SectionHeaderTag.vue3.js +0 -4
  189. package/dist/components/SectionFlare/SectionFlare.vue2.js +0 -4
  190. package/dist/components/ShowMoreButton.vue3.js +0 -4
  191. package/dist/features/Operation/components/Headers.vue3.js +0 -4
  192. package/dist/features/Operation/components/ParameterListItem.vue3.js +0 -4
  193. package/dist/features/Operation/components/RequestBody.vue3.js +0 -4
  194. package/dist/features/Operation/components/callbacks/Callback.vue3.js +0 -4
  195. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +0 -4
  196. package/dist/features/Operation/layouts/ModernLayout.vue3.js +0 -4
  197. package/dist/features/Search/components/SearchModal.vue3.js +0 -4
  198. package/dist/features/example-responses/ExampleResponse.vue3.js +0 -4
  199. package/dist/features/example-responses/ExampleResponseTab.vue3.js +0 -4
  200. package/dist/features/example-responses/ExampleResponseTabList.vue3.js +0 -4
  201. package/dist/features/example-responses/ExampleResponses.vue3.js +0 -4
  202. package/dist/features/sidebar/components/Sidebar.vue3.js +0 -4
  203. package/dist/features/sidebar/components/SidebarElement.vue3.js +0 -4
  204. package/dist/features/sidebar/components/SidebarGroup.vue3.js +0 -4
  205. package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +0 -4
  206. package/dist/features/test-request-button/TestRequestButton.vue3.js +0 -4
  207. package/dist/v2/ApiReferenceWorkspace.vue2.js +0 -4
  208. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js +0 -4
  209. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js +0 -4
  210. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js +0 -4
  211. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js +0 -4
  212. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue3.js +0 -4
  213. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue3.js +0 -4
  214. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +0 -4
  215. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +0 -4
  216. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +0 -4
  217. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +0 -4
@@ -1,27 +1,27 @@
1
- import { defineComponent as S, computed as C, useId as w, createBlock as r, openBlock as i, unref as o, withCtx as a, createVNode as t, createElementVNode as l, createCommentVNode as s, normalizeClass as h, createTextVNode as n, toDisplayString as b, createSlots as B } from "vue";
2
- import { ScalarMarkdown as O, ScalarErrorBoundary as p } from "@scalar/components";
3
- import { ScalarIconWebhooksLogo as I } from "@scalar/icons";
4
- import { getOperationStability as g, getOperationStabilityColor as R, isOperationDeprecated as $ } from "@scalar/oas-utils/helpers";
5
- import { getResolvedRef as q } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
- import L from "../../../components/OperationPath.vue.js";
7
- import T from "../components/callbacks/Callbacks.vue.js";
8
- import W from "../components/OperationParameters.vue.js";
9
- import _ from "../components/OperationResponses.vue.js";
1
+ import { defineComponent as v, computed as S, useId as C, createBlock as r, openBlock as i, unref as o, withCtx as t, createVNode as a, createElementVNode as s, createCommentVNode as l, normalizeClass as c, createTextVNode as n, toDisplayString as h, createSlots as w } from "vue";
2
+ import { ScalarMarkdown as B, ScalarErrorBoundary as p } from "@scalar/components";
3
+ import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
4
+ import { getOperationStability as b, getOperationStabilityColor as W, isOperationDeprecated as I } from "@scalar/oas-utils/helpers";
5
+ import { getResolvedRef as R } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
+ import $ from "../../../components/OperationPath.vue.js";
7
+ import q from "../components/callbacks/Callbacks.vue.js";
8
+ import L from "../components/OperationParameters.vue.js";
9
+ import T from "../components/OperationResponses.vue.js";
10
10
  import D from "../../../components/Section/Section.vue.js";
11
11
  import E from "../../../components/Section/SectionContent.vue.js";
12
- import y from "../../../components/Badge/Badge.vue.js";
13
- import k from "../../x-badges/XBadges.vue.js";
12
+ import g from "../../../components/Badge/Badge.vue.js";
13
+ import y from "../../x-badges/XBadges.vue.js";
14
14
  import N from "../../../components/Section/SectionHeader.vue.js";
15
15
  import V from "../../../components/Anchor/Anchor.vue.js";
16
- import P from "../../../components/Section/SectionHeaderTag.vue.js";
17
- import j from "../../../components/Section/SectionColumns.vue.js";
18
- import v from "../../../components/Section/SectionColumn.vue.js";
19
- import z from "../../../components/LinkList/LinkList.vue.js";
20
- import A from "../../external-docs/ExternalDocs.vue.js";
21
- import H from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
22
- import M from "../../test-request-button/TestRequestButton.vue.js";
23
- import F from "../../example-responses/ExampleResponses.vue.js";
24
- const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex gap-1" }, K = { class: "flex gap-1" }, Q = { class: "operation-details" }, U = { class: "examples" }, ke = /* @__PURE__ */ S({
16
+ import _ from "../../../components/Section/SectionHeaderTag.vue.js";
17
+ import P from "../../../components/Section/SectionColumns.vue.js";
18
+ import k from "../../../components/Section/SectionColumn.vue.js";
19
+ import j from "../../../components/LinkList/LinkList.vue.js";
20
+ import z from "../../external-docs/ExternalDocs.vue.js";
21
+ import A from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
22
+ import H from "../../test-request-button/TestRequestButton.vue.js";
23
+ import M from "../../example-responses/ExampleResponses.vue.js";
24
+ const F = { class: "flex flex-row justify-between gap-1" }, G = { class: "flex gap-1" }, J = { class: "flex gap-1" }, K = { class: "operation-details" }, Q = { class: "examples" }, ye = /* @__PURE__ */ v({
25
25
  __name: "ModernLayout",
26
26
  props: {
27
27
  id: {},
@@ -36,65 +36,65 @@ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex g
36
36
  store: {}
37
37
  },
38
38
  setup(d) {
39
- const m = C(() => d.operation.summary || d.path || ""), u = w();
39
+ const m = S(() => d.operation.summary || d.path || ""), u = C();
40
40
  return (e, f) => (i(), r(o(D), {
41
41
  id: e.id,
42
42
  "aria-labelledby": o(u),
43
43
  label: m.value,
44
44
  tabindex: "-1"
45
45
  }, {
46
- default: a(() => [
47
- t(o(E), {
46
+ default: t(() => [
47
+ a(o(E), {
48
48
  loading: e.config.isLoading
49
49
  }, {
50
- default: a(() => [
51
- l("div", G, [
52
- l("div", J, [
53
- o(g)(e.operation) ? (i(), r(o(y), {
50
+ default: t(() => [
51
+ s("div", F, [
52
+ s("div", G, [
53
+ o(b)(e.operation) ? (i(), r(o(g), {
54
54
  key: 0,
55
- class: h(["capitalize", o(R)(e.operation)])
55
+ class: c(["capitalize", o(W)(e.operation)])
56
56
  }, {
57
- default: a(() => [
58
- n(b(o(g)(e.operation)), 1)
57
+ default: t(() => [
58
+ n(h(o(b)(e.operation)), 1)
59
59
  ]),
60
60
  _: 1
61
- }, 8, ["class"])) : s("", !0),
62
- e.isWebhook ? (i(), r(o(y), {
61
+ }, 8, ["class"])) : l("", !0),
62
+ e.isWebhook ? (i(), r(o(g), {
63
63
  key: 1,
64
64
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
65
65
  }, {
66
- default: a(() => [
67
- t(o(I), { weight: "bold" }),
66
+ default: t(() => [
67
+ a(o(O), { weight: "bold" }),
68
68
  f[0] || (f[0] = n("Webhook "))
69
69
  ]),
70
70
  _: 1,
71
71
  __: [0]
72
- })) : s("", !0),
73
- t(o(k), {
72
+ })) : l("", !0),
73
+ a(o(y), {
74
74
  badges: e.operation["x-badges"],
75
75
  position: "before"
76
76
  }, null, 8, ["badges"])
77
77
  ]),
78
- l("div", K, [
79
- t(o(k), {
78
+ s("div", J, [
79
+ a(o(y), {
80
80
  badges: e.operation["x-badges"],
81
81
  position: "after"
82
82
  }, null, 8, ["badges"])
83
83
  ])
84
84
  ]),
85
- l("div", {
86
- class: h(o($)(e.operation) ? "deprecated" : "")
85
+ s("div", {
86
+ class: c(o(I)(e.operation) ? "deprecated" : "")
87
87
  }, [
88
- t(o(N), null, {
89
- default: a(() => [
90
- t(o(V), { id: e.id }, {
91
- default: a(() => [
92
- t(o(P), {
88
+ a(o(N), null, {
89
+ default: t(() => [
90
+ a(o(V), { id: e.id }, {
91
+ default: t(() => [
92
+ a(o(_), {
93
93
  id: o(u),
94
94
  level: 3
95
95
  }, {
96
- default: a(() => [
97
- n(b(m.value), 1)
96
+ default: t(() => [
97
+ n(h(m.value), 1)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["id"])
@@ -105,40 +105,40 @@ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex g
105
105
  _: 1
106
106
  })
107
107
  ], 2),
108
- t(o(j), null, {
109
- default: a(() => [
110
- t(o(v), null, {
111
- default: a(() => [
112
- l("div", Q, [
113
- t(o(O), {
108
+ a(o(P), null, {
109
+ default: t(() => [
110
+ a(o(k), null, {
111
+ default: t(() => [
112
+ s("div", K, [
113
+ a(o(B), {
114
114
  anchorPrefix: e.id,
115
115
  transformType: "heading",
116
116
  value: e.operation.description,
117
117
  withAnchors: "",
118
118
  withImages: ""
119
119
  }, null, 8, ["anchorPrefix", "value"]),
120
- t(W, {
120
+ a(L, {
121
121
  breadcrumb: [e.id],
122
122
  parameters: (
123
123
  // These have been resolved in the Operation.vue component
124
124
  e.operation.parameters
125
125
  ),
126
- requestBody: o(q)(e.operation.requestBody)
126
+ requestBody: o(R)(e.operation.requestBody)
127
127
  }, null, 8, ["breadcrumb", "parameters", "requestBody"]),
128
- t(_, {
128
+ a(T, {
129
129
  breadcrumb: [e.id],
130
130
  collapsableItems: !e.config.expandAllResponses,
131
131
  responses: e.operation.responses
132
132
  }, null, 8, ["breadcrumb", "collapsableItems", "responses"]),
133
- t(o(p), null, {
134
- default: a(() => [
135
- e.operation.callbacks ? (i(), r(T, {
133
+ a(o(p), null, {
134
+ default: t(() => [
135
+ e.operation.callbacks ? (i(), r(q, {
136
136
  key: 0,
137
137
  callbacks: e.operation.callbacks,
138
138
  class: "mt-6",
139
139
  method: e.method,
140
140
  path: e.path
141
- }, null, 8, ["callbacks", "method", "path"])) : s("", !0)
141
+ }, null, 8, ["callbacks", "method", "path"])) : l("", !0)
142
142
  ]),
143
143
  _: 1
144
144
  })
@@ -146,62 +146,60 @@ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex g
146
146
  ]),
147
147
  _: 1
148
148
  }),
149
- t(o(v), null, {
150
- default: a(() => [
151
- l("div", U, [
152
- e.operation.externalDocs ? (i(), r(o(z), { key: 0 }, {
153
- default: a(() => [
154
- t(o(A), {
149
+ a(o(k), null, {
150
+ default: t(() => [
151
+ s("div", Q, [
152
+ e.operation.externalDocs ? (i(), r(o(j), { key: 0 }, {
153
+ default: t(() => [
154
+ a(o(z), {
155
155
  value: e.operation.externalDocs
156
156
  }, null, 8, ["value"])
157
157
  ]),
158
158
  _: 1
159
- })) : s("", !0),
160
- t(o(p), null, {
161
- default: a(() => [
162
- t(o(H), {
159
+ })) : l("", !0),
160
+ a(o(p), null, {
161
+ default: t(() => [
162
+ a(o(A), {
163
163
  clientOptions: e.clientOptions,
164
164
  fallback: "",
165
165
  method: e.method,
166
166
  operation: e.operation,
167
167
  path: e.path,
168
+ isWebhook: e.isWebhook,
168
169
  securitySchemes: e.securitySchemes,
169
170
  selectedClient: e.store.workspace["x-scalar-default-client"],
170
171
  selectedServer: e.server
171
- }, B({
172
- header: a(() => {
173
- var c;
174
- return [
175
- t(L, {
176
- class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
177
- deprecated: (c = e.operation) == null ? void 0 : c.deprecated,
178
- path: e.path
179
- }, null, 8, ["deprecated", "path"])
180
- ];
181
- }),
172
+ }, w({
173
+ header: t(() => [
174
+ a($, {
175
+ class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
176
+ deprecated: e.operation?.deprecated,
177
+ path: e.path
178
+ }, null, 8, ["deprecated", "path"])
179
+ ]),
182
180
  _: 2
183
181
  }, [
184
182
  e.isWebhook ? void 0 : {
185
183
  name: "footer",
186
- fn: a(() => [
187
- t(o(M), {
184
+ fn: t(() => [
185
+ a(o(H), {
188
186
  method: e.method,
189
187
  path: e.path
190
188
  }, null, 8, ["method", "path"])
191
189
  ]),
192
190
  key: "0"
193
191
  }
194
- ]), 1032, ["clientOptions", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
192
+ ]), 1032, ["clientOptions", "method", "operation", "path", "isWebhook", "securitySchemes", "selectedClient", "selectedServer"])
195
193
  ]),
196
194
  _: 1
197
195
  }),
198
- t(o(p), null, {
199
- default: a(() => [
200
- e.operation.responses ? (i(), r(o(F), {
196
+ a(o(p), null, {
197
+ default: t(() => [
198
+ e.operation.responses ? (i(), r(o(M), {
201
199
  key: 0,
202
200
  responses: e.operation.responses,
203
201
  style: { "margin-top": "12px" }
204
- }, null, 8, ["responses"])) : s("", !0)
202
+ }, null, 8, ["responses"])) : l("", !0)
205
203
  ]),
206
204
  _: 1
207
205
  })
@@ -221,5 +219,5 @@ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex g
221
219
  }
222
220
  });
223
221
  export {
224
- ke as default
222
+ ye as default
225
223
  };
@@ -1,49 +1,47 @@
1
- import { defineComponent as S, ref as k, watch as w, nextTick as C, onMounted as M, onBeforeUnmount as v, createElementBlock as a, openBlock as r, Fragment as s, createVNode as u, unref as l, normalizeClass as B, withCtx as m, createElementVNode as n, createTextVNode as K, toDisplayString as b } from "vue";
2
- import { useModal as E, ScalarSidebarSearchButton as H } from "@scalar/components";
3
- import { isMacOS as f } from "@scalar/helpers/general/is-mac-os";
4
- import g from "./SearchModal.vue.js";
5
- import { useApiClient as L } from "../../api-client-modal/useApiClient.js";
6
- const O = /* @__PURE__ */ S({
1
+ import { defineComponent as h, ref as S, watch as k, nextTick as w, onMounted as C, onBeforeUnmount as M, createElementBlock as a, openBlock as r, Fragment as s, createVNode as p, unref as l, normalizeClass as v, withCtx as u, createElementVNode as n, createTextVNode as B, toDisplayString as K } from "vue";
2
+ import { useModal as b, ScalarSidebarSearchButton as E } from "@scalar/components";
3
+ import { isMacOS as m } from "@scalar/helpers/general/is-mac-os";
4
+ import H from "./SearchModal.vue.js";
5
+ import { useApiClient as g } from "../../api-client-modal/useApiClient.js";
6
+ const D = /* @__PURE__ */ h({
7
7
  __name: "SearchButton",
8
8
  props: {
9
9
  searchHotKey: { default: "k" },
10
10
  hideModels: { type: Boolean, default: !1 }
11
11
  },
12
- setup(y) {
13
- const d = k(), t = E(), { client: c } = L(), i = (o) => {
14
- var e;
15
- (f() ? o.metaKey : o.ctrlKey) && o.key === y.searchHotKey && !((e = c.value) != null && e.modalState.open) && (o.preventDefault(), o.stopPropagation(), t.open ? t.hide() : t.show());
12
+ setup(f) {
13
+ const d = S(), t = b(), { client: y } = g(), i = (o) => {
14
+ (m() ? o.metaKey : o.ctrlKey) && o.key === f.searchHotKey && !y.value?.modalState.open && (o.preventDefault(), o.stopPropagation(), t.open ? t.hide() : t.show());
16
15
  };
17
- w(
16
+ k(
18
17
  () => t.open,
19
18
  (o, e) => {
20
- !o && e && C(() => {
21
- var p;
22
- (p = d.value) == null || p.$el.focus();
19
+ !o && e && w(() => {
20
+ d.value?.$el.focus();
23
21
  });
24
22
  }
25
- ), M(() => window.addEventListener("keydown", i)), v(() => window.removeEventListener("keydown", i));
26
- function h() {
23
+ ), C(() => window.addEventListener("keydown", i)), M(() => window.removeEventListener("keydown", i));
24
+ function c() {
27
25
  t.show();
28
26
  }
29
27
  return (o, e) => (r(), a(s, null, [
30
- u(l(H), {
28
+ p(l(E), {
31
29
  ref_key: "button",
32
30
  ref: d,
33
- class: B(["w-full", o.$attrs.class]),
34
- onClick: h
31
+ class: v(["w-full", o.$attrs.class]),
32
+ onClick: c
35
33
  }, {
36
- shortcut: m(() => [
37
- l(f)() ? (r(), a(s, { key: 0 }, [
34
+ shortcut: u(() => [
35
+ l(m)() ? (r(), a(s, { key: 0 }, [
38
36
  e[0] || (e[0] = n("span", { class: "sr-only" }, "Command", -1)),
39
37
  e[1] || (e[1] = n("span", { "aria-hidden": "true" }, "⌘", -1))
40
38
  ], 64)) : (r(), a(s, { key: 1 }, [
41
39
  e[2] || (e[2] = n("span", { class: "sr-only" }, "CTRL", -1)),
42
40
  e[3] || (e[3] = n("span", { "aria-hidden": "true" }, "⌃", -1))
43
41
  ], 64)),
44
- K(" " + b(o.searchHotKey), 1)
42
+ B(" " + K(o.searchHotKey), 1)
45
43
  ]),
46
- default: m(() => [
44
+ default: u(() => [
47
45
  e[4] || (e[4] = n("span", { class: "sr-only" }, "Open Search", -1)),
48
46
  e[5] || (e[5] = n("span", {
49
47
  "aria-hidden": "true",
@@ -53,7 +51,7 @@ const O = /* @__PURE__ */ S({
53
51
  _: 1,
54
52
  __: [4, 5]
55
53
  }, 8, ["class"]),
56
- u(g, {
54
+ p(H, {
57
55
  modalState: l(t),
58
56
  hideModels: o.hideModels
59
57
  }, null, 8, ["modalState", "hideModels"])
@@ -61,5 +59,5 @@ const O = /* @__PURE__ */ S({
61
59
  }
62
60
  });
63
61
  export {
64
- O as default
62
+ D as default
65
63
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./SearchModal.vue2.js";
2
- import "./SearchModal.vue3.js";
2
+ /* empty css */
3
3
  import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-d38e7ee7"]]);
5
5
  export {
@@ -1,33 +1,33 @@
1
- import { defineComponent as A, ref as Y, watch as C, createBlock as T, openBlock as m, unref as n, withCtx as s, createElementVNode as a, createVNode as S, withKeys as v, withModifiers as g, isRef as _, createElementBlock as I, Fragment as b, renderList as j, createSlots as G, normalizeClass as J, createTextVNode as l, createCommentVNode as $, toDisplayString as c } from "vue";
1
+ import { defineComponent as A, ref as Y, watch as C, createBlock as T, openBlock as m, unref as n, withCtx as i, createElementVNode as a, createVNode as S, withKeys as g, withModifiers as v, isRef as _, createElementBlock as w, Fragment as I, renderList as j, createSlots as G, normalizeClass as J, createTextVNode as l, createCommentVNode as M, toDisplayString as c } from "vue";
2
2
  import { ScalarModal as Q, ScalarSearchInput as X, ScalarSearchResultList as Z, ScalarSearchResultItem as ee } from "@scalar/components";
3
3
  import { isDefined as te } from "@scalar/helpers/array/is-defined";
4
- import { scrollToId as E } from "@scalar/helpers/dom/scroll-to-id";
5
- import { ScalarIconTerminalWindow as N, ScalarIconTag as oe, ScalarIconBracketsCurly as ne, ScalarIconTextAlignLeft as ae } from "@scalar/icons";
6
- import { isOperationDeprecated as V } from "@scalar/oas-utils/helpers";
4
+ import { scrollToId as $ } from "@scalar/helpers/dom/scroll-to-id";
5
+ import { ScalarIconTerminalWindow as E, ScalarIconTag as oe, ScalarIconBracketsCurly as ne, ScalarIconTextAlignLeft as ae } from "@scalar/icons";
6
+ import { isOperationDeprecated as N } from "@scalar/oas-utils/helpers";
7
7
  import { nanoid as re } from "nanoid";
8
- import ie from "../../sidebar/components/SidebarHttpBadge.vue.js";
9
- import { useSearchIndex as se } from "../hooks/useSearchIndex.js";
10
- import { useSidebar as M } from "../../sidebar/hooks/useSidebar.js";
8
+ import se from "../../sidebar/components/SidebarHttpBadge.vue.js";
9
+ import { useSearchIndex as ie } from "../hooks/useSearchIndex.js";
10
+ import { useSidebar as V } from "../../sidebar/hooks/useSidebar.js";
11
11
  import { lazyBus as le } from "../../../components/Lazy/lazyBus.js";
12
- const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1" }, me = { class: "sr-only" }, Re = /* @__PURE__ */ A({
12
+ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1" }, me = { class: "sr-only" }, be = /* @__PURE__ */ A({
13
13
  __name: "SearchModal",
14
14
  props: {
15
15
  modalState: {},
16
16
  hideModels: { type: Boolean }
17
17
  },
18
18
  setup(L) {
19
- const f = L, u = re(), w = `${u}-search-result`, R = `${u}-search-instructions`, h = (o) => `${u}${o}`, { items: D } = M(), {
19
+ const u = L, f = re(), R = `${f}-search-result`, b = `${f}-search-instructions`, h = (o) => `${f}${o}`, { items: D } = V(), {
20
20
  resetSearch: F,
21
- selectedIndex: i,
21
+ selectedIndex: r,
22
22
  selectedSearchResult: k,
23
23
  searchResultsWithPlaceholderResults: d,
24
24
  query: p
25
- } = se(D), H = {
25
+ } = ie(D), H = {
26
26
  heading: ae,
27
27
  model: ne,
28
- operation: N,
28
+ operation: E,
29
29
  tag: oe,
30
- webhook: N
30
+ webhook: E
31
31
  }, O = {
32
32
  heading: "Heading",
33
33
  operation: "Operation",
@@ -36,59 +36,58 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
36
36
  webhook: "Webhook"
37
37
  }, P = Y(null);
38
38
  C(
39
- () => f.modalState.open,
39
+ () => u.modalState.open,
40
40
  (o) => {
41
41
  o && F();
42
42
  }
43
43
  );
44
- const { setCollapsedSidebarItem: U } = M(), K = /#(tag\/[^/]*)/;
44
+ const { setCollapsedSidebarItem: U } = V(), K = /#(tag\/[^/]*)/;
45
45
  function B(o) {
46
46
  let t = "models";
47
47
  const e = o.item.href.match(K);
48
- e != null && e.length && e.length > 1 && (t = e[1]), U(t, !0);
49
- const r = o.item.href.replace("#", "");
50
- if (document.getElementById(r))
51
- E(r), f.modalState.hide();
48
+ e?.length && e.length > 1 && (t = e[1]), U(t, !0);
49
+ const s = o.item.href.replace("#", "");
50
+ if (document.getElementById(s))
51
+ $(s), u.modalState.hide();
52
52
  else {
53
53
  const y = le.on((z) => {
54
- z.loaded === r && (E(r), y(), f.modalState.hide());
54
+ z.loaded === s && ($(s), y(), u.modalState.hide());
55
55
  });
56
56
  }
57
57
  }
58
- C(i, (o) => {
59
- var r;
58
+ C(r, (o) => {
60
59
  if (typeof o != "number")
61
60
  return;
62
- const t = d.value[o], e = h(t == null ? void 0 : t.item.href);
63
- (r = document.getElementById(e)) == null || r.scrollIntoView({
61
+ const t = d.value[o], e = h(t?.item.href);
62
+ document.getElementById(e)?.scrollIntoView({
64
63
  behavior: "smooth",
65
64
  block: "nearest"
66
65
  });
67
66
  });
68
67
  const x = (o) => {
69
68
  const t = o === "up" ? -1 : 1, e = d.value.length;
70
- if (typeof i.value == "number") {
71
- const r = (i.value + t + e) % e;
72
- i.value = r;
69
+ if (typeof r.value == "number") {
70
+ const s = (r.value + t + e) % e;
71
+ r.value = s;
73
72
  } else
74
- i.value = t === -1 ? e - 1 : 0;
73
+ r.value = t === -1 ? e - 1 : 0;
75
74
  };
76
75
  function W(o) {
77
76
  const t = new URL(window.location.href);
78
77
  return t.hash = o, t.toString();
79
78
  }
80
79
  function q() {
81
- if (!te(i.value))
80
+ if (!te(r.value))
82
81
  return;
83
82
  const o = d.value;
84
- o.length !== 0 && B(o[i.value]);
83
+ o.length !== 0 && B(o[r.value]);
85
84
  }
86
85
  return (o, t) => (m(), T(n(Q), {
87
86
  "aria-label": "Reference Search",
88
87
  state: o.modalState,
89
88
  variant: "search"
90
89
  }, {
91
- default: s(() => [
90
+ default: i(() => [
92
91
  a("div", {
93
92
  ref_key: "searchModalRef",
94
93
  ref: P,
@@ -100,47 +99,47 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
100
99
  "onUpdate:modelValue": t[0] || (t[0] = (e) => _(p) ? p.value = e : null),
101
100
  "aria-activedescendant": n(k) ? h(n(k).item.href) : void 0,
102
101
  "aria-autocomplete": "list",
103
- "aria-controls": w,
104
- "aria-describedby": R,
102
+ "aria-controls": R,
103
+ "aria-describedby": b,
105
104
  role: "combobox",
106
- onBlur: t[1] || (t[1] = (e) => i.value = void 0),
105
+ onBlur: t[1] || (t[1] = (e) => r.value = void 0),
107
106
  onKeydown: [
108
- t[2] || (t[2] = v(g((e) => x("down"), ["stop", "prevent"]), ["down"])),
109
- v(g(q, ["stop", "prevent"]), ["enter"]),
110
- t[3] || (t[3] = v(g((e) => x("up"), ["stop", "prevent"]), ["up"]))
107
+ t[2] || (t[2] = g(v((e) => x("down"), ["stop", "prevent"]), ["down"])),
108
+ g(v(q, ["stop", "prevent"]), ["enter"]),
109
+ t[3] || (t[3] = g(v((e) => x("up"), ["stop", "prevent"]), ["up"]))
111
110
  ]
112
111
  }, null, 8, ["modelValue", "aria-activedescendant", "onKeydown"])
113
112
  ], 512),
114
113
  S(n(Z), {
115
- id: w,
114
+ id: R,
116
115
  "aria-label": "Reference Search Results",
117
116
  class: "ref-search-results custom-scroll",
118
117
  noResults: !n(d).length
119
118
  }, {
120
- query: s(() => [
119
+ query: i(() => [
121
120
  l(c(n(p)), 1)
122
121
  ]),
123
- default: s(() => [
124
- (m(!0), I(b, null, j(n(d), (e, r) => (m(), T(n(ee), {
122
+ default: i(() => [
123
+ (m(!0), w(I, null, j(n(d), (e, s) => (m(), T(n(ee), {
125
124
  id: h(e.item.href),
126
125
  key: e.refIndex,
127
126
  href: W(e.item.href),
128
127
  icon: H[e.item.type],
129
- selected: n(i) === r,
128
+ selected: n(r) === s,
130
129
  onClick: (y) => B(e),
131
- onFocus: (y) => i.value = r
130
+ onFocus: (y) => r.value = s
132
131
  }, G({
133
- default: s(() => [
132
+ default: i(() => [
134
133
  a("span", {
135
134
  class: J({
136
- deprecated: "operation" in e.item.entry && n(V)(e.item.entry.operation)
135
+ deprecated: "operation" in e.item.entry && n(N)(e.item.entry.operation)
137
136
  })
138
137
  }, [
139
138
  a("span", ce, [
140
139
  l(c(O[e.item.type]) + ":  ", 1),
141
- "operation" in e.item.entry && n(V)(e.item.entry.operation) ? (m(), I(b, { key: 0 }, [
140
+ "operation" in e.item.entry && n(N)(e.item.entry.operation) ? (m(), w(I, { key: 0 }, [
142
141
  l(" (Deprecated)  ")
143
- ], 64)) : $("", !0)
142
+ ], 64)) : M("", !0)
144
143
  ]),
145
144
  l(" " + c(e.item.title) + " ", 1),
146
145
  t[4] || (t[4] = a("span", { class: "sr-only" }, ",", -1))
@@ -150,15 +149,15 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
150
149
  }, [
151
150
  e.item.type !== "webhook" && (e.item.method || e.item.path) && e.item.path !== e.item.title ? {
152
151
  name: "description",
153
- fn: s(() => [
152
+ fn: i(() => [
154
153
  a("span", de, [
155
- e.item.type === "operation" ? (m(), I(b, { key: 0 }, [
156
- S(ie, {
154
+ e.item.type === "operation" ? (m(), w(I, { key: 0 }, [
155
+ S(se, {
157
156
  "aria-hidden": "true",
158
157
  method: e.item.method ?? "get"
159
158
  }, null, 8, ["method"]),
160
159
  a("span", me, " HTTP Method: " + c(e.item.method ?? "get"), 1)
161
- ], 64)) : $("", !0),
160
+ ], 64)) : M("", !0),
162
161
  t[5] || (t[5] = a("span", { class: "sr-only" }, "Path: ", -1)),
163
162
  l(" " + c(e.item.path), 1)
164
163
  ])
@@ -166,7 +165,7 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
166
165
  key: "0"
167
166
  } : e.item.description ? {
168
167
  name: "description",
169
- fn: s(() => [
168
+ fn: i(() => [
170
169
  t[6] || (t[6] = a("span", { class: "sr-only" }, "Description: ", -1)),
171
170
  l(" " + c(e.item.description), 1)
172
171
  ]),
@@ -177,7 +176,7 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
177
176
  _: 1
178
177
  }, 8, ["noResults"]),
179
178
  a("div", {
180
- id: R,
179
+ id: b,
181
180
  class: "ref-search-meta"
182
181
  }, t[7] || (t[7] = [
183
182
  a("span", {
@@ -195,5 +194,5 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
195
194
  }
196
195
  });
197
196
  export {
198
- Re as default
197
+ be as default
199
198
  };