ywana-core8 0.0.282 → 0.0.283

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
@@ -4446,6 +4446,10 @@ var CreateContentDialog = function CreateContentDialog(_ref) {
4446
4446
  }));
4447
4447
  };
4448
4448
 
4449
+ /**
4450
+ * Collection Page
4451
+ */
4452
+
4449
4453
  function _catch$1(body, recover) {
4450
4454
  try {
4451
4455
  var result = body();
@@ -4459,12 +4463,11 @@ function _catch$1(body, recover) {
4459
4463
 
4460
4464
  return result;
4461
4465
  }
4462
-
4463
- var http = HTTPClient(window.API || process.env.REACT_APP_API, Session);
4464
4466
  /**
4465
- * Collection Page
4467
+ * Collection List
4466
4468
  */
4467
4469
 
4470
+
4468
4471
  var CollectionPage = function CollectionPage(props) {
4469
4472
  var reload = function reload() {
4470
4473
  try {
@@ -4574,9 +4577,6 @@ var CollectionPage = function CollectionPage(props) {
4574
4577
  delay: delay
4575
4578
  })));
4576
4579
  };
4577
- /**
4578
- * Collection List
4579
- */
4580
4580
 
4581
4581
  var CollectionList = function CollectionList(props) {
4582
4582
  var select = function select(id) {
@@ -4826,7 +4826,7 @@ var CollectionEditor = function CollectionEditor(props) {
4826
4826
  */
4827
4827
 
4828
4828
 
4829
- var CollectionContext = function CollectionContext(url, field) {
4829
+ var CollectionContext = function CollectionContext(url, field, host) {
4830
4830
  var API = CollectionAPI(url);
4831
4831
  return {
4832
4832
  all: [],
@@ -4949,6 +4949,7 @@ var CollectionContext = function CollectionContext(url, field) {
4949
4949
  */
4950
4950
 
4951
4951
  var CollectionAPI = function CollectionAPI(url) {
4952
+ var http = HTTPClient(host || window.API || process.env.REACT_APP_API, Session);
4952
4953
  return {
4953
4954
  all: function all(filters) {
4954
4955
  var queryParams = "?";