@measured/puck-plugin-heading-analyzer 0.12.1-canary.15284aa → 0.12.1-canary.17bd61c

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1098,7 +1098,11 @@ var getClassNameFactory = (rootClass, styles, { baseClass = "" } = {}) => (optio
1098
1098
  modifiers = options;
1099
1099
  }
1100
1100
  if (descendant) {
1101
- return baseClass + styles[`${rootClass}-${descendant}`] || "";
1101
+ const style = styles[`${rootClass}-${descendant}`];
1102
+ if (style) {
1103
+ return baseClass + styles[`${rootClass}-${descendant}`] || "";
1104
+ }
1105
+ return "";
1102
1106
  } else if (modifiers) {
1103
1107
  const prefixedModifiers = {};
1104
1108
  for (let modifier in modifiers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.12.1-canary.15284aa",
3
+ "version": "0.12.1-canary.17bd61c",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "devDependencies": {
17
- "@measured/puck": "^0.12.1-canary.15284aa",
17
+ "@measured/puck": "^0.12.1-canary.17bd61c",
18
18
  "@types/react": "^18.2.0",
19
19
  "@types/react-dom": "^18.2.0",
20
20
  "eslint": "^7.32.0",