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.
package/dist/index.umd.js CHANGED
@@ -4483,6 +4483,7 @@
4483
4483
  name = _props$name === void 0 ? "Collection 1" : _props$name,
4484
4484
  schema = props.schema,
4485
4485
  url = props.url,
4486
+ host = props.host,
4486
4487
  groupBy = props.groupBy,
4487
4488
  editor = props.editor,
4488
4489
  field = props.field,
@@ -4498,7 +4499,7 @@
4498
4499
  pageContext = _useContext[0],
4499
4500
  setPageContext = _useContext[1];
4500
4501
 
4501
- var context = CollectionContext(url, field);
4502
+ var context = CollectionContext(url, field, host);
4502
4503
  React.useEffect(function () {
4503
4504
  try {
4504
4505
  return Promise.resolve(context.load()).then(function () {
@@ -4822,7 +4823,7 @@
4822
4823
 
4823
4824
 
4824
4825
  var CollectionContext = function CollectionContext(url, field, host) {
4825
- var API = CollectionAPI(url);
4826
+ var API = CollectionAPI(url, host);
4826
4827
  return {
4827
4828
  all: [],
4828
4829
  selected: null,
@@ -4943,7 +4944,7 @@
4943
4944
  * Collection API
4944
4945
  */
4945
4946
 
4946
- var CollectionAPI = function CollectionAPI(url) {
4947
+ var CollectionAPI = function CollectionAPI(url, host) {
4947
4948
  var http = HTTPClient(host || window.API || process.env.REACT_APP_API, Session);
4948
4949
  return {
4949
4950
  all: function all(filters) {