@scalar/api-reference 1.25.127 → 1.25.128
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 +16046 -15965
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +40 -64
- 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 +158 -159
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +69 -17
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +5 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +73 -94
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +16 -0
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -0
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +36 -0
- 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 +4 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +143 -124
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/GettingStarted.vue2.js +13 -13
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.d.ts +3 -3
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts +3 -3
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +30 -29
- package/dist/esm.d.ts +5 -3
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +362 -342
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- 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 +82 -74
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponse.vue2.js +11 -11
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +90 -78
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue2.js +29 -25
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +40 -47
- 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/layouts/ModernLayout.vue.js +2 -2
- package/dist/helpers/get-request.d.ts +1 -1
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +3 -3
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useConfig.js +5 -4
- package/dist/index.js +17 -19
- package/dist/standalone/lib/html-api.d.ts +3 -3
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/html-rendering.d.ts +23 -24
- package/dist/standalone/lib/html-rendering.d.ts.map +1 -1
- package/dist/standalone/lib/html-rendering.js +39 -29
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +19 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -10
- package/dist/hooks/useDeprecationWarnings.d.ts +0 -6
- package/dist/hooks/useDeprecationWarnings.d.ts.map +0 -1
- package/dist/hooks/useDeprecationWarnings.js +0 -20
package/dist/types.d.ts
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
import type { HarRequest } from '@scalar/snippetz/types';
|
|
2
2
|
import type { ThemeId } from '@scalar/themes';
|
|
3
|
+
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
3
4
|
import type { ContentType, ReferenceConfiguration, Spec } from '@scalar/types/legacy';
|
|
4
5
|
import type { Slot } from 'vue';
|
|
6
|
+
export type { ApiReferenceConfiguration };
|
|
5
7
|
export type { ReferenceConfiguration };
|
|
8
|
+
/**
|
|
9
|
+
* Props for the ApiReference components, coming from user input
|
|
10
|
+
*/
|
|
6
11
|
export type ReferenceProps = {
|
|
7
|
-
configuration?: ReferenceConfiguration;
|
|
12
|
+
configuration?: Partial<ApiReferenceConfiguration> | ReferenceConfiguration;
|
|
8
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Before the configuration is parsed, we can use the broader types.
|
|
16
|
+
*/
|
|
9
17
|
export type ReferenceLayoutProps = {
|
|
10
|
-
configuration: ReferenceConfiguration;
|
|
18
|
+
configuration: Partial<ApiReferenceConfiguration> | ReferenceConfiguration;
|
|
19
|
+
parsedSpec: Spec;
|
|
20
|
+
rawSpec: string;
|
|
21
|
+
isDark: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* After the configuration is parsed, we can use the stricter types.
|
|
25
|
+
*/
|
|
26
|
+
export type InternalReferenceProps = {
|
|
27
|
+
configuration: ApiReferenceConfiguration;
|
|
11
28
|
parsedSpec: Spec;
|
|
12
29
|
rawSpec: string;
|
|
13
30
|
isDark: boolean;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AACrF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,YAAY,EAAE,sBAAsB,EAAE,CAAA;AAEtC,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,CAAC,EAAE,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KA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ClD,CAAA;AAED,2DAA2D;AAC3D,MAAM,MAAM,mBAAmB,GAC3B,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,aAAa,GACb,eAAe,GACf,aAAa,CAAA;AAEjB,MAAM,MAAM,oBAAoB,GAAG;KAChC,CAAC,IAAI,mBAAmB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG;CAC/D,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,IAAI,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IACxC,CAAC,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACzC,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5B,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5B,CAAC,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAC5B,CAAA"}
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.25.
|
|
23
|
+
"version": "1.25.128",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
@@ -55,16 +55,17 @@
|
|
|
55
55
|
"github-slugger": "^2.0.0",
|
|
56
56
|
"nanoid": "^5.0.9",
|
|
57
57
|
"vue": "^3.5.12",
|
|
58
|
-
"
|
|
58
|
+
"zod": "^3.23.8",
|
|
59
59
|
"@scalar/code-highlight": "0.0.23",
|
|
60
|
-
"@scalar/
|
|
61
|
-
"@scalar/
|
|
60
|
+
"@scalar/api-client": "2.2.57",
|
|
61
|
+
"@scalar/components": "0.13.29",
|
|
62
62
|
"@scalar/openapi-types": "0.1.9",
|
|
63
|
-
"@scalar/
|
|
63
|
+
"@scalar/openapi-parser": "0.10.9",
|
|
64
64
|
"@scalar/snippetz": "0.2.15",
|
|
65
|
-
"@scalar/
|
|
66
|
-
"@scalar/themes": "0.9.
|
|
67
|
-
"@scalar/use-hooks": "0.1.
|
|
65
|
+
"@scalar/oas-utils": "0.2.111",
|
|
66
|
+
"@scalar/themes": "0.9.72",
|
|
67
|
+
"@scalar/use-hooks": "0.1.26",
|
|
68
|
+
"@scalar/types": "0.0.37",
|
|
68
69
|
"@scalar/use-toasts": "0.7.9"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
@@ -79,8 +80,8 @@
|
|
|
79
80
|
"vite-plugin-banner": "^0.7.1",
|
|
80
81
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
81
82
|
"vitest": "^1.6.0",
|
|
82
|
-
"@scalar/
|
|
83
|
-
"@scalar/
|
|
83
|
+
"@scalar/galaxy": "0.2.23",
|
|
84
|
+
"@scalar/build-tooling": "0.1.16"
|
|
84
85
|
},
|
|
85
86
|
"scripts": {
|
|
86
87
|
"analyze:default": "pnpm dlx vite-bundle-visualizer",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ReferenceConfiguration } from '@scalar/types/legacy';
|
|
2
|
-
/**
|
|
3
|
-
* Warns the user about deprecated configurations in the browser console.
|
|
4
|
-
*/
|
|
5
|
-
export declare function useDeprecationWarnings(configuration: ReferenceConfiguration): void;
|
|
6
|
-
//# sourceMappingURL=useDeprecationWarnings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDeprecationWarnings.d.ts","sourceRoot":"","sources":["../../src/hooks/useDeprecationWarnings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAOlE;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,sBAAsB,QA4B3E"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { watch as t } from "vue";
|
|
2
|
-
const o = "https://api.scalar.com/request-proxy", r = "https://proxy.scalar.com";
|
|
3
|
-
function p(e) {
|
|
4
|
-
t(
|
|
5
|
-
() => e,
|
|
6
|
-
() => {
|
|
7
|
-
e.proxy && console.warn(
|
|
8
|
-
"[DEPRECATED] You’re using the deprecated 'proxy' attribute, rename it to 'proxyUrl' or update the package."
|
|
9
|
-
), (e.proxyUrl || e.proxy) === o && (console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${o}).`), console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${r}) instead.`), delete e.proxy, e.proxyUrl = r, console.warn(
|
|
10
|
-
`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${r}). Read more: https://github.com/scalar/scalar`
|
|
11
|
-
));
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
immediate: !0
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
p as useDeprecationWarnings
|
|
20
|
-
};
|