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.modern.js
CHANGED
@@ -1900,8 +1900,6 @@ var TokenField = function TokenField(_ref) {
|
|
1900
1900
|
value = _useState[0],
|
1901
1901
|
setValue = _useState[1];
|
1902
1902
|
|
1903
|
-
useState(false);
|
1904
|
-
|
1905
1903
|
function remove(index) {
|
1906
1904
|
var next = tokens.slice();
|
1907
1905
|
next.splice(index, 1);
|
@@ -1914,7 +1912,7 @@ var TokenField = function TokenField(_ref) {
|
|
1914
1912
|
}
|
1915
1913
|
|
1916
1914
|
function changeDropDown(fid, value) {
|
1917
|
-
var next = tokens.concat(value);
|
1915
|
+
var next = Array.isArray(tokens) ? tokens.concat(value) : [value];
|
1918
1916
|
if (onChange) onChange(id, next);
|
1919
1917
|
setValue('');
|
1920
1918
|
}
|
@@ -3459,7 +3457,8 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3459
3457
|
accept = _ref.accept,
|
3460
3458
|
onSuccess = _ref.onSuccess,
|
3461
3459
|
onComplete = _ref.onComplete,
|
3462
|
-
onClose = _ref.onClose
|
3460
|
+
onClose = _ref.onClose,
|
3461
|
+
children = _ref.children;
|
3463
3462
|
var site = useContext(SiteContext);
|
3464
3463
|
|
3465
3464
|
function success(file, message) {
|
@@ -3497,7 +3496,7 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3497
3496
|
target: target,
|
3498
3497
|
onSuccess: success,
|
3499
3498
|
onComplete: complete
|
3500
|
-
}));
|
3499
|
+
}), children);
|
3501
3500
|
};
|
3502
3501
|
|
3503
3502
|
/**
|
@@ -4096,7 +4095,6 @@ var StringEditor = function StringEditor(_ref6) {
|
|
4096
4095
|
Editor = field.Editor;
|
4097
4096
|
|
4098
4097
|
function change(id, value) {
|
4099
|
-
console.log(id, value);
|
4100
4098
|
if (onChange) onChange(id, value);
|
4101
4099
|
}
|
4102
4100
|
|