@measured/puck-plugin-heading-analyzer 0.12.1-canary.562985d → 0.12.1-canary.5e80a10

Sign up to get free protection for your applications and to get access to all the features.
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.562985d",
3
+ "version": "0.12.1-canary.5e80a10",
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.562985d",
17
+ "@measured/puck": "^0.12.1-canary.5e80a10",
18
18
  "@types/react": "^18.2.0",
19
19
  "@types/react-dom": "^18.2.0",
20
20
  "eslint": "^7.32.0",