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.modern.js
CHANGED
@@ -151,11 +151,16 @@ var Icon = function Icon(_ref) {
|
|
151
151
|
size = _ref$size === void 0 ? "normal" : _ref$size,
|
152
152
|
_ref$clickable = _ref.clickable,
|
153
153
|
clickable = _ref$clickable === void 0 ? false : _ref$clickable,
|
154
|
-
action = _ref.action
|
154
|
+
action = _ref.action,
|
155
|
+
_ref$eventPropagation = _ref.eventPropagation,
|
156
|
+
eventPropagation = _ref$eventPropagation === void 0 ? false : _ref$eventPropagation;
|
155
157
|
|
156
158
|
function click(event) {
|
157
|
-
|
158
|
-
|
159
|
+
if (!eventPropagation) {
|
160
|
+
event.stopPropagation();
|
161
|
+
event.preventDefault();
|
162
|
+
}
|
163
|
+
|
159
164
|
if (action) action(event);
|
160
165
|
}
|
161
166
|
|
@@ -2730,8 +2735,8 @@ var UploadIcon = function UploadIcon(_ref) {
|
|
2730
2735
|
var iconElement = useRef();
|
2731
2736
|
useEffect(function () {
|
2732
2737
|
if (resumable && iconElement.current) {
|
2738
|
+
console.log('UploadIcon.effect', resumable, iconElement.current);
|
2733
2739
|
resumable.assignBrowse(iconElement.current);
|
2734
|
-
console.log('uploadicon');
|
2735
2740
|
}
|
2736
2741
|
}, [iconElement]);
|
2737
2742
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -2739,7 +2744,8 @@ var UploadIcon = function UploadIcon(_ref) {
|
|
2739
2744
|
ref: iconElement
|
2740
2745
|
}, /*#__PURE__*/React.createElement(Icon, {
|
2741
2746
|
icon: icon,
|
2742
|
-
clickable: true
|
2747
|
+
clickable: true,
|
2748
|
+
eventPropagation: true
|
2743
2749
|
}));
|
2744
2750
|
};
|
2745
2751
|
|
@@ -3560,7 +3566,8 @@ var ContentEditor = function ContentEditor(_ref) {
|
|
3560
3566
|
key: field.id,
|
3561
3567
|
field: field,
|
3562
3568
|
onChange: change,
|
3563
|
-
outlined: true
|
3569
|
+
outlined: true,
|
3570
|
+
content: content
|
3564
3571
|
});
|
3565
3572
|
}))) : null;
|
3566
3573
|
}));
|