Skip to content

Add Baseline status to hovercards #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Apr 3, 2025
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions src/cssLanguageTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export interface IReference {
export interface IPropertyData {
name: string;
description?: string | MarkupContent;
browsers?: string[];
baselineStatus?: BaselineStatus;
restrictions?: string[];
status?: EntryStatus;
syntax?: string;
Expand All @@ -200,29 +200,29 @@ export interface IPropertyData {
export interface IAtDirectiveData {
name: string;
description?: string | MarkupContent;
browsers?: string[];
baselineStatus?: BaselineStatus;
status?: EntryStatus;
references?: IReference[];
}
export interface IPseudoClassData {
name: string;
description?: string | MarkupContent;
browsers?: string[];
baselineStatus?: BaselineStatus;
status?: EntryStatus;
references?: IReference[];
}
export interface IPseudoElementData {
name: string;
description?: string | MarkupContent;
browsers?: string[];
baselineStatus?: BaselineStatus;
status?: EntryStatus;
references?: IReference[];
}

export interface IValueData {
name: string;
description?: string | MarkupContent;
browsers?: string[];
baselineStatus?: BaselineStatus;
status?: EntryStatus;
references?: IReference[];
}
Expand All @@ -242,6 +242,25 @@ export interface ICSSDataProvider {
providePseudoElements(): IPseudoElementData[];
}

export interface BaselineStatus {
baseline: Baseline;
support?: BaselineSupport;
baseline_low_date?: string;
baseline_high_date?: string;
}

export type Baseline = false | 'low' | 'high';

export interface BaselineSupport {
'chrome'?: string;
'chrome_android'?: string;
'edge'?: string;
'firefox'?: string;
'firefox_android'?: string;
'safari'?: string;
'safari_ios'?: string;
}

export enum FileType {
/**
* The file type is unknown.
Expand Down Expand Up @@ -314,4 +333,4 @@ export interface CSSFormatConfiguration {
/** @deprecated Use newlineBetweenSelectors instead*/
selectorSeparatorNewline?: boolean;

}
}
Loading