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.cjs CHANGED
@@ -4488,6 +4488,7 @@ var CollectionPage = function CollectionPage(props) {
4488
4488
  name = _props$name === void 0 ? "Collection 1" : _props$name,
4489
4489
  schema = props.schema,
4490
4490
  url = props.url,
4491
+ host = props.host,
4491
4492
  groupBy = props.groupBy,
4492
4493
  editor = props.editor,
4493
4494
  field = props.field,
@@ -4503,7 +4504,7 @@ var CollectionPage = function CollectionPage(props) {
4503
4504
  pageContext = _useContext[0],
4504
4505
  setPageContext = _useContext[1];
4505
4506
 
4506
- var context = CollectionContext(url, field);
4507
+ var context = CollectionContext(url, field, host);
4507
4508
  React.useEffect(function () {
4508
4509
  try {
4509
4510
  return Promise.resolve(context.load()).then(function () {
@@ -4827,7 +4828,7 @@ var CollectionEditor = function CollectionEditor(props) {
4827
4828
 
4828
4829
 
4829
4830
  var CollectionContext = function CollectionContext(url, field, host) {
4830
- var API = CollectionAPI(url);
4831
+ var API = CollectionAPI(url, host);
4831
4832
  return {
4832
4833
  all: [],
4833
4834
  selected: null,
@@ -4948,7 +4949,7 @@ var CollectionContext = function CollectionContext(url, field, host) {
4948
4949
  * Collection API
4949
4950
  */
4950
4951
 
4951
- var CollectionAPI = function CollectionAPI(url) {
4952
+ var CollectionAPI = function CollectionAPI(url, host) {
4952
4953
  var http = HTTPClient(host || window.API || process.env.REACT_APP_API, Session);
4953
4954
  return {
4954
4955
  all: function all(filters) {