@scalar/api-reference 0.1.2 → 0.1.4
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 +18 -0
- package/dist/components/ApiReference.vue.d.ts +8 -5
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/Content/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/{index-4b7dc641.js → index-ad012ba6.js} +2230 -191
- package/dist/index.js +33 -34
- package/dist/style.css +290 -256
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/variables.css +132 -0
- package/package.json +6 -6
- package/src/assets/css/variables.css +77 -9
- package/src/components/ApiClientModal.vue +4 -4
- package/src/components/ApiReference.vue +25 -61
- package/src/components/Card/Card.vue +2 -2
- package/src/components/Card/CardContent.vue +1 -1
- package/src/components/Card/CardFooter.vue +1 -1
- package/src/components/Content/Content.vue +2 -2
- package/src/components/Content/Introduction/BaseUrl.vue +1 -1
- package/src/components/Content/Introduction/Introduction.vue +4 -3
- package/src/components/Content/Introduction/LanguageSelector.vue +1 -1
- package/src/components/Content/MarkdownRenderer.vue +15 -7
- package/src/components/Content/ReferenceEndpoint/ExampleRequest.vue +11 -9
- package/src/components/Content/ReferenceEndpoint/ExampleResponses.vue +1 -1
- package/src/components/Content/ReferenceEndpoint/RequestBody.vue +4 -4
- package/src/components/FindAnythingButton.vue +2 -4
- package/src/components/FlowButton.vue +2 -2
- package/src/components/Sidebar.vue +1 -1
- package/src/types.ts +2 -2
- package/vite.config.ts +11 -1
package/dist/index.js
CHANGED
|
@@ -47909,7 +47909,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
47909
47909
|
};
|
|
47910
47910
|
}
|
|
47911
47911
|
});
|
|
47912
|
-
const _withScopeId$2 = (n2) => (pushScopeId("data-v-
|
|
47912
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-2819d5f9"), n2 = n2(), popScopeId(), n2);
|
|
47913
47913
|
const _hoisted_1$p = {
|
|
47914
47914
|
class: "sidebar-search",
|
|
47915
47915
|
type: "button"
|
|
@@ -47932,7 +47932,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
47932
47932
|
};
|
|
47933
47933
|
}
|
|
47934
47934
|
});
|
|
47935
|
-
const
|
|
47935
|
+
const FindAnythingButton_vue_vue_type_style_index_0_scoped_2819d5f9_lang = "";
|
|
47936
47936
|
const _export_sfc = (sfc, props) => {
|
|
47937
47937
|
const target = sfc.__vccOpts || sfc;
|
|
47938
47938
|
for (const [key2, val] of props) {
|
|
@@ -47940,7 +47940,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
47940
47940
|
}
|
|
47941
47941
|
return target;
|
|
47942
47942
|
};
|
|
47943
|
-
const FindAnythingButton = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
47943
|
+
const FindAnythingButton = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-2819d5f9"]]);
|
|
47944
47944
|
const _hoisted_1$o = {
|
|
47945
47945
|
key: 0,
|
|
47946
47946
|
class: "loader-wrapper"
|
|
@@ -48036,8 +48036,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
48036
48036
|
};
|
|
48037
48037
|
}
|
|
48038
48038
|
});
|
|
48039
|
-
const
|
|
48040
|
-
const FlowButton = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
48039
|
+
const FlowButton_vue_vue_type_style_index_0_scoped_6c87717a_lang = "";
|
|
48040
|
+
const FlowButton = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-6c87717a"]]);
|
|
48041
48041
|
const __vite_glob_0_0 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m.25 7.21 11 12.47a1.06 1.06 0 0 0 1.54 0l11-12.47a1 1 0 0 0 .21-.73 1 1 0 0 0-.36-.69l-1.85-1.55a1 1 0 0 0-.74-.24 1 1 0 0 0-.69.35l-8.17 9.45a.27.27 0 0 1-.38 0L3.64 4.35A1 1 0 0 0 3 4a1 1 0 0 0-.74.23L.36 5.79a1 1 0 0 0-.36.69 1 1 0 0 0 .25.73Z" fill="currentColor"></path></svg>';
|
|
48042
48042
|
const __vite_glob_0_1 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m16.79.25-12.47 11a1.06 1.06 0 0 0 0 1.54l12.47 11a1 1 0 0 0 .73.25 1 1 0 0 0 .69-.36l1.55-1.85a1 1 0 0 0 .24-.74 1 1 0 0 0-.35-.69l-9.45-8.21a.27.27 0 0 1 0-.38l9.45-8.17A1 1 0 0 0 20 3a1 1 0 0 0-.23-.74L18.21.36a1 1 0 0 0-.69-.36 1 1 0 0 0-.73.25Z" fill="currentColor"></path></svg>';
|
|
48043
48043
|
const __vite_glob_0_2 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m7.21 23.75 12.47-11a1.06 1.06 0 0 0 0-1.54L7.21.25A1 1 0 0 0 6.48 0a1 1 0 0 0-.69.36L4.24 2.21A1 1 0 0 0 4 3a1 1 0 0 0 .35.69l9.45 8.17a.27.27 0 0 1 0 .38l-9.45 8.12a1 1 0 0 0-.35.69 1 1 0 0 0 .23.74l1.56 1.85a1 1 0 0 0 .69.36 1 1 0 0 0 .73-.25Z" fill="currentColor"></path></svg>';
|
|
@@ -48696,9 +48696,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
48696
48696
|
};
|
|
48697
48697
|
}
|
|
48698
48698
|
});
|
|
48699
|
-
const
|
|
48700
|
-
const ApiClientModal = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
48701
|
-
const
|
|
48699
|
+
const ApiClientModal_vue_vue_type_style_index_0_scoped_1ad962df_lang = "";
|
|
48700
|
+
const ApiClientModal = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-1ad962df"]]);
|
|
48701
|
+
const Card_vue_vue_type_style_index_0_scoped_18b26a5c_lang = "";
|
|
48702
48702
|
const _sfc_main$m = {};
|
|
48703
48703
|
const _hoisted_1$i = { class: "card" };
|
|
48704
48704
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -48706,7 +48706,7 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
48706
48706
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
48707
48707
|
]);
|
|
48708
48708
|
}
|
|
48709
|
-
const Card = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
48709
|
+
const Card = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$1], ["__scopeId", "data-v-18b26a5c"]]);
|
|
48710
48710
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
48711
48711
|
__name: "CardContent",
|
|
48712
48712
|
props: {
|
|
@@ -48729,8 +48729,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
48729
48729
|
};
|
|
48730
48730
|
}
|
|
48731
48731
|
});
|
|
48732
|
-
const
|
|
48733
|
-
const CardContent = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
48732
|
+
const CardContent_vue_vue_type_style_index_0_scoped_8fdcb32d_lang = "";
|
|
48733
|
+
const CardContent = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-8fdcb32d"]]);
|
|
48734
48734
|
const _hoisted_1$h = { class: "card-header-slots" };
|
|
48735
48735
|
const _hoisted_2$f = { class: "card-header-slot card-header-title" };
|
|
48736
48736
|
const _hoisted_3$c = { class: "card-header-slot card-header-actions" };
|
|
@@ -48769,8 +48769,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
48769
48769
|
};
|
|
48770
48770
|
}
|
|
48771
48771
|
});
|
|
48772
|
-
const
|
|
48773
|
-
const CardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
48772
|
+
const CardFooter_vue_vue_type_style_index_0_scoped_67e35cbc_lang = "";
|
|
48773
|
+
const CardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-67e35cbc"]]);
|
|
48774
48774
|
function u(r2, n2, ...a2) {
|
|
48775
48775
|
if (r2 in n2) {
|
|
48776
48776
|
let e2 = n2[r2];
|
|
@@ -62431,8 +62431,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
62431
62431
|
};
|
|
62432
62432
|
}
|
|
62433
62433
|
});
|
|
62434
|
-
const
|
|
62435
|
-
const MarkdownRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
62434
|
+
const MarkdownRenderer_vue_vue_type_style_index_0_scoped_b7dd07e1_lang = "";
|
|
62435
|
+
const MarkdownRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b7dd07e1"]]);
|
|
62436
62436
|
let nanoid = (size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce((id2, byte) => {
|
|
62437
62437
|
byte &= 63;
|
|
62438
62438
|
if (byte < 36) {
|
|
@@ -62515,9 +62515,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
62515
62515
|
};
|
|
62516
62516
|
}
|
|
62517
62517
|
});
|
|
62518
|
-
const
|
|
62519
|
-
const BaseUrl = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
62520
|
-
const _withScopeId$1 = (n2) => (pushScopeId("data-v-
|
|
62518
|
+
const BaseUrl_vue_vue_type_style_index_0_scoped_eedff8c4_lang = "";
|
|
62519
|
+
const BaseUrl = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-eedff8c4"]]);
|
|
62520
|
+
const _withScopeId$1 = (n2) => (pushScopeId("data-v-26e49734"), n2 = n2(), popScopeId(), n2);
|
|
62521
62521
|
const _hoisted_1$e = { class: "client-libraries-content" };
|
|
62522
62522
|
const _hoisted_2$e = ["onClick"];
|
|
62523
62523
|
const _hoisted_3$b = { class: "code-languages code-languages__select" };
|
|
@@ -62666,8 +62666,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
62666
62666
|
};
|
|
62667
62667
|
}
|
|
62668
62668
|
});
|
|
62669
|
-
const
|
|
62670
|
-
const LanguageSelector = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
62669
|
+
const LanguageSelector_vue_vue_type_style_index_0_scoped_26e49734_lang = "";
|
|
62670
|
+
const LanguageSelector = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-26e49734"]]);
|
|
62671
62671
|
const _hoisted_1$d = { class: "reference" };
|
|
62672
62672
|
const _hoisted_2$d = { class: "reference-container" };
|
|
62673
62673
|
const _hoisted_3$a = { class: "copy" };
|
|
@@ -62721,9 +62721,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
62721
62721
|
_ctx.info.description ? (openBlock(), createBlock(MarkdownRenderer, {
|
|
62722
62722
|
key: 0,
|
|
62723
62723
|
value: _ctx.info.description
|
|
62724
|
-
}, null, 8, ["value"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList([...Array(8).keys()], (
|
|
62724
|
+
}, null, 8, ["value"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList([...Array(8).keys()], (index2) => {
|
|
62725
62725
|
return openBlock(), createElementBlock("span", {
|
|
62726
|
-
key:
|
|
62726
|
+
key: index2,
|
|
62727
62727
|
class: "loading"
|
|
62728
62728
|
});
|
|
62729
62729
|
}), 128))
|
|
@@ -62788,8 +62788,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
62788
62788
|
};
|
|
62789
62789
|
}
|
|
62790
62790
|
});
|
|
62791
|
-
const
|
|
62792
|
-
const Introduction = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
62791
|
+
const Introduction_vue_vue_type_style_index_0_scoped_2e8d58fe_lang = "";
|
|
62792
|
+
const Introduction = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2e8d58fe"]]);
|
|
62793
62793
|
const _hoisted_1$c = { class: "parameter-name" };
|
|
62794
62794
|
const _hoisted_2$c = {
|
|
62795
62795
|
key: 1,
|
|
@@ -98379,8 +98379,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
98379
98379
|
};
|
|
98380
98380
|
}
|
|
98381
98381
|
});
|
|
98382
|
-
const
|
|
98383
|
-
const ExampleRequest = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
98382
|
+
const ExampleRequest_vue_vue_type_style_index_0_scoped_ad407d18_lang = "";
|
|
98383
|
+
const ExampleRequest = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ad407d18"]]);
|
|
98384
98384
|
const jsonHighlighting = styleTags$1({
|
|
98385
98385
|
String: tags$1.string,
|
|
98386
98386
|
Number: tags$1.number,
|
|
@@ -98530,8 +98530,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
98530
98530
|
};
|
|
98531
98531
|
}
|
|
98532
98532
|
});
|
|
98533
|
-
const
|
|
98534
|
-
const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
98533
|
+
const ExampleResponses_vue_vue_type_style_index_0_scoped_0bcfbaaa_lang = "";
|
|
98534
|
+
const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0bcfbaaa"]]);
|
|
98535
98535
|
const _hoisted_1$4 = ["id"];
|
|
98536
98536
|
const _hoisted_2$4 = { class: "example" };
|
|
98537
98537
|
const _hoisted_3$3 = { class: "example" };
|
|
@@ -98771,8 +98771,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
98771
98771
|
};
|
|
98772
98772
|
}
|
|
98773
98773
|
});
|
|
98774
|
-
const
|
|
98775
|
-
const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
98774
|
+
const Content_vue_vue_type_style_index_0_scoped_ea5f7d36_lang = "";
|
|
98775
|
+
const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ea5f7d36"]]);
|
|
98776
98776
|
const _hoisted_1 = {
|
|
98777
98777
|
key: 0,
|
|
98778
98778
|
class: "layout-header"
|
|
@@ -98793,14 +98793,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98793
98793
|
documentName: {},
|
|
98794
98794
|
token: {},
|
|
98795
98795
|
username: {},
|
|
98796
|
-
isEditable: { type: Boolean },
|
|
98797
|
-
showSidebar: { type: Boolean },
|
|
98796
|
+
isEditable: { type: Boolean, default: false },
|
|
98797
|
+
showSidebar: { type: Boolean, default: true },
|
|
98798
98798
|
footerBelowSidebar: { type: Boolean }
|
|
98799
98799
|
},
|
|
98800
98800
|
setup(__props) {
|
|
98801
98801
|
const props = __props;
|
|
98802
98802
|
const LazyLoadedCodeEditor = defineAsyncComponent(
|
|
98803
|
-
() => import("./index-
|
|
98803
|
+
() => import("./index-ad012ba6.js").then((module) => module.CodeEditor)
|
|
98804
98804
|
);
|
|
98805
98805
|
const isLargeScreen = useMediaQuery("(min-width: 1150px)");
|
|
98806
98806
|
const isMobile = useMediaQuery("(max-width: 1000px)");
|
|
@@ -98904,7 +98904,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98904
98904
|
});
|
|
98905
98905
|
const variables_css_vue_type_style_index_0_src_true_lang = "";
|
|
98906
98906
|
const ApiReference_vue_vue_type_style_index_1_lang = "";
|
|
98907
|
-
const ApiReference_vue_vue_type_style_index_2_lang = "";
|
|
98908
98907
|
export {
|
|
98909
98908
|
ApiClientModal,
|
|
98910
98909
|
_sfc_main as ApiReference,
|