native-fn 1.1.9 → 1.2.1
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/README.md +488 -146
- package/dist/index.d.ts +138 -119
- package/dist/native.cjs +661 -565
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +661 -565
- package/dist/native.umd.js +661 -565
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/appearance/index.cjs +8 -3
- package/dist/plugin/appearance/index.mjs +8 -3
- package/dist/plugin/appearance/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/appearance/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/appearance/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/appearance/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/appearance/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/appearance/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/appearance/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/appearance/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/appearance/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/appearance/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/appearance/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/badge/index.cjs +2 -2
- package/dist/plugin/badge/index.d.ts +1 -1
- package/dist/plugin/badge/index.mjs +2 -2
- package/dist/plugin/badge/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/badge/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/badge/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/badge/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/badge/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/badge/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/badge/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/badge/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/badge/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/badge/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/battery/index.cjs +3 -3
- package/dist/plugin/battery/index.d.ts +1 -1
- package/dist/plugin/battery/index.mjs +3 -3
- package/dist/plugin/battery/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/battery/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/battery/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/battery/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/battery/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/battery/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/battery/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/battery/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/battery/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/battery/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/battery/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/clipboard/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/clipboard/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/clipboard/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/clipboard/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/clipboard/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/clipboard/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/clipboard/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/clipboard/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/clipboard/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/clipboard/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/dimension/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/dimension/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/dimension/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/dimension/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/dimension/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/dimension/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/dimension/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/dimension/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/dimension/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/dimension/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/dimension/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/fullscreen/index.cjs +539 -266
- package/dist/plugin/fullscreen/index.d.ts +20 -10
- package/dist/plugin/fullscreen/index.mjs +539 -266
- package/dist/plugin/fullscreen/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/fullscreen/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/fullscreen/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/fullscreen/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/fullscreen/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/fullscreen/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/fullscreen/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/fullscreen/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/fullscreen/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/fullscreen/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/geolocation/index.cjs +6 -0
- package/dist/plugin/geolocation/index.d.ts +1 -1
- package/dist/plugin/geolocation/index.mjs +6 -0
- package/dist/plugin/geolocation/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/geolocation/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/geolocation/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/geolocation/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/geolocation/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/geolocation/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/geolocation/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/geolocation/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/geolocation/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/geolocation/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/geolocation/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/notification/index.cjs +6 -0
- package/dist/plugin/notification/index.mjs +6 -0
- package/dist/plugin/notification/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/notification/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/notification/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/notification/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/notification/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/notification/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/notification/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/notification/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/notification/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/notification/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/notification/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/open/index.cjs +128 -123
- package/dist/plugin/open/index.d.ts +35 -35
- package/dist/plugin/open/index.mjs +128 -123
- package/dist/plugin/open/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/open/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/open/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/open/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/open/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/open/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/open/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/open/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/open/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/open/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/open/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/open/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/permission/index.cjs +6 -0
- package/dist/plugin/permission/index.d.ts +1 -0
- package/dist/plugin/permission/index.mjs +6 -0
- package/dist/plugin/permission/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/permission/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/permission/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/permission/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/permission/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/permission/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/permission/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/permission/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/permission/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/permission/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/permission/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/pip/index.cjs +651 -268
- package/dist/plugin/pip/index.d.ts +22 -12
- package/dist/plugin/pip/index.mjs +651 -268
- package/dist/plugin/pip/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/pip/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/pip/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/pip/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/pip/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/pip/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/pip/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/pip/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/pip/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/pip/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/pip/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/platform/index.cjs +8 -3
- package/dist/plugin/platform/index.d.ts +5 -5
- package/dist/plugin/platform/index.mjs +8 -3
- package/dist/plugin/platform/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/platform/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/platform/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/platform/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/platform/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/platform/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/platform/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/platform/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/platform/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/platform/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/platform/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/theme/index.cjs +8 -3
- package/dist/plugin/theme/index.mjs +8 -3
- package/dist/plugin/theme/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/theme/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/theme/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/theme/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/theme/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/theme/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/theme/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/theme/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/theme/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/theme/src/types/subscription-manager.d.ts +1 -1
- package/dist/plugin/vibration/index.cjs +5 -5
- package/dist/plugin/vibration/index.d.ts +1 -1
- package/dist/plugin/vibration/index.mjs +5 -5
- package/dist/plugin/vibration/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/plugin/vibration/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/plugin/vibration/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/plugin/vibration/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/plugin/vibration/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/plugin/vibration/src/plugin/open/types/open.d.ts +1 -1
- package/dist/plugin/vibration/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/plugin/vibration/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/plugin/vibration/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/vibration/src/types/subscription-manager.d.ts +1 -1
- package/dist/src/errors/invalid-state-error.d.ts +2 -0
- package/dist/src/plugin/badge/types/badge.d.ts +1 -1
- package/dist/src/plugin/battery/types/battery.d.ts +1 -1
- package/dist/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/src/plugin/fullscreen/types/fullscreen.d.ts +15 -6
- package/dist/src/plugin/geolocation/types/geolocation.d.ts +1 -1
- package/dist/src/plugin/open/types/open.d.ts +1 -1
- package/dist/src/plugin/permission/types/permission.d.ts +1 -0
- package/dist/src/plugin/pip/cores/index.d.ts +6 -6
- package/dist/src/plugin/pip/types/pip.d.ts +14 -5
- package/dist/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/src/types/subscription-manager.d.ts +1 -1
- package/package.json +21 -13
package/dist/index.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ declare const Appearance: AppearanceInstance;
|
|
|
18
18
|
declare const NotSupportedError: ErrorConstructor;
|
|
19
19
|
|
|
20
20
|
declare interface BadgeInstance {
|
|
21
|
+
get supported(): boolean;
|
|
21
22
|
set(contents: number): Promise<void>;
|
|
22
23
|
clear(): Promise<void>;
|
|
23
|
-
get supported(): boolean;
|
|
24
24
|
Constants: {};
|
|
25
25
|
Errors: {
|
|
26
26
|
NotSupportedError: typeof NotSupportedError;
|
|
@@ -46,8 +46,8 @@ interface BatteryManager extends EventTarget {
|
|
|
46
46
|
onlevelchange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
47
47
|
}
|
|
48
48
|
declare interface BatteryInstance {
|
|
49
|
-
get value(): Promise<BatteryManager>;
|
|
50
49
|
get supported(): boolean;
|
|
50
|
+
get value(): Promise<BatteryManager>;
|
|
51
51
|
onChange(listener: (battery: BatteryManager) => void, options?: AddEventListenerOptions): () => void;
|
|
52
52
|
Constants: {};
|
|
53
53
|
Errors: {
|
|
@@ -144,20 +144,30 @@ declare interface Environment {
|
|
|
144
144
|
|
|
145
145
|
declare const Dimension: DimensionInstance;
|
|
146
146
|
|
|
147
|
+
declare const InvalidStateError: ErrorConstructor;
|
|
148
|
+
|
|
147
149
|
declare interface FullscreenInstance {
|
|
148
|
-
supported: boolean;
|
|
149
|
-
element: Element | null;
|
|
150
|
-
|
|
150
|
+
get supported(): boolean;
|
|
151
|
+
get element(): Element | null;
|
|
152
|
+
get isActive(): boolean;
|
|
151
153
|
request(target?: Element, options?: FullscreenOptions): Promise<void>;
|
|
152
|
-
exit(): Promise<void>;
|
|
153
154
|
toggle(target?: Element, options?: FullscreenOptions): Promise<void>;
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
exit(): Promise<void>;
|
|
156
|
+
onChange(listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
157
|
+
onChange(target: Element, listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
158
|
+
onError(listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
159
|
+
onChange(target: Element, listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
156
160
|
Constants: {};
|
|
157
161
|
Errors: {
|
|
158
162
|
NotSupportedError: typeof NotSupportedError;
|
|
163
|
+
InvalidStateError: typeof InvalidStateError;
|
|
159
164
|
};
|
|
160
165
|
}
|
|
166
|
+
declare interface FullscreenEventPayload {
|
|
167
|
+
nativeEvent: Event;
|
|
168
|
+
element: Element;
|
|
169
|
+
isActive: boolean;
|
|
170
|
+
}
|
|
161
171
|
|
|
162
172
|
declare global {
|
|
163
173
|
interface HTMLVideoElement {
|
|
@@ -167,7 +177,6 @@ declare global {
|
|
|
167
177
|
webkitDisplayingFullscreen?: boolean;
|
|
168
178
|
onwebkitbeginfullscreen?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
169
179
|
onwebkitendfullscreen?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
170
|
-
[key: symbol]: boolean | undefined;
|
|
171
180
|
}
|
|
172
181
|
interface Document {
|
|
173
182
|
readonly fullscreenEnabled: boolean;
|
|
@@ -192,14 +201,15 @@ declare global {
|
|
|
192
201
|
mozRequestFullScreen?: () => Promise<void>;
|
|
193
202
|
msRequestFullscreen?: () => Promise<void>;
|
|
194
203
|
}
|
|
204
|
+
var __nativeFnFsBridgeKey__: symbol | undefined;
|
|
195
205
|
}
|
|
196
|
-
declare const
|
|
206
|
+
declare const Fullscreen: FullscreenInstance;
|
|
197
207
|
|
|
198
208
|
declare const PermissionNotGrantedError: ErrorConstructor;
|
|
199
209
|
|
|
200
210
|
declare interface GeolocationInstance {
|
|
201
|
-
get value(): Promise<GeolocationCoordinates>;
|
|
202
211
|
get supported(): boolean;
|
|
212
|
+
get value(): Promise<GeolocationCoordinates>;
|
|
203
213
|
onChange(listener: (coordinates: GeolocationCoordinates) => void, options?: AddEventListenerOptions): () => void;
|
|
204
214
|
Constants: {};
|
|
205
215
|
Errors: {
|
|
@@ -278,6 +288,42 @@ declare enum DirectoryExploreMode {
|
|
|
278
288
|
ReadWrite = "readwrite"
|
|
279
289
|
}
|
|
280
290
|
|
|
291
|
+
declare enum OS {
|
|
292
|
+
Unknown = "Unknown",
|
|
293
|
+
Android = "Android",
|
|
294
|
+
iOS = "iOS",
|
|
295
|
+
Windows = "Windows",
|
|
296
|
+
MacOS = "MacOS"
|
|
297
|
+
}
|
|
298
|
+
declare enum Devices {
|
|
299
|
+
Unknown = "Unknown",
|
|
300
|
+
Mobile = "Mobile",
|
|
301
|
+
Desktop = "Desktop"
|
|
302
|
+
}
|
|
303
|
+
declare enum Engines {
|
|
304
|
+
Unknown = "Unknown",
|
|
305
|
+
EdgeHTML = "EdgeHTML",
|
|
306
|
+
ArkWeb = "ArkWeb",
|
|
307
|
+
Blink = "Blink",
|
|
308
|
+
Presto = "Presto",
|
|
309
|
+
WebKit = "WebKit",
|
|
310
|
+
Trident = "Trident",
|
|
311
|
+
NetFront = "NetFront",
|
|
312
|
+
KHTML = "KHTML",
|
|
313
|
+
Tasman = "Tasman",
|
|
314
|
+
Gecko = "Gecko"
|
|
315
|
+
}
|
|
316
|
+
declare enum Browsers {
|
|
317
|
+
Unknown = "Unknown",
|
|
318
|
+
Chrome = "Chrome",
|
|
319
|
+
Safari = "Safari",
|
|
320
|
+
Edge = "Edge",
|
|
321
|
+
Firefox = "Firefox",
|
|
322
|
+
Opera = "Opera",
|
|
323
|
+
IE = "IE",
|
|
324
|
+
SamsungInternet = "SamsungInternet"
|
|
325
|
+
}
|
|
326
|
+
|
|
281
327
|
declare interface PlatformInstance {
|
|
282
328
|
get ready(): Promise<void>;
|
|
283
329
|
get userAgent(): string;
|
|
@@ -318,41 +364,69 @@ interface GPUAdapterInfo {
|
|
|
318
364
|
}
|
|
319
365
|
declare type GPU = Writeable<GPUAdapterInfo>;
|
|
320
366
|
|
|
321
|
-
declare
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
367
|
+
declare global {
|
|
368
|
+
interface Navigator {
|
|
369
|
+
userAgent?: string;
|
|
370
|
+
userAgentData?: UserAgentData;
|
|
371
|
+
language?: string;
|
|
372
|
+
languages?: readonly string[];
|
|
373
|
+
browserLanguage?: string;
|
|
374
|
+
systemLanguage?: string;
|
|
375
|
+
userLanguage?: string;
|
|
376
|
+
standalone?: boolean;
|
|
377
|
+
gpu?: WebGPU;
|
|
378
|
+
}
|
|
379
|
+
interface NodeProcessVersions {
|
|
380
|
+
node?: string;
|
|
381
|
+
chrome?: string;
|
|
382
|
+
}
|
|
383
|
+
interface NodeProcess {
|
|
384
|
+
versions?: NodeProcessVersions;
|
|
385
|
+
type?: string;
|
|
386
|
+
platform?: string;
|
|
387
|
+
getSystemVersion?(): string;
|
|
388
|
+
}
|
|
389
|
+
var process: NodeProcess | undefined;
|
|
390
|
+
namespace Intl {
|
|
391
|
+
const Locale: {
|
|
392
|
+
new (tag: string): IntlLocale;
|
|
393
|
+
};
|
|
394
|
+
}
|
|
327
395
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
Desktop = "Desktop"
|
|
396
|
+
interface IntlLocale {
|
|
397
|
+
getTextInfo?(): IntlLocaleTextInfo;
|
|
398
|
+
textInfo: IntlLocaleTextInfo;
|
|
332
399
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
EdgeHTML = "EdgeHTML",
|
|
336
|
-
ArkWeb = "ArkWeb",
|
|
337
|
-
Blink = "Blink",
|
|
338
|
-
Presto = "Presto",
|
|
339
|
-
WebKit = "WebKit",
|
|
340
|
-
Trident = "Trident",
|
|
341
|
-
NetFront = "NetFront",
|
|
342
|
-
KHTML = "KHTML",
|
|
343
|
-
Tasman = "Tasman",
|
|
344
|
-
Gecko = "Gecko"
|
|
400
|
+
interface IntlLocaleTextInfo {
|
|
401
|
+
direction: 'rtl' | 'ltr';
|
|
345
402
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
403
|
+
interface ModernUserAgentDataBrand {
|
|
404
|
+
brand: string;
|
|
405
|
+
version: string;
|
|
406
|
+
}
|
|
407
|
+
type UserAgentDataBrand = ModernUserAgentDataBrand | string | null | undefined;
|
|
408
|
+
interface UserAgentDataValues {
|
|
409
|
+
brands?: UserAgentDataBrand[];
|
|
410
|
+
fullVersionList?: UserAgentDataBrand[];
|
|
411
|
+
platformVersion?: string | null | undefined;
|
|
412
|
+
platform?: string | null | undefined;
|
|
413
|
+
mobile?: boolean;
|
|
414
|
+
}
|
|
415
|
+
interface UserAgentData {
|
|
416
|
+
getHighEntropyValues?(hints: string[]): Promise<UserAgentDataValues>;
|
|
417
|
+
}
|
|
418
|
+
interface WebGPU {
|
|
419
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
420
|
+
}
|
|
421
|
+
interface GPURequestAdapterOptions {
|
|
422
|
+
powerPreference?: GPUPowerPreference;
|
|
423
|
+
forceFallbackAdapter?: boolean;
|
|
424
|
+
}
|
|
425
|
+
type GPUPowerPreference = 'low-power' | 'high-performance';
|
|
426
|
+
interface GPUAdapter {
|
|
427
|
+
readonly info: GPUAdapterInfo;
|
|
355
428
|
}
|
|
429
|
+
declare const Platform: PlatformInstance;
|
|
356
430
|
|
|
357
431
|
declare const URLOpenError: ErrorConstructor;
|
|
358
432
|
|
|
@@ -602,70 +676,6 @@ interface ContactsManager {
|
|
|
602
676
|
}
|
|
603
677
|
declare const Open: OpenInstance;
|
|
604
678
|
|
|
605
|
-
declare global {
|
|
606
|
-
interface Navigator {
|
|
607
|
-
userAgent?: string;
|
|
608
|
-
userAgentData?: UserAgentData;
|
|
609
|
-
language?: string;
|
|
610
|
-
languages?: readonly string[];
|
|
611
|
-
browserLanguage?: string;
|
|
612
|
-
systemLanguage?: string;
|
|
613
|
-
userLanguage?: string;
|
|
614
|
-
standalone?: boolean;
|
|
615
|
-
gpu?: WebGPU;
|
|
616
|
-
}
|
|
617
|
-
interface NodeProcessVersions {
|
|
618
|
-
node?: string;
|
|
619
|
-
chrome?: string;
|
|
620
|
-
}
|
|
621
|
-
interface NodeProcess {
|
|
622
|
-
versions?: NodeProcessVersions;
|
|
623
|
-
type?: string;
|
|
624
|
-
platform?: string;
|
|
625
|
-
getSystemVersion?(): string;
|
|
626
|
-
}
|
|
627
|
-
var process: NodeProcess | undefined;
|
|
628
|
-
namespace Intl {
|
|
629
|
-
const Locale: {
|
|
630
|
-
new (tag: string): IntlLocale;
|
|
631
|
-
};
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
interface IntlLocale {
|
|
635
|
-
getTextInfo?(): IntlLocaleTextInfo;
|
|
636
|
-
textInfo: IntlLocaleTextInfo;
|
|
637
|
-
}
|
|
638
|
-
interface IntlLocaleTextInfo {
|
|
639
|
-
direction: 'rtl' | 'ltr';
|
|
640
|
-
}
|
|
641
|
-
interface ModernUserAgentDataBrand {
|
|
642
|
-
brand: string;
|
|
643
|
-
version: string;
|
|
644
|
-
}
|
|
645
|
-
type UserAgentDataBrand = ModernUserAgentDataBrand | string | null | undefined;
|
|
646
|
-
interface UserAgentDataValues {
|
|
647
|
-
brands?: UserAgentDataBrand[];
|
|
648
|
-
fullVersionList?: UserAgentDataBrand[];
|
|
649
|
-
platformVersion?: string | null | undefined;
|
|
650
|
-
platform?: string | null | undefined;
|
|
651
|
-
mobile?: boolean;
|
|
652
|
-
}
|
|
653
|
-
interface UserAgentData {
|
|
654
|
-
getHighEntropyValues?(hints: string[]): Promise<UserAgentDataValues>;
|
|
655
|
-
}
|
|
656
|
-
interface WebGPU {
|
|
657
|
-
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
658
|
-
}
|
|
659
|
-
interface GPURequestAdapterOptions {
|
|
660
|
-
powerPreference?: GPUPowerPreference;
|
|
661
|
-
forceFallbackAdapter?: boolean;
|
|
662
|
-
}
|
|
663
|
-
type GPUPowerPreference = 'low-power' | 'high-performance';
|
|
664
|
-
interface GPUAdapter {
|
|
665
|
-
readonly info: GPUAdapterInfo;
|
|
666
|
-
}
|
|
667
|
-
declare const Platform: PlatformInstance;
|
|
668
|
-
|
|
669
679
|
declare interface ThemeInstance {
|
|
670
680
|
get value(): string | undefined;
|
|
671
681
|
set value(color: string | undefined);
|
|
@@ -676,9 +686,9 @@ declare interface ThemeInstance {
|
|
|
676
686
|
declare const Theme: ThemeInstance;
|
|
677
687
|
|
|
678
688
|
declare interface VibrationInstance {
|
|
689
|
+
get supported(): boolean;
|
|
679
690
|
run(pattern: number | number[]): boolean;
|
|
680
691
|
stop(): boolean;
|
|
681
|
-
get supported(): boolean;
|
|
682
692
|
Constants: {};
|
|
683
693
|
Errors: {
|
|
684
694
|
NotSupportedError: typeof NotSupportedError;
|
|
@@ -711,6 +721,7 @@ declare enum PermissionState {
|
|
|
711
721
|
}
|
|
712
722
|
|
|
713
723
|
declare interface PermissionInstance {
|
|
724
|
+
get supported(): boolean;
|
|
714
725
|
request(type: PermissionType): Promise<PermissionState>;
|
|
715
726
|
check(type: PermissionType): Promise<PermissionState>;
|
|
716
727
|
Constants: {
|
|
@@ -723,30 +734,38 @@ declare interface PermissionInstance {
|
|
|
723
734
|
declare const Permission: PermissionInstance;
|
|
724
735
|
|
|
725
736
|
declare interface PipInstance {
|
|
726
|
-
supported: boolean;
|
|
727
|
-
element: HTMLVideoElement | null;
|
|
728
|
-
|
|
737
|
+
get supported(): boolean;
|
|
738
|
+
get element(): HTMLVideoElement | null;
|
|
739
|
+
get isActive(): boolean;
|
|
729
740
|
request(target?: HTMLVideoElement): Promise<void>;
|
|
730
741
|
exit(): Promise<void>;
|
|
731
742
|
toggle(target?: HTMLVideoElement): Promise<void>;
|
|
732
|
-
onChange(listener: (
|
|
733
|
-
|
|
743
|
+
onChange(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
744
|
+
onChange(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
745
|
+
onError(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
746
|
+
onError(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
734
747
|
Constants: {};
|
|
735
748
|
Errors: {
|
|
736
749
|
NotSupportedError: typeof NotSupportedError;
|
|
750
|
+
InvalidStateError: typeof InvalidStateError;
|
|
737
751
|
};
|
|
738
752
|
}
|
|
753
|
+
declare interface PipEventPayload {
|
|
754
|
+
nativeEvent: Event;
|
|
755
|
+
element: HTMLVideoElement;
|
|
756
|
+
isActive: boolean;
|
|
757
|
+
}
|
|
739
758
|
|
|
740
759
|
declare global {
|
|
741
760
|
interface HTMLVideoElement {
|
|
742
|
-
webkitSupportsPresentationMode
|
|
743
|
-
webkitSetPresentationMode
|
|
761
|
+
webkitSupportsPresentationMode?(mode: string): boolean;
|
|
762
|
+
webkitSetPresentationMode?(mode: string): void;
|
|
744
763
|
webkitPresentationMode?: string;
|
|
745
|
-
onwebkitpresentationmodechanged?: ((this:
|
|
746
|
-
[key: symbol]: boolean | undefined;
|
|
764
|
+
onwebkitpresentationmodechanged?: ((this: Element, ev: Event) => any) | null;
|
|
747
765
|
}
|
|
766
|
+
var __nativeFnPipBridgeKey__: symbol | undefined;
|
|
748
767
|
}
|
|
749
|
-
declare const
|
|
768
|
+
declare const Pip: PipInstance;
|
|
750
769
|
|
|
751
770
|
declare interface NativeInstance {
|
|
752
771
|
version: string;
|
|
@@ -755,13 +774,13 @@ declare interface NativeInstance {
|
|
|
755
774
|
battery: typeof Battery;
|
|
756
775
|
clipboard: typeof Clipboard;
|
|
757
776
|
dimension: typeof Dimension;
|
|
758
|
-
fullscreen: typeof
|
|
777
|
+
fullscreen: typeof Fullscreen;
|
|
759
778
|
geolocation: typeof Geolocation;
|
|
760
779
|
notification: typeof Notification$1;
|
|
761
780
|
open: typeof Open;
|
|
762
781
|
permission: typeof Permission;
|
|
763
782
|
platform: typeof Platform;
|
|
764
|
-
pip: typeof
|
|
783
|
+
pip: typeof Pip;
|
|
765
784
|
theme: typeof Theme;
|
|
766
785
|
vibration: typeof Vibration;
|
|
767
786
|
}
|