stylehacks 5.0.1 → 5.1.0
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/README.md +5 -8
- package/package.json +8 -11
- package/src/dictionary/browsers.js +9 -0
- package/src/dictionary/identifiers.js +7 -0
- package/src/dictionary/postcss.js +6 -0
- package/src/dictionary/tags.js +5 -0
- package/src/exists.js +13 -0
- package/src/index.js +60 -0
- package/src/isMixin.js +15 -0
- package/src/plugin.js +108 -0
- package/src/plugins/bodyEmpty.js +49 -0
- package/src/plugins/htmlCombinatorCommentBody.js +54 -0
- package/src/plugins/htmlFirstChild.js +50 -0
- package/src/plugins/important.js +25 -0
- package/src/plugins/index.js +28 -0
- package/src/plugins/leadingStar.js +55 -0
- package/src/plugins/leadingUnderscore.js +51 -0
- package/src/plugins/mediaSlash0.js +26 -0
- package/src/plugins/mediaSlash0Slash9.js +27 -0
- package/src/plugins/mediaSlash9.js +27 -0
- package/src/plugins/slash9.js +26 -0
- package/src/plugins/starHtml.js +50 -0
- package/src/plugins/trailingSlashComma.js +36 -0
- package/types/dictionary/browsers.d.ts +6 -0
- package/types/dictionary/identifiers.d.ts +4 -0
- package/types/dictionary/postcss.d.ts +3 -0
- package/types/dictionary/tags.d.ts +2 -0
- package/types/exists.d.ts +2 -0
- package/types/index.d.ts +16 -0
- package/types/isMixin.d.ts +2 -0
- package/types/plugin.d.ts +60 -0
- package/types/plugins/bodyEmpty.d.ts +17 -0
- package/types/plugins/htmlCombinatorCommentBody.d.ts +16 -0
- package/types/plugins/htmlFirstChild.d.ts +17 -0
- package/types/plugins/important.d.ts +11 -0
- package/types/plugins/index.d.ts +365 -0
- package/types/plugins/leadingStar.d.ts +11 -0
- package/types/plugins/leadingUnderscore.d.ts +11 -0
- package/types/plugins/mediaSlash0.d.ts +11 -0
- package/types/plugins/mediaSlash0Slash9.d.ts +11 -0
- package/types/plugins/mediaSlash9.d.ts +11 -0
- package/types/plugins/slash9.d.ts +11 -0
- package/types/plugins/starHtml.d.ts +17 -0
- package/types/plugins/trailingSlashComma.d.ts +11 -0
- package/CHANGELOG.md +0 -81
- package/dist/dictionary/browsers.js +0 -18
- package/dist/dictionary/identifiers.js +0 -14
- package/dist/dictionary/postcss.js +0 -12
- package/dist/dictionary/tags.js +0 -10
- package/dist/exists.js +0 -13
- package/dist/index.js +0 -69
- package/dist/isMixin.js +0 -20
- package/dist/plugin.js +0 -71
- package/dist/plugins/bodyEmpty.js +0 -48
- package/dist/plugins/htmlCombinatorCommentBody.js +0 -50
- package/dist/plugins/htmlFirstChild.js +0 -48
- package/dist/plugins/important.js +0 -29
- package/dist/plugins/index.js +0 -36
- package/dist/plugins/leadingStar.js +0 -67
- package/dist/plugins/leadingUnderscore.js +0 -49
- package/dist/plugins/mediaSlash0.js +0 -30
- package/dist/plugins/mediaSlash0Slash9.js +0 -30
- package/dist/plugins/mediaSlash9.js +0 -30
- package/dist/plugins/slash9.js +0 -30
- package/dist/plugins/starHtml.js +0 -48
- package/dist/plugins/trailingSlashComma.js +0 -39
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
[n: number]: {
|
|
3
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
4
|
+
} | {
|
|
5
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
6
|
+
};
|
|
7
|
+
length: number;
|
|
8
|
+
toString(): string;
|
|
9
|
+
toLocaleString(): string;
|
|
10
|
+
pop(): {
|
|
11
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
12
|
+
} | {
|
|
13
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
14
|
+
} | undefined;
|
|
15
|
+
push(...items: ({
|
|
16
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
17
|
+
} | {
|
|
18
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
19
|
+
})[]): number;
|
|
20
|
+
concat(...items: ConcatArray<{
|
|
21
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
22
|
+
} | {
|
|
23
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
24
|
+
}>[]): ({
|
|
25
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
26
|
+
} | {
|
|
27
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
28
|
+
})[];
|
|
29
|
+
concat(...items: ({
|
|
30
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
31
|
+
} | {
|
|
32
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
33
|
+
} | ConcatArray<{
|
|
34
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
35
|
+
} | {
|
|
36
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
37
|
+
}>)[]): ({
|
|
38
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
39
|
+
} | {
|
|
40
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
41
|
+
})[];
|
|
42
|
+
join(separator?: string | undefined): string;
|
|
43
|
+
reverse(): ({
|
|
44
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
45
|
+
} | {
|
|
46
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
47
|
+
})[];
|
|
48
|
+
shift(): {
|
|
49
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
50
|
+
} | {
|
|
51
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
52
|
+
} | undefined;
|
|
53
|
+
slice(start?: number | undefined, end?: number | undefined): ({
|
|
54
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
55
|
+
} | {
|
|
56
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
57
|
+
})[];
|
|
58
|
+
sort(compareFn?: ((a: {
|
|
59
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
60
|
+
} | {
|
|
61
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
62
|
+
}, b: {
|
|
63
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
64
|
+
} | {
|
|
65
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
66
|
+
}) => number) | undefined): ({
|
|
67
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
68
|
+
} | {
|
|
69
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
70
|
+
})[];
|
|
71
|
+
splice(start: number, deleteCount?: number | undefined): ({
|
|
72
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
73
|
+
} | {
|
|
74
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
75
|
+
})[];
|
|
76
|
+
splice(start: number, deleteCount: number, ...items: ({
|
|
77
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
78
|
+
} | {
|
|
79
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
80
|
+
})[]): ({
|
|
81
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
82
|
+
} | {
|
|
83
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
84
|
+
})[];
|
|
85
|
+
unshift(...items: ({
|
|
86
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
87
|
+
} | {
|
|
88
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
89
|
+
})[]): number;
|
|
90
|
+
indexOf(searchElement: {
|
|
91
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
92
|
+
} | {
|
|
93
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
94
|
+
}, fromIndex?: number | undefined): number;
|
|
95
|
+
lastIndexOf(searchElement: {
|
|
96
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
97
|
+
} | {
|
|
98
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
99
|
+
}, fromIndex?: number | undefined): number;
|
|
100
|
+
every<S extends {
|
|
101
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
102
|
+
} | {
|
|
103
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
104
|
+
}>(predicate: (value: {
|
|
105
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
106
|
+
} | {
|
|
107
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
108
|
+
}, index: number, array: ({
|
|
109
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
110
|
+
} | {
|
|
111
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
112
|
+
})[]) => value is S, thisArg?: any): this is S[];
|
|
113
|
+
every(predicate: (value: {
|
|
114
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
115
|
+
} | {
|
|
116
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
117
|
+
}, index: number, array: ({
|
|
118
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
119
|
+
} | {
|
|
120
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
121
|
+
})[]) => unknown, thisArg?: any): boolean;
|
|
122
|
+
some(predicate: (value: {
|
|
123
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
124
|
+
} | {
|
|
125
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
126
|
+
}, index: number, array: ({
|
|
127
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
128
|
+
} | {
|
|
129
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
130
|
+
})[]) => unknown, thisArg?: any): boolean;
|
|
131
|
+
forEach(callbackfn: (value: {
|
|
132
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
133
|
+
} | {
|
|
134
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
135
|
+
}, index: number, array: ({
|
|
136
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
137
|
+
} | {
|
|
138
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
139
|
+
})[]) => void, thisArg?: any): void;
|
|
140
|
+
map<U>(callbackfn: (value: {
|
|
141
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
142
|
+
} | {
|
|
143
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
144
|
+
}, index: number, array: ({
|
|
145
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
146
|
+
} | {
|
|
147
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
148
|
+
})[]) => U, thisArg?: any): U[];
|
|
149
|
+
filter<S_1 extends {
|
|
150
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
151
|
+
} | {
|
|
152
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
153
|
+
}>(predicate: (value: {
|
|
154
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
155
|
+
} | {
|
|
156
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
157
|
+
}, index: number, array: ({
|
|
158
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
159
|
+
} | {
|
|
160
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
161
|
+
})[]) => value is S_1, thisArg?: any): S_1[];
|
|
162
|
+
filter(predicate: (value: {
|
|
163
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
164
|
+
} | {
|
|
165
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
166
|
+
}, index: number, array: ({
|
|
167
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
168
|
+
} | {
|
|
169
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
170
|
+
})[]) => unknown, thisArg?: any): ({
|
|
171
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
172
|
+
} | {
|
|
173
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
174
|
+
})[];
|
|
175
|
+
reduce(callbackfn: (previousValue: {
|
|
176
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
177
|
+
} | {
|
|
178
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
179
|
+
}, currentValue: {
|
|
180
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
181
|
+
} | {
|
|
182
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
183
|
+
}, currentIndex: number, array: ({
|
|
184
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
185
|
+
} | {
|
|
186
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
187
|
+
})[]) => {
|
|
188
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
189
|
+
} | {
|
|
190
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
191
|
+
}): {
|
|
192
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
193
|
+
} | {
|
|
194
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
195
|
+
};
|
|
196
|
+
reduce(callbackfn: (previousValue: {
|
|
197
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
198
|
+
} | {
|
|
199
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
200
|
+
}, currentValue: {
|
|
201
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
202
|
+
} | {
|
|
203
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
204
|
+
}, currentIndex: number, array: ({
|
|
205
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
206
|
+
} | {
|
|
207
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
208
|
+
})[]) => {
|
|
209
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
210
|
+
} | {
|
|
211
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
212
|
+
}, initialValue: {
|
|
213
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
214
|
+
} | {
|
|
215
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
216
|
+
}): {
|
|
217
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
218
|
+
} | {
|
|
219
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
220
|
+
};
|
|
221
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: {
|
|
222
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
223
|
+
} | {
|
|
224
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
225
|
+
}, currentIndex: number, array: ({
|
|
226
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
227
|
+
} | {
|
|
228
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
229
|
+
})[]) => U_1, initialValue: U_1): U_1;
|
|
230
|
+
reduceRight(callbackfn: (previousValue: {
|
|
231
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
232
|
+
} | {
|
|
233
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
234
|
+
}, currentValue: {
|
|
235
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
236
|
+
} | {
|
|
237
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
238
|
+
}, currentIndex: number, array: ({
|
|
239
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
240
|
+
} | {
|
|
241
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
242
|
+
})[]) => {
|
|
243
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
244
|
+
} | {
|
|
245
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
246
|
+
}): {
|
|
247
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
248
|
+
} | {
|
|
249
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
250
|
+
};
|
|
251
|
+
reduceRight(callbackfn: (previousValue: {
|
|
252
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
253
|
+
} | {
|
|
254
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
255
|
+
}, currentValue: {
|
|
256
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
257
|
+
} | {
|
|
258
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
259
|
+
}, currentIndex: number, array: ({
|
|
260
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
261
|
+
} | {
|
|
262
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
263
|
+
})[]) => {
|
|
264
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
265
|
+
} | {
|
|
266
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
267
|
+
}, initialValue: {
|
|
268
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
269
|
+
} | {
|
|
270
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
271
|
+
}): {
|
|
272
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
273
|
+
} | {
|
|
274
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
275
|
+
};
|
|
276
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: {
|
|
277
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
278
|
+
} | {
|
|
279
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
280
|
+
}, currentIndex: number, array: ({
|
|
281
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
282
|
+
} | {
|
|
283
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
284
|
+
})[]) => U_2, initialValue: U_2): U_2;
|
|
285
|
+
find<S_2 extends {
|
|
286
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
287
|
+
} | {
|
|
288
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
289
|
+
}>(predicate: (this: void, value: {
|
|
290
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
291
|
+
} | {
|
|
292
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
293
|
+
}, index: number, obj: ({
|
|
294
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
295
|
+
} | {
|
|
296
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
297
|
+
})[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
298
|
+
find(predicate: (value: {
|
|
299
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
300
|
+
} | {
|
|
301
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
302
|
+
}, index: number, obj: ({
|
|
303
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
304
|
+
} | {
|
|
305
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
306
|
+
})[]) => unknown, thisArg?: any): {
|
|
307
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
308
|
+
} | {
|
|
309
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
310
|
+
} | undefined;
|
|
311
|
+
findIndex(predicate: (value: {
|
|
312
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
313
|
+
} | {
|
|
314
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
315
|
+
}, index: number, obj: ({
|
|
316
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
317
|
+
} | {
|
|
318
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
319
|
+
})[]) => unknown, thisArg?: any): number;
|
|
320
|
+
fill(value: {
|
|
321
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
322
|
+
} | {
|
|
323
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
324
|
+
}, start?: number | undefined, end?: number | undefined): ({
|
|
325
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
326
|
+
} | {
|
|
327
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
328
|
+
})[];
|
|
329
|
+
copyWithin(target: number, start: number, end?: number | undefined): ({
|
|
330
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
331
|
+
} | {
|
|
332
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
333
|
+
})[];
|
|
334
|
+
entries(): IterableIterator<[number, {
|
|
335
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
336
|
+
} | {
|
|
337
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
338
|
+
}]>;
|
|
339
|
+
keys(): IterableIterator<number>;
|
|
340
|
+
values(): IterableIterator<{
|
|
341
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
342
|
+
} | {
|
|
343
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
344
|
+
}>;
|
|
345
|
+
includes(searchElement: {
|
|
346
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
347
|
+
} | {
|
|
348
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
349
|
+
}, fromIndex?: number | undefined): boolean;
|
|
350
|
+
[Symbol.iterator](): IterableIterator<{
|
|
351
|
+
new (result?: import("postcss").Result | undefined): important;
|
|
352
|
+
} | {
|
|
353
|
+
new (result?: import("postcss").Result | undefined): trailingSlashComma;
|
|
354
|
+
}>;
|
|
355
|
+
[Symbol.unscopables](): {
|
|
356
|
+
copyWithin: boolean;
|
|
357
|
+
entries: boolean;
|
|
358
|
+
fill: boolean;
|
|
359
|
+
find: boolean;
|
|
360
|
+
findIndex: boolean;
|
|
361
|
+
keys: boolean;
|
|
362
|
+
values: boolean;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
export = _exports;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export = LeadingStar;
|
|
2
|
+
declare class LeadingStar extends BasePlugin {
|
|
3
|
+
/** @param {import('postcss').Result=} result */
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
|
+
/**
|
|
6
|
+
* @param {import('postcss').Declaration | import('postcss').AtRule} node
|
|
7
|
+
* @return {void}
|
|
8
|
+
*/
|
|
9
|
+
detect(node: import('postcss').Declaration | import('postcss').AtRule): void;
|
|
10
|
+
}
|
|
11
|
+
import BasePlugin = require("../plugin");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export = LeadingUnderscore;
|
|
2
|
+
declare class LeadingUnderscore extends BasePlugin {
|
|
3
|
+
/** @param {import('postcss').Result=} result */
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
|
+
/**
|
|
6
|
+
* @param {import('postcss').Declaration} decl
|
|
7
|
+
* @return {void}
|
|
8
|
+
*/
|
|
9
|
+
detect(decl: import('postcss').Declaration): void;
|
|
10
|
+
}
|
|
11
|
+
import BasePlugin = require("../plugin");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export = MediaSlash0;
|
|
2
|
+
declare class MediaSlash0 extends BasePlugin {
|
|
3
|
+
/** @param {import('postcss').Result} result */
|
|
4
|
+
constructor(result: import('postcss').Result);
|
|
5
|
+
/**
|
|
6
|
+
* @param {import('postcss').AtRule} rule
|
|
7
|
+
* @return {void}
|
|
8
|
+
*/
|
|
9
|
+
detect(rule: import('postcss').AtRule): void;
|
|
10
|
+
}
|
|
11
|
+
import BasePlugin = require("../plugin");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export = MediaSlash0Slash9;
|
|
2
|
+
declare class MediaSlash0Slash9 extends BasePlugin {
|
|
3
|
+
/** @param {import('postcss').Result} result */
|
|
4
|
+
constructor(result: import('postcss').Result);
|
|
5
|
+
/**
|
|
6
|
+
* @param {import('postcss').AtRule} rule
|
|
7
|
+
* @return {void}
|
|
8
|
+
*/
|
|
9
|
+
detect(rule: import('postcss').AtRule): void;
|
|
10
|
+
}
|
|
11
|
+
import BasePlugin = require("../plugin");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export = MediaSlash9;
|
|
2
|
+
declare class MediaSlash9 extends BasePlugin {
|
|
3
|
+
/** @param {import('postcss').Result} result */
|
|
4
|
+
constructor(result: import('postcss').Result);
|
|
5
|
+
/**
|
|
6
|
+
* @param {import('postcss').AtRule} rule
|
|
7
|
+
* @return {void}
|
|
8
|
+
*/
|
|
9
|
+
detect(rule: import('postcss').AtRule): void;
|
|
10
|
+
}
|
|
11
|
+
import BasePlugin = require("../plugin");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export = Slash9;
|
|
2
|
+
declare class Slash9 extends BasePlugin {
|
|
3
|
+
/** @param {import('postcss').Result=} result */
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
|
+
/**
|
|
6
|
+
* @param {import('postcss').Declaration} decl
|
|
7
|
+
* @return {void}
|
|
8
|
+
*/
|
|
9
|
+
detect(decl: import('postcss').Declaration): void;
|
|
10
|
+
}
|
|
11
|
+
import BasePlugin = require("../plugin.js");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export = StarHtml;
|
|
2
|
+
declare class StarHtml extends BasePlugin {
|
|
3
|
+
/** @param {import('postcss').Result=} result */
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
|
+
/**
|
|
6
|
+
* @param {import('postcss').Rule} rule
|
|
7
|
+
* @return {void}
|
|
8
|
+
*/
|
|
9
|
+
detect(rule: import('postcss').Rule): void;
|
|
10
|
+
/**
|
|
11
|
+
* @param {import('postcss').Rule} rule
|
|
12
|
+
* @return {parser.SyncProcessor<void>}
|
|
13
|
+
*/
|
|
14
|
+
analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
|
|
15
|
+
}
|
|
16
|
+
import BasePlugin = require("../plugin");
|
|
17
|
+
import parser = require("postcss-selector-parser");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export = TrailingSlashComma;
|
|
2
|
+
declare class TrailingSlashComma extends BasePlugin {
|
|
3
|
+
/** @param {import('postcss').Result=} result */
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
|
+
/**
|
|
6
|
+
* @param {import('postcss').Rule} rule
|
|
7
|
+
* @return {void}
|
|
8
|
+
*/
|
|
9
|
+
detect(rule: import('postcss').Rule): void;
|
|
10
|
+
}
|
|
11
|
+
import BasePlugin = require("../plugin");
|
package/CHANGELOG.md
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [5.0.1](https://github.com/cssnano/cssnano/compare/stylehacks@5.0.0...stylehacks@5.0.1) (2021-05-19)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package stylehacks
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [5.0.0](https://github.com/cssnano/cssnano/compare/stylehacks@5.0.0-rc.2...stylehacks@5.0.0) (2021-04-06)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package stylehacks
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# [5.0.0-rc.2](https://github.com/cssnano/cssnano/compare/stylehacks@5.0.0-rc.1...stylehacks@5.0.0-rc.2) (2021-03-15)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package stylehacks
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# [5.0.0-rc.1](https://github.com/cssnano/cssnano/compare/stylehacks@5.0.0-rc.0...stylehacks@5.0.0-rc.1) (2021-03-04)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package stylehacks
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# 5.0.0-rc.0 (2021-02-19)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### chore
|
|
42
|
-
|
|
43
|
-
* minimum require version of node is 10.13 ([#871](https://github.com/cssnano/cssnano/issues/871)) ([28bda24](https://github.com/cssnano/cssnano/commit/28bda243e32ce3ba89b3c358a5f78727b3732f11))
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Features
|
|
47
|
-
|
|
48
|
-
* migarete to PostCSS 8 ([#975](https://github.com/cssnano/cssnano/issues/975)) ([40b82dc](https://github.com/cssnano/cssnano/commit/40b82dca7f53ac02cd4fe62846dec79b898ccb49))
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### BREAKING CHANGES
|
|
52
|
-
|
|
53
|
-
* minimum supported `postcss` version is `8.2.1`
|
|
54
|
-
* minimum require version of node is 10.13
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## 4.1.10 (2019-02-14)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### Bug Fixes
|
|
62
|
-
|
|
63
|
-
* **stylehacks:** doesn't throw error on `[attr]` selector ([#711](https://github.com/cssnano/cssnano/issues/711)) ([a4a43c3](https://github.com/cssnano/cssnano/commit/a4a43c37c58eb9dec3123072485f12e20f627bd1))
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
## 4.1.9 (2019-02-12)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Bug Fixes
|
|
71
|
-
|
|
72
|
-
* **stylehacks:** better handle uppercase ([#704](https://github.com/cssnano/cssnano/issues/704)) ([8d48058](https://github.com/cssnano/cssnano/commit/8d48058b0f5be6943c443e4ce653fb156794f6b7))
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
## 4.1.1 (2018-09-24)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
### Bug Fixes
|
|
80
|
-
|
|
81
|
-
* **postcss-merge-longhand:** not mangle border output ([#555](https://github.com/cssnano/cssnano/issues/555)) ([9a70605](https://github.com/cssnano/cssnano/commit/9a706050b621e7795a9bf74eb7110b5c81804ffe)), closes [#553](https://github.com/cssnano/cssnano/issues/553) [#554](https://github.com/cssnano/cssnano/issues/554)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.OP_9 = exports.IE_8 = exports.IE_7 = exports.IE_6 = exports.IE_5_5 = exports.FF_2 = void 0;
|
|
7
|
-
const FF_2 = 'firefox 2';
|
|
8
|
-
exports.FF_2 = FF_2;
|
|
9
|
-
const IE_5_5 = 'ie 5.5';
|
|
10
|
-
exports.IE_5_5 = IE_5_5;
|
|
11
|
-
const IE_6 = 'ie 6';
|
|
12
|
-
exports.IE_6 = IE_6;
|
|
13
|
-
const IE_7 = 'ie 7';
|
|
14
|
-
exports.IE_7 = IE_7;
|
|
15
|
-
const IE_8 = 'ie 8';
|
|
16
|
-
exports.IE_8 = IE_8;
|
|
17
|
-
const OP_9 = 'opera 9';
|
|
18
|
-
exports.OP_9 = OP_9;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.VALUE = exports.SELECTOR = exports.PROPERTY = exports.MEDIA_QUERY = void 0;
|
|
7
|
-
const MEDIA_QUERY = 'media query';
|
|
8
|
-
exports.MEDIA_QUERY = MEDIA_QUERY;
|
|
9
|
-
const PROPERTY = 'property';
|
|
10
|
-
exports.PROPERTY = PROPERTY;
|
|
11
|
-
const SELECTOR = 'selector';
|
|
12
|
-
exports.SELECTOR = SELECTOR;
|
|
13
|
-
const VALUE = 'value';
|
|
14
|
-
exports.VALUE = VALUE;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.RULE = exports.DECL = exports.ATRULE = void 0;
|
|
7
|
-
const ATRULE = 'atrule';
|
|
8
|
-
exports.ATRULE = ATRULE;
|
|
9
|
-
const DECL = 'decl';
|
|
10
|
-
exports.DECL = DECL;
|
|
11
|
-
const RULE = 'rule';
|
|
12
|
-
exports.RULE = RULE;
|
package/dist/dictionary/tags.js
DELETED
package/dist/exists.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exists;
|
|
7
|
-
|
|
8
|
-
function exists(selector, index, value) {
|
|
9
|
-
const node = selector.at(index);
|
|
10
|
-
return node && node.value && node.value.toLowerCase() === value;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
module.exports = exports.default;
|