@unocss/preset-typography 66.6.0 → 66.6.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/dist/index.mjs +6 -1
- package/package.json +5 -9
package/dist/index.mjs
CHANGED
|
@@ -1079,7 +1079,12 @@ const presetTypography = definePreset((options) => {
|
|
|
1079
1079
|
const resolvedColorScheme = resolveColorScheme(options?.colorScheme);
|
|
1080
1080
|
const resolvedSizeScheme = resolveSizeScheme(options?.sizeScheme);
|
|
1081
1081
|
const extended = (entries, theme) => {
|
|
1082
|
-
|
|
1082
|
+
const merged = mergeDeep(entries, (typeof options?.cssExtend === "function" ? options?.cssExtend(theme) : options?.cssExtend) ?? {});
|
|
1083
|
+
for (const key in merged) {
|
|
1084
|
+
const value = merged[key];
|
|
1085
|
+
if (value == null || typeof value === "object" && Object.keys(value).length === 0) delete merged[key];
|
|
1086
|
+
}
|
|
1087
|
+
return merged;
|
|
1083
1088
|
};
|
|
1084
1089
|
const normalizeSelector = (s) => {
|
|
1085
1090
|
if (typeof options?.important === "string") s = `${options.important} ${s}`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-typography",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.6.
|
|
4
|
+
"version": "66.6.1",
|
|
5
5
|
"description": "Typography preset for UnoCSS",
|
|
6
6
|
"author": "Jeff Yang",
|
|
7
7
|
"license": "MIT",
|
|
@@ -20,20 +20,16 @@
|
|
|
20
20
|
],
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"exports": {
|
|
23
|
-
".":
|
|
24
|
-
|
|
25
|
-
"default": "./dist/index.mjs"
|
|
26
|
-
}
|
|
23
|
+
".": "./dist/index.mjs",
|
|
24
|
+
"./package.json": "./package.json"
|
|
27
25
|
},
|
|
28
|
-
"main": "dist/index.mjs",
|
|
29
|
-
"module": "dist/index.mjs",
|
|
30
26
|
"types": "dist/index.d.mts",
|
|
31
27
|
"files": [
|
|
32
28
|
"dist"
|
|
33
29
|
],
|
|
34
30
|
"dependencies": {
|
|
35
|
-
"@unocss/
|
|
36
|
-
"@unocss/
|
|
31
|
+
"@unocss/rule-utils": "66.6.1",
|
|
32
|
+
"@unocss/core": "66.6.1"
|
|
37
33
|
},
|
|
38
34
|
"scripts": {
|
|
39
35
|
"build": "tsdown",
|