@craft-native/react 0.0.436 → 0.0.442
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/dist/index.d.ts +1 -26
- package/dist/index.d.ts.map +1 -1
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
getPlatform(): Promise<{
|
|
3
|
-
platform: string;
|
|
4
|
-
version: string;
|
|
5
|
-
}>;
|
|
6
|
-
getDeviceInfo(): Promise<{
|
|
7
|
-
platform: string;
|
|
8
|
-
model: string;
|
|
9
|
-
os_version: string;
|
|
10
|
-
}>;
|
|
11
|
-
showToast(message: string, duration: 'short' | 'long'): Promise<void>;
|
|
12
|
-
haptic(type: string): Promise<void>;
|
|
13
|
-
requestPermission(permission: string): Promise<{
|
|
14
|
-
granted: boolean;
|
|
15
|
-
message: string;
|
|
16
|
-
}>;
|
|
17
|
-
on(event: string, callback: (...args: any[]) => void): void;
|
|
18
|
-
off(event: string, callback: (...args: any[]) => void): void;
|
|
19
|
-
emit(event: string, data?: any): void;
|
|
20
|
-
invoke(method: string, params?: any): Promise<any>;
|
|
21
|
-
}
|
|
22
|
-
declare global {
|
|
23
|
-
interface Window {
|
|
24
|
-
craft?: CraftAPI;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
import type { CraftBindingsAPI as CraftAPI } from 'craft-native';
|
|
27
2
|
/**
|
|
28
3
|
* Hook to access the Craft API
|
|
29
4
|
* @returns The Craft API object or null if not available
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEjE;;;GAGG;AACH,wBAAgB,QAAQ;;;EAwBvB;AAED;;;GAGG;AACH,wBAAgB,WAAW;;kBAE4B,MAAM;iBAAW,MAAM;;;;EAc7E;AAED;;;GAGG;AACH,wBAAgB,aAAa;;kBAE8B,MAAM;eAAS,MAAM;oBAAc,MAAM;;;;EAcnG;AAED;;;GAGG;AACH,wBAAgB,QAAQ;yBAIJ,MAAM,aAAY,OAAO,GAAG,MAAM;EAWrD;AAED;;;GAGG;AACH,wBAAgB,SAAS;oBAIR,MAAM;EAkBtB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM;;;;;EA0B/C;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,QAkB9E;AAED;;;GAGG;AACH,wBAAgB,cAAc;qBAIX,MAAM,WAAW,GAAG;;EAUtC;AAED;;;GAGG;AACH,wBAAgB,WAAW,YAO1B;AAED;;;GAGG;AACH,wBAAgB,YAAY,YAO3B;AAGD,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@craft-native/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.442",
|
|
4
4
|
"homepage": "https://github.com/craft-native/craft/tree/main/packages/react#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,5 +46,8 @@
|
|
|
46
46
|
"react": "^18.2.0",
|
|
47
47
|
"tsup": "^8.0.0",
|
|
48
48
|
"typescript": "7.1.0-dev.20261011.1"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"craft-native": "0.0.442"
|
|
49
52
|
}
|
|
50
53
|
}
|