native-fn 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +159 -41
- package/dist/index.d.ts +117 -88
- package/dist/native.cjs +464 -244
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +464 -244
- package/dist/native.umd.js +464 -244
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/appearance/index.cjs +49 -46
- package/dist/plugin/appearance/index.d.ts +3 -3
- package/dist/plugin/appearance/index.mjs +49 -46
- package/dist/plugin/appearance/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/appearance/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/appearance/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/appearance/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/appearance/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/appearance/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/appearance/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/appearance/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/appearance/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/appearance/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/appearance/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/appearance/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/appearance/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/appearance/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/appearance/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/badge/index.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/badge/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/badge/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/badge/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/badge/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/badge/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/badge/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/badge/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/badge/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/badge/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/badge/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/badge/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/badge/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/badge/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/badge/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/battery/index.d.ts +3 -3
- package/dist/plugin/battery/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/battery/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/battery/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/battery/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/battery/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/battery/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/battery/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/battery/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/battery/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/battery/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/battery/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/battery/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/battery/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/battery/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/battery/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/battery/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/battery/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/battery/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/clipboard/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/clipboard/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/clipboard/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/clipboard/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/clipboard/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/clipboard/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/clipboard/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/clipboard/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/clipboard/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/clipboard/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/clipboard/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/clipboard/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/clipboard/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/clipboard/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/dimension/index.cjs +310 -80
- package/dist/plugin/dimension/index.d.ts +48 -19
- package/dist/plugin/dimension/index.mjs +310 -80
- package/dist/plugin/dimension/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/dimension/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/dimension/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/dimension/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/dimension/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/dimension/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/dimension/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/dimension/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/dimension/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/dimension/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/dimension/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/dimension/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/dimension/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/dimension/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/dimension/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/dimension/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/fullscreen/index.cjs +87 -80
- package/dist/plugin/fullscreen/index.d.ts +7 -7
- package/dist/plugin/fullscreen/index.mjs +87 -80
- package/dist/plugin/fullscreen/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/fullscreen/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/fullscreen/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/fullscreen/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/fullscreen/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/fullscreen/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/fullscreen/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/fullscreen/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/fullscreen/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/fullscreen/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/fullscreen/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/fullscreen/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/fullscreen/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/geolocation/index.cjs +245 -176
- package/dist/plugin/geolocation/index.d.ts +4 -4
- package/dist/plugin/geolocation/index.mjs +245 -176
- package/dist/plugin/geolocation/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/geolocation/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/geolocation/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/geolocation/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/geolocation/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/geolocation/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/geolocation/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/geolocation/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/geolocation/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/geolocation/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/geolocation/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/geolocation/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/geolocation/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/geolocation/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/geolocation/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/geolocation/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/geolocation/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/geolocation/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/notification/index.cjs +288 -13
- package/dist/plugin/notification/index.d.ts +4 -4
- package/dist/plugin/notification/index.mjs +288 -13
- package/dist/plugin/notification/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/notification/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/notification/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/notification/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/notification/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/notification/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/notification/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/notification/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/notification/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/notification/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/notification/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/notification/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/notification/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/notification/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/notification/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/notification/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/notification/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/notification/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/open/index.cjs +58 -49
- package/dist/plugin/open/index.d.ts +12 -12
- package/dist/plugin/open/index.mjs +58 -49
- package/dist/plugin/open/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/open/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/open/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/open/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/open/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/open/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/open/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/open/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/open/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/open/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/open/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/open/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/open/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/open/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/open/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/open/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/open/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/open/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/permission/index.cjs +372 -13
- package/dist/plugin/permission/index.d.ts +11 -5
- package/dist/plugin/permission/index.mjs +372 -13
- package/dist/plugin/permission/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/permission/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/permission/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/permission/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/permission/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/permission/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/permission/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/permission/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/permission/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/permission/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/permission/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/permission/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/permission/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/permission/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/permission/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/permission/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/permission/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/permission/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/pip/index.cjs +49 -46
- package/dist/plugin/pip/index.d.ts +7 -7
- package/dist/plugin/pip/index.mjs +49 -46
- package/dist/plugin/pip/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/pip/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/pip/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/pip/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/pip/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/pip/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/pip/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/pip/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/pip/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/pip/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/pip/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/pip/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/pip/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/pip/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/pip/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/pip/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/pip/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/pip/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/platform/index.cjs +87 -80
- package/dist/plugin/platform/index.d.ts +13 -13
- package/dist/plugin/platform/index.mjs +87 -80
- package/dist/plugin/platform/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/platform/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/platform/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/platform/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/platform/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/platform/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/platform/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/platform/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/platform/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/platform/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/platform/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/platform/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/platform/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/platform/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/theme/index.cjs +58 -49
- package/dist/plugin/theme/index.d.ts +2 -2
- package/dist/plugin/theme/index.mjs +58 -49
- package/dist/plugin/theme/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/theme/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/theme/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/theme/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/theme/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/theme/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/theme/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/theme/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/theme/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/theme/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/theme/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/theme/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/theme/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/plugin/vibration/index.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/plugin/vibration/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/plugin/vibration/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/plugin/vibration/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/plugin/vibration/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/plugin/vibration/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/plugin/vibration/src/plugin/open/types/open.d.ts +12 -12
- package/dist/plugin/vibration/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/plugin/vibration/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/plugin/vibration/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/plugin/vibration/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/plugin/vibration/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/plugin/vibration/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/plugin/vibration/src/types/subscription-manager.d.ts +3 -3
- package/dist/plugin/vibration/src/utils/create-subscription-manager.d.ts +1 -1
- package/dist/src/plugin/appearance/types/appearance.d.ts +3 -3
- package/dist/src/plugin/badge/types/badge.d.ts +3 -3
- package/dist/src/plugin/battery/types/battery.d.ts +3 -3
- package/dist/src/plugin/clipboard/types/clipboard.d.ts +2 -2
- package/dist/src/plugin/dimension/constants/index.d.ts +8 -3
- package/dist/src/plugin/dimension/types/dimensions.d.ts +37 -15
- package/dist/src/plugin/fullscreen/types/fullscreen.d.ts +7 -7
- package/dist/src/plugin/geolocation/types/geolocation.d.ts +4 -4
- package/dist/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/src/plugin/open/types/open.d.ts +12 -12
- package/dist/src/plugin/permission/constants/index.d.ts +3 -1
- package/dist/src/plugin/permission/types/permission.d.ts +7 -4
- package/dist/src/plugin/pip/types/pip.d.ts +7 -7
- package/dist/src/plugin/platform/types/platform.d.ts +13 -13
- package/dist/src/plugin/theme/types/theme.d.ts +2 -2
- package/dist/src/plugin/vibration/types/vibration.d.ts +3 -3
- package/dist/src/types/subscription-manager.d.ts +3 -3
- package/dist/src/utils/create-subscription-manager.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,6 +51,8 @@ yarn add native-fn
|
|
|
51
51
|
- [paste](#clipboard-paste)
|
|
52
52
|
- **[dimension](#dimension)**
|
|
53
53
|
- [value](#dimension-value)
|
|
54
|
+
- [screenOrientation](#dimension-screenorientation)
|
|
55
|
+
- [deviceOrientation](#dimension-deviceorientation)
|
|
54
56
|
- [environment](#dimension-environment)
|
|
55
57
|
- [onChange](#dimension-onchange)
|
|
56
58
|
- **[fullscreen](#fullscreen)**
|
|
@@ -515,7 +517,7 @@ Promise<string>
|
|
|
515
517
|
|
|
516
518
|
## dimension
|
|
517
519
|
|
|
518
|
-
[`value`](#dimension-value) · [`environment`](#dimension-environment) · [`onChange`](#dimension-onchange)
|
|
520
|
+
[`value`](#dimension-value) · [`screenOrientation`](#dimension-screenorientation) · [`deviceOrientation`](#dimension-deviceorientation) · [`environment`](#dimension-environment) · [`onChange`](#dimension-onchange)
|
|
519
521
|
|
|
520
522
|
<h3 id="dimension-value"><code>dimension.value</code></h3>
|
|
521
523
|
|
|
@@ -525,19 +527,15 @@ Promise<string>
|
|
|
525
527
|
get value(): Dimensions
|
|
526
528
|
```
|
|
527
529
|
|
|
528
|
-
Returns current viewport dimensions, device pixel ratio
|
|
530
|
+
Returns current viewport dimensions, device pixel ratio.
|
|
529
531
|
|
|
530
532
|
**Example**
|
|
531
533
|
|
|
532
534
|
```ts
|
|
533
|
-
const { innerWidth, innerHeight, outerWidth, outerHeight, scale
|
|
535
|
+
const { innerWidth, innerHeight, outerWidth, outerHeight, scale } = Native.dimension.value;
|
|
534
536
|
|
|
535
537
|
console.log(innerWidth, innerHeight); // visible viewport size
|
|
536
538
|
console.log(scale); // device pixel ratio e.g. 2, 3
|
|
537
|
-
|
|
538
|
-
if (orientation === Orientation.Portrait) {
|
|
539
|
-
console.log('Portrait mode');
|
|
540
|
-
}
|
|
541
539
|
```
|
|
542
540
|
|
|
543
541
|
**Returns**
|
|
@@ -549,21 +547,140 @@ Dimensions
|
|
|
549
547
|
|
|
550
548
|
```ts
|
|
551
549
|
interface Dimensions {
|
|
552
|
-
outerWidth: number;
|
|
553
|
-
outerHeight: number;
|
|
554
|
-
innerWidth: number;
|
|
555
|
-
innerHeight: number;
|
|
556
|
-
scale: number;
|
|
557
|
-
|
|
550
|
+
readonly outerWidth: number;
|
|
551
|
+
readonly outerHeight: number;
|
|
552
|
+
readonly innerWidth: number;
|
|
553
|
+
readonly innerHeight: number;
|
|
554
|
+
readonly scale: number;
|
|
555
|
+
}
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
---
|
|
559
|
+
|
|
560
|
+
<h3 id="dimension-screenorientation"><code>dimension.screenOrientation</code></h3>
|
|
561
|
+
|
|
562
|
+
**Signature**
|
|
563
|
+
|
|
564
|
+
```ts
|
|
565
|
+
screenOrientation: ScreenOrientationInstance
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
Provides access to the current screen orientation and subscribes to its changes.
|
|
569
|
+
|
|
570
|
+
**Example**
|
|
571
|
+
|
|
572
|
+
```ts
|
|
573
|
+
// Check support
|
|
574
|
+
if (Native.dimension.screenOrientation.supported) {
|
|
575
|
+
const orientation = Native.dimension.screenOrientation.value;
|
|
576
|
+
console.log(orientation); // e.g. Orientation.PortraitPrimary
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// Subscribe to orientation changes
|
|
580
|
+
const unsubscribe = Native.dimension.screenOrientation.onChange((orientation) => {
|
|
581
|
+
console.log(orientation); // Orientation.LandscapePrimary, etc.
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
unsubscribe();
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
**Returns**
|
|
588
|
+
|
|
589
|
+
```ts
|
|
590
|
+
ScreenOrientationInstance
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
```ts
|
|
595
|
+
interface ScreenOrientationInstance {
|
|
596
|
+
get supported(): boolean;
|
|
597
|
+
|
|
598
|
+
readonly value: Orientation;
|
|
599
|
+
|
|
600
|
+
onChange(listener: (value: Orientation) => void, options?: AddEventListenerOptions): () => void;
|
|
558
601
|
}
|
|
559
602
|
|
|
560
603
|
enum Orientation {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
604
|
+
PortraitPrimary = 'portrait-primary',
|
|
605
|
+
PortraitSecondary = 'portrait-secondary',
|
|
606
|
+
LandscapePrimary = 'landscape-primary',
|
|
607
|
+
LandscapeSecondary = 'landscape-secondary',
|
|
608
|
+
}
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
**Throws**
|
|
612
|
+
|
|
613
|
+
```ts
|
|
614
|
+
throw new NotSupportedError // Thrown when screen.orientation, window.orientation, and the orientation media query are all unsupported'
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
---
|
|
618
|
+
|
|
619
|
+
<h3 id="dimension-deviceorientation"><code>dimension.deviceOrientation</code></h3>
|
|
620
|
+
|
|
621
|
+
**Signature**
|
|
622
|
+
|
|
623
|
+
```ts
|
|
624
|
+
deviceOrientation: DeviceOrientationInstance
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
Provides access to the physical device orientation (alpha, beta, gamma) via the DeviceOrientationEvent API. On iOS 13+, permission must be explicitly granted by the user.
|
|
628
|
+
|
|
629
|
+
**Example**
|
|
630
|
+
|
|
631
|
+
```ts
|
|
632
|
+
// Check support
|
|
633
|
+
if (Native.dimension.deviceOrientation.supported) {
|
|
634
|
+
|
|
635
|
+
// Get current value (triggers permission prompt on iOS if needed)
|
|
636
|
+
const { alpha, beta, gamma, absolute } = await Native.dimension.deviceOrientation.value;
|
|
637
|
+
console.log(alpha, beta, gamma); // rotation angles in degrees
|
|
638
|
+
|
|
639
|
+
// Subscribe to real-time orientation changes
|
|
640
|
+
const unsubscribe = Native.dimension.deviceOrientation.onChange((value) => {
|
|
641
|
+
console.log(value.alpha); // Z-axis rotation: 0 ~ 360
|
|
642
|
+
console.log(value.beta); // X-axis tilt: -180 ~ 180
|
|
643
|
+
console.log(value.gamma); // Y-axis tilt: -90 ~ 90
|
|
644
|
+
console.log(value.absolute); // true if relative to Earth's coordinate frame
|
|
645
|
+
});
|
|
646
|
+
|
|
647
|
+
unsubscribe();
|
|
564
648
|
}
|
|
565
649
|
```
|
|
566
650
|
|
|
651
|
+
**Returns**
|
|
652
|
+
|
|
653
|
+
```ts
|
|
654
|
+
DeviceOrientationInstance
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
```ts
|
|
659
|
+
interface DeviceOrientationInstance {
|
|
660
|
+
get supported(): boolean;
|
|
661
|
+
|
|
662
|
+
readonly value: Promise<DeviceOrientationValue>;
|
|
663
|
+
|
|
664
|
+
onChange(listener: (value: DeviceOrientationValue) => void, options?: AddEventListenerOptions): () => void;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
interface DeviceOrientationValue {
|
|
668
|
+
readonly alpha: number | null; // Z-axis rotation (0–360)
|
|
669
|
+
readonly beta: number | null; // X-axis tilt (-180–180)
|
|
670
|
+
readonly gamma: number | null; // Y-axis tilt (-90–90)
|
|
671
|
+
readonly absolute: boolean; // Earth-relative if true
|
|
672
|
+
}
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
**Throws**
|
|
676
|
+
|
|
677
|
+
```ts
|
|
678
|
+
throw new NotSupportedError // Thrown when window.DeviceOrientationEvent is not available in the current environment.
|
|
679
|
+
```
|
|
680
|
+
```ts
|
|
681
|
+
throw new PermissionNotGrantedError // Thrown on iOS 13+ when the user denies the deviceorientation permission request.
|
|
682
|
+
```
|
|
683
|
+
|
|
567
684
|
---
|
|
568
685
|
|
|
569
686
|
<h3 id="dimension-environment"><code>dimension.environment</code></h3>
|
|
@@ -650,14 +767,13 @@ interface SegmentsObserver {
|
|
|
650
767
|
onChange(listener: (dimension: Dimensions) => void, options?: AddEventListenerOptions): () => void
|
|
651
768
|
```
|
|
652
769
|
|
|
653
|
-
Subscribes to viewport dimension
|
|
770
|
+
Subscribes to viewport dimension change.
|
|
654
771
|
|
|
655
772
|
**Example**
|
|
656
773
|
|
|
657
774
|
```ts
|
|
658
775
|
const unsubscribe = Native.dimension.onChange((dimension) => {
|
|
659
776
|
console.log(dimension.innerWidth, dimension.innerHeight);
|
|
660
|
-
console.log(dimension.orientation); // 'portrait' | 'landscape'
|
|
661
777
|
});
|
|
662
778
|
|
|
663
779
|
unsubscribe();
|
|
@@ -1913,12 +2029,14 @@ Promise<PermissionState>
|
|
|
1913
2029
|
|
|
1914
2030
|
```ts
|
|
1915
2031
|
enum PermissionType {
|
|
1916
|
-
Notification
|
|
1917
|
-
Geolocation
|
|
1918
|
-
Camera
|
|
1919
|
-
ClipboardRead
|
|
1920
|
-
Microphone
|
|
1921
|
-
MIDI
|
|
2032
|
+
Notification = 'notifications',
|
|
2033
|
+
Geolocation = 'geolocation',
|
|
2034
|
+
Camera = 'camera',
|
|
2035
|
+
ClipboardRead = 'clipboard-read',
|
|
2036
|
+
Microphone = 'microphone',
|
|
2037
|
+
MIDI = 'midi',
|
|
2038
|
+
DeviceOrientation = 'device-orientation',
|
|
2039
|
+
DeviceMotion = 'device-motion',
|
|
1922
2040
|
}
|
|
1923
2041
|
|
|
1924
2042
|
enum PermissionState {
|
|
@@ -2021,7 +2139,7 @@ Returns the video element currently in Picture-in-Picture, or null if not active
|
|
|
2021
2139
|
|
|
2022
2140
|
```ts
|
|
2023
2141
|
const el = Native.pip.element;
|
|
2024
|
-
|
|
2142
|
+
|
|
2025
2143
|
if (el !== null) {
|
|
2026
2144
|
console.log(el.src); // currently PiP video source
|
|
2027
2145
|
}
|
|
@@ -2104,7 +2222,7 @@ flowchart TD
|
|
|
2104
2222
|
```ts
|
|
2105
2223
|
// Default: first video element
|
|
2106
2224
|
await Native.pip.request();
|
|
2107
|
-
|
|
2225
|
+
|
|
2108
2226
|
// Specific video element
|
|
2109
2227
|
await Native.pip.request(document.querySelector('video#player'));
|
|
2110
2228
|
```
|
|
@@ -2201,7 +2319,7 @@ Toggles Picture-in-Picture for a video element.
|
|
|
2201
2319
|
```ts
|
|
2202
2320
|
// Default: first video element
|
|
2203
2321
|
await Native.pip.toggle();
|
|
2204
|
-
|
|
2322
|
+
|
|
2205
2323
|
// Specific video element
|
|
2206
2324
|
await Native.pip.toggle(document.querySelector('video#player'));
|
|
2207
2325
|
```
|
|
@@ -2239,7 +2357,7 @@ throw new InvalidStateError // PiP transition already in progress
|
|
|
2239
2357
|
|
|
2240
2358
|
```ts
|
|
2241
2359
|
onChange(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void
|
|
2242
|
-
onChange(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void
|
|
2360
|
+
onChange(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void
|
|
2243
2361
|
```
|
|
2244
2362
|
|
|
2245
2363
|
Subscribes to Picture-in-Picture state changes.
|
|
@@ -2252,7 +2370,7 @@ const unsubscribe = Native.pip.onChange((payload) => {
|
|
|
2252
2370
|
console.log(payload.element); // HTMLVideoElement
|
|
2253
2371
|
console.log(payload.nativeEvent); // Event
|
|
2254
2372
|
});
|
|
2255
|
-
|
|
2373
|
+
|
|
2256
2374
|
unsubscribe();
|
|
2257
2375
|
```
|
|
2258
2376
|
|
|
@@ -2276,7 +2394,7 @@ unsubscribe();
|
|
|
2276
2394
|
|
|
2277
2395
|
```ts
|
|
2278
2396
|
onError(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void
|
|
2279
|
-
onError(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void
|
|
2397
|
+
onError(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void
|
|
2280
2398
|
```
|
|
2281
2399
|
|
|
2282
2400
|
Subscribes to Picture-in-Picture errors.
|
|
@@ -2347,8 +2465,8 @@ NameVersionPair<OS>
|
|
|
2347
2465
|
|
|
2348
2466
|
```ts
|
|
2349
2467
|
interface NameVersionPair<T> {
|
|
2350
|
-
name: T;
|
|
2351
|
-
version: string;
|
|
2468
|
+
readonly name: T;
|
|
2469
|
+
readonly version: string;
|
|
2352
2470
|
}
|
|
2353
2471
|
|
|
2354
2472
|
enum OS {
|
|
@@ -2512,11 +2630,11 @@ Locale
|
|
|
2512
2630
|
|
|
2513
2631
|
```ts
|
|
2514
2632
|
interface Locale {
|
|
2515
|
-
language: string | null;
|
|
2516
|
-
languages: string[];
|
|
2517
|
-
timezone: string | null;
|
|
2518
|
-
offset: number;
|
|
2519
|
-
isRTL: boolean;
|
|
2633
|
+
readonly language: string | null;
|
|
2634
|
+
readonly languages: string[];
|
|
2635
|
+
readonly timezone: string | null;
|
|
2636
|
+
readonly offset: number;
|
|
2637
|
+
readonly isRTL: boolean;
|
|
2520
2638
|
}
|
|
2521
2639
|
```
|
|
2522
2640
|
|
|
@@ -2553,10 +2671,10 @@ GPU
|
|
|
2553
2671
|
|
|
2554
2672
|
```ts
|
|
2555
2673
|
interface GPU {
|
|
2556
|
-
vendor?: string;
|
|
2557
|
-
architecture?: string;
|
|
2558
|
-
device?: string;
|
|
2559
|
-
description?: string;
|
|
2674
|
+
readonly vendor?: string;
|
|
2675
|
+
readonly architecture?: string;
|
|
2676
|
+
readonly device?: string;
|
|
2677
|
+
readonly description?: string;
|
|
2560
2678
|
}
|
|
2561
2679
|
```
|
|
2562
2680
|
|
package/dist/index.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ declare enum Appearances {
|
|
|
7
7
|
declare interface AppearanceInstance {
|
|
8
8
|
get value(): Appearances;
|
|
9
9
|
onChange(listener: (appearance: Appearances) => void, options?: AddEventListenerOptions): () => void;
|
|
10
|
-
Constants: {
|
|
11
|
-
Appearances: typeof Appearances;
|
|
10
|
+
readonly Constants: {
|
|
11
|
+
readonly Appearances: typeof Appearances;
|
|
12
12
|
};
|
|
13
|
-
Errors: {};
|
|
13
|
+
readonly Errors: {};
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare const Appearance: AppearanceInstance;
|
|
@@ -21,9 +21,9 @@ declare interface BadgeInstance {
|
|
|
21
21
|
get supported(): boolean;
|
|
22
22
|
set(contents: number): Promise<void>;
|
|
23
23
|
clear(): Promise<void>;
|
|
24
|
-
Constants: {};
|
|
25
|
-
Errors: {
|
|
26
|
-
NotSupportedError: typeof NotSupportedError;
|
|
24
|
+
readonly Constants: {};
|
|
25
|
+
readonly Errors: {
|
|
26
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -49,9 +49,9 @@ declare interface BatteryInstance {
|
|
|
49
49
|
get supported(): boolean;
|
|
50
50
|
get value(): Promise<BatteryManager>;
|
|
51
51
|
onChange(listener: (battery: BatteryManager) => void, options?: AddEventListenerOptions): () => void;
|
|
52
|
-
Constants: {};
|
|
53
|
-
Errors: {
|
|
54
|
-
NotSupportedError: typeof NotSupportedError;
|
|
52
|
+
readonly Constants: {};
|
|
53
|
+
readonly Errors: {
|
|
54
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -60,16 +60,21 @@ declare const Battery: BatteryInstance;
|
|
|
60
60
|
declare interface ClipboardInstance {
|
|
61
61
|
copy(item: any): Promise<boolean>;
|
|
62
62
|
paste(): Promise<string>;
|
|
63
|
-
Constants: {};
|
|
64
|
-
Errors: {};
|
|
63
|
+
readonly Constants: {};
|
|
64
|
+
readonly Errors: {};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
declare const Clipboard: ClipboardInstance;
|
|
68
68
|
|
|
69
69
|
declare enum Orientation {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
PortraitPrimary = "portrait-primary",
|
|
71
|
+
PortraitSecondary = "portrait-secondary",
|
|
72
|
+
LandscapePrimary = "landscape-primary",
|
|
73
|
+
LandscapeSecondary = "landscape-secondary"
|
|
74
|
+
}
|
|
75
|
+
declare namespace Orientation {
|
|
76
|
+
function isLandscape(orientation: Orientation): boolean;
|
|
77
|
+
function isPortrait(orientation: Orientation): boolean;
|
|
73
78
|
}
|
|
74
79
|
declare const ENV_PRESETS: {
|
|
75
80
|
readonly 'safe-area-inset': {
|
|
@@ -108,17 +113,19 @@ declare const ENV_PRESETS: {
|
|
|
108
113
|
};
|
|
109
114
|
};
|
|
110
115
|
|
|
116
|
+
declare const PermissionNotGrantedError: ErrorConstructor;
|
|
117
|
+
|
|
111
118
|
type EnvironmentPresetKey = keyof typeof ENV_PRESETS;
|
|
112
119
|
type EnvironmentPresetAttribute<K extends EnvironmentPresetKey> = keyof typeof ENV_PRESETS[K];
|
|
113
120
|
type EnvironmentPresetValues<K extends EnvironmentPresetKey> = {
|
|
114
121
|
[P in EnvironmentPresetAttribute<K>]: number;
|
|
115
122
|
};
|
|
116
123
|
declare interface Environment {
|
|
117
|
-
safeAreaInset: EnvironmentObserver<'safe-area-inset'>;
|
|
118
|
-
safeAreaMaxInset: EnvironmentObserver<'safe-area-max-inset'>;
|
|
119
|
-
keyboardInset: EnvironmentObserver<'keyboard-inset'>;
|
|
120
|
-
titlebarArea: EnvironmentObserver<'titlebar-area'>;
|
|
121
|
-
viewportSegment: EnvironmentObserver<'viewport-segment'>;
|
|
124
|
+
readonly safeAreaInset: EnvironmentObserver<'safe-area-inset'>;
|
|
125
|
+
readonly safeAreaMaxInset: EnvironmentObserver<'safe-area-max-inset'>;
|
|
126
|
+
readonly keyboardInset: EnvironmentObserver<'keyboard-inset'>;
|
|
127
|
+
readonly titlebarArea: EnvironmentObserver<'titlebar-area'>;
|
|
128
|
+
readonly viewportSegment: EnvironmentObserver<'viewport-segment'>;
|
|
122
129
|
}
|
|
123
130
|
declare interface SegmentsObserver {
|
|
124
131
|
get value(): EnvironmentPresetValues<'viewport-segment'>[];
|
|
@@ -131,21 +138,41 @@ declare type EnvironmentObserver<K extends EnvironmentPresetKey> = K extends 'vi
|
|
|
131
138
|
useCssVariable(prefix: string): () => void;
|
|
132
139
|
};
|
|
133
140
|
declare interface Dimensions {
|
|
134
|
-
outerWidth: number;
|
|
135
|
-
outerHeight: number;
|
|
136
|
-
innerWidth: number;
|
|
137
|
-
innerHeight: number;
|
|
138
|
-
scale: number;
|
|
139
|
-
|
|
141
|
+
readonly outerWidth: number;
|
|
142
|
+
readonly outerHeight: number;
|
|
143
|
+
readonly innerWidth: number;
|
|
144
|
+
readonly innerHeight: number;
|
|
145
|
+
readonly scale: number;
|
|
146
|
+
}
|
|
147
|
+
declare interface DeviceOrientationValue {
|
|
148
|
+
readonly alpha: number | null;
|
|
149
|
+
readonly beta: number | null;
|
|
150
|
+
readonly gamma: number | null;
|
|
151
|
+
readonly absolute: boolean;
|
|
152
|
+
}
|
|
153
|
+
declare interface DeviceOrientationInstance {
|
|
154
|
+
get supported(): boolean;
|
|
155
|
+
readonly value: Promise<DeviceOrientationValue>;
|
|
156
|
+
onChange(listener: (value: DeviceOrientationValue) => void, options?: AddEventListenerOptions): () => void;
|
|
157
|
+
}
|
|
158
|
+
declare interface ScreenOrientationInstance {
|
|
159
|
+
get supported(): boolean;
|
|
160
|
+
readonly value: Orientation;
|
|
161
|
+
onChange(listener: (value: Orientation) => void, options?: AddEventListenerOptions): () => void;
|
|
140
162
|
}
|
|
141
163
|
declare interface DimensionInstance {
|
|
142
164
|
get value(): Dimensions;
|
|
143
|
-
environment: Environment;
|
|
165
|
+
readonly environment: Environment;
|
|
166
|
+
readonly screenOrientation: ScreenOrientationInstance;
|
|
167
|
+
readonly deviceOrientation: DeviceOrientationInstance;
|
|
144
168
|
onChange(listener: (dimension: Dimensions) => void, options?: AddEventListenerOptions): () => void;
|
|
145
|
-
Constants: {
|
|
146
|
-
Orientation: typeof Orientation;
|
|
169
|
+
readonly Constants: {
|
|
170
|
+
readonly Orientation: typeof Orientation;
|
|
171
|
+
};
|
|
172
|
+
readonly Errors: {
|
|
173
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
174
|
+
readonly PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
147
175
|
};
|
|
148
|
-
Errors: {};
|
|
149
176
|
}
|
|
150
177
|
|
|
151
178
|
declare global {
|
|
@@ -178,16 +205,16 @@ declare interface FullscreenInstance {
|
|
|
178
205
|
onChange(target: Element, listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
179
206
|
onError(listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
180
207
|
onChange(target: Element, listener: (payload: FullscreenEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
181
|
-
Constants: {};
|
|
182
|
-
Errors: {
|
|
183
|
-
NotSupportedError: typeof NotSupportedError;
|
|
184
|
-
InvalidStateError: typeof InvalidStateError;
|
|
208
|
+
readonly Constants: {};
|
|
209
|
+
readonly Errors: {
|
|
210
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
211
|
+
readonly InvalidStateError: typeof InvalidStateError;
|
|
185
212
|
};
|
|
186
213
|
}
|
|
187
214
|
declare interface FullscreenEventPayload {
|
|
188
|
-
nativeEvent: Event;
|
|
189
|
-
element: Element;
|
|
190
|
-
isActive: boolean;
|
|
215
|
+
readonly nativeEvent: Event;
|
|
216
|
+
readonly element: Element;
|
|
217
|
+
readonly isActive: boolean;
|
|
191
218
|
}
|
|
192
219
|
|
|
193
220
|
declare global {
|
|
@@ -226,16 +253,14 @@ declare global {
|
|
|
226
253
|
}
|
|
227
254
|
declare const Fullscreen: FullscreenInstance;
|
|
228
255
|
|
|
229
|
-
declare const PermissionNotGrantedError: ErrorConstructor;
|
|
230
|
-
|
|
231
256
|
declare interface GeolocationInstance {
|
|
232
257
|
get supported(): boolean;
|
|
233
258
|
get value(): Promise<GeolocationCoordinates>;
|
|
234
259
|
onChange(listener: (coordinates: GeolocationCoordinates) => void, options?: AddEventListenerOptions): () => void;
|
|
235
|
-
Constants: {};
|
|
236
|
-
Errors: {
|
|
237
|
-
NotSupportedError: typeof NotSupportedError;
|
|
238
|
-
PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
260
|
+
readonly Constants: {};
|
|
261
|
+
readonly Errors: {
|
|
262
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
263
|
+
readonly PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
239
264
|
};
|
|
240
265
|
}
|
|
241
266
|
|
|
@@ -260,10 +285,10 @@ interface NotificationOptions {
|
|
|
260
285
|
declare interface NotificationInstance {
|
|
261
286
|
send(options: NotificationOptions): Promise<Notification>;
|
|
262
287
|
get supported(): boolean;
|
|
263
|
-
Constants: {};
|
|
264
|
-
Errors: {
|
|
265
|
-
NotSupportedError: typeof NotSupportedError;
|
|
266
|
-
PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
288
|
+
readonly Constants: {};
|
|
289
|
+
readonly Errors: {
|
|
290
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
291
|
+
readonly PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
267
292
|
};
|
|
268
293
|
}
|
|
269
294
|
|
|
@@ -358,24 +383,24 @@ declare interface PlatformInstance {
|
|
|
358
383
|
get isNode(): boolean;
|
|
359
384
|
get isStandalone(): boolean;
|
|
360
385
|
get isWebview(): boolean;
|
|
361
|
-
Constants: {
|
|
362
|
-
OS: typeof OS;
|
|
363
|
-
Engines: typeof Engines;
|
|
364
|
-
Browsers: typeof Browsers;
|
|
365
|
-
Devices: typeof Devices;
|
|
386
|
+
readonly Constants: {
|
|
387
|
+
readonly OS: typeof OS;
|
|
388
|
+
readonly Engines: typeof Engines;
|
|
389
|
+
readonly Browsers: typeof Browsers;
|
|
390
|
+
readonly Devices: typeof Devices;
|
|
366
391
|
};
|
|
367
|
-
Errors: {};
|
|
392
|
+
readonly Errors: {};
|
|
368
393
|
}
|
|
369
394
|
declare interface NameVersionPair<T> {
|
|
370
|
-
name: T;
|
|
371
|
-
version: string;
|
|
395
|
+
readonly name: T;
|
|
396
|
+
readonly version: string;
|
|
372
397
|
}
|
|
373
398
|
declare interface Locale {
|
|
374
|
-
language: string | null;
|
|
375
|
-
languages: string[];
|
|
376
|
-
timezone: string | null;
|
|
377
|
-
offset: number;
|
|
378
|
-
isRTL: boolean;
|
|
399
|
+
readonly language: string | null;
|
|
400
|
+
readonly languages: readonly string[];
|
|
401
|
+
readonly timezone: string | null;
|
|
402
|
+
readonly offset: number;
|
|
403
|
+
readonly isRTL: boolean;
|
|
379
404
|
}
|
|
380
405
|
interface GPUAdapterInfo {
|
|
381
406
|
readonly vendor?: string;
|
|
@@ -528,8 +553,8 @@ interface DirectoryOptions {
|
|
|
528
553
|
startIn?: ExplorerStartIn;
|
|
529
554
|
}
|
|
530
555
|
interface FileWithPath {
|
|
531
|
-
file: File;
|
|
532
|
-
relativePath: string;
|
|
556
|
+
readonly file: File;
|
|
557
|
+
readonly relativePath: string;
|
|
533
558
|
}
|
|
534
559
|
interface CameraOptions {
|
|
535
560
|
type?: CameraType;
|
|
@@ -620,7 +645,7 @@ declare interface OpenInstance {
|
|
|
620
645
|
contact(options?: ContactOptions): Promise<Contact[]>;
|
|
621
646
|
share(options: ShareData): Promise<void>;
|
|
622
647
|
calendar(options: CalendarOptions): void;
|
|
623
|
-
supported: {
|
|
648
|
+
readonly supported: {
|
|
624
649
|
get intent(): boolean;
|
|
625
650
|
get universal(): boolean;
|
|
626
651
|
get setting(): boolean;
|
|
@@ -630,16 +655,16 @@ declare interface OpenInstance {
|
|
|
630
655
|
get share(): boolean;
|
|
631
656
|
get calendar(): boolean;
|
|
632
657
|
};
|
|
633
|
-
Constants: {
|
|
634
|
-
AppOpenState: typeof AppOpenState;
|
|
635
|
-
SettingType: typeof SettingType;
|
|
636
|
-
CameraType: typeof CameraType;
|
|
637
|
-
CaptureType: typeof CaptureType;
|
|
658
|
+
readonly Constants: {
|
|
659
|
+
readonly AppOpenState: typeof AppOpenState;
|
|
660
|
+
readonly SettingType: typeof SettingType;
|
|
661
|
+
readonly CameraType: typeof CameraType;
|
|
662
|
+
readonly CaptureType: typeof CaptureType;
|
|
638
663
|
};
|
|
639
|
-
Errors: {
|
|
640
|
-
URLOpenError: typeof URLOpenError;
|
|
641
|
-
NotSupportedError: typeof NotSupportedError;
|
|
642
|
-
UserCancelledError: typeof UserCancelledError;
|
|
664
|
+
readonly Errors: {
|
|
665
|
+
readonly URLOpenError: typeof URLOpenError;
|
|
666
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
667
|
+
readonly UserCancelledError: typeof UserCancelledError;
|
|
643
668
|
};
|
|
644
669
|
}
|
|
645
670
|
|
|
@@ -700,8 +725,8 @@ declare const Open: OpenInstance;
|
|
|
700
725
|
declare interface ThemeInstance {
|
|
701
726
|
get value(): string | undefined;
|
|
702
727
|
set value(color: string | undefined);
|
|
703
|
-
Constants: {};
|
|
704
|
-
Errors: {};
|
|
728
|
+
readonly Constants: {};
|
|
729
|
+
readonly Errors: {};
|
|
705
730
|
}
|
|
706
731
|
|
|
707
732
|
declare const Theme: ThemeInstance;
|
|
@@ -710,9 +735,9 @@ declare interface VibrationInstance {
|
|
|
710
735
|
get supported(): boolean;
|
|
711
736
|
run(pattern: number | number[]): boolean;
|
|
712
737
|
stop(): boolean;
|
|
713
|
-
Constants: {};
|
|
714
|
-
Errors: {
|
|
715
|
-
NotSupportedError: typeof NotSupportedError;
|
|
738
|
+
readonly Constants: {};
|
|
739
|
+
readonly Errors: {
|
|
740
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
716
741
|
};
|
|
717
742
|
}
|
|
718
743
|
|
|
@@ -732,7 +757,9 @@ declare enum PermissionType {
|
|
|
732
757
|
Camera = "camera",
|
|
733
758
|
ClipboardRead = "clipboard-read",
|
|
734
759
|
Microphone = "microphone",
|
|
735
|
-
MIDI = "midi"
|
|
760
|
+
MIDI = "midi",
|
|
761
|
+
DeviceOrientation = "device-orientation",
|
|
762
|
+
DeviceMotion = "device-motion"
|
|
736
763
|
}
|
|
737
764
|
declare enum PermissionState {
|
|
738
765
|
Grant = "grant",
|
|
@@ -745,11 +772,13 @@ declare interface PermissionInstance {
|
|
|
745
772
|
get supported(): boolean;
|
|
746
773
|
request(type: PermissionType): Promise<PermissionState>;
|
|
747
774
|
check(type: PermissionType): Promise<PermissionState>;
|
|
748
|
-
Constants: {
|
|
749
|
-
PermissionType: typeof PermissionType;
|
|
750
|
-
PermissionState: typeof PermissionState;
|
|
775
|
+
readonly Constants: {
|
|
776
|
+
readonly PermissionType: typeof PermissionType;
|
|
777
|
+
readonly PermissionState: typeof PermissionState;
|
|
778
|
+
};
|
|
779
|
+
readonly Errors: {
|
|
780
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
751
781
|
};
|
|
752
|
-
Errors: {};
|
|
753
782
|
}
|
|
754
783
|
|
|
755
784
|
declare const Permission: PermissionInstance;
|
|
@@ -765,16 +794,16 @@ declare interface PipInstance {
|
|
|
765
794
|
onChange(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
766
795
|
onError(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
767
796
|
onError(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
768
|
-
Constants: {};
|
|
769
|
-
Errors: {
|
|
770
|
-
NotSupportedError: typeof NotSupportedError;
|
|
771
|
-
InvalidStateError: typeof InvalidStateError;
|
|
797
|
+
readonly Constants: {};
|
|
798
|
+
readonly Errors: {
|
|
799
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
800
|
+
readonly InvalidStateError: typeof InvalidStateError;
|
|
772
801
|
};
|
|
773
802
|
}
|
|
774
803
|
declare interface PipEventPayload {
|
|
775
|
-
nativeEvent: Event;
|
|
776
|
-
element: HTMLVideoElement;
|
|
777
|
-
isActive: boolean;
|
|
804
|
+
readonly nativeEvent: Event;
|
|
805
|
+
readonly element: HTMLVideoElement;
|
|
806
|
+
readonly isActive: boolean;
|
|
778
807
|
}
|
|
779
808
|
|
|
780
809
|
declare global {
|