@asantemedia-org/edwardsvacuum-design-system 1.6.7 → 1.6.8
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 +4 -7
- 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.
|
|
@@ -4825,10 +4823,10 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
4825
4823
|
isLoading = _f === void 0 ? false : _f,
|
|
4826
4824
|
placeholder = _a.placeholder,
|
|
4827
4825
|
analytics = _a.analytics;
|
|
4828
|
-
var _g =
|
|
4826
|
+
var _g = useState(isLoading),
|
|
4829
4827
|
isLoadingState = _g[0],
|
|
4830
4828
|
setIsLoadingState = _g[1];
|
|
4831
|
-
|
|
4829
|
+
useEffect(function () {
|
|
4832
4830
|
if (isLoading !== isLoadingState) {
|
|
4833
4831
|
setIsLoadingState(isLoading);
|
|
4834
4832
|
}
|
|
@@ -4950,5 +4948,4 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
4950
4948
|
}))));
|
|
4951
4949
|
};
|
|
4952
4950
|
|
|
4953
|
-
|
|
4954
|
-
//# sourceMappingURL=index.js.map
|
|
4951
|
+
export { AlgoliaDynamicSearch };
|