@scalar/nuxt 0.5.19 → 0.5.21
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<
|
|
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
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
useSeoMeta,
|
|
12
12
|
useState
|
|
13
13
|
} from "#imports";
|
|
14
|
-
import { onMounted, ref,
|
|
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
|
|
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
|
-
:
|
|
121
|
-
:
|
|
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.
|
|
23
|
+
"version": "0.5.21",
|
|
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.
|
|
43
|
-
"@scalar/
|
|
44
|
-
"@scalar/
|
|
42
|
+
"@scalar/api-client": "2.8.1",
|
|
43
|
+
"@scalar/api-reference": "1.38.1",
|
|
44
|
+
"@scalar/types": "0.3.2",
|
|
45
45
|
"@scalar/use-hooks": "0.2.5",
|
|
46
|
-
"@scalar/workspace-store": "0.
|
|
46
|
+
"@scalar/workspace-store": "0.17.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@nuxt/devtools": "^2.6.2",
|