@vue/devtools-shared
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -1,4 +0,1 @@ | ||
import * as _vueuse_core from '@vueuse/core'; | ||
import { UseColorModeOptions } from '@vueuse/core'; | ||
declare const isBrowser: boolean; | ||
@@ -34,9 +31,3 @@ declare const target: typeof globalThis; | ||
declare const BROADCAST_CHANNEL_NAME = "__vue-devtools-broadcast-channel__"; | ||
declare const THEME_KEY = "__vue-devtools-theme__"; | ||
declare function useDevToolsColorMode(options?: Omit<UseColorModeOptions, 'storageKey'>): { | ||
colorMode: _vueuse_core.UseColorModeReturn<_vueuse_core.BasicColorMode>; | ||
isDark: globalThis.ComputedRef<boolean>; | ||
}; | ||
export { BROADCAST_CHANNEL_NAME, NOOP, THEME_KEY, VIEW_MODE_STORAGE_KEY, VITE_PLUGIN_CLIENT_URL_STORAGE_KEY, VITE_PLUGIN_DETECTED_STORAGE_KEY, basename, camelize, classify, deepClone, isArray, isBrowser, isInChromePanel, isInElectron, isInIframe, isMacOS, isMap, isNumeric, isNuxtApp, isObject, isSet, kebabize, randomStr, sortByKey, target, useDevToolsColorMode }; | ||
export { BROADCAST_CHANNEL_NAME, NOOP, VIEW_MODE_STORAGE_KEY, VITE_PLUGIN_CLIENT_URL_STORAGE_KEY, VITE_PLUGIN_DETECTED_STORAGE_KEY, basename, camelize, classify, deepClone, isArray, isBrowser, isInChromePanel, isInElectron, isInIframe, isMacOS, isMap, isNumeric, isNuxtApp, isObject, isSet, kebabize, randomStr, sortByKey, target }; |
@@ -30,5 +30,5 @@ var __create = Object.create; | ||
// ../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js | ||
// ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.0_@types+node@20.12.7__postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js | ||
var init_esm_shims = __esm({ | ||
"../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js"() { | ||
"../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.0_@types+node@20.12.7__postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js"() { | ||
"use strict"; | ||
@@ -325,22 +325,5 @@ } | ||
var BROADCAST_CHANNEL_NAME = "__vue-devtools-broadcast-channel__"; | ||
var THEME_KEY = "__vue-devtools-theme__"; | ||
// src/theme.ts | ||
init_esm_shims(); | ||
import { useColorMode } from "@vueuse/core"; | ||
import { computed } from "vue"; | ||
function useDevToolsColorMode(options = {}) { | ||
const colorMode = useColorMode({ | ||
...options, | ||
storageKey: THEME_KEY | ||
}); | ||
return { | ||
colorMode, | ||
isDark: computed(() => colorMode.value === "dark") | ||
}; | ||
} | ||
export { | ||
BROADCAST_CHANNEL_NAME, | ||
NOOP, | ||
THEME_KEY, | ||
VIEW_MODE_STORAGE_KEY, | ||
@@ -367,4 +350,3 @@ VITE_PLUGIN_CLIENT_URL_STORAGE_KEY, | ||
sortByKey, | ||
target, | ||
useDevToolsColorMode | ||
target | ||
}; |
{ | ||
"name": "@vue/devtools-shared", | ||
"type": "module", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"author": "webfansplz", | ||
@@ -18,14 +18,2 @@ "license": "MIT", | ||
], | ||
"peerDependencies": { | ||
"@vueuse/core": ">=10.0.0", | ||
"vue": ">=3.2.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@vueuse/core": { | ||
"optional": true | ||
}, | ||
"vue": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
@@ -32,0 +20,0 @@ "rfdc": "^1.3.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
30106
751