@pikacss/plugin-typography 0.0.61 → 0.0.62
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 +5 -5
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -389,16 +389,16 @@ function registerTypographyShortcuts(engine) {
|
|
|
389
389
|
* ```
|
|
390
390
|
*/
|
|
391
391
|
function typography() {
|
|
392
|
-
let typographyConfig = {};
|
|
393
392
|
return defineEnginePlugin({
|
|
394
393
|
name: "typography",
|
|
395
|
-
|
|
396
|
-
|
|
394
|
+
createState: () => ({ typographyConfig: {} }),
|
|
395
|
+
configureRawConfig: (config, context) => {
|
|
396
|
+
if (config.typography) context.state.typographyConfig = config.typography;
|
|
397
397
|
},
|
|
398
|
-
configureEngine: async (engine) => {
|
|
398
|
+
configureEngine: async (engine, context) => {
|
|
399
399
|
engine.variables.add({
|
|
400
400
|
...typographyVariables,
|
|
401
|
-
...typographyConfig.variables
|
|
401
|
+
...context.state.typographyConfig.variables
|
|
402
402
|
});
|
|
403
403
|
registerTypographyShortcuts(engine);
|
|
404
404
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.62",
|
|
8
8
|
"author": "DevilTea <ch19980814@gmail.com>",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"homepage": "https://pikacss.github.io",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"node": ">=22"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@pikacss/core": "0.0.
|
|
42
|
+
"@pikacss/core": "0.0.62"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@pikacss/core": "0.0.
|
|
45
|
+
"@pikacss/core": "0.0.62"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsdown",
|