@pushwoosh/dumb-components 1.0.53 → 1.0.54

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.
@@ -149,8 +149,8 @@ export function content2string(state) {
149
149
  export function validateContent(value) {
150
150
  for (const el of value) {
151
151
  if (isElement(el)) {
152
- if (el.type === 'dc') {
153
- return !!el.dc.tagName;
152
+ if (el.type === 'dc' && !el.dc.tagName) {
153
+ return false;
154
154
  }
155
155
  if (!validateContent(el.children)) {
156
156
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",