@scalar/nuxt 0.4.9 → 0.4.11

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@scalar/nuxt",
3
3
  "configKey": "scalar",
4
- "version": "0.4.9",
4
+ "version": "0.4.11",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.1",
7
7
  "unbuild": "unknown"
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { ModernLayout, parse } from '@scalar/api-reference'
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
- <ModernLayout
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.9",
23
+ "version": "0.4.11",
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-reference": "1.31.4",
43
- "@scalar/api-client": "2.5.3",
42
+ "@scalar/api-client": "2.5.4",
43
+ "@scalar/api-reference": "1.31.6",
44
44
  "@scalar/types": "0.2.2",
45
45
  "@scalar/use-hooks": "0.2.2"
46
46
  },