@contentful/experiences-design 0.7.10 → 0.8.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.8.0 (2026-08-28)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated core to 0.8.0
6
+
7
+ ## 0.7.11 (2026-08-28)
8
+
9
+ ### 🧱 Updated Dependencies
10
+
11
+ - Updated core to 0.7.11
12
+
1
13
  ## 0.7.10 (2026-08-27)
2
14
 
3
15
  ### 🧱 Updated Dependencies
package/README.md CHANGED
@@ -16,6 +16,8 @@ Pure, framework-agnostic viewport math for resolving Contentful's `DesignPropVal
16
16
 
17
17
  ## `toCss` and the CSS-property whitelist
18
18
 
19
+ `toCss` is a companion to the design-hook escape hatch, not part of the recommended styling path. Components should style from their auto-filled design props, where they read the keys they declared and there is nothing to filter — see [Styling components](../../README.md#styling-components). `toCss` earns its place when you're holding a whole resolved record from `useDesignValues()` / `getDesignValues()` / `injectDesignValues()` and need the CSS-shaped subset of it.
20
+
19
21
  The adapters' `toCss` helper keeps only keys whose normalized form is in `CSS_PROPERTIES` and **drops everything else** — that's how semantic design values (`variant`, `as`, `ratio`, …) stay out of a style object. The trade-off is that a genuine CSS property missing from the set is dropped silently.
20
22
 
21
23
  If you hit that:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-design",
3
- "version": "0.7.10",
3
+ "version": "0.8.0",
4
4
  "description": "Viewport math and design-property resolution utilities for Contentful Experiences",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -30,6 +30,6 @@
30
30
  "directory": "packages/design"
31
31
  },
32
32
  "dependencies": {
33
- "@contentful/experiences-sdk-core": "0.7.10"
33
+ "@contentful/experiences-sdk-core": "0.8.0"
34
34
  }
35
35
  }