@scalar/api-reference 1.28.33 → 1.29.1
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 +83 -0
- package/dist/browser/standalone.js +12818 -13331
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/Anchor/Anchor.vue2.js +24 -22
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +50 -50
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +31 -32
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
- package/dist/components/Content/Lazy/Loading.vue.js +22 -22
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +17 -17
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +14 -14
- package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +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 +2 -1
- package/dist/components/Content/Schema/{SchemaDiscriminator.vue.d.ts → SchemaComposition.vue.d.ts} +3 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.js +187 -0
- package/dist/components/Content/Schema/SchemaComposition.vue2.js +4 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- 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/Schema/SchemaProperty.vue2.js +31 -30
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +0 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +8 -9
- 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/Content/Schema/SchemaPropertyHeading.vue2.js +165 -146
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts +3 -2
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +13 -13
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts +12 -0
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/schema-composition.js +8 -0
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +4 -0
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +1 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +8 -8
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
- package/dist/components/GettingStarted.vue.d.ts +2 -2
- package/dist/components/Layouts/Layouts.vue.d.ts +3 -0
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.js +14 -23
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +51 -45
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +4 -4
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
- package/dist/components/SingleApiReference.vue.d.ts +1 -0
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/components/SingleApiReference.vue.js +25 -22
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
- package/dist/features/ApiClientModal/index.d.ts +1 -1
- package/dist/features/ApiClientModal/index.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +186 -146
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +11 -10
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +2 -2
- package/dist/features/Operation/Webhooks.vue2.js +13 -13
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
- package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +13 -12
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.d.ts +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +20 -21
- package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
- package/dist/helpers/is-mac-os.d.ts.map +1 -0
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +1 -1
- package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
- package/dist/helpers/scroll-to-id.d.ts.map +1 -0
- package/dist/helpers/sleep.d.ts +0 -2
- package/dist/helpers/sleep.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +28 -28
- package/dist/hooks/useReactiveSpec.js +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +45 -49
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -43
- package/dist/legacy/fixtures/index.d.ts +1 -1
- package/dist/legacy/fixtures/index.d.ts.map +1 -1
- package/dist/legacy/helpers/index.d.ts +1 -1
- package/dist/legacy/helpers/index.d.ts.map +1 -1
- package/dist/libs/download.d.ts +9 -0
- package/dist/libs/download.d.ts.map +1 -0
- package/dist/libs/download.js +19 -0
- package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
- package/dist/libs/markdown.d.ts.map +1 -0
- package/dist/libs/markdown.js +18 -0
- package/dist/libs/openapi.d.ts +56 -0
- package/dist/libs/openapi.d.ts.map +1 -0
- package/dist/libs/openapi.js +102 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -45
- package/dist/types.d.ts.map +1 -1
- package/package.json +22 -27
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -167
- package/dist/esm.js +0 -34
- package/dist/helpers/createEmptySpecification.d.ts +0 -8
- package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
- package/dist/helpers/createEmptySpecification.js +0 -27
- package/dist/helpers/deepMerge.d.ts +0 -5
- package/dist/helpers/deepMerge.d.ts.map +0 -1
- package/dist/helpers/deepMerge.js +0 -8
- package/dist/helpers/generateParameters.d.ts +0 -6
- package/dist/helpers/generateParameters.d.ts.map +0 -1
- package/dist/helpers/get-request.d.ts +0 -59
- package/dist/helpers/get-request.d.ts.map +0 -1
- package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
- package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
- package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
- package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
- package/dist/helpers/getLowestHeadingLevel.js +0 -7
- package/dist/helpers/getModels.d.ts +0 -7
- package/dist/helpers/getModels.d.ts.map +0 -1
- package/dist/helpers/getModels.js +0 -22
- package/dist/helpers/getVariableNames.d.ts +0 -5
- package/dist/helpers/getVariableNames.d.ts.map +0 -1
- package/dist/helpers/hasModels.d.ts +0 -3
- package/dist/helpers/hasModels.d.ts.map +0 -1
- package/dist/helpers/hasModels.js +0 -5
- package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
- package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
- package/dist/helpers/hasWebhooks.d.ts +0 -3
- package/dist/helpers/hasWebhooks.d.ts.map +0 -1
- package/dist/helpers/hasWebhooks.js +0 -4
- package/dist/helpers/index.d.ts +0 -17
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/isMacOs.d.ts.map +0 -1
- package/dist/helpers/mapFromObject.d.ts +0 -8
- package/dist/helpers/mapFromObject.d.ts.map +0 -1
- package/dist/helpers/mergeAllObjects.d.ts +0 -5
- package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
- package/dist/helpers/scrollToId.d.ts.map +0 -1
- package/dist/helpers/specDownloads.d.ts +0 -7
- package/dist/helpers/specDownloads.d.ts.map +0 -1
- package/dist/helpers/specDownloads.js +0 -19
- package/dist/helpers/specHelpers.d.ts +0 -16
- package/dist/helpers/specHelpers.d.ts.map +0 -1
- package/dist/helpers/specHelpers.js +0 -36
- package/dist/helpers/waitFor.d.ts +0 -5
- package/dist/helpers/waitFor.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
- package/dist/legacy/index.d.ts +0 -5
- package/dist/legacy/index.d.ts.map +0 -1
- package/dist/legacy/types.d.ts +0 -94
- package/dist/legacy/types.d.ts.map +0 -1
- package/dist/libs/operation.d.ts +0 -15
- package/dist/libs/operation.d.ts.map +0 -1
- package/dist/libs/operation.js +0 -16
- package/dist/stores/index.d.ts +0 -2
- package/dist/stores/index.d.ts.map +0 -1
- /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
- /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
package/dist/helpers/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from './createEmptySpecification.js';
|
|
2
|
-
export * from './deepMerge.js';
|
|
3
|
-
export * from './getHeadingsFromMarkdown.js';
|
|
4
|
-
export * from './getLowestHeadingLevel.js';
|
|
5
|
-
export * from './getModels.js';
|
|
6
|
-
export * from './getVariableNames';
|
|
7
|
-
export * from './hasModels.js';
|
|
8
|
-
export * from './hasSecuritySchemes';
|
|
9
|
-
export * from './hasWebhooks.js';
|
|
10
|
-
export * from './isMacOs.js';
|
|
11
|
-
export * from './mapFromObject';
|
|
12
|
-
export * from './mergeAllObjects';
|
|
13
|
-
export * from './parse.js';
|
|
14
|
-
export * from './scrollToId.js';
|
|
15
|
-
export * from './sleep.js';
|
|
16
|
-
export * from './specDownloads.js';
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isMacOs.d.ts","sourceRoot":"","sources":["../../src/helpers/isMacOs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,eAAoF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapFromObject.d.ts","sourceRoot":"","sources":["../../src/helpers/mapFromObject.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,aAAa,WAChB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YACjB,MAAM,KACf;IACD,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAA;IACtB,KAAK,EAAE,GAAG,CAAA;CACX,EAOA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mergeAllObjects.d.ts","sourceRoot":"","sources":["../../src/helpers/mergeAllObjects.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,eAAe,UAAW,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,KAAG,GAO3D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scrollToId.d.ts","sourceRoot":"","sources":["../../src/helpers/scrollToId.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,OAAc,MAAM,UAAU,OAAO,kBAS3D,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const downloadSpecBus: import("@vueuse/core").UseEventBusReturn<{
|
|
2
|
-
id: string;
|
|
3
|
-
specTitle?: string;
|
|
4
|
-
}, any>;
|
|
5
|
-
/** Download the OAS file string */
|
|
6
|
-
export declare function downloadSpecFile(spec: string, specTitle?: string): void;
|
|
7
|
-
//# sourceMappingURL=specDownloads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"specDownloads.d.ts","sourceRoot":"","sources":["../../src/helpers/specDownloads.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;QADqB,MAAM;gBAAc,MAAM;OACR,CAAA;AAEnE,mCAAmC;AACnC,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,QAiChE"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { isJsonString as d } from "@scalar/oas-utils/helpers";
|
|
2
|
-
import { useEventBus as m } from "@vueuse/core";
|
|
3
|
-
const p = Symbol("downloadSpec"), u = m(p);
|
|
4
|
-
function b(o, n) {
|
|
5
|
-
const t = d(o), s = t ? new Blob([o], { type: "application/json" }) : new Blob([o], { type: "application/x-yaml" }), c = URL.createObjectURL(s), l = t ? ".json" : ".yaml", a = "spec" + l, i = n ? n + l : a, e = document.createElement("a");
|
|
6
|
-
e.href = c, e.download = i, e.dispatchEvent(
|
|
7
|
-
new MouseEvent("click", {
|
|
8
|
-
bubbles: !0,
|
|
9
|
-
cancelable: !0,
|
|
10
|
-
view: window
|
|
11
|
-
})
|
|
12
|
-
), setTimeout(() => {
|
|
13
|
-
window.URL.revokeObjectURL(c), e.remove();
|
|
14
|
-
}, 100);
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
u as downloadSpecBus,
|
|
18
|
-
b as downloadSpecFile
|
|
19
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Operation } from '@scalar/types/legacy';
|
|
2
|
-
import type { ContentSchema } from '../types';
|
|
3
|
-
type PropertyObject = {
|
|
4
|
-
required?: string[];
|
|
5
|
-
properties: {
|
|
6
|
-
[key: string]: {
|
|
7
|
-
type: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
declare function formatProperty(key: string, obj: PropertyObject): string;
|
|
13
|
-
declare function recursiveLogger(obj: ContentSchema): string[];
|
|
14
|
-
declare function extractRequestBody(operation: Operation): string[] | boolean;
|
|
15
|
-
export { formatProperty, recursiveLogger, extractRequestBody };
|
|
16
|
-
//# sourceMappingURL=specHelpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"specHelpers.d.ts","sourceRoot":"","sources":["../../src/helpers/specHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,KAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,UAAU,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,WAAW,CAAC,EAAE,MAAM,CAAA;SACrB,CAAA;KACF,CAAA;CACF,CAAA;AAED,iBAAS,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,GAAG,MAAM,CAchE;AAED,iBAAS,eAAe,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,EAAE,CAuBrD;AAED,iBAAS,kBAAkB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,EAAE,GAAG,OAAO,CAYpE;AAED,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
function u(e, r) {
|
|
2
|
-
var s;
|
|
3
|
-
let t = e;
|
|
4
|
-
const i = (s = r.required) == null ? void 0 : s.includes(e);
|
|
5
|
-
return t += i ? " REQUIRED " : " optional ", r.properties[e] && (t += r.properties[e].type, r.properties[e].description && (t += " " + r.properties[e].description)), t;
|
|
6
|
-
}
|
|
7
|
-
function f(e) {
|
|
8
|
-
var i;
|
|
9
|
-
const r = ["Body"], t = (i = e == null ? void 0 : e.schema) == null ? void 0 : i.properties;
|
|
10
|
-
return t && Object.keys(t).forEach((s) => {
|
|
11
|
-
if (!e.schema)
|
|
12
|
-
return;
|
|
13
|
-
r.push(u(s, e.schema));
|
|
14
|
-
const p = t[s];
|
|
15
|
-
p.type === "object" && !!p.properties && p.properties && Object.keys(p.properties).forEach((o) => {
|
|
16
|
-
var c, n;
|
|
17
|
-
r.push(`${o} ${(n = (c = p.properties) == null ? void 0 : c[o]) == null ? void 0 : n.type}`);
|
|
18
|
-
});
|
|
19
|
-
}), r;
|
|
20
|
-
}
|
|
21
|
-
function a(e) {
|
|
22
|
-
var r, t, i;
|
|
23
|
-
try {
|
|
24
|
-
const s = (i = (t = (r = e == null ? void 0 : e.information) == null ? void 0 : r.requestBody) == null ? void 0 : t.content) == null ? void 0 : i["application/json"];
|
|
25
|
-
if (!s)
|
|
26
|
-
throw new Error("Body not found");
|
|
27
|
-
return f(s);
|
|
28
|
-
} catch {
|
|
29
|
-
return !1;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
a as extractRequestBody,
|
|
34
|
-
u as formatProperty,
|
|
35
|
-
f as recursiveLogger
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"waitFor.d.ts","sourceRoot":"","sources":["../../src/helpers/waitFor.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,YAAmB,MAAM,OAAO,0CAAkC,OAAO,CAAC,IAAI,CAgBjG,CAAA"}
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"encodeStringAsBase64.d.ts","sourceRoot":"","sources":["../../../src/legacy/helpers/encodeStringAsBase64.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,UAQjD"}
|
package/dist/legacy/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/legacy/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA"}
|
package/dist/legacy/types.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { BaseParameter } from '@scalar/types/legacy';
|
|
2
|
-
export type Header = BaseParameter;
|
|
3
|
-
export type Query = BaseParameter;
|
|
4
|
-
export type Cookie = BaseParameter;
|
|
5
|
-
export type FormDataItem = BaseParameter;
|
|
6
|
-
export type GeneratedParameter = {
|
|
7
|
-
name: string;
|
|
8
|
-
value: string;
|
|
9
|
-
};
|
|
10
|
-
/** Complete request state for a client request */
|
|
11
|
-
export type ClientRequestConfig = {
|
|
12
|
-
id?: string;
|
|
13
|
-
name?: string;
|
|
14
|
-
url: string;
|
|
15
|
-
/** HTTP Request Method */
|
|
16
|
-
type: string;
|
|
17
|
-
/** Request path */
|
|
18
|
-
path: string;
|
|
19
|
-
/** Variables */
|
|
20
|
-
variables?: BaseParameter[];
|
|
21
|
-
/** Query parameters */
|
|
22
|
-
query?: Query[];
|
|
23
|
-
/** Cookies */
|
|
24
|
-
cookies?: Cookie[];
|
|
25
|
-
/** Request headers */
|
|
26
|
-
headers?: Header[];
|
|
27
|
-
/** Content type matched body */
|
|
28
|
-
body?: string;
|
|
29
|
-
/** Optional form data body */
|
|
30
|
-
formData?: FormDataItem[];
|
|
31
|
-
};
|
|
32
|
-
/** Formatted request for the proxy server */
|
|
33
|
-
export type ProxyPayload = {
|
|
34
|
-
method: string;
|
|
35
|
-
url: string;
|
|
36
|
-
body: string;
|
|
37
|
-
headers: Header[];
|
|
38
|
-
auth: Record<string, string>;
|
|
39
|
-
grpc: boolean;
|
|
40
|
-
};
|
|
41
|
-
/** Client response from the proxy */
|
|
42
|
-
export type ClientResponse = {
|
|
43
|
-
cookies: Record<string, string>;
|
|
44
|
-
headers: Record<string, string>;
|
|
45
|
-
statusCode: number;
|
|
46
|
-
statusText: string;
|
|
47
|
-
data: string;
|
|
48
|
-
query: Record<string, any>;
|
|
49
|
-
duration: number;
|
|
50
|
-
};
|
|
51
|
-
export type SendRequestConfig = Partial<ClientRequestConfig> & Required<Pick<ClientRequestConfig, 'url'>>;
|
|
52
|
-
export type RequestResult = {
|
|
53
|
-
request: ClientRequestConfig;
|
|
54
|
-
response: ClientResponse;
|
|
55
|
-
responseId: string;
|
|
56
|
-
sentTime: number;
|
|
57
|
-
};
|
|
58
|
-
export type Schema = {
|
|
59
|
-
format: string;
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
export type Security = Record<string, any>;
|
|
63
|
-
export type ContentProperties = {
|
|
64
|
-
[key: string]: {
|
|
65
|
-
type: string;
|
|
66
|
-
format: string;
|
|
67
|
-
example: string;
|
|
68
|
-
required: string[];
|
|
69
|
-
description?: string;
|
|
70
|
-
properties?: ContentProperties;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export type ContentSchemaSchema = {
|
|
74
|
-
type: string;
|
|
75
|
-
required: string[];
|
|
76
|
-
properties: ContentProperties;
|
|
77
|
-
};
|
|
78
|
-
export type ContentSchema = {
|
|
79
|
-
schema: ContentSchemaSchema;
|
|
80
|
-
};
|
|
81
|
-
export type ContentType = 'application/json' | 'application/xml' | 'text/plain' | 'text/html' | 'application/x-www-form-urlencoded' | 'multipart/form-data';
|
|
82
|
-
export type Content = {
|
|
83
|
-
[key in ContentType]: ContentSchema;
|
|
84
|
-
};
|
|
85
|
-
export type RequestBody = {
|
|
86
|
-
description: string;
|
|
87
|
-
content: Content;
|
|
88
|
-
required: boolean;
|
|
89
|
-
};
|
|
90
|
-
export type Response = {
|
|
91
|
-
description: string;
|
|
92
|
-
content: any;
|
|
93
|
-
};
|
|
94
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/legacy/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,MAAM,MAAM,GAAG,aAAa,CAAA;AAElC,MAAM,MAAM,KAAK,GAAG,aAAa,CAAA;AAEjC,MAAM,MAAM,MAAM,GAAG,aAAa,CAAA;AAElC,MAAM,MAAM,YAAY,GAAG,aAAa,CAAA;AAExC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,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,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,GAAG,CAAA;CACb,CAAA"}
|
package/dist/libs/operation.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Operation } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import { XScalarStability } from '@scalar/types/legacy';
|
|
3
|
-
/**
|
|
4
|
-
* Returns if an operation is considered deprecated.
|
|
5
|
-
*/
|
|
6
|
-
export declare function isOperationDeprecated(operation: Pick<Operation, 'deprecated' | 'x-scalar-stability'>): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Get operation stability.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getOperationStability(operation: Pick<Operation, 'deprecated' | 'x-scalar-stability'>): XScalarStability | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* Get Operation stability color
|
|
13
|
-
*/
|
|
14
|
-
export declare function getOperationStabilityColor(operation: Pick<Operation, 'deprecated' | 'x-scalar-stability'>): string;
|
|
15
|
-
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../src/libs/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAAG,OAAO,CAQ9G;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAC9D,gBAAgB,GAAG,SAAS,CAK9B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAAG,MAAM,CAYlH"}
|
package/dist/libs/operation.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { XScalarStability as e } from "@scalar/types/legacy";
|
|
2
|
-
function n(t) {
|
|
3
|
-
return t.deprecated !== void 0 ? t.deprecated : !!(t["x-scalar-stability"] && t["x-scalar-stability"] === e.Deprecated);
|
|
4
|
-
}
|
|
5
|
-
function i(t) {
|
|
6
|
-
return t.deprecated ? e.Deprecated : t["x-scalar-stability"];
|
|
7
|
-
}
|
|
8
|
-
function c(t) {
|
|
9
|
-
const r = i(t);
|
|
10
|
-
return r === e.Deprecated ? "text-red" : r === e.Experimental ? "text-orange" : r === e.Stable ? "text-green" : "";
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
i as getOperationStability,
|
|
14
|
-
c as getOperationStabilityColor,
|
|
15
|
-
n as isOperationDeprecated
|
|
16
|
-
};
|
package/dist/stores/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
|
File without changes
|
|
File without changes
|