algolia-experiences 1.8.25 → 1.8.26

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.
@@ -1,4 +1,4 @@
1
- /*! algolia-experiences 1.8.25 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
1
+ /*! algolia-experiences 1.8.26 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
2
2
  (function (factory) {
3
3
  typeof define === 'function' && define.amd ? define(factory) :
4
4
  factory();
@@ -6886,7 +6886,7 @@
6886
6886
  });
6887
6887
  }
6888
6888
 
6889
- var version = '4.115.0';
6889
+ var version = '4.116.0';
6890
6890
 
6891
6891
  var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
6892
6892
  function getCookie(name) {
@@ -8995,51 +8995,6 @@
8995
8995
  widget.$$id = id++;
8996
8996
  }
8997
8997
 
8998
- var nextMicroTask = Promise.resolve();
8999
- function defer(callback, // arguments: the first caller of the window decides what the single run
9000
- // receives. Pass this to fold every later argument into the pending ones
9001
- // instead.
9002
- mergeArguments) {
9003
- var progress = null;
9004
- var cancelled = false;
9005
- var pendingArgs = null;
9006
- var fn = function fn() {
9007
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
9008
- args[_key] = arguments[_key];
9009
- }
9010
- if (progress !== null) {
9011
- if (mergeArguments && pendingArgs !== null) {
9012
- pendingArgs = mergeArguments(pendingArgs, args);
9013
- }
9014
- return;
9015
- }
9016
- pendingArgs = args;
9017
- progress = nextMicroTask.then(function() {
9018
- progress = null;
9019
- var runArgs = pendingArgs;
9020
- pendingArgs = null;
9021
- if (cancelled) {
9022
- cancelled = false;
9023
- return;
9024
- }
9025
- callback.apply(void 0, _to_consumable_array(runArgs));
9026
- });
9027
- };
9028
- fn.wait = function() {
9029
- if (progress === null) {
9030
- throw new Error('The deferred function should be called before calling `wait()`');
9031
- }
9032
- return progress;
9033
- };
9034
- fn.cancel = function() {
9035
- if (progress === null) {
9036
- return;
9037
- }
9038
- cancelled = true;
9039
- };
9040
- return fn;
9041
- }
9042
-
9043
8998
  function resolveSearchParameters(current) {
9044
8999
  var parent = current.getParent();
9045
9000
  var states = [
@@ -9117,6 +9072,51 @@
9117
9072
  };
9118
9073
  }
9119
9074
 
9075
+ var nextMicroTask = Promise.resolve();
9076
+ function defer(callback, // arguments: the first caller of the window decides what the single run
9077
+ // receives. Pass this to fold every later argument into the pending ones
9078
+ // instead.
9079
+ mergeArguments) {
9080
+ var progress = null;
9081
+ var cancelled = false;
9082
+ var pendingArgs = null;
9083
+ var fn = function fn() {
9084
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
9085
+ args[_key] = arguments[_key];
9086
+ }
9087
+ if (progress !== null) {
9088
+ if (mergeArguments && pendingArgs !== null) {
9089
+ pendingArgs = mergeArguments(pendingArgs, args);
9090
+ }
9091
+ return;
9092
+ }
9093
+ pendingArgs = args;
9094
+ progress = nextMicroTask.then(function() {
9095
+ progress = null;
9096
+ var runArgs = pendingArgs;
9097
+ pendingArgs = null;
9098
+ if (cancelled) {
9099
+ cancelled = false;
9100
+ return;
9101
+ }
9102
+ callback.apply(void 0, _to_consumable_array(runArgs));
9103
+ });
9104
+ };
9105
+ fn.wait = function() {
9106
+ if (progress === null) {
9107
+ throw new Error('The deferred function should be called before calling `wait()`');
9108
+ }
9109
+ return progress;
9110
+ };
9111
+ fn.cancel = function() {
9112
+ if (progress === null) {
9113
+ return;
9114
+ }
9115
+ cancelled = true;
9116
+ };
9117
+ return fn;
9118
+ }
9119
+
9120
9120
  // We aren't using the native `Array.prototype.findIndex` because the refactor away from Lodash is not
9121
9121
  // published as a major version.
9122
9122
  // Relying on the `findIndex` polyfill on user-land, which before was only required for niche use-cases,