@arbisoft/react-design-tool 1.0.12 → 1.0.14
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.
- package/README.md +2 -2
- package/dist/cjs/index.js +8 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -7
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -606,7 +606,6 @@ var _templateObject$t;
|
|
|
606
606
|
var SideBarWrapper$1 = styled.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteral(["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n width: 100px;\n overflow: auto;\n"])), theme.color.white);
|
|
607
607
|
|
|
608
608
|
var propTypes$y = {
|
|
609
|
-
key: PropTypes.string,
|
|
610
609
|
isSelected: PropTypes.bool,
|
|
611
610
|
onClick: PropTypes.func,
|
|
612
611
|
icon: PropTypes.node,
|
|
@@ -641,9 +640,10 @@ var SideBarPill = function SideBarPill(_ref) {
|
|
|
641
640
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
642
641
|
icon = _ref.icon,
|
|
643
642
|
text = _ref.text,
|
|
644
|
-
pillActiveColor = _ref.pillActiveColor
|
|
643
|
+
pillActiveColor = _ref.pillActiveColor,
|
|
644
|
+
id = _ref.id;
|
|
645
645
|
return /*#__PURE__*/React.createElement(SideBarItem, {
|
|
646
|
-
key:
|
|
646
|
+
key: id,
|
|
647
647
|
isSelected: isSelected,
|
|
648
648
|
onClick: function onClick() {
|
|
649
649
|
return _onClick();
|
|
@@ -2211,7 +2211,7 @@ var propTypes$s = {
|
|
|
2211
2211
|
paddingRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2212
2212
|
list: PropTypes.array,
|
|
2213
2213
|
onSelect: PropTypes.func,
|
|
2214
|
-
fontPicker: PropTypes.
|
|
2214
|
+
fontPicker: PropTypes.any,
|
|
2215
2215
|
tooltip: PropTypes.string
|
|
2216
2216
|
};
|
|
2217
2217
|
|
|
@@ -4168,7 +4168,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4168
4168
|
onClick = _ref.onClick,
|
|
4169
4169
|
_onDragEnd = _ref.onDragEnd,
|
|
4170
4170
|
onTransformEnd = _ref.onTransformEnd,
|
|
4171
|
-
|
|
4171
|
+
id = _ref.id,
|
|
4172
4172
|
onTransform = _ref.onTransform,
|
|
4173
4173
|
onChangeTextContent = _ref.onChangeTextContent,
|
|
4174
4174
|
onChangeTextProperty = _ref.onChangeTextProperty,
|
|
@@ -4242,7 +4242,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4242
4242
|
if (!isFontLoaded) {
|
|
4243
4243
|
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
4244
4244
|
ref: textRef,
|
|
4245
|
-
key:
|
|
4245
|
+
key: id
|
|
4246
4246
|
}, element, {
|
|
4247
4247
|
id: element.id,
|
|
4248
4248
|
fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
|
|
@@ -4256,7 +4256,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4256
4256
|
}
|
|
4257
4257
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, _extends({
|
|
4258
4258
|
ref: textRef,
|
|
4259
|
-
key:
|
|
4259
|
+
key: id
|
|
4260
4260
|
}, element, {
|
|
4261
4261
|
id: element.id,
|
|
4262
4262
|
fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
|
|
@@ -4923,6 +4923,7 @@ var Editor = function Editor(_ref) {
|
|
|
4923
4923
|
case elementTypes.text:
|
|
4924
4924
|
return /*#__PURE__*/React.createElement(EditableText, {
|
|
4925
4925
|
key: el.id,
|
|
4926
|
+
id: el.id,
|
|
4926
4927
|
element: el,
|
|
4927
4928
|
onClick: function onClick() {
|
|
4928
4929
|
return handleSelect(el);
|