x-essential-lib 0.9.4 → 0.9.5

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.
@@ -1,6 +1,6 @@
1
1
  export declare function useSystem(): {
2
2
  sysBarAvail: import("vue").ComputedRef<boolean>;
3
3
  compactWidth: import("vue").ComputedRef<string>;
4
+ isCurvedScreen: import("vue").ComputedRef<boolean>;
4
5
  isMobile: () => boolean;
5
- isCurvedScreen: () => boolean;
6
6
  };
package/dist/index.js CHANGED
@@ -460,16 +460,13 @@ function Wt() {
460
460
  return { verifyPermission: t };
461
461
  }
462
462
  function Xt() {
463
- const e = V(() => !!window.cordova), t = Ve(), a = V(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
464
- function o() {
463
+ const e = V(() => !!window.cordova), t = Ve(), a = V(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px"), o = V(() => t.xs.value);
464
+ function l() {
465
465
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
466
466
  navigator.userAgent
467
467
  );
468
468
  }
469
- function l() {
470
- return !!t.xs.value;
471
- }
472
- return { sysBarAvail: e, compactWidth: a, isMobile: o, isCurvedScreen: l };
469
+ return { sysBarAvail: e, compactWidth: a, isCurvedScreen: o, isMobile: l };
473
470
  }
474
471
  function J(e, t) {
475
472
  const a = Ge(), o = V({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.9.4",
4
+ "version": "0.9.5",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",