@razorpay/blade 5.1.5 → 5.2.1
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/CHANGELOG.md +26 -0
- package/build/components/index.d.ts +4 -9
- package/build/components/index.native.d.ts +4 -9
- package/build/components/index.native.js +5 -5
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +40 -35
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/build/utils/index.native.js +1 -1
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/index.web.js +1 -1
- package/build/utils/index.web.js.map +1 -1
- package/package.json +4 -1
package/build/utils/index.web.js
CHANGED
|
@@ -4763,7 +4763,7 @@ var useBreakpoint = function useBreakpoint(_ref) {
|
|
|
4763
4763
|
var _window;
|
|
4764
4764
|
|
|
4765
4765
|
var breakpoints = _ref.breakpoints;
|
|
4766
|
-
var supportsMatchMedia = typeof document !== 'undefined' && typeof ((_window = window) === null || _window === void 0 ? void 0 : _window.matchMedia) === 'function';
|
|
4766
|
+
var supportsMatchMedia = typeof document !== 'undefined' && typeof window !== 'undefined' && typeof ((_window = window) === null || _window === void 0 ? void 0 : _window.matchMedia) === 'function';
|
|
4767
4767
|
var breakpointsTokenAndQueryCollection = useMemo(function () {
|
|
4768
4768
|
return supportsMatchMedia ? Object.entries(breakpoints).map(function (_ref2, index, breakpointsArray) {
|
|
4769
4769
|
var _ref3 = _slicedToArray(_ref2, 2),
|