@wordpress/global-styles-engine 1.7.1-next.v.202602241322.0 → 1.7.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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates CSS for preview contexts to display a specific state (hover, focus, etc.).
|
|
3
|
+
* Takes state-specific styles and generates CSS as if they were the default styles,
|
|
4
|
+
* allowing previews to show how a block will appear in that state.
|
|
5
|
+
*
|
|
6
|
+
* @param stateStyles - The styles for the specific state (e.g., hover styles)
|
|
7
|
+
* @param blockName - The block name (e.g., 'core/button')
|
|
8
|
+
* @return CSS string for the state preview
|
|
9
|
+
*/
|
|
10
|
+
export declare function generatePreviewStateStyles(stateStyles: any, blockName: string): string;
|
|
11
|
+
//# sourceMappingURL=preview-state-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-state-styles.d.ts","sourceRoot":"","sources":["../src/preview-state-styles.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACzC,WAAW,EAAE,GAAG,EAChB,SAAS,EAAE,MAAM,GACf,MAAM,CAwBR"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/global-styles-engine",
|
|
3
|
-
"version": "1.7.1
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Pure CSS generation engine for WordPress global styles.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"types": "build-types/index.d.ts",
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@wordpress/blocks": "^15.13.1
|
|
46
|
-
"@wordpress/data": "^10.40.1
|
|
47
|
-
"@wordpress/i18n": "^6.13.1
|
|
48
|
-
"@wordpress/style-engine": "^2.40.1
|
|
45
|
+
"@wordpress/blocks": "^15.13.1",
|
|
46
|
+
"@wordpress/data": "^10.40.1",
|
|
47
|
+
"@wordpress/i18n": "^6.13.1",
|
|
48
|
+
"@wordpress/style-engine": "^2.40.1",
|
|
49
49
|
"colord": "^2.9.2",
|
|
50
50
|
"deepmerge": "^4.3.0",
|
|
51
51
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "adb6623c9f32490cfc73c7ac7f122578c1f10c65"
|
|
63
63
|
}
|