@snapbox/pkg-automation 1.0.2 → 1.0.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.
- package/build/SnapboxPkgAutomationModule.d.ts +1 -1
- package/build/SnapboxPkgAutomationModule.d.ts.map +1 -1
- package/build/SnapboxPkgAutomationModule.js +1 -1
- package/build/SnapboxPkgAutomationModule.js.map +1 -1
- package/build/SnapboxPkgAutomationModule.web.d.ts +1 -1
- package/build/SnapboxPkgAutomationModule.web.d.ts.map +1 -1
- package/build/SnapboxPkgAutomationModule.web.js.map +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NativeModule } from "expo";
|
|
2
|
-
import { PermissionResponse } from "expo-modules-core";
|
|
2
|
+
import type { PermissionResponse } from "expo-modules-core";
|
|
3
3
|
declare class SnapboxPkgAutomationModule extends NativeModule {
|
|
4
4
|
tap(x: number, y: number): Promise<boolean>;
|
|
5
5
|
doubleTap(x: number, y: number): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnapboxPkgAutomationModule.d.ts","sourceRoot":"","sources":["../src/SnapboxPkgAutomationModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,MAAM,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"SnapboxPkgAutomationModule.d.ts","sourceRoot":"","sources":["../src/SnapboxPkgAutomationModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,OAAO,0BAA2B,SAAQ,YAAY;IAC3D,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAC3C,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IACjD,KAAK,CACH,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC;IACnB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IACxC,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IACxB,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IACxB,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAChC,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAChD,mBAAmB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAClD,uBAAuB,IAAI,OAAO,CAAC,kBAAkB,CAAC;CACvD;;AAGD,wBAEE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { requireNativeModule } from "expo";
|
|
1
|
+
import { NativeModule, requireNativeModule } from "expo";
|
|
2
2
|
// This call loads the native module object from the JSI.
|
|
3
3
|
export default requireNativeModule("SnapboxPkgAutomation");
|
|
4
4
|
//# sourceMappingURL=SnapboxPkgAutomationModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnapboxPkgAutomationModule.js","sourceRoot":"","sources":["../src/SnapboxPkgAutomationModule.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SnapboxPkgAutomationModule.js","sourceRoot":"","sources":["../src/SnapboxPkgAutomationModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAuBzD,yDAAyD;AACzD,eAAe,mBAAmB,CAChC,sBAAsB,CACvB,CAAC","sourcesContent":["import { NativeModule, requireNativeModule } from \"expo\";\nimport type { PermissionResponse } from \"expo-modules-core\";\n\ndeclare class SnapboxPkgAutomationModule extends NativeModule {\n tap(x: number, y: number): Promise<boolean>;\n doubleTap(x: number, y: number): Promise<boolean>;\n swipe(\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n duration: number,\n ): Promise<boolean>;\n longPress(x: number, y: number, duration: number): Promise<boolean>;\n typeText(text: string): Promise<boolean>;\n back(): Promise<boolean>;\n home(): Promise<boolean>;\n getCurrentApp(): Promise<string>;\n launchApp(packageName: string): Promise<boolean>;\n getPermissionsAsync(): Promise<PermissionResponse>;\n requestPermissionsAsync(): Promise<PermissionResponse>;\n}\n\n// This call loads the native module object from the JSI.\nexport default requireNativeModule<SnapboxPkgAutomationModule>(\n \"SnapboxPkgAutomation\",\n);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NativeModule } from "expo";
|
|
2
|
-
import { PermissionResponse } from "expo-modules-core";
|
|
2
|
+
import type { PermissionResponse } from "expo-modules-core";
|
|
3
3
|
declare class SnapboxPkgAutomationModule extends NativeModule {
|
|
4
4
|
tap(x: number, y: number): Promise<boolean>;
|
|
5
5
|
doubleTap(x: number, y: number): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnapboxPkgAutomationModule.web.d.ts","sourceRoot":"","sources":["../src/SnapboxPkgAutomationModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,MAAM,CAAC;AACvD,OAAO,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"SnapboxPkgAutomationModule.web.d.ts","sourceRoot":"","sources":["../src/SnapboxPkgAutomationModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG5D,cAAM,0BAA2B,SAAQ,YAAY;IAC7C,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAG3C,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAGjD,KAAK,CACT,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC;IAGb,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAGnE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAGxC,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IAGxB,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IAGxB,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAGhC,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAGhD,mBAAmB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAQlD,uBAAuB,IAAI,OAAO,CAAC,kBAAkB,CAAC;CAQ7D;;AAED,wBAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnapboxPkgAutomationModule.web.js","sourceRoot":"","sources":["../src/SnapboxPkgAutomationModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"SnapboxPkgAutomationModule.web.js","sourceRoot":"","sources":["../src/Snap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;YAChB,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,KAAK;SACnB,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,uBAAuB;QAC3B,OAAO;YACL,MAAM,EAAE,gBAAgB,CAAC,MAAM;YAC/B,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,KAAK;SACnB,CAAC;IACJ,CAAC;CACF;AAED,eAAe,iBAAiB,CAC9B,0BAA0B,EAC1B,4BAA4B,CAC7B,CAAC","sourcesContent":["import { NativeModule, registerWebModule } from \"expo\";\nimport type { PermissionResponse } from \"expo-modules-core\";\nimport { PermissionStatus } from \"expo-modules-core\";\n\nclass SnapboxPkgAutomationModule extends NativeModule {\n async tap(x: number, y: number): Promise<boolean> {\n throw new Error(\"Not supported on web\");\n }\n async doubleTap(x: number, y: number): Promise<boolean> {\n throw new Error(\"Not supported on web\");\n }\n async swipe(\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n duration: number,\n ): Promise<boolean> {\n throw new Error(\"Not supported on web\");\n }\n async longPress(x: number, y: number, duration: number): Promise<boolean> {\n throw new Error(\"Not supported on web\");\n }\n async typeText(text: string): Promise<boolean> {\n throw new Error(\"Not supported on web\");\n }\n async back(): Promise<boolean> {\n throw new Error(\"Not supported on web\");\n }\n async home(): Promise<boolean> {\n throw new Error(\"Not supported on web\");\n }\n async getCurrentApp(): Promise<string> {\n throw new Error(\"Not supported on web\");\n }\n async launchApp(packageName: string): Promise<boolean> {\n throw new Error(\"Not supported on web\");\n }\n async getPermissionsAsync(): Promise<PermissionResponse> {\n return {\n status: PermissionStatus.DENIED,\n expires: \"never\",\n granted: true,\n canAskAgain: false,\n };\n }\n async requestPermissionsAsync(): Promise<PermissionResponse> {\n return {\n status: PermissionStatus.DENIED,\n expires: \"never\",\n granted: false,\n canAskAgain: false,\n };\n }\n}\n\nexport default registerWebModule(\n SnapboxPkgAutomationModule,\n \"SnapboxPkgAutomationModule\",\n);\n"]}
|
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PermissionResponse } from "expo-modules-core";
|
|
1
|
+
import type { PermissionResponse } from "expo-modules-core";
|
|
2
2
|
export declare const tap: (x: number, y: number) => Promise<boolean>;
|
|
3
3
|
export declare const doubleTap: (x: number, y: number) => Promise<boolean>;
|
|
4
4
|
export declare const swipe: (x1: number, y1: number, x2: number, y2: number, duration: number) => Promise<boolean>;
|
|
@@ -9,7 +9,7 @@ export declare const home: () => Promise<boolean>;
|
|
|
9
9
|
export declare const getCurrentApp: () => Promise<string>;
|
|
10
10
|
export declare const launchApp: (packageName: string) => Promise<boolean>;
|
|
11
11
|
export declare const useAutomationPermissions: (options?: import("expo-modules-core").PermissionHookOptions<object> | undefined) => [PermissionResponse | null, () => Promise<PermissionResponse>, () => Promise<PermissionResponse>];
|
|
12
|
-
export { PermissionResponse };
|
|
12
|
+
export type { PermissionResponse };
|
|
13
13
|
declare const SnapboxPkgAutomation: {
|
|
14
14
|
tap: (x: number, y: number) => Promise<boolean>;
|
|
15
15
|
doubleTap: (x: number, y: number) => Promise<boolean>;
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAI5D,eAAO,MAAM,GAAG,GAAU,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,OAAO,CAAC,OAAO,CAE/D,CAAC;AAEF,eAAO,MAAM,SAAS,GAAU,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,OAAO,CAAC,OAAO,CAErE,CAAC;AAEF,eAAO,MAAM,KAAK,GAChB,IAAI,MAAM,EACV,IAAI,MAAM,EACV,IAAI,MAAM,EACV,IAAI,MAAM,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sB,EAAE;IAC/C,OAAO,MAAM,YAAY,CAAC,IAAI,EAAE,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,IAAqB,EAAE;IACvD,OAAO,MAAM,YAAY,CAAC,aAAa,EAAE,CAAC;AAC5C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAE,WAAmB,EAAoB,EAAE;IACvE,OAAO,MAAM,YAAY,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;IAC3D,SAAS,EAAE,YAAY,CAAC,mBAAmB;IAC3C,aAAa,EAAE,YAAY,CAAC,uBAAuB;CACpD,CAAC,CAAC;AAIH,MAAM,oBAAoB,GAAG;IAC3B,GAAG;IACH,SAAS;IACT,KAAK;IACL,SAAS;IACT,QAAQ;IACR,IAAI;IACJ,IAAI;IACJ,aAAa;IACb,SAAS;CACV,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["import type { PermissionResponse } from \"expo-modules-core\";\nimport { createPermissionHook } from \"expo-modules-core\";\nimport NativeModule from \"./SnapboxPkgAutomationModule\";\n\nexport const tap = async (x: number, y: number): Promise<boolean> => {\n return await NativeModule.tap(x, y);\n};\n\nexport const doubleTap = async (x: number, y: number): Promise<boolean> => {\n return await NativeModule.doubleTap(x, y);\n};\n\nexport const swipe = async (\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n duration: number,\n): Promise<boolean> => {\n return await NativeModule.swipe(x1, y1, x2, y2, duration);\n};\n\nexport const longPress = async (\n x: number,\n y: number,\n duration: number,\n): Promise<boolean> => {\n return await NativeModule.longPress(x, y, duration);\n};\n\nexport const typeText = async (text: string): Promise<boolean> => {\n return await NativeModule.typeText(text);\n};\n\nexport const back = async (): Promise<boolean> => {\n return await NativeModule.back();\n};\n\nexport const home = async (): Promise<boolean> => {\n return await NativeModule.home();\n};\n\nexport const getCurrentApp = async (): Promise<string> => {\n return await NativeModule.getCurrentApp();\n};\n\nexport const launchApp = async (packageName: string): Promise<boolean> => {\n return await NativeModule.launchApp(packageName);\n};\n\nexport const useAutomationPermissions = createPermissionHook({\n getMethod: NativeModule.getPermissionsAsync,\n requestMethod: NativeModule.requestPermissionsAsync,\n});\n\nexport type { PermissionResponse };\n\nconst SnapboxPkgAutomation = {\n tap,\n doubleTap,\n swipe,\n longPress,\n typeText,\n back,\n home,\n getCurrentApp,\n launchApp,\n};\n\nexport default SnapboxPkgAutomation;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snapbox/pkg-automation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "My new module",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"homepage": "https://github.com/expo/expo#readme",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/react": "~19.2.2",
|
|
33
|
-
"expo": "^
|
|
34
|
-
"expo-module-scripts": "^
|
|
35
|
-
"react-native": "0.
|
|
36
|
-
"typescript": "~
|
|
33
|
+
"expo": "^56.0.5",
|
|
34
|
+
"expo-module-scripts": "^56.0.2",
|
|
35
|
+
"react-native": "0.85.3",
|
|
36
|
+
"typescript": "~6.0.3"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"expo": "*",
|