vscode-css-languageservice 6.3.3-2 → 6.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/beautify/beautify-css.js +1 -1
- package/lib/esm/cssLanguageTypes.d.ts +11 -0
- package/lib/esm/data/webCustomData.js +5944 -806
- package/lib/esm/languageFacts/entry.js +9 -10
- package/lib/umd/beautify/beautify-css.js +1 -1
- package/lib/umd/cssLanguageTypes.d.ts +11 -0
- package/lib/umd/data/webCustomData.js +5944 -806
- package/lib/umd/languageFacts/entry.js +9 -10
- package/package.json +8 -8
|
@@ -119,19 +119,18 @@ export function getBrowserLabel(browsers = []) {
|
|
|
119
119
|
if (browsers.length === 0) {
|
|
120
120
|
return null;
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
let result = '';
|
|
122
|
+
const entries = [];
|
|
123
|
+
for (const b of browsers) {
|
|
125
124
|
const matches = b.match(/([A-Z]+)(\d+)?/);
|
|
126
125
|
const name = matches[1];
|
|
127
126
|
const version = matches[2];
|
|
128
127
|
if (name in browserNames) {
|
|
129
|
-
result
|
|
128
|
+
let result = browserNames[name];
|
|
129
|
+
if (version) {
|
|
130
|
+
result += ' ' + version;
|
|
131
|
+
}
|
|
132
|
+
entries.push(result);
|
|
130
133
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
return result;
|
|
135
|
-
})
|
|
136
|
-
.join(', ');
|
|
134
|
+
}
|
|
135
|
+
return entries.join(', ');
|
|
137
136
|
}
|
|
@@ -125,6 +125,7 @@ export interface IPropertyData {
|
|
|
125
125
|
name: string;
|
|
126
126
|
description?: string | MarkupContent;
|
|
127
127
|
browsers?: string[];
|
|
128
|
+
baseline?: BaselineStatus;
|
|
128
129
|
restrictions?: string[];
|
|
129
130
|
status?: EntryStatus;
|
|
130
131
|
syntax?: string;
|
|
@@ -137,6 +138,7 @@ export interface IAtDirectiveData {
|
|
|
137
138
|
name: string;
|
|
138
139
|
description?: string | MarkupContent;
|
|
139
140
|
browsers?: string[];
|
|
141
|
+
baseline?: BaselineStatus;
|
|
140
142
|
status?: EntryStatus;
|
|
141
143
|
references?: IReference[];
|
|
142
144
|
}
|
|
@@ -144,6 +146,7 @@ export interface IPseudoClassData {
|
|
|
144
146
|
name: string;
|
|
145
147
|
description?: string | MarkupContent;
|
|
146
148
|
browsers?: string[];
|
|
149
|
+
baseline?: BaselineStatus;
|
|
147
150
|
status?: EntryStatus;
|
|
148
151
|
references?: IReference[];
|
|
149
152
|
}
|
|
@@ -151,6 +154,7 @@ export interface IPseudoElementData {
|
|
|
151
154
|
name: string;
|
|
152
155
|
description?: string | MarkupContent;
|
|
153
156
|
browsers?: string[];
|
|
157
|
+
baseline?: BaselineStatus;
|
|
154
158
|
status?: EntryStatus;
|
|
155
159
|
references?: IReference[];
|
|
156
160
|
}
|
|
@@ -158,6 +162,7 @@ export interface IValueData {
|
|
|
158
162
|
name: string;
|
|
159
163
|
description?: string | MarkupContent;
|
|
160
164
|
browsers?: string[];
|
|
165
|
+
baseline?: BaselineStatus;
|
|
161
166
|
status?: EntryStatus;
|
|
162
167
|
references?: IReference[];
|
|
163
168
|
}
|
|
@@ -168,6 +173,12 @@ export interface CSSDataV1 {
|
|
|
168
173
|
pseudoClasses?: IPseudoClassData[];
|
|
169
174
|
pseudoElements?: IPseudoElementData[];
|
|
170
175
|
}
|
|
176
|
+
export interface BaselineStatus {
|
|
177
|
+
status: Baseline;
|
|
178
|
+
baseline_low_date?: string;
|
|
179
|
+
baseline_high_date?: string;
|
|
180
|
+
}
|
|
181
|
+
export type Baseline = 'false' | 'low' | 'high';
|
|
171
182
|
export interface ICSSDataProvider {
|
|
172
183
|
provideProperties(): IPropertyData[];
|
|
173
184
|
provideAtDirectives(): IAtDirectiveData[];
|