@unbound-app/api 0.9.0 → 0.11.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 +4 -2
- package/src/_internal.d.ts +3463 -447
- package/src/commands.d.ts +255 -0
- package/src/dialogs.d.ts +69 -0
- package/src/fs.d.ts +3 -4
- package/src/global.d.ts +341 -20
- package/src/index.d.ts +2 -0
- package/src/metro/api.d.ts +2 -0
- package/src/metro/components.d.ts +91 -16
- package/src/metro/index.d.ts +32 -13
- package/src/native.d.ts +51 -3
- package/src/settings.d.ts +1 -1
- package/src/storage.d.ts +4 -3
package/src/native.d.ts
CHANGED
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
export type {
|
|
4
4
|
NativeAssociationKey,
|
|
5
|
+
NativeBatchReference,
|
|
6
|
+
NativeBatchStep,
|
|
5
7
|
NativeCallOptions,
|
|
8
|
+
NativeCancelablePromise,
|
|
6
9
|
NativeClassHandle,
|
|
10
|
+
NativeDebugBridge,
|
|
11
|
+
NativeDebugEnvironment,
|
|
12
|
+
NativeDebugEvaluation,
|
|
7
13
|
NativeFFIBridge,
|
|
8
14
|
NativeFFISignature,
|
|
9
15
|
NativeFFIType,
|
|
@@ -17,6 +23,21 @@ export type {
|
|
|
17
23
|
NativeHookHandlers,
|
|
18
24
|
NativeHookOptions,
|
|
19
25
|
NativeHookToken,
|
|
26
|
+
NativeJavaArgument,
|
|
27
|
+
NativeJavaAssociationKey,
|
|
28
|
+
NativeJavaBatchOperation,
|
|
29
|
+
NativeJavaBridge,
|
|
30
|
+
NativeJavaClassDescription,
|
|
31
|
+
NativeJavaFieldDescription,
|
|
32
|
+
NativeJavaHandle,
|
|
33
|
+
NativeJavaHandleValue,
|
|
34
|
+
NativeJavaHookEvent,
|
|
35
|
+
NativeJavaHookOptions,
|
|
36
|
+
NativeJavaHookToken,
|
|
37
|
+
NativeJavaHooksBridge,
|
|
38
|
+
NativeJavaMethodDescription,
|
|
39
|
+
NativeJavaReference,
|
|
40
|
+
NativeJavaValue,
|
|
20
41
|
NativeObjCBridge,
|
|
21
42
|
NativeObjectHandle,
|
|
22
43
|
NativePlatformBridge,
|
|
@@ -24,12 +45,27 @@ export type {
|
|
|
24
45
|
NativePluginCapability,
|
|
25
46
|
NativePluginError,
|
|
26
47
|
NativePluginErrorCode,
|
|
48
|
+
NativePluginPlatform,
|
|
27
49
|
NativePointer,
|
|
50
|
+
NativeRuntimeBridge,
|
|
51
|
+
NativeRuntimeEventName,
|
|
52
|
+
NativeRuntimeEventToken,
|
|
53
|
+
NativeSerializableObject,
|
|
28
54
|
NativeStruct,
|
|
29
55
|
NativeThreadPolicy,
|
|
56
|
+
NativeViewSearchOptions,
|
|
57
|
+
NativeViewSnapshotNode,
|
|
58
|
+
NativeViewSnapshotOptions,
|
|
30
59
|
PluginContext,
|
|
31
60
|
} from './_internal';
|
|
32
|
-
import type {
|
|
61
|
+
import type {
|
|
62
|
+
NativePlatformBridge,
|
|
63
|
+
NativePluginCapability,
|
|
64
|
+
NativePluginPlatform,
|
|
65
|
+
NativeResourceCounts,
|
|
66
|
+
} from './_internal';
|
|
67
|
+
import * as React$1 from 'react';
|
|
68
|
+
import { ReactNode } from 'react';
|
|
33
69
|
declare const NativePlatform$1: NativePlatformBridge | undefined;
|
|
34
70
|
|
|
35
71
|
export declare class NativePluginCapabilityError extends Error {
|
|
@@ -41,9 +77,18 @@ export declare class NativePluginDisposedError extends Error {
|
|
|
41
77
|
readonly code = 'NATIVE_PLUGIN_SCOPE_DISPOSED';
|
|
42
78
|
constructor();
|
|
43
79
|
}
|
|
80
|
+
export declare class NativePluginPlatformError extends Error {
|
|
81
|
+
readonly code = 'NATIVE_PLUGIN_PLATFORM_UNSUPPORTED';
|
|
82
|
+
constructor();
|
|
83
|
+
}
|
|
44
84
|
export declare class NativePluginUnavailableError extends Error {
|
|
45
85
|
readonly code = 'NATIVE_PLUGIN_UNAVAILABLE';
|
|
46
86
|
}
|
|
87
|
+
export declare class NativePluginUnsupportedPlatformError extends Error {
|
|
88
|
+
readonly code = 'NATIVE_PLUGIN_PLATFORM_EXCLUDED';
|
|
89
|
+
readonly platforms: readonly NativePluginPlatform[];
|
|
90
|
+
constructor(platforms: readonly NativePluginPlatform[], platform: string);
|
|
91
|
+
}
|
|
47
92
|
export declare class NativePluginVersionError extends Error {
|
|
48
93
|
readonly code = 'NATIVE_PLUGIN_API_VERSION_UNSUPPORTED';
|
|
49
94
|
readonly installedApi: string;
|
|
@@ -63,6 +108,11 @@ export declare const DeviceInfo: DeviceInfoType;
|
|
|
63
108
|
* @returns The first matching native module.
|
|
64
109
|
*/
|
|
65
110
|
export declare function getNativeModule<T>(...names: string[]): T;
|
|
111
|
+
/**
|
|
112
|
+
* @description Reads how many native resources the loader holds: installed hooks, mounted surfaces, cached hook return values and Java handles still referenced from JavaScript.
|
|
113
|
+
* @returns The counts, or `undefined` when the loader does not report them.
|
|
114
|
+
*/
|
|
115
|
+
export declare function getNativeResources(): NativeResourceCounts | undefined;
|
|
66
116
|
/**
|
|
67
117
|
* @description Reads Hermes' runtime metadata, such as the bytecode version, GC, and build channel.
|
|
68
118
|
* @returns The runtime property map, or an empty object when Hermes internals are unavailable.
|
|
@@ -103,7 +153,6 @@ export type DCDFileManagerConstants = {
|
|
|
103
153
|
CacheDirPath: string;
|
|
104
154
|
DocumentsDirPath: string;
|
|
105
155
|
};
|
|
106
|
-
/** The text encodings accepted by the native `DCDFileManager` read/write operations. */
|
|
107
156
|
export type DCDFileManagerEncoding = 'utf-8' | 'utf8' | 'base64';
|
|
108
157
|
/** The native `DCDFileManager` module surface for reading, writing, and inspecting files. */
|
|
109
158
|
export type DCDFileManagerType = {
|
|
@@ -139,7 +188,6 @@ export type DeviceInfoType = {
|
|
|
139
188
|
};
|
|
140
189
|
export type HermesRuntimeProperties = ReturnType<HermesInternalObject['getRuntimeProperties']>;
|
|
141
190
|
export type UndocumentedNativeMethod = () => Promise<unknown>;
|
|
142
|
-
|
|
143
191
|
export { NativePlatform$1 as NativePlatform };
|
|
144
192
|
|
|
145
193
|
export {};
|
package/src/settings.d.ts
CHANGED
package/src/storage.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ declare class TaskCollection<Func extends Listener = Listener> {
|
|
|
71
71
|
argsNum: number;
|
|
72
72
|
_tasks: Tasks<Func>;
|
|
73
73
|
length: number;
|
|
74
|
-
call: (...args: Parameters<Func>) =>
|
|
74
|
+
call: (...args: Parameters<Func>) => ReturnType<Listener>;
|
|
75
75
|
/**
|
|
76
76
|
* @description Creates a collection holding a single listener.
|
|
77
77
|
* @param argsNum How many arguments each listener receives when more than one is registered.
|
|
@@ -158,8 +158,9 @@ export declare function getStore(store: string): {
|
|
|
158
158
|
) => () => EventEmitter<EventMap>;
|
|
159
159
|
};
|
|
160
160
|
/**
|
|
161
|
-
* @description
|
|
162
|
-
*
|
|
161
|
+
* @description Hands the settings changed since the last call to the loader, which merges them into the
|
|
162
|
+
* settings file key by key, so values the loader wrote in the meantime are kept.
|
|
163
|
+
* @returns A promise that resolves once the loader has stored the changes.
|
|
163
164
|
*/
|
|
164
165
|
export declare function persist(): Promise<void>;
|
|
165
166
|
/**
|