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.
@@ -3754,7 +3754,6 @@ var SiteHeader = function SiteHeader(props) {
3754
3754
 
3755
3755
  var SiteToolBar = function SiteToolBar(_ref4) {
3756
3756
  var children = _ref4.children;
3757
- useContext(SiteContext);
3758
3757
  return /*#__PURE__*/React.createElement("nav", null, children);
3759
3758
  };
3760
3759
  /**
@@ -5797,6 +5796,7 @@ var CollectionPage = function CollectionPage(props) {
5797
5796
  sorter = props.sorter,
5798
5797
  namer = props.namer,
5799
5798
  editor = props.editor,
5799
+ editorActions = props.editorActions,
5800
5800
  footer = props.footer,
5801
5801
  children = props.children;
5802
5802
  var context = CollectionContext(url, field, host, page, fetching, versioning);
@@ -5892,7 +5892,8 @@ var CollectionPage = function CollectionPage(props) {
5892
5892
  canDelete: canDelete,
5893
5893
  onReload: reloadSelection,
5894
5894
  patch: patch,
5895
- onChange: onChange
5895
+ onChange: onChange,
5896
+ actions: editorActions
5896
5897
  }), children ? /*#__PURE__*/React.createElement("article", null, children) : null, /*#__PURE__*/React.createElement("footer", null, footer)));
5897
5898
  };
5898
5899
  var CollectionFilters = function CollectionFilters(props) {
@@ -6270,7 +6271,8 @@ var CollectionEditor = function CollectionEditor(props) {
6270
6271
  onReload = props.onReload,
6271
6272
  onChange = props.onChange,
6272
6273
  _props$patch2 = props.patch,
6273
- patch = _props$patch2 === void 0 ? false : _props$patch2;
6274
+ patch = _props$patch2 === void 0 ? false : _props$patch2,
6275
+ actions = props.actions;
6274
6276
  var timer = useRef(null);
6275
6277
 
6276
6278
  var _useState5 = useState(selected),
@@ -6278,6 +6280,7 @@ var CollectionEditor = function CollectionEditor(props) {
6278
6280
  setForm = _useState5[1];
6279
6281
 
6280
6282
  useEffect(function () {
6283
+ console.log(selected);
6281
6284
  setForm(selected);
6282
6285
  }, [selected]);
6283
6286
  useEffect(function () {
@@ -6348,7 +6351,7 @@ var CollectionEditor = function CollectionEditor(props) {
6348
6351
  raised: true,
6349
6352
  disabled: !canSave(),
6350
6353
  action: save
6351
- })), renderEditor()) : null;
6354
+ }), actions ? actions : null), renderEditor()) : null;
6352
6355
  };
6353
6356
  /**
6354
6357
  * Collection Context