@algolia/autocomplete-js 1.19.3 → 1.19.4

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.
@@ -6,5 +6,16 @@ export var LoadingIcon = function LoadingIcon(_ref) {
6
6
  element.setAttribute('width', '20');
7
7
  element.setAttribute('height', '20');
8
8
  element.innerHTML = "<circle\n cx=\"50\"\n cy=\"50\"\n fill=\"none\"\n r=\"35\"\n stroke=\"currentColor\"\n stroke-dasharray=\"164.93361431346415 56.97787143782138\"\n stroke-width=\"6\"\n>\n <animateTransform\n attributeName=\"transform\"\n type=\"rotate\"\n repeatCount=\"indefinite\"\n dur=\"1s\"\n values=\"0 50 50;90 50 50;180 50 50;360 50 50\"\n keyTimes=\"0;0.40;0.65;1\"\n />\n</circle>";
9
+ var pauseAnimations = function pauseAnimations() {
10
+ // Wait until the element is in the DOM.
11
+ if (!element.parentElement) {
12
+ setTimeout(pauseAnimations, 0);
13
+ return;
14
+ }
15
+ element.pauseAnimations();
16
+ };
17
+ if ('pauseAnimations' in element) {
18
+ pauseAnimations();
19
+ }
9
20
  return element;
10
21
  };
@@ -1,4 +1,4 @@
1
- /*! @algolia/autocomplete-js 1.19.3 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
1
+ /*! @algolia/autocomplete-js 1.19.4 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -347,7 +347,7 @@
347
347
  return undefined;
348
348
  }
349
349
 
350
- var version = '1.19.3';
350
+ var version = '1.19.4';
351
351
 
352
352
  var userAgents$1 = [{
353
353
  segment: 'autocomplete-core',
@@ -3841,6 +3841,17 @@
3841
3841
  element.setAttribute('width', '20');
3842
3842
  element.setAttribute('height', '20');
3843
3843
  element.innerHTML = "<circle\n cx=\"50\"\n cy=\"50\"\n fill=\"none\"\n r=\"35\"\n stroke=\"currentColor\"\n stroke-dasharray=\"164.93361431346415 56.97787143782138\"\n stroke-width=\"6\"\n>\n <animateTransform\n attributeName=\"transform\"\n type=\"rotate\"\n repeatCount=\"indefinite\"\n dur=\"1s\"\n values=\"0 50 50;90 50 50;180 50 50;360 50 50\"\n keyTimes=\"0;0.40;0.65;1\"\n />\n</circle>";
3844
+ var pauseAnimations = function pauseAnimations() {
3845
+ // Wait until the element is in the DOM.
3846
+ if (!element.parentElement) {
3847
+ setTimeout(pauseAnimations, 0);
3848
+ return;
3849
+ }
3850
+ element.pauseAnimations();
3851
+ };
3852
+ if ('pauseAnimations' in element) {
3853
+ pauseAnimations();
3854
+ }
3844
3855
  return element;
3845
3856
  };
3846
3857