billy-herrington-utils 2.0.4 → 2.0.6

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.
@@ -6088,10 +6088,10 @@ function Hu(e, t = [], n) {
6088
6088
  e,
6089
6089
  Lu
6090
6090
  ), r = [...t, ...o];
6091
- return n ? Nr(n, r) : r;
6091
+ return r;
6092
6092
  }
6093
6093
  class RulesGlobal {
6094
- constructor() {
6094
+ constructor(options) {
6095
6095
  __publicField(this, "delay");
6096
6096
  __publicField(this, "alternativeGenerator");
6097
6097
  __publicField(this, "titleSelector");
@@ -6108,7 +6108,7 @@ class RulesGlobal {
6108
6108
  __publicField(this, "thumbsSelector", ".thumb");
6109
6109
  __publicField(this, "getThumbsStrategy", "default");
6110
6110
  __publicField(this, "paginationStrategyOptions", {});
6111
- __publicField(this, "paginationStrategy", getPaginationStrategy(this.paginationStrategyOptions));
6111
+ __publicField(this, "paginationStrategy");
6112
6112
  __publicField(this, "mutationObservers", []);
6113
6113
  __publicField(this, "resetOnPaginationOrContainerDeath", true);
6114
6114
  __publicField(this, "customSelectors", {});
@@ -6116,12 +6116,17 @@ class RulesGlobal {
6116
6116
  __publicField(this, "storeOptions");
6117
6117
  __publicField(this, "customScheme");
6118
6118
  __publicField(this, "defaultSchemeOptions", []);
6119
- __publicField(this, "store", new js(this.storeOptions));
6120
- __publicField(this, "scheme", Hu(this.defaultSchemeOptions, this.customScheme));
6121
- __publicField(this, "gui", new ju(this.scheme, this.store));
6122
- __publicField(this, "dataManager", new DataManager(this, this.store.state));
6119
+ __publicField(this, "store");
6120
+ __publicField(this, "gui");
6121
+ __publicField(this, "dataManager");
6123
6122
  __publicField(this, "infiniteScroller");
6124
6123
  __publicField(this, "initialGrope");
6124
+ Object.assign(this, options);
6125
+ this.paginationStrategy = getPaginationStrategy(this.paginationStrategyOptions);
6126
+ this.store = new js(this.storeOptions);
6127
+ const scheme = Hu(this.defaultSchemeOptions, this.customScheme);
6128
+ this.gui = new ju(scheme, this.store);
6129
+ this.dataManager = new DataManager(this, this.store.state);
6125
6130
  this.store.subscribe(() => this.dataManager.applyFilters());
6126
6131
  this.resetInfiniteScroller();
6127
6132
  this.resetOn();