@arbisoft/react-design-tool 1.0.13 → 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 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -6
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -640,9 +640,10 @@ var SideBarPill = function SideBarPill(_ref) {
|
|
|
640
640
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
641
641
|
icon = _ref.icon,
|
|
642
642
|
text = _ref.text,
|
|
643
|
-
pillActiveColor = _ref.pillActiveColor
|
|
643
|
+
pillActiveColor = _ref.pillActiveColor,
|
|
644
|
+
id = _ref.id;
|
|
644
645
|
return /*#__PURE__*/React.createElement(SideBarItem, {
|
|
645
|
-
key:
|
|
646
|
+
key: id,
|
|
646
647
|
isSelected: isSelected,
|
|
647
648
|
onClick: function onClick() {
|
|
648
649
|
return _onClick();
|
|
@@ -1877,7 +1878,7 @@ var SideBar = function SideBar(_ref) {
|
|
|
1877
1878
|
return null;
|
|
1878
1879
|
}
|
|
1879
1880
|
return /*#__PURE__*/React.createElement(SideBarPill, {
|
|
1880
|
-
key:
|
|
1881
|
+
key: item === null || item === void 0 ? void 0 : item.id,
|
|
1881
1882
|
id: item === null || item === void 0 ? void 0 : item.id,
|
|
1882
1883
|
isSelected: selectedSideBarItem === (item === null || item === void 0 ? void 0 : item.id),
|
|
1883
1884
|
onClick: function onClick() {
|
|
@@ -4167,7 +4168,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4167
4168
|
onClick = _ref.onClick,
|
|
4168
4169
|
_onDragEnd = _ref.onDragEnd,
|
|
4169
4170
|
onTransformEnd = _ref.onTransformEnd,
|
|
4170
|
-
|
|
4171
|
+
id = _ref.id,
|
|
4171
4172
|
onTransform = _ref.onTransform,
|
|
4172
4173
|
onChangeTextContent = _ref.onChangeTextContent,
|
|
4173
4174
|
onChangeTextProperty = _ref.onChangeTextProperty,
|
|
@@ -4241,7 +4242,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4241
4242
|
if (!isFontLoaded) {
|
|
4242
4243
|
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
4243
4244
|
ref: textRef,
|
|
4244
|
-
key:
|
|
4245
|
+
key: id
|
|
4245
4246
|
}, element, {
|
|
4246
4247
|
id: element.id,
|
|
4247
4248
|
fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
|
|
@@ -4255,7 +4256,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4255
4256
|
}
|
|
4256
4257
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, _extends({
|
|
4257
4258
|
ref: textRef,
|
|
4258
|
-
key:
|
|
4259
|
+
key: id
|
|
4259
4260
|
}, element, {
|
|
4260
4261
|
id: element.id,
|
|
4261
4262
|
fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
|
|
@@ -4922,6 +4923,7 @@ var Editor = function Editor(_ref) {
|
|
|
4922
4923
|
case elementTypes.text:
|
|
4923
4924
|
return /*#__PURE__*/React.createElement(EditableText, {
|
|
4924
4925
|
key: el.id,
|
|
4926
|
+
id: el.id,
|
|
4925
4927
|
element: el,
|
|
4926
4928
|
onClick: function onClick() {
|
|
4927
4929
|
return handleSelect(el);
|