@giscus/vue
Advanced tools
Comparing version 1.1.0-beta.2 to 1.1.0-beta.3
/// <reference types="react" /> | ||
export declare type GiscusProps = Giscus; | ||
export declare type Giscus = { | ||
repo: Repo; | ||
repoId: string; | ||
category?: string; | ||
categoryId?: string; | ||
mapping: Mapping; | ||
term?: string; | ||
theme?: Theme; | ||
reactionsEnabled?: BooleanString; | ||
emitMetadata?: BooleanString; | ||
inputPosition?: InputPosition; | ||
lang?: Lang; | ||
}; | ||
export declare type BooleanString = "0" | "1"; | ||
export declare type InputPosition = "top" | "bottom"; | ||
export declare type Session = { | ||
session: string; | ||
}; | ||
export declare type Repo = `${string}/${string}`; | ||
export declare type Mapping = "url" | "title" | "og:title" | "specific" | "number" | "pathname"; | ||
export declare type GenericString = string & Record<never, never>; | ||
export declare type Theme = "light" | "light_high_contrast" | "light_protanopia" | "dark" | "dark_high_contrast" | "dark_protanopia" | "dark_dimmed" | "transparent_dark" | "preferred_color_scheme" | `https://${string}` | GenericString; | ||
export declare type Lang = "de" | "gsw" | "en" | "es" | "fr" | "id" | "it" | "ja" | "ko" | "pl" | "ro" | "ru" | "vi" | "zh-CN" | "zh-TW" | GenericString; | ||
export declare const Giscus: import("vue").DefineComponent<{ | ||
@@ -23,3 +44,3 @@ repo: { | ||
lang: { | ||
type: PropType<((string & Record<never, never>) | "de" | "gsw" | "en" | "es" | "fr" | "id" | "it" | "ja" | "ko" | "pl" | "ro" | "ru" | "vi" | "zh-CN" | "zh-TW") | undefined>; | ||
type: PropType<import("@shared/types").Lang | undefined>; | ||
default: string; | ||
@@ -32,11 +53,11 @@ }; | ||
reactionsEnabled: { | ||
type: PropType<("0" | "1") | undefined>; | ||
type: PropType<import("@shared/types").BooleanString | undefined>; | ||
default: string; | ||
}; | ||
emitMetadata: { | ||
type: PropType<("0" | "1") | undefined>; | ||
type: PropType<import("@shared/types").BooleanString | undefined>; | ||
default: string; | ||
}; | ||
inputPosition: { | ||
type: PropType<("top" | "bottom") | undefined>; | ||
type: PropType<import("@shared/types").InputPosition | undefined>; | ||
default: string; | ||
@@ -61,6 +82,6 @@ }; | ||
theme: import("@shared/types").Theme | undefined; | ||
reactionsEnabled: ("0" | "1") | undefined; | ||
emitMetadata: ("0" | "1") | undefined; | ||
inputPosition: ("top" | "bottom") | undefined; | ||
lang: ((string & Record<never, never>) | "de" | "gsw" | "en" | "es" | "fr" | "id" | "it" | "ja" | "ko" | "pl" | "ro" | "ru" | "vi" | "zh-CN" | "zh-TW") | undefined; | ||
reactionsEnabled: import("@shared/types").BooleanString | undefined; | ||
emitMetadata: import("@shared/types").BooleanString | undefined; | ||
inputPosition: import("@shared/types").InputPosition | undefined; | ||
lang: import("@shared/types").Lang | undefined; | ||
} & { | ||
@@ -72,6 +93,6 @@ category?: string | undefined; | ||
theme: import("@shared/types").Theme | undefined; | ||
reactionsEnabled: ("0" | "1") | undefined; | ||
emitMetadata: ("0" | "1") | undefined; | ||
inputPosition: ("top" | "bottom") | undefined; | ||
lang: ((string & Record<never, never>) | "de" | "gsw" | "en" | "es" | "fr" | "id" | "it" | "ja" | "ko" | "pl" | "ro" | "ru" | "vi" | "zh-CN" | "zh-TW") | undefined; | ||
reactionsEnabled: import("@shared/types").BooleanString | undefined; | ||
emitMetadata: import("@shared/types").BooleanString | undefined; | ||
inputPosition: import("@shared/types").InputPosition | undefined; | ||
lang: import("@shared/types").Lang | undefined; | ||
}>; | ||
@@ -78,0 +99,0 @@ export declare const plugin: Plugin; |
@@ -5,3 +5,3 @@ { | ||
"description": "Type-safe Vue component for giscus", | ||
"version": "1.1.0-beta.2", | ||
"version": "1.1.0-beta.3", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "main": "dist/index.cjs.js", |
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
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
69740
333
0