ywana-core8 0.0.419 → 0.0.422
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 +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +0 -1
- package/src/domain/ContentEditor.test.js +0 -1
- package/src/domain/TablePage.js +13 -6
- package/src/html/table.js +0 -2
- package/src/html/table.test.js +6 -1
- package/src/html/textfield.js +0 -1
- package/src/html/textfield.test.js +7 -0
- package/src/html/tokenfield.js +1 -2
- package/src/widgets/upload/UploadDialog.js +2 -1
package/dist/index.umd.js
CHANGED
@@ -1903,8 +1903,6 @@
|
|
1903
1903
|
value = _useState[0],
|
1904
1904
|
setValue = _useState[1];
|
1905
1905
|
|
1906
|
-
React.useState(false);
|
1907
|
-
|
1908
1906
|
function remove(index) {
|
1909
1907
|
var next = tokens.slice();
|
1910
1908
|
next.splice(index, 1);
|
@@ -1917,7 +1915,7 @@
|
|
1917
1915
|
}
|
1918
1916
|
|
1919
1917
|
function changeDropDown(fid, value) {
|
1920
|
-
var next = tokens.concat(value);
|
1918
|
+
var next = Array.isArray(tokens) ? tokens.concat(value) : [value];
|
1921
1919
|
if (onChange) onChange(id, next);
|
1922
1920
|
setValue('');
|
1923
1921
|
}
|
@@ -3462,7 +3460,8 @@
|
|
3462
3460
|
accept = _ref.accept,
|
3463
3461
|
onSuccess = _ref.onSuccess,
|
3464
3462
|
onComplete = _ref.onComplete,
|
3465
|
-
onClose = _ref.onClose
|
3463
|
+
onClose = _ref.onClose,
|
3464
|
+
children = _ref.children;
|
3466
3465
|
var site = React.useContext(SiteContext);
|
3467
3466
|
|
3468
3467
|
function success(file, message) {
|
@@ -3500,7 +3499,7 @@
|
|
3500
3499
|
target: target,
|
3501
3500
|
onSuccess: success,
|
3502
3501
|
onComplete: complete
|
3503
|
-
}));
|
3502
|
+
}), children);
|
3504
3503
|
};
|
3505
3504
|
|
3506
3505
|
/**
|
@@ -4099,7 +4098,6 @@
|
|
4099
4098
|
Editor = field.Editor;
|
4100
4099
|
|
4101
4100
|
function change(id, value) {
|
4102
|
-
console.log(id, value);
|
4103
4101
|
if (onChange) onChange(id, value);
|
4104
4102
|
}
|
4105
4103
|
|