ywana-core8 0.0.418 → 0.0.421
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 +6 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -7
- 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/html/table.js +0 -2
- package/src/html/table.test.js +6 -1
- package/src/html/tokenfield.js +4 -3
- 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
|
}
|
@@ -1936,9 +1934,10 @@ var TokenField = function TokenField(_ref) {
|
|
1936
1934
|
}
|
1937
1935
|
}
|
1938
1936
|
|
1937
|
+
var tks = Array.isArray(tokens) ? tokens : [];
|
1939
1938
|
return /*#__PURE__*/React.createElement("div", {
|
1940
1939
|
className: "tokenField"
|
1941
|
-
}, /*#__PURE__*/React.createElement("label", null, label),
|
1940
|
+
}, /*#__PURE__*/React.createElement("label", null, label), tks.map(function (text, index) {
|
1942
1941
|
return /*#__PURE__*/React.createElement(Token, {
|
1943
1942
|
text: text,
|
1944
1943
|
onDelete: function onDelete() {
|
@@ -3458,7 +3457,8 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3458
3457
|
accept = _ref.accept,
|
3459
3458
|
onSuccess = _ref.onSuccess,
|
3460
3459
|
onComplete = _ref.onComplete,
|
3461
|
-
onClose = _ref.onClose
|
3460
|
+
onClose = _ref.onClose,
|
3461
|
+
children = _ref.children;
|
3462
3462
|
var site = useContext(SiteContext);
|
3463
3463
|
|
3464
3464
|
function success(file, message) {
|
@@ -3496,7 +3496,7 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3496
3496
|
target: target,
|
3497
3497
|
onSuccess: success,
|
3498
3498
|
onComplete: complete
|
3499
|
-
}));
|
3499
|
+
}), children);
|
3500
3500
|
};
|
3501
3501
|
|
3502
3502
|
/**
|
@@ -4095,7 +4095,6 @@ var StringEditor = function StringEditor(_ref6) {
|
|
4095
4095
|
Editor = field.Editor;
|
4096
4096
|
|
4097
4097
|
function change(id, value) {
|
4098
|
-
console.log(id, value);
|
4099
4098
|
if (onChange) onChange(id, value);
|
4100
4099
|
}
|
4101
4100
|
|