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 CHANGED
@@ -1908,8 +1908,6 @@ var TokenField = function TokenField(_ref) {
1908
1908
  value = _useState[0],
1909
1909
  setValue = _useState[1];
1910
1910
 
1911
- React.useState(false);
1912
-
1913
1911
  function remove(index) {
1914
1912
  var next = tokens.slice();
1915
1913
  next.splice(index, 1);
@@ -1922,7 +1920,7 @@ var TokenField = function TokenField(_ref) {
1922
1920
  }
1923
1921
 
1924
1922
  function changeDropDown(fid, value) {
1925
- var next = tokens.concat(value);
1923
+ var next = Array.isArray(tokens) ? tokens.concat(value) : [value];
1926
1924
  if (onChange) onChange(id, next);
1927
1925
  setValue('');
1928
1926
  }
@@ -3467,7 +3465,8 @@ var UploadDialog = function UploadDialog(_ref) {
3467
3465
  accept = _ref.accept,
3468
3466
  onSuccess = _ref.onSuccess,
3469
3467
  onComplete = _ref.onComplete,
3470
- onClose = _ref.onClose;
3468
+ onClose = _ref.onClose,
3469
+ children = _ref.children;
3471
3470
  var site = React.useContext(SiteContext);
3472
3471
 
3473
3472
  function success(file, message) {
@@ -3505,7 +3504,7 @@ var UploadDialog = function UploadDialog(_ref) {
3505
3504
  target: target,
3506
3505
  onSuccess: success,
3507
3506
  onComplete: complete
3508
- }));
3507
+ }), children);
3509
3508
  };
3510
3509
 
3511
3510
  /**
@@ -4104,7 +4103,6 @@ var StringEditor = function StringEditor(_ref6) {
4104
4103
  Editor = field.Editor;
4105
4104
 
4106
4105
  function change(id, value) {
4107
- console.log(id, value);
4108
4106
  if (onChange) onChange(id, value);
4109
4107
  }
4110
4108