@scalar/api-reference 1.49.1 → 1.49.3
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.
- package/CHANGELOG.md +13 -0
- package/dist/{MobileHeader-B71jYJdT.js → MobileHeader-DAm6yQX0.js} +2 -2
- package/dist/{MobileHeader-B71jYJdT.js.map → MobileHeader-DAm6yQX0.js.map} +1 -1
- package/dist/{Operation-CixLVfKd.js → Operation-CvpVIkc3.js} +75 -73
- package/dist/Operation-CvpVIkc3.js.map +1 -0
- package/dist/browser/standalone.js +7526 -7468
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/index.js +2 -2
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -1
- package/dist/features/Search/components/SearchResult.vue.d.ts +1 -1
- package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/features/Search/helpers/create-search-index.d.ts +1 -1
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/index.js +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/index.d.ts +2 -2
- package/dist/{src-DqcYVBWI.js → src-DJwsRvMU.js} +2 -2
- package/dist/{src-DqcYVBWI.js.map → src-DJwsRvMU.js.map} +1 -1
- package/dist/ssr.d.ts +2 -2
- package/dist/ssr.js +3 -3
- package/dist/style.css +52 -55
- package/package.json +14 -14
- package/dist/Operation-CixLVfKd.js.map +0 -1
|
@@ -1589,7 +1589,7 @@ var SchemaProperty_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/
|
|
|
1589
1589
|
_: 1
|
|
1590
1590
|
}, 8, ["breadcrumb", "eventBus"])]),
|
|
1591
1591
|
key: "0"
|
|
1592
|
-
} : void 0, optimizedValue.value?.example ? {
|
|
1592
|
+
} : void 0, optimizedValue.value?.example !== void 0 ? {
|
|
1593
1593
|
name: "example",
|
|
1594
1594
|
fn: withCtx(() => [createTextVNode(" Example: " + toDisplayString(optimizedValue.value.example), 1)]),
|
|
1595
1595
|
key: "1"
|
|
@@ -1681,7 +1681,7 @@ var SchemaProperty_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/
|
|
|
1681
1681
|
}, 8, ["class"]);
|
|
1682
1682
|
};
|
|
1683
1683
|
}
|
|
1684
|
-
}), [["__scopeId", "data-v-
|
|
1684
|
+
}), [["__scopeId", "data-v-a72e0d1d"]]);
|
|
1685
1685
|
//#endregion
|
|
1686
1686
|
//#region src/components/Content/Schema/SchemaObjectProperties.vue
|
|
1687
1687
|
var SchemaObjectProperties_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2625,91 +2625,93 @@ var ParameterListItem_default = /* @__PURE__ */ _plugin_vue_export_helper_defaul
|
|
|
2625
2625
|
const shouldCollapse = computed(() => Boolean(__props.collapsableItems && (content.value || headers.value || schema.value)));
|
|
2626
2626
|
return (_ctx, _cache) => {
|
|
2627
2627
|
return openBlock(), createElementBlock("li", _hoisted_1$9, [createVNode(unref(Disclosure), null, {
|
|
2628
|
-
default: withCtx(({ open }) => [
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
createElementVNode("div", _hoisted_2$6, [createVNode(unref(ScalarIconCaretRight), {
|
|
2628
|
+
default: withCtx(({ open }) => [
|
|
2629
|
+
shouldCollapse.value ? (openBlock(), createBlock(unref(DisclosureButton), {
|
|
2630
|
+
key: 0,
|
|
2631
|
+
class: normalizeClass(["parameter-item-trigger", { "parameter-item-trigger-open": open }])
|
|
2632
|
+
}, {
|
|
2633
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$6, [createVNode(unref(ScalarIconCaretRight), {
|
|
2634
2634
|
class: normalizeClass(["parameter-item-icon size-3 transition-transform duration-100", { "rotate-90": open }]),
|
|
2635
2635
|
weight: "bold"
|
|
2636
2636
|
}, null, 8, ["class"]), createElementVNode("div", null, [createVNode(unref(ScalarWrappingText), {
|
|
2637
2637
|
preset: "property",
|
|
2638
2638
|
text: __props.name
|
|
2639
|
-
}, null, 8, ["text"])])]),
|
|
2640
|
-
!open && __props.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdownSummary), {
|
|
2639
|
+
}, null, 8, ["text"])])]), !open && __props.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdownSummary), {
|
|
2641
2640
|
key: 0,
|
|
2642
2641
|
class: "parameter-item-description-summary min-w-0 flex-1",
|
|
2643
2642
|
controlled: "",
|
|
2644
2643
|
value: __props.parameter.description
|
|
2645
|
-
}, null, 8, ["value"])) : (openBlock(), createElementBlock("div", _hoisted_3$5)),
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
}, null, 8, [
|
|
2672
|
-
"breadcrumb",
|
|
2673
|
-
"eventBus",
|
|
2674
|
-
"headers",
|
|
2675
|
-
"orderRequiredPropertiesFirst",
|
|
2676
|
-
"orderSchemaPropertiesBy"
|
|
2677
|
-
])) : createCommentVNode("", true),
|
|
2678
|
-
createVNode(SchemaProperty_default, {
|
|
2679
|
-
is: "div",
|
|
2680
|
-
breadcrumb: __props.breadcrumb,
|
|
2681
|
-
compact: "",
|
|
2682
|
-
description: shouldCollapse.value ? "" : __props.parameter.description,
|
|
2683
|
-
eventBus: __props.eventBus,
|
|
2684
|
-
hideWriteOnly: true,
|
|
2685
|
-
modelName: schemaModelName.value,
|
|
2686
|
-
name: shouldCollapse.value ? "" : __props.name,
|
|
2687
|
-
noncollapsible: true,
|
|
2688
|
-
options: {
|
|
2689
|
-
hideWriteOnly: true,
|
|
2644
|
+
}, null, 8, ["value"])) : (openBlock(), createElementBlock("div", _hoisted_3$5))]),
|
|
2645
|
+
_: 2
|
|
2646
|
+
}, 1032, ["class"])) : createCommentVNode("", true),
|
|
2647
|
+
shouldCollapse.value && content.value ? (openBlock(), createElementBlock("div", {
|
|
2648
|
+
key: 1,
|
|
2649
|
+
class: normalizeClass(["absolute top-[calc(10px+0.5lh)] right-0 z-0 flex -translate-y-1/2 items-center text-base", { "opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100": !open }])
|
|
2650
|
+
}, [_cache[1] || (_cache[1] = createElementVNode("div", { class: "from-b-1 absolute inset-y-0 -left-6 -z-1 w-8 bg-linear-to-l from-40% to-transparent" }, null, -1)), createVNode(ContentTypeSelect_default, {
|
|
2651
|
+
modelValue: selectedContentType.value,
|
|
2652
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedContentType.value = $event),
|
|
2653
|
+
content: content.value
|
|
2654
|
+
}, null, 8, ["modelValue", "content"])], 2)) : createCommentVNode("", true),
|
|
2655
|
+
createVNode(unref(DisclosurePanel), {
|
|
2656
|
+
class: "parameter-item-container parameter-item-container-markdown",
|
|
2657
|
+
static: !shouldCollapse.value
|
|
2658
|
+
}, {
|
|
2659
|
+
default: withCtx(() => [
|
|
2660
|
+
shouldCollapse.value && __props.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
|
|
2661
|
+
key: 0,
|
|
2662
|
+
class: "parameter-item-description",
|
|
2663
|
+
value: __props.parameter.description
|
|
2664
|
+
}, null, 8, ["value"])) : createCommentVNode("", true),
|
|
2665
|
+
headers.value ? (openBlock(), createBlock(Headers_default, {
|
|
2666
|
+
key: 1,
|
|
2667
|
+
breadcrumb: __props.breadcrumb,
|
|
2668
|
+
eventBus: __props.eventBus,
|
|
2669
|
+
headers: headers.value,
|
|
2690
2670
|
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
2691
2671
|
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
2692
|
-
},
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
"
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2672
|
+
}, null, 8, [
|
|
2673
|
+
"breadcrumb",
|
|
2674
|
+
"eventBus",
|
|
2675
|
+
"headers",
|
|
2676
|
+
"orderRequiredPropertiesFirst",
|
|
2677
|
+
"orderSchemaPropertiesBy"
|
|
2678
|
+
])) : createCommentVNode("", true),
|
|
2679
|
+
createVNode(SchemaProperty_default, {
|
|
2680
|
+
is: "div",
|
|
2681
|
+
breadcrumb: __props.breadcrumb,
|
|
2682
|
+
compact: "",
|
|
2683
|
+
description: shouldCollapse.value ? "" : __props.parameter.description,
|
|
2684
|
+
eventBus: __props.eventBus,
|
|
2685
|
+
hideWriteOnly: true,
|
|
2686
|
+
modelName: schemaModelName.value,
|
|
2687
|
+
name: shouldCollapse.value ? "" : __props.name,
|
|
2688
|
+
noncollapsible: true,
|
|
2689
|
+
options: {
|
|
2690
|
+
hideWriteOnly: true,
|
|
2691
|
+
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
2692
|
+
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
2693
|
+
},
|
|
2694
|
+
required: "required" in __props.parameter && __props.parameter.required,
|
|
2695
|
+
schema: value.value
|
|
2696
|
+
}, null, 8, [
|
|
2697
|
+
"breadcrumb",
|
|
2698
|
+
"description",
|
|
2699
|
+
"eventBus",
|
|
2700
|
+
"modelName",
|
|
2701
|
+
"name",
|
|
2702
|
+
"options",
|
|
2703
|
+
"required",
|
|
2704
|
+
"schema"
|
|
2705
|
+
])
|
|
2706
|
+
]),
|
|
2707
|
+
_: 1
|
|
2708
|
+
}, 8, ["static"])
|
|
2709
|
+
]),
|
|
2708
2710
|
_: 1
|
|
2709
2711
|
})]);
|
|
2710
2712
|
};
|
|
2711
2713
|
}
|
|
2712
|
-
}), [["__scopeId", "data-v-
|
|
2714
|
+
}), [["__scopeId", "data-v-f6277c9a"]]);
|
|
2713
2715
|
//#endregion
|
|
2714
2716
|
//#region src/features/Operation/components/ParameterList.vue?vue&type=script&setup=true&lang.ts
|
|
2715
2717
|
var _hoisted_1$8 = {
|
|
@@ -3824,4 +3826,4 @@ var Operation_default = /* @__PURE__ */ defineComponent({
|
|
|
3824
3826
|
//#endregion
|
|
3825
3827
|
export { SchemaHeading_default as a, ScreenReader_default as c, SchemaProperty_default as i, SectionAccordion_default as l, HttpMethod_default as n, getXKeysFromObject as o, Schema_default as r, Anchor_default as s, Operation_default as t };
|
|
3826
3828
|
|
|
3827
|
-
//# sourceMappingURL=Operation-
|
|
3829
|
+
//# sourceMappingURL=Operation-CvpVIkc3.js.map
|