@unocss/core 0.57.7 → 0.58.1
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 +0 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -590,7 +590,7 @@ function definePreset(preset) {
|
|
|
590
590
|
return preset;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
const version = "0.
|
|
593
|
+
const version = "0.58.1";
|
|
594
594
|
|
|
595
595
|
var __defProp = Object.defineProperty;
|
|
596
596
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -1082,7 +1082,7 @@ function createGenerator(config, defaults) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
const regexScopePlaceholder = /\s\$\$\s+/g;
|
|
1084
1084
|
function hasScopePlaceholder(css) {
|
|
1085
|
-
return
|
|
1085
|
+
return regexScopePlaceholder.test(css);
|
|
1086
1086
|
}
|
|
1087
1087
|
function applyScope(css, scope) {
|
|
1088
1088
|
if (hasScopePlaceholder(css))
|
package/dist/index.d.cts
CHANGED
|
@@ -161,7 +161,7 @@ declare class UnoGenerator<Theme extends object = object> {
|
|
|
161
161
|
}
|
|
162
162
|
declare function createGenerator<Theme extends object = object>(config?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): UnoGenerator<Theme>;
|
|
163
163
|
declare const regexScopePlaceholder: RegExp;
|
|
164
|
-
declare function hasScopePlaceholder(css: string):
|
|
164
|
+
declare function hasScopePlaceholder(css: string): boolean;
|
|
165
165
|
declare function toEscapedSelector(raw: string): string;
|
|
166
166
|
|
|
167
167
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -685,7 +685,7 @@ interface UserOnlyOptions<Theme extends object = object> {
|
|
|
685
685
|
*/
|
|
686
686
|
interface CliOptions {
|
|
687
687
|
cli?: {
|
|
688
|
-
entry?: CliEntryItem
|
|
688
|
+
entry?: Arrayable<CliEntryItem>;
|
|
689
689
|
};
|
|
690
690
|
}
|
|
691
691
|
interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
|
package/dist/index.d.mts
CHANGED
|
@@ -161,7 +161,7 @@ declare class UnoGenerator<Theme extends object = object> {
|
|
|
161
161
|
}
|
|
162
162
|
declare function createGenerator<Theme extends object = object>(config?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): UnoGenerator<Theme>;
|
|
163
163
|
declare const regexScopePlaceholder: RegExp;
|
|
164
|
-
declare function hasScopePlaceholder(css: string):
|
|
164
|
+
declare function hasScopePlaceholder(css: string): boolean;
|
|
165
165
|
declare function toEscapedSelector(raw: string): string;
|
|
166
166
|
|
|
167
167
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -685,7 +685,7 @@ interface UserOnlyOptions<Theme extends object = object> {
|
|
|
685
685
|
*/
|
|
686
686
|
interface CliOptions {
|
|
687
687
|
cli?: {
|
|
688
|
-
entry?: CliEntryItem
|
|
688
|
+
entry?: Arrayable<CliEntryItem>;
|
|
689
689
|
};
|
|
690
690
|
}
|
|
691
691
|
interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
|
package/dist/index.d.ts
CHANGED
|
@@ -161,7 +161,7 @@ declare class UnoGenerator<Theme extends object = object> {
|
|
|
161
161
|
}
|
|
162
162
|
declare function createGenerator<Theme extends object = object>(config?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): UnoGenerator<Theme>;
|
|
163
163
|
declare const regexScopePlaceholder: RegExp;
|
|
164
|
-
declare function hasScopePlaceholder(css: string):
|
|
164
|
+
declare function hasScopePlaceholder(css: string): boolean;
|
|
165
165
|
declare function toEscapedSelector(raw: string): string;
|
|
166
166
|
|
|
167
167
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -685,7 +685,7 @@ interface UserOnlyOptions<Theme extends object = object> {
|
|
|
685
685
|
*/
|
|
686
686
|
interface CliOptions {
|
|
687
687
|
cli?: {
|
|
688
|
-
entry?: CliEntryItem
|
|
688
|
+
entry?: Arrayable<CliEntryItem>;
|
|
689
689
|
};
|
|
690
690
|
}
|
|
691
691
|
interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
|
package/dist/index.mjs
CHANGED
|
@@ -588,7 +588,7 @@ function definePreset(preset) {
|
|
|
588
588
|
return preset;
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
const version = "0.
|
|
591
|
+
const version = "0.58.1";
|
|
592
592
|
|
|
593
593
|
var __defProp = Object.defineProperty;
|
|
594
594
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -1080,7 +1080,7 @@ function createGenerator(config, defaults) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
const regexScopePlaceholder = /\s\$\$\s+/g;
|
|
1082
1082
|
function hasScopePlaceholder(css) {
|
|
1083
|
-
return
|
|
1083
|
+
return regexScopePlaceholder.test(css);
|
|
1084
1084
|
}
|
|
1085
1085
|
function applyScope(css, scope) {
|
|
1086
1086
|
if (hasScopePlaceholder(css))
|