@scalar/nuxt 0.2.136 → 0.2.137

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
@@ -11,9 +11,9 @@ type Configuration = Omit<ReferenceConfiguration, 'layout' | 'isEditable' | 'onS
11
11
  /**
12
12
  * The theme to use for the reference
13
13
  *
14
- * @default 'nuxt'
14
+ * @default undefined (nuxt theme)
15
15
  */
16
- theme?: ReferenceConfiguration['theme'] | 'nuxt';
16
+ theme?: ReferenceConfiguration['theme'];
17
17
  };
18
18
 
19
19
  type ModuleOptions = {
package/dist/module.d.ts CHANGED
@@ -11,9 +11,9 @@ type Configuration = Omit<ReferenceConfiguration, 'layout' | 'isEditable' | 'onS
11
11
  /**
12
12
  * The theme to use for the reference
13
13
  *
14
- * @default 'nuxt'
14
+ * @default undefined (nuxt theme)
15
15
  */
16
- theme?: ReferenceConfiguration['theme'] | 'nuxt';
16
+ theme?: ReferenceConfiguration['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.2.136",
4
+ "version": "0.2.137",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.1",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -16,8 +16,7 @@ const module = defineNuxtModule({
16
16
  },
17
17
  showSidebar: true,
18
18
  devtools: true,
19
- configurations: [],
20
- theme: "nuxt"
19
+ configurations: []
21
20
  },
22
21
  setup(_options, _nuxt) {
23
22
  const resolver = createResolver(import.meta.url);
@@ -40,11 +40,7 @@ useHead({
40
40
  // Add baseServerURL and _integration
41
41
  const { origin } = useRequestURL()
42
42
 
43
- const config: Partial<
44
- Omit<ReferenceConfiguration, 'theme'> & {
45
- theme?: ReferenceConfiguration['theme'] | 'nuxt'
46
- }
47
- > = {
43
+ const config: Partial<ReferenceConfiguration> = {
48
44
  baseServerURL: origin,
49
45
  _integration: 'nuxt',
50
46
  ...props.configuration,
@@ -54,7 +50,7 @@ const config: Partial<
54
50
  <template>
55
51
  <ModernLayout
56
52
  :configuration="config"
57
- :isDark="isDark"
53
+ :isDark="!!isDark"
58
54
  :parsedSpec="parsedSpec"
59
55
  :rawSpec="rawSpec"
60
56
  @toggleDarkMode="isDark = !isDark" />
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "testing",
21
21
  "vue"
22
22
  ],
23
- "version": "0.2.136",
23
+ "version": "0.2.137",
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-client": "2.1.43",
43
- "@scalar/api-reference": "1.25.58"
42
+ "@scalar/api-reference": "1.25.59",
43
+ "@scalar/api-client": "2.1.44"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@nuxt/devtools": "^1.3.9",