@scalar/nuxt 0.5.19 → 0.5.20

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 { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
+ import { ApiReferenceConfigurationWithSource, ApiReferenceConfiguration } from '@scalar/types/api-reference';
3
3
 
4
- type Configuration = Omit<Partial<ApiReferenceConfiguration>, 'layout' | 'isEditable' | 'onSpecUpdate' | 'theme'> & {
4
+ type Configuration = Omit<Partial<ApiReferenceConfigurationWithSource>, 'layout' | 'isEditable' | 'onSpecUpdate' | 'theme'> & {
5
5
  /**
6
6
  * Whether to show scalar in Nuxt DevTools
7
7
  *
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scalar/nuxt",
3
3
  "configKey": "scalar",
4
- "version": "0.5.19",
4
+ "version": "0.5.20",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "unknown"
@@ -11,13 +11,13 @@ import {
11
11
  useSeoMeta,
12
12
  useState
13
13
  } from "#imports";
14
- import { onMounted, ref, toRaw, watch } from "vue";
14
+ import { onMounted, ref, watch } from "vue";
15
15
  const props = defineProps({
16
16
  configuration: { type: Object, required: true }
17
17
  });
18
18
  const isDark = ref(props.configuration.darkMode);
19
19
  const forcedMode = props.configuration.forceDarkModeState;
20
- const { colorMode, toggleColorMode } = useColorMode({
20
+ const { colorMode } = useColorMode({
21
21
  initialColorMode: props.configuration.darkMode ? "dark" : "light",
22
22
  overrideColorMode: props.configuration.forceDarkModeState
23
23
  });
@@ -117,8 +117,8 @@ store.addDocument({
117
117
 
118
118
  <template>
119
119
  <ApiReferenceWorkspace
120
- :store
121
- :configuration="config" />
120
+ :configuration="config"
121
+ :store />
122
122
  </template>
123
123
 
124
124
  <style>
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "testing",
21
21
  "vue"
22
22
  ],
23
- "version": "0.5.19",
23
+ "version": "0.5.20",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -39,11 +39,11 @@
39
39
  "dependencies": {
40
40
  "@nuxt/kit": "^4.0.0",
41
41
  "vue": "^3.5.17",
42
- "@scalar/api-client": "2.7.0",
43
- "@scalar/types": "0.3.0",
44
- "@scalar/api-reference": "1.37.0",
42
+ "@scalar/api-reference": "1.38.0",
43
+ "@scalar/api-client": "2.8.0",
44
+ "@scalar/types": "0.3.1",
45
45
  "@scalar/use-hooks": "0.2.5",
46
- "@scalar/workspace-store": "0.16.2"
46
+ "@scalar/workspace-store": "0.17.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@nuxt/devtools": "^2.6.2",