ywana-core8 0.0.324 → 0.0.327
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/dist/index.cjs +13 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +13 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +13 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +1 -1
- package/src/html/icon.js +5 -3
- package/src/widgets/upload/UploadArea.js +2 -2
package/dist/index.cjs
CHANGED
@@ -159,11 +159,16 @@ var Icon = function Icon(_ref) {
|
|
159
159
|
size = _ref$size === void 0 ? "normal" : _ref$size,
|
160
160
|
_ref$clickable = _ref.clickable,
|
161
161
|
clickable = _ref$clickable === void 0 ? false : _ref$clickable,
|
162
|
-
action = _ref.action
|
162
|
+
action = _ref.action,
|
163
|
+
_ref$eventPropagation = _ref.eventPropagation,
|
164
|
+
eventPropagation = _ref$eventPropagation === void 0 ? false : _ref$eventPropagation;
|
163
165
|
|
164
166
|
function click(event) {
|
165
|
-
|
166
|
-
|
167
|
+
if (!eventPropagation) {
|
168
|
+
event.stopPropagation();
|
169
|
+
event.preventDefault();
|
170
|
+
}
|
171
|
+
|
167
172
|
if (action) action(event);
|
168
173
|
}
|
169
174
|
|
@@ -2738,8 +2743,8 @@ var UploadIcon = function UploadIcon(_ref) {
|
|
2738
2743
|
var iconElement = React.useRef();
|
2739
2744
|
React.useEffect(function () {
|
2740
2745
|
if (resumable && iconElement.current) {
|
2746
|
+
console.log('UploadIcon.effect', resumable, iconElement.current);
|
2741
2747
|
resumable.assignBrowse(iconElement.current);
|
2742
|
-
console.log('uploadicon');
|
2743
2748
|
}
|
2744
2749
|
}, [iconElement]);
|
2745
2750
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
@@ -2747,7 +2752,8 @@ var UploadIcon = function UploadIcon(_ref) {
|
|
2747
2752
|
ref: iconElement
|
2748
2753
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
2749
2754
|
icon: icon,
|
2750
|
-
clickable: true
|
2755
|
+
clickable: true,
|
2756
|
+
eventPropagation: true
|
2751
2757
|
}));
|
2752
2758
|
};
|
2753
2759
|
|
@@ -3568,7 +3574,8 @@ var ContentEditor = function ContentEditor(_ref) {
|
|
3568
3574
|
key: field.id,
|
3569
3575
|
field: field,
|
3570
3576
|
onChange: change,
|
3571
|
-
outlined: true
|
3577
|
+
outlined: true,
|
3578
|
+
content: content
|
3572
3579
|
});
|
3573
3580
|
}))) : null;
|
3574
3581
|
}));
|