@asantemedia-org/edwardsvacuum-design-system 1.4.2 → 1.4.3
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.js +5 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
4
2
|
|
|
5
3
|
/******************************************************************************
|
|
6
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -4803,10 +4801,10 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
4803
4801
|
isLoading = _f === void 0 ? false : _f,
|
|
4804
4802
|
placeholder = _a.placeholder,
|
|
4805
4803
|
analytics = _a.analytics;
|
|
4806
|
-
var _g =
|
|
4804
|
+
var _g = useState(isLoading),
|
|
4807
4805
|
isLoadingState = _g[0],
|
|
4808
4806
|
setIsLoadingState = _g[1];
|
|
4809
|
-
|
|
4807
|
+
useEffect(function () {
|
|
4810
4808
|
if (isLoading !== isLoadingState) {
|
|
4811
4809
|
setIsLoadingState(isLoading);
|
|
4812
4810
|
}
|
|
@@ -4914,5 +4912,6 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
4914
4912
|
}))));
|
|
4915
4913
|
};
|
|
4916
4914
|
|
|
4917
|
-
|
|
4915
|
+
export { AlgoliaDynamicSearch };
|
|
4916
|
+
= AlgoliaDynamicSearch;
|
|
4918
4917
|
//# sourceMappingURL=index.js.map
|