@unocss/extractor-arbitrary-variants 66.5.12 → 66.6.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/dist/index.d.mts +2 -31
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
_map: Map<K$1, number>;
|
|
4
|
-
constructor(values?: Iterable<K$1>);
|
|
5
|
-
add(key: K$1): this;
|
|
6
|
-
delete(key: K$1): boolean;
|
|
7
|
-
clear(): void;
|
|
8
|
-
getCount(key: K$1): number;
|
|
9
|
-
setCount(key: K$1, count: number): this;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region ../../packages-engine/core/src/types.d.ts
|
|
13
|
-
type Awaitable<T> = T | Promise<T>;
|
|
14
|
-
interface ExtractorContext {
|
|
15
|
-
readonly original: string;
|
|
16
|
-
code: string;
|
|
17
|
-
id?: string;
|
|
18
|
-
extracted: Set<string> | CountableSet<string>;
|
|
19
|
-
envMode?: 'dev' | 'build';
|
|
20
|
-
}
|
|
21
|
-
interface Extractor {
|
|
22
|
-
name: string;
|
|
23
|
-
order?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Extract the code and return a list of selectors.
|
|
26
|
-
*
|
|
27
|
-
* Return `undefined` to skip this extractor.
|
|
28
|
-
*/
|
|
29
|
-
extract?: (ctx: ExtractorContext) => Awaitable<Set<string> | CountableSet<string> | string[] | undefined | void>;
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
1
|
+
import { Extractor } from "@unocss/core";
|
|
2
|
+
|
|
32
3
|
//#region src/index.d.ts
|
|
33
4
|
declare const quotedArbitraryValuesRE: RegExp;
|
|
34
5
|
declare const arbitraryPropertyRE: RegExp;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/extractor-arbitrary-variants",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.
|
|
4
|
+
"version": "66.6.0",
|
|
5
5
|
"description": "Extractor arbitrary variants for utilities",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@unocss/core": "66.
|
|
36
|
+
"@unocss/core": "66.6.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "tsdown --config-loader unrun",
|