@scalar/api-reference 1.39.1 → 1.39.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 +36 -0
- package/README.md +1 -1
- package/dist/browser/standalone.js +8222 -8172
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +3 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +2 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +4 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/GettingStarted.vue2.js +4 -4
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +14 -10
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -25
- package/dist/style.css +442 -538
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaEnumPropertyItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumPropertyItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaEnumPropertyItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumPropertyItem.vue"],"names":[],"mappings":"AAmGA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;;AA8EF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaEnumPropertyItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaEnumPropertyItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaEnumPropertyItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8a5eccde"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaEnumPropertyItem as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, toDisplayString,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, toDisplayString, unref, createVNode } from "vue";
|
|
2
2
|
import { ScalarMarkdown } from "@scalar/components";
|
|
3
|
+
import { addWordBreaks } from "@scalar/helpers/string/add-word-breaks";
|
|
3
4
|
const _hoisted_1 = { class: "property-enum-value" };
|
|
4
5
|
const _hoisted_2 = { class: "property-enum-value-content" };
|
|
5
6
|
const _hoisted_3 = { class: "property-enum-value-label" };
|
|
@@ -17,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
18
|
return (_ctx, _cache) => {
|
|
18
19
|
return openBlock(), createElementBlock("li", _hoisted_1, [
|
|
19
20
|
createElementVNode("div", _hoisted_2, [
|
|
20
|
-
createElementVNode("span", _hoisted_3, toDisplayString(_ctx.label), 1),
|
|
21
|
+
createElementVNode("span", _hoisted_3, toDisplayString(unref(addWordBreaks)(_ctx.label, { preset: "property" })), 1),
|
|
21
22
|
_ctx.description ? (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
22
23
|
createVNode(unref(ScalarMarkdown), { value: _ctx.description }, null, 8, ["value"])
|
|
23
24
|
])) : createCommentVNode("", true)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaHeading.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAMhG,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;;AAyFF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d7e5e7ec"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaHeading as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, createCommentVNode, openBlock, createElementVNode, unref, Fragment, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { addWordBreaks } from "@scalar/helpers/string/add-word-breaks";
|
|
2
3
|
import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
3
4
|
import { isTypeObject } from "./helpers/is-type-object.js";
|
|
4
5
|
const _hoisted_1 = {
|
|
@@ -45,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
46
|
], 64)) : createCommentVNode("", true)
|
|
46
47
|
], 8, _hoisted_2),
|
|
47
48
|
_ctx.name ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
48
|
-
createTextVNode(toDisplayString(_ctx.name), 1)
|
|
49
|
+
createTextVNode(toDisplayString(unref(addWordBreaks)(_ctx.name, { preset: "property" })), 1)
|
|
49
50
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
50
51
|
createTextVNode(toDisplayString(failsafeType.value), 1)
|
|
51
52
|
], 64))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0jBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAUtE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;cAVW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAGA,OAAO;;AAskB5B,0BAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0b17418b"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaProperty as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, createCommentVNode, createElementBlock, createVNode, createSlots, unref, toDisplayString, Fragment, createTextVNode, renderList } from "vue";
|
|
2
2
|
import { ScalarMarkdown } from "@scalar/components";
|
|
3
3
|
import { isDefined } from "@scalar/helpers/array/is-defined";
|
|
4
|
+
import { addWordBreaks } from "@scalar/helpers/string/add-word-breaks";
|
|
4
5
|
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
6
|
import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
6
7
|
import { isTypeObject } from "./helpers/is-type-object.js";
|
|
@@ -57,6 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
58
|
},
|
|
58
59
|
setup(__props) {
|
|
59
60
|
const props = __props;
|
|
61
|
+
const formatLabel = (s) => addWordBreaks(s, { preset: "property" });
|
|
60
62
|
const childBreadcrumb = computed(
|
|
61
63
|
() => props.breadcrumb && props.name ? [...props.breadcrumb, props.name] : void 0
|
|
62
64
|
);
|
|
@@ -186,8 +188,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
188
|
eventBus: _ctx.eventBus
|
|
187
189
|
}, {
|
|
188
190
|
default: withCtx(() => [
|
|
189
|
-
_ctx.variant === "patternProperties" ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.name), 1)) : _ctx.variant === "additionalProperties" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.name), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
190
|
-
createTextVNode(toDisplayString(_ctx.name), 1)
|
|
191
|
+
_ctx.variant === "patternProperties" ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(formatLabel(_ctx.name)), 1)) : _ctx.variant === "additionalProperties" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(formatLabel(_ctx.name)), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
192
|
+
createTextVNode(toDisplayString(formatLabel(_ctx.name)), 1)
|
|
191
193
|
], 64))
|
|
192
194
|
]),
|
|
193
195
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAobA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAiBhG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA2dJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC5C,QAAA,MAAM,eAAe;cAjgBN,OAAO;oBAGD,OAAO;qBAJN,OAAO;kBAGV,OAAO;6EAsgBxB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5d03e993"]]);
|
|
5
5
|
export {
|
|
6
6
|
SchemaPropertyHeading as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./GettingStarted.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const GettingStarted = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const GettingStarted = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-673f10b6"]]);
|
|
5
5
|
export {
|
|
6
6
|
GettingStarted as default
|
|
7
7
|
};
|
|
@@ -29,14 +29,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
];
|
|
30
30
|
async function fetchExampleSpecification() {
|
|
31
31
|
const response = await fetch(
|
|
32
|
-
"https://registry.scalar.com/@scalar/apis/galaxy
|
|
32
|
+
"https://registry.scalar.com/@scalar/apis/galaxy?format=yaml"
|
|
33
33
|
);
|
|
34
34
|
emits("updateContent", await response.text());
|
|
35
35
|
}
|
|
36
36
|
return (_ctx, _cache) => {
|
|
37
37
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
38
38
|
createElementVNode("div", _hoisted_2, [
|
|
39
|
-
_cache[3] || (_cache[3] = createStaticVNode('<div class="start-logo" data-v-
|
|
39
|
+
_cache[3] || (_cache[3] = createStaticVNode('<div class="start-logo" data-v-673f10b6><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-673f10b6></path></svg></div><h1 class="start-h1" data-v-673f10b6>Swagger Editor</h1><p class="start-p" data-v-673f10b6> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
|
|
40
40
|
createElementVNode("div", _hoisted_3, [
|
|
41
41
|
createVNode(unref(ScalarButton), {
|
|
42
42
|
class: "w-full",
|
|
@@ -60,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
])
|
|
61
61
|
]),
|
|
62
62
|
createElementVNode("div", _hoisted_4, [
|
|
63
|
-
_cache[5] || (_cache[5] = createStaticVNode('<div class="start-section start-section-integrations" data-v-
|
|
63
|
+
_cache[5] || (_cache[5] = createStaticVNode('<div class="start-section start-section-integrations" data-v-673f10b6><div class="start-h2" data-v-673f10b6>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-673f10b6><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-673f10b6></path></svg><span data-v-673f10b6>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-673f10b6><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><g data-v-673f10b6><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-673f10b6></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-673f10b6></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-673f10b6></path></g></svg><span data-v-673f10b6>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-673f10b6><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><g fill="currentColor" fill-rule="nonzero" data-v-673f10b6><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-673f10b6></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-673f10b6></polygon></g></svg><span data-v-673f10b6>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-673f10b6><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><g fill="none" fill-rule="evenodd" data-v-673f10b6><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-673f10b6></circle><g stroke="currentColor" data-v-673f10b6><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-673f10b6></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-673f10b6></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-673f10b6></ellipse></g></g></svg><span data-v-673f10b6>React</span></a></div>', 1)),
|
|
64
64
|
createElementVNode("div", _hoisted_5, [
|
|
65
65
|
_cache[4] || (_cache[4] = createElementVNode("p", { class: "start-h2" }, "THEMING", -1)),
|
|
66
66
|
(openBlock(), createElementBlock(Fragment, null, renderList(themeIds, (themeId) => {
|
|
@@ -72,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
}), 64))
|
|
73
73
|
])
|
|
74
74
|
]),
|
|
75
|
-
_cache[6] || (_cache[6] = createStaticVNode('<p class="start-h1" data-v-
|
|
75
|
+
_cache[6] || (_cache[6] = createStaticVNode('<p class="start-h1" data-v-673f10b6>Features</p><ul class="start-ul" data-v-673f10b6><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
|
|
76
76
|
]);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAKnG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,CAAA;CACrD,CAAC;AAwCF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;;;;;;AAmIF,wBAOG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, computed, createBlock, createElementBlock, openBlock, unref, withCtx, createVNode, normalizeClass, createElementVNode, createTextVNode, toDisplayString } from "vue";
|
|
1
|
+
import { defineComponent, mergeModels, useModel, computed, createBlock, createElementBlock, openBlock, unref, withModifiers, withCtx, createVNode, normalizeClass, createElementVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { cva, ScalarListbox, ScalarButton } from "@scalar/components";
|
|
3
3
|
import { ScalarIconCaretDown } from "@scalar/icons";
|
|
4
4
|
import ScreenReader from "../../../components/ScreenReader.vue.js";
|
|
@@ -41,30 +41,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
return contentTypes.value.length > 1 ? (openBlock(), createBlock(unref(ScalarListbox), {
|
|
42
42
|
key: 0,
|
|
43
43
|
modelValue: selectedOption.value,
|
|
44
|
-
"onUpdate:modelValue": _cache[
|
|
44
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedOption.value = $event),
|
|
45
45
|
options: options.value,
|
|
46
|
-
placement: "bottom-end"
|
|
46
|
+
placement: "bottom-end",
|
|
47
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
48
|
+
}, ["stop"]))
|
|
47
49
|
}, {
|
|
48
|
-
default: withCtx(() => [
|
|
50
|
+
default: withCtx(({ open }) => [
|
|
49
51
|
createVNode(unref(ScalarButton), {
|
|
50
52
|
class: normalizeClass(["h-fit", unref(contentTypeSelect)({ dropdown: true })]),
|
|
51
|
-
variant: "ghost"
|
|
53
|
+
variant: "ghost",
|
|
54
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
55
|
+
}, ["stop"]))
|
|
52
56
|
}, {
|
|
53
57
|
default: withCtx(() => [
|
|
54
58
|
createVNode(ScreenReader, null, {
|
|
55
|
-
default: withCtx(() => [..._cache[
|
|
59
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
56
60
|
createTextVNode("Selected Content Type:", -1)
|
|
57
61
|
])]),
|
|
58
62
|
_: 1
|
|
59
63
|
}),
|
|
60
64
|
createElementVNode("span", null, toDisplayString(selectedContentType.value), 1),
|
|
61
65
|
createVNode(unref(ScalarIconCaretDown), {
|
|
62
|
-
class: "
|
|
66
|
+
class: normalizeClass(["size-2.75 transition-transform duration-100", { "rotate-180": open }]),
|
|
63
67
|
weight: "bold"
|
|
64
|
-
})
|
|
68
|
+
}, null, 8, ["class"])
|
|
65
69
|
]),
|
|
66
|
-
_:
|
|
67
|
-
},
|
|
70
|
+
_: 2
|
|
71
|
+
}, 1032, ["class"])
|
|
68
72
|
]),
|
|
69
73
|
_: 1
|
|
70
74
|
}, 8, ["modelValue", "options"])) : (openBlock(), createElementBlock("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAySA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAuVF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8c1d456c"]]);
|
|
5
5
|
export {
|
|
6
6
|
ParameterListItem as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, createElementBlock, openBlock, createVNode,
|
|
1
|
+
import { defineComponent, computed, ref, createElementBlock, openBlock, createVNode, unref, withCtx, createBlock, createCommentVNode, normalizeClass, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue";
|
|
3
|
-
import { ScalarMarkdown } from "@scalar/components";
|
|
3
|
+
import { ScalarMarkdownSummary, ScalarMarkdown } from "@scalar/components";
|
|
4
4
|
import { isDefined } from "@scalar/helpers/array/is-defined";
|
|
5
|
+
import { addWordBreaks } from "@scalar/helpers/string/add-word-breaks";
|
|
5
6
|
import { ScalarIconCaretRight } from "@scalar/icons";
|
|
6
7
|
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
7
8
|
import SchemaProperty from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
8
9
|
import _sfc_main$1 from "./ContentTypeSelect.vue.js";
|
|
9
10
|
import Headers from "./Headers.vue.js";
|
|
10
|
-
const _hoisted_1 = { class: "parameter-item group/parameter-item
|
|
11
|
-
const _hoisted_2 = { class: "parameter-item-name" };
|
|
12
|
-
const _hoisted_3 = {
|
|
13
|
-
|
|
11
|
+
const _hoisted_1 = { class: "parameter-item group/parameter-item" };
|
|
12
|
+
const _hoisted_2 = { class: "parameter-item-name min-w-0" };
|
|
13
|
+
const _hoisted_3 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "flex-1"
|
|
16
|
+
};
|
|
14
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
18
|
__name: "ParameterListItem",
|
|
16
19
|
props: {
|
|
@@ -64,20 +67,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
67
|
class: normalizeClass(["parameter-item-trigger", { "parameter-item-trigger-open": open }])
|
|
65
68
|
}, {
|
|
66
69
|
default: withCtx(() => [
|
|
67
|
-
createElementVNode("
|
|
70
|
+
createElementVNode("div", _hoisted_2, [
|
|
68
71
|
createVNode(unref(ScalarIconCaretRight), {
|
|
69
72
|
class: normalizeClass(["parameter-item-icon size-3 transition-transform duration-100", { "rotate-90": open }]),
|
|
70
73
|
weight: "bold"
|
|
71
74
|
}, null, 8, ["class"]),
|
|
72
|
-
createElementVNode("
|
|
75
|
+
createElementVNode("div", null, toDisplayString(unref(addWordBreaks)(_ctx.name, { preset: "property" })), 1)
|
|
73
76
|
]),
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
!open && _ctx.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdownSummary), {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: "parameter-item-description-summary min-w-0 flex-1",
|
|
80
|
+
controlled: "",
|
|
81
|
+
value: _ctx.parameter.description
|
|
82
|
+
}, null, 8, ["value"])) : (openBlock(), createElementBlock("div", _hoisted_3)),
|
|
83
|
+
createElementVNode("div", {
|
|
84
|
+
class: normalizeClass({
|
|
85
|
+
"w-0 overflow-hidden group-focus-within/parameter-item:w-auto group-hover/parameter-item:w-auto": !open
|
|
86
|
+
})
|
|
87
|
+
}, [
|
|
88
|
+
shouldCollapse.value && content.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
76
89
|
key: 0,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
90
|
+
modelValue: selectedContentType.value,
|
|
91
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedContentType.value = $event),
|
|
92
|
+
class: "",
|
|
93
|
+
content: content.value
|
|
94
|
+
}, null, 8, ["modelValue", "content"])) : createCommentVNode("", true)
|
|
95
|
+
], 2)
|
|
81
96
|
]),
|
|
82
97
|
_: 2
|
|
83
98
|
}, 1032, ["class"])) : createCommentVNode("", true),
|
|
@@ -86,8 +101,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
101
|
static: !shouldCollapse.value
|
|
87
102
|
}, {
|
|
88
103
|
default: withCtx(() => [
|
|
89
|
-
|
|
104
|
+
shouldCollapse.value && _ctx.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
|
|
90
105
|
key: 0,
|
|
106
|
+
class: "parameter-item-description",
|
|
107
|
+
value: _ctx.parameter.description
|
|
108
|
+
}, null, 8, ["value"])) : createCommentVNode("", true),
|
|
109
|
+
headers.value ? (openBlock(), createBlock(Headers, {
|
|
110
|
+
key: 1,
|
|
91
111
|
breadcrumb: _ctx.breadcrumb,
|
|
92
112
|
eventBus: _ctx.eventBus,
|
|
93
113
|
headers: headers.value,
|
|
@@ -117,16 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
117
137
|
}, 8, ["static"])
|
|
118
138
|
]),
|
|
119
139
|
_: 1
|
|
120
|
-
})
|
|
121
|
-
createElementVNode("div", _hoisted_4, [
|
|
122
|
-
shouldCollapse.value && content.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
123
|
-
key: 0,
|
|
124
|
-
modelValue: selectedContentType.value,
|
|
125
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedContentType.value = $event),
|
|
126
|
-
class: "parameter-item-content-type",
|
|
127
|
-
content: content.value
|
|
128
|
-
}, null, 8, ["modelValue", "content"])) : createCommentVNode("", true)
|
|
129
|
-
])
|
|
140
|
+
})
|
|
130
141
|
]);
|
|
131
142
|
};
|
|
132
143
|
}
|