@scalar/api-reference 1.32.9 → 1.32.10
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 +29 -0
- package/dist/browser/standalone.js +15115 -14878
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +164 -176
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.js +3 -3
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +21 -21
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- 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 +104 -72
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/LinkList/LinkList.vue.d.ts +18 -0
- package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -0
- package/dist/components/LinkList/LinkList.vue.js +12 -0
- package/dist/components/LinkList/index.d.ts +2 -0
- package/dist/components/LinkList/index.d.ts.map +1 -0
- package/dist/components/Section/SectionHeader.vue.d.ts +1 -0
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +2 -2
- package/dist/components/Section/SectionHeader.vue2.js +11 -10
- package/dist/features/Operation/Operation.vue.d.ts +6 -6
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +50 -49
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +164 -163
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +111 -118
- package/dist/features/api-client-modal/useApiClient.d.ts +5299 -5299
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/base-url/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/base-url/BaseUrl.vue.js +26 -26
- package/dist/features/download-link/DownloadLink.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponseTab.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponses.vue2.js +60 -57
- package/dist/features/external-docs/ExternalDocs.vue.d.ts +7 -0
- package/dist/features/external-docs/ExternalDocs.vue.d.ts.map +1 -0
- package/dist/features/external-docs/ExternalDocs.vue.js +36 -0
- package/dist/features/external-docs/ExternalDocs.vue2.js +4 -0
- package/dist/features/external-docs/index.d.ts +2 -0
- package/dist/features/external-docs/index.d.ts.map +1 -0
- package/dist/features/info-object/Contact.vue.d.ts +7 -0
- package/dist/features/info-object/Contact.vue.d.ts.map +1 -0
- package/dist/features/info-object/Contact.vue.js +44 -0
- package/dist/features/info-object/Contact.vue2.js +4 -0
- package/dist/features/info-object/License.vue.d.ts +7 -0
- package/dist/features/info-object/License.vue.d.ts.map +1 -0
- package/dist/features/info-object/License.vue.js +34 -0
- package/dist/features/info-object/License.vue2.js +4 -0
- package/dist/features/info-object/TermsOfService.vue.d.ts +7 -0
- package/dist/features/info-object/TermsOfService.vue.d.ts.map +1 -0
- package/dist/features/info-object/TermsOfService.vue.js +30 -0
- package/dist/features/info-object/TermsOfService.vue2.js +4 -0
- package/dist/features/info-object/index.d.ts +4 -0
- package/dist/features/info-object/index.d.ts.map +1 -0
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +21 -19
- package/dist/helpers/convert-security-scheme.js +23 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -15
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -2
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +69 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +227 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
- package/dist/v2/events/definitions.js +7 -0
- package/dist/v2/events/index.d.ts +1 -1
- package/dist/v2/events/listeners.d.ts +1 -1
- package/dist/v2/hooks/useStore.js +14 -0
- package/package.json +11 -11
- package/LICENSE +0 -21
- package/dist/blocks/constants.js +0 -6
- package/dist/blocks/helpers/getPointer.js +0 -12
- package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
- package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
- package/dist/blocks/hooks/useBlockProps.js +0 -24
- package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
- package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExamplePicker.vue.js +0 -7
- package/dist/features/example-request/ExamplePicker.vue2.js +0 -57
- package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -85
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExampleRequest.vue.js +0 -7
- package/dist/features/example-request/ExampleRequest.vue2.js +0 -348
- package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
- package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
- package/dist/features/example-request/TextSelect.vue.js +0 -48
- package/dist/features/example-request/TextSelect.vue3.js +0 -5
- package/dist/features/example-request/index.d.ts +0 -3
- package/dist/features/example-request/index.d.ts.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { snippetz as a } from "@scalar/snippetz";
|
|
2
|
+
import { capitalize as r } from "vue";
|
|
3
|
+
const f = (l) => `custom/${l.lang}`, u = (l, i) => {
|
|
4
|
+
const o = a().clients().flatMap((t) => {
|
|
5
|
+
const n = t.clients.flatMap((e) => {
|
|
6
|
+
const c = `${t.key}/${e.client}`;
|
|
7
|
+
return i && !i.includes(c) ? [] : {
|
|
8
|
+
id: c,
|
|
9
|
+
lang: e.client === "curl" ? "curl" : t.key,
|
|
10
|
+
title: `${r(t.title)} ${e.title}`,
|
|
11
|
+
label: e.title
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
return n.length === 0 ? [] : {
|
|
15
|
+
label: t.title,
|
|
16
|
+
options: n
|
|
17
|
+
};
|
|
18
|
+
}), s = l.map((t) => {
|
|
19
|
+
const n = f(t), e = t.label || t.lang || n;
|
|
20
|
+
return {
|
|
21
|
+
id: n,
|
|
22
|
+
lang: t.lang || "plaintext",
|
|
23
|
+
title: e,
|
|
24
|
+
label: e
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
return s.length > 0 && o.unshift({
|
|
28
|
+
label: "Code Examples",
|
|
29
|
+
options: s
|
|
30
|
+
}), o;
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
u as generateClientOptions,
|
|
34
|
+
f as generateCustomId
|
|
35
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { operationToHar as u } from "@scalar/oas-utils/helpers/operation-to-har";
|
|
2
|
+
import { isReference as d } from "@scalar/workspace-store/schemas/v3.1/type-guard";
|
|
3
|
+
import { getSnippet as l } from "@scalar/api-client/views/Components/CodeSnippet";
|
|
4
|
+
const S = ({
|
|
5
|
+
clientId: t,
|
|
6
|
+
operation: e,
|
|
7
|
+
method: o,
|
|
8
|
+
path: n,
|
|
9
|
+
example: i,
|
|
10
|
+
contentType: p,
|
|
11
|
+
server: s,
|
|
12
|
+
securitySchemes: a
|
|
13
|
+
}) => {
|
|
14
|
+
if (d(e))
|
|
15
|
+
return "";
|
|
16
|
+
const c = u({
|
|
17
|
+
operation: e,
|
|
18
|
+
contentType: p,
|
|
19
|
+
method: o,
|
|
20
|
+
path: n,
|
|
21
|
+
server: s,
|
|
22
|
+
securitySchemes: a,
|
|
23
|
+
example: i
|
|
24
|
+
}), [m, f] = t.split("/"), [r, g] = l(m, f, c);
|
|
25
|
+
return r ? r.message ?? "Error generating code snippet" : g;
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
S as generateCodeSnippet
|
|
29
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { isDefined as o } from "@scalar/helpers/array/is-defined";
|
|
2
|
+
const e = (t) => t.flatMap((r) => r.type === "apiKey" ? r["x-scalar-secret-token"] : (r == null ? void 0 : r.type) === "http" ? [
|
|
3
|
+
r["x-scalar-secret-token"],
|
|
4
|
+
r["x-scalar-secret-username"],
|
|
5
|
+
r["x-scalar-secret-password"],
|
|
6
|
+
btoa(`${r["x-scalar-secret-username"]}:${r["x-scalar-secret-password"]}`)
|
|
7
|
+
] : r.type === "oauth2" ? Object.values(r.flows).map((a) => a["x-scalar-secret-token"]) : []).filter(o);
|
|
8
|
+
export {
|
|
9
|
+
e as getSecrets
|
|
10
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as RequestExample } from './components/RequestExample.vue';
|
|
2
|
-
export { default as ExamplePicker } from './components/ExamplePicker.vue';
|
|
1
|
+
export { default as RequestExample } from './components/RequestExample.vue.js';
|
|
2
|
+
export { default as ExamplePicker } from './components/ExamplePicker.vue.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type ApiReferenceEvents, type ApiReferenceEvent, emitCustomEvent } from './definitions';
|
|
1
|
+
export { type ApiReferenceEvents, type ApiReferenceEvent, emitCustomEvent } from './definitions.js';
|
|
2
2
|
export { onCustomEvent } from './listeners.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { provide as r, inject as n } from "vue";
|
|
2
|
+
const o = Symbol(), a = (e) => {
|
|
3
|
+
if (e)
|
|
4
|
+
return r(o, e), e;
|
|
5
|
+
const t = n(o);
|
|
6
|
+
if (!t)
|
|
7
|
+
throw new Error(
|
|
8
|
+
"useStore() was called without a store and no store instance was found. Make sure to call useStore(store) in a parent component first."
|
|
9
|
+
);
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as useStore
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.32.
|
|
23
|
+
"version": "1.32.10",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
"nanoid": "5.1.5",
|
|
55
55
|
"vue": "^3.5.17",
|
|
56
56
|
"zod": "3.24.1",
|
|
57
|
+
"@scalar/api-client": "2.5.19",
|
|
57
58
|
"@scalar/code-highlight": "0.1.8",
|
|
58
|
-
"@scalar/
|
|
59
|
+
"@scalar/components": "0.14.20",
|
|
59
60
|
"@scalar/helpers": "0.0.6",
|
|
60
|
-
"@scalar/components": "0.14.19",
|
|
61
61
|
"@scalar/icons": "0.4.6",
|
|
62
|
-
"@scalar/
|
|
62
|
+
"@scalar/oas-utils": "0.4.15",
|
|
63
|
+
"@scalar/openapi-parser": "0.18.2",
|
|
63
64
|
"@scalar/object-utils": "1.2.2",
|
|
64
65
|
"@scalar/openapi-types": "0.3.6",
|
|
65
|
-
"@scalar/
|
|
66
|
-
"@scalar/
|
|
67
|
-
"@scalar/themes": "0.13.10",
|
|
66
|
+
"@scalar/snippetz": "0.4.3",
|
|
67
|
+
"@scalar/types": "0.2.10",
|
|
68
68
|
"@scalar/use-hooks": "0.2.4",
|
|
69
|
-
"@scalar/snippetz": "0.4.2",
|
|
70
69
|
"@scalar/use-toasts": "0.8.0",
|
|
71
|
-
"@scalar/workspace-store": "0.10.
|
|
70
|
+
"@scalar/workspace-store": "0.10.2",
|
|
71
|
+
"@scalar/themes": "0.13.11"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@tailwindcss/vite": "^4.1.7",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
87
87
|
"vitest": "^1.6.1",
|
|
88
88
|
"@scalar/build-tooling": "0.2.4",
|
|
89
|
-
"@scalar/
|
|
90
|
-
"@scalar/
|
|
89
|
+
"@scalar/galaxy": "0.5.5",
|
|
90
|
+
"@scalar/react-renderer": "0.2.1"
|
|
91
91
|
},
|
|
92
92
|
"scripts": {
|
|
93
93
|
"build": "pnpm build:default && pnpm build:standalone && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023-present Scalar
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/dist/blocks/constants.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ERRORS as n } from "../constants.js";
|
|
2
|
-
import { escapeJsonPointer as e } from "@scalar/openapi-parser";
|
|
3
|
-
function m(o) {
|
|
4
|
-
o.unshift("#");
|
|
5
|
-
const r = o.map((t) => e(t.trim())).filter(Boolean).join("/");
|
|
6
|
-
if (r === "#")
|
|
7
|
-
throw new Error(n.EMPTY_PATH);
|
|
8
|
-
return r;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
m as getPointer
|
|
12
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { createWorkspaceStore } from '@scalar/api-client/store';
|
|
2
|
-
import type { Collection } from '@scalar/oas-utils/entities/spec';
|
|
3
|
-
import type { Request as RequestEntity } from '@scalar/oas-utils/entities/spec';
|
|
4
|
-
import { type ComputedRef } from 'vue';
|
|
5
|
-
export type StoreContext = ReturnType<typeof createWorkspaceStore>;
|
|
6
|
-
export type BlockProps = {
|
|
7
|
-
/**
|
|
8
|
-
* The store created by `createStore`
|
|
9
|
-
*/
|
|
10
|
-
store: StoreContext | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* The JSON pointer to the operation to use
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```
|
|
16
|
-
* #/paths/test/get
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
location: `#/${string}`;
|
|
20
|
-
/**
|
|
21
|
-
* The collection to use
|
|
22
|
-
*/
|
|
23
|
-
collection: Collection;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Provides computed properties for the block, based on the standardized interface of the `createStore` function.
|
|
27
|
-
*/
|
|
28
|
-
export declare function useBlockProps({ store, location, collection }: BlockProps): {
|
|
29
|
-
operation: ComputedRef<RequestEntity | undefined>;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=useBlockProps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBlockProps.d.ts","sourceRoot":"","sources":["../../../src/blocks/hooks/useBlockProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,KAAK,CAAA;AAGhD,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAElE,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B;;;;;;;OAOG;IACH,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAA;IACvB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,UAAU,GAAG;IAC1E,SAAS,EAAE,WAAW,CAAC,aAAa,GAAG,SAAS,CAAC,CAAA;CAClD,CAgCA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { unescapeJsonPointer as a } from "@scalar/openapi-parser";
|
|
2
|
-
import { computed as p } from "vue";
|
|
3
|
-
function d({ store: t, location: e, collection: o }) {
|
|
4
|
-
return {
|
|
5
|
-
operation: p(() => {
|
|
6
|
-
if (!(t != null && t.collections) || !t.requests)
|
|
7
|
-
return;
|
|
8
|
-
const n = Object.values(t.requests).filter(
|
|
9
|
-
(s) => o.requests.includes(s.uid)
|
|
10
|
-
);
|
|
11
|
-
if (!e.startsWith("#/paths/") && !e.startsWith("#/webhooks/"))
|
|
12
|
-
throw new Error(
|
|
13
|
-
"Invalid location, try using #/paths/$YOUR_ENDPOINT/$HTTP_METHOD. You can use the getPointer helper to generate a valid location: getPointer(['paths', '/planets/{planetId}', 'get'])"
|
|
14
|
-
);
|
|
15
|
-
return n.find((s) => {
|
|
16
|
-
const r = a(e.split("/")[2]), i = e.split("/")[3].toLocaleLowerCase();
|
|
17
|
-
return s.method === i && s.path === r;
|
|
18
|
-
});
|
|
19
|
-
})
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
d as useBlockProps
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
examples: Record<string, any>;
|
|
3
|
-
};
|
|
4
|
-
type __VLS_PublicProps = {
|
|
5
|
-
modelValue?: string;
|
|
6
|
-
} & __VLS_Props;
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
"update:modelValue": (value: string) => any;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
12
|
-
export default _default;
|
|
13
|
-
//# sourceMappingURL=ExamplePicker.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/ExamplePicker.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC9B,CAAC;AA0CF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;AAsFhB,wBAQG"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, mergeModels as i, useModel as d, watch as c, createBlock as f, openBlock as x, withCtx as s, createVNode as V, createTextVNode as n, toDisplayString as _ } from "vue";
|
|
2
|
-
import b from "../../components/ScreenReader.vue.js";
|
|
3
|
-
import v from "./TextSelect.vue.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
const w = /* @__PURE__ */ u({
|
|
6
|
-
__name: "ExamplePicker",
|
|
7
|
-
props: /* @__PURE__ */ i({
|
|
8
|
-
examples: {}
|
|
9
|
-
}, {
|
|
10
|
-
modelValue: {},
|
|
11
|
-
modelModifiers: {}
|
|
12
|
-
}),
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(m) {
|
|
15
|
-
const a = m, t = d(m, "modelValue");
|
|
16
|
-
function p(e) {
|
|
17
|
-
e && (t.value = e);
|
|
18
|
-
}
|
|
19
|
-
c(
|
|
20
|
-
() => a.examples,
|
|
21
|
-
() => {
|
|
22
|
-
a.examples[t.value ?? ""] || p(Object.keys(a.examples)[0]);
|
|
23
|
-
},
|
|
24
|
-
{ immediate: !0 }
|
|
25
|
-
);
|
|
26
|
-
function r(e) {
|
|
27
|
-
if (!e)
|
|
28
|
-
return "Select an example";
|
|
29
|
-
const l = a.examples[e];
|
|
30
|
-
return (l == null ? void 0 : l.summary) ?? e;
|
|
31
|
-
}
|
|
32
|
-
return (e, l) => (x(), f(v, {
|
|
33
|
-
modelValue: t.value,
|
|
34
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
|
|
35
|
-
class: "example-selector",
|
|
36
|
-
options: Object.keys(e.examples).map((o) => ({
|
|
37
|
-
label: r(o),
|
|
38
|
-
value: o
|
|
39
|
-
}))
|
|
40
|
-
}, {
|
|
41
|
-
default: s(() => [
|
|
42
|
-
V(b, null, {
|
|
43
|
-
default: s(() => l[1] || (l[1] = [
|
|
44
|
-
n("Selected Example Values:")
|
|
45
|
-
])),
|
|
46
|
-
_: 1,
|
|
47
|
-
__: [1]
|
|
48
|
-
}),
|
|
49
|
-
n(" " + _(r(t.value ?? "Unknown")), 1)
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 8, ["modelValue", "options"]));
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
w as default
|
|
57
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { type Collection, type Request, type Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { OpenAPIV3_1 } from '@scalar/types/legacy';
|
|
3
|
-
import { type ComponentPublicInstance } from 'vue';
|
|
4
|
-
import type { Schemas } from '../../features/Operation/types/schemas';
|
|
5
|
-
type __VLS_Props = {
|
|
6
|
-
server: Server | undefined;
|
|
7
|
-
collection: Collection;
|
|
8
|
-
operation: OpenAPIV3_1.OperationObject;
|
|
9
|
-
request: Request | undefined;
|
|
10
|
-
method: OpenAPIV3_1.HttpMethods;
|
|
11
|
-
/** Show a simplified card if no example are available */
|
|
12
|
-
fallback?: boolean;
|
|
13
|
-
schemas?: Schemas;
|
|
14
|
-
};
|
|
15
|
-
declare function __VLS_template(): {
|
|
16
|
-
attrs: Partial<{}>;
|
|
17
|
-
slots: {
|
|
18
|
-
header?(_: {}): any;
|
|
19
|
-
header?(_: {}): any;
|
|
20
|
-
footer?(_: {}): any;
|
|
21
|
-
footer?(_: {}): any;
|
|
22
|
-
};
|
|
23
|
-
refs: {
|
|
24
|
-
elem: ({
|
|
25
|
-
$: import("vue").ComponentInternalInstance;
|
|
26
|
-
$data: {};
|
|
27
|
-
$props: {
|
|
28
|
-
readonly label?: string | undefined;
|
|
29
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
30
|
-
$attrs: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
|
-
};
|
|
33
|
-
$refs: {
|
|
34
|
-
[x: string]: unknown;
|
|
35
|
-
};
|
|
36
|
-
$slots: Readonly<{
|
|
37
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
38
|
-
}>;
|
|
39
|
-
$root: ComponentPublicInstance | null;
|
|
40
|
-
$parent: ComponentPublicInstance | null;
|
|
41
|
-
$host: Element | null;
|
|
42
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
43
|
-
$el: any;
|
|
44
|
-
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
45
|
-
label?: string;
|
|
46
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
47
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
48
|
-
created?: (() => void) | (() => void)[];
|
|
49
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
50
|
-
mounted?: (() => void) | (() => void)[];
|
|
51
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
52
|
-
updated?: (() => void) | (() => void)[];
|
|
53
|
-
activated?: (() => void) | (() => void)[];
|
|
54
|
-
deactivated?: (() => void) | (() => void)[];
|
|
55
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
56
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
57
|
-
destroyed?: (() => void) | (() => void)[];
|
|
58
|
-
unmounted?: (() => void) | (() => void)[];
|
|
59
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
60
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
61
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
62
|
-
};
|
|
63
|
-
$forceUpdate: () => void;
|
|
64
|
-
$nextTick: typeof import("vue").nextTick;
|
|
65
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
66
|
-
} & Readonly<{}> & Omit<Readonly<{
|
|
67
|
-
label?: string;
|
|
68
|
-
}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
69
|
-
$slots: {
|
|
70
|
-
default?(_: {}): any;
|
|
71
|
-
};
|
|
72
|
-
}) | null;
|
|
73
|
-
};
|
|
74
|
-
rootEl: any;
|
|
75
|
-
};
|
|
76
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
77
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
78
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
79
|
-
export default _default;
|
|
80
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
|
-
new (): {
|
|
82
|
-
$slots: S;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=ExampleRequest.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/ExampleRequest.vue"],"names":[],"mappings":"AA0jBA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AAGxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAOL,KAAK,uBAAuB,EAC7B,MAAM,KAAK,CAAA;AAIZ,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAiBjE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAuXF,iBAAS,cAAc;WAwOT,OAAO,IAA6B;;wBAZrB,GAAG;wBAEH,GAAG;wBADH,GAAG;wBAEH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAzPxB,GAAH,8CACK,GAAL,yBAAyB,GAAG,6DACH,GAAG;;;;;;;;;;EAqQhC;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|