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
|
@@ -402,9 +402,11 @@ var EventListener = {
|
|
|
402
402
|
|
|
403
403
|
var currentUserAgent = USER_AGENT;
|
|
404
404
|
var parsedCache = null;
|
|
405
|
-
var
|
|
406
|
-
var
|
|
407
|
-
var
|
|
405
|
+
var parsedFromHighEntropyValuesOSName = undefined;
|
|
406
|
+
var parsedFromHighEntropyValuesOSVersion = undefined;
|
|
407
|
+
var parsedFromHighEntropyValuesBrowserName = undefined;
|
|
408
|
+
var parsedFromHighEntropyValuesBrowserVersion = undefined;
|
|
409
|
+
var parsedFromHighEntropyValuesEngineVersion = undefined;
|
|
408
410
|
var parsedFromHighEntropyValuesDevice = null;
|
|
409
411
|
function resolveVersion(string, resolver) {
|
|
410
412
|
if (typeof resolver === 'function')
|
|
@@ -434,71 +436,72 @@ function getParsedCache() {
|
|
|
434
436
|
return parsedCache;
|
|
435
437
|
}
|
|
436
438
|
function parseOS() {
|
|
437
|
-
var
|
|
439
|
+
var name = OS.Unknown;
|
|
440
|
+
var version = '';
|
|
438
441
|
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
439
442
|
var map = OS_RESOLVER_MAP[i];
|
|
440
443
|
var matched = currentUserAgent.match(map[0]);
|
|
441
444
|
if (matched !== null) {
|
|
442
|
-
|
|
443
|
-
|
|
445
|
+
name = map[1];
|
|
446
|
+
version = resolveVersion(matched[1], map[2]);
|
|
444
447
|
break;
|
|
445
448
|
}
|
|
446
449
|
}
|
|
447
|
-
if (
|
|
448
|
-
var
|
|
449
|
-
if (
|
|
450
|
-
var major = parseInt(
|
|
450
|
+
if (name === OS.iOS && compareVersion(version, '18.6') === 0) {
|
|
451
|
+
var execs = /\) Version\/([\d.]+)/.exec(currentUserAgent);
|
|
452
|
+
if (execs !== null) {
|
|
453
|
+
var major = parseInt(execs[1].split('.')[0], 10);
|
|
451
454
|
if (major >= 26)
|
|
452
|
-
|
|
455
|
+
version = execs[1];
|
|
453
456
|
}
|
|
454
457
|
}
|
|
455
458
|
if (currentUserAgent === USER_AGENT) {
|
|
456
|
-
if (typeof
|
|
457
|
-
|
|
458
|
-
if (typeof
|
|
459
|
-
|
|
460
|
-
if (
|
|
461
|
-
|
|
459
|
+
if (typeof parsedFromHighEntropyValuesOSName !== 'undefined')
|
|
460
|
+
name = parsedFromHighEntropyValuesOSName;
|
|
461
|
+
if (typeof parsedFromHighEntropyValuesOSVersion !== 'undefined')
|
|
462
|
+
version = parsedFromHighEntropyValuesOSVersion;
|
|
463
|
+
if (name === OS.MacOS && typeof globalThis.navigator.standalone !== 'undefined' && globalThis.navigator.maxTouchPoints > 2)
|
|
464
|
+
name = OS.iOS;
|
|
462
465
|
}
|
|
463
|
-
return
|
|
466
|
+
return { name: name, version: version };
|
|
464
467
|
}
|
|
465
468
|
function parseBrowser() {
|
|
466
|
-
var
|
|
469
|
+
var name = Browsers.Unknown;
|
|
470
|
+
var version = '';
|
|
467
471
|
for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
468
472
|
var map = BROWSER_RESOLVER_MAP[i];
|
|
469
473
|
var matched = currentUserAgent.match(map[0]);
|
|
470
474
|
if (matched !== null) {
|
|
471
|
-
|
|
472
|
-
|
|
475
|
+
name = map[1];
|
|
476
|
+
version = resolveVersion(matched[1], map[2]);
|
|
473
477
|
break;
|
|
474
478
|
}
|
|
475
479
|
}
|
|
476
480
|
if (currentUserAgent === USER_AGENT) {
|
|
477
|
-
if (typeof
|
|
478
|
-
|
|
479
|
-
if (typeof
|
|
480
|
-
|
|
481
|
+
if (typeof parsedFromHighEntropyValuesBrowserName !== 'undefined')
|
|
482
|
+
name = parsedFromHighEntropyValuesBrowserName;
|
|
483
|
+
if (typeof parsedFromHighEntropyValuesBrowserVersion !== 'undefined')
|
|
484
|
+
version = parsedFromHighEntropyValuesBrowserVersion;
|
|
481
485
|
}
|
|
482
|
-
return
|
|
486
|
+
return { name: name, version: version };
|
|
483
487
|
}
|
|
484
488
|
function parseEngine() {
|
|
485
|
-
var
|
|
489
|
+
var name = Engines.Unknown;
|
|
490
|
+
var version = '';
|
|
486
491
|
for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
|
|
487
492
|
var map = ENGINE_RESOLVER_MAP[i];
|
|
488
493
|
var matched = currentUserAgent.match(map[0]);
|
|
489
494
|
if (matched !== null) {
|
|
490
|
-
|
|
491
|
-
|
|
495
|
+
name = map[1];
|
|
496
|
+
version = resolveVersion(matched[1], map[2]);
|
|
492
497
|
break;
|
|
493
498
|
}
|
|
494
499
|
}
|
|
495
500
|
if (currentUserAgent === USER_AGENT) {
|
|
496
|
-
if (typeof
|
|
497
|
-
|
|
498
|
-
if (typeof parsedFromHighEntropyValuesEngine.version !== 'undefined')
|
|
499
|
-
result.version = parsedFromHighEntropyValuesEngine.version;
|
|
501
|
+
if (typeof parsedFromHighEntropyValuesEngineVersion !== 'undefined')
|
|
502
|
+
version = parsedFromHighEntropyValuesEngineVersion;
|
|
500
503
|
}
|
|
501
|
-
return
|
|
504
|
+
return { name: name, version: version };
|
|
502
505
|
}
|
|
503
506
|
function parseFromHighEntropyValues() {
|
|
504
507
|
if (typeof globalThis.navigator === 'undefined' || typeof globalThis.navigator.userAgentData === 'undefined' || typeof globalThis.navigator.userAgentData.getHighEntropyValues === 'undefined')
|
|
@@ -524,38 +527,38 @@ function parseFromHighEntropyValues() {
|
|
|
524
527
|
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
525
528
|
browserName = brandName;
|
|
526
529
|
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
527
|
-
|
|
530
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Chrome;
|
|
528
531
|
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
529
|
-
|
|
532
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Edge;
|
|
530
533
|
else if (browserName === 'Opera Mobi')
|
|
531
|
-
|
|
532
|
-
|
|
534
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Opera;
|
|
535
|
+
parsedFromHighEntropyValuesBrowserVersion = brandVersion;
|
|
533
536
|
}
|
|
534
537
|
prevBrandName = brandName;
|
|
535
538
|
}
|
|
536
539
|
if (brandName === 'Chromium')
|
|
537
|
-
|
|
540
|
+
parsedFromHighEntropyValuesEngineVersion = brandVersion;
|
|
538
541
|
}
|
|
539
542
|
if (typeof platformVersion === 'string') {
|
|
540
543
|
if (getParsedCache().os.name === OS.Windows) {
|
|
541
544
|
if (parseInt(platformVersion.split('.')[0], 10) >= 13)
|
|
542
|
-
|
|
545
|
+
parsedFromHighEntropyValuesOSVersion = '11';
|
|
543
546
|
else
|
|
544
|
-
|
|
547
|
+
parsedFromHighEntropyValuesOSVersion = '10';
|
|
545
548
|
}
|
|
546
549
|
else {
|
|
547
|
-
|
|
550
|
+
parsedFromHighEntropyValuesOSVersion = platformVersion;
|
|
548
551
|
}
|
|
549
552
|
}
|
|
550
553
|
if (typeof platform === 'string') {
|
|
551
554
|
if (/android/i.test(platform))
|
|
552
|
-
|
|
555
|
+
parsedFromHighEntropyValuesOSName = OS.Android;
|
|
553
556
|
else if (/ios|iphone|ipad/i.test(platform))
|
|
554
|
-
|
|
557
|
+
parsedFromHighEntropyValuesOSName = OS.iOS;
|
|
555
558
|
else if (/windows|win32/i.test(platform))
|
|
556
|
-
|
|
559
|
+
parsedFromHighEntropyValuesOSName = OS.Windows;
|
|
557
560
|
else if (/macos|macintel/i.test(platform))
|
|
558
|
-
|
|
561
|
+
parsedFromHighEntropyValuesOSName = OS.MacOS;
|
|
559
562
|
}
|
|
560
563
|
if (result.mobile === true)
|
|
561
564
|
parsedFromHighEntropyValuesDevice = Devices.Mobile;
|
|
@@ -10,10 +10,10 @@ declare const SVG_PIXEL_DATA_URL: string;
|
|
|
10
10
|
declare interface AppearanceInstance {
|
|
11
11
|
get value(): Appearances;
|
|
12
12
|
onChange(listener: (appearance: Appearances) => void, options?: AddEventListenerOptions): () => void;
|
|
13
|
-
Constants: {
|
|
14
|
-
Appearances: typeof Appearances;
|
|
13
|
+
readonly Constants: {
|
|
14
|
+
readonly Appearances: typeof Appearances;
|
|
15
15
|
};
|
|
16
|
-
Errors: {};
|
|
16
|
+
readonly Errors: {};
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
declare const Appearance: AppearanceInstance;
|
|
@@ -398,9 +398,11 @@ var EventListener = {
|
|
|
398
398
|
|
|
399
399
|
var currentUserAgent = USER_AGENT;
|
|
400
400
|
var parsedCache = null;
|
|
401
|
-
var
|
|
402
|
-
var
|
|
403
|
-
var
|
|
401
|
+
var parsedFromHighEntropyValuesOSName = undefined;
|
|
402
|
+
var parsedFromHighEntropyValuesOSVersion = undefined;
|
|
403
|
+
var parsedFromHighEntropyValuesBrowserName = undefined;
|
|
404
|
+
var parsedFromHighEntropyValuesBrowserVersion = undefined;
|
|
405
|
+
var parsedFromHighEntropyValuesEngineVersion = undefined;
|
|
404
406
|
var parsedFromHighEntropyValuesDevice = null;
|
|
405
407
|
function resolveVersion(string, resolver) {
|
|
406
408
|
if (typeof resolver === 'function')
|
|
@@ -430,71 +432,72 @@ function getParsedCache() {
|
|
|
430
432
|
return parsedCache;
|
|
431
433
|
}
|
|
432
434
|
function parseOS() {
|
|
433
|
-
var
|
|
435
|
+
var name = OS.Unknown;
|
|
436
|
+
var version = '';
|
|
434
437
|
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
435
438
|
var map = OS_RESOLVER_MAP[i];
|
|
436
439
|
var matched = currentUserAgent.match(map[0]);
|
|
437
440
|
if (matched !== null) {
|
|
438
|
-
|
|
439
|
-
|
|
441
|
+
name = map[1];
|
|
442
|
+
version = resolveVersion(matched[1], map[2]);
|
|
440
443
|
break;
|
|
441
444
|
}
|
|
442
445
|
}
|
|
443
|
-
if (
|
|
444
|
-
var
|
|
445
|
-
if (
|
|
446
|
-
var major = parseInt(
|
|
446
|
+
if (name === OS.iOS && compareVersion(version, '18.6') === 0) {
|
|
447
|
+
var execs = /\) Version\/([\d.]+)/.exec(currentUserAgent);
|
|
448
|
+
if (execs !== null) {
|
|
449
|
+
var major = parseInt(execs[1].split('.')[0], 10);
|
|
447
450
|
if (major >= 26)
|
|
448
|
-
|
|
451
|
+
version = execs[1];
|
|
449
452
|
}
|
|
450
453
|
}
|
|
451
454
|
if (currentUserAgent === USER_AGENT) {
|
|
452
|
-
if (typeof
|
|
453
|
-
|
|
454
|
-
if (typeof
|
|
455
|
-
|
|
456
|
-
if (
|
|
457
|
-
|
|
455
|
+
if (typeof parsedFromHighEntropyValuesOSName !== 'undefined')
|
|
456
|
+
name = parsedFromHighEntropyValuesOSName;
|
|
457
|
+
if (typeof parsedFromHighEntropyValuesOSVersion !== 'undefined')
|
|
458
|
+
version = parsedFromHighEntropyValuesOSVersion;
|
|
459
|
+
if (name === OS.MacOS && typeof globalThis.navigator.standalone !== 'undefined' && globalThis.navigator.maxTouchPoints > 2)
|
|
460
|
+
name = OS.iOS;
|
|
458
461
|
}
|
|
459
|
-
return
|
|
462
|
+
return { name: name, version: version };
|
|
460
463
|
}
|
|
461
464
|
function parseBrowser() {
|
|
462
|
-
var
|
|
465
|
+
var name = Browsers.Unknown;
|
|
466
|
+
var version = '';
|
|
463
467
|
for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
464
468
|
var map = BROWSER_RESOLVER_MAP[i];
|
|
465
469
|
var matched = currentUserAgent.match(map[0]);
|
|
466
470
|
if (matched !== null) {
|
|
467
|
-
|
|
468
|
-
|
|
471
|
+
name = map[1];
|
|
472
|
+
version = resolveVersion(matched[1], map[2]);
|
|
469
473
|
break;
|
|
470
474
|
}
|
|
471
475
|
}
|
|
472
476
|
if (currentUserAgent === USER_AGENT) {
|
|
473
|
-
if (typeof
|
|
474
|
-
|
|
475
|
-
if (typeof
|
|
476
|
-
|
|
477
|
+
if (typeof parsedFromHighEntropyValuesBrowserName !== 'undefined')
|
|
478
|
+
name = parsedFromHighEntropyValuesBrowserName;
|
|
479
|
+
if (typeof parsedFromHighEntropyValuesBrowserVersion !== 'undefined')
|
|
480
|
+
version = parsedFromHighEntropyValuesBrowserVersion;
|
|
477
481
|
}
|
|
478
|
-
return
|
|
482
|
+
return { name: name, version: version };
|
|
479
483
|
}
|
|
480
484
|
function parseEngine() {
|
|
481
|
-
var
|
|
485
|
+
var name = Engines.Unknown;
|
|
486
|
+
var version = '';
|
|
482
487
|
for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
|
|
483
488
|
var map = ENGINE_RESOLVER_MAP[i];
|
|
484
489
|
var matched = currentUserAgent.match(map[0]);
|
|
485
490
|
if (matched !== null) {
|
|
486
|
-
|
|
487
|
-
|
|
491
|
+
name = map[1];
|
|
492
|
+
version = resolveVersion(matched[1], map[2]);
|
|
488
493
|
break;
|
|
489
494
|
}
|
|
490
495
|
}
|
|
491
496
|
if (currentUserAgent === USER_AGENT) {
|
|
492
|
-
if (typeof
|
|
493
|
-
|
|
494
|
-
if (typeof parsedFromHighEntropyValuesEngine.version !== 'undefined')
|
|
495
|
-
result.version = parsedFromHighEntropyValuesEngine.version;
|
|
497
|
+
if (typeof parsedFromHighEntropyValuesEngineVersion !== 'undefined')
|
|
498
|
+
version = parsedFromHighEntropyValuesEngineVersion;
|
|
496
499
|
}
|
|
497
|
-
return
|
|
500
|
+
return { name: name, version: version };
|
|
498
501
|
}
|
|
499
502
|
function parseFromHighEntropyValues() {
|
|
500
503
|
if (typeof globalThis.navigator === 'undefined' || typeof globalThis.navigator.userAgentData === 'undefined' || typeof globalThis.navigator.userAgentData.getHighEntropyValues === 'undefined')
|
|
@@ -520,38 +523,38 @@ function parseFromHighEntropyValues() {
|
|
|
520
523
|
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
521
524
|
browserName = brandName;
|
|
522
525
|
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
523
|
-
|
|
526
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Chrome;
|
|
524
527
|
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
525
|
-
|
|
528
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Edge;
|
|
526
529
|
else if (browserName === 'Opera Mobi')
|
|
527
|
-
|
|
528
|
-
|
|
530
|
+
parsedFromHighEntropyValuesBrowserName = Browsers.Opera;
|
|
531
|
+
parsedFromHighEntropyValuesBrowserVersion = brandVersion;
|
|
529
532
|
}
|
|
530
533
|
prevBrandName = brandName;
|
|
531
534
|
}
|
|
532
535
|
if (brandName === 'Chromium')
|
|
533
|
-
|
|
536
|
+
parsedFromHighEntropyValuesEngineVersion = brandVersion;
|
|
534
537
|
}
|
|
535
538
|
if (typeof platformVersion === 'string') {
|
|
536
539
|
if (getParsedCache().os.name === OS.Windows) {
|
|
537
540
|
if (parseInt(platformVersion.split('.')[0], 10) >= 13)
|
|
538
|
-
|
|
541
|
+
parsedFromHighEntropyValuesOSVersion = '11';
|
|
539
542
|
else
|
|
540
|
-
|
|
543
|
+
parsedFromHighEntropyValuesOSVersion = '10';
|
|
541
544
|
}
|
|
542
545
|
else {
|
|
543
|
-
|
|
546
|
+
parsedFromHighEntropyValuesOSVersion = platformVersion;
|
|
544
547
|
}
|
|
545
548
|
}
|
|
546
549
|
if (typeof platform === 'string') {
|
|
547
550
|
if (/android/i.test(platform))
|
|
548
|
-
|
|
551
|
+
parsedFromHighEntropyValuesOSName = OS.Android;
|
|
549
552
|
else if (/ios|iphone|ipad/i.test(platform))
|
|
550
|
-
|
|
553
|
+
parsedFromHighEntropyValuesOSName = OS.iOS;
|
|
551
554
|
else if (/windows|win32/i.test(platform))
|
|
552
|
-
|
|
555
|
+
parsedFromHighEntropyValuesOSName = OS.Windows;
|
|
553
556
|
else if (/macos|macintel/i.test(platform))
|
|
554
|
-
|
|
557
|
+
parsedFromHighEntropyValuesOSName = OS.MacOS;
|
|
555
558
|
}
|
|
556
559
|
if (result.mobile === true)
|
|
557
560
|
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
|
}
|
|
@@ -11,14 +11,14 @@ export declare interface FullscreenInstance {
|
|
|
11
11
|
onChange(target: Element, listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
12
12
|
onError(listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
13
13
|
onChange(target: Element, listener: (payload: FullscreenEventPayload) => 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 FullscreenEventPayload {
|
|
21
|
-
nativeEvent: Event;
|
|
22
|
-
element: Element;
|
|
23
|
-
isActive: boolean;
|
|
21
|
+
readonly nativeEvent: Event;
|
|
22
|
+
readonly element: Element;
|
|
23
|
+
readonly isActive: boolean;
|
|
24
24
|
}
|
|
@@ -4,9 +4,9 @@ export declare interface GeolocationInstance {
|
|
|
4
4
|
get supported(): boolean;
|
|
5
5
|
get value(): Promise<GeolocationCoordinates>;
|
|
6
6
|
onChange(listener: (coordinates: GeolocationCoordinates) => void, options?: AddEventListenerOptions): () => void;
|
|
7
|
-
Constants: {};
|
|
8
|
-
Errors: {
|
|
9
|
-
NotSupportedError: typeof NotSupportedError;
|
|
10
|
-
PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
7
|
+
readonly Constants: {};
|
|
8
|
+
readonly Errors: {
|
|
9
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
10
|
+
readonly PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
@@ -19,9 +19,9 @@ export interface NotificationOptions {
|
|
|
19
19
|
export declare interface NotificationInstance {
|
|
20
20
|
send(options: NotificationOptions): Promise<Notification>;
|
|
21
21
|
get supported(): boolean;
|
|
22
|
-
Constants: {};
|
|
23
|
-
Errors: {
|
|
24
|
-
NotSupportedError: typeof NotSupportedError;
|
|
25
|
-
PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
22
|
+
readonly Constants: {};
|
|
23
|
+
readonly Errors: {
|
|
24
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
25
|
+
readonly PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -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
|
}
|