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.
@@ -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