@scalar/api-reference 1.25.6 → 1.25.9
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 +64 -0
- package/dist/browser/standalone.js +10872 -11312
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.js +5 -5
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +56 -53
- package/dist/components/Content/Authentication/Authentication.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +9 -9
- package/dist/components/Content/Models/Models.vue.d.ts +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +1 -1
- package/dist/components/Content/Models/Models.vue2.js +65 -42
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue.js +2 -2
- package/dist/components/Content/Operation/Operation.vue2.js +46 -59
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +18 -18
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +14 -14
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhook.vue.js +5 -33
- package/dist/components/Content/Webhooks/Webhook.vue2.js +37 -2
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +93 -62
- package/dist/components/Section/CompactSection.vue.d.ts +28 -0
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -0
- package/dist/components/Section/CompactSection.vue.js +7 -0
- package/dist/components/Section/CompactSection.vue2.js +59 -0
- package/dist/components/Section/index.d.ts +1 -0
- package/dist/components/Section/index.d.ts.map +1 -1
- package/dist/{components/Content/Models/CollapsedModel.vue.d.ts → embeds/ExampleRequest/ExampleRequest.vue.d.ts} +9 -5
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -0
- package/dist/embeds/ExampleRequest/index.d.ts +2 -0
- package/dist/embeds/ExampleRequest/index.d.ts.map +1 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +508 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -0
- package/dist/embeds/OpenApiDocument/index.d.ts +3 -0
- package/dist/embeds/OpenApiDocument/index.d.ts.map +1 -0
- package/dist/embeds/OpenApiDocument/types.d.ts +3 -0
- package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -0
- package/dist/embeds/index.d.ts +3 -0
- package/dist/embeds/index.d.ts.map +1 -0
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +24 -74
- package/dist/features/BaseUrl/types.d.ts +1 -1
- package/dist/features/BaseUrl/types.d.ts.map +1 -1
- package/dist/features/BaseUrl/utils/getServers.d.ts +3 -2
- package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -1
- package/dist/{components/Content/Introduction/DownloadSpec.vue.d.ts → features/DownloadLink/DownloadLink.vue.d.ts} +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -0
- package/dist/features/DownloadLink/DownloadLink.vue.js +7 -0
- package/dist/features/DownloadLink/DownloadLink.vue2.js +36 -0
- package/dist/features/DownloadLink/index.d.ts +2 -0
- package/dist/features/DownloadLink/index.d.ts.map +1 -0
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +1 -3
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +127 -122
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +3 -3
- package/dist/features/Search/SearchModal.vue2.js +63 -58
- package/dist/helpers/createEmptySpecification.d.ts +1 -1
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/getApiClientRequest.d.ts +1 -1
- package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
- package/dist/helpers/getHarRequest.d.ts.map +1 -1
- package/dist/helpers/getHarRequest.js +8 -15
- package/dist/helpers/getModels.d.ts +1 -1
- package/dist/helpers/getModels.d.ts.map +1 -1
- package/dist/helpers/openClientFor.d.ts +1 -1
- package/dist/helpers/openClientFor.d.ts.map +1 -1
- package/dist/helpers/openClientFor.js +5 -5
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/provideSymbols.d.ts +3 -2
- package/dist/helpers/provideSymbols.d.ts.map +1 -1
- package/dist/helpers/provideSymbols.js +3 -2
- package/dist/index.js +65 -64
- package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue2.js +57 -53
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +4 -4
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +5 -5
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +1 -1
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
- package/dist/legacy/helpers/index.d.ts +1 -1
- package/dist/legacy/helpers/normalizeHeaders.d.ts +2 -3
- package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
- package/dist/legacy/helpers/normalizeHeaders.js +24 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts +2 -2
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/legacy/stores/useServerStore.d.ts +32 -6
- package/dist/legacy/stores/useServerStore.d.ts.map +1 -1
- package/dist/legacy/stores/useServerStore.js +70 -11
- package/dist/legacy/types.d.ts +0 -23
- package/dist/legacy/types.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +13 -12
- package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts.map +0 -1
- package/dist/components/Content/Introduction/DownloadSpec.vue.js +0 -7
- package/dist/components/Content/Introduction/DownloadSpec.vue2.js +0 -30
- package/dist/components/Content/Models/CollapsedModel.vue.d.ts.map +0 -1
- package/dist/components/Content/Models/CollapsedModel.vue.js +0 -7
- package/dist/components/Content/Models/CollapsedModel.vue2.js +0 -70
- package/dist/features/BaseUrl/utils/index.d.ts +0 -2
- package/dist/features/BaseUrl/utils/index.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.25.
|
|
23
|
+
"version": "1.25.9",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
@@ -45,12 +45,9 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@floating-ui/vue": "^1.0.2",
|
|
47
47
|
"@headlessui/vue": "^1.7.20",
|
|
48
|
-
"@scalar/openapi-parser": "^0.7.2",
|
|
49
|
-
"@scalar/snippetz": "^0.1.6",
|
|
50
48
|
"@unhead/schema": "^1.9.5",
|
|
51
49
|
"@unhead/vue": "^1.9.13",
|
|
52
50
|
"@vueuse/core": "^10.10.0",
|
|
53
|
-
"axios": "^1.6.8",
|
|
54
51
|
"fuse.js": "^7.0.0",
|
|
55
52
|
"github-slugger": "^2.0.0",
|
|
56
53
|
"httpsnippet-lite": "^3.0.5",
|
|
@@ -59,13 +56,16 @@
|
|
|
59
56
|
"unhead": "^1.8.3",
|
|
60
57
|
"unified": "^11.0.4",
|
|
61
58
|
"vue": "^3.4.29",
|
|
62
|
-
"@scalar/api-client": "2.0.
|
|
63
|
-
"@scalar/components": "0.12.
|
|
64
|
-
"@scalar/
|
|
65
|
-
"@scalar/
|
|
66
|
-
"@scalar/types": "0.0
|
|
59
|
+
"@scalar/api-client": "2.0.62",
|
|
60
|
+
"@scalar/components": "0.12.42",
|
|
61
|
+
"@scalar/oas-utils": "0.2.41",
|
|
62
|
+
"@scalar/code-highlight": "0.0.11",
|
|
63
|
+
"@scalar/openapi-types": "0.1.0",
|
|
64
|
+
"@scalar/openapi-parser": "0.8.1",
|
|
65
|
+
"@scalar/themes": "0.9.28",
|
|
66
|
+
"@scalar/types": "0.0.6",
|
|
67
67
|
"@scalar/use-toasts": "0.7.5",
|
|
68
|
-
"@scalar/
|
|
68
|
+
"@scalar/snippetz": "0.2.2",
|
|
69
69
|
"@scalar/use-tooltip": "1.0.2"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
91
91
|
"vitest": "^1.6.0",
|
|
92
92
|
"vitest-matchmedia-mock": "^1.0.5",
|
|
93
|
-
"@scalar/
|
|
94
|
-
"@scalar/
|
|
93
|
+
"@scalar/galaxy": "0.2.7",
|
|
94
|
+
"@scalar/build-tooling": "0.1.10"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"analyze:default": "pnpm dlx vite-bundle-visualizer",
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
"build:storybook": "storybook build",
|
|
103
103
|
"dev": "vite",
|
|
104
104
|
"dev:standalone": "vite -c vite.standalone.config.ts",
|
|
105
|
+
"playground:embed": "vite ./playground/embed -c ./vite.config.ts",
|
|
105
106
|
"lint:check": "eslint .",
|
|
106
107
|
"lint:fix": "eslint . --fix",
|
|
107
108
|
"preview": "vite preview",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadSpec.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/DownloadSpec.vue"],"names":[],"mappings":";gBAqDc,MAAM;;gBAAN,MAAM;;AA+DpB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, inject as a, openBlock as e, createElementBlock as t, createElementVNode as p, unref as i, createCommentVNode as r } from "vue";
|
|
2
|
-
import { HIDE_DOWNLOAD_BUTTON_SYMBOL as m } from "../../../helpers/provideSymbols.js";
|
|
3
|
-
import { downloadSpecBus as _ } from "../../../helpers/specDownloads.js";
|
|
4
|
-
const u = { class: "download" }, w = { class: "download-cta" }, S = /* @__PURE__ */ s({
|
|
5
|
-
__name: "DownloadSpec",
|
|
6
|
-
props: {
|
|
7
|
-
specTitle: {}
|
|
8
|
-
},
|
|
9
|
-
setup(n) {
|
|
10
|
-
const c = n, d = a(m), l = () => {
|
|
11
|
-
_.emit({ id: "", specTitle: c.specTitle });
|
|
12
|
-
};
|
|
13
|
-
return (f, D) => {
|
|
14
|
-
var o;
|
|
15
|
-
return e(), t("div", u, [
|
|
16
|
-
p("div", w, [
|
|
17
|
-
(o = i(d)) != null && o() ? r("", !0) : (e(), t("button", {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "download-button",
|
|
20
|
-
type: "button",
|
|
21
|
-
onClick: l
|
|
22
|
-
}, " Download OpenAPI Spec "))
|
|
23
|
-
])
|
|
24
|
-
]);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
S as default
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsedModel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/CollapsedModel.vue"],"names":[],"mappings":";UAkH8B,MAAM;aAAW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;UAApC,MAAM;aAAW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;AAwJlE,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, ref as f, watch as h, nextTick as v, openBlock as m, createElementBlock as t, unref as a, Fragment as C, createElementVNode as g, createVNode as n, withCtx as i, createBlock as k, createCommentVNode as d } from "vue";
|
|
2
|
-
import { ScalarIcon as b } from "@scalar/components";
|
|
3
|
-
import w from "../../Anchor/Anchor.vue.js";
|
|
4
|
-
import S from "../Schema/SchemaHeading.vue.js";
|
|
5
|
-
import I from "../../Section/Section.vue.js";
|
|
6
|
-
import N from "../Schema/Schema.vue.js";
|
|
7
|
-
import { scrollToId as y } from "../../../helpers/scrollToId.js";
|
|
8
|
-
import { useNavState as B } from "../../../hooks/useNavState.js";
|
|
9
|
-
const V = ["id", "label"], $ = /* @__PURE__ */ p({
|
|
10
|
-
__name: "CollapsedModel",
|
|
11
|
-
props: {
|
|
12
|
-
name: {},
|
|
13
|
-
schemas: {}
|
|
14
|
-
},
|
|
15
|
-
setup(c) {
|
|
16
|
-
const r = c, { hash: u, getModelId: l } = B(), o = f(!1);
|
|
17
|
-
return h(
|
|
18
|
-
u,
|
|
19
|
-
async (e) => {
|
|
20
|
-
e === l(r.name) && !o.value && (o.value = !0, await v(), y(l(r.name)));
|
|
21
|
-
},
|
|
22
|
-
{ immediate: !0 }
|
|
23
|
-
), (e, s) => (m(), t("div", {
|
|
24
|
-
id: a(l)(e.name),
|
|
25
|
-
class: "collapsed-model",
|
|
26
|
-
label: e.name
|
|
27
|
-
}, [
|
|
28
|
-
e.schemas[e.name] ? (m(), t(C, { key: 0 }, [
|
|
29
|
-
g("div", {
|
|
30
|
-
class: "collapsed-model-trigger",
|
|
31
|
-
onClick: s[0] || (s[0] = (E) => o.value = !o.value)
|
|
32
|
-
}, [
|
|
33
|
-
n(a(b), {
|
|
34
|
-
icon: o.value ? "ChevronDown" : "ChevronRight",
|
|
35
|
-
size: "sm"
|
|
36
|
-
}, null, 8, ["icon"]),
|
|
37
|
-
n(w, {
|
|
38
|
-
id: a(l)(e.name)
|
|
39
|
-
}, {
|
|
40
|
-
default: i(() => [
|
|
41
|
-
n(a(S), {
|
|
42
|
-
name: e.name,
|
|
43
|
-
value: e.schemas[e.name]
|
|
44
|
-
}, null, 8, ["name", "value"])
|
|
45
|
-
]),
|
|
46
|
-
_: 1
|
|
47
|
-
}, 8, ["id"])
|
|
48
|
-
]),
|
|
49
|
-
o.value ? (m(), k(a(I), {
|
|
50
|
-
key: 0,
|
|
51
|
-
id: a(l)(e.name),
|
|
52
|
-
class: "collapsed-model-section",
|
|
53
|
-
label: e.name
|
|
54
|
-
}, {
|
|
55
|
-
default: i(() => [
|
|
56
|
-
n(a(N), {
|
|
57
|
-
hideHeading: !0,
|
|
58
|
-
noncollapsible: "",
|
|
59
|
-
value: e.schemas[e.name]
|
|
60
|
-
}, null, 8, ["value"])
|
|
61
|
-
]),
|
|
62
|
-
_: 1
|
|
63
|
-
}, 8, ["id", "label"])) : d("", !0)
|
|
64
|
-
], 64)) : d("", !0)
|
|
65
|
-
], 8, V));
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
export {
|
|
69
|
-
$ as default
|
|
70
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/BaseUrl/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|