@scalar/nuxt 0.2.115 → 0.2.117

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.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scalar/nuxt",
3
3
  "configKey": "scalar",
4
- "version": "0.2.115",
4
+ "version": "0.2.117",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.1",
7
7
  "unbuild": "unknown"
@@ -1,6 +1,10 @@
1
1
  <script lang="ts" setup>
2
2
  import { useHead, useRequestURL, useSeoMeta } from '#imports'
3
- import { ModernLayout, parse } from '@scalar/api-reference'
3
+ import {
4
+ ModernLayout,
5
+ type ReferenceConfiguration,
6
+ parse,
7
+ } from '@scalar/api-reference'
4
8
  import { reactive, ref, toRaw } from 'vue'
5
9
  import type { Configuration } from '~/src/types'
6
10
 
@@ -33,10 +37,16 @@ useHead({
33
37
  },
34
38
  })
35
39
 
36
- // Add baseServerURL
40
+ // Add baseServerURL and _integration
37
41
  const { origin } = useRequestURL()
38
- const config = {
42
+
43
+ const config: Partial<
44
+ Omit<ReferenceConfiguration, 'theme'> & {
45
+ theme?: ReferenceConfiguration['theme'] | 'nuxt'
46
+ }
47
+ > = {
39
48
  baseServerURL: origin,
49
+ _integration: 'nuxt',
40
50
  ...props.configuration,
41
51
  }
42
52
  </script>
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "testing",
21
21
  "vue"
22
22
  ],
23
- "version": "0.2.115",
23
+ "version": "0.2.117",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  },
@@ -39,8 +39,8 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "@nuxt/kit": "^3.12.3",
42
- "@scalar/api-reference": "1.25.37",
43
- "@scalar/api-client": "2.1.22"
42
+ "@scalar/api-client": "2.1.24",
43
+ "@scalar/api-reference": "1.25.39"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@nuxt/devtools": "^1.3.9",