@cloudcannon/react-connector
Advanced tools
Comparing version 1.0.8 to 2.0.0
@@ -13,3 +13,3 @@ const React = require('react'); | ||
super(props); | ||
this.state = {} | ||
this.state = props.page?.data || {}; | ||
this.onLoadEventListener = (e) => { | ||
@@ -55,4 +55,6 @@ this.onCloudCannonLoad(e.detail.CloudCannon); | ||
page: { | ||
...processProps(this.props.page), | ||
...this.state, | ||
...this.props.page, | ||
data: { | ||
...processProps(this.state) | ||
}, | ||
} | ||
@@ -59,0 +61,0 @@ } |
{ | ||
"name": "@cloudcannon/react-connector", | ||
"version": "1.0.8", | ||
"version": "2.0.0", | ||
"description": "A React connector for activating live visual editing in CloudCannon", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4814
55
1