@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/README.md
CHANGED
|
@@ -36,11 +36,11 @@ yarn add @arbisoft/react-design-tool
|
|
|
36
36
|
#### ⚠️ Important: Installation Guide for React 18 and Below
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
npm install @arbisoft/react-design-tool@1.0.
|
|
39
|
+
npm install @arbisoft/react-design-tool@1.0.14
|
|
40
40
|
```
|
|
41
41
|
OR
|
|
42
42
|
```bash
|
|
43
|
-
yarn add @arbisoft/react-design-tool@1.0.
|
|
43
|
+
yarn add @arbisoft/react-design-tool@1.0.14
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
## 🚀 Quick Start
|
package/dist/cjs/index.js
CHANGED
|
@@ -608,7 +608,6 @@ var _templateObject$t;
|
|
|
608
608
|
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);
|
|
609
609
|
|
|
610
610
|
var propTypes$y = {
|
|
611
|
-
key: PropTypes.string,
|
|
612
611
|
isSelected: PropTypes.bool,
|
|
613
612
|
onClick: PropTypes.func,
|
|
614
613
|
icon: PropTypes.node,
|
|
@@ -643,9 +642,10 @@ var SideBarPill = function SideBarPill(_ref) {
|
|
|
643
642
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
644
643
|
icon = _ref.icon,
|
|
645
644
|
text = _ref.text,
|
|
646
|
-
pillActiveColor = _ref.pillActiveColor
|
|
645
|
+
pillActiveColor = _ref.pillActiveColor,
|
|
646
|
+
id = _ref.id;
|
|
647
647
|
return /*#__PURE__*/React.createElement(SideBarItem, {
|
|
648
|
-
key:
|
|
648
|
+
key: id,
|
|
649
649
|
isSelected: isSelected,
|
|
650
650
|
onClick: function onClick() {
|
|
651
651
|
return _onClick();
|
|
@@ -2213,7 +2213,7 @@ var propTypes$s = {
|
|
|
2213
2213
|
paddingRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2214
2214
|
list: PropTypes.array,
|
|
2215
2215
|
onSelect: PropTypes.func,
|
|
2216
|
-
fontPicker: PropTypes.
|
|
2216
|
+
fontPicker: PropTypes.any,
|
|
2217
2217
|
tooltip: PropTypes.string
|
|
2218
2218
|
};
|
|
2219
2219
|
|
|
@@ -4170,7 +4170,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4170
4170
|
onClick = _ref.onClick,
|
|
4171
4171
|
_onDragEnd = _ref.onDragEnd,
|
|
4172
4172
|
onTransformEnd = _ref.onTransformEnd,
|
|
4173
|
-
|
|
4173
|
+
id = _ref.id,
|
|
4174
4174
|
onTransform = _ref.onTransform,
|
|
4175
4175
|
onChangeTextContent = _ref.onChangeTextContent,
|
|
4176
4176
|
onChangeTextProperty = _ref.onChangeTextProperty,
|
|
@@ -4244,7 +4244,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4244
4244
|
if (!isFontLoaded) {
|
|
4245
4245
|
return /*#__PURE__*/React.createElement(reactKonva.Text, _extends({
|
|
4246
4246
|
ref: textRef,
|
|
4247
|
-
key:
|
|
4247
|
+
key: id
|
|
4248
4248
|
}, element, {
|
|
4249
4249
|
id: element.id,
|
|
4250
4250
|
fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
|
|
@@ -4258,7 +4258,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(reactKonva.Text, _extends({
|
|
4260
4260
|
ref: textRef,
|
|
4261
|
-
key:
|
|
4261
|
+
key: id
|
|
4262
4262
|
}, element, {
|
|
4263
4263
|
id: element.id,
|
|
4264
4264
|
fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
|
|
@@ -4925,6 +4925,7 @@ var Editor = function Editor(_ref) {
|
|
|
4925
4925
|
case elementTypes.text:
|
|
4926
4926
|
return /*#__PURE__*/React.createElement(EditableText, {
|
|
4927
4927
|
key: el.id,
|
|
4928
|
+
id: el.id,
|
|
4928
4929
|
element: el,
|
|
4929
4930
|
onClick: function onClick() {
|
|
4930
4931
|
return handleSelect(el);
|