@master/css-server 2.0.0-rc.74 → 2.0.0-rc.75
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 +1 -1
- package/dist/render-css.js +1 -1
- package/dist/render.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</picture>
|
|
11
11
|
</a>
|
|
12
12
|
</p>
|
|
13
|
-
<p align="center">
|
|
13
|
+
<p align="center">Server-side HTML renderer for Master CSS</p>
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<a aria-label="GitHub release (latest by date including pre-releases)" href="https://github.com/master-co/css/releases">
|
package/dist/render-css.js
CHANGED
|
@@ -13,7 +13,7 @@ function renderCSS(html, manifest) {
|
|
|
13
13
|
const { classes } = parseHTML(html);
|
|
14
14
|
if (!classes.length) return;
|
|
15
15
|
const css = create_server_css_default(manifest || getDefaultManifest());
|
|
16
|
-
classes.forEach((eachClass) => css.
|
|
16
|
+
classes.forEach((eachClass) => css.ensureClassRules(eachClass));
|
|
17
17
|
return css;
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
package/dist/render.js
CHANGED
|
@@ -113,7 +113,7 @@ function render(html, manifest, options = {}) {
|
|
|
113
113
|
styleElement
|
|
114
114
|
};
|
|
115
115
|
const css = create_server_css_default(manifest || getDefaultManifest());
|
|
116
|
-
classes.forEach((eachClass) => css.
|
|
116
|
+
classes.forEach((eachClass) => css.ensureClassRules(eachClass));
|
|
117
117
|
const hydrationManifest = options.hydrationManifest === false ? void 0 : createHydrationManifest(css);
|
|
118
118
|
if (!css.text) {
|
|
119
119
|
if ((options.hydrationManifest === "inject" || externalHydrationManifestOption) && styleElement) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@master/css-server",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Server-side HTML renderer for Master CSS",
|
|
6
6
|
"author": "Aoyue Design LLC.",
|
|
7
7
|
"funding": "https://rc.css.master.co/sponsor",
|
|
8
8
|
"homepage": "https://css.master.co",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"dom-serializer": "^3.1.1",
|
|
48
48
|
"domhandler": "^6.0.1",
|
|
49
49
|
"htmlparser2": "^12.0.0",
|
|
50
|
-
"@master/css": "^2.0.0-rc.
|
|
51
|
-
"@master/css-
|
|
52
|
-
"@master/css-
|
|
53
|
-
"@master/css-
|
|
50
|
+
"@master/css": "^2.0.0-rc.75",
|
|
51
|
+
"@master/css-validator": "^2.0.0-rc.75",
|
|
52
|
+
"@master/css-schema": "^2.0.0-rc.75",
|
|
53
|
+
"@master/css-preset": "^2.0.0-rc.75"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@master/css-compiler": "^2.0.0-rc.
|
|
56
|
+
"@master/css-compiler": "^2.0.0-rc.75"
|
|
57
57
|
},
|
|
58
|
-
"version": "2.0.0-rc.
|
|
58
|
+
"version": "2.0.0-rc.75",
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsdown --config ../../shared/tsdown-package.config.ts && node scripts/restore-json-import-attributes.js",
|
|
61
61
|
"dev": "tsdown --config ../../shared/tsdown-package.config.ts --watch",
|