@vojtaholik/static-kit-core 2.1.0 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vojtaholik/static-kit-core",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -14,7 +14,7 @@ import type { SchemaAddress } from "./schema-address.ts";
14
14
  * }
15
15
  * }
16
16
  */
17
- export interface BlockPropsMap {}
17
+ export interface BlockPropsMap { }
18
18
 
19
19
  type TypedBlockInstance = {
20
20
  [K in keyof BlockPropsMap & string]: {
@@ -120,9 +120,10 @@ export async function renderPage(
120
120
  // Update <html> attributes
121
121
  if (node.nodeName === "html") {
122
122
  setAttr(node, "data-page-id", page.id);
123
- // if (page.density) {
124
- // setAttr(node, "data-density", page.density);
125
- // }
123
+ }
124
+
125
+ if (node.nodeName === 'main' && page.density) {
126
+ setAttr(node, "data-density", page.density);
126
127
  }
127
128
 
128
129
  // Process regions - inject a marker that we'll replace after serialization