@scalar/nuxt 0.3.14 → 0.3.16

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
@@ -1,7 +1,7 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { ReferenceConfiguration } from '@scalar/api-reference';
2
+ import { ApiReferenceConfiguration } from '@scalar/types/api-reference';
3
3
 
4
- type Configuration = Omit<ReferenceConfiguration, 'layout' | 'isEditable' | 'onSpecUpdate' | 'theme'> & {
4
+ type Configuration = Omit<Partial<ApiReferenceConfiguration>, 'layout' | 'isEditable' | 'onSpecUpdate' | 'theme'> & {
5
5
  /**
6
6
  * Whether to show scalar in Nuxt DevTools
7
7
  *
@@ -13,7 +13,7 @@ type Configuration = Omit<ReferenceConfiguration, 'layout' | 'isEditable' | 'onS
13
13
  *
14
14
  * @default undefined (nuxt theme)
15
15
  */
16
- theme?: ReferenceConfiguration['theme'];
16
+ theme?: ApiReferenceConfiguration['theme'];
17
17
  };
18
18
 
19
19
  type ModuleOptions = {
package/dist/module.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { ReferenceConfiguration } from '@scalar/api-reference';
2
+ import { ApiReferenceConfiguration } from '@scalar/types/api-reference';
3
3
 
4
- type Configuration = Omit<ReferenceConfiguration, 'layout' | 'isEditable' | 'onSpecUpdate' | 'theme'> & {
4
+ type Configuration = Omit<Partial<ApiReferenceConfiguration>, 'layout' | 'isEditable' | 'onSpecUpdate' | 'theme'> & {
5
5
  /**
6
6
  * Whether to show scalar in Nuxt DevTools
7
7
  *
@@ -13,7 +13,7 @@ type Configuration = Omit<ReferenceConfiguration, 'layout' | 'isEditable' | 'onS
13
13
  *
14
14
  * @default undefined (nuxt theme)
15
15
  */
16
- theme?: ReferenceConfiguration['theme'];
16
+ theme?: ApiReferenceConfiguration['theme'];
17
17
  };
18
18
 
19
19
  type ModuleOptions = {
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scalar/nuxt",
3
3
  "configKey": "scalar",
4
- "version": "0.3.14",
4
+ "version": "0.3.16",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.1",
7
7
  "unbuild": "unknown"
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import { ModernLayout, parse } from '@scalar/api-reference'
3
- import type { ReferenceConfiguration } from '@scalar/types/legacy'
3
+ import type { ApiReferenceConfiguration } from '@scalar/types/api-reference'
4
4
  import { useHead, useRequestURL, useSeoMeta } from '#imports'
5
5
  import type { Configuration } from '~/src/types'
6
6
  import { reactive, ref, toRaw } from 'vue'
@@ -48,7 +48,7 @@ useHead({
48
48
  // Add baseServerURL and _integration
49
49
  const { origin } = useRequestURL()
50
50
 
51
- const config: Partial<ReferenceConfiguration> = {
51
+ const config: Partial<ApiReferenceConfiguration> = {
52
52
  baseServerURL: origin,
53
53
  _integration: 'nuxt',
54
54
  ...props.configuration,
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "testing",
21
21
  "vue"
22
22
  ],
23
- "version": "0.3.14",
23
+ "version": "0.3.16",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  },
@@ -39,9 +39,9 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "@nuxt/kit": "^3.12.3",
42
- "@scalar/api-client": "2.3.14",
43
- "@scalar/types": "0.1.6",
44
- "@scalar/api-reference": "1.28.14"
42
+ "@scalar/api-client": "2.3.16",
43
+ "@scalar/api-reference": "1.28.16",
44
+ "@scalar/types": "0.1.6"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@nuxt/devtools": "^1.3.9",