native-fn 1.1.9 → 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 +488 -146
- 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
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
function compareVersion(lhs, rhs) {
|
|
6
|
+
var pa = lhs.split('.');
|
|
7
|
+
var pb = rhs.split('.');
|
|
8
|
+
var length = Math.max(pa.length, pb.length);
|
|
9
|
+
for (var i = 0; i < length; i++) {
|
|
10
|
+
var a = void 0;
|
|
11
|
+
var b = void 0;
|
|
12
|
+
if (i < pa.length)
|
|
13
|
+
a = parseInt(pa[i], 10);
|
|
14
|
+
else
|
|
15
|
+
a = 0;
|
|
16
|
+
if (i < pb.length)
|
|
17
|
+
b = parseInt(pb[i], 10);
|
|
18
|
+
else
|
|
19
|
+
b = 0;
|
|
20
|
+
if (a > b)
|
|
21
|
+
return 1;
|
|
22
|
+
if (a < b)
|
|
23
|
+
return -1;
|
|
24
|
+
}
|
|
25
|
+
return 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
5
28
|
function resolveWindowsVersion(string) {
|
|
6
29
|
if (typeof string === 'undefined')
|
|
7
30
|
return '';
|
|
@@ -140,126 +163,6 @@ var BROWSER_RESOLVER_MAP = [
|
|
|
140
163
|
[/firefox\/([\w.]+)/i, Browsers.Firefox],
|
|
141
164
|
];
|
|
142
165
|
|
|
143
|
-
var _a, _b, _c, _d, _e;
|
|
144
|
-
exports.AppOpenState = void 0;
|
|
145
|
-
(function (AppOpenState) {
|
|
146
|
-
AppOpenState[AppOpenState["Scheme"] = 0] = "Scheme";
|
|
147
|
-
AppOpenState[AppOpenState["Universal"] = 1] = "Universal";
|
|
148
|
-
AppOpenState[AppOpenState["Intent"] = 2] = "Intent";
|
|
149
|
-
AppOpenState[AppOpenState["Fallback"] = 3] = "Fallback";
|
|
150
|
-
AppOpenState[AppOpenState["Store"] = 4] = "Store";
|
|
151
|
-
})(exports.AppOpenState || (exports.AppOpenState = {}));
|
|
152
|
-
exports.SettingType = void 0;
|
|
153
|
-
(function (SettingType) {
|
|
154
|
-
SettingType["General"] = "general";
|
|
155
|
-
SettingType["Network"] = "network";
|
|
156
|
-
SettingType["Display"] = "display";
|
|
157
|
-
SettingType["Appearance"] = "appearance";
|
|
158
|
-
SettingType["Accessibility"] = "accessibility";
|
|
159
|
-
SettingType["Battery"] = "battery";
|
|
160
|
-
SettingType["Datetime"] = "datetime";
|
|
161
|
-
SettingType["Language"] = "language";
|
|
162
|
-
SettingType["Accounts"] = "accounts";
|
|
163
|
-
SettingType["Storage"] = "storage";
|
|
164
|
-
})(exports.SettingType || (exports.SettingType = {}));
|
|
165
|
-
exports.CameraType = void 0;
|
|
166
|
-
(function (CameraType) {
|
|
167
|
-
CameraType["Image"] = "image";
|
|
168
|
-
CameraType["Video"] = "video";
|
|
169
|
-
})(exports.CameraType || (exports.CameraType = {}));
|
|
170
|
-
exports.CaptureType = void 0;
|
|
171
|
-
(function (CaptureType) {
|
|
172
|
-
CaptureType["User"] = "user";
|
|
173
|
-
CaptureType["Environment"] = "environment";
|
|
174
|
-
})(exports.CaptureType || (exports.CaptureType = {}));
|
|
175
|
-
exports.ExplorerStartIn = void 0;
|
|
176
|
-
(function (ExplorerStartIn) {
|
|
177
|
-
ExplorerStartIn["Desktop"] = "desktop";
|
|
178
|
-
ExplorerStartIn["Documents"] = "documents";
|
|
179
|
-
ExplorerStartIn["Downloads"] = "downloads";
|
|
180
|
-
ExplorerStartIn["Music"] = "music";
|
|
181
|
-
ExplorerStartIn["Pictures"] = "pictures";
|
|
182
|
-
ExplorerStartIn["Videos"] = "videos";
|
|
183
|
-
})(exports.ExplorerStartIn || (exports.ExplorerStartIn = {}));
|
|
184
|
-
exports.DirectoryExploreMode = void 0;
|
|
185
|
-
(function (DirectoryExploreMode) {
|
|
186
|
-
DirectoryExploreMode["Read"] = "read";
|
|
187
|
-
DirectoryExploreMode["ReadWrite"] = "readwrite";
|
|
188
|
-
})(exports.DirectoryExploreMode || (exports.DirectoryExploreMode = {}));
|
|
189
|
-
var SETTING_URL = (_a = {},
|
|
190
|
-
_a[OS.Android] = (_b = {},
|
|
191
|
-
_b[exports.SettingType.General] = 'intent:#Intent;action=android.settings.SETTINGS;end',
|
|
192
|
-
_b[exports.SettingType.Network] = 'intent:#Intent;action=android.settings.WIFI_SETTINGS;end',
|
|
193
|
-
_b[exports.SettingType.Display] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
194
|
-
_b[exports.SettingType.Appearance] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
195
|
-
_b[exports.SettingType.Accessibility] = 'intent:#Intent;action=android.settings.ACCESSIBILITY_SETTINGS;end',
|
|
196
|
-
_b[exports.SettingType.Battery] = 'intent:#Intent;action=android.settings.BATTERY_SAVER_SETTINGS;end',
|
|
197
|
-
_b[exports.SettingType.Datetime] = 'intent:#Intent;action=android.settings.DATE_SETTINGS;end',
|
|
198
|
-
_b[exports.SettingType.Language] = 'intent:#Intent;action=android.settings.LOCALE_SETTINGS;end',
|
|
199
|
-
_b[exports.SettingType.Accounts] = 'intent:#Intent;action=android.settings.SYNC_SETTINGS;end',
|
|
200
|
-
_b[exports.SettingType.Storage] = 'intent:#Intent;action=android.settings.INTERNAL_STORAGE_SETTINGS;end',
|
|
201
|
-
_b),
|
|
202
|
-
_a[OS.Windows] = (_c = {},
|
|
203
|
-
_c[exports.SettingType.General] = 'ms-settings:system',
|
|
204
|
-
_c[exports.SettingType.Network] = 'ms-settings:network',
|
|
205
|
-
_c[exports.SettingType.Display] = 'ms-settings:display',
|
|
206
|
-
_c[exports.SettingType.Appearance] = 'ms-settings:colors',
|
|
207
|
-
_c[exports.SettingType.Accessibility] = 'ms-settings:easeofaccess',
|
|
208
|
-
_c[exports.SettingType.Battery] = 'ms-settings:batterysaver',
|
|
209
|
-
_c[exports.SettingType.Datetime] = 'ms-settings:dateandtime',
|
|
210
|
-
_c[exports.SettingType.Language] = 'ms-settings:regionlanguage',
|
|
211
|
-
_c[exports.SettingType.Accounts] = 'ms-settings:emailandaccounts',
|
|
212
|
-
_c[exports.SettingType.Storage] = 'ms-settings:storagesense',
|
|
213
|
-
_c),
|
|
214
|
-
_a[OS.MacOS] = (_d = {},
|
|
215
|
-
_d[exports.SettingType.General] = 'x-apple.systempreferences:',
|
|
216
|
-
_d[exports.SettingType.Network] = 'x-apple.systempreferences:com.apple.preference.network',
|
|
217
|
-
_d[exports.SettingType.Display] = 'x-apple.systempreferences:com.apple.preference.displays',
|
|
218
|
-
_d[exports.SettingType.Appearance] = 'x-apple.systempreferences:com.apple.preference.general',
|
|
219
|
-
_d[exports.SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.preference.universalaccess',
|
|
220
|
-
_d[exports.SettingType.Battery] = 'x-apple.systempreferences:com.apple.preference.energysaver',
|
|
221
|
-
_d[exports.SettingType.Datetime] = 'x-apple.systempreferences:com.apple.preference.datetime',
|
|
222
|
-
_d[exports.SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization',
|
|
223
|
-
_d[exports.SettingType.Accounts] = 'x-apple.systempreferences:com.apple.preferences.internetaccounts',
|
|
224
|
-
_d[exports.SettingType.Storage] = 'x-apple.systempreferences:',
|
|
225
|
-
_d),
|
|
226
|
-
_a['MacOS13+'] = (_e = {},
|
|
227
|
-
_e[exports.SettingType.General] = 'x-apple.systempreferences:com.apple.General-Settings.extension',
|
|
228
|
-
_e[exports.SettingType.Network] = 'x-apple.systempreferences:com.apple.Network-Settings.extension',
|
|
229
|
-
_e[exports.SettingType.Display] = 'x-apple.systempreferences:com.apple.Displays-Settings.extension',
|
|
230
|
-
_e[exports.SettingType.Appearance] = 'x-apple.systempreferences:com.apple.Appearance-Settings.extension',
|
|
231
|
-
_e[exports.SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.Accessibility-Settings.extension',
|
|
232
|
-
_e[exports.SettingType.Battery] = 'x-apple.systempreferences:com.apple.Battery-Settings.extension',
|
|
233
|
-
_e[exports.SettingType.Datetime] = 'x-apple.systempreferences:com.apple.Date-Time-Settings.extension',
|
|
234
|
-
_e[exports.SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization-Settings.extension',
|
|
235
|
-
_e[exports.SettingType.Accounts] = 'x-apple.systempreferences:com.apple.Internet-Accounts-Settings.extension',
|
|
236
|
-
_e[exports.SettingType.Storage] = 'x-apple.systempreferences:com.apple.settings.Storage',
|
|
237
|
-
_e),
|
|
238
|
-
_a);
|
|
239
|
-
|
|
240
|
-
function compareVersion(lhs, rhs) {
|
|
241
|
-
var pa = lhs.split('.');
|
|
242
|
-
var pb = rhs.split('.');
|
|
243
|
-
var length = Math.max(pa.length, pb.length);
|
|
244
|
-
for (var i = 0; i < length; i++) {
|
|
245
|
-
var a = void 0;
|
|
246
|
-
var b = void 0;
|
|
247
|
-
if (i < pa.length)
|
|
248
|
-
a = parseInt(pa[i], 10);
|
|
249
|
-
else
|
|
250
|
-
a = 0;
|
|
251
|
-
if (i < pb.length)
|
|
252
|
-
b = parseInt(pb[i], 10);
|
|
253
|
-
else
|
|
254
|
-
b = 0;
|
|
255
|
-
if (a > b)
|
|
256
|
-
return 1;
|
|
257
|
-
if (a < b)
|
|
258
|
-
return -1;
|
|
259
|
-
}
|
|
260
|
-
return 0;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
166
|
var IE_WRAPPER_STORE = [];
|
|
264
167
|
var MEDIA_QUERY_LIST_WRAPPER_STORE = [];
|
|
265
168
|
function isEventListenerCallback(callback) {
|
|
@@ -693,6 +596,103 @@ var Platform = {
|
|
|
693
596
|
return getIsWebview();
|
|
694
597
|
}};
|
|
695
598
|
|
|
599
|
+
var _a, _b, _c, _d, _e;
|
|
600
|
+
exports.AppOpenState = void 0;
|
|
601
|
+
(function (AppOpenState) {
|
|
602
|
+
AppOpenState[AppOpenState["Scheme"] = 0] = "Scheme";
|
|
603
|
+
AppOpenState[AppOpenState["Universal"] = 1] = "Universal";
|
|
604
|
+
AppOpenState[AppOpenState["Intent"] = 2] = "Intent";
|
|
605
|
+
AppOpenState[AppOpenState["Fallback"] = 3] = "Fallback";
|
|
606
|
+
AppOpenState[AppOpenState["Store"] = 4] = "Store";
|
|
607
|
+
})(exports.AppOpenState || (exports.AppOpenState = {}));
|
|
608
|
+
exports.SettingType = void 0;
|
|
609
|
+
(function (SettingType) {
|
|
610
|
+
SettingType["General"] = "general";
|
|
611
|
+
SettingType["Network"] = "network";
|
|
612
|
+
SettingType["Display"] = "display";
|
|
613
|
+
SettingType["Appearance"] = "appearance";
|
|
614
|
+
SettingType["Accessibility"] = "accessibility";
|
|
615
|
+
SettingType["Battery"] = "battery";
|
|
616
|
+
SettingType["Datetime"] = "datetime";
|
|
617
|
+
SettingType["Language"] = "language";
|
|
618
|
+
SettingType["Accounts"] = "accounts";
|
|
619
|
+
SettingType["Storage"] = "storage";
|
|
620
|
+
})(exports.SettingType || (exports.SettingType = {}));
|
|
621
|
+
exports.CameraType = void 0;
|
|
622
|
+
(function (CameraType) {
|
|
623
|
+
CameraType["Image"] = "image";
|
|
624
|
+
CameraType["Video"] = "video";
|
|
625
|
+
})(exports.CameraType || (exports.CameraType = {}));
|
|
626
|
+
exports.CaptureType = void 0;
|
|
627
|
+
(function (CaptureType) {
|
|
628
|
+
CaptureType["User"] = "user";
|
|
629
|
+
CaptureType["Environment"] = "environment";
|
|
630
|
+
})(exports.CaptureType || (exports.CaptureType = {}));
|
|
631
|
+
exports.ExplorerStartIn = void 0;
|
|
632
|
+
(function (ExplorerStartIn) {
|
|
633
|
+
ExplorerStartIn["Desktop"] = "desktop";
|
|
634
|
+
ExplorerStartIn["Documents"] = "documents";
|
|
635
|
+
ExplorerStartIn["Downloads"] = "downloads";
|
|
636
|
+
ExplorerStartIn["Music"] = "music";
|
|
637
|
+
ExplorerStartIn["Pictures"] = "pictures";
|
|
638
|
+
ExplorerStartIn["Videos"] = "videos";
|
|
639
|
+
})(exports.ExplorerStartIn || (exports.ExplorerStartIn = {}));
|
|
640
|
+
exports.DirectoryExploreMode = void 0;
|
|
641
|
+
(function (DirectoryExploreMode) {
|
|
642
|
+
DirectoryExploreMode["Read"] = "read";
|
|
643
|
+
DirectoryExploreMode["ReadWrite"] = "readwrite";
|
|
644
|
+
})(exports.DirectoryExploreMode || (exports.DirectoryExploreMode = {}));
|
|
645
|
+
var SETTING_URL = (_a = {},
|
|
646
|
+
_a[OS.Android] = (_b = {},
|
|
647
|
+
_b[exports.SettingType.General] = 'intent:#Intent;action=android.settings.SETTINGS;end',
|
|
648
|
+
_b[exports.SettingType.Network] = 'intent:#Intent;action=android.settings.WIFI_SETTINGS;end',
|
|
649
|
+
_b[exports.SettingType.Display] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
650
|
+
_b[exports.SettingType.Appearance] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
651
|
+
_b[exports.SettingType.Accessibility] = 'intent:#Intent;action=android.settings.ACCESSIBILITY_SETTINGS;end',
|
|
652
|
+
_b[exports.SettingType.Battery] = 'intent:#Intent;action=android.settings.BATTERY_SAVER_SETTINGS;end',
|
|
653
|
+
_b[exports.SettingType.Datetime] = 'intent:#Intent;action=android.settings.DATE_SETTINGS;end',
|
|
654
|
+
_b[exports.SettingType.Language] = 'intent:#Intent;action=android.settings.LOCALE_SETTINGS;end',
|
|
655
|
+
_b[exports.SettingType.Accounts] = 'intent:#Intent;action=android.settings.SYNC_SETTINGS;end',
|
|
656
|
+
_b[exports.SettingType.Storage] = 'intent:#Intent;action=android.settings.INTERNAL_STORAGE_SETTINGS;end',
|
|
657
|
+
_b),
|
|
658
|
+
_a[OS.Windows] = (_c = {},
|
|
659
|
+
_c[exports.SettingType.General] = 'ms-settings:system',
|
|
660
|
+
_c[exports.SettingType.Network] = 'ms-settings:network',
|
|
661
|
+
_c[exports.SettingType.Display] = 'ms-settings:display',
|
|
662
|
+
_c[exports.SettingType.Appearance] = 'ms-settings:colors',
|
|
663
|
+
_c[exports.SettingType.Accessibility] = 'ms-settings:easeofaccess',
|
|
664
|
+
_c[exports.SettingType.Battery] = 'ms-settings:batterysaver',
|
|
665
|
+
_c[exports.SettingType.Datetime] = 'ms-settings:dateandtime',
|
|
666
|
+
_c[exports.SettingType.Language] = 'ms-settings:regionlanguage',
|
|
667
|
+
_c[exports.SettingType.Accounts] = 'ms-settings:emailandaccounts',
|
|
668
|
+
_c[exports.SettingType.Storage] = 'ms-settings:storagesense',
|
|
669
|
+
_c),
|
|
670
|
+
_a[OS.MacOS] = (_d = {},
|
|
671
|
+
_d[exports.SettingType.General] = 'x-apple.systempreferences:',
|
|
672
|
+
_d[exports.SettingType.Network] = 'x-apple.systempreferences:com.apple.preference.network',
|
|
673
|
+
_d[exports.SettingType.Display] = 'x-apple.systempreferences:com.apple.preference.displays',
|
|
674
|
+
_d[exports.SettingType.Appearance] = 'x-apple.systempreferences:com.apple.preference.general',
|
|
675
|
+
_d[exports.SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.preference.universalaccess',
|
|
676
|
+
_d[exports.SettingType.Battery] = 'x-apple.systempreferences:com.apple.preference.energysaver',
|
|
677
|
+
_d[exports.SettingType.Datetime] = 'x-apple.systempreferences:com.apple.preference.datetime',
|
|
678
|
+
_d[exports.SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization',
|
|
679
|
+
_d[exports.SettingType.Accounts] = 'x-apple.systempreferences:com.apple.preferences.internetaccounts',
|
|
680
|
+
_d[exports.SettingType.Storage] = 'x-apple.systempreferences:',
|
|
681
|
+
_d),
|
|
682
|
+
_a['MacOS13+'] = (_e = {},
|
|
683
|
+
_e[exports.SettingType.General] = 'x-apple.systempreferences:com.apple.General-Settings.extension',
|
|
684
|
+
_e[exports.SettingType.Network] = 'x-apple.systempreferences:com.apple.Network-Settings.extension',
|
|
685
|
+
_e[exports.SettingType.Display] = 'x-apple.systempreferences:com.apple.Displays-Settings.extension',
|
|
686
|
+
_e[exports.SettingType.Appearance] = 'x-apple.systempreferences:com.apple.Appearance-Settings.extension',
|
|
687
|
+
_e[exports.SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.Accessibility-Settings.extension',
|
|
688
|
+
_e[exports.SettingType.Battery] = 'x-apple.systempreferences:com.apple.Battery-Settings.extension',
|
|
689
|
+
_e[exports.SettingType.Datetime] = 'x-apple.systempreferences:com.apple.Date-Time-Settings.extension',
|
|
690
|
+
_e[exports.SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization-Settings.extension',
|
|
691
|
+
_e[exports.SettingType.Accounts] = 'x-apple.systempreferences:com.apple.Internet-Accounts-Settings.extension',
|
|
692
|
+
_e[exports.SettingType.Storage] = 'x-apple.systempreferences:com.apple.settings.Storage',
|
|
693
|
+
_e),
|
|
694
|
+
_a);
|
|
695
|
+
|
|
696
696
|
function getTopmostWindow() {
|
|
697
697
|
try {
|
|
698
698
|
if (globalThis.top !== null && globalThis.top !== globalThis.window) {
|
|
@@ -39,6 +39,14 @@ declare enum DirectoryExploreMode {
|
|
|
39
39
|
}
|
|
40
40
|
declare const SETTING_URL: Record<'Android' | 'Windows' | 'MacOS' | 'MacOS13+', Record<SettingType, string>>;
|
|
41
41
|
|
|
42
|
+
declare enum OS {
|
|
43
|
+
Unknown = "Unknown",
|
|
44
|
+
Android = "Android",
|
|
45
|
+
iOS = "iOS",
|
|
46
|
+
Windows = "Windows",
|
|
47
|
+
MacOS = "MacOS"
|
|
48
|
+
}
|
|
49
|
+
|
|
42
50
|
declare const NotSupportedError: ErrorConstructor;
|
|
43
51
|
|
|
44
52
|
declare global {
|
|
@@ -66,7 +74,6 @@ declare global {
|
|
|
66
74
|
webkitDisplayingFullscreen?: boolean;
|
|
67
75
|
onwebkitbeginfullscreen?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
68
76
|
onwebkitendfullscreen?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
69
|
-
[key: symbol]: boolean | undefined;
|
|
70
77
|
}
|
|
71
78
|
interface Document {
|
|
72
79
|
readonly fullscreenEnabled: boolean;
|
|
@@ -91,6 +98,33 @@ declare global {
|
|
|
91
98
|
mozRequestFullScreen?: () => Promise<void>;
|
|
92
99
|
msRequestFullscreen?: () => Promise<void>;
|
|
93
100
|
}
|
|
101
|
+
var __nativeFnFsBridgeKey__: symbol | undefined;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare global {
|
|
105
|
+
interface Navigator {
|
|
106
|
+
getUserMedia?(constraints?: MediaStreamConstraints): Promise<MediaStream>;
|
|
107
|
+
webkitGetUserMedia?(constraints: MediaStreamConstraints, successCallback: (stream: MediaStream) => void, errorCallback: (error: DOMException) => void): void;
|
|
108
|
+
mozGetUserMedia?(constraints: MediaStreamConstraints, successCallback: (stream: MediaStream) => void, errorCallback: (error: DOMException) => void): void;
|
|
109
|
+
msGetUserMedia?(constraints: MediaStreamConstraints, successCallback: (stream: MediaStream) => void, errorCallback: (error: DOMException) => void): void;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare global {
|
|
114
|
+
interface HTMLVideoElement {
|
|
115
|
+
webkitSupportsPresentationMode?(mode: string): boolean;
|
|
116
|
+
webkitSetPresentationMode?(mode: string): void;
|
|
117
|
+
webkitPresentationMode?: string;
|
|
118
|
+
onwebkitpresentationmodechanged?: ((this: Element, ev: Event) => any) | null;
|
|
119
|
+
}
|
|
120
|
+
var __nativeFnPipBridgeKey__: symbol | undefined;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
interface GPUAdapterInfo {
|
|
124
|
+
readonly vendor?: string;
|
|
125
|
+
readonly architecture?: string;
|
|
126
|
+
readonly device?: string;
|
|
127
|
+
readonly description?: string;
|
|
94
128
|
}
|
|
95
129
|
|
|
96
130
|
declare global {
|
|
@@ -156,40 +190,6 @@ interface GPUAdapter {
|
|
|
156
190
|
readonly info: GPUAdapterInfo;
|
|
157
191
|
}
|
|
158
192
|
|
|
159
|
-
declare global {
|
|
160
|
-
interface Navigator {
|
|
161
|
-
getUserMedia?(constraints?: MediaStreamConstraints): Promise<MediaStream>;
|
|
162
|
-
webkitGetUserMedia?(constraints: MediaStreamConstraints, successCallback: (stream: MediaStream) => void, errorCallback: (error: DOMException) => void): void;
|
|
163
|
-
mozGetUserMedia?(constraints: MediaStreamConstraints, successCallback: (stream: MediaStream) => void, errorCallback: (error: DOMException) => void): void;
|
|
164
|
-
msGetUserMedia?(constraints: MediaStreamConstraints, successCallback: (stream: MediaStream) => void, errorCallback: (error: DOMException) => void): void;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
declare global {
|
|
169
|
-
interface HTMLVideoElement {
|
|
170
|
-
webkitSupportsPresentationMode?: (mode: string) => boolean;
|
|
171
|
-
webkitSetPresentationMode?: (mode: string) => void;
|
|
172
|
-
webkitPresentationMode?: string;
|
|
173
|
-
onwebkitpresentationmodechanged?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
174
|
-
[key: symbol]: boolean | undefined;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
interface GPUAdapterInfo {
|
|
179
|
-
readonly vendor?: string;
|
|
180
|
-
readonly architecture?: string;
|
|
181
|
-
readonly device?: string;
|
|
182
|
-
readonly description?: string;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
declare enum OS {
|
|
186
|
-
Unknown = "Unknown",
|
|
187
|
-
Android = "Android",
|
|
188
|
-
iOS = "iOS",
|
|
189
|
-
Windows = "Windows",
|
|
190
|
-
MacOS = "MacOS"
|
|
191
|
-
}
|
|
192
|
-
|
|
193
193
|
declare const URLOpenError: ErrorConstructor;
|
|
194
194
|
|
|
195
195
|
declare const UserCancelledError: ErrorConstructor;
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
function compareVersion(lhs, rhs) {
|
|
2
|
+
var pa = lhs.split('.');
|
|
3
|
+
var pb = rhs.split('.');
|
|
4
|
+
var length = Math.max(pa.length, pb.length);
|
|
5
|
+
for (var i = 0; i < length; i++) {
|
|
6
|
+
var a = void 0;
|
|
7
|
+
var b = void 0;
|
|
8
|
+
if (i < pa.length)
|
|
9
|
+
a = parseInt(pa[i], 10);
|
|
10
|
+
else
|
|
11
|
+
a = 0;
|
|
12
|
+
if (i < pb.length)
|
|
13
|
+
b = parseInt(pb[i], 10);
|
|
14
|
+
else
|
|
15
|
+
b = 0;
|
|
16
|
+
if (a > b)
|
|
17
|
+
return 1;
|
|
18
|
+
if (a < b)
|
|
19
|
+
return -1;
|
|
20
|
+
}
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
1
24
|
function resolveWindowsVersion(string) {
|
|
2
25
|
if (typeof string === 'undefined')
|
|
3
26
|
return '';
|
|
@@ -136,126 +159,6 @@ var BROWSER_RESOLVER_MAP = [
|
|
|
136
159
|
[/firefox\/([\w.]+)/i, Browsers.Firefox],
|
|
137
160
|
];
|
|
138
161
|
|
|
139
|
-
var _a, _b, _c, _d, _e;
|
|
140
|
-
var AppOpenState;
|
|
141
|
-
(function (AppOpenState) {
|
|
142
|
-
AppOpenState[AppOpenState["Scheme"] = 0] = "Scheme";
|
|
143
|
-
AppOpenState[AppOpenState["Universal"] = 1] = "Universal";
|
|
144
|
-
AppOpenState[AppOpenState["Intent"] = 2] = "Intent";
|
|
145
|
-
AppOpenState[AppOpenState["Fallback"] = 3] = "Fallback";
|
|
146
|
-
AppOpenState[AppOpenState["Store"] = 4] = "Store";
|
|
147
|
-
})(AppOpenState || (AppOpenState = {}));
|
|
148
|
-
var SettingType;
|
|
149
|
-
(function (SettingType) {
|
|
150
|
-
SettingType["General"] = "general";
|
|
151
|
-
SettingType["Network"] = "network";
|
|
152
|
-
SettingType["Display"] = "display";
|
|
153
|
-
SettingType["Appearance"] = "appearance";
|
|
154
|
-
SettingType["Accessibility"] = "accessibility";
|
|
155
|
-
SettingType["Battery"] = "battery";
|
|
156
|
-
SettingType["Datetime"] = "datetime";
|
|
157
|
-
SettingType["Language"] = "language";
|
|
158
|
-
SettingType["Accounts"] = "accounts";
|
|
159
|
-
SettingType["Storage"] = "storage";
|
|
160
|
-
})(SettingType || (SettingType = {}));
|
|
161
|
-
var CameraType;
|
|
162
|
-
(function (CameraType) {
|
|
163
|
-
CameraType["Image"] = "image";
|
|
164
|
-
CameraType["Video"] = "video";
|
|
165
|
-
})(CameraType || (CameraType = {}));
|
|
166
|
-
var CaptureType;
|
|
167
|
-
(function (CaptureType) {
|
|
168
|
-
CaptureType["User"] = "user";
|
|
169
|
-
CaptureType["Environment"] = "environment";
|
|
170
|
-
})(CaptureType || (CaptureType = {}));
|
|
171
|
-
var ExplorerStartIn;
|
|
172
|
-
(function (ExplorerStartIn) {
|
|
173
|
-
ExplorerStartIn["Desktop"] = "desktop";
|
|
174
|
-
ExplorerStartIn["Documents"] = "documents";
|
|
175
|
-
ExplorerStartIn["Downloads"] = "downloads";
|
|
176
|
-
ExplorerStartIn["Music"] = "music";
|
|
177
|
-
ExplorerStartIn["Pictures"] = "pictures";
|
|
178
|
-
ExplorerStartIn["Videos"] = "videos";
|
|
179
|
-
})(ExplorerStartIn || (ExplorerStartIn = {}));
|
|
180
|
-
var DirectoryExploreMode;
|
|
181
|
-
(function (DirectoryExploreMode) {
|
|
182
|
-
DirectoryExploreMode["Read"] = "read";
|
|
183
|
-
DirectoryExploreMode["ReadWrite"] = "readwrite";
|
|
184
|
-
})(DirectoryExploreMode || (DirectoryExploreMode = {}));
|
|
185
|
-
var SETTING_URL = (_a = {},
|
|
186
|
-
_a[OS.Android] = (_b = {},
|
|
187
|
-
_b[SettingType.General] = 'intent:#Intent;action=android.settings.SETTINGS;end',
|
|
188
|
-
_b[SettingType.Network] = 'intent:#Intent;action=android.settings.WIFI_SETTINGS;end',
|
|
189
|
-
_b[SettingType.Display] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
190
|
-
_b[SettingType.Appearance] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
191
|
-
_b[SettingType.Accessibility] = 'intent:#Intent;action=android.settings.ACCESSIBILITY_SETTINGS;end',
|
|
192
|
-
_b[SettingType.Battery] = 'intent:#Intent;action=android.settings.BATTERY_SAVER_SETTINGS;end',
|
|
193
|
-
_b[SettingType.Datetime] = 'intent:#Intent;action=android.settings.DATE_SETTINGS;end',
|
|
194
|
-
_b[SettingType.Language] = 'intent:#Intent;action=android.settings.LOCALE_SETTINGS;end',
|
|
195
|
-
_b[SettingType.Accounts] = 'intent:#Intent;action=android.settings.SYNC_SETTINGS;end',
|
|
196
|
-
_b[SettingType.Storage] = 'intent:#Intent;action=android.settings.INTERNAL_STORAGE_SETTINGS;end',
|
|
197
|
-
_b),
|
|
198
|
-
_a[OS.Windows] = (_c = {},
|
|
199
|
-
_c[SettingType.General] = 'ms-settings:system',
|
|
200
|
-
_c[SettingType.Network] = 'ms-settings:network',
|
|
201
|
-
_c[SettingType.Display] = 'ms-settings:display',
|
|
202
|
-
_c[SettingType.Appearance] = 'ms-settings:colors',
|
|
203
|
-
_c[SettingType.Accessibility] = 'ms-settings:easeofaccess',
|
|
204
|
-
_c[SettingType.Battery] = 'ms-settings:batterysaver',
|
|
205
|
-
_c[SettingType.Datetime] = 'ms-settings:dateandtime',
|
|
206
|
-
_c[SettingType.Language] = 'ms-settings:regionlanguage',
|
|
207
|
-
_c[SettingType.Accounts] = 'ms-settings:emailandaccounts',
|
|
208
|
-
_c[SettingType.Storage] = 'ms-settings:storagesense',
|
|
209
|
-
_c),
|
|
210
|
-
_a[OS.MacOS] = (_d = {},
|
|
211
|
-
_d[SettingType.General] = 'x-apple.systempreferences:',
|
|
212
|
-
_d[SettingType.Network] = 'x-apple.systempreferences:com.apple.preference.network',
|
|
213
|
-
_d[SettingType.Display] = 'x-apple.systempreferences:com.apple.preference.displays',
|
|
214
|
-
_d[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.preference.general',
|
|
215
|
-
_d[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.preference.universalaccess',
|
|
216
|
-
_d[SettingType.Battery] = 'x-apple.systempreferences:com.apple.preference.energysaver',
|
|
217
|
-
_d[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.preference.datetime',
|
|
218
|
-
_d[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization',
|
|
219
|
-
_d[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.preferences.internetaccounts',
|
|
220
|
-
_d[SettingType.Storage] = 'x-apple.systempreferences:',
|
|
221
|
-
_d),
|
|
222
|
-
_a['MacOS13+'] = (_e = {},
|
|
223
|
-
_e[SettingType.General] = 'x-apple.systempreferences:com.apple.General-Settings.extension',
|
|
224
|
-
_e[SettingType.Network] = 'x-apple.systempreferences:com.apple.Network-Settings.extension',
|
|
225
|
-
_e[SettingType.Display] = 'x-apple.systempreferences:com.apple.Displays-Settings.extension',
|
|
226
|
-
_e[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.Appearance-Settings.extension',
|
|
227
|
-
_e[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.Accessibility-Settings.extension',
|
|
228
|
-
_e[SettingType.Battery] = 'x-apple.systempreferences:com.apple.Battery-Settings.extension',
|
|
229
|
-
_e[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.Date-Time-Settings.extension',
|
|
230
|
-
_e[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization-Settings.extension',
|
|
231
|
-
_e[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.Internet-Accounts-Settings.extension',
|
|
232
|
-
_e[SettingType.Storage] = 'x-apple.systempreferences:com.apple.settings.Storage',
|
|
233
|
-
_e),
|
|
234
|
-
_a);
|
|
235
|
-
|
|
236
|
-
function compareVersion(lhs, rhs) {
|
|
237
|
-
var pa = lhs.split('.');
|
|
238
|
-
var pb = rhs.split('.');
|
|
239
|
-
var length = Math.max(pa.length, pb.length);
|
|
240
|
-
for (var i = 0; i < length; i++) {
|
|
241
|
-
var a = void 0;
|
|
242
|
-
var b = void 0;
|
|
243
|
-
if (i < pa.length)
|
|
244
|
-
a = parseInt(pa[i], 10);
|
|
245
|
-
else
|
|
246
|
-
a = 0;
|
|
247
|
-
if (i < pb.length)
|
|
248
|
-
b = parseInt(pb[i], 10);
|
|
249
|
-
else
|
|
250
|
-
b = 0;
|
|
251
|
-
if (a > b)
|
|
252
|
-
return 1;
|
|
253
|
-
if (a < b)
|
|
254
|
-
return -1;
|
|
255
|
-
}
|
|
256
|
-
return 0;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
162
|
var IE_WRAPPER_STORE = [];
|
|
260
163
|
var MEDIA_QUERY_LIST_WRAPPER_STORE = [];
|
|
261
164
|
function isEventListenerCallback(callback) {
|
|
@@ -689,6 +592,103 @@ var Platform = {
|
|
|
689
592
|
return getIsWebview();
|
|
690
593
|
}};
|
|
691
594
|
|
|
595
|
+
var _a, _b, _c, _d, _e;
|
|
596
|
+
var AppOpenState;
|
|
597
|
+
(function (AppOpenState) {
|
|
598
|
+
AppOpenState[AppOpenState["Scheme"] = 0] = "Scheme";
|
|
599
|
+
AppOpenState[AppOpenState["Universal"] = 1] = "Universal";
|
|
600
|
+
AppOpenState[AppOpenState["Intent"] = 2] = "Intent";
|
|
601
|
+
AppOpenState[AppOpenState["Fallback"] = 3] = "Fallback";
|
|
602
|
+
AppOpenState[AppOpenState["Store"] = 4] = "Store";
|
|
603
|
+
})(AppOpenState || (AppOpenState = {}));
|
|
604
|
+
var SettingType;
|
|
605
|
+
(function (SettingType) {
|
|
606
|
+
SettingType["General"] = "general";
|
|
607
|
+
SettingType["Network"] = "network";
|
|
608
|
+
SettingType["Display"] = "display";
|
|
609
|
+
SettingType["Appearance"] = "appearance";
|
|
610
|
+
SettingType["Accessibility"] = "accessibility";
|
|
611
|
+
SettingType["Battery"] = "battery";
|
|
612
|
+
SettingType["Datetime"] = "datetime";
|
|
613
|
+
SettingType["Language"] = "language";
|
|
614
|
+
SettingType["Accounts"] = "accounts";
|
|
615
|
+
SettingType["Storage"] = "storage";
|
|
616
|
+
})(SettingType || (SettingType = {}));
|
|
617
|
+
var CameraType;
|
|
618
|
+
(function (CameraType) {
|
|
619
|
+
CameraType["Image"] = "image";
|
|
620
|
+
CameraType["Video"] = "video";
|
|
621
|
+
})(CameraType || (CameraType = {}));
|
|
622
|
+
var CaptureType;
|
|
623
|
+
(function (CaptureType) {
|
|
624
|
+
CaptureType["User"] = "user";
|
|
625
|
+
CaptureType["Environment"] = "environment";
|
|
626
|
+
})(CaptureType || (CaptureType = {}));
|
|
627
|
+
var ExplorerStartIn;
|
|
628
|
+
(function (ExplorerStartIn) {
|
|
629
|
+
ExplorerStartIn["Desktop"] = "desktop";
|
|
630
|
+
ExplorerStartIn["Documents"] = "documents";
|
|
631
|
+
ExplorerStartIn["Downloads"] = "downloads";
|
|
632
|
+
ExplorerStartIn["Music"] = "music";
|
|
633
|
+
ExplorerStartIn["Pictures"] = "pictures";
|
|
634
|
+
ExplorerStartIn["Videos"] = "videos";
|
|
635
|
+
})(ExplorerStartIn || (ExplorerStartIn = {}));
|
|
636
|
+
var DirectoryExploreMode;
|
|
637
|
+
(function (DirectoryExploreMode) {
|
|
638
|
+
DirectoryExploreMode["Read"] = "read";
|
|
639
|
+
DirectoryExploreMode["ReadWrite"] = "readwrite";
|
|
640
|
+
})(DirectoryExploreMode || (DirectoryExploreMode = {}));
|
|
641
|
+
var SETTING_URL = (_a = {},
|
|
642
|
+
_a[OS.Android] = (_b = {},
|
|
643
|
+
_b[SettingType.General] = 'intent:#Intent;action=android.settings.SETTINGS;end',
|
|
644
|
+
_b[SettingType.Network] = 'intent:#Intent;action=android.settings.WIFI_SETTINGS;end',
|
|
645
|
+
_b[SettingType.Display] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
646
|
+
_b[SettingType.Appearance] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
647
|
+
_b[SettingType.Accessibility] = 'intent:#Intent;action=android.settings.ACCESSIBILITY_SETTINGS;end',
|
|
648
|
+
_b[SettingType.Battery] = 'intent:#Intent;action=android.settings.BATTERY_SAVER_SETTINGS;end',
|
|
649
|
+
_b[SettingType.Datetime] = 'intent:#Intent;action=android.settings.DATE_SETTINGS;end',
|
|
650
|
+
_b[SettingType.Language] = 'intent:#Intent;action=android.settings.LOCALE_SETTINGS;end',
|
|
651
|
+
_b[SettingType.Accounts] = 'intent:#Intent;action=android.settings.SYNC_SETTINGS;end',
|
|
652
|
+
_b[SettingType.Storage] = 'intent:#Intent;action=android.settings.INTERNAL_STORAGE_SETTINGS;end',
|
|
653
|
+
_b),
|
|
654
|
+
_a[OS.Windows] = (_c = {},
|
|
655
|
+
_c[SettingType.General] = 'ms-settings:system',
|
|
656
|
+
_c[SettingType.Network] = 'ms-settings:network',
|
|
657
|
+
_c[SettingType.Display] = 'ms-settings:display',
|
|
658
|
+
_c[SettingType.Appearance] = 'ms-settings:colors',
|
|
659
|
+
_c[SettingType.Accessibility] = 'ms-settings:easeofaccess',
|
|
660
|
+
_c[SettingType.Battery] = 'ms-settings:batterysaver',
|
|
661
|
+
_c[SettingType.Datetime] = 'ms-settings:dateandtime',
|
|
662
|
+
_c[SettingType.Language] = 'ms-settings:regionlanguage',
|
|
663
|
+
_c[SettingType.Accounts] = 'ms-settings:emailandaccounts',
|
|
664
|
+
_c[SettingType.Storage] = 'ms-settings:storagesense',
|
|
665
|
+
_c),
|
|
666
|
+
_a[OS.MacOS] = (_d = {},
|
|
667
|
+
_d[SettingType.General] = 'x-apple.systempreferences:',
|
|
668
|
+
_d[SettingType.Network] = 'x-apple.systempreferences:com.apple.preference.network',
|
|
669
|
+
_d[SettingType.Display] = 'x-apple.systempreferences:com.apple.preference.displays',
|
|
670
|
+
_d[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.preference.general',
|
|
671
|
+
_d[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.preference.universalaccess',
|
|
672
|
+
_d[SettingType.Battery] = 'x-apple.systempreferences:com.apple.preference.energysaver',
|
|
673
|
+
_d[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.preference.datetime',
|
|
674
|
+
_d[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization',
|
|
675
|
+
_d[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.preferences.internetaccounts',
|
|
676
|
+
_d[SettingType.Storage] = 'x-apple.systempreferences:',
|
|
677
|
+
_d),
|
|
678
|
+
_a['MacOS13+'] = (_e = {},
|
|
679
|
+
_e[SettingType.General] = 'x-apple.systempreferences:com.apple.General-Settings.extension',
|
|
680
|
+
_e[SettingType.Network] = 'x-apple.systempreferences:com.apple.Network-Settings.extension',
|
|
681
|
+
_e[SettingType.Display] = 'x-apple.systempreferences:com.apple.Displays-Settings.extension',
|
|
682
|
+
_e[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.Appearance-Settings.extension',
|
|
683
|
+
_e[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.Accessibility-Settings.extension',
|
|
684
|
+
_e[SettingType.Battery] = 'x-apple.systempreferences:com.apple.Battery-Settings.extension',
|
|
685
|
+
_e[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.Date-Time-Settings.extension',
|
|
686
|
+
_e[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization-Settings.extension',
|
|
687
|
+
_e[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.Internet-Accounts-Settings.extension',
|
|
688
|
+
_e[SettingType.Storage] = 'x-apple.systempreferences:com.apple.settings.Storage',
|
|
689
|
+
_e),
|
|
690
|
+
_a);
|
|
691
|
+
|
|
692
692
|
function getTopmostWindow() {
|
|
693
693
|
try {
|
|
694
694
|
if (globalThis.top !== null && globalThis.top !== globalThis.window) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NotSupportedError } from "../../../errors/not-supported-error";
|
|
2
2
|
export declare interface BadgeInstance {
|
|
3
|
+
get supported(): boolean;
|
|
3
4
|
set(contents: number): Promise<void>;
|
|
4
5
|
clear(): Promise<void>;
|
|
5
|
-
get supported(): boolean;
|
|
6
6
|
Constants: {};
|
|
7
7
|
Errors: {
|
|
8
8
|
NotSupportedError: typeof NotSupportedError;
|
|
@@ -16,8 +16,8 @@ export interface BatteryManager extends EventTarget {
|
|
|
16
16
|
onlevelchange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
17
17
|
}
|
|
18
18
|
export declare interface BatteryInstance {
|
|
19
|
-
get value(): Promise<BatteryManager>;
|
|
20
19
|
get supported(): boolean;
|
|
20
|
+
get value(): Promise<BatteryManager>;
|
|
21
21
|
onChange(listener: (battery: BatteryManager) => void, options?: AddEventListenerOptions): () => void;
|
|
22
22
|
Constants: {};
|
|
23
23
|
Errors: {
|
|
@@ -7,7 +7,6 @@ declare global {
|
|
|
7
7
|
webkitDisplayingFullscreen?: boolean;
|
|
8
8
|
onwebkitbeginfullscreen?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
9
9
|
onwebkitendfullscreen?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
10
|
-
[key: symbol]: boolean | undefined;
|
|
11
10
|
}
|
|
12
11
|
interface Document {
|
|
13
12
|
readonly fullscreenEnabled: boolean;
|
|
@@ -32,6 +31,7 @@ declare global {
|
|
|
32
31
|
mozRequestFullScreen?: () => Promise<void>;
|
|
33
32
|
msRequestFullscreen?: () => Promise<void>;
|
|
34
33
|
}
|
|
34
|
+
var __nativeFnFsBridgeKey__: symbol | undefined;
|
|
35
35
|
}
|
|
36
|
-
declare const
|
|
37
|
-
export default
|
|
36
|
+
declare const Fullscreen: FullscreenInstance;
|
|
37
|
+
export default Fullscreen;
|