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 +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +7 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +5 -3
- package/src/site/site.js +0 -2
package/dist/index.umd.js
CHANGED
@@ -3756,7 +3756,6 @@
|
|
3756
3756
|
|
3757
3757
|
var SiteToolBar = function SiteToolBar(_ref4) {
|
3758
3758
|
var children = _ref4.children;
|
3759
|
-
React.useContext(SiteContext);
|
3760
3759
|
return /*#__PURE__*/React__default["default"].createElement("nav", null, children);
|
3761
3760
|
};
|
3762
3761
|
/**
|
@@ -5799,6 +5798,7 @@
|
|
5799
5798
|
sorter = props.sorter,
|
5800
5799
|
namer = props.namer,
|
5801
5800
|
editor = props.editor,
|
5801
|
+
editorActions = props.editorActions,
|
5802
5802
|
footer = props.footer,
|
5803
5803
|
children = props.children;
|
5804
5804
|
var context = CollectionContext(url, field, host, page, fetching, versioning);
|
@@ -5894,7 +5894,8 @@
|
|
5894
5894
|
canDelete: canDelete,
|
5895
5895
|
onReload: reloadSelection,
|
5896
5896
|
patch: patch,
|
5897
|
-
onChange: onChange
|
5897
|
+
onChange: onChange,
|
5898
|
+
actions: editorActions
|
5898
5899
|
}), children ? /*#__PURE__*/React__default["default"].createElement("article", null, children) : null, /*#__PURE__*/React__default["default"].createElement("footer", null, footer)));
|
5899
5900
|
};
|
5900
5901
|
var CollectionFilters = function CollectionFilters(props) {
|
@@ -6272,7 +6273,8 @@
|
|
6272
6273
|
onReload = props.onReload,
|
6273
6274
|
onChange = props.onChange,
|
6274
6275
|
_props$patch2 = props.patch,
|
6275
|
-
patch = _props$patch2 === void 0 ? false : _props$patch2
|
6276
|
+
patch = _props$patch2 === void 0 ? false : _props$patch2,
|
6277
|
+
actions = props.actions;
|
6276
6278
|
var timer = React.useRef(null);
|
6277
6279
|
|
6278
6280
|
var _useState5 = React.useState(selected),
|
@@ -6280,6 +6282,7 @@
|
|
6280
6282
|
setForm = _useState5[1];
|
6281
6283
|
|
6282
6284
|
React.useEffect(function () {
|
6285
|
+
console.log(selected);
|
6283
6286
|
setForm(selected);
|
6284
6287
|
}, [selected]);
|
6285
6288
|
React.useEffect(function () {
|
@@ -6350,7 +6353,7 @@
|
|
6350
6353
|
raised: true,
|
6351
6354
|
disabled: !canSave(),
|
6352
6355
|
action: save
|
6353
|
-
})), renderEditor()) : null;
|
6356
|
+
}), actions ? actions : null), renderEditor()) : null;
|
6354
6357
|
};
|
6355
6358
|
/**
|
6356
6359
|
* Collection Context
|