@scalar/api-reference 1.43.4 → 1.43.7

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 +85 -0
  2. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +7 -7
  3. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +5 -5
  4. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
  5. package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +5 -5
  6. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +11 -11
  7. package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +2 -2
  8. package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +7 -7
  9. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +2 -2
  10. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +1 -1
  11. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +16 -16
  12. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +2 -2
  13. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +1 -1
  14. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +7 -7
  15. package/dist/browser/standalone.js +18486 -18113
  16. package/dist/browser/webpack-stats.json +1 -1
  17. package/dist/components/Anchor/WithBreadcrumb.vue.js +3 -3
  18. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  19. package/dist/components/ApiReference.vue.js +1 -1
  20. package/dist/components/ApiReference.vue2.js +16 -11
  21. package/dist/components/Content/Auth/Auth.vue.js +7 -7
  22. package/dist/components/Content/Content.vue.js +28 -28
  23. package/dist/components/Content/Models/Model.vue.js +14 -14
  24. package/dist/components/Content/Models/ModelTag.vue.js +8 -8
  25. package/dist/components/Content/Models/components/ClassicLayout.vue2.js +15 -15
  26. package/dist/components/Content/Models/components/ModernLayout.vue.js +11 -11
  27. package/dist/components/Content/Operations/TraversedEntry.vue.js +51 -51
  28. package/dist/components/Content/Schema/Schema.vue2.js +40 -40
  29. package/dist/components/Content/Schema/SchemaComposition.vue.js +17 -17
  30. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +3 -3
  31. package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
  32. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +31 -31
  33. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
  34. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  36. package/dist/components/Content/Schema/SchemaProperty.vue2.js +88 -147
  37. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +2 -2
  38. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +6 -6
  39. package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +14 -0
  40. package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts.map +1 -0
  41. package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +31 -0
  42. package/dist/components/Content/Schema/helpers/get-enum-values.d.ts +9 -0
  43. package/dist/components/Content/Schema/helpers/get-enum-values.d.ts.map +1 -0
  44. package/dist/components/Content/Schema/helpers/get-enum-values.js +20 -0
  45. package/dist/components/Content/Schema/helpers/get-property-description.d.ts +9 -0
  46. package/dist/components/Content/Schema/helpers/get-property-description.d.ts.map +1 -0
  47. package/dist/components/Content/Schema/helpers/get-property-description.js +34 -0
  48. package/dist/components/Content/Schema/helpers/has-complex-array-items.d.ts +10 -0
  49. package/dist/components/Content/Schema/helpers/has-complex-array-items.d.ts.map +1 -0
  50. package/dist/components/Content/Schema/helpers/has-complex-array-items.js +48 -0
  51. package/dist/components/Content/Schema/helpers/should-display-description.d.ts +10 -0
  52. package/dist/components/Content/Schema/helpers/should-display-description.d.ts.map +1 -0
  53. package/dist/components/Content/Schema/helpers/should-display-description.js +12 -0
  54. package/dist/components/Content/Schema/helpers/should-display-heading.d.ts +11 -0
  55. package/dist/components/Content/Schema/helpers/should-display-heading.d.ts.map +1 -0
  56. package/dist/components/Content/Schema/helpers/should-display-heading.js +12 -0
  57. package/dist/components/Content/Schema/helpers/should-render-array-item-composition.d.ts +10 -0
  58. package/dist/components/Content/Schema/helpers/should-render-array-item-composition.d.ts.map +1 -0
  59. package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +15 -0
  60. package/dist/components/Content/Tags/Tag.vue.js +11 -11
  61. package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +6 -6
  62. package/dist/components/Content/Tags/components/ModernLayout.vue2.js +10 -10
  63. package/dist/components/Content/Tags/components/TagSection.vue.js +14 -14
  64. package/dist/components/Content/index.d.ts +1 -0
  65. package/dist/components/Content/index.d.ts.map +1 -1
  66. package/dist/components/GettingStarted.vue2.js +1 -1
  67. package/dist/components/HttpMethod/HttpMethod.vue.js +3 -3
  68. package/dist/components/IntersectionObserver.vue.js +2 -2
  69. package/dist/components/LoadingSkeleton.vue2.js +2 -2
  70. package/dist/components/MobileHeader.vue.js +6 -6
  71. package/dist/components/OperationPath.vue2.js +1 -1
  72. package/dist/components/OperationsList/OperationsList.vue2.js +5 -5
  73. package/dist/components/OperationsList/OperationsListItem.vue2.js +8 -8
  74. package/dist/components/RenderPlugins/RenderPlugins.vue.js +2 -2
  75. package/dist/components/Section/CompactSection.vue2.js +9 -9
  76. package/dist/components/Section/SectionAccordion.vue2.js +5 -5
  77. package/dist/components/Section/SectionContainer.vue2.js +1 -1
  78. package/dist/components/Section/SectionContainerAccordion.vue2.js +3 -3
  79. package/dist/components/Section/SectionContent.vue2.js +1 -1
  80. package/dist/components/Section/SectionHeader.vue2.js +2 -2
  81. package/dist/components/Section/SectionHeaderTag.vue2.js +1 -1
  82. package/dist/components/index.d.ts +1 -0
  83. package/dist/components/index.d.ts.map +1 -1
  84. package/dist/components/index.js +18 -16
  85. package/dist/features/Operation/Operation.vue.js +18 -18
  86. package/dist/features/Operation/components/Header.vue.js +8 -8
  87. package/dist/features/Operation/components/Headers.vue2.js +5 -5
  88. package/dist/features/Operation/components/OperationParameters.vue.js +17 -17
  89. package/dist/features/Operation/components/OperationResponses.vue.js +6 -6
  90. package/dist/features/Operation/components/ParameterList.vue.js +6 -6
  91. package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
  92. package/dist/features/Operation/components/RequestBody.vue2.js +17 -17
  93. package/dist/features/Operation/components/callbacks/Callback.vue2.js +10 -10
  94. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +3 -3
  95. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +49 -49
  96. package/dist/features/Operation/layouts/ModernLayout.vue2.js +50 -50
  97. package/dist/features/Search/components/SearchButton.vue.js +5 -5
  98. package/dist/features/Search/components/SearchModal.vue2.js +1 -1
  99. package/dist/features/Search/components/SearchResult.vue.js +14 -14
  100. package/dist/features/example-responses/ExampleResponse.vue2.js +3 -3
  101. package/dist/features/external-docs/ExternalDocs.vue.js +3 -3
  102. package/dist/features/info-object/Contact.vue.js +6 -6
  103. package/dist/features/info-object/License.vue.js +4 -4
  104. package/dist/features/info-object/TermsOfService.vue.js +2 -2
  105. package/dist/features/multiple-documents/DocumentSelector.vue.js +1 -1
  106. package/dist/features/specification-extension/SpecificationExtension.vue2.js +3 -3
  107. package/dist/features/test-request-button/TestRequestButton.vue2.js +2 -2
  108. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +4 -4
  109. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
  110. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
  111. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +2 -2
  112. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +1 -1
  113. package/dist/helpers/id-routing.d.ts.map +1 -1
  114. package/dist/helpers/id-routing.js +7 -1
  115. package/dist/helpers/load-from-perssistance.d.ts +32 -0
  116. package/dist/helpers/load-from-perssistance.d.ts.map +1 -0
  117. package/dist/helpers/load-from-perssistance.js +74 -0
  118. package/dist/helpers/map-config-plugins.d.ts +17 -2
  119. package/dist/helpers/map-config-plugins.d.ts.map +1 -1
  120. package/dist/helpers/map-config-plugins.js +20 -22
  121. package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -1
  122. package/dist/helpers/map-config-to-workspace-store.js +1 -8
  123. package/dist/helpers/storage.d.ts +6 -6
  124. package/dist/helpers/storage.d.ts.map +1 -1
  125. package/dist/helpers/storage.js +15 -10
  126. package/dist/plugins/hooks/usePluginManager.js +1 -1
  127. package/dist/style.css +133 -116
  128. package/package.json +31 -31
@@ -63,44 +63,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
63
  const { copyToClipboard } = useClipboard();
64
64
  return (_ctx, _cache) => {
65
65
  return openBlock(), createBlock(unref(SectionAccordion), {
66
- id: _ctx.id,
66
+ id: __props.id,
67
67
  "aria-label": operationTitle.value,
68
68
  class: "reference-endpoint",
69
- modelValue: !_ctx.isCollapsed,
69
+ modelValue: !__props.isCollapsed,
70
70
  transparent: "",
71
- "onUpdate:modelValue": _cache[2] || (_cache[2] = (value) => _ctx.eventBus?.emit("toggle:nav-item", { id: _ctx.id, open: value }))
71
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = (value) => __props.eventBus?.emit("toggle:nav-item", { id: __props.id, open: value }))
72
72
  }, createSlots({
73
73
  title: withCtx(() => [
74
74
  createElementVNode("div", _hoisted_1, [
75
75
  createElementVNode("div", _hoisted_2, [
76
76
  createVNode(unref(_sfc_main$7), {
77
77
  class: "endpoint-type",
78
- method: _ctx.method,
78
+ method: __props.method,
79
79
  short: ""
80
80
  }, null, 8, ["method"]),
81
81
  createVNode(unref(_sfc_main$8), {
82
82
  class: "endpoint-anchor",
83
- onCopyAnchorUrl: _cache[0] || (_cache[0] = () => _ctx.eventBus?.emit("copy-url:nav-item", { id: _ctx.id }))
83
+ onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.id }))
84
84
  }, {
85
85
  default: withCtx(() => [
86
86
  createElementVNode("h3", _hoisted_3, [
87
87
  createElementVNode("div", _hoisted_4, [
88
88
  createVNode(OperationPath, {
89
- deprecated: unref(isOperationDeprecated)(_ctx.operation),
90
- path: _ctx.path
89
+ deprecated: unref(isOperationDeprecated)(__props.operation),
90
+ path: __props.path
91
91
  }, null, 8, ["deprecated", "path"])
92
92
  ]),
93
93
  createElementVNode("div", _hoisted_5, toDisplayString(operationTitle.value), 1),
94
- unref(getOperationStability)(_ctx.operation) ? (openBlock(), createBlock(unref(Badge), {
94
+ unref(getOperationStability)(__props.operation) ? (openBlock(), createBlock(unref(Badge), {
95
95
  key: 0,
96
- class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(_ctx.operation)])
96
+ class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(__props.operation)])
97
97
  }, {
98
98
  default: withCtx(() => [
99
- createTextVNode(toDisplayString(unref(getOperationStability)(_ctx.operation)), 1)
99
+ createTextVNode(toDisplayString(unref(getOperationStability)(__props.operation)), 1)
100
100
  ]),
101
101
  _: 1
102
102
  }, 8, ["class"])) : createCommentVNode("", true),
103
- _ctx.isWebhook ? (openBlock(), createBlock(unref(Badge), {
103
+ __props.isWebhook ? (openBlock(), createBlock(unref(Badge), {
104
104
  key: 1,
105
105
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
106
106
  }, {
@@ -111,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
111
111
  _: 1
112
112
  })) : createCommentVNode("", true),
113
113
  createVNode(unref(_sfc_main$6), {
114
- badges: _ctx.operation["x-badges"],
114
+ badges: __props.operation["x-badges"],
115
115
  position: "before"
116
116
  }, null, 8, ["badges"])
117
117
  ])
@@ -123,29 +123,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
123
  ]),
124
124
  actions: withCtx(({ active }) => [
125
125
  createVNode(unref(_sfc_main$6), {
126
- badges: _ctx.operation["x-badges"],
126
+ badges: __props.operation["x-badges"],
127
127
  position: "after"
128
128
  }, null, 8, ["badges"]),
129
- !_ctx.options.hideTestRequestButton ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
130
- active && !_ctx.isWebhook ? (openBlock(), createBlock(unref(TestRequestButton), {
129
+ !__props.options.hideTestRequestButton ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
130
+ active && !__props.isWebhook ? (openBlock(), createBlock(unref(TestRequestButton), {
131
131
  key: 0,
132
- id: _ctx.id,
133
- eventBus: _ctx.eventBus,
134
- method: _ctx.method,
135
- path: _ctx.path
132
+ id: __props.id,
133
+ eventBus: __props.eventBus,
134
+ method: __props.method,
135
+ path: __props.path
136
136
  }, null, 8, ["id", "eventBus", "method", "path"])) : (openBlock(), createBlock(unref(ScalarIconPlay), {
137
137
  key: 1,
138
138
  class: "endpoint-try-hint size-4.5"
139
139
  }))
140
140
  ], 64)) : createCommentVNode("", true),
141
- _ctx.options.showOperationId && _ctx.operation.operationId ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.operation.operationId), 1)) : createCommentVNode("", true),
141
+ __props.options.showOperationId && __props.operation.operationId ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(__props.operation.operationId), 1)) : createCommentVNode("", true),
142
142
  createVNode(unref(ScalarIconButton), {
143
143
  class: "endpoint-copy p-0.5",
144
144
  icon: unref(ScalarIconCopy),
145
145
  label: "Copy endpoint URL",
146
146
  size: "xs",
147
147
  variant: "ghost",
148
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(copyToClipboard)(_ctx.path), ["stop"]))
148
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(copyToClipboard)(__props.path), ["stop"]))
149
149
  }, null, 8, ["icon"])
150
150
  ]),
151
151
  default: withCtx(() => [
@@ -156,41 +156,41 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
156
  ])) : createCommentVNode("", true),
157
157
  createElementVNode("div", _hoisted_10, [
158
158
  createVNode(_sfc_main$2, {
159
- eventBus: _ctx.eventBus,
160
- options: _ctx.options,
159
+ eventBus: __props.eventBus,
160
+ options: __props.options,
161
161
  parameters: (
162
162
  // These have been resolved in the Operation.vue component
163
- _ctx.operation.parameters
163
+ __props.operation.parameters
164
164
  ),
165
- requestBody: unref(getResolvedRef)(_ctx.operation.requestBody)
165
+ requestBody: unref(getResolvedRef)(__props.operation.requestBody)
166
166
  }, null, 8, ["eventBus", "options", "parameters", "requestBody"])
167
167
  ]),
168
168
  createElementVNode("div", _hoisted_11, [
169
169
  createVNode(_sfc_main$3, {
170
- eventBus: _ctx.eventBus,
171
- options: _ctx.options,
172
- responses: _ctx.operation.responses
170
+ eventBus: __props.eventBus,
171
+ options: __props.options,
172
+ responses: __props.operation.responses
173
173
  }, null, 8, ["eventBus", "options", "responses"])
174
174
  ]),
175
- _ctx.operation?.callbacks ? (openBlock(), createElementBlock("div", _hoisted_12, [
175
+ __props.operation?.callbacks ? (openBlock(), createElementBlock("div", _hoisted_12, [
176
176
  createVNode(_sfc_main$4, {
177
- callbacks: _ctx.operation.callbacks,
178
- eventBus: _ctx.eventBus,
179
- options: _ctx.options,
180
- path: _ctx.path
177
+ callbacks: __props.operation.callbacks,
178
+ eventBus: __props.eventBus,
179
+ options: __props.options,
180
+ path: __props.path
181
181
  }, null, 8, ["callbacks", "eventBus", "options", "path"])
182
182
  ])) : createCommentVNode("", true)
183
183
  ]),
184
- _ctx.operation.responses ? (openBlock(), createBlock(unref(ExampleResponses), {
184
+ __props.operation.responses ? (openBlock(), createBlock(unref(ExampleResponses), {
185
185
  key: 0,
186
186
  class: "operation-example-card",
187
- responses: _ctx.operation.responses
187
+ responses: __props.operation.responses
188
188
  }, null, 8, ["responses"])) : createCommentVNode("", true),
189
189
  createElementVNode("div", null, [
190
- _ctx.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
190
+ __props.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
191
191
  default: withCtx(() => [
192
192
  createVNode(unref(_sfc_main$5), {
193
- value: _ctx.operation.externalDocs
193
+ value: __props.operation.externalDocs
194
194
  }, null, 8, ["value"])
195
195
  ]),
196
196
  _: 1
@@ -199,16 +199,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
199
199
  default: withCtx(() => [
200
200
  createVNode(unref(OperationCodeSample), {
201
201
  class: "operation-example-card",
202
- clientOptions: _ctx.clientOptions,
203
- eventBus: _ctx.eventBus,
202
+ clientOptions: __props.clientOptions,
203
+ eventBus: __props.eventBus,
204
204
  fallback: "",
205
- isWebhook: _ctx.isWebhook,
206
- method: _ctx.method,
207
- operation: _ctx.operation,
208
- path: _ctx.path,
209
- securitySchemes: _ctx.selectedSecuritySchemes,
210
- selectedClient: _ctx.selectedClient,
211
- selectedServer: _ctx.selectedServer
205
+ isWebhook: __props.isWebhook,
206
+ method: __props.method,
207
+ operation: __props.operation,
208
+ path: __props.path,
209
+ securitySchemes: __props.selectedSecuritySchemes,
210
+ selectedClient: __props.selectedClient,
211
+ selectedServer: __props.selectedServer
212
212
  }, null, 8, ["clientOptions", "eventBus", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
213
213
  ]),
214
214
  _: 1
@@ -218,15 +218,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
218
218
  ]),
219
219
  _: 2
220
220
  }, [
221
- _ctx.operation.description ? {
221
+ __props.operation.description ? {
222
222
  name: "description",
223
223
  fn: withCtx(() => [
224
224
  createVNode(unref(ScalarMarkdown), {
225
- anchorPrefix: _ctx.id,
225
+ anchorPrefix: __props.id,
226
226
  "aria-label": "Operation Description",
227
227
  role: "group",
228
228
  transformType: "heading",
229
- value: _ctx.operation.description,
229
+ value: __props.operation.description,
230
230
  withAnchors: "",
231
231
  withImages: ""
232
232
  }, null, 8, ["anchorPrefix", "value"])
@@ -49,33 +49,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  const operationExtensions = computed(() => getXKeysFromObject(__props.operation));
50
50
  return (_ctx, _cache) => {
51
51
  return openBlock(), createBlock(unref(Section), {
52
- id: _ctx.id,
52
+ id: __props.id,
53
53
  "aria-labelledby": unref(labelId),
54
54
  label: operationTitle.value,
55
55
  tabindex: "-1",
56
- onIntersecting: _cache[1] || (_cache[1] = () => _ctx.eventBus?.emit("intersecting:nav-item", { id: _ctx.id }))
56
+ onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.id }))
57
57
  }, {
58
58
  default: withCtx(() => [
59
59
  createVNode(unref(SectionContent), null, {
60
60
  default: withCtx(() => [
61
61
  createElementVNode("div", _hoisted_1, [
62
62
  createElementVNode("div", _hoisted_2, [
63
- _ctx.options?.showOperationId && _ctx.operation.operationId ? (openBlock(), createBlock(unref(Badge), { key: 0 }, {
63
+ __props.options?.showOperationId && __props.operation.operationId ? (openBlock(), createBlock(unref(Badge), { key: 0 }, {
64
64
  default: withCtx(() => [
65
- createTextVNode(toDisplayString(_ctx.operation.operationId), 1)
65
+ createTextVNode(toDisplayString(__props.operation.operationId), 1)
66
66
  ]),
67
67
  _: 1
68
68
  })) : createCommentVNode("", true),
69
- unref(getOperationStability)(_ctx.operation) ? (openBlock(), createBlock(unref(Badge), {
69
+ unref(getOperationStability)(__props.operation) ? (openBlock(), createBlock(unref(Badge), {
70
70
  key: 1,
71
- class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(_ctx.operation)])
71
+ class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(__props.operation)])
72
72
  }, {
73
73
  default: withCtx(() => [
74
- createTextVNode(toDisplayString(unref(getOperationStability)(_ctx.operation)), 1)
74
+ createTextVNode(toDisplayString(unref(getOperationStability)(__props.operation)), 1)
75
75
  ]),
76
76
  _: 1
77
77
  }, 8, ["class"])) : createCommentVNode("", true),
78
- _ctx.isWebhook ? (openBlock(), createBlock(unref(Badge), {
78
+ __props.isWebhook ? (openBlock(), createBlock(unref(Badge), {
79
79
  key: 2,
80
80
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
81
81
  }, {
@@ -86,24 +86,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
86
  _: 1
87
87
  })) : createCommentVNode("", true),
88
88
  createVNode(unref(_sfc_main$1), {
89
- badges: _ctx.operation["x-badges"],
89
+ badges: __props.operation["x-badges"],
90
90
  position: "before"
91
91
  }, null, 8, ["badges"])
92
92
  ]),
93
93
  createElementVNode("div", _hoisted_3, [
94
94
  createVNode(unref(_sfc_main$1), {
95
- badges: _ctx.operation["x-badges"],
95
+ badges: __props.operation["x-badges"],
96
96
  position: "after"
97
97
  }, null, 8, ["badges"])
98
98
  ])
99
99
  ]),
100
100
  createElementVNode("div", {
101
- class: normalizeClass(unref(isOperationDeprecated)(_ctx.operation) ? "deprecated" : "")
101
+ class: normalizeClass(unref(isOperationDeprecated)(__props.operation) ? "deprecated" : "")
102
102
  }, [
103
103
  createVNode(unref(SectionHeader), null, {
104
104
  default: withCtx(() => [
105
105
  createVNode(unref(_sfc_main$2), {
106
- onCopyAnchorUrl: _cache[0] || (_cache[0] = () => _ctx.eventBus?.emit("copy-url:nav-item", { id: _ctx.id }))
106
+ onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.id }))
107
107
  }, {
108
108
  default: withCtx(() => [
109
109
  createVNode(unref(SectionHeaderTag), {
@@ -129,40 +129,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
129
129
  createElementVNode("div", _hoisted_4, [
130
130
  createVNode(_sfc_main$3, { value: operationExtensions.value }, null, 8, ["value"]),
131
131
  createVNode(unref(ScalarMarkdown), {
132
- anchorPrefix: _ctx.id,
132
+ anchorPrefix: __props.id,
133
133
  "aria-label": "Operation Description",
134
134
  role: "group",
135
135
  transformType: "heading",
136
- value: _ctx.operation.description,
136
+ value: __props.operation.description,
137
137
  withAnchors: "",
138
138
  withImages: ""
139
139
  }, null, 8, ["anchorPrefix", "value"]),
140
140
  createVNode(_sfc_main$4, {
141
- breadcrumb: [_ctx.id],
142
- eventBus: _ctx.eventBus,
143
- options: _ctx.options,
141
+ breadcrumb: [__props.id],
142
+ eventBus: __props.eventBus,
143
+ options: __props.options,
144
144
  parameters: (
145
145
  // These have been resolved in the Operation.vue component
146
- _ctx.operation.parameters
146
+ __props.operation.parameters
147
147
  ),
148
- requestBody: unref(getResolvedRef)(_ctx.operation.requestBody)
148
+ requestBody: unref(getResolvedRef)(__props.operation.requestBody)
149
149
  }, null, 8, ["breadcrumb", "eventBus", "options", "parameters", "requestBody"]),
150
150
  createVNode(_sfc_main$5, {
151
- breadcrumb: [_ctx.id],
152
- collapsableItems: !_ctx.options.expandAllResponses,
153
- eventBus: _ctx.eventBus,
154
- options: _ctx.options,
155
- responses: _ctx.operation.responses
151
+ breadcrumb: [__props.id],
152
+ collapsableItems: !__props.options.expandAllResponses,
153
+ eventBus: __props.eventBus,
154
+ options: __props.options,
155
+ responses: __props.operation.responses
156
156
  }, null, 8, ["breadcrumb", "collapsableItems", "eventBus", "options", "responses"]),
157
157
  createVNode(unref(ScalarErrorBoundary), null, {
158
158
  default: withCtx(() => [
159
- _ctx.operation.callbacks ? (openBlock(), createBlock(_sfc_main$6, {
159
+ __props.operation.callbacks ? (openBlock(), createBlock(_sfc_main$6, {
160
160
  key: 0,
161
- callbacks: _ctx.operation.callbacks,
161
+ callbacks: __props.operation.callbacks,
162
162
  class: "mt-6",
163
- eventBus: _ctx.eventBus,
164
- options: _ctx.options,
165
- path: _ctx.path
163
+ eventBus: __props.eventBus,
164
+ options: __props.options,
165
+ path: __props.path
166
166
  }, null, 8, ["callbacks", "eventBus", "options", "path"])) : createCommentVNode("", true)
167
167
  ]),
168
168
  _: 1
@@ -174,10 +174,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
174
174
  createVNode(unref(SectionColumn), null, {
175
175
  default: withCtx(() => [
176
176
  createElementVNode("div", _hoisted_5, [
177
- _ctx.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
177
+ __props.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
178
178
  default: withCtx(() => [
179
179
  createVNode(unref(_sfc_main$7), {
180
- value: _ctx.operation.externalDocs
180
+ value: __props.operation.externalDocs
181
181
  }, null, 8, ["value"])
182
182
  ]),
183
183
  _: 1
@@ -185,35 +185,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
185
185
  createVNode(unref(ScalarErrorBoundary), null, {
186
186
  default: withCtx(() => [
187
187
  createVNode(unref(OperationCodeSample), {
188
- clientOptions: _ctx.clientOptions,
189
- eventBus: _ctx.eventBus,
188
+ clientOptions: __props.clientOptions,
189
+ eventBus: __props.eventBus,
190
190
  fallback: "",
191
- isWebhook: _ctx.isWebhook,
192
- method: _ctx.method,
193
- operation: _ctx.operation,
194
- path: _ctx.path,
195
- securitySchemes: _ctx.selectedSecuritySchemes,
196
- selectedClient: _ctx.selectedClient,
197
- selectedServer: _ctx.selectedServer
191
+ isWebhook: __props.isWebhook,
192
+ method: __props.method,
193
+ operation: __props.operation,
194
+ path: __props.path,
195
+ securitySchemes: __props.selectedSecuritySchemes,
196
+ selectedClient: __props.selectedClient,
197
+ selectedServer: __props.selectedServer
198
198
  }, createSlots({
199
199
  header: withCtx(() => [
200
200
  createVNode(OperationPath, {
201
201
  class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
202
- deprecated: _ctx.operation?.deprecated,
203
- path: _ctx.path
202
+ deprecated: __props.operation?.deprecated,
203
+ path: __props.path
204
204
  }, null, 8, ["deprecated", "path"])
205
205
  ]),
206
206
  _: 2
207
207
  }, [
208
- !_ctx.isWebhook ? {
208
+ !__props.isWebhook ? {
209
209
  name: "footer",
210
210
  fn: withCtx(() => [
211
- !_ctx.options.hideTestRequestButton ? (openBlock(), createBlock(unref(TestRequestButton), {
211
+ !__props.options.hideTestRequestButton ? (openBlock(), createBlock(unref(TestRequestButton), {
212
212
  key: 0,
213
- id: _ctx.id,
214
- eventBus: _ctx.eventBus,
215
- method: _ctx.method,
216
- path: _ctx.path
213
+ id: __props.id,
214
+ eventBus: __props.eventBus,
215
+ method: __props.method,
216
+ path: __props.path
217
217
  }, null, 8, ["id", "eventBus", "method", "path"])) : createCommentVNode("", true)
218
218
  ]),
219
219
  key: "0"
@@ -224,9 +224,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
224
224
  }),
225
225
  createVNode(unref(ScalarErrorBoundary), null, {
226
226
  default: withCtx(() => [
227
- _ctx.operation.responses ? (openBlock(), createBlock(unref(ExampleResponses), {
227
+ __props.operation.responses ? (openBlock(), createBlock(unref(ExampleResponses), {
228
228
  key: 0,
229
- responses: _ctx.operation.responses,
229
+ responses: __props.operation.responses,
230
230
  style: { "margin-top": "12px" }
231
231
  }, null, 8, ["responses"])) : createCommentVNode("", true)
232
232
  ]),
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  }
43
43
  return (_ctx, _cache) => {
44
44
  return openBlock(), createElementBlock(Fragment, null, [
45
- _ctx.forceIcon ? (openBlock(), createBlock(unref(ScalarIconButton), {
45
+ __props.forceIcon ? (openBlock(), createBlock(unref(ScalarIconButton), {
46
46
  key: 0,
47
47
  icon: unref(ScalarIconMagnifyingGlass),
48
48
  label: "Search",
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
62
  _cache[2] || (_cache[2] = createElementVNode("span", { class: "sr-only" }, "CTRL", -1)),
63
63
  _cache[3] || (_cache[3] = createElementVNode("span", { "aria-hidden": "true" }, "⌃", -1))
64
64
  ], 64)),
65
- createTextVNode(" " + toDisplayString(_ctx.searchHotKey), 1)
65
+ createTextVNode(" " + toDisplayString(__props.searchHotKey), 1)
66
66
  ]),
67
67
  default: withCtx(() => [
68
68
  _cache[4] || (_cache[4] = createElementVNode("span", { class: "sr-only" }, "Open Search", -1)),
@@ -74,9 +74,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
74
74
  _: 1
75
75
  }, 8, ["class"])),
76
76
  createVNode(SearchModal, {
77
- document: _ctx.document,
78
- eventBus: _ctx.eventBus,
79
- hideModels: _ctx.hideModels,
77
+ document: __props.document,
78
+ eventBus: __props.eventBus,
79
+ hideModels: __props.hideModels,
80
80
  modalState: unref(modalState)
81
81
  }, null, 8, ["document", "eventBus", "hideModels", "modalState"])
82
82
  ], 64);
@@ -53,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
53
  return (_ctx, _cache) => {
54
54
  return openBlock(), createBlock(unref(ScalarModal), {
55
55
  "aria-label": "Reference Search",
56
- state: _ctx.modalState,
56
+ state: __props.modalState,
57
57
  variant: "search"
58
58
  }, {
59
59
  default: withCtx(() => [
@@ -29,49 +29,49 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
29
  };
30
30
  return (_ctx, _cache) => {
31
31
  return openBlock(), createBlock(unref(ScalarSearchResultItem), {
32
- id: _ctx.id,
33
- icon: ENTRY_ICONS[_ctx.result.item.type],
34
- selected: _ctx.isSelected
32
+ id: __props.id,
33
+ icon: ENTRY_ICONS[__props.result.item.type],
34
+ selected: __props.isSelected
35
35
  }, createSlots({
36
36
  default: withCtx(() => [
37
37
  createElementVNode("span", {
38
38
  class: normalizeClass({
39
- "text-decoration-line": _ctx.result.item.entry.type === "operation" && _ctx.result.item.entry.isDeprecated
39
+ "text-decoration-line": __props.result.item.entry.type === "operation" && __props.result.item.entry.isDeprecated
40
40
  })
41
41
  }, [
42
42
  createElementVNode("span", _hoisted_1, [
43
- createTextVNode(toDisplayString(ENTRY_LABELS[_ctx.result.item.type]) + ":  ", 1),
44
- _ctx.result.item.entry.type === "operation" && _ctx.result.item.entry.isDeprecated ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
43
+ createTextVNode(toDisplayString(ENTRY_LABELS[__props.result.item.type]) + ":  ", 1),
44
+ __props.result.item.entry.type === "operation" && __props.result.item.entry.isDeprecated ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
45
45
  createTextVNode(" (Deprecated)  ")
46
46
  ], 64)) : createCommentVNode("", true)
47
47
  ]),
48
- createTextVNode(" " + toDisplayString(_ctx.result.item.title) + " ", 1),
48
+ createTextVNode(" " + toDisplayString(__props.result.item.title) + " ", 1),
49
49
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, ",", -1))
50
50
  ], 2)
51
51
  ]),
52
52
  _: 2
53
53
  }, [
54
- _ctx.result.item.type !== "webhook" && (_ctx.result.item.method || _ctx.result.item.path) && _ctx.result.item.path !== _ctx.result.item.title ? {
54
+ __props.result.item.type !== "webhook" && (__props.result.item.method || __props.result.item.path) && __props.result.item.path !== __props.result.item.title ? {
55
55
  name: "description",
56
56
  fn: withCtx(() => [
57
57
  createElementVNode("span", _hoisted_2, [
58
- _ctx.result.item.type === "operation" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
58
+ __props.result.item.type === "operation" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
59
59
  createVNode(unref(HttpMethod), {
60
60
  "aria-hidden": "true",
61
- method: _ctx.result.item.method ?? "get"
61
+ method: __props.result.item.method ?? "get"
62
62
  }, null, 8, ["method"]),
63
- createElementVNode("span", _hoisted_3, " HTTP Method: " + toDisplayString(_ctx.result.item.method ?? "get"), 1)
63
+ createElementVNode("span", _hoisted_3, " HTTP Method: " + toDisplayString(__props.result.item.method ?? "get"), 1)
64
64
  ], 64)) : createCommentVNode("", true),
65
65
  _cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Path: ", -1)),
66
- createTextVNode(" " + toDisplayString(_ctx.result.item.path), 1)
66
+ createTextVNode(" " + toDisplayString(__props.result.item.path), 1)
67
67
  ])
68
68
  ]),
69
69
  key: "0"
70
- } : _ctx.result.item.description ? {
70
+ } : __props.result.item.description ? {
71
71
  name: "description",
72
72
  fn: withCtx(() => [
73
73
  _cache[2] || (_cache[2] = createElementVNode("span", { class: "sr-only" }, "Description: ", -1)),
74
- createTextVNode(" " + toDisplayString(_ctx.result.item.description), 1)
74
+ createTextVNode(" " + toDisplayString(__props.result.item.description), 1)
75
75
  ]),
76
76
  key: "1"
77
77
  } : void 0
@@ -34,17 +34,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  () => prettyPrintJson(getContent())
35
35
  );
36
36
  return (_ctx, _cache) => {
37
- return _ctx.example !== void 0 && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
37
+ return __props.example !== void 0 && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
38
38
  key: 0,
39
39
  class: "bg-b-2 -outline-offset-2",
40
40
  lang: "json",
41
41
  prettyPrintedContent: prettyPrintedContent.value
42
- }, null, 8, ["prettyPrintedContent"])) : _ctx.response?.schema && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
42
+ }, null, 8, ["prettyPrintedContent"])) : __props.response?.schema && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
43
43
  key: 1,
44
44
  class: "bg-b-2 -outline-offset-2",
45
45
  lang: "json",
46
46
  prettyPrintedContent: prettyPrintedContent.value
47
- }, null, 8, ["prettyPrintedContent"])) : (_ctx.example !== void 0 || _ctx.response?.schema) && shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarVirtualText), {
47
+ }, null, 8, ["prettyPrintedContent"])) : (__props.example !== void 0 || __props.response?.schema) && shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarVirtualText), {
48
48
  key: 2,
49
49
  containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
50
50
  contentClass: "language-plaintext whitespace-pre font-code text-base",
@@ -20,9 +20,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  },
21
21
  setup(__props) {
22
22
  return (_ctx, _cache) => {
23
- return _ctx.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
23
+ return __props.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
24
24
  createElementVNode("a", {
25
- href: _ctx.value.url,
25
+ href: __props.value.url,
26
26
  class: "text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",
27
27
  target: "_blank",
28
28
  rel: "noopener noreferrer"
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  weight: "bold",
32
32
  class: "size-3 text-current"
33
33
  }),
34
- _ctx.value.description ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(_ctx.value.description), 1)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.value.url), 1))
34
+ __props.value.description ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.value.description), 1)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.value.url), 1))
35
35
  ], 8, _hoisted_2)
36
36
  ])) : createCommentVNode("", true);
37
37
  };
@@ -22,21 +22,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  }
23
23
  });
24
24
  return (_ctx, _cache) => {
25
- return _ctx.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
26
- _ctx.value?.email ? (openBlock(), createElementBlock("a", {
25
+ return __props.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
26
+ __props.value?.email ? (openBlock(), createElementBlock("a", {
27
27
  key: 0,
28
28
  class: normalizeClass(unref(variants)({ link: true })),
29
- href: `mailto:${_ctx.value?.email}`
29
+ href: `mailto:${__props.value?.email}`
30
30
  }, [
31
31
  createVNode(unref(ScalarIconEnvelopeSimple), {
32
32
  weight: "bold",
33
33
  class: "size-3 text-current"
34
34
  }),
35
- createElementVNode("span", _hoisted_3, toDisplayString(_ctx.value.name), 1)
36
- ], 10, _hoisted_2)) : _ctx.value?.name ? (openBlock(), createElementBlock("span", {
35
+ createElementVNode("span", _hoisted_3, toDisplayString(__props.value.name), 1)
36
+ ], 10, _hoisted_2)) : __props.value?.name ? (openBlock(), createElementBlock("span", {
37
37
  key: 1,
38
38
  class: normalizeClass(unref(variants)({ link: false }))
39
- }, toDisplayString(_ctx.value.name), 3)) : createCommentVNode("", true)
39
+ }, toDisplayString(__props.value.name), 3)) : createCommentVNode("", true)
40
40
  ])) : createCommentVNode("", true);
41
41
  };
42
42
  }
@@ -12,10 +12,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  setup(__props) {
13
13
  return (_ctx, _cache) => {
14
14
  return openBlock(), createElementBlock("div", _hoisted_1, [
15
- _ctx.value?.url ? (openBlock(), createElementBlock("a", {
15
+ __props.value?.url ? (openBlock(), createElementBlock("a", {
16
16
  key: 0,
17
17
  class: "text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",
18
- href: _ctx.value.url,
18
+ href: __props.value.url,
19
19
  target: "_blank",
20
20
  rel: "noopener noreferrer"
21
21
  }, [
@@ -23,13 +23,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  weight: "bold",
24
24
  class: "size-3 text-current"
25
25
  }),
26
- createElementVNode("span", _hoisted_3, toDisplayString(_ctx.value?.name || _ctx.value.identifier || _ctx.value.url), 1)
26
+ createElementVNode("span", _hoisted_3, toDisplayString(__props.value?.name || __props.value.identifier || __props.value.url), 1)
27
27
  ], 8, _hoisted_2)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
28
28
  createVNode(unref(ScalarIconGavel), {
29
29
  weight: "bold",
30
30
  class: "size-3 text-current"
31
31
  }),
32
- createElementVNode("span", _hoisted_4, toDisplayString(_ctx.value?.name), 1)
32
+ createElementVNode("span", _hoisted_4, toDisplayString(__props.value?.name), 1)
33
33
  ], 64))
34
34
  ]);
35
35
  };