ywana-core8 0.0.687 → 0.0.688

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
@@ -3762,7 +3762,6 @@ var SiteHeader = function SiteHeader(props) {
3762
3762
 
3763
3763
  var SiteToolBar = function SiteToolBar(_ref4) {
3764
3764
  var children = _ref4.children;
3765
- React.useContext(SiteContext);
3766
3765
  return /*#__PURE__*/React__default["default"].createElement("nav", null, children);
3767
3766
  };
3768
3767
  /**
@@ -5805,6 +5804,7 @@ var CollectionPage = function CollectionPage(props) {
5805
5804
  sorter = props.sorter,
5806
5805
  namer = props.namer,
5807
5806
  editor = props.editor,
5807
+ editorActions = props.editorActions,
5808
5808
  footer = props.footer,
5809
5809
  children = props.children;
5810
5810
  var context = CollectionContext(url, field, host, page, fetching, versioning);
@@ -5900,7 +5900,8 @@ var CollectionPage = function CollectionPage(props) {
5900
5900
  canDelete: canDelete,
5901
5901
  onReload: reloadSelection,
5902
5902
  patch: patch,
5903
- onChange: onChange
5903
+ onChange: onChange,
5904
+ actions: editorActions
5904
5905
  }), children ? /*#__PURE__*/React__default["default"].createElement("article", null, children) : null, /*#__PURE__*/React__default["default"].createElement("footer", null, footer)));
5905
5906
  };
5906
5907
  var CollectionFilters = function CollectionFilters(props) {
@@ -6278,7 +6279,8 @@ var CollectionEditor = function CollectionEditor(props) {
6278
6279
  onReload = props.onReload,
6279
6280
  onChange = props.onChange,
6280
6281
  _props$patch2 = props.patch,
6281
- patch = _props$patch2 === void 0 ? false : _props$patch2;
6282
+ patch = _props$patch2 === void 0 ? false : _props$patch2,
6283
+ actions = props.actions;
6282
6284
  var timer = React.useRef(null);
6283
6285
 
6284
6286
  var _useState5 = React.useState(selected),
@@ -6286,6 +6288,7 @@ var CollectionEditor = function CollectionEditor(props) {
6286
6288
  setForm = _useState5[1];
6287
6289
 
6288
6290
  React.useEffect(function () {
6291
+ console.log(selected);
6289
6292
  setForm(selected);
6290
6293
  }, [selected]);
6291
6294
  React.useEffect(function () {
@@ -6356,7 +6359,7 @@ var CollectionEditor = function CollectionEditor(props) {
6356
6359
  raised: true,
6357
6360
  disabled: !canSave(),
6358
6361
  action: save
6359
- })), renderEditor()) : null;
6362
+ }), actions ? actions : null), renderEditor()) : null;
6360
6363
  };
6361
6364
  /**
6362
6365
  * Collection Context