native-fn 1.1.8 → 1.2.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/README.md +2705 -21
- package/dist/index.d.ts +130 -117
- package/dist/native.cjs +581 -563
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +581 -563
- package/dist/native.umd.js +581 -563
- package/dist/native.umd.min.js +1 -1
- 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 +9 -3
- 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 +12 -6
- package/dist/plugin/appearance/src/plugin/vibration/types/vibration.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 +9 -3
- 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 +12 -6
- package/dist/plugin/badge/src/plugin/vibration/types/vibration.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 +9 -3
- 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 +12 -6
- package/dist/plugin/battery/src/plugin/vibration/types/vibration.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 +9 -3
- 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 +12 -6
- package/dist/plugin/clipboard/src/plugin/vibration/types/vibration.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 +9 -3
- 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 +12 -6
- package/dist/plugin/dimension/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/fullscreen/index.cjs +499 -265
- package/dist/plugin/fullscreen/index.d.ts +14 -7
- package/dist/plugin/fullscreen/index.mjs +499 -265
- 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 +9 -3
- 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 +12 -6
- package/dist/plugin/fullscreen/src/plugin/vibration/types/vibration.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 +9 -3
- 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 +12 -6
- package/dist/plugin/geolocation/src/plugin/vibration/types/vibration.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 +9 -3
- 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 +12 -6
- package/dist/plugin/notification/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/open/index.cjs +120 -120
- package/dist/plugin/open/index.d.ts +35 -35
- package/dist/plugin/open/index.mjs +120 -120
- 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 +9 -3
- 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 +12 -6
- package/dist/plugin/open/src/plugin/vibration/types/vibration.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 +9 -3
- 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 +12 -6
- package/dist/plugin/permission/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/pip/index.cjs +255 -273
- package/dist/plugin/pip/index.d.ts +20 -13
- package/dist/plugin/pip/index.mjs +255 -273
- 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 +9 -3
- 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 +12 -6
- package/dist/plugin/pip/src/plugin/vibration/types/vibration.d.ts +1 -1
- package/dist/plugin/platform/index.d.ts +5 -5
- 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 +9 -3
- 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 +12 -6
- package/dist/plugin/platform/src/plugin/vibration/types/vibration.d.ts +1 -1
- 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 +9 -3
- 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 +12 -6
- package/dist/plugin/theme/src/plugin/vibration/types/vibration.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 +9 -3
- 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 +12 -6
- package/dist/plugin/vibration/src/plugin/vibration/types/vibration.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 +9 -3
- 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 +12 -6
- package/dist/src/plugin/vibration/types/vibration.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,27 @@ 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
150
|
supported: boolean;
|
|
149
151
|
element: Element | null;
|
|
150
152
|
isFullscreen: boolean;
|
|
151
153
|
request(target?: Element, options?: FullscreenOptions): Promise<void>;
|
|
152
154
|
exit(): Promise<void>;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
onError(listener: (event: Event) => void, options?: AddEventListenerOptions): () => void;
|
|
155
|
+
onChange(listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
156
|
+
onError(listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
156
157
|
Constants: {};
|
|
157
158
|
Errors: {
|
|
158
159
|
NotSupportedError: typeof NotSupportedError;
|
|
160
|
+
InvalidStateError: typeof InvalidStateError;
|
|
159
161
|
};
|
|
160
162
|
}
|
|
163
|
+
declare interface FullscreenEventPayload {
|
|
164
|
+
nativeEvent: Event;
|
|
165
|
+
element: Element;
|
|
166
|
+
isFullscreen: boolean;
|
|
167
|
+
}
|
|
161
168
|
|
|
162
169
|
declare global {
|
|
163
170
|
interface HTMLVideoElement {
|
|
@@ -167,7 +174,6 @@ declare global {
|
|
|
167
174
|
webkitDisplayingFullscreen?: boolean;
|
|
168
175
|
onwebkitbeginfullscreen?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
169
176
|
onwebkitendfullscreen?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
170
|
-
[key: symbol]: boolean | undefined;
|
|
171
177
|
}
|
|
172
178
|
interface Document {
|
|
173
179
|
readonly fullscreenEnabled: boolean;
|
|
@@ -192,14 +198,15 @@ declare global {
|
|
|
192
198
|
mozRequestFullScreen?: () => Promise<void>;
|
|
193
199
|
msRequestFullscreen?: () => Promise<void>;
|
|
194
200
|
}
|
|
201
|
+
var __nativeFnFsBridgeKey__: symbol | undefined;
|
|
195
202
|
}
|
|
196
|
-
declare const
|
|
203
|
+
declare const Fullscreen: FullscreenInstance;
|
|
197
204
|
|
|
198
205
|
declare const PermissionNotGrantedError: ErrorConstructor;
|
|
199
206
|
|
|
200
207
|
declare interface GeolocationInstance {
|
|
201
|
-
get value(): Promise<GeolocationCoordinates>;
|
|
202
208
|
get supported(): boolean;
|
|
209
|
+
get value(): Promise<GeolocationCoordinates>;
|
|
203
210
|
onChange(listener: (coordinates: GeolocationCoordinates) => void, options?: AddEventListenerOptions): () => void;
|
|
204
211
|
Constants: {};
|
|
205
212
|
Errors: {
|
|
@@ -278,6 +285,42 @@ declare enum DirectoryExploreMode {
|
|
|
278
285
|
ReadWrite = "readwrite"
|
|
279
286
|
}
|
|
280
287
|
|
|
288
|
+
declare enum OS {
|
|
289
|
+
Unknown = "Unknown",
|
|
290
|
+
Android = "Android",
|
|
291
|
+
iOS = "iOS",
|
|
292
|
+
Windows = "Windows",
|
|
293
|
+
MacOS = "MacOS"
|
|
294
|
+
}
|
|
295
|
+
declare enum Devices {
|
|
296
|
+
Unknown = "Unknown",
|
|
297
|
+
Mobile = "Mobile",
|
|
298
|
+
Desktop = "Desktop"
|
|
299
|
+
}
|
|
300
|
+
declare enum Engines {
|
|
301
|
+
Unknown = "Unknown",
|
|
302
|
+
EdgeHTML = "EdgeHTML",
|
|
303
|
+
ArkWeb = "ArkWeb",
|
|
304
|
+
Blink = "Blink",
|
|
305
|
+
Presto = "Presto",
|
|
306
|
+
WebKit = "WebKit",
|
|
307
|
+
Trident = "Trident",
|
|
308
|
+
NetFront = "NetFront",
|
|
309
|
+
KHTML = "KHTML",
|
|
310
|
+
Tasman = "Tasman",
|
|
311
|
+
Gecko = "Gecko"
|
|
312
|
+
}
|
|
313
|
+
declare enum Browsers {
|
|
314
|
+
Unknown = "Unknown",
|
|
315
|
+
Chrome = "Chrome",
|
|
316
|
+
Safari = "Safari",
|
|
317
|
+
Edge = "Edge",
|
|
318
|
+
Firefox = "Firefox",
|
|
319
|
+
Opera = "Opera",
|
|
320
|
+
IE = "IE",
|
|
321
|
+
SamsungInternet = "SamsungInternet"
|
|
322
|
+
}
|
|
323
|
+
|
|
281
324
|
declare interface PlatformInstance {
|
|
282
325
|
get ready(): Promise<void>;
|
|
283
326
|
get userAgent(): string;
|
|
@@ -318,41 +361,69 @@ interface GPUAdapterInfo {
|
|
|
318
361
|
}
|
|
319
362
|
declare type GPU = Writeable<GPUAdapterInfo>;
|
|
320
363
|
|
|
321
|
-
declare
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
364
|
+
declare global {
|
|
365
|
+
interface Navigator {
|
|
366
|
+
userAgent?: string;
|
|
367
|
+
userAgentData?: UserAgentData;
|
|
368
|
+
language?: string;
|
|
369
|
+
languages?: readonly string[];
|
|
370
|
+
browserLanguage?: string;
|
|
371
|
+
systemLanguage?: string;
|
|
372
|
+
userLanguage?: string;
|
|
373
|
+
standalone?: boolean;
|
|
374
|
+
gpu?: WebGPU;
|
|
375
|
+
}
|
|
376
|
+
interface NodeProcessVersions {
|
|
377
|
+
node?: string;
|
|
378
|
+
chrome?: string;
|
|
379
|
+
}
|
|
380
|
+
interface NodeProcess {
|
|
381
|
+
versions?: NodeProcessVersions;
|
|
382
|
+
type?: string;
|
|
383
|
+
platform?: string;
|
|
384
|
+
getSystemVersion?(): string;
|
|
385
|
+
}
|
|
386
|
+
var process: NodeProcess | undefined;
|
|
387
|
+
namespace Intl {
|
|
388
|
+
const Locale: {
|
|
389
|
+
new (tag: string): IntlLocale;
|
|
390
|
+
};
|
|
391
|
+
}
|
|
327
392
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
Desktop = "Desktop"
|
|
393
|
+
interface IntlLocale {
|
|
394
|
+
getTextInfo?(): IntlLocaleTextInfo;
|
|
395
|
+
textInfo: IntlLocaleTextInfo;
|
|
332
396
|
}
|
|
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"
|
|
397
|
+
interface IntlLocaleTextInfo {
|
|
398
|
+
direction: 'rtl' | 'ltr';
|
|
345
399
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
400
|
+
interface ModernUserAgentDataBrand {
|
|
401
|
+
brand: string;
|
|
402
|
+
version: string;
|
|
403
|
+
}
|
|
404
|
+
type UserAgentDataBrand = ModernUserAgentDataBrand | string | null | undefined;
|
|
405
|
+
interface UserAgentDataValues {
|
|
406
|
+
brands?: UserAgentDataBrand[];
|
|
407
|
+
fullVersionList?: UserAgentDataBrand[];
|
|
408
|
+
platformVersion?: string | null | undefined;
|
|
409
|
+
platform?: string | null | undefined;
|
|
410
|
+
mobile?: boolean;
|
|
411
|
+
}
|
|
412
|
+
interface UserAgentData {
|
|
413
|
+
getHighEntropyValues?(hints: string[]): Promise<UserAgentDataValues>;
|
|
414
|
+
}
|
|
415
|
+
interface WebGPU {
|
|
416
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
417
|
+
}
|
|
418
|
+
interface GPURequestAdapterOptions {
|
|
419
|
+
powerPreference?: GPUPowerPreference;
|
|
420
|
+
forceFallbackAdapter?: boolean;
|
|
355
421
|
}
|
|
422
|
+
type GPUPowerPreference = 'low-power' | 'high-performance';
|
|
423
|
+
interface GPUAdapter {
|
|
424
|
+
readonly info: GPUAdapterInfo;
|
|
425
|
+
}
|
|
426
|
+
declare const Platform: PlatformInstance;
|
|
356
427
|
|
|
357
428
|
declare const URLOpenError: ErrorConstructor;
|
|
358
429
|
|
|
@@ -602,70 +673,6 @@ interface ContactsManager {
|
|
|
602
673
|
}
|
|
603
674
|
declare const Open: OpenInstance;
|
|
604
675
|
|
|
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
676
|
declare interface ThemeInstance {
|
|
670
677
|
get value(): string | undefined;
|
|
671
678
|
set value(color: string | undefined);
|
|
@@ -676,9 +683,9 @@ declare interface ThemeInstance {
|
|
|
676
683
|
declare const Theme: ThemeInstance;
|
|
677
684
|
|
|
678
685
|
declare interface VibrationInstance {
|
|
686
|
+
get supported(): boolean;
|
|
679
687
|
run(pattern: number | number[]): boolean;
|
|
680
688
|
stop(): boolean;
|
|
681
|
-
get supported(): boolean;
|
|
682
689
|
Constants: {};
|
|
683
690
|
Errors: {
|
|
684
691
|
NotSupportedError: typeof NotSupportedError;
|
|
@@ -711,6 +718,7 @@ declare enum PermissionState {
|
|
|
711
718
|
}
|
|
712
719
|
|
|
713
720
|
declare interface PermissionInstance {
|
|
721
|
+
get supported(): boolean;
|
|
714
722
|
request(type: PermissionType): Promise<PermissionState>;
|
|
715
723
|
check(type: PermissionType): Promise<PermissionState>;
|
|
716
724
|
Constants: {
|
|
@@ -723,30 +731,35 @@ declare interface PermissionInstance {
|
|
|
723
731
|
declare const Permission: PermissionInstance;
|
|
724
732
|
|
|
725
733
|
declare interface PipInstance {
|
|
726
|
-
supported: boolean;
|
|
727
|
-
element: HTMLVideoElement | null;
|
|
728
|
-
isPip: boolean;
|
|
734
|
+
get supported(): boolean;
|
|
735
|
+
get element(): HTMLVideoElement | null;
|
|
736
|
+
get isPip(): boolean;
|
|
729
737
|
request(target?: HTMLVideoElement): Promise<void>;
|
|
730
738
|
exit(): Promise<void>;
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
onError(listener: (event: Event) => void, options?: AddEventListenerOptions): () => void;
|
|
739
|
+
onChange(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
740
|
+
onError(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
734
741
|
Constants: {};
|
|
735
742
|
Errors: {
|
|
736
743
|
NotSupportedError: typeof NotSupportedError;
|
|
744
|
+
InvalidStateError: typeof InvalidStateError;
|
|
737
745
|
};
|
|
738
746
|
}
|
|
747
|
+
declare interface PipEventPayload {
|
|
748
|
+
nativeEvent: Event;
|
|
749
|
+
element: HTMLVideoElement;
|
|
750
|
+
isPip: boolean;
|
|
751
|
+
}
|
|
739
752
|
|
|
740
753
|
declare global {
|
|
741
754
|
interface HTMLVideoElement {
|
|
742
|
-
webkitSupportsPresentationMode
|
|
743
|
-
webkitSetPresentationMode
|
|
755
|
+
webkitSupportsPresentationMode?(mode: string): boolean;
|
|
756
|
+
webkitSetPresentationMode?(mode: string): void;
|
|
744
757
|
webkitPresentationMode?: string;
|
|
745
|
-
onwebkitpresentationmodechanged?: ((this:
|
|
746
|
-
[key: symbol]: boolean | undefined;
|
|
758
|
+
onwebkitpresentationmodechanged?: ((this: Element, ev: Event) => any) | null;
|
|
747
759
|
}
|
|
760
|
+
var __nativeFnPipBridgeKey__: symbol | undefined;
|
|
748
761
|
}
|
|
749
|
-
declare const
|
|
762
|
+
declare const Pip: PipInstance;
|
|
750
763
|
|
|
751
764
|
declare interface NativeInstance {
|
|
752
765
|
version: string;
|
|
@@ -755,13 +768,13 @@ declare interface NativeInstance {
|
|
|
755
768
|
battery: typeof Battery;
|
|
756
769
|
clipboard: typeof Clipboard;
|
|
757
770
|
dimension: typeof Dimension;
|
|
758
|
-
fullscreen: typeof
|
|
771
|
+
fullscreen: typeof Fullscreen;
|
|
759
772
|
geolocation: typeof Geolocation;
|
|
760
773
|
notification: typeof Notification$1;
|
|
761
774
|
open: typeof Open;
|
|
762
775
|
permission: typeof Permission;
|
|
763
776
|
platform: typeof Platform;
|
|
764
|
-
pip: typeof
|
|
777
|
+
pip: typeof Pip;
|
|
765
778
|
theme: typeof Theme;
|
|
766
779
|
vibration: typeof Vibration;
|
|
767
780
|
}
|