@quan-erp/shared-frontend-core 1.0.1 → 1.0.3
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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quan-erp/shared-frontend-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"publish:registry": "npm run build && npm publish --tag beta",
|
|
7
|
-
"publish:npm-registry": "npm run build && npm publish --access public --registry https://registry.npmjs.org/ --@quan-erp:registry=https://registry.npmjs.org/",
|
|
7
|
+
"publish:npm-registry": "rm -rf dist && npm run build && npm publish --access public --registry https://registry.npmjs.org/ --@quan-erp:registry=https://registry.npmjs.org/",
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
9
|
"build": "rollup -c",
|
|
10
10
|
"dev": "rollup -c -w"
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"@capacitor/network": "^7.0.2",
|
|
62
62
|
"@capacitor/preferences": "^7.0.2",
|
|
63
63
|
"@fingerprintjs/fingerprintjs": "^4.6.2",
|
|
64
|
-
"@quan-erp-capacitor-pluigins/background-location": "^0.0
|
|
65
|
-
"@quan-erp/shared-types": "^1.0.
|
|
64
|
+
"@quan-erp-capacitor-pluigins/background-location": "^1.0.0",
|
|
65
|
+
"@quan-erp/shared-types": "^1.0.3",
|
|
66
66
|
"@tanstack/react-query": "^5.90.10",
|
|
67
67
|
"axios": "^1.13.2",
|
|
68
68
|
"react": "19.2.6",
|
|
69
69
|
"react-dom": "19.2.6",
|
|
70
|
-
"react-router-dom": "
|
|
70
|
+
"react-router-dom": "7.9.5",
|
|
71
71
|
"web-haptics": "^0.0.6",
|
|
72
72
|
"zustand": "^5.0.9"
|
|
73
73
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface IOrientation {
|
|
2
|
-
getOrientation(): "portrait" | "landscape";
|
|
3
|
-
onChange(callback: (orientation: "portrait" | "landscape") => void): void;
|
|
4
|
-
offChange(callback: (orientation: "portrait" | "landscape") => void): void;
|
|
5
|
-
}
|
|
6
|
-
export declare class Orientation implements IOrientation {
|
|
7
|
-
private static _instance;
|
|
8
|
-
private impl;
|
|
9
|
-
private constructor();
|
|
10
|
-
static get instance(): Orientation;
|
|
11
|
-
getOrientation(): "portrait" | "landscape";
|
|
12
|
-
onChange(callback: (orientation: "portrait" | "landscape") => void): void;
|
|
13
|
-
offChange(callback: (orientation: "portrait" | "landscape") => void): void;
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type HandType = "left" | "right" | "unknown";
|
|
2
|
-
interface IHandDetector {
|
|
3
|
-
start(): void;
|
|
4
|
-
stop(): void;
|
|
5
|
-
getHand(): HandType;
|
|
6
|
-
onChange?: (hand: HandType) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare class UserHandBehaviorDetector implements IHandDetector {
|
|
9
|
-
private hand;
|
|
10
|
-
private started;
|
|
11
|
-
private samples;
|
|
12
|
-
private readonly SAMPLE_SIZE;
|
|
13
|
-
private readonly TILT_THRESHOLD;
|
|
14
|
-
private lastReportedHand;
|
|
15
|
-
private motionsOrientation;
|
|
16
|
-
onChange?: (hand: HandType) => void;
|
|
17
|
-
private constructor();
|
|
18
|
-
static getNewInstance(): UserHandBehaviorDetector;
|
|
19
|
-
start(): void;
|
|
20
|
-
stop(): void;
|
|
21
|
-
getHand(): HandType;
|
|
22
|
-
private handleOrientation;
|
|
23
|
-
}
|
|
24
|
-
export {};
|