downshift 9.0.7 → 9.0.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/downshift.cjs.js +9 -10
- package/dist/downshift.esm.js +9 -10
- package/dist/downshift.native.cjs.js +9 -10
- package/dist/downshift.nativeweb.cjs.js +9 -10
- package/dist/downshift.umd.js +9 -10
- package/dist/downshift.umd.js.map +1 -1
- package/dist/downshift.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/preact/dist/downshift.cjs.js +9 -10
- package/preact/dist/downshift.esm.js +9 -10
- package/preact/dist/downshift.umd.js +9 -10
- package/preact/dist/downshift.umd.js.map +1 -1
- package/preact/dist/downshift.umd.min.js.map +1 -1
package/dist/downshift.cjs.js
CHANGED
|
@@ -1893,7 +1893,6 @@ var useGetterPropsCalledChecker = function useGetterPropsCalledChecker() {
|
|
|
1893
1893
|
/* istanbul ignore next */
|
|
1894
1894
|
if (process.env.NODE_ENV !== 'production') {
|
|
1895
1895
|
useGetterPropsCalledChecker = function useGetterPropsCalledChecker() {
|
|
1896
|
-
var isInitialMountRef = React.useRef(true);
|
|
1897
1896
|
for (var _len = arguments.length, propKeys = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1898
1897
|
propKeys[_key] = arguments[_key];
|
|
1899
1898
|
}
|
|
@@ -1904,23 +1903,23 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1904
1903
|
React.useEffect(function () {
|
|
1905
1904
|
Object.keys(getterPropsCalledRef.current).forEach(function (propKey) {
|
|
1906
1905
|
var propCallInfo = getterPropsCalledRef.current[propKey];
|
|
1907
|
-
if (
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
return;
|
|
1912
|
-
}
|
|
1906
|
+
if (!Object.keys(propCallInfo).length) {
|
|
1907
|
+
// eslint-disable-next-line no-console
|
|
1908
|
+
console.error("downshift: You forgot to call the " + propKey + " getter function on your component / element.");
|
|
1909
|
+
return;
|
|
1913
1910
|
}
|
|
1914
1911
|
var suppressRefError = propCallInfo.suppressRefError,
|
|
1915
1912
|
refKey = propCallInfo.refKey,
|
|
1916
1913
|
elementRef = propCallInfo.elementRef;
|
|
1917
|
-
if (
|
|
1914
|
+
if (suppressRefError) {
|
|
1915
|
+
return;
|
|
1916
|
+
}
|
|
1917
|
+
if (!(elementRef != null && elementRef.current)) {
|
|
1918
1918
|
// eslint-disable-next-line no-console
|
|
1919
1919
|
console.error("downshift: The ref prop \"" + refKey + "\" from " + propKey + " was not applied correctly on your element.");
|
|
1920
1920
|
}
|
|
1921
1921
|
});
|
|
1922
|
-
|
|
1923
|
-
});
|
|
1922
|
+
}, []);
|
|
1924
1923
|
var setGetterPropCallInfo = React.useCallback(function (propKey, suppressRefError, refKey, elementRef) {
|
|
1925
1924
|
getterPropsCalledRef.current[propKey] = {
|
|
1926
1925
|
suppressRefError: suppressRefError,
|
package/dist/downshift.esm.js
CHANGED
|
@@ -1889,7 +1889,6 @@ var useGetterPropsCalledChecker = function useGetterPropsCalledChecker() {
|
|
|
1889
1889
|
/* istanbul ignore next */
|
|
1890
1890
|
if (process.env.NODE_ENV !== 'production') {
|
|
1891
1891
|
useGetterPropsCalledChecker = function useGetterPropsCalledChecker() {
|
|
1892
|
-
var isInitialMountRef = useRef(true);
|
|
1893
1892
|
for (var _len = arguments.length, propKeys = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1894
1893
|
propKeys[_key] = arguments[_key];
|
|
1895
1894
|
}
|
|
@@ -1900,23 +1899,23 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1900
1899
|
useEffect(function () {
|
|
1901
1900
|
Object.keys(getterPropsCalledRef.current).forEach(function (propKey) {
|
|
1902
1901
|
var propCallInfo = getterPropsCalledRef.current[propKey];
|
|
1903
|
-
if (
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
return;
|
|
1908
|
-
}
|
|
1902
|
+
if (!Object.keys(propCallInfo).length) {
|
|
1903
|
+
// eslint-disable-next-line no-console
|
|
1904
|
+
console.error("downshift: You forgot to call the " + propKey + " getter function on your component / element.");
|
|
1905
|
+
return;
|
|
1909
1906
|
}
|
|
1910
1907
|
var suppressRefError = propCallInfo.suppressRefError,
|
|
1911
1908
|
refKey = propCallInfo.refKey,
|
|
1912
1909
|
elementRef = propCallInfo.elementRef;
|
|
1913
|
-
if (
|
|
1910
|
+
if (suppressRefError) {
|
|
1911
|
+
return;
|
|
1912
|
+
}
|
|
1913
|
+
if (!(elementRef != null && elementRef.current)) {
|
|
1914
1914
|
// eslint-disable-next-line no-console
|
|
1915
1915
|
console.error("downshift: The ref prop \"" + refKey + "\" from " + propKey + " was not applied correctly on your element.");
|
|
1916
1916
|
}
|
|
1917
1917
|
});
|
|
1918
|
-
|
|
1919
|
-
});
|
|
1918
|
+
}, []);
|
|
1920
1919
|
var setGetterPropCallInfo = useCallback(function (propKey, suppressRefError, refKey, elementRef) {
|
|
1921
1920
|
getterPropsCalledRef.current[propKey] = {
|
|
1922
1921
|
suppressRefError: suppressRefError,
|
|
@@ -1751,7 +1751,6 @@ var useGetterPropsCalledChecker = function useGetterPropsCalledChecker() {
|
|
|
1751
1751
|
/* istanbul ignore next */
|
|
1752
1752
|
if (process.env.NODE_ENV !== 'production') {
|
|
1753
1753
|
useGetterPropsCalledChecker = function useGetterPropsCalledChecker() {
|
|
1754
|
-
var isInitialMountRef = React.useRef(true);
|
|
1755
1754
|
for (var _len = arguments.length, propKeys = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1756
1755
|
propKeys[_key] = arguments[_key];
|
|
1757
1756
|
}
|
|
@@ -1762,23 +1761,23 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1762
1761
|
React.useEffect(function () {
|
|
1763
1762
|
Object.keys(getterPropsCalledRef.current).forEach(function (propKey) {
|
|
1764
1763
|
var propCallInfo = getterPropsCalledRef.current[propKey];
|
|
1765
|
-
if (
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
return;
|
|
1770
|
-
}
|
|
1764
|
+
if (!Object.keys(propCallInfo).length) {
|
|
1765
|
+
// eslint-disable-next-line no-console
|
|
1766
|
+
console.error("downshift: You forgot to call the " + propKey + " getter function on your component / element.");
|
|
1767
|
+
return;
|
|
1771
1768
|
}
|
|
1772
1769
|
var suppressRefError = propCallInfo.suppressRefError,
|
|
1773
1770
|
refKey = propCallInfo.refKey,
|
|
1774
1771
|
elementRef = propCallInfo.elementRef;
|
|
1775
|
-
if (
|
|
1772
|
+
if (suppressRefError) {
|
|
1773
|
+
return;
|
|
1774
|
+
}
|
|
1775
|
+
if (!(elementRef != null && elementRef.current)) {
|
|
1776
1776
|
// eslint-disable-next-line no-console
|
|
1777
1777
|
console.error("downshift: The ref prop \"" + refKey + "\" from " + propKey + " was not applied correctly on your element.");
|
|
1778
1778
|
}
|
|
1779
1779
|
});
|
|
1780
|
-
|
|
1781
|
-
});
|
|
1780
|
+
}, []);
|
|
1782
1781
|
var setGetterPropCallInfo = React.useCallback(function (propKey, suppressRefError, refKey, elementRef) {
|
|
1783
1782
|
getterPropsCalledRef.current[propKey] = {
|
|
1784
1783
|
suppressRefError: suppressRefError,
|
|
@@ -1888,7 +1888,6 @@ var useGetterPropsCalledChecker = function useGetterPropsCalledChecker() {
|
|
|
1888
1888
|
/* istanbul ignore next */
|
|
1889
1889
|
if (process.env.NODE_ENV !== 'production') {
|
|
1890
1890
|
useGetterPropsCalledChecker = function useGetterPropsCalledChecker() {
|
|
1891
|
-
var isInitialMountRef = React.useRef(true);
|
|
1892
1891
|
for (var _len = arguments.length, propKeys = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1893
1892
|
propKeys[_key] = arguments[_key];
|
|
1894
1893
|
}
|
|
@@ -1899,23 +1898,23 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1899
1898
|
React.useEffect(function () {
|
|
1900
1899
|
Object.keys(getterPropsCalledRef.current).forEach(function (propKey) {
|
|
1901
1900
|
var propCallInfo = getterPropsCalledRef.current[propKey];
|
|
1902
|
-
if (
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
return;
|
|
1907
|
-
}
|
|
1901
|
+
if (!Object.keys(propCallInfo).length) {
|
|
1902
|
+
// eslint-disable-next-line no-console
|
|
1903
|
+
console.error("downshift: You forgot to call the " + propKey + " getter function on your component / element.");
|
|
1904
|
+
return;
|
|
1908
1905
|
}
|
|
1909
1906
|
var suppressRefError = propCallInfo.suppressRefError,
|
|
1910
1907
|
refKey = propCallInfo.refKey,
|
|
1911
1908
|
elementRef = propCallInfo.elementRef;
|
|
1912
|
-
if (
|
|
1909
|
+
if (suppressRefError) {
|
|
1910
|
+
return;
|
|
1911
|
+
}
|
|
1912
|
+
if (!(elementRef != null && elementRef.current)) {
|
|
1913
1913
|
// eslint-disable-next-line no-console
|
|
1914
1914
|
console.error("downshift: The ref prop \"" + refKey + "\" from " + propKey + " was not applied correctly on your element.");
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
|
-
|
|
1918
|
-
});
|
|
1917
|
+
}, []);
|
|
1919
1918
|
var setGetterPropCallInfo = React.useCallback(function (propKey, suppressRefError, refKey, elementRef) {
|
|
1920
1919
|
getterPropsCalledRef.current[propKey] = {
|
|
1921
1920
|
suppressRefError: suppressRefError,
|
package/dist/downshift.umd.js
CHANGED
|
@@ -3233,7 +3233,6 @@
|
|
|
3233
3233
|
/* istanbul ignore next */
|
|
3234
3234
|
{
|
|
3235
3235
|
useGetterPropsCalledChecker = function useGetterPropsCalledChecker() {
|
|
3236
|
-
var isInitialMountRef = React.useRef(true);
|
|
3237
3236
|
for (var _len = arguments.length, propKeys = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3238
3237
|
propKeys[_key] = arguments[_key];
|
|
3239
3238
|
}
|
|
@@ -3244,23 +3243,23 @@
|
|
|
3244
3243
|
React.useEffect(function () {
|
|
3245
3244
|
Object.keys(getterPropsCalledRef.current).forEach(function (propKey) {
|
|
3246
3245
|
var propCallInfo = getterPropsCalledRef.current[propKey];
|
|
3247
|
-
if (
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
return;
|
|
3252
|
-
}
|
|
3246
|
+
if (!Object.keys(propCallInfo).length) {
|
|
3247
|
+
// eslint-disable-next-line no-console
|
|
3248
|
+
console.error("downshift: You forgot to call the " + propKey + " getter function on your component / element.");
|
|
3249
|
+
return;
|
|
3253
3250
|
}
|
|
3254
3251
|
var suppressRefError = propCallInfo.suppressRefError,
|
|
3255
3252
|
refKey = propCallInfo.refKey,
|
|
3256
3253
|
elementRef = propCallInfo.elementRef;
|
|
3257
|
-
if (
|
|
3254
|
+
if (suppressRefError) {
|
|
3255
|
+
return;
|
|
3256
|
+
}
|
|
3257
|
+
if (!(elementRef != null && elementRef.current)) {
|
|
3258
3258
|
// eslint-disable-next-line no-console
|
|
3259
3259
|
console.error("downshift: The ref prop \"" + refKey + "\" from " + propKey + " was not applied correctly on your element.");
|
|
3260
3260
|
}
|
|
3261
3261
|
});
|
|
3262
|
-
|
|
3263
|
-
});
|
|
3262
|
+
}, []);
|
|
3264
3263
|
var setGetterPropCallInfo = React.useCallback(function (propKey, suppressRefError, refKey, elementRef) {
|
|
3265
3264
|
getterPropsCalledRef.current[propKey] = {
|
|
3266
3265
|
suppressRefError: suppressRefError,
|