native-fn 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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
|
@@ -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>;
|
|
@@ -371,9 +371,12 @@ var EventListener = {
|
|
|
371
371
|
|
|
372
372
|
var currentUserAgent = USER_AGENT;
|
|
373
373
|
var parsedCache = null;
|
|
374
|
-
var
|
|
375
|
-
var
|
|
376
|
-
var
|
|
374
|
+
var parsedFromHighEntropyValuesOSName = undefined;
|
|
375
|
+
var parsedFromHighEntropyValuesOSVersion = undefined;
|
|
376
|
+
var parsedFromHighEntropyValuesBrowserName = undefined;
|
|
377
|
+
var parsedFromHighEntropyValuesBrowserVersion = undefined;
|
|
378
|
+
var parsedFromHighEntropyValuesEngineName = undefined;
|
|
379
|
+
var parsedFromHighEntropyValuesEngineVersion = undefined;
|
|
377
380
|
var parsedFromHighEntropyValuesDevice = null;
|
|
378
381
|
var parsedFromNavigatorGPU = {};
|
|
379
382
|
function resolveVersion(string, resolver) {
|
|
@@ -394,9 +397,12 @@ function normalizeBrand(entry) {
|
|
|
394
397
|
}
|
|
395
398
|
function invalidateCache() {
|
|
396
399
|
parsedCache = null;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
+
parsedFromHighEntropyValuesOSName = undefined;
|
|
401
|
+
parsedFromHighEntropyValuesOSVersion = undefined;
|
|
402
|
+
parsedFromHighEntropyValuesBrowserName = undefined;
|
|
403
|
+
parsedFromHighEntropyValuesBrowserVersion = undefined;
|
|
404
|
+
parsedFromHighEntropyValuesEngineName = undefined;
|
|
405
|
+
parsedFromHighEntropyValuesEngineVersion = undefined;
|
|
400
406
|
parsedFromHighEntropyValuesDevice = null;
|
|
401
407
|
parsedFromNavigatorGPU = {};
|
|
402
408
|
}
|
|
@@ -412,71 +418,74 @@ function getParsedCache() {
|
|
|
412
418
|
return parsedCache;
|
|
413
419
|
}
|
|
414
420
|
function parseOS() {
|
|
415
|
-
var
|
|
421
|
+
var name = OS.Unknown;
|
|
422
|
+
var version = '';
|
|
416
423
|
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
417
424
|
var map = OS_RESOLVER_MAP[i];
|
|
418
425
|
var matched = currentUserAgent.match(map[0]);
|
|
419
426
|
if (matched !== null) {
|
|
420
|
-
|
|
421
|
-
|
|
427
|
+
name = map[1];
|
|
428
|
+
version = resolveVersion(matched[1], map[2]);
|
|
422
429
|
break;
|
|
423
430
|
}
|
|
424
431
|
}
|
|
425
|
-
if (
|
|
426
|
-
var
|
|
427
|
-
if (
|
|
428
|
-
var major = parseInt(
|
|
432
|
+
if (name === OS.iOS && compareVersion(version, '18.6') === 0) {
|
|
433
|
+
var execs = /\) Version\/([\d.]+)/.exec(currentUserAgent);
|
|
434
|
+
if (execs !== null) {
|
|
435
|
+
var major = parseInt(execs[1].split('.')[0], 10);
|
|
429
436
|
if (major >= 26)
|
|
430
|
-
|
|
437
|
+
version = execs[1];
|
|
431
438
|
}
|
|
432
439
|
}
|
|
433
440
|
if (currentUserAgent === USER_AGENT) {
|
|
434
|
-
if (typeof
|
|
435
|
-
|
|
436
|
-
if (typeof
|
|
437
|
-
|
|
438
|
-
if (
|
|
439
|
-
|
|
441
|
+
if (typeof parsedFromHighEntropyValuesOSName !== 'undefined')
|
|
442
|
+
name = parsedFromHighEntropyValuesOSName;
|
|
443
|
+
if (typeof parsedFromHighEntropyValuesOSVersion !== 'undefined')
|
|
444
|
+
version = parsedFromHighEntropyValuesOSVersion;
|
|
445
|
+
if (name === OS.MacOS && typeof globalThis.navigator.standalone !== 'undefined' && globalThis.navigator.maxTouchPoints > 2)
|
|
446
|
+
name = OS.iOS;
|
|
440
447
|
}
|
|
441
|
-
return
|
|
448
|
+
return { name: name, version: version };
|
|
442
449
|
}
|
|
443
450
|
function parseBrowser() {
|
|
444
|
-
var
|
|
451
|
+
var name = Browsers.Unknown;
|
|
452
|
+
var version = '';
|
|
445
453
|
for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
446
454
|
var map = BROWSER_RESOLVER_MAP[i];
|
|
447
455
|
var matched = currentUserAgent.match(map[0]);
|
|
448
456
|
if (matched !== null) {
|
|
449
|
-
|
|
450
|
-
|
|
457
|
+
name = map[1];
|
|
458
|
+
version = resolveVersion(matched[1], map[2]);
|
|
451
459
|
break;
|
|
452
460
|
}
|
|
453
461
|
}
|
|
454
462
|
if (currentUserAgent === USER_AGENT) {
|
|
455
|
-
if (typeof
|
|
456
|
-
|
|
457
|
-
if (typeof
|
|
458
|
-
|
|
463
|
+
if (typeof parsedFromHighEntropyValuesBrowserName !== 'undefined')
|
|
464
|
+
name = parsedFromHighEntropyValuesBrowserName;
|
|
465
|
+
if (typeof parsedFromHighEntropyValuesBrowserVersion !== 'undefined')
|
|
466
|
+
version = parsedFromHighEntropyValuesBrowserVersion;
|
|
459
467
|
}
|
|
460
|
-
return
|
|
468
|
+
return { name: name, version: version };
|
|
461
469
|
}
|
|
462
470
|
function parseEngine() {
|
|
463
|
-
var
|
|
471
|
+
var name = Engines.Unknown;
|
|
472
|
+
var version = '';
|
|
464
473
|
for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
|
|
465
474
|
var map = ENGINE_RESOLVER_MAP[i];
|
|
466
475
|
var matched = currentUserAgent.match(map[0]);
|
|
467
476
|
if (matched !== null) {
|
|
468
|
-
|
|
469
|
-
|
|
477
|
+
name = map[1];
|
|
478
|
+
version = resolveVersion(matched[1], map[2]);
|
|
470
479
|
break;
|
|
471
480
|
}
|
|
472
481
|
}
|
|
473
482
|
if (currentUserAgent === USER_AGENT) {
|
|
474
|
-
if (typeof
|
|
475
|
-
|
|
476
|
-
if (typeof
|
|
477
|
-
|
|
483
|
+
if (typeof parsedFromHighEntropyValuesEngineName !== 'undefined')
|
|
484
|
+
name = parsedFromHighEntropyValuesEngineName;
|
|
485
|
+
if (typeof parsedFromHighEntropyValuesEngineVersion !== 'undefined')
|
|
486
|
+
version = parsedFromHighEntropyValuesEngineVersion;
|
|
478
487
|
}
|
|
479
|
-
return
|
|
488
|
+
return { name: name, version: version };
|
|
480
489
|
}
|
|
481
490
|
function getIsWebview() {
|
|
482
491
|
return /; ?wv|applewebkit(?!.*safari)/i.test(currentUserAgent);
|
|
@@ -505,38 +514,38 @@ function parseFromHighEntropyValues() {
|
|
|
505
514
|
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
506
515
|
browserName = brandName;
|
|
507
516
|
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
508
|
-
|
|
517
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Chrome;
|
|
509
518
|
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
510
|
-
|
|
519
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Edge;
|
|
511
520
|
else if (browserName === 'Opera Mobi')
|
|
512
|
-
|
|
513
|
-
|
|
521
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Opera;
|
|
522
|
+
parsedFromHighEntropyValuesBrowserVersion = brandVersion;
|
|
514
523
|
}
|
|
515
524
|
prevBrandName = brandName;
|
|
516
525
|
}
|
|
517
526
|
if (brandName === 'Chromium')
|
|
518
|
-
|
|
527
|
+
parsedFromHighEntropyValuesEngineVersion = brandVersion;
|
|
519
528
|
}
|
|
520
529
|
if (typeof platformVersion === 'string') {
|
|
521
530
|
if (getParsedCache().os.name === OS.Windows) {
|
|
522
531
|
if (parseInt(platformVersion.split('.')[0], 10) >= 13)
|
|
523
|
-
|
|
532
|
+
parsedFromHighEntropyValuesOSVersion = '11';
|
|
524
533
|
else
|
|
525
|
-
|
|
534
|
+
parsedFromHighEntropyValuesOSVersion = '10';
|
|
526
535
|
}
|
|
527
536
|
else {
|
|
528
|
-
|
|
537
|
+
parsedFromHighEntropyValuesOSVersion = platformVersion;
|
|
529
538
|
}
|
|
530
539
|
}
|
|
531
540
|
if (typeof platform === 'string') {
|
|
532
541
|
if (/android/i.test(platform))
|
|
533
|
-
|
|
542
|
+
parsedFromHighEntropyValuesOSName = OS.Android;
|
|
534
543
|
else if (/ios|iphone|ipad/i.test(platform))
|
|
535
|
-
|
|
544
|
+
parsedFromHighEntropyValuesOSName = OS.iOS;
|
|
536
545
|
else if (/windows|win32/i.test(platform))
|
|
537
|
-
|
|
546
|
+
parsedFromHighEntropyValuesOSName = OS.Windows;
|
|
538
547
|
else if (/macos|macintel/i.test(platform))
|
|
539
|
-
|
|
548
|
+
parsedFromHighEntropyValuesOSName = OS.MacOS;
|
|
540
549
|
}
|
|
541
550
|
if (result.mobile === true)
|
|
542
551
|
parsedFromHighEntropyValuesDevice = Devices.Mobile;
|
|
@@ -289,8 +289,8 @@ interface DirectoryOptions {
|
|
|
289
289
|
startIn?: ExplorerStartIn;
|
|
290
290
|
}
|
|
291
291
|
interface FileWithPath {
|
|
292
|
-
file: File;
|
|
293
|
-
relativePath: string;
|
|
292
|
+
readonly file: File;
|
|
293
|
+
readonly relativePath: string;
|
|
294
294
|
}
|
|
295
295
|
interface CameraOptions {
|
|
296
296
|
type?: CameraType;
|
|
@@ -382,7 +382,7 @@ declare interface OpenInstance {
|
|
|
382
382
|
contact(options?: ContactOptions): Promise<Contact[]>;
|
|
383
383
|
share(options: ShareData): Promise<void>;
|
|
384
384
|
calendar(options: CalendarOptions): void;
|
|
385
|
-
supported: {
|
|
385
|
+
readonly supported: {
|
|
386
386
|
get intent(): boolean;
|
|
387
387
|
get universal(): boolean;
|
|
388
388
|
get setting(): boolean;
|
|
@@ -392,16 +392,16 @@ declare interface OpenInstance {
|
|
|
392
392
|
get share(): boolean;
|
|
393
393
|
get calendar(): boolean;
|
|
394
394
|
};
|
|
395
|
-
Constants: {
|
|
396
|
-
AppOpenState: typeof AppOpenState;
|
|
397
|
-
SettingType: typeof SettingType;
|
|
398
|
-
CameraType: typeof CameraType;
|
|
399
|
-
CaptureType: typeof CaptureType;
|
|
395
|
+
readonly Constants: {
|
|
396
|
+
readonly AppOpenState: typeof AppOpenState;
|
|
397
|
+
readonly SettingType: typeof SettingType;
|
|
398
|
+
readonly CameraType: typeof CameraType;
|
|
399
|
+
readonly CaptureType: typeof CaptureType;
|
|
400
400
|
};
|
|
401
|
-
Errors: {
|
|
402
|
-
URLOpenError: typeof URLOpenError;
|
|
403
|
-
NotSupportedError: typeof NotSupportedError;
|
|
404
|
-
UserCancelledError: typeof UserCancelledError;
|
|
401
|
+
readonly Errors: {
|
|
402
|
+
readonly URLOpenError: typeof URLOpenError;
|
|
403
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
404
|
+
readonly UserCancelledError: typeof UserCancelledError;
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
407
|
|
|
@@ -367,9 +367,12 @@ var EventListener = {
|
|
|
367
367
|
|
|
368
368
|
var currentUserAgent = USER_AGENT;
|
|
369
369
|
var parsedCache = null;
|
|
370
|
-
var
|
|
371
|
-
var
|
|
372
|
-
var
|
|
370
|
+
var parsedFromHighEntropyValuesOSName = undefined;
|
|
371
|
+
var parsedFromHighEntropyValuesOSVersion = undefined;
|
|
372
|
+
var parsedFromHighEntropyValuesBrowserName = undefined;
|
|
373
|
+
var parsedFromHighEntropyValuesBrowserVersion = undefined;
|
|
374
|
+
var parsedFromHighEntropyValuesEngineName = undefined;
|
|
375
|
+
var parsedFromHighEntropyValuesEngineVersion = undefined;
|
|
373
376
|
var parsedFromHighEntropyValuesDevice = null;
|
|
374
377
|
var parsedFromNavigatorGPU = {};
|
|
375
378
|
function resolveVersion(string, resolver) {
|
|
@@ -390,9 +393,12 @@ function normalizeBrand(entry) {
|
|
|
390
393
|
}
|
|
391
394
|
function invalidateCache() {
|
|
392
395
|
parsedCache = null;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
+
parsedFromHighEntropyValuesOSName = undefined;
|
|
397
|
+
parsedFromHighEntropyValuesOSVersion = undefined;
|
|
398
|
+
parsedFromHighEntropyValuesBrowserName = undefined;
|
|
399
|
+
parsedFromHighEntropyValuesBrowserVersion = undefined;
|
|
400
|
+
parsedFromHighEntropyValuesEngineName = undefined;
|
|
401
|
+
parsedFromHighEntropyValuesEngineVersion = undefined;
|
|
396
402
|
parsedFromHighEntropyValuesDevice = null;
|
|
397
403
|
parsedFromNavigatorGPU = {};
|
|
398
404
|
}
|
|
@@ -408,71 +414,74 @@ function getParsedCache() {
|
|
|
408
414
|
return parsedCache;
|
|
409
415
|
}
|
|
410
416
|
function parseOS() {
|
|
411
|
-
var
|
|
417
|
+
var name = OS.Unknown;
|
|
418
|
+
var version = '';
|
|
412
419
|
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
413
420
|
var map = OS_RESOLVER_MAP[i];
|
|
414
421
|
var matched = currentUserAgent.match(map[0]);
|
|
415
422
|
if (matched !== null) {
|
|
416
|
-
|
|
417
|
-
|
|
423
|
+
name = map[1];
|
|
424
|
+
version = resolveVersion(matched[1], map[2]);
|
|
418
425
|
break;
|
|
419
426
|
}
|
|
420
427
|
}
|
|
421
|
-
if (
|
|
422
|
-
var
|
|
423
|
-
if (
|
|
424
|
-
var major = parseInt(
|
|
428
|
+
if (name === OS.iOS && compareVersion(version, '18.6') === 0) {
|
|
429
|
+
var execs = /\) Version\/([\d.]+)/.exec(currentUserAgent);
|
|
430
|
+
if (execs !== null) {
|
|
431
|
+
var major = parseInt(execs[1].split('.')[0], 10);
|
|
425
432
|
if (major >= 26)
|
|
426
|
-
|
|
433
|
+
version = execs[1];
|
|
427
434
|
}
|
|
428
435
|
}
|
|
429
436
|
if (currentUserAgent === USER_AGENT) {
|
|
430
|
-
if (typeof
|
|
431
|
-
|
|
432
|
-
if (typeof
|
|
433
|
-
|
|
434
|
-
if (
|
|
435
|
-
|
|
437
|
+
if (typeof parsedFromHighEntropyValuesOSName !== 'undefined')
|
|
438
|
+
name = parsedFromHighEntropyValuesOSName;
|
|
439
|
+
if (typeof parsedFromHighEntropyValuesOSVersion !== 'undefined')
|
|
440
|
+
version = parsedFromHighEntropyValuesOSVersion;
|
|
441
|
+
if (name === OS.MacOS && typeof globalThis.navigator.standalone !== 'undefined' && globalThis.navigator.maxTouchPoints > 2)
|
|
442
|
+
name = OS.iOS;
|
|
436
443
|
}
|
|
437
|
-
return
|
|
444
|
+
return { name: name, version: version };
|
|
438
445
|
}
|
|
439
446
|
function parseBrowser() {
|
|
440
|
-
var
|
|
447
|
+
var name = Browsers.Unknown;
|
|
448
|
+
var version = '';
|
|
441
449
|
for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
442
450
|
var map = BROWSER_RESOLVER_MAP[i];
|
|
443
451
|
var matched = currentUserAgent.match(map[0]);
|
|
444
452
|
if (matched !== null) {
|
|
445
|
-
|
|
446
|
-
|
|
453
|
+
name = map[1];
|
|
454
|
+
version = resolveVersion(matched[1], map[2]);
|
|
447
455
|
break;
|
|
448
456
|
}
|
|
449
457
|
}
|
|
450
458
|
if (currentUserAgent === USER_AGENT) {
|
|
451
|
-
if (typeof
|
|
452
|
-
|
|
453
|
-
if (typeof
|
|
454
|
-
|
|
459
|
+
if (typeof parsedFromHighEntropyValuesBrowserName !== 'undefined')
|
|
460
|
+
name = parsedFromHighEntropyValuesBrowserName;
|
|
461
|
+
if (typeof parsedFromHighEntropyValuesBrowserVersion !== 'undefined')
|
|
462
|
+
version = parsedFromHighEntropyValuesBrowserVersion;
|
|
455
463
|
}
|
|
456
|
-
return
|
|
464
|
+
return { name: name, version: version };
|
|
457
465
|
}
|
|
458
466
|
function parseEngine() {
|
|
459
|
-
var
|
|
467
|
+
var name = Engines.Unknown;
|
|
468
|
+
var version = '';
|
|
460
469
|
for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
|
|
461
470
|
var map = ENGINE_RESOLVER_MAP[i];
|
|
462
471
|
var matched = currentUserAgent.match(map[0]);
|
|
463
472
|
if (matched !== null) {
|
|
464
|
-
|
|
465
|
-
|
|
473
|
+
name = map[1];
|
|
474
|
+
version = resolveVersion(matched[1], map[2]);
|
|
466
475
|
break;
|
|
467
476
|
}
|
|
468
477
|
}
|
|
469
478
|
if (currentUserAgent === USER_AGENT) {
|
|
470
|
-
if (typeof
|
|
471
|
-
|
|
472
|
-
if (typeof
|
|
473
|
-
|
|
479
|
+
if (typeof parsedFromHighEntropyValuesEngineName !== 'undefined')
|
|
480
|
+
name = parsedFromHighEntropyValuesEngineName;
|
|
481
|
+
if (typeof parsedFromHighEntropyValuesEngineVersion !== 'undefined')
|
|
482
|
+
version = parsedFromHighEntropyValuesEngineVersion;
|
|
474
483
|
}
|
|
475
|
-
return
|
|
484
|
+
return { name: name, version: version };
|
|
476
485
|
}
|
|
477
486
|
function getIsWebview() {
|
|
478
487
|
return /; ?wv|applewebkit(?!.*safari)/i.test(currentUserAgent);
|
|
@@ -501,38 +510,38 @@ function parseFromHighEntropyValues() {
|
|
|
501
510
|
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
502
511
|
browserName = brandName;
|
|
503
512
|
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
504
|
-
|
|
513
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Chrome;
|
|
505
514
|
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
506
|
-
|
|
515
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Edge;
|
|
507
516
|
else if (browserName === 'Opera Mobi')
|
|
508
|
-
|
|
509
|
-
|
|
517
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Opera;
|
|
518
|
+
parsedFromHighEntropyValuesBrowserVersion = brandVersion;
|
|
510
519
|
}
|
|
511
520
|
prevBrandName = brandName;
|
|
512
521
|
}
|
|
513
522
|
if (brandName === 'Chromium')
|
|
514
|
-
|
|
523
|
+
parsedFromHighEntropyValuesEngineVersion = brandVersion;
|
|
515
524
|
}
|
|
516
525
|
if (typeof platformVersion === 'string') {
|
|
517
526
|
if (getParsedCache().os.name === OS.Windows) {
|
|
518
527
|
if (parseInt(platformVersion.split('.')[0], 10) >= 13)
|
|
519
|
-
|
|
528
|
+
parsedFromHighEntropyValuesOSVersion = '11';
|
|
520
529
|
else
|
|
521
|
-
|
|
530
|
+
parsedFromHighEntropyValuesOSVersion = '10';
|
|
522
531
|
}
|
|
523
532
|
else {
|
|
524
|
-
|
|
533
|
+
parsedFromHighEntropyValuesOSVersion = platformVersion;
|
|
525
534
|
}
|
|
526
535
|
}
|
|
527
536
|
if (typeof platform === 'string') {
|
|
528
537
|
if (/android/i.test(platform))
|
|
529
|
-
|
|
538
|
+
parsedFromHighEntropyValuesOSName = OS.Android;
|
|
530
539
|
else if (/ios|iphone|ipad/i.test(platform))
|
|
531
|
-
|
|
540
|
+
parsedFromHighEntropyValuesOSName = OS.iOS;
|
|
532
541
|
else if (/windows|win32/i.test(platform))
|
|
533
|
-
|
|
542
|
+
parsedFromHighEntropyValuesOSName = OS.Windows;
|
|
534
543
|
else if (/macos|macintel/i.test(platform))
|
|
535
|
-
|
|
544
|
+
parsedFromHighEntropyValuesOSName = OS.MacOS;
|
|
536
545
|
}
|
|
537
546
|
if (result.mobile === true)
|
|
538
547
|
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': {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { ENV_PRESETS, Orientation } from "../constants";
|
|
2
|
+
import { NotSupportedError } from "../../../errors/not-supported-error";
|
|
3
|
+
import { PermissionNotGrantedError } from "../../../errors/permission-not-granted-error";
|
|
2
4
|
export type EnvironmentPresetKey = keyof typeof ENV_PRESETS;
|
|
3
5
|
export type EnvironmentPresetAttribute<K extends EnvironmentPresetKey> = keyof typeof ENV_PRESETS[K];
|
|
4
6
|
export type EnvironmentPresetValues<K extends EnvironmentPresetKey> = {
|
|
5
7
|
[P in EnvironmentPresetAttribute<K>]: number;
|
|
6
8
|
};
|
|
7
9
|
export declare interface Environment {
|
|
8
|
-
safeAreaInset: EnvironmentObserver<'safe-area-inset'>;
|
|
9
|
-
safeAreaMaxInset: EnvironmentObserver<'safe-area-max-inset'>;
|
|
10
|
-
keyboardInset: EnvironmentObserver<'keyboard-inset'>;
|
|
11
|
-
titlebarArea: EnvironmentObserver<'titlebar-area'>;
|
|
12
|
-
viewportSegment: EnvironmentObserver<'viewport-segment'>;
|
|
10
|
+
readonly safeAreaInset: EnvironmentObserver<'safe-area-inset'>;
|
|
11
|
+
readonly safeAreaMaxInset: EnvironmentObserver<'safe-area-max-inset'>;
|
|
12
|
+
readonly keyboardInset: EnvironmentObserver<'keyboard-inset'>;
|
|
13
|
+
readonly titlebarArea: EnvironmentObserver<'titlebar-area'>;
|
|
14
|
+
readonly viewportSegment: EnvironmentObserver<'viewport-segment'>;
|
|
13
15
|
}
|
|
14
16
|
export declare interface SegmentsObserver {
|
|
15
17
|
get value(): EnvironmentPresetValues<'viewport-segment'>[];
|
|
@@ -22,19 +24,39 @@ export declare type EnvironmentObserver<K extends EnvironmentPresetKey> = K exte
|
|
|
22
24
|
useCssVariable(prefix: string): () => void;
|
|
23
25
|
};
|
|
24
26
|
export declare interface Dimensions {
|
|
25
|
-
outerWidth: number;
|
|
26
|
-
outerHeight: number;
|
|
27
|
-
innerWidth: number;
|
|
28
|
-
innerHeight: number;
|
|
29
|
-
scale: number;
|
|
30
|
-
|
|
27
|
+
readonly outerWidth: number;
|
|
28
|
+
readonly outerHeight: number;
|
|
29
|
+
readonly innerWidth: number;
|
|
30
|
+
readonly innerHeight: number;
|
|
31
|
+
readonly scale: number;
|
|
32
|
+
}
|
|
33
|
+
export declare interface DeviceOrientationValue {
|
|
34
|
+
readonly alpha: number | null;
|
|
35
|
+
readonly beta: number | null;
|
|
36
|
+
readonly gamma: number | null;
|
|
37
|
+
readonly absolute: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare interface DeviceOrientationInstance {
|
|
40
|
+
get supported(): boolean;
|
|
41
|
+
readonly value: Promise<DeviceOrientationValue>;
|
|
42
|
+
onChange(listener: (value: DeviceOrientationValue) => void, options?: AddEventListenerOptions): () => void;
|
|
43
|
+
}
|
|
44
|
+
export declare interface ScreenOrientationInstance {
|
|
45
|
+
get supported(): boolean;
|
|
46
|
+
readonly value: Orientation;
|
|
47
|
+
onChange(listener: (value: Orientation) => void, options?: AddEventListenerOptions): () => void;
|
|
31
48
|
}
|
|
32
49
|
export declare interface DimensionInstance {
|
|
33
50
|
get value(): Dimensions;
|
|
34
|
-
environment: Environment;
|
|
51
|
+
readonly environment: Environment;
|
|
52
|
+
readonly screenOrientation: ScreenOrientationInstance;
|
|
53
|
+
readonly deviceOrientation: DeviceOrientationInstance;
|
|
35
54
|
onChange(listener: (dimension: Dimensions) => void, options?: AddEventListenerOptions): () => void;
|
|
36
|
-
Constants: {
|
|
37
|
-
Orientation: typeof Orientation;
|
|
55
|
+
readonly Constants: {
|
|
56
|
+
readonly Orientation: typeof Orientation;
|
|
57
|
+
};
|
|
58
|
+
readonly Errors: {
|
|
59
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
60
|
+
readonly PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
38
61
|
};
|
|
39
|
-
Errors: {};
|
|
40
62
|
}
|