ywana-core8 0.0.283 → 0.0.284

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.
@@ -4480,6 +4480,7 @@ var CollectionPage = function CollectionPage(props) {
4480
4480
  name = _props$name === void 0 ? "Collection 1" : _props$name,
4481
4481
  schema = props.schema,
4482
4482
  url = props.url,
4483
+ host = props.host,
4483
4484
  groupBy = props.groupBy,
4484
4485
  editor = props.editor,
4485
4486
  field = props.field,
@@ -4495,7 +4496,7 @@ var CollectionPage = function CollectionPage(props) {
4495
4496
  pageContext = _useContext[0],
4496
4497
  setPageContext = _useContext[1];
4497
4498
 
4498
- var context = CollectionContext(url, field);
4499
+ var context = CollectionContext(url, field, host);
4499
4500
  useEffect(function () {
4500
4501
  try {
4501
4502
  return Promise.resolve(context.load()).then(function () {
@@ -4819,7 +4820,7 @@ var CollectionEditor = function CollectionEditor(props) {
4819
4820
 
4820
4821
 
4821
4822
  var CollectionContext = function CollectionContext(url, field, host) {
4822
- var API = CollectionAPI(url);
4823
+ var API = CollectionAPI(url, host);
4823
4824
  return {
4824
4825
  all: [],
4825
4826
  selected: null,
@@ -4940,7 +4941,7 @@ var CollectionContext = function CollectionContext(url, field, host) {
4940
4941
  * Collection API
4941
4942
  */
4942
4943
 
4943
- var CollectionAPI = function CollectionAPI(url) {
4944
+ var CollectionAPI = function CollectionAPI(url, host) {
4944
4945
  var http = HTTPClient(host || window.API || process.env.REACT_APP_API, Session);
4945
4946
  return {
4946
4947
  all: function all(filters) {