@vuepress/plugin-theme-data
Advanced tools
Comparing version 2.0.0-beta.49 to 2.0.0-beta.50
@@ -1,2 +0,2 @@ | ||
export * from './useThemeData'; | ||
export * from './useThemeLocaleData'; | ||
export * from './useThemeData.js'; | ||
export * from './useThemeLocaleData.js'; |
@@ -1,2 +0,2 @@ | ||
export * from './useThemeData'; | ||
export * from './useThemeLocaleData'; | ||
export * from './useThemeData.js'; | ||
export * from './useThemeLocaleData.js'; |
import type { Ref } from 'vue'; | ||
import type { ThemeData } from '../../shared'; | ||
import type { ThemeData } from '../../shared/index.js'; | ||
export declare type ThemeDataRef<T extends ThemeData = ThemeData> = Ref<T>; | ||
export declare const themeData: ThemeDataRef; | ||
export declare const useThemeData: <T extends ThemeData<import("@vuepress/shared").LocaleData> = ThemeData<import("@vuepress/shared").LocaleData>>() => ThemeDataRef<T>; |
import type { RouteLocale } from '@vuepress/client'; | ||
import type { ComputedRef, InjectionKey } from 'vue'; | ||
import type { ThemeData } from '../../shared'; | ||
import type { ThemeData } from '../../shared/index.js'; | ||
export declare type ThemeLocaleDataRef<T extends ThemeData = ThemeData> = ComputedRef<T>; | ||
@@ -5,0 +5,0 @@ export declare const themeLocaleDataSymbol: InjectionKey<ThemeLocaleDataRef>; |
import { setupDevtoolsPlugin } from '@vue/devtools-api'; | ||
import { defineClientConfig, routeLocaleSymbol } from '@vuepress/client'; | ||
import { computed } from 'vue'; | ||
import { resolveThemeLocaleData, themeLocaleDataSymbol, useThemeData, } from './composables'; | ||
import { resolveThemeLocaleData, themeLocaleDataSymbol, useThemeData, } from './composables/index.js'; | ||
export default defineClientConfig({ | ||
@@ -6,0 +6,0 @@ enhance({ app }) { |
@@ -1,3 +0,2 @@ | ||
import type { ThemeData } from '../shared'; | ||
export type { ThemeData }; | ||
export * from './composables'; | ||
export * from '../shared/index.js'; | ||
export * from './composables/index.js'; |
@@ -1,1 +0,2 @@ | ||
export * from './composables'; | ||
export * from '../shared/index.js'; | ||
export * from './composables/index.js'; |
@@ -1,2 +0,2 @@ | ||
import type { ThemeData } from '../shared' | ||
import type { ThemeData } from '../shared/index.js' | ||
@@ -3,0 +3,0 @@ declare module '@internal/themeData' { |
@@ -1,5 +0,5 @@ | ||
import { themeDataPlugin } from './themeDataPlugin'; | ||
export * from '../shared'; | ||
export * from './prepareThemeData'; | ||
export * from './themeDataPlugin'; | ||
import { themeDataPlugin } from './themeDataPlugin.js'; | ||
export * from '../shared/index.js'; | ||
export * from './prepareThemeData.js'; | ||
export * from './themeDataPlugin.js'; | ||
export default themeDataPlugin; |
@@ -1,21 +0,5 @@ | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const themeDataPlugin_1 = require("./themeDataPlugin"); | ||
__exportStar(require("../shared"), exports); | ||
__exportStar(require("./prepareThemeData"), exports); | ||
__exportStar(require("./themeDataPlugin"), exports); | ||
exports.default = themeDataPlugin_1.themeDataPlugin; | ||
import { themeDataPlugin } from './themeDataPlugin.js'; | ||
export * from '../shared/index.js'; | ||
export * from './prepareThemeData.js'; | ||
export * from './themeDataPlugin.js'; | ||
export default themeDataPlugin; |
import type { App } from '@vuepress/core'; | ||
import type { ThemeData } from '../shared'; | ||
import type { ThemeData } from '../shared/index.js'; | ||
export declare const prepareThemeData: (app: App, themeData: ThemeData) => Promise<void>; |
@@ -1,4 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.prepareThemeData = void 0; | ||
const HMR_CODE = ` | ||
@@ -18,3 +15,3 @@ if (import.meta.webpackHot) { | ||
`; | ||
const prepareThemeData = async (app, themeData) => { | ||
export const prepareThemeData = async (app, themeData) => { | ||
// theme data file content | ||
@@ -30,2 +27,1 @@ let content = `\ | ||
}; | ||
exports.prepareThemeData = prepareThemeData; |
import type { Plugin } from '@vuepress/core'; | ||
import type { ThemeData } from '../shared'; | ||
import type { ThemeData } from '../shared/index.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Options of @vuepress/plugin-theme-data |
@@ -1,11 +0,12 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.themeDataPlugin = void 0; | ||
const utils_1 = require("@vuepress/utils"); | ||
const prepareThemeData_1 = require("./prepareThemeData"); | ||
const themeDataPlugin = ({ themeData, }) => ({ | ||
import { getDirname, path } from '@vuepress/utils'; | ||
import { prepareThemeData } from './prepareThemeData.js'; | ||
const __dirname = getDirname(import.meta.url); | ||
export const themeDataPlugin = ({ themeData, }) => ({ | ||
name: '@vuepress/plugin-theme-data', | ||
clientConfigFile: utils_1.path.resolve(__dirname, '../client/config.js'), | ||
onPrepared: (app) => (0, prepareThemeData_1.prepareThemeData)(app, themeData), | ||
alias: { | ||
// workaround for https://github.com/vitejs/vite/issues/7621 | ||
'@vuepress/plugin-theme-data/client': path.resolve(__dirname, '../client/index.js'), | ||
}, | ||
clientConfigFile: path.resolve(__dirname, '../client/config.js'), | ||
onPrepared: (app) => prepareThemeData(app, themeData), | ||
}); | ||
exports.themeDataPlugin = themeDataPlugin; |
@@ -1,1 +0,1 @@ | ||
export * from './themeData'; | ||
export * from './themeData.js'; |
@@ -1,17 +0,1 @@ | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./themeData"), exports); | ||
export * from './themeData.js'; |
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
export {}; |
{ | ||
"name": "@vuepress/plugin-theme-data", | ||
"version": "2.0.0-beta.49", | ||
"version": "2.0.0-beta.50", | ||
"description": "VuePress plugin - theme data", | ||
@@ -21,4 +21,10 @@ "keywords": [ | ||
"author": "meteorlxy", | ||
"main": "lib/node/index.js", | ||
"types": "lib/node/index.d.ts", | ||
"type": "module", | ||
"exports": { | ||
".": "./lib/node/index.js", | ||
"./client": "./lib/client/index.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./lib/node/index.js", | ||
"types": "./lib/node/index.d.ts", | ||
"files": [ | ||
@@ -28,7 +34,7 @@ "lib" | ||
"dependencies": { | ||
"@vue/devtools-api": "^6.2.0", | ||
"@vuepress/client": "2.0.0-beta.49", | ||
"@vuepress/core": "2.0.0-beta.49", | ||
"@vuepress/shared": "2.0.0-beta.49", | ||
"@vuepress/utils": "2.0.0-beta.49", | ||
"@vue/devtools-api": "^6.2.1", | ||
"@vuepress/client": "2.0.0-beta.50", | ||
"@vuepress/core": "2.0.0-beta.50", | ||
"@vuepress/shared": "2.0.0-beta.50", | ||
"@vuepress/utils": "2.0.0-beta.50", | ||
"vue": "^3.2.37" | ||
@@ -35,0 +41,0 @@ }, |
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
Yes
9326
176
+ Added@mdit-vue/plugin-component@0.9.4(transitive)
+ Added@mdit-vue/plugin-frontmatter@0.9.2(transitive)
+ Added@mdit-vue/plugin-headers@0.9.3(transitive)
+ Added@mdit-vue/plugin-sfc@0.9.2(transitive)
+ Added@mdit-vue/plugin-title@0.9.3(transitive)
+ Added@mdit-vue/plugin-toc@0.9.2(transitive)
+ Added@mdit-vue/shared@0.9.2(transitive)
+ Added@mdit-vue/types@0.9.2(transitive)
+ Added@types/hash-sum@1.0.2(transitive)
+ Added@vuepress/client@2.0.0-beta.50(transitive)
+ Added@vuepress/core@2.0.0-beta.50(transitive)
+ Added@vuepress/markdown@2.0.0-beta.50(transitive)
+ Added@vuepress/shared@2.0.0-beta.50(transitive)
+ Added@vuepress/utils@2.0.0-beta.50(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedbl@5.1.0(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedchalk@5.3.0(transitive)
+ Addedcli-cursor@4.0.0(transitive)
+ Addedglobby@13.2.2(transitive)
+ Addedis-interactive@2.0.0(transitive)
+ Addedis-unicode-supported@1.3.0(transitive)
+ Addedlog-symbols@5.1.0(transitive)
+ Addedora@6.3.1(transitive)
+ Addedrestore-cursor@4.0.0(transitive)
+ Addedslash@4.0.0(transitive)
+ Addedstdin-discarder@0.1.0(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
- Removed@mdit-vue/plugin-component@0.6.0(transitive)
- Removed@mdit-vue/plugin-frontmatter@0.6.0(transitive)
- Removed@mdit-vue/plugin-headers@0.6.0(transitive)
- Removed@mdit-vue/plugin-sfc@0.6.0(transitive)
- Removed@mdit-vue/plugin-title@0.6.0(transitive)
- Removed@mdit-vue/plugin-toc@0.6.0(transitive)
- Removed@mdit-vue/shared@0.6.0(transitive)
- Removed@mdit-vue/types@0.6.0(transitive)
- Removed@vuepress/client@2.0.0-beta.49(transitive)
- Removed@vuepress/core@2.0.0-beta.49(transitive)
- Removed@vuepress/markdown@2.0.0-beta.49(transitive)
- Removed@vuepress/shared@2.0.0-beta.49(transitive)
- Removed@vuepress/utils@2.0.0-beta.49(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedarray-union@2.1.0(transitive)
- Removedbl@4.1.0(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcli-cursor@3.1.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedglobby@11.1.0(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedis-interactive@1.0.0(transitive)
- Removedis-unicode-supported@0.1.0(transitive)
- Removedlog-symbols@4.1.0(transitive)
- Removedora@5.4.1(transitive)
- Removedrestore-cursor@3.1.0(transitive)
- Removedslash@3.0.0(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedsupports-color@7.2.0(transitive)
Updated@vue/devtools-api@^6.2.1
Updated@vuepress/core@2.0.0-beta.50