Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
element: { ...element, elements: element.elements.map(id => getElement(state, id)) }
};
(state, props) => ({
value: get(getElement(state, props.elementId), "data.text")
}),
null,
export default connect((state, props) => ({
element: getElement(state, props.elementId)
}))(TypeFormEmbed);
(state, props) => ({
element: getElement(state, props.elementId)
}),
{ updateElement }
(state, { elementId }) => {
const element = getElement(state, elementId);
const { image = {}, settings = {} } = element.data;
return {
element: { id: element.id, type: element.type, path: element.path },
image,
horizontalAlign: settings.horizontalAlign || "center"
};
},
{ updateElement },
element: { ...element, elements: element.elements.map(id => getElement(state, id)) }
};
(state, props) => {
return {
...getElementProps(state, props),
element: getElement(state, props.id)
};
},
{ dragStart, dragEnd, activateElement, highlightElement },
(state, props) => ({ element: getElement(state, props.elementId) }),
{ updateElement, resizeStart, resizeStop }
(state, props) => ({
element: getElement(state, props.id)
}),
{ dropElement },
(state, props) => ({ element: getElement(state, props.elementId) }),
{ updateElement }