@scalar/api-reference 1.43.5 → 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 (95) hide show
  1. package/CHANGELOG.md +59 -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.vue2.js +5 -5
  5. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +11 -11
  6. package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +2 -2
  7. package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +7 -7
  8. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +2 -2
  9. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +1 -1
  10. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +16 -16
  11. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +2 -2
  12. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +1 -1
  13. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +7 -7
  14. package/dist/browser/standalone.js +18437 -18030
  15. package/dist/browser/webpack-stats.json +1 -1
  16. package/dist/components/Anchor/WithBreadcrumb.vue.js +3 -3
  17. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  18. package/dist/components/ApiReference.vue.js +1 -1
  19. package/dist/components/ApiReference.vue2.js +16 -11
  20. package/dist/components/Content/Auth/Auth.vue.js +7 -7
  21. package/dist/components/Content/Content.vue.js +28 -28
  22. package/dist/components/Content/Models/Model.vue.js +14 -14
  23. package/dist/components/Content/Models/ModelTag.vue.js +8 -8
  24. package/dist/components/Content/Models/components/ClassicLayout.vue2.js +15 -15
  25. package/dist/components/Content/Models/components/ModernLayout.vue.js +11 -11
  26. package/dist/components/Content/Operations/TraversedEntry.vue.js +51 -51
  27. package/dist/components/Content/Schema/Schema.vue2.js +40 -40
  28. package/dist/components/Content/Schema/SchemaComposition.vue.js +17 -17
  29. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +3 -3
  30. package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
  31. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +31 -31
  32. package/dist/components/Content/Schema/SchemaProperty.vue2.js +33 -33
  33. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +2 -2
  34. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +6 -6
  35. package/dist/components/Content/Tags/Tag.vue.js +11 -11
  36. package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +6 -6
  37. package/dist/components/Content/Tags/components/ModernLayout.vue2.js +10 -10
  38. package/dist/components/Content/Tags/components/TagSection.vue.js +14 -14
  39. package/dist/components/GettingStarted.vue2.js +1 -1
  40. package/dist/components/HttpMethod/HttpMethod.vue.js +3 -3
  41. package/dist/components/IntersectionObserver.vue.js +2 -2
  42. package/dist/components/LoadingSkeleton.vue2.js +2 -2
  43. package/dist/components/MobileHeader.vue.js +6 -6
  44. package/dist/components/OperationPath.vue2.js +1 -1
  45. package/dist/components/OperationsList/OperationsList.vue2.js +5 -5
  46. package/dist/components/OperationsList/OperationsListItem.vue2.js +8 -8
  47. package/dist/components/RenderPlugins/RenderPlugins.vue.js +2 -2
  48. package/dist/components/Section/CompactSection.vue2.js +9 -9
  49. package/dist/components/Section/SectionAccordion.vue2.js +5 -5
  50. package/dist/components/Section/SectionContainer.vue2.js +1 -1
  51. package/dist/components/Section/SectionContainerAccordion.vue2.js +3 -3
  52. package/dist/components/Section/SectionContent.vue2.js +1 -1
  53. package/dist/components/Section/SectionHeader.vue2.js +2 -2
  54. package/dist/components/Section/SectionHeaderTag.vue2.js +1 -1
  55. package/dist/features/Operation/Operation.vue.js +18 -18
  56. package/dist/features/Operation/components/Header.vue.js +8 -8
  57. package/dist/features/Operation/components/Headers.vue2.js +5 -5
  58. package/dist/features/Operation/components/OperationParameters.vue.js +17 -17
  59. package/dist/features/Operation/components/OperationResponses.vue.js +6 -6
  60. package/dist/features/Operation/components/ParameterList.vue.js +6 -6
  61. package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
  62. package/dist/features/Operation/components/RequestBody.vue2.js +17 -17
  63. package/dist/features/Operation/components/callbacks/Callback.vue2.js +10 -10
  64. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +3 -3
  65. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +49 -49
  66. package/dist/features/Operation/layouts/ModernLayout.vue2.js +50 -50
  67. package/dist/features/Search/components/SearchButton.vue.js +5 -5
  68. package/dist/features/Search/components/SearchModal.vue2.js +1 -1
  69. package/dist/features/Search/components/SearchResult.vue.js +14 -14
  70. package/dist/features/example-responses/ExampleResponse.vue2.js +3 -3
  71. package/dist/features/external-docs/ExternalDocs.vue.js +3 -3
  72. package/dist/features/info-object/Contact.vue.js +6 -6
  73. package/dist/features/info-object/License.vue.js +4 -4
  74. package/dist/features/info-object/TermsOfService.vue.js +2 -2
  75. package/dist/features/multiple-documents/DocumentSelector.vue.js +1 -1
  76. package/dist/features/specification-extension/SpecificationExtension.vue2.js +3 -3
  77. package/dist/features/test-request-button/TestRequestButton.vue2.js +2 -2
  78. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +4 -4
  79. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
  80. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
  81. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +2 -2
  82. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +1 -1
  83. package/dist/helpers/load-from-perssistance.d.ts +32 -0
  84. package/dist/helpers/load-from-perssistance.d.ts.map +1 -0
  85. package/dist/helpers/load-from-perssistance.js +74 -0
  86. package/dist/helpers/map-config-plugins.d.ts +17 -2
  87. package/dist/helpers/map-config-plugins.d.ts.map +1 -1
  88. package/dist/helpers/map-config-plugins.js +20 -22
  89. package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -1
  90. package/dist/helpers/map-config-to-workspace-store.js +1 -8
  91. package/dist/helpers/storage.d.ts +6 -6
  92. package/dist/helpers/storage.d.ts.map +1 -1
  93. package/dist/helpers/storage.js +15 -10
  94. package/dist/style.css +39 -39
  95. package/package.json +31 -31
@@ -21,26 +21,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  },
22
22
  setup(__props) {
23
23
  return (_ctx, _cache) => {
24
- return _ctx.tag ? (openBlock(), createBlock(unref(Section), {
24
+ return __props.tag ? (openBlock(), createBlock(unref(Section), {
25
25
  key: 0,
26
- id: _ctx.tag.id,
26
+ id: __props.tag.id,
27
27
  role: "none",
28
- onIntersecting: _cache[1] || (_cache[1] = () => _ctx.eventBus?.emit("intersecting:nav-item", { id: _ctx.tag.id }))
28
+ onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.tag.id }))
29
29
  }, {
30
30
  default: withCtx(() => [
31
31
  withDirectives(createVNode(unref(SectionHeader), null, {
32
32
  default: withCtx(() => [
33
33
  createVNode(unref(_sfc_main$1), {
34
- onCopyAnchorUrl: _cache[0] || (_cache[0] = () => _ctx.eventBus?.emit("copy-url:nav-item", { id: _ctx.tag.id }))
34
+ onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.tag.id }))
35
35
  }, {
36
36
  default: withCtx(() => [
37
37
  createVNode(unref(SectionHeaderTag), {
38
- id: _ctx.headerId,
38
+ id: __props.headerId,
39
39
  level: 2
40
40
  }, {
41
41
  default: withCtx(() => [
42
- createTextVNode(toDisplayString(_ctx.tag.title) + " ", 1),
43
- _ctx.isCollapsed ? (openBlock(), createBlock(ScreenReader, { key: 0 }, {
42
+ createTextVNode(toDisplayString(__props.tag.title) + " ", 1),
43
+ __props.isCollapsed ? (openBlock(), createBlock(ScreenReader, { key: 0 }, {
44
44
  default: withCtx(() => [..._cache[2] || (_cache[2] = [
45
45
  createTextVNode(" (Collapsed)", -1)
46
46
  ])]),
@@ -55,17 +55,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  ]),
56
56
  _: 1
57
57
  }, 512), [
58
- [vShow, !_ctx.isLoading]
58
+ [vShow, !__props.isLoading]
59
59
  ]),
60
- createVNode(unref(SectionContent), { loading: _ctx.isLoading }, {
60
+ createVNode(unref(SectionContent), { loading: __props.isLoading }, {
61
61
  default: withCtx(() => [
62
62
  createVNode(unref(SectionColumns), null, {
63
63
  default: withCtx(() => [
64
64
  createVNode(unref(SectionColumn), null, {
65
65
  default: withCtx(() => [
66
66
  createVNode(unref(ScalarMarkdown), {
67
- clamp: _ctx.isCollapsed ? 7 : void 0,
68
- value: _ctx.tag?.description ?? "",
67
+ clamp: __props.isCollapsed ? 7 : void 0,
68
+ value: __props.tag?.description ?? "",
69
69
  withImages: ""
70
70
  }, null, 8, ["clamp", "value"])
71
71
  ]),
@@ -74,8 +74,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
74
74
  createVNode(unref(SectionColumn), null, {
75
75
  default: withCtx(() => [
76
76
  createVNode(unref(OperationsList), {
77
- eventBus: _ctx.eventBus,
78
- tag: _ctx.tag
77
+ eventBus: __props.eventBus,
78
+ tag: __props.tag
79
79
  }, null, 8, ["eventBus", "tag"])
80
80
  ]),
81
81
  _: 1
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
87
  _: 1
88
88
  }, 8, ["loading"]),
89
89
  createVNode(unref(_sfc_main$2), {
90
- value: _ctx.tag.xKeys
90
+ value: __props.tag.xKeys
91
91
  }, null, 8, ["value"])
92
92
  ]),
93
93
  _: 1
@@ -66,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
66
  (openBlock(), createElementBlock(Fragment, null, renderList(themeIds, (themeId) => {
67
67
  return createElementVNode("div", {
68
68
  key: themeId,
69
- class: normalizeClass(["start-item", { "start-item-active": themeId === _ctx.theme }]),
69
+ class: normalizeClass(["start-item", { "start-item-active": themeId === __props.theme }]),
70
70
  onClick: ($event) => _ctx.$emit("changeTheme", { id: themeId, label: unref(themeLabels)[themeId] })
71
71
  }, toDisplayString(unref(themeLabels)[themeId]), 11, _hoisted_6);
72
72
  }), 64))
@@ -16,13 +16,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  );
17
17
  const normalized = computed(() => normalizeHttpMethod(props.method));
18
18
  return (_ctx, _cache) => {
19
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.as ?? "span"), {
19
+ return openBlock(), createBlock(resolveDynamicComponent(__props.as ?? "span"), {
20
20
  class: "uppercase",
21
- style: normalizeStyle({ [_ctx.property || "color"]: httpMethodInfo.value.colorVar })
21
+ style: normalizeStyle({ [__props.property || "color"]: httpMethodInfo.value.colorVar })
22
22
  }, {
23
23
  default: withCtx(() => [
24
24
  renderSlot(_ctx.$slots, "default"),
25
- createTextVNode(" " + toDisplayString(_ctx.short ? httpMethodInfo.value.short : normalized.value), 1)
25
+ createTextVNode(" " + toDisplayString(__props.short ? httpMethodInfo.value.short : normalized.value), 1)
26
26
  ]),
27
27
  _: 3
28
28
  }, 8, ["style"]);
@@ -37,8 +37,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  }
38
38
  });
39
39
  return (_ctx, _cache) => {
40
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.is ?? "div"), {
41
- id: _ctx.id,
40
+ return openBlock(), createBlock(resolveDynamicComponent(__props.is ?? "div"), {
41
+ id: __props.id,
42
42
  ref_key: "intersectionObserverRef",
43
43
  ref: intersectionObserverRef
44
44
  }, {
@@ -6,10 +6,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  },
7
7
  setup(__props) {
8
8
  return (_ctx, _cache) => {
9
- return openBlock(true), createElementBlock(Fragment, null, renderList([...Array(_ctx.lines).keys()], (idx) => {
9
+ return openBlock(true), createElementBlock(Fragment, null, renderList([...Array(__props.lines).keys()], (idx) => {
10
10
  return openBlock(), createElementBlock("div", {
11
11
  key: idx,
12
- class: normalizeClass(["loading", { "single-line": _ctx.lines === 1 }])
12
+ class: normalizeClass(["loading", { "single-line": __props.lines === 1 }])
13
13
  }, null, 2);
14
14
  }), 128);
15
15
  };
@@ -33,22 +33,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  return (_ctx, _cache) => {
34
34
  return unref(mediaQueries).lg.value ? renderSlot(_ctx.$slots, "sidebar", normalizeProps(mergeProps({ key: 0 }, { sidebarClasses: "sticky top-0 h-dvh [grid-area:navigation]" }))) : (openBlock(), createElementBlock("div", {
35
35
  key: 1,
36
- class: normalizeClass(["t-doc__header", unref(variants)({ open: _ctx.isSidebarOpen, lg: unref(mediaQueries).lg.value })])
36
+ class: normalizeClass(["t-doc__header", unref(variants)({ open: __props.isSidebarOpen, lg: unref(mediaQueries).lg.value })])
37
37
  }, [
38
38
  createElementVNode("header", _hoisted_1, [
39
- _ctx.showSidebar ? (openBlock(), createBlock(unref(ScalarIconButton), {
39
+ __props.showSidebar ? (openBlock(), createBlock(unref(ScalarIconButton), {
40
40
  key: 0,
41
- icon: _ctx.isSidebarOpen ? unref(ScalarIconX) : unref(ScalarIconList),
42
- label: _ctx.isSidebarOpen ? "Close Menu" : "Open Menu",
41
+ icon: __props.isSidebarOpen ? unref(ScalarIconX) : unref(ScalarIconList),
42
+ label: __props.isSidebarOpen ? "Close Menu" : "Open Menu",
43
43
  size: "md",
44
44
  onClick: _cache[0] || (_cache[0] = ($event) => emit("toggleSidebar"))
45
45
  }, null, 8, ["icon", "label"])) : createCommentVNode("", true),
46
- _ctx.showSidebar ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.breadcrumb), 1)) : renderSlot(_ctx.$slots, "search", { key: 2 }),
46
+ __props.showSidebar ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.breadcrumb), 1)) : renderSlot(_ctx.$slots, "search", { key: 2 }),
47
47
  createElementVNode("div", _hoisted_3, [
48
48
  renderSlot(_ctx.$slots, "actions")
49
49
  ])
50
50
  ]),
51
- _ctx.isSidebarOpen ? renderSlot(_ctx.$slots, "sidebar", normalizeProps(mergeProps({ key: 0 }, {
51
+ __props.isSidebarOpen ? renderSlot(_ctx.$slots, "sidebar", normalizeProps(mergeProps({ key: 0 }, {
52
52
  sidebarClasses: "overflow-y-auto custom-scrollbar min-h-0 flex-1 w-full border-none"
53
53
  }))) : createCommentVNode("", true)
54
54
  ], 2));
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  const pathParts = computed(() => props.path.split(/({[^}]+})/));
13
13
  return (_ctx, _cache) => {
14
14
  return openBlock(), createElementBlock("span", {
15
- class: normalizeClass(["operation-path", { deprecated: _ctx.deprecated }])
15
+ class: normalizeClass(["operation-path", { deprecated: __props.deprecated }])
16
16
  }, [
17
17
  (openBlock(true), createElementBlock(Fragment, null, renderList(pathParts.value, (part, i) => {
18
18
  return openBlock(), createElementBlock(Fragment, { key: i }, [
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  ) ?? [];
17
17
  });
18
18
  return (_ctx, _cache) => {
19
- return _ctx.tag.children && _ctx.tag.children?.length > 0 ? (openBlock(), createBlock(unref(ScalarCard), {
19
+ return __props.tag.children && __props.tag.children?.length > 0 ? (openBlock(), createBlock(unref(ScalarCard), {
20
20
  key: 0,
21
21
  class: "endpoints-card"
22
22
  }, {
@@ -25,24 +25,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  default: withCtx(() => [
26
26
  createVNode(ScreenReader, null, {
27
27
  default: withCtx(() => [
28
- createTextVNode(toDisplayString(_ctx.tag.title), 1)
28
+ createTextVNode(toDisplayString(__props.tag.title), 1)
29
29
  ]),
30
30
  _: 1
31
31
  }),
32
- createTextVNode(" " + toDisplayString(_ctx.tag.isWebhooks ? "Webhooks" : "Operations"), 1)
32
+ createTextVNode(" " + toDisplayString(__props.tag.isWebhooks ? "Webhooks" : "Operations"), 1)
33
33
  ]),
34
34
  _: 1
35
35
  }),
36
36
  createVNode(unref(ScalarCardSection), { class: "custom-scroll max-h-[60vh]" }, {
37
37
  default: withCtx(() => [
38
38
  createElementVNode("ul", {
39
- "aria-label": `${_ctx.tag.title} endpoints`,
39
+ "aria-label": `${__props.tag.title} endpoints`,
40
40
  class: "endpoints"
41
41
  }, [
42
42
  (openBlock(true), createElementBlock(Fragment, null, renderList(operationsAndWebhooks.value, (operationOrWebhook) => {
43
43
  return openBlock(), createBlock(OperationsListItem, {
44
44
  key: operationOrWebhook.id,
45
- eventBus: _ctx.eventBus,
45
+ eventBus: __props.eventBus,
46
46
  operation: operationOrWebhook
47
47
  }, null, 8, ["eventBus", "operation"]);
48
48
  }), 128))
@@ -20,43 +20,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  const isWebhook = (_operation) => _operation.type === "webhook";
21
21
  return (_ctx, _cache) => {
22
22
  return openBlock(), createElementBlock("li", {
23
- key: _ctx.operation.id,
23
+ key: __props.operation.id,
24
24
  class: "contents"
25
25
  }, [
26
- _ctx.isCollapsed ? (openBlock(), createBlock(unref(SectionHeaderTag), {
26
+ __props.isCollapsed ? (openBlock(), createBlock(unref(SectionHeaderTag), {
27
27
  key: 0,
28
28
  class: "sr-only",
29
29
  level: 3
30
30
  }, {
31
31
  default: withCtx(() => [
32
- createTextVNode(toDisplayString(_ctx.operation.title) + " (Hidden) ", 1)
32
+ createTextVNode(toDisplayString(__props.operation.title) + " (Hidden) ", 1)
33
33
  ]),
34
34
  _: 1
35
35
  })) : createCommentVNode("", true),
36
36
  createElementVNode("a", {
37
37
  class: "endpoint",
38
38
  onClick: _cache[0] || (_cache[0] = withModifiers(
39
- () => _ctx.eventBus?.emit("scroll-to:nav-item", { id: _ctx.operation.id }),
39
+ () => __props.eventBus?.emit("scroll-to:nav-item", { id: __props.operation.id }),
40
40
  ["prevent"]
41
41
  ))
42
42
  }, [
43
43
  createVNode(unref(_sfc_main$1), {
44
44
  class: "endpoint-method items-center justify-end gap-2",
45
- method: _ctx.operation.method
45
+ method: __props.operation.method
46
46
  }, {
47
47
  default: withCtx(() => [
48
- isWebhook(_ctx.operation) ? (openBlock(), createBlock(unref(ScalarIconWebhooksLogo), {
48
+ isWebhook(__props.operation) ? (openBlock(), createBlock(unref(ScalarIconWebhooksLogo), {
49
49
  key: 0,
50
50
  class: "size-3.5",
51
51
  style: normalizeStyle({
52
- color: unref(getHttpMethodInfo)(_ctx.operation.method).colorVar
52
+ color: unref(getHttpMethodInfo)(__props.operation.method).colorVar
53
53
  })
54
54
  }, null, 8, ["style"])) : createCommentVNode("", true)
55
55
  ]),
56
56
  _: 1
57
57
  }, 8, ["method"]),
58
58
  createElementVNode("span", {
59
- class: normalizeClass(["endpoint-path", { deprecated: _ctx.operation.isDeprecated }])
59
+ class: normalizeClass(["endpoint-path", { deprecated: __props.operation.isDeprecated }])
60
60
  }, toDisplayString(pathOrTitle.value), 3)
61
61
  ])
62
62
  ]);
@@ -24,12 +24,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  ref_for: true
25
25
  }, {
26
26
  component: item.component,
27
- options: _ctx.options,
27
+ options: __props.options,
28
28
  ...item.props
29
29
  }), null, 16)) : (openBlock(), createBlock(resolveDynamicComponent(item.component), mergeProps({
30
30
  key: 1,
31
31
  ref_for: true
32
- }, { options: _ctx.options, ...item.props }), null, 16))
32
+ }, { options: __props.options, ...item.props }), null, 16))
33
33
  ]),
34
34
  _: 2
35
35
  }, 1024);
@@ -16,19 +16,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  const emit = __emit;
17
17
  return (_ctx, _cache) => {
18
18
  return openBlock(), createElementBlock("section", {
19
- "aria-label": _ctx.label,
19
+ "aria-label": __props.label,
20
20
  class: "collapsible-section"
21
21
  }, [
22
22
  createElementVNode("button", {
23
- id: _ctx.id,
24
- "aria-controls": _ctx.id,
25
- "aria-expanded": _ctx.modelValue,
26
- class: normalizeClass(["collapsible-section-trigger", { "collapsible-section-trigger-open": _ctx.modelValue }]),
23
+ id: __props.id,
24
+ "aria-controls": __props.id,
25
+ "aria-expanded": __props.modelValue,
26
+ class: normalizeClass(["collapsible-section-trigger", { "collapsible-section-trigger-open": __props.modelValue }]),
27
27
  type: "button",
28
- onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", !_ctx.modelValue))
28
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", !__props.modelValue))
29
29
  }, [
30
30
  createVNode(unref(ScalarIconCaretRight), {
31
- class: normalizeClass(["size-3 transition-transform duration-100", { "rotate-90": _ctx.modelValue }]),
31
+ class: normalizeClass(["size-3 transition-transform duration-100", { "rotate-90": __props.modelValue }]),
32
32
  weight: "bold"
33
33
  }, null, 8, ["class"]),
34
34
  createVNode(unref(_sfc_main$1), {
@@ -41,10 +41,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  _: 3
42
42
  })
43
43
  ], 10, _hoisted_2),
44
- _ctx.modelValue ? (openBlock(), createBlock(Section, {
44
+ __props.modelValue ? (openBlock(), createBlock(Section, {
45
45
  key: 0,
46
46
  class: "collapsible-section-content",
47
- label: _ctx.label
47
+ label: __props.label
48
48
  }, {
49
49
  default: withCtx(() => [
50
50
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -26,14 +26,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  return (_ctx, _cache) => {
27
27
  return openBlock(), createBlock(unref(Disclosure), {
28
28
  as: "section",
29
- class: normalizeClass(["section-accordion", { "section-accordion-transparent": _ctx.transparent }])
29
+ class: normalizeClass(["section-accordion", { "section-accordion-transparent": __props.transparent }])
30
30
  }, {
31
31
  default: withCtx(() => [
32
32
  createVNode(unref(DisclosureButton), {
33
33
  ref_key: "button",
34
34
  ref: button,
35
35
  class: "section-accordion-button",
36
- onClick: _cache[0] || (_cache[0] = () => emit("update:modelValue", !_ctx.modelValue))
36
+ onClick: _cache[0] || (_cache[0] = () => emit("update:modelValue", !__props.modelValue))
37
37
  }, {
38
38
  default: withCtx(() => [
39
39
  createElementVNode("div", _hoisted_1, [
@@ -41,16 +41,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  ]),
42
42
  _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2, [
43
43
  renderSlot(_ctx.$slots, "actions", {
44
- active: unref(isHovered) || _ctx.modelValue
44
+ active: unref(isHovered) || __props.modelValue
45
45
  }, void 0, true)
46
46
  ])) : createCommentVNode("", true),
47
47
  createVNode(unref(ScalarIconCaretRight), {
48
- class: normalizeClass(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": _ctx.modelValue }])
48
+ class: normalizeClass(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": __props.modelValue }])
49
49
  }, null, 8, ["class"])
50
50
  ]),
51
51
  _: 3
52
52
  }, 512),
53
- _ctx.modelValue ? (openBlock(), createBlock(unref(DisclosurePanel), {
53
+ __props.modelValue ? (openBlock(), createBlock(unref(DisclosurePanel), {
54
54
  key: 0,
55
55
  class: "section-accordion-content",
56
56
  static: ""
@@ -10,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  },
11
11
  setup(__props) {
12
12
  return (_ctx, _cache) => {
13
- return _ctx.omit ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_1, [
13
+ return __props.omit ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_1, [
14
14
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
15
15
  ]));
16
16
  };
@@ -20,11 +20,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  default: withCtx(() => [
21
21
  createVNode(unref(DisclosureButton), {
22
22
  class: "section-accordion-button",
23
- onClick: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", !_ctx.modelValue))
23
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", !__props.modelValue))
24
24
  }, {
25
25
  default: withCtx(() => [
26
26
  createVNode(unref(ScalarIconCaretRight), {
27
- class: normalizeClass(["section-accordion-chevron size-5 transition-transform", { "rotate-90": _ctx.modelValue }])
27
+ class: normalizeClass(["section-accordion-chevron size-5 transition-transform", { "rotate-90": __props.modelValue }])
28
28
  }, null, 8, ["class"]),
29
29
  createElementVNode("div", _hoisted_2, [
30
30
  renderSlot(_ctx.$slots, "title", {}, void 0, true)
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  ]),
33
33
  _: 3
34
34
  }),
35
- _ctx.modelValue ? (openBlock(), createBlock(unref(DisclosurePanel), {
35
+ __props.modelValue ? (openBlock(), createBlock(unref(DisclosurePanel), {
36
36
  key: 0,
37
37
  class: "section-accordion-content",
38
38
  static: ""
@@ -9,7 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  setup(__props) {
10
10
  return (_ctx, _cache) => {
11
11
  return openBlock(), createElementBlock("div", _hoisted_1, [
12
- !_ctx.loading ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createBlock(LoadingSkeleton, {
12
+ !__props.loading ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createBlock(LoadingSkeleton, {
13
13
  key: 1,
14
14
  lines: 8
15
15
  }))
@@ -10,9 +10,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  setup(__props) {
11
11
  return (_ctx, _cache) => {
12
12
  return openBlock(), createElementBlock("div", _hoisted_1, [
13
- _ctx.loading ? (openBlock(), createBlock(LoadingSkeleton, { key: 0 })) : (openBlock(), createElementBlock("div", {
13
+ __props.loading ? (openBlock(), createBlock(LoadingSkeleton, { key: 0 })) : (openBlock(), createElementBlock("div", {
14
14
  key: 1,
15
- class: normalizeClass(["section-header", { tight: _ctx.tight }])
15
+ class: normalizeClass(["section-header", { tight: __props.tight }])
16
16
  }, [
17
17
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
18
18
  ], 2)),
@@ -6,7 +6,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  },
7
7
  setup(__props) {
8
8
  return (_ctx, _cache) => {
9
- return openBlock(), createBlock(resolveDynamicComponent(`h${_ctx.level}`), { class: "section-header-label" }, {
9
+ return openBlock(), createBlock(resolveDynamicComponent(`h${__props.level}`), { class: "section-header-label" }, {
10
10
  default: withCtx(() => [
11
11
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
12
12
  ]),
@@ -48,31 +48,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  );
49
49
  return (_ctx, _cache) => {
50
50
  return operation.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
51
- _ctx.options.layout === "classic" ? (openBlock(), createBlock(ClassicLayout, {
51
+ __props.options.layout === "classic" ? (openBlock(), createBlock(ClassicLayout, {
52
52
  key: 0,
53
- id: _ctx.id,
54
- clientOptions: _ctx.clientOptions,
55
- eventBus: _ctx.eventBus,
56
- isCollapsed: _ctx.isCollapsed,
57
- isWebhook: _ctx.isWebhook,
58
- method: _ctx.method,
53
+ id: __props.id,
54
+ clientOptions: __props.clientOptions,
55
+ eventBus: __props.eventBus,
56
+ isCollapsed: __props.isCollapsed,
57
+ isWebhook: __props.isWebhook,
58
+ method: __props.method,
59
59
  operation: operation.value,
60
- options: _ctx.options,
61
- path: _ctx.path,
62
- selectedClient: _ctx.selectedClient,
60
+ options: __props.options,
61
+ path: __props.path,
62
+ selectedClient: __props.selectedClient,
63
63
  selectedSecuritySchemes: selectedSecuritySchemes.value,
64
64
  selectedServer: selectedServer.value
65
65
  }, null, 8, ["id", "clientOptions", "eventBus", "isCollapsed", "isWebhook", "method", "operation", "options", "path", "selectedClient", "selectedSecuritySchemes", "selectedServer"])) : (openBlock(), createBlock(ModernLayout, {
66
66
  key: 1,
67
- id: _ctx.id,
68
- clientOptions: _ctx.clientOptions,
69
- eventBus: _ctx.eventBus,
70
- isWebhook: _ctx.isWebhook,
71
- method: _ctx.method,
67
+ id: __props.id,
68
+ clientOptions: __props.clientOptions,
69
+ eventBus: __props.eventBus,
70
+ isWebhook: __props.isWebhook,
71
+ method: __props.method,
72
72
  operation: operation.value,
73
- options: _ctx.options,
74
- path: _ctx.path,
75
- selectedClient: _ctx.selectedClient,
73
+ options: __props.options,
74
+ path: __props.path,
75
+ selectedClient: __props.selectedClient,
76
76
  selectedSecuritySchemes: selectedSecuritySchemes.value,
77
77
  selectedServer: selectedServer.value
78
78
  }, null, 8, ["id", "clientOptions", "eventBus", "isWebhook", "method", "operation", "options", "path", "selectedClient", "selectedSecuritySchemes", "selectedServer"]))
@@ -13,17 +13,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  },
14
14
  setup(__props) {
15
15
  return (_ctx, _cache) => {
16
- return "schema" in _ctx.header && _ctx.header.schema ? (openBlock(), createBlock(SchemaProperty, {
16
+ return "schema" in __props.header && __props.header.schema ? (openBlock(), createBlock(SchemaProperty, {
17
17
  key: 0,
18
- breadcrumb: _ctx.breadcrumb ? [..._ctx.breadcrumb, "headers"] : void 0,
19
- description: _ctx.header.description,
20
- eventBus: _ctx.eventBus,
21
- name: _ctx.name,
18
+ breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "headers"] : void 0,
19
+ description: __props.header.description,
20
+ eventBus: __props.eventBus,
21
+ name: __props.name,
22
22
  options: {
23
- orderRequiredPropertiesFirst: _ctx.orderRequiredPropertiesFirst,
24
- orderSchemaPropertiesBy: _ctx.orderSchemaPropertiesBy
23
+ orderRequiredPropertiesFirst: __props.orderRequiredPropertiesFirst,
24
+ orderSchemaPropertiesBy: __props.orderSchemaPropertiesBy
25
25
  },
26
- schema: unref(getResolvedRef)(_ctx.header.schema)
26
+ schema: unref(getResolvedRef)(__props.header.schema)
27
27
  }, null, 8, ["breadcrumb", "description", "eventBus", "name", "options", "schema"])) : createCommentVNode("", true);
28
28
  };
29
29
  }
@@ -44,15 +44,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
44
  }, 1024),
45
45
  createVNode(unref(DisclosurePanel), null, {
46
46
  default: withCtx(() => [
47
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.headers, (header, key) => {
47
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.headers, (header, key) => {
48
48
  return openBlock(), createBlock(_sfc_main$1, {
49
49
  key,
50
- breadcrumb: _ctx.breadcrumb ? [..._ctx.breadcrumb, "headers"] : void 0,
51
- eventBus: _ctx.eventBus,
50
+ breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "headers"] : void 0,
51
+ eventBus: __props.eventBus,
52
52
  header: unref(getResolvedRef)(header),
53
53
  name: key,
54
- orderRequiredPropertiesFirst: _ctx.orderRequiredPropertiesFirst,
55
- orderSchemaPropertiesBy: _ctx.orderSchemaPropertiesBy
54
+ orderRequiredPropertiesFirst: __props.orderRequiredPropertiesFirst,
55
+ orderSchemaPropertiesBy: __props.orderSchemaPropertiesBy
56
56
  }, null, 8, ["breadcrumb", "eventBus", "header", "name", "orderRequiredPropertiesFirst", "orderSchemaPropertiesBy"]);
57
57
  }), 128))
58
58
  ]),
@@ -26,9 +26,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  return (_ctx, _cache) => {
27
27
  return openBlock(), createElementBlock(Fragment, null, [
28
28
  createVNode(_sfc_main$1, {
29
- breadcrumb: _ctx.breadcrumb ? [..._ctx.breadcrumb, "path"] : void 0,
30
- eventBus: _ctx.eventBus,
31
- options: _ctx.options,
29
+ breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "path"] : void 0,
30
+ eventBus: __props.eventBus,
31
+ options: __props.options,
32
32
  parameters: splitParameters.value["path"]
33
33
  }, {
34
34
  title: withCtx(() => [..._cache[0] || (_cache[0] = [
@@ -37,9 +37,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  _: 1
38
38
  }, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
39
39
  createVNode(_sfc_main$1, {
40
- breadcrumb: _ctx.breadcrumb ? [..._ctx.breadcrumb, "query"] : void 0,
41
- eventBus: _ctx.eventBus,
42
- options: _ctx.options,
40
+ breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "query"] : void 0,
41
+ eventBus: __props.eventBus,
42
+ options: __props.options,
43
43
  parameters: splitParameters.value["query"]
44
44
  }, {
45
45
  title: withCtx(() => [..._cache[1] || (_cache[1] = [
@@ -48,9 +48,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  _: 1
49
49
  }, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
50
50
  createVNode(_sfc_main$1, {
51
- breadcrumb: _ctx.breadcrumb ? [..._ctx.breadcrumb, "headers"] : void 0,
52
- eventBus: _ctx.eventBus,
53
- options: _ctx.options,
51
+ breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "headers"] : void 0,
52
+ eventBus: __props.eventBus,
53
+ options: __props.options,
54
54
  parameters: splitParameters.value["header"]
55
55
  }, {
56
56
  title: withCtx(() => [..._cache[2] || (_cache[2] = [
@@ -59,9 +59,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
59
  _: 1
60
60
  }, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
61
61
  createVNode(_sfc_main$1, {
62
- breadcrumb: _ctx.breadcrumb ? [..._ctx.breadcrumb, "cookies"] : void 0,
63
- eventBus: _ctx.eventBus,
64
- options: _ctx.options,
62
+ breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "cookies"] : void 0,
63
+ eventBus: __props.eventBus,
64
+ options: __props.options,
65
65
  parameters: splitParameters.value["cookie"]
66
66
  }, {
67
67
  title: withCtx(() => [..._cache[3] || (_cache[3] = [
@@ -69,12 +69,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  ])]),
70
70
  _: 1
71
71
  }, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
72
- _ctx.requestBody ? (openBlock(), createBlock(RequestBody, {
72
+ __props.requestBody ? (openBlock(), createBlock(RequestBody, {
73
73
  key: 0,
74
- breadcrumb: _ctx.breadcrumb ? [..._ctx.breadcrumb, "body"] : void 0,
75
- eventBus: _ctx.eventBus,
76
- options: _ctx.options,
77
- requestBody: _ctx.requestBody
74
+ breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "body"] : void 0,
75
+ eventBus: __props.eventBus,
76
+ options: __props.options,
77
+ requestBody: __props.requestBody
78
78
  }, {
79
79
  title: withCtx(() => [..._cache[4] || (_cache[4] = [
80
80
  createTextVNode("Body", -1)
@@ -20,17 +20,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  },
21
21
  setup(__props) {
22
22
  return (_ctx, _cache) => {
23
- return Object.keys(_ctx.responses ?? {}).length ? (openBlock(), createElementBlock("div", _hoisted_1, [
23
+ return Object.keys(__props.responses ?? {}).length ? (openBlock(), createElementBlock("div", _hoisted_1, [
24
24
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "text-c-1 mt-3 mb-3 leading-[1.45] font-medium" }, "Responses", -1)),
25
25
  createElementVNode("ul", _hoisted_2, [
26
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.responses, (response, status) => {
26
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.responses, (response, status) => {
27
27
  return openBlock(), createBlock(ParameterListItem, {
28
28
  key: status,
29
- breadcrumb: _ctx.breadcrumb,
30
- collapsableItems: _ctx.collapsableItems,
31
- eventBus: _ctx.eventBus,
29
+ breadcrumb: __props.breadcrumb,
30
+ collapsableItems: __props.collapsableItems,
31
+ eventBus: __props.eventBus,
32
32
  name: status,
33
- options: _ctx.options,
33
+ options: __props.options,
34
34
  parameter: unref(getResolvedRef)(response)
35
35
  }, null, 8, ["breadcrumb", "collapsableItems", "eventBus", "name", "options", "parameter"]);
36
36
  }), 128))