@scalar/nuxt 0.4.9 → 0.4.12
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/dist/module.d.mts
CHANGED
|
@@ -24,6 +24,6 @@ type ModuleOptions = {
|
|
|
24
24
|
configurations: Omit<Configuration, 'devtools'>[];
|
|
25
25
|
layout: string | false;
|
|
26
26
|
} & Configuration;
|
|
27
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
27
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
28
28
|
|
|
29
29
|
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -24,6 +24,6 @@ type ModuleOptions = {
|
|
|
24
24
|
configurations: Omit<Configuration, 'devtools'>[];
|
|
25
25
|
layout: string | false;
|
|
26
26
|
} & Configuration;
|
|
27
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
27
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
28
28
|
|
|
29
29
|
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
2
|
+
import { ApiReferenceLayout, parse } from '@scalar/api-reference'
|
|
3
3
|
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference'
|
|
4
4
|
import { useColorMode } from '@scalar/use-hooks/useColorMode'
|
|
5
5
|
import { useFetch, useHead, useRequestURL, useSeoMeta } from '#imports'
|
|
@@ -84,12 +84,13 @@ const { origin } = useRequestURL()
|
|
|
84
84
|
const config: Partial<ApiReferenceConfiguration> = {
|
|
85
85
|
baseServerURL: origin,
|
|
86
86
|
_integration: 'nuxt',
|
|
87
|
+
layout: 'modern',
|
|
87
88
|
...props.configuration,
|
|
88
89
|
}
|
|
89
90
|
</script>
|
|
90
91
|
|
|
91
92
|
<template>
|
|
92
|
-
<
|
|
93
|
+
<ApiReferenceLayout
|
|
93
94
|
:configuration="config"
|
|
94
95
|
:isDark="!!isDark"
|
|
95
96
|
:parsedSpec="parsedSpec"
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"testing",
|
|
21
21
|
"vue"
|
|
22
22
|
],
|
|
23
|
-
"version": "0.4.
|
|
23
|
+
"version": "0.4.12",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@nuxt/kit": "^3.12.3",
|
|
42
|
-
"@scalar/api-
|
|
43
|
-
"@scalar/api-
|
|
42
|
+
"@scalar/api-client": "2.5.4",
|
|
43
|
+
"@scalar/api-reference": "1.31.7",
|
|
44
44
|
"@scalar/types": "0.2.2",
|
|
45
45
|
"@scalar/use-hooks": "0.2.2"
|
|
46
46
|
},
|