native-fn 1.3.0 → 1.3.2
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 +159 -41
- package/dist/index.d.ts +117 -88
- package/dist/native.cjs +464 -244
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +464 -244
- package/dist/native.umd.js +464 -244
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/appearance/index.cjs +49 -46
- package/dist/plugin/appearance/index.d.ts +3 -3
- package/dist/plugin/appearance/index.mjs +49 -46
- package/dist/plugin/appearance/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/appearance/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/appearance/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/appearance/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/appearance/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/appearance/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/appearance/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/appearance/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/appearance/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/appearance/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/appearance/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/appearance/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/appearance/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/appearance/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/appearance/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/badge/index.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/badge/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/badge/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/badge/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/badge/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/badge/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/badge/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/badge/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/badge/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/badge/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/badge/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/badge/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/badge/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/badge/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/badge/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/battery/index.d.ts +3 -3
- package/dist/plugin/battery/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/battery/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/battery/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/battery/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/battery/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/battery/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/battery/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/battery/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/battery/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/battery/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/battery/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/battery/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/battery/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/battery/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/battery/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/battery/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/battery/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/battery/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/clipboard/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/clipboard/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/clipboard/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/clipboard/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/clipboard/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/clipboard/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/clipboard/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/clipboard/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/clipboard/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/clipboard/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/clipboard/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/clipboard/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/clipboard/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/clipboard/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/dimension/index.cjs +310 -80
- package/dist/plugin/dimension/index.d.ts +48 -19
- package/dist/plugin/dimension/index.mjs +310 -80
- package/dist/plugin/dimension/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/dimension/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/dimension/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/dimension/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/dimension/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/dimension/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/dimension/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/dimension/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/dimension/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/dimension/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/dimension/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/dimension/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/dimension/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/dimension/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/dimension/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/dimension/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/fullscreen/index.cjs +87 -80
- package/dist/plugin/fullscreen/index.d.ts +7 -7
- package/dist/plugin/fullscreen/index.mjs +87 -80
- package/dist/plugin/fullscreen/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/fullscreen/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/fullscreen/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/fullscreen/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/fullscreen/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/fullscreen/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/fullscreen/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/fullscreen/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/fullscreen/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/fullscreen/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/fullscreen/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/fullscreen/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/fullscreen/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/geolocation/index.cjs +245 -176
- package/dist/plugin/geolocation/index.d.ts +4 -4
- package/dist/plugin/geolocation/index.mjs +245 -176
- package/dist/plugin/geolocation/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/geolocation/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/geolocation/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/geolocation/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/geolocation/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/geolocation/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/geolocation/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/geolocation/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/geolocation/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/geolocation/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/geolocation/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/geolocation/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/geolocation/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/geolocation/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/geolocation/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/geolocation/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/geolocation/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/geolocation/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/notification/index.cjs +288 -13
- package/dist/plugin/notification/index.d.ts +4 -4
- package/dist/plugin/notification/index.mjs +288 -13
- package/dist/plugin/notification/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/notification/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/notification/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/notification/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/notification/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/notification/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/notification/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/notification/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/notification/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/notification/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/notification/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/notification/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/notification/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/notification/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/notification/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/notification/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/notification/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/notification/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/open/index.cjs +58 -49
- package/dist/plugin/open/index.d.ts +12 -12
- package/dist/plugin/open/index.mjs +58 -49
- package/dist/plugin/open/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/open/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/open/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/open/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/open/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/open/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/open/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/open/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/open/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/open/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/open/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/open/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/open/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/open/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/open/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/open/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/open/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/open/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/permission/index.cjs +372 -13
- package/dist/plugin/permission/index.d.ts +11 -5
- package/dist/plugin/permission/index.mjs +372 -13
- package/dist/plugin/permission/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/permission/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/permission/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/permission/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/permission/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/permission/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/permission/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/permission/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/permission/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/permission/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/permission/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/permission/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/permission/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/permission/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/permission/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/permission/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/permission/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/permission/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/pip/index.cjs +49 -46
- package/dist/plugin/pip/index.d.ts +7 -7
- package/dist/plugin/pip/index.mjs +49 -46
- package/dist/plugin/pip/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/pip/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/pip/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/pip/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/pip/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/pip/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/pip/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/pip/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/pip/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/pip/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/pip/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/pip/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/pip/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/pip/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/pip/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/pip/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/pip/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/pip/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/platform/index.cjs +87 -80
- package/dist/plugin/platform/index.d.ts +13 -13
- package/dist/plugin/platform/index.mjs +87 -80
- package/dist/plugin/platform/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/platform/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/platform/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/platform/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/platform/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/platform/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/platform/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/platform/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/platform/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/platform/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/platform/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/platform/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/platform/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/platform/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/theme/index.cjs +58 -49
- package/dist/plugin/theme/index.d.ts +2 -2
- package/dist/plugin/theme/index.mjs +58 -49
- package/dist/plugin/theme/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/theme/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/theme/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/theme/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/theme/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/theme/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/theme/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/theme/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/theme/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/theme/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/theme/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/theme/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/theme/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/vibration/index.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/vibration/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/vibration/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/vibration/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/vibration/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/vibration/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/vibration/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/vibration/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/vibration/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/vibration/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/vibration/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/vibration/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/vibration/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/vibration/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/vibration/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/src/plugin/open/types/open.d.ts +12 -12
- package/dist/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/src/types/subscription-manager.d.ts +3 -3
- package/dist/src/utils/create-subscription-manager.d.ts +1 -1
- package/package.json +1 -1
|
@@ -82,8 +82,8 @@ export interface DirectoryOptions {
|
|
|
82
82
|
startIn?: ExplorerStartIn;
|
|
83
83
|
}
|
|
84
84
|
export interface FileWithPath {
|
|
85
|
-
file: File;
|
|
86
|
-
relativePath: string;
|
|
85
|
+
readonly file: File;
|
|
86
|
+
readonly relativePath: string;
|
|
87
87
|
}
|
|
88
88
|
export interface CameraOptions {
|
|
89
89
|
type?: CameraType;
|
|
@@ -175,7 +175,7 @@ export declare interface OpenInstance {
|
|
|
175
175
|
contact(options?: ContactOptions): Promise<Contact[]>;
|
|
176
176
|
share(options: ShareData): Promise<void>;
|
|
177
177
|
calendar(options: CalendarOptions): void;
|
|
178
|
-
supported: {
|
|
178
|
+
readonly supported: {
|
|
179
179
|
get intent(): boolean;
|
|
180
180
|
get universal(): boolean;
|
|
181
181
|
get setting(): boolean;
|
|
@@ -185,15 +185,15 @@ export declare interface OpenInstance {
|
|
|
185
185
|
get share(): boolean;
|
|
186
186
|
get calendar(): boolean;
|
|
187
187
|
};
|
|
188
|
-
Constants: {
|
|
189
|
-
AppOpenState: typeof AppOpenState;
|
|
190
|
-
SettingType: typeof SettingType;
|
|
191
|
-
CameraType: typeof CameraType;
|
|
192
|
-
CaptureType: typeof CaptureType;
|
|
188
|
+
readonly Constants: {
|
|
189
|
+
readonly AppOpenState: typeof AppOpenState;
|
|
190
|
+
readonly SettingType: typeof SettingType;
|
|
191
|
+
readonly CameraType: typeof CameraType;
|
|
192
|
+
readonly CaptureType: typeof CaptureType;
|
|
193
193
|
};
|
|
194
|
-
Errors: {
|
|
195
|
-
URLOpenError: typeof URLOpenError;
|
|
196
|
-
NotSupportedError: typeof NotSupportedError;
|
|
197
|
-
UserCancelledError: typeof UserCancelledError;
|
|
194
|
+
readonly Errors: {
|
|
195
|
+
readonly URLOpenError: typeof URLOpenError;
|
|
196
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
197
|
+
readonly UserCancelledError: typeof UserCancelledError;
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -12,7 +12,9 @@ export declare enum PermissionType {
|
|
|
12
12
|
Camera = "camera",
|
|
13
13
|
ClipboardRead = "clipboard-read",
|
|
14
14
|
Microphone = "microphone",
|
|
15
|
-
MIDI = "midi"
|
|
15
|
+
MIDI = "midi",
|
|
16
|
+
DeviceOrientation = "device-orientation",
|
|
17
|
+
DeviceMotion = "device-motion"
|
|
16
18
|
}
|
|
17
19
|
export declare enum PermissionState {
|
|
18
20
|
Grant = "grant",
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { PermissionState, PermissionType } from "../constants";
|
|
2
|
+
import { NotSupportedError } from "../../../errors/not-supported-error";
|
|
2
3
|
export declare interface PermissionInstance {
|
|
3
4
|
get supported(): boolean;
|
|
4
5
|
request(type: PermissionType): Promise<PermissionState>;
|
|
5
6
|
check(type: PermissionType): Promise<PermissionState>;
|
|
6
|
-
Constants: {
|
|
7
|
-
PermissionType: typeof PermissionType;
|
|
8
|
-
PermissionState: typeof PermissionState;
|
|
7
|
+
readonly Constants: {
|
|
8
|
+
readonly PermissionType: typeof PermissionType;
|
|
9
|
+
readonly PermissionState: typeof PermissionState;
|
|
10
|
+
};
|
|
11
|
+
readonly Errors: {
|
|
12
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
9
13
|
};
|
|
10
|
-
Errors: {};
|
|
11
14
|
}
|
|
@@ -11,14 +11,14 @@ export declare interface PipInstance {
|
|
|
11
11
|
onChange(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
12
12
|
onError(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
13
13
|
onError(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
14
|
-
Constants: {};
|
|
15
|
-
Errors: {
|
|
16
|
-
NotSupportedError: typeof NotSupportedError;
|
|
17
|
-
InvalidStateError: typeof InvalidStateError;
|
|
14
|
+
readonly Constants: {};
|
|
15
|
+
readonly Errors: {
|
|
16
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
17
|
+
readonly InvalidStateError: typeof InvalidStateError;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
export declare interface PipEventPayload {
|
|
21
|
-
nativeEvent: Event;
|
|
22
|
-
element: HTMLVideoElement;
|
|
23
|
-
isActive: boolean;
|
|
21
|
+
readonly nativeEvent: Event;
|
|
22
|
+
readonly element: HTMLVideoElement;
|
|
23
|
+
readonly isActive: boolean;
|
|
24
24
|
}
|
|
@@ -14,24 +14,24 @@ export declare interface PlatformInstance {
|
|
|
14
14
|
get isNode(): boolean;
|
|
15
15
|
get isStandalone(): boolean;
|
|
16
16
|
get isWebview(): boolean;
|
|
17
|
-
Constants: {
|
|
18
|
-
OS: typeof OS;
|
|
19
|
-
Engines: typeof Engines;
|
|
20
|
-
Browsers: typeof Browsers;
|
|
21
|
-
Devices: typeof Devices;
|
|
17
|
+
readonly Constants: {
|
|
18
|
+
readonly OS: typeof OS;
|
|
19
|
+
readonly Engines: typeof Engines;
|
|
20
|
+
readonly Browsers: typeof Browsers;
|
|
21
|
+
readonly Devices: typeof Devices;
|
|
22
22
|
};
|
|
23
|
-
Errors: {};
|
|
23
|
+
readonly Errors: {};
|
|
24
24
|
}
|
|
25
25
|
export declare interface NameVersionPair<T> {
|
|
26
|
-
name: T;
|
|
27
|
-
version: string;
|
|
26
|
+
readonly name: T;
|
|
27
|
+
readonly version: string;
|
|
28
28
|
}
|
|
29
29
|
export declare interface Locale {
|
|
30
|
-
language: string | null;
|
|
31
|
-
languages: string[];
|
|
32
|
-
timezone: string | null;
|
|
33
|
-
offset: number;
|
|
34
|
-
isRTL: boolean;
|
|
30
|
+
readonly language: string | null;
|
|
31
|
+
readonly languages: readonly string[];
|
|
32
|
+
readonly timezone: string | null;
|
|
33
|
+
readonly offset: number;
|
|
34
|
+
readonly isRTL: boolean;
|
|
35
35
|
}
|
|
36
36
|
export interface GPUAdapterInfo {
|
|
37
37
|
readonly vendor?: string;
|
|
@@ -3,8 +3,8 @@ export declare interface VibrationInstance {
|
|
|
3
3
|
get supported(): boolean;
|
|
4
4
|
run(pattern: number | number[]): boolean;
|
|
5
5
|
stop(): boolean;
|
|
6
|
-
Constants: {};
|
|
7
|
-
Errors: {
|
|
8
|
-
NotSupportedError: typeof NotSupportedError;
|
|
6
|
+
readonly Constants: {};
|
|
7
|
+
readonly Errors: {
|
|
8
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare interface SubscriptionManager<T
|
|
2
|
-
emit: (value:
|
|
3
|
-
subscribe: (listener: (value:
|
|
1
|
+
export declare interface SubscriptionManager<T> {
|
|
2
|
+
emit: (value: T) => void;
|
|
3
|
+
subscribe: (listener: (value: T) => void, options?: AddEventListenerOptions) => () => void;
|
|
4
4
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SubscriptionManager } from "../types/subscription-manager";
|
|
2
|
-
export default function createSubscriptionManager<T
|
|
2
|
+
export default function createSubscriptionManager<T>(attach: () => void, detach: () => void): SubscriptionManager<T>;
|
|
@@ -511,9 +511,11 @@ var BROWSER_RESOLVER_MAP = [
|
|
|
511
511
|
|
|
512
512
|
var currentUserAgent = USER_AGENT;
|
|
513
513
|
var parsedCache = null;
|
|
514
|
-
var
|
|
515
|
-
var
|
|
516
|
-
var
|
|
514
|
+
var parsedFromHighEntropyValuesOSName = undefined;
|
|
515
|
+
var parsedFromHighEntropyValuesOSVersion = undefined;
|
|
516
|
+
var parsedFromHighEntropyValuesBrowserName = undefined;
|
|
517
|
+
var parsedFromHighEntropyValuesBrowserVersion = undefined;
|
|
518
|
+
var parsedFromHighEntropyValuesEngineVersion = undefined;
|
|
517
519
|
var parsedFromHighEntropyValuesDevice = null;
|
|
518
520
|
function resolveVersion(string, resolver) {
|
|
519
521
|
if (typeof resolver === 'function')
|
|
@@ -543,71 +545,72 @@ function getParsedCache() {
|
|
|
543
545
|
return parsedCache;
|
|
544
546
|
}
|
|
545
547
|
function parseOS() {
|
|
546
|
-
var
|
|
548
|
+
var name = OS.Unknown;
|
|
549
|
+
var version = '';
|
|
547
550
|
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
548
551
|
var map = OS_RESOLVER_MAP[i];
|
|
549
552
|
var matched = currentUserAgent.match(map[0]);
|
|
550
553
|
if (matched !== null) {
|
|
551
|
-
|
|
552
|
-
|
|
554
|
+
name = map[1];
|
|
555
|
+
version = resolveVersion(matched[1], map[2]);
|
|
553
556
|
break;
|
|
554
557
|
}
|
|
555
558
|
}
|
|
556
|
-
if (
|
|
557
|
-
var
|
|
558
|
-
if (
|
|
559
|
-
var major = parseInt(
|
|
559
|
+
if (name === OS.iOS && compareVersion(version, '18.6') === 0) {
|
|
560
|
+
var execs = /\) Version\/([\d.]+)/.exec(currentUserAgent);
|
|
561
|
+
if (execs !== null) {
|
|
562
|
+
var major = parseInt(execs[1].split('.')[0], 10);
|
|
560
563
|
if (major >= 26)
|
|
561
|
-
|
|
564
|
+
version = execs[1];
|
|
562
565
|
}
|
|
563
566
|
}
|
|
564
567
|
if (currentUserAgent === USER_AGENT) {
|
|
565
|
-
if (typeof
|
|
566
|
-
|
|
567
|
-
if (typeof
|
|
568
|
-
|
|
569
|
-
if (
|
|
570
|
-
|
|
568
|
+
if (typeof parsedFromHighEntropyValuesOSName !== 'undefined')
|
|
569
|
+
name = parsedFromHighEntropyValuesOSName;
|
|
570
|
+
if (typeof parsedFromHighEntropyValuesOSVersion !== 'undefined')
|
|
571
|
+
version = parsedFromHighEntropyValuesOSVersion;
|
|
572
|
+
if (name === OS.MacOS && typeof globalThis.navigator.standalone !== 'undefined' && globalThis.navigator.maxTouchPoints > 2)
|
|
573
|
+
name = OS.iOS;
|
|
571
574
|
}
|
|
572
|
-
return
|
|
575
|
+
return { name: name, version: version };
|
|
573
576
|
}
|
|
574
577
|
function parseBrowser() {
|
|
575
|
-
var
|
|
578
|
+
var name = Browsers.Unknown;
|
|
579
|
+
var version = '';
|
|
576
580
|
for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
577
581
|
var map = BROWSER_RESOLVER_MAP[i];
|
|
578
582
|
var matched = currentUserAgent.match(map[0]);
|
|
579
583
|
if (matched !== null) {
|
|
580
|
-
|
|
581
|
-
|
|
584
|
+
name = map[1];
|
|
585
|
+
version = resolveVersion(matched[1], map[2]);
|
|
582
586
|
break;
|
|
583
587
|
}
|
|
584
588
|
}
|
|
585
589
|
if (currentUserAgent === USER_AGENT) {
|
|
586
|
-
if (typeof
|
|
587
|
-
|
|
588
|
-
if (typeof
|
|
589
|
-
|
|
590
|
+
if (typeof parsedFromHighEntropyValuesBrowserName !== 'undefined')
|
|
591
|
+
name = parsedFromHighEntropyValuesBrowserName;
|
|
592
|
+
if (typeof parsedFromHighEntropyValuesBrowserVersion !== 'undefined')
|
|
593
|
+
version = parsedFromHighEntropyValuesBrowserVersion;
|
|
590
594
|
}
|
|
591
|
-
return
|
|
595
|
+
return { name: name, version: version };
|
|
592
596
|
}
|
|
593
597
|
function parseEngine() {
|
|
594
|
-
var
|
|
598
|
+
var name = Engines.Unknown;
|
|
599
|
+
var version = '';
|
|
595
600
|
for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
|
|
596
601
|
var map = ENGINE_RESOLVER_MAP[i];
|
|
597
602
|
var matched = currentUserAgent.match(map[0]);
|
|
598
603
|
if (matched !== null) {
|
|
599
|
-
|
|
600
|
-
|
|
604
|
+
name = map[1];
|
|
605
|
+
version = resolveVersion(matched[1], map[2]);
|
|
601
606
|
break;
|
|
602
607
|
}
|
|
603
608
|
}
|
|
604
609
|
if (currentUserAgent === USER_AGENT) {
|
|
605
|
-
if (typeof
|
|
606
|
-
|
|
607
|
-
if (typeof parsedFromHighEntropyValuesEngine.version !== 'undefined')
|
|
608
|
-
result.version = parsedFromHighEntropyValuesEngine.version;
|
|
610
|
+
if (typeof parsedFromHighEntropyValuesEngineVersion !== 'undefined')
|
|
611
|
+
version = parsedFromHighEntropyValuesEngineVersion;
|
|
609
612
|
}
|
|
610
|
-
return
|
|
613
|
+
return { name: name, version: version };
|
|
611
614
|
}
|
|
612
615
|
function parseFromHighEntropyValues() {
|
|
613
616
|
if (typeof globalThis.navigator === 'undefined' || typeof globalThis.navigator.userAgentData === 'undefined' || typeof globalThis.navigator.userAgentData.getHighEntropyValues === 'undefined')
|
|
@@ -633,38 +636,38 @@ function parseFromHighEntropyValues() {
|
|
|
633
636
|
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
634
637
|
browserName = brandName;
|
|
635
638
|
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
636
|
-
|
|
639
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Chrome;
|
|
637
640
|
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
638
|
-
|
|
641
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Edge;
|
|
639
642
|
else if (browserName === 'Opera Mobi')
|
|
640
|
-
|
|
641
|
-
|
|
643
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Opera;
|
|
644
|
+
parsedFromHighEntropyValuesBrowserVersion = brandVersion;
|
|
642
645
|
}
|
|
643
646
|
prevBrandName = brandName;
|
|
644
647
|
}
|
|
645
648
|
if (brandName === 'Chromium')
|
|
646
|
-
|
|
649
|
+
parsedFromHighEntropyValuesEngineVersion = brandVersion;
|
|
647
650
|
}
|
|
648
651
|
if (typeof platformVersion === 'string') {
|
|
649
652
|
if (getParsedCache().os.name === OS.Windows) {
|
|
650
653
|
if (parseInt(platformVersion.split('.')[0], 10) >= 13)
|
|
651
|
-
|
|
654
|
+
parsedFromHighEntropyValuesOSVersion = '11';
|
|
652
655
|
else
|
|
653
|
-
|
|
656
|
+
parsedFromHighEntropyValuesOSVersion = '10';
|
|
654
657
|
}
|
|
655
658
|
else {
|
|
656
|
-
|
|
659
|
+
parsedFromHighEntropyValuesOSVersion = platformVersion;
|
|
657
660
|
}
|
|
658
661
|
}
|
|
659
662
|
if (typeof platform === 'string') {
|
|
660
663
|
if (/android/i.test(platform))
|
|
661
|
-
|
|
664
|
+
parsedFromHighEntropyValuesOSName = OS.Android;
|
|
662
665
|
else if (/ios|iphone|ipad/i.test(platform))
|
|
663
|
-
|
|
666
|
+
parsedFromHighEntropyValuesOSName = OS.iOS;
|
|
664
667
|
else if (/windows|win32/i.test(platform))
|
|
665
|
-
|
|
668
|
+
parsedFromHighEntropyValuesOSName = OS.Windows;
|
|
666
669
|
else if (/macos|macintel/i.test(platform))
|
|
667
|
-
|
|
670
|
+
parsedFromHighEntropyValuesOSName = OS.MacOS;
|
|
668
671
|
}
|
|
669
672
|
if (result.mobile === true)
|
|
670
673
|
parsedFromHighEntropyValuesDevice = Devices.Mobile;
|
|
@@ -13,16 +13,16 @@ declare interface PipInstance {
|
|
|
13
13
|
onChange(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
14
14
|
onError(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
15
15
|
onError(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
16
|
-
Constants: {};
|
|
17
|
-
Errors: {
|
|
18
|
-
NotSupportedError: typeof NotSupportedError;
|
|
19
|
-
InvalidStateError: typeof InvalidStateError;
|
|
16
|
+
readonly Constants: {};
|
|
17
|
+
readonly Errors: {
|
|
18
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
19
|
+
readonly InvalidStateError: typeof InvalidStateError;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
declare interface PipEventPayload {
|
|
23
|
-
nativeEvent: Event;
|
|
24
|
-
element: HTMLVideoElement;
|
|
25
|
-
isActive: boolean;
|
|
23
|
+
readonly nativeEvent: Event;
|
|
24
|
+
readonly element: HTMLVideoElement;
|
|
25
|
+
readonly isActive: boolean;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
declare global {
|
|
@@ -509,9 +509,11 @@ var BROWSER_RESOLVER_MAP = [
|
|
|
509
509
|
|
|
510
510
|
var currentUserAgent = USER_AGENT;
|
|
511
511
|
var parsedCache = null;
|
|
512
|
-
var
|
|
513
|
-
var
|
|
514
|
-
var
|
|
512
|
+
var parsedFromHighEntropyValuesOSName = undefined;
|
|
513
|
+
var parsedFromHighEntropyValuesOSVersion = undefined;
|
|
514
|
+
var parsedFromHighEntropyValuesBrowserName = undefined;
|
|
515
|
+
var parsedFromHighEntropyValuesBrowserVersion = undefined;
|
|
516
|
+
var parsedFromHighEntropyValuesEngineVersion = undefined;
|
|
515
517
|
var parsedFromHighEntropyValuesDevice = null;
|
|
516
518
|
function resolveVersion(string, resolver) {
|
|
517
519
|
if (typeof resolver === 'function')
|
|
@@ -541,71 +543,72 @@ function getParsedCache() {
|
|
|
541
543
|
return parsedCache;
|
|
542
544
|
}
|
|
543
545
|
function parseOS() {
|
|
544
|
-
var
|
|
546
|
+
var name = OS.Unknown;
|
|
547
|
+
var version = '';
|
|
545
548
|
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
546
549
|
var map = OS_RESOLVER_MAP[i];
|
|
547
550
|
var matched = currentUserAgent.match(map[0]);
|
|
548
551
|
if (matched !== null) {
|
|
549
|
-
|
|
550
|
-
|
|
552
|
+
name = map[1];
|
|
553
|
+
version = resolveVersion(matched[1], map[2]);
|
|
551
554
|
break;
|
|
552
555
|
}
|
|
553
556
|
}
|
|
554
|
-
if (
|
|
555
|
-
var
|
|
556
|
-
if (
|
|
557
|
-
var major = parseInt(
|
|
557
|
+
if (name === OS.iOS && compareVersion(version, '18.6') === 0) {
|
|
558
|
+
var execs = /\) Version\/([\d.]+)/.exec(currentUserAgent);
|
|
559
|
+
if (execs !== null) {
|
|
560
|
+
var major = parseInt(execs[1].split('.')[0], 10);
|
|
558
561
|
if (major >= 26)
|
|
559
|
-
|
|
562
|
+
version = execs[1];
|
|
560
563
|
}
|
|
561
564
|
}
|
|
562
565
|
if (currentUserAgent === USER_AGENT) {
|
|
563
|
-
if (typeof
|
|
564
|
-
|
|
565
|
-
if (typeof
|
|
566
|
-
|
|
567
|
-
if (
|
|
568
|
-
|
|
566
|
+
if (typeof parsedFromHighEntropyValuesOSName !== 'undefined')
|
|
567
|
+
name = parsedFromHighEntropyValuesOSName;
|
|
568
|
+
if (typeof parsedFromHighEntropyValuesOSVersion !== 'undefined')
|
|
569
|
+
version = parsedFromHighEntropyValuesOSVersion;
|
|
570
|
+
if (name === OS.MacOS && typeof globalThis.navigator.standalone !== 'undefined' && globalThis.navigator.maxTouchPoints > 2)
|
|
571
|
+
name = OS.iOS;
|
|
569
572
|
}
|
|
570
|
-
return
|
|
573
|
+
return { name: name, version: version };
|
|
571
574
|
}
|
|
572
575
|
function parseBrowser() {
|
|
573
|
-
var
|
|
576
|
+
var name = Browsers.Unknown;
|
|
577
|
+
var version = '';
|
|
574
578
|
for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
575
579
|
var map = BROWSER_RESOLVER_MAP[i];
|
|
576
580
|
var matched = currentUserAgent.match(map[0]);
|
|
577
581
|
if (matched !== null) {
|
|
578
|
-
|
|
579
|
-
|
|
582
|
+
name = map[1];
|
|
583
|
+
version = resolveVersion(matched[1], map[2]);
|
|
580
584
|
break;
|
|
581
585
|
}
|
|
582
586
|
}
|
|
583
587
|
if (currentUserAgent === USER_AGENT) {
|
|
584
|
-
if (typeof
|
|
585
|
-
|
|
586
|
-
if (typeof
|
|
587
|
-
|
|
588
|
+
if (typeof parsedFromHighEntropyValuesBrowserName !== 'undefined')
|
|
589
|
+
name = parsedFromHighEntropyValuesBrowserName;
|
|
590
|
+
if (typeof parsedFromHighEntropyValuesBrowserVersion !== 'undefined')
|
|
591
|
+
version = parsedFromHighEntropyValuesBrowserVersion;
|
|
588
592
|
}
|
|
589
|
-
return
|
|
593
|
+
return { name: name, version: version };
|
|
590
594
|
}
|
|
591
595
|
function parseEngine() {
|
|
592
|
-
var
|
|
596
|
+
var name = Engines.Unknown;
|
|
597
|
+
var version = '';
|
|
593
598
|
for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
|
|
594
599
|
var map = ENGINE_RESOLVER_MAP[i];
|
|
595
600
|
var matched = currentUserAgent.match(map[0]);
|
|
596
601
|
if (matched !== null) {
|
|
597
|
-
|
|
598
|
-
|
|
602
|
+
name = map[1];
|
|
603
|
+
version = resolveVersion(matched[1], map[2]);
|
|
599
604
|
break;
|
|
600
605
|
}
|
|
601
606
|
}
|
|
602
607
|
if (currentUserAgent === USER_AGENT) {
|
|
603
|
-
if (typeof
|
|
604
|
-
|
|
605
|
-
if (typeof parsedFromHighEntropyValuesEngine.version !== 'undefined')
|
|
606
|
-
result.version = parsedFromHighEntropyValuesEngine.version;
|
|
608
|
+
if (typeof parsedFromHighEntropyValuesEngineVersion !== 'undefined')
|
|
609
|
+
version = parsedFromHighEntropyValuesEngineVersion;
|
|
607
610
|
}
|
|
608
|
-
return
|
|
611
|
+
return { name: name, version: version };
|
|
609
612
|
}
|
|
610
613
|
function parseFromHighEntropyValues() {
|
|
611
614
|
if (typeof globalThis.navigator === 'undefined' || typeof globalThis.navigator.userAgentData === 'undefined' || typeof globalThis.navigator.userAgentData.getHighEntropyValues === 'undefined')
|
|
@@ -631,38 +634,38 @@ function parseFromHighEntropyValues() {
|
|
|
631
634
|
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
632
635
|
browserName = brandName;
|
|
633
636
|
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
634
|
-
|
|
637
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Chrome;
|
|
635
638
|
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
636
|
-
|
|
639
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Edge;
|
|
637
640
|
else if (browserName === 'Opera Mobi')
|
|
638
|
-
|
|
639
|
-
|
|
641
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Opera;
|
|
642
|
+
parsedFromHighEntropyValuesBrowserVersion = brandVersion;
|
|
640
643
|
}
|
|
641
644
|
prevBrandName = brandName;
|
|
642
645
|
}
|
|
643
646
|
if (brandName === 'Chromium')
|
|
644
|
-
|
|
647
|
+
parsedFromHighEntropyValuesEngineVersion = brandVersion;
|
|
645
648
|
}
|
|
646
649
|
if (typeof platformVersion === 'string') {
|
|
647
650
|
if (getParsedCache().os.name === OS.Windows) {
|
|
648
651
|
if (parseInt(platformVersion.split('.')[0], 10) >= 13)
|
|
649
|
-
|
|
652
|
+
parsedFromHighEntropyValuesOSVersion = '11';
|
|
650
653
|
else
|
|
651
|
-
|
|
654
|
+
parsedFromHighEntropyValuesOSVersion = '10';
|
|
652
655
|
}
|
|
653
656
|
else {
|
|
654
|
-
|
|
657
|
+
parsedFromHighEntropyValuesOSVersion = platformVersion;
|
|
655
658
|
}
|
|
656
659
|
}
|
|
657
660
|
if (typeof platform === 'string') {
|
|
658
661
|
if (/android/i.test(platform))
|
|
659
|
-
|
|
662
|
+
parsedFromHighEntropyValuesOSName = OS.Android;
|
|
660
663
|
else if (/ios|iphone|ipad/i.test(platform))
|
|
661
|
-
|
|
664
|
+
parsedFromHighEntropyValuesOSName = OS.iOS;
|
|
662
665
|
else if (/windows|win32/i.test(platform))
|
|
663
|
-
|
|
666
|
+
parsedFromHighEntropyValuesOSName = OS.Windows;
|
|
664
667
|
else if (/macos|macintel/i.test(platform))
|
|
665
|
-
|
|
668
|
+
parsedFromHighEntropyValuesOSName = OS.MacOS;
|
|
666
669
|
}
|
|
667
670
|
if (result.mobile === true)
|
|
668
671
|
parsedFromHighEntropyValuesDevice = Devices.Mobile;
|
|
@@ -2,8 +2,8 @@ import { Appearances } from "../constants";
|
|
|
2
2
|
export declare interface AppearanceInstance {
|
|
3
3
|
get value(): Appearances;
|
|
4
4
|
onChange(listener: (appearance: Appearances) => void, options?: AddEventListenerOptions): () => void;
|
|
5
|
-
Constants: {
|
|
6
|
-
Appearances: typeof Appearances;
|
|
5
|
+
readonly Constants: {
|
|
6
|
+
readonly Appearances: typeof Appearances;
|
|
7
7
|
};
|
|
8
|
-
Errors: {};
|
|
8
|
+
readonly Errors: {};
|
|
9
9
|
}
|
|
@@ -3,8 +3,8 @@ export declare interface BadgeInstance {
|
|
|
3
3
|
get supported(): boolean;
|
|
4
4
|
set(contents: number): Promise<void>;
|
|
5
5
|
clear(): Promise<void>;
|
|
6
|
-
Constants: {};
|
|
7
|
-
Errors: {
|
|
8
|
-
NotSupportedError: typeof NotSupportedError;
|
|
6
|
+
readonly Constants: {};
|
|
7
|
+
readonly Errors: {
|
|
8
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -19,8 +19,8 @@ export declare interface BatteryInstance {
|
|
|
19
19
|
get supported(): boolean;
|
|
20
20
|
get value(): Promise<BatteryManager>;
|
|
21
21
|
onChange(listener: (battery: BatteryManager) => void, options?: AddEventListenerOptions): () => void;
|
|
22
|
-
Constants: {};
|
|
23
|
-
Errors: {
|
|
24
|
-
NotSupportedError: typeof NotSupportedError;
|
|
22
|
+
readonly Constants: {};
|
|
23
|
+
readonly Errors: {
|
|
24
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export declare enum Orientation {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
PortraitPrimary = "portrait-primary",
|
|
3
|
+
PortraitSecondary = "portrait-secondary",
|
|
4
|
+
LandscapePrimary = "landscape-primary",
|
|
5
|
+
LandscapeSecondary = "landscape-secondary"
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Orientation {
|
|
8
|
+
function isLandscape(orientation: Orientation): boolean;
|
|
9
|
+
function isPortrait(orientation: Orientation): boolean;
|
|
5
10
|
}
|
|
6
11
|
export declare const ENV_PRESETS: {
|
|
7
12
|
readonly 'safe-area-inset': {
|