@scalar/api-reference 1.25.68 → 1.25.70
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 +42 -0
- package/dist/browser/standalone.js +10519 -10533
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +1 -1
- package/dist/components/Content/Content.vue.d.ts +4 -2
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +33 -33
- package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -3
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +27 -27
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Tag/TagList.vue.d.ts +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +33 -35
- package/dist/components/Content/Webhooks/index.d.ts +1 -1
- package/dist/components/Content/Webhooks/index.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/{Content/Operation/EndpointPath.vue.d.ts → OperationPath.vue.d.ts} +1 -1
- package/dist/components/OperationPath.vue.d.ts.map +1 -0
- package/dist/components/OperationPath.vue.js +7 -0
- package/dist/components/OperationPath.vue2.js +23 -0
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +2 -2
- package/dist/components/Section/Section.vue2.js +4 -4
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.js +2 -2
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +3 -3
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
- package/dist/{components/Content/Operation/EndpointDetailsCard.vue.d.ts → features/Operation/Operation.vue.d.ts} +6 -2
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -0
- package/dist/features/Operation/Operation.vue.js +25 -0
- package/dist/features/Operation/Operation.vue2.js +4 -0
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -0
- package/dist/features/Operation/Webhooks.vue.js +7 -0
- package/dist/{components/Content/Webhooks → features/Operation}/Webhooks.vue2.js +12 -12
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -0
- package/dist/{components/Content/Operation → features/Operation/components}/ContentTypeSelect.vue.js +2 -2
- package/dist/{components/Content/Operation → features/Operation/components}/ContentTypeSelect.vue2.js +8 -8
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/OperationParameters.vue.js +71 -0
- package/dist/features/Operation/components/OperationParameters.vue2.js +4 -0
- package/dist/{components/Content/Operation/EndpointDetails.vue.d.ts → features/Operation/components/OperationResponses.vue.d.ts} +5 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/OperationResponses.vue.js +25 -0
- package/dist/features/Operation/components/OperationResponses.vue2.js +4 -0
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/ParameterHeaders.vue.js +7 -0
- package/dist/{components/Content/Operation → features/Operation/components}/ParameterHeaders.vue2.js +8 -8
- package/dist/{components/Content/Operation/Parameters.vue.d.ts → features/Operation/components/ParameterList.vue.d.ts} +3 -3
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/ParameterList.vue.js +7 -0
- package/dist/{components/Content/Operation/Parameters.vue2.js → features/Operation/components/ParameterList.vue2.js} +7 -7
- package/dist/{components/Content/Operation/ParameterItem.vue.d.ts → features/Operation/components/ParameterListItem.vue.d.ts} +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/ParameterListItem.vue.js +7 -0
- package/dist/{components/Content/Operation/ParameterItem.vue2.js → features/Operation/components/ParameterListItem.vue2.js} +20 -20
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -0
- package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue.js +1 -1
- package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue2.js +1 -1
- package/dist/features/Operation/components/RequestBodyPropertiesChild.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/Webhook.vue.d.ts.map +1 -0
- package/dist/{components/Content/Webhooks → features/Operation/components}/Webhook.vue.js +2 -2
- package/dist/features/Operation/components/Webhook.vue2.js +29 -0
- package/dist/{hooks → features/Operation/hooks}/useResponses.d.ts +1 -1
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -0
- package/dist/features/Operation/index.d.ts +3 -0
- package/dist/features/Operation/index.d.ts.map +1 -0
- package/dist/{components/Content/Operation/OperationAccordion.vue.d.ts → features/Operation/layouts/ClassicLayout.vue.d.ts} +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +7 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -0
- package/dist/{components/Content/Operation/Operation.vue.d.ts → features/Operation/layouts/ModernLayout.vue.d.ts} +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.js +7 -0
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +114 -0
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.js +8 -8
- package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -0
- package/dist/features/TestRequestButton/TestRequestButton.vue.js +7 -0
- package/dist/{components/Content/Operation → features/TestRequestButton}/TestRequestButton.vue2.js +6 -6
- package/dist/features/TestRequestButton/index.d.ts +2 -0
- package/dist/features/TestRequestButton/index.d.ts.map +1 -0
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +55 -52
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useOperation.d.ts +7 -10
- package/dist/hooks/useOperation.d.ts.map +1 -1
- package/dist/hooks/useOperation.js +13 -11
- package/dist/index.js +12 -14
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormGroup.vue.js +1 -1
- package/dist/legacy/components/SecurityScheme.vue2.js +6 -6
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +11 -10
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.js +0 -88
- package/dist/components/Content/Operation/EndpointDetails.vue2.js +0 -4
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.js +0 -7
- package/dist/components/Content/Operation/EndpointDetailsCard.vue2.js +0 -67
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/EndpointPath.vue.js +0 -7
- package/dist/components/Content/Operation/EndpointPath.vue2.js +0 -23
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/Operation.vue.js +0 -7
- package/dist/components/Content/Operation/Operation.vue2.js +0 -105
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.js +0 -7
- package/dist/components/Content/Operation/OperationAccordion.vue2.js +0 -103
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/ParameterHeaders.vue.js +0 -7
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/ParameterItem.vue.js +0 -7
- package/dist/components/Content/Operation/Parameters.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/Parameters.vue.js +0 -7
- package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.js +0 -7
- package/dist/components/Content/Operation/index.d.ts +0 -3
- package/dist/components/Content/Operation/index.d.ts.map +0 -1
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +0 -1
- package/dist/components/Content/Webhooks/Webhook.vue2.js +0 -39
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +0 -1
- package/dist/components/Content/Webhooks/Webhooks.vue.js +0 -7
- package/dist/hooks/useResponses.d.ts.map +0 -1
- /package/dist/{components/Content/Webhooks → features/Operation}/Webhooks.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/Operation/components}/ContentTypeSelect.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/Operation/components}/ParameterHeaders.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/Operation/components}/RequestBodyPropertiesChild.vue.d.ts +0 -0
- /package/dist/{components/Content/Webhooks → features/Operation/components}/Webhook.vue.d.ts +0 -0
- /package/dist/{hooks → features/Operation/hooks}/useResponses.js +0 -0
- /package/dist/{components/Content/Operation → features/TestRequestButton}/TestRequestButton.vue.d.ts +0 -0
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Parameter, TransformedOperation } from '@scalar/types/legacy';
|
|
2
2
|
export type ParamMap = {
|
|
3
|
-
path:
|
|
4
|
-
query:
|
|
5
|
-
header:
|
|
6
|
-
body:
|
|
7
|
-
formData:
|
|
8
|
-
};
|
|
9
|
-
export type OperationProps = {
|
|
10
|
-
operation: TransformedOperation;
|
|
3
|
+
path: Parameter[];
|
|
4
|
+
query: Parameter[];
|
|
5
|
+
header: Parameter[];
|
|
6
|
+
body: Parameter[];
|
|
7
|
+
formData: Parameter[];
|
|
11
8
|
};
|
|
12
9
|
/**
|
|
13
10
|
* This hook is used to generate the parameters for the request from the parameters in the swagger file
|
|
14
11
|
*/
|
|
15
|
-
export declare function useOperation(
|
|
12
|
+
export declare function useOperation(operation: TransformedOperation): {
|
|
16
13
|
parameterMap: import("vue").ComputedRef<ParamMap>;
|
|
17
14
|
};
|
|
18
15
|
//# sourceMappingURL=useOperation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOperation.d.ts","sourceRoot":"","sources":["../../src/hooks/useOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useOperation.d.ts","sourceRoot":"","sources":["../../src/hooks/useOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAG3E,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,MAAM,EAAE,SAAS,EAAE,CAAA;IACnB,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,QAAQ,EAAE,SAAS,EAAE,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,oBAAoB;;EAkD3D"}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
function
|
|
1
|
+
import { computed as o } from "vue";
|
|
2
|
+
function e(h) {
|
|
3
3
|
return {
|
|
4
|
-
parameterMap:
|
|
5
|
-
var
|
|
6
|
-
const
|
|
4
|
+
parameterMap: o(() => {
|
|
5
|
+
var u;
|
|
6
|
+
const i = {
|
|
7
7
|
path: [],
|
|
8
8
|
query: [],
|
|
9
9
|
header: [],
|
|
10
10
|
body: [],
|
|
11
11
|
formData: []
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
h.pathParameters && h.pathParameters.forEach((s) => {
|
|
14
|
+
s.in === "path" ? i.path.push(s) : s.in === "query" ? i.query.push(s) : s.in === "header" ? i.header.push(s) : s.in === "body" ? i.body.push(s) : s.in === "formData" && i.formData.push(s);
|
|
15
|
+
});
|
|
16
|
+
const f = ((u = h.information) == null ? void 0 : u.parameters) ?? [];
|
|
17
|
+
return f && f.forEach((s) => {
|
|
18
|
+
s.in === "path" ? i.path.push(s) : s.in === "query" ? i.query.push(s) : s.in === "header" ? i.header.push(s) : s.in === "body" ? i.body.push(s) : s.in === "formData" && i.formData.push(s);
|
|
19
|
+
}), i;
|
|
18
20
|
})
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
export {
|
|
22
|
-
|
|
24
|
+
e as useOperation
|
|
23
25
|
};
|