@loczer/storefront-sdk 0.195.0 → 0.196.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loczer/storefront-sdk",
3
- "version": "0.195.0",
3
+ "version": "0.196.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -1,2 +0,0 @@
1
- export declare function useIsTouchDevice(): boolean;
2
- //# sourceMappingURL=useIsTouchDevice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useIsTouchDevice.d.ts","sourceRoot":"","sources":["../../../../../src/components/BookingPeriodSelector/components/internal/useIsTouchDevice.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,YA0C/B"}
@@ -1,21 +0,0 @@
1
- import { useEffect as e, useState as t } from "react";
2
- //#region src/components/BookingPeriodSelector/components/internal/useIsTouchDevice.ts
3
- var n = "(pointer: coarse)";
4
- function r() {
5
- let [r, i] = t(!1);
6
- return e(() => {
7
- if (typeof window > "u") return;
8
- let e = typeof window.matchMedia == "function" ? window.matchMedia(n) : void 0, t = () => {
9
- let t = e?.matches ?? !1, n = typeof navigator < "u" ? navigator : void 0, r = n?.maxTouchPoints ?? 0, i = n?.msMaxTouchPoints ?? 0;
10
- return t || r > 0 || i > 0;
11
- }, r = () => {
12
- i(t());
13
- };
14
- if (r(), e) {
15
- if (typeof e.addEventListener == "function") return e.addEventListener("change", r), () => e.removeEventListener("change", r);
16
- if (typeof e.addListener == "function") return e.addListener(r), () => e.removeListener(r);
17
- }
18
- }, []), r;
19
- }
20
- //#endregion
21
- export { r as useIsTouchDevice };