vite-plugin-press
Advanced tools
Comparing version 1.0.5 to 1.0.6
declare module 'virtual:press' { | ||
// eslint-disable-next-line | ||
const M: VideoGroups | ||
const M: VirtualPress | ||
export type Component = any | ||
export type VideoGroups = { [key: string]: Video[] } | ||
export type Posts = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } } | ||
export type VideoComponents = { [key: string]: { [group: string]: () => Promise<Component> } } | ||
export type PostComponents = { [key: string]: () => Promise<Component> } | ||
export type Blog = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } } | ||
export type VideoGroups = { [group: string]: Video[] } | ||
export type WhatsNewReleases = { [release: string]: WhatsNew[] } | ||
export type PostComponents = { [slug: string]: () => Promise<Component> } | ||
export type VideoComponents = { [group: string]: { [slug: string]: () => Promise<Component> } } | ||
export type WhatsNewComponents = { [release: string]: { [slug: string]: () => Promise<Component> } } | ||
export type VirtualPress = { | ||
blog: Blog | ||
videos: VideoGroups | ||
posts: Posts | ||
whatsNew: WhatsNewReleases | ||
components: { | ||
blog: PostComponents | ||
videos: VideoComponents | ||
posts: PostComponents | ||
whatsNew: WhatsNewComponents | ||
} | ||
@@ -45,2 +49,7 @@ } | ||
export type WhatsNew = Doc & { | ||
url: string | ||
image: string | ||
} | ||
export type Author = { | ||
@@ -56,4 +65,4 @@ name: string | ||
} | ||
export default M | ||
} |
@@ -35,2 +35,8 @@ import { Plugin } from 'vite'; | ||
/** | ||
* Where to look for What's New Features | ||
* @default './src/_whatsnew' | ||
*/ | ||
whatsNewPath?: string | ||
/** | ||
* Fallback Author profile url | ||
@@ -54,12 +60,16 @@ */ | ||
type Component = any | ||
type VideoGroups = { [key: string]: Video[] } | ||
type Posts = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } } | ||
type VideoComponents = { [key: string]: { [group: string]: () => Promise<Component> } } | ||
type PostComponents = { [key: string]: () => Promise<Component> } | ||
type Blog = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } } | ||
type VideoGroups = { [group: string]: Video[] } | ||
type WhatsNewReleases = { [release: string]: WhatsNew[] } | ||
type PostComponents = { [slug: string]: () => Promise<Component> } | ||
type VideoComponents = { [group: string]: { [slug: string]: () => Promise<Component> } } | ||
type WhatsNewComponents = { [release: string]: { [slug: string]: () => Promise<Component> } } | ||
type VirtualPress = { | ||
blog: Blog | ||
videos: VideoGroups | ||
posts: Posts | ||
whatsNew: WhatsNewReleases | ||
components: { | ||
blog: PostComponents | ||
videos: VideoComponents | ||
posts: PostComponents | ||
whatsNew: WhatsNewComponents | ||
} | ||
@@ -82,2 +92,3 @@ } | ||
draft?: boolean | ||
group?: string | ||
} | ||
@@ -95,2 +106,7 @@ | ||
type WhatsNew = Doc & { | ||
url: string | ||
image: string | ||
} | ||
type Author = { | ||
@@ -114,2 +130,2 @@ name: string | ||
export { type Author, type Doc, type Post, type Posts, type Video, type VideoGroups, type VirtualPress, export_default as default, extractor as matter }; | ||
export { type Author, type Blog, type Doc, type Post, type Video, type VideoGroups, type VirtualPress, type WhatsNew, type WhatsNewReleases, export_default as default, extractor as matter }; |
{ | ||
"name": "vite-plugin-press", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Static markdown content for creating blogs, videos", | ||
@@ -44,2 +44,5 @@ "repository": { | ||
}, | ||
"dependencies": { | ||
"js-yaml": "^4.1.0" | ||
}, | ||
"devDependencies": { | ||
@@ -49,3 +52,2 @@ "@types/node": "^20.11.17", | ||
"eslint-plugin-jest": "^27.6.3", | ||
"js-yaml": "^4.1.0", | ||
"tsup": "^8.0.2", | ||
@@ -52,0 +54,0 @@ "vite": "^5.1.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5
35505
1
890
14
1
+ Addedjs-yaml@^4.1.0
+ Addedargparse@2.0.1(transitive)
+ Addedjs-yaml@4.1.0(transitive)