native-fn 1.2.2 → 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 +191 -49
- package/dist/index.d.ts +148 -98
- package/dist/native.cjs +810 -288
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +810 -288
- package/dist/native.umd.js +810 -288
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/appearance/index.cjs +65 -64
- package/dist/plugin/appearance/index.d.ts +5 -5
- package/dist/plugin/appearance/index.mjs +66 -65
- package/dist/plugin/appearance/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/appearance/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/appearance/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/appearance/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/appearance/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/appearance/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/badge/index.d.ts +3 -3
- package/dist/plugin/badge/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/badge/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/badge/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/badge/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/badge/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/badge/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/battery/index.cjs +4 -6
- package/dist/plugin/battery/index.d.ts +3 -3
- package/dist/plugin/battery/index.mjs +4 -6
- package/dist/plugin/battery/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/battery/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/battery/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/battery/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/battery/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/battery/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/clipboard/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/clipboard/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/clipboard/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/clipboard/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/clipboard/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/clipboard/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/dimension/index.cjs +711 -122
- package/dist/plugin/dimension/index.d.ts +81 -31
- package/dist/plugin/dimension/index.mjs +712 -122
- package/dist/plugin/dimension/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/dimension/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/dimension/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/dimension/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/dimension/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/dimension/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/fullscreen/index.cjs +96 -91
- package/dist/plugin/fullscreen/index.d.ts +7 -7
- package/dist/plugin/fullscreen/index.mjs +96 -91
- package/dist/plugin/fullscreen/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/fullscreen/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/fullscreen/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/fullscreen/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/fullscreen/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/fullscreen/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/geolocation/index.cjs +249 -182
- package/dist/plugin/geolocation/index.d.ts +4 -4
- package/dist/plugin/geolocation/index.mjs +249 -182
- package/dist/plugin/geolocation/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/geolocation/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/geolocation/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/geolocation/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/geolocation/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/geolocation/src/utils/insert-sort.d.ts +1 -0
- 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/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/notification/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/notification/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/notification/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/notification/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/notification/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/open/index.cjs +64 -55
- package/dist/plugin/open/index.d.ts +28 -12
- package/dist/plugin/open/index.mjs +64 -55
- package/dist/plugin/open/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/open/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/open/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/open/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/open/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/open/src/utils/insert-sort.d.ts +1 -0
- 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/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/permission/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/permission/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/permission/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/permission/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/permission/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/pip/index.cjs +58 -57
- package/dist/plugin/pip/index.d.ts +7 -7
- package/dist/plugin/pip/index.mjs +58 -57
- package/dist/plugin/pip/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/pip/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/pip/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/pip/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/pip/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/pip/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/platform/index.cjs +98 -92
- package/dist/plugin/platform/index.d.ts +30 -14
- package/dist/plugin/platform/index.mjs +92 -85
- package/dist/plugin/platform/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/platform/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/platform/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/platform/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/platform/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/platform/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/theme/index.cjs +63 -54
- package/dist/plugin/theme/index.d.ts +2 -2
- package/dist/plugin/theme/index.mjs +63 -54
- package/dist/plugin/theme/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/theme/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/theme/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/theme/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/theme/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/theme/src/utils/insert-sort.d.ts +1 -0
- package/dist/plugin/vibration/index.d.ts +3 -3
- package/dist/plugin/vibration/src/plugin/appearance/constants/index.d.ts +1 -1
- 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 +10 -6
- package/dist/plugin/vibration/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/plugin/vibration/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/plugin/vibration/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/plugin/vibration/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/plugin/vibration/src/utils/insert-sort.d.ts +1 -0
- package/dist/src/plugin/appearance/constants/index.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 +10 -6
- package/dist/src/plugin/dimension/cores/index.d.ts +15 -0
- package/dist/src/plugin/dimension/types/dimensions.d.ts +52 -24
- package/dist/src/plugin/dimension/utils/create-env-observer.d.ts +16 -7
- package/dist/src/plugin/dimension/utils/create-environment-observer.d.ts +33 -0
- 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/constants/index.d.ts +1 -1
- 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/dist/src/utils/insert-sort.d.ts +1 -0
- package/package.json +1 -1
|
@@ -21,10 +21,10 @@ interface NotificationOptions {
|
|
|
21
21
|
declare interface NotificationInstance {
|
|
22
22
|
send(options: NotificationOptions): Promise<Notification>;
|
|
23
23
|
get supported(): boolean;
|
|
24
|
-
Constants: {};
|
|
25
|
-
Errors: {
|
|
26
|
-
NotSupportedError: typeof NotSupportedError;
|
|
27
|
-
PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
24
|
+
readonly Constants: {};
|
|
25
|
+
readonly Errors: {
|
|
26
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
27
|
+
readonly PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -90,6 +90,8 @@ var PermissionType;
|
|
|
90
90
|
PermissionType["ClipboardRead"] = "clipboard-read";
|
|
91
91
|
PermissionType["Microphone"] = "microphone";
|
|
92
92
|
PermissionType["MIDI"] = "midi";
|
|
93
|
+
PermissionType["DeviceOrientation"] = "device-orientation";
|
|
94
|
+
PermissionType["DeviceMotion"] = "device-motion";
|
|
93
95
|
})(PermissionType || (PermissionType = {}));
|
|
94
96
|
var PermissionState;
|
|
95
97
|
(function (PermissionState) {
|
|
@@ -121,6 +123,212 @@ var GET_USER_MEDIA = (function () {
|
|
|
121
123
|
}
|
|
122
124
|
})();
|
|
123
125
|
|
|
126
|
+
var IE_WRAPPER_STORE = [];
|
|
127
|
+
var MEDIA_QUERY_LIST_WRAPPER_STORE = [];
|
|
128
|
+
function isEventListenerCallback(callback) {
|
|
129
|
+
return (typeof callback === 'function' ||
|
|
130
|
+
(typeof callback === 'object' && callback !== null && typeof callback.handleEvent === 'function'));
|
|
131
|
+
}
|
|
132
|
+
function isMediaQueryListTarget(target) {
|
|
133
|
+
return typeof target.media === 'string' && typeof target.matches === 'boolean';
|
|
134
|
+
}
|
|
135
|
+
function findIEWrapper(target, type, callback) {
|
|
136
|
+
for (var i = 0; i < IE_WRAPPER_STORE.length; i++) {
|
|
137
|
+
var wrapper = IE_WRAPPER_STORE[i];
|
|
138
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback)
|
|
139
|
+
return wrapper.wrapper;
|
|
140
|
+
}
|
|
141
|
+
return undefined;
|
|
142
|
+
}
|
|
143
|
+
function setIEWrapper(target, type, callback, wrapper) {
|
|
144
|
+
IE_WRAPPER_STORE.push({ target: target, type: type, callback: callback, wrapper: wrapper });
|
|
145
|
+
}
|
|
146
|
+
function removeIEWrapper(target, type, callback) {
|
|
147
|
+
for (var i = 0; i < IE_WRAPPER_STORE.length; i++) {
|
|
148
|
+
var wrapper = IE_WRAPPER_STORE[i];
|
|
149
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback) {
|
|
150
|
+
IE_WRAPPER_STORE.splice(i, 1);
|
|
151
|
+
return wrapper.wrapper;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return undefined;
|
|
155
|
+
}
|
|
156
|
+
function findMediaQueryListWrapper(target, type, callback) {
|
|
157
|
+
for (var i = 0; i < MEDIA_QUERY_LIST_WRAPPER_STORE.length; i++) {
|
|
158
|
+
var wrapper = MEDIA_QUERY_LIST_WRAPPER_STORE[i];
|
|
159
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback)
|
|
160
|
+
return wrapper.wrapper;
|
|
161
|
+
}
|
|
162
|
+
return undefined;
|
|
163
|
+
}
|
|
164
|
+
function setMediaQueryListWrapper(target, type, callback, wrapper) {
|
|
165
|
+
MEDIA_QUERY_LIST_WRAPPER_STORE.push({ target: target, type: type, callback: callback, wrapper: wrapper });
|
|
166
|
+
}
|
|
167
|
+
function removeMediaQueryListWrapper(target, type, callback) {
|
|
168
|
+
for (var i = 0; i < MEDIA_QUERY_LIST_WRAPPER_STORE.length; i++) {
|
|
169
|
+
var wrapper = MEDIA_QUERY_LIST_WRAPPER_STORE[i];
|
|
170
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback) {
|
|
171
|
+
MEDIA_QUERY_LIST_WRAPPER_STORE.splice(i, 1);
|
|
172
|
+
return wrapper.wrapper;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return undefined;
|
|
176
|
+
}
|
|
177
|
+
function createMediaQueryListWrapper(callback) {
|
|
178
|
+
return function (event) {
|
|
179
|
+
if (typeof callback === 'function') {
|
|
180
|
+
callback.call(this, event);
|
|
181
|
+
}
|
|
182
|
+
else if (callback && typeof callback.handleEvent === 'function') {
|
|
183
|
+
callback.handleEvent(event);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function capitalize(_) {
|
|
188
|
+
var groups = [];
|
|
189
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
190
|
+
groups[_i - 1] = arguments[_i];
|
|
191
|
+
}
|
|
192
|
+
var result = '';
|
|
193
|
+
for (var i = 0; i < groups.length - 2; i++) {
|
|
194
|
+
var arg = groups[i];
|
|
195
|
+
if (typeof arg !== 'undefined')
|
|
196
|
+
result = result + arg.charAt(0).toUpperCase() + arg.slice(1);
|
|
197
|
+
}
|
|
198
|
+
return result;
|
|
199
|
+
}
|
|
200
|
+
function withVendor(target, type) {
|
|
201
|
+
if (target === globalThis.document && ['deviceready', 'pause', 'resume', 'backbutton', 'menubutton', 'searchbutton', 'startcallbutton', 'endcallbutton', 'volumedownbutton', 'volumeupbutton', 'activated', 'cordovacallbackerror'].indexOf(type) > -1)
|
|
202
|
+
return type;
|
|
203
|
+
if (typeof target.webkitEnterFullscreen === 'function' && ['webkitbeginfullscreen', 'webkitendfullscreen', 'webkitpresentationmodechanged'].indexOf(type) > -1)
|
|
204
|
+
return type;
|
|
205
|
+
var types;
|
|
206
|
+
if (typeof LEGACY_TYPE_MAP[type] !== 'undefined')
|
|
207
|
+
types = LEGACY_TYPE_MAP[type];
|
|
208
|
+
else if (EVENT_TYPE_REGEXP.test(type))
|
|
209
|
+
types = [type, type.replace(EVENT_TYPE_REGEXP, capitalize)];
|
|
210
|
+
else
|
|
211
|
+
types = [type];
|
|
212
|
+
for (var i = 0; i < VENDORS.length; i++) {
|
|
213
|
+
for (var j = 0; j < types.length; j++) {
|
|
214
|
+
var name_1 = VENDORS[i] + types[j];
|
|
215
|
+
if (typeof target['on' + name_1] !== 'undefined')
|
|
216
|
+
return name_1;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return type;
|
|
220
|
+
}
|
|
221
|
+
function preventDefaultPolyfill() {
|
|
222
|
+
this.returnValue = false;
|
|
223
|
+
}
|
|
224
|
+
function stopPropagationPolyfill() {
|
|
225
|
+
this.cancelBubble = true;
|
|
226
|
+
}
|
|
227
|
+
var EVENT_TYPE_REGEXP = /(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i;
|
|
228
|
+
var VENDORS = ['', 'webkit', 'moz', 'ms', 'MS', 'o', 'O'];
|
|
229
|
+
var LEGACY_TYPE_MAP = {
|
|
230
|
+
'wheel': ['wheel', 'mousewheel', 'DOMMouseScroll'],
|
|
231
|
+
'focus': ['focus', 'focusin'],
|
|
232
|
+
'blur': ['blur', 'focusout'],
|
|
233
|
+
'beforeinput': ['beforeinput', 'textInput'],
|
|
234
|
+
};
|
|
235
|
+
var EventListener = {
|
|
236
|
+
useStd: typeof globalThis.document.addEventListener === 'function',
|
|
237
|
+
add: function (target, eventListenerOptions) {
|
|
238
|
+
if (typeof eventListenerOptions.type === 'undefined')
|
|
239
|
+
return;
|
|
240
|
+
if (typeof target === 'undefined')
|
|
241
|
+
return;
|
|
242
|
+
var callback = eventListenerOptions.callback;
|
|
243
|
+
var type = withVendor(target, eventListenerOptions.type);
|
|
244
|
+
var options = eventListenerOptions.options;
|
|
245
|
+
if (isMediaQueryListTarget(target)) {
|
|
246
|
+
if (typeof target.addListener === 'function') {
|
|
247
|
+
try {
|
|
248
|
+
var wrapper = findMediaQueryListWrapper(target, type, callback);
|
|
249
|
+
if (typeof wrapper === 'undefined') {
|
|
250
|
+
setMediaQueryListWrapper(target, type, callback, wrapper = createMediaQueryListWrapper(callback));
|
|
251
|
+
}
|
|
252
|
+
return target.addListener(wrapper);
|
|
253
|
+
}
|
|
254
|
+
catch (_) {
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
if (typeof target.addEventListener === 'function') {
|
|
259
|
+
try {
|
|
260
|
+
if (isEventListenerCallback(callback)) {
|
|
261
|
+
return target.addEventListener(type, callback, options);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
catch (_) {
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
if (typeof target.attachEvent === 'function') {
|
|
268
|
+
var existing = findIEWrapper(target, type, callback);
|
|
269
|
+
if (typeof existing === 'function')
|
|
270
|
+
return;
|
|
271
|
+
var wrapper = function (event) {
|
|
272
|
+
if (typeof event === 'undefined')
|
|
273
|
+
event = globalThis.event;
|
|
274
|
+
if (typeof event === 'undefined')
|
|
275
|
+
return;
|
|
276
|
+
try {
|
|
277
|
+
Object.defineProperty(event, 'currentTarget', { value: target, configurable: true });
|
|
278
|
+
}
|
|
279
|
+
catch (_) {
|
|
280
|
+
}
|
|
281
|
+
if (typeof event.preventDefault !== 'function')
|
|
282
|
+
event.preventDefault = preventDefaultPolyfill.bind(event);
|
|
283
|
+
if (typeof event.stopPropagation !== 'function')
|
|
284
|
+
event.stopPropagation = stopPropagationPolyfill.bind(event);
|
|
285
|
+
if (typeof callback === 'function')
|
|
286
|
+
callback.call(target, event);
|
|
287
|
+
else if (callback && typeof callback.handleEvent === 'function')
|
|
288
|
+
callback.handleEvent(event);
|
|
289
|
+
};
|
|
290
|
+
setIEWrapper(target, type, callback, wrapper);
|
|
291
|
+
return target.attachEvent('on' + type, wrapper);
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
remove: function (target, eventListenerOptions) {
|
|
295
|
+
if (typeof eventListenerOptions.type === 'undefined')
|
|
296
|
+
return;
|
|
297
|
+
if (typeof target === 'undefined')
|
|
298
|
+
return;
|
|
299
|
+
var callback = eventListenerOptions.callback;
|
|
300
|
+
var type = withVendor(target, eventListenerOptions.type);
|
|
301
|
+
var options = eventListenerOptions.options;
|
|
302
|
+
if (isMediaQueryListTarget(target)) {
|
|
303
|
+
if (typeof target.removeListener === 'function') {
|
|
304
|
+
try {
|
|
305
|
+
var wrapper = removeMediaQueryListWrapper(target, type, callback);
|
|
306
|
+
if (typeof wrapper === 'function')
|
|
307
|
+
return target.removeListener(wrapper);
|
|
308
|
+
}
|
|
309
|
+
catch (_) {
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
if (typeof target.removeEventListener === 'function') {
|
|
315
|
+
try {
|
|
316
|
+
if (isEventListenerCallback(callback)) {
|
|
317
|
+
return target.removeEventListener(type, callback, options);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
catch (_) {
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if (typeof target.detachEvent === 'function') {
|
|
324
|
+
var wrapper = removeIEWrapper(target, type, callback);
|
|
325
|
+
if (typeof wrapper === 'function')
|
|
326
|
+
target.detachEvent('on' + type, wrapper);
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
};
|
|
331
|
+
|
|
124
332
|
var Permission = {
|
|
125
333
|
get supported() {
|
|
126
334
|
return supported$1();
|
|
@@ -131,14 +339,45 @@ var Permission = {
|
|
|
131
339
|
PermissionType: PermissionType,
|
|
132
340
|
PermissionState: PermissionState,
|
|
133
341
|
},
|
|
134
|
-
Errors: {
|
|
342
|
+
Errors: {
|
|
343
|
+
NotSupportedError: NotSupportedError,
|
|
344
|
+
},
|
|
135
345
|
};
|
|
346
|
+
function toPermissionState(permission) {
|
|
347
|
+
switch (permission) {
|
|
348
|
+
case 'granted':
|
|
349
|
+
return PermissionState.Grant;
|
|
350
|
+
case 'denied':
|
|
351
|
+
return PermissionState.Denied;
|
|
352
|
+
case 'prompt':
|
|
353
|
+
case 'default':
|
|
354
|
+
return PermissionState.Prompt;
|
|
355
|
+
default:
|
|
356
|
+
return PermissionState.Unsupported;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
function toSafariSensorEventMap(type) {
|
|
360
|
+
switch (type) {
|
|
361
|
+
case PermissionType.DeviceOrientation:
|
|
362
|
+
return {
|
|
363
|
+
event: globalThis.DeviceOrientationEvent,
|
|
364
|
+
type: 'deviceorientation',
|
|
365
|
+
};
|
|
366
|
+
case PermissionType.DeviceMotion:
|
|
367
|
+
return {
|
|
368
|
+
event: globalThis.DeviceMotionEvent,
|
|
369
|
+
type: 'devicemotion',
|
|
370
|
+
};
|
|
371
|
+
default:
|
|
372
|
+
return undefined;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
136
375
|
function supported$1() {
|
|
137
376
|
return typeof globalThis.navigator.permissions !== 'undefined';
|
|
138
377
|
}
|
|
139
378
|
function request(type) {
|
|
140
379
|
var instance = this;
|
|
141
|
-
return new Promise(function (resolve) {
|
|
380
|
+
return new Promise(function (resolve, reject) {
|
|
142
381
|
function resolveAfterCheck() {
|
|
143
382
|
instance.check(type).then(resolve);
|
|
144
383
|
}
|
|
@@ -150,17 +389,8 @@ function request(type) {
|
|
|
150
389
|
case PermissionType.Notification:
|
|
151
390
|
if (typeof globalThis.Notification === 'undefined')
|
|
152
391
|
return resolve(PermissionState.Unsupported);
|
|
153
|
-
globalThis.Notification.requestPermission().then(function (
|
|
154
|
-
|
|
155
|
-
case 'default':
|
|
156
|
-
return resolve(PermissionState.Prompt);
|
|
157
|
-
case 'granted':
|
|
158
|
-
return resolve(PermissionState.Grant);
|
|
159
|
-
case 'denied':
|
|
160
|
-
return resolve(PermissionState.Denied);
|
|
161
|
-
default:
|
|
162
|
-
resolveAfterCheck();
|
|
163
|
-
}
|
|
392
|
+
globalThis.Notification.requestPermission().then(function (permission) {
|
|
393
|
+
resolve(toPermissionState(permission));
|
|
164
394
|
});
|
|
165
395
|
break;
|
|
166
396
|
case PermissionType.Geolocation:
|
|
@@ -198,6 +428,23 @@ function request(type) {
|
|
|
198
428
|
.then(resolveAfterCheck)
|
|
199
429
|
.catch(resolveAfterCheck);
|
|
200
430
|
break;
|
|
431
|
+
case PermissionType.DeviceOrientation:
|
|
432
|
+
case PermissionType.DeviceMotion:
|
|
433
|
+
var sensorEventMap = toSafariSensorEventMap(type);
|
|
434
|
+
if (typeof sensorEventMap === 'undefined' || typeof sensorEventMap.event === 'undefined')
|
|
435
|
+
return resolve(PermissionState.Unsupported);
|
|
436
|
+
if (typeof sensorEventMap.event.requestPermission !== 'function')
|
|
437
|
+
return resolve(PermissionState.Grant);
|
|
438
|
+
try {
|
|
439
|
+
sensorEventMap.event.requestPermission()
|
|
440
|
+
.then(function (permission) {
|
|
441
|
+
resolve(toPermissionState(permission));
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
catch (_) {
|
|
445
|
+
return reject(new NotSupportedError('\'DeviceOrientationEvent.requestPermission()\' must be called within a user gesture context.'));
|
|
446
|
+
}
|
|
447
|
+
break;
|
|
201
448
|
default:
|
|
202
449
|
return resolve(PermissionState.Unsupported);
|
|
203
450
|
}
|
|
@@ -205,6 +452,34 @@ function request(type) {
|
|
|
205
452
|
});
|
|
206
453
|
}
|
|
207
454
|
function check(type) {
|
|
455
|
+
if (type === PermissionType.DeviceOrientation || type === PermissionType.DeviceMotion) {
|
|
456
|
+
return new Promise(function (resolve) {
|
|
457
|
+
var sensorEventMap = toSafariSensorEventMap(type);
|
|
458
|
+
if (typeof sensorEventMap === 'undefined' || typeof sensorEventMap.event === 'undefined')
|
|
459
|
+
return resolve(PermissionState.Unsupported);
|
|
460
|
+
if (typeof sensorEventMap.event.requestPermission !== 'function')
|
|
461
|
+
return resolve(PermissionState.Grant);
|
|
462
|
+
var granted = false;
|
|
463
|
+
EventListener.add(globalThis, {
|
|
464
|
+
type: sensorEventMap.type,
|
|
465
|
+
callback: function () {
|
|
466
|
+
granted = true;
|
|
467
|
+
},
|
|
468
|
+
options: { once: true }
|
|
469
|
+
});
|
|
470
|
+
setTimeout(function () {
|
|
471
|
+
if (granted)
|
|
472
|
+
return resolve(PermissionState.Grant);
|
|
473
|
+
sensorEventMap.event.requestPermission()
|
|
474
|
+
.then(function (permission) {
|
|
475
|
+
resolve(toPermissionState(permission));
|
|
476
|
+
})
|
|
477
|
+
.catch(function () {
|
|
478
|
+
resolve(PermissionState.Prompt);
|
|
479
|
+
});
|
|
480
|
+
}, 50);
|
|
481
|
+
});
|
|
482
|
+
}
|
|
208
483
|
return new Promise(function (resolve) {
|
|
209
484
|
if (typeof globalThis.navigator.permissions === 'undefined')
|
|
210
485
|
return resolve(PermissionState.Unsupported);
|
|
@@ -3,6 +3,6 @@ export declare enum Appearances {
|
|
|
3
3
|
Light = "light",
|
|
4
4
|
Dark = "dark"
|
|
5
5
|
}
|
|
6
|
-
export declare let
|
|
6
|
+
export declare let PREFERS_COLOR_SCHEME_MEDIA_QUERY_LIST: MediaQueryList;
|
|
7
7
|
export declare const CONTEXT: CanvasRenderingContext2D | null;
|
|
8
8
|
export declare const SVG_PIXEL_DATA_URL: string;
|
|
@@ -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,8 +1,12 @@
|
|
|
1
|
-
import { Dimensions } from "../types";
|
|
2
1
|
export declare enum Orientation {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
10
|
}
|
|
7
11
|
export declare const ENV_PRESETS: {
|
|
8
12
|
readonly 'safe-area-inset': {
|
|
@@ -40,5 +44,5 @@ export declare const ENV_PRESETS: {
|
|
|
40
44
|
readonly left: "viewport-segment-left";
|
|
41
45
|
};
|
|
42
46
|
};
|
|
43
|
-
export declare
|
|
44
|
-
export declare let
|
|
47
|
+
export declare let ORIENTATION_MEDIA_QUERY_LIST: MediaQueryList;
|
|
48
|
+
export declare let DEVICE_POSTURE_MEDIA_QUERY_LIST: MediaQueryList;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
1
|
import { DimensionInstance } from "../types";
|
|
2
|
+
declare global {
|
|
3
|
+
interface DOMRectReadOnly {
|
|
4
|
+
readonly x: number;
|
|
5
|
+
readonly y: number;
|
|
6
|
+
readonly width: number;
|
|
7
|
+
readonly height: number;
|
|
8
|
+
readonly top: number;
|
|
9
|
+
readonly right: number;
|
|
10
|
+
readonly bottom: number;
|
|
11
|
+
readonly left: number;
|
|
12
|
+
}
|
|
13
|
+
interface VisualViewport {
|
|
14
|
+
readonly segments?: DOMRectReadOnly[];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
2
17
|
declare const Dimension: DimensionInstance;
|
|
3
18
|
export default Dimension;
|
|
@@ -1,34 +1,62 @@
|
|
|
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
|
-
export type
|
|
5
|
+
export type EnvironmentPresetAttribute<K extends EnvironmentPresetKey> = keyof typeof ENV_PRESETS[K];
|
|
4
6
|
export type EnvironmentPresetValues<K extends EnvironmentPresetKey> = {
|
|
5
|
-
[P in
|
|
7
|
+
[P in EnvironmentPresetAttribute<K>]: number;
|
|
6
8
|
};
|
|
7
|
-
export declare interface
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
Errors: {};
|
|
9
|
+
export declare interface Environment {
|
|
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'>;
|
|
15
15
|
}
|
|
16
|
-
export declare interface
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
innerHeight: number;
|
|
21
|
-
scale: number;
|
|
22
|
-
orientation: Orientation;
|
|
16
|
+
export declare interface SegmentsObserver {
|
|
17
|
+
get value(): EnvironmentPresetValues<'viewport-segment'>[];
|
|
18
|
+
onChange(listener: (value: EnvironmentPresetValues<'viewport-segment'>[]) => void, options?: AddEventListenerOptions): () => void;
|
|
19
|
+
useCssVariable(prefix: string): () => void;
|
|
23
20
|
}
|
|
24
|
-
export declare
|
|
21
|
+
export declare type EnvironmentObserver<K extends EnvironmentPresetKey> = K extends 'viewport-segment' ? SegmentsObserver : {
|
|
25
22
|
get value(): EnvironmentPresetValues<K>;
|
|
26
23
|
onChange(listener: (value: EnvironmentPresetValues<K>) => void, options?: AddEventListenerOptions): () => void;
|
|
24
|
+
useCssVariable(prefix: string): () => void;
|
|
25
|
+
};
|
|
26
|
+
export declare interface Dimensions {
|
|
27
|
+
readonly outerWidth: number;
|
|
28
|
+
readonly outerHeight: number;
|
|
29
|
+
readonly innerWidth: number;
|
|
30
|
+
readonly innerHeight: number;
|
|
31
|
+
readonly scale: number;
|
|
27
32
|
}
|
|
28
|
-
export declare interface
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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;
|
|
48
|
+
}
|
|
49
|
+
export declare interface DimensionInstance {
|
|
50
|
+
get value(): Dimensions;
|
|
51
|
+
readonly environment: Environment;
|
|
52
|
+
readonly screenOrientation: ScreenOrientationInstance;
|
|
53
|
+
readonly deviceOrientation: DeviceOrientationInstance;
|
|
54
|
+
onChange(listener: (dimension: Dimensions) => void, options?: AddEventListenerOptions): () => void;
|
|
55
|
+
readonly Constants: {
|
|
56
|
+
readonly Orientation: typeof Orientation;
|
|
57
|
+
};
|
|
58
|
+
readonly Errors: {
|
|
59
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
60
|
+
readonly PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
61
|
+
};
|
|
34
62
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnvironmentObserver, EnvironmentPresetKey } from "../types";
|
|
2
2
|
declare global {
|
|
3
3
|
interface Navigator {
|
|
4
4
|
readonly virtualKeyboard?: VirtualKeyboard;
|
|
5
|
+
readonly devicePosture?: DevicePosture;
|
|
5
6
|
}
|
|
7
|
+
var viewport: BrowsingContextViewport | undefined;
|
|
8
|
+
}
|
|
9
|
+
interface DevicePosture extends EventTarget {
|
|
10
|
+
readonly type: 'continuous' | 'folded';
|
|
11
|
+
onchange: ((this: DevicePosture, ev: Event) => any) | null;
|
|
6
12
|
}
|
|
7
|
-
type ChangeCallback<K extends EnvironmentPresetKey> = (values: EnvironmentPresetValues<K>) => void;
|
|
8
13
|
interface VirtualKeyboardEventMap {
|
|
9
14
|
geometrychange: Event;
|
|
10
15
|
}
|
|
@@ -16,9 +21,13 @@ interface VirtualKeyboard extends EventTarget {
|
|
|
16
21
|
addEventListener<K extends keyof VirtualKeyboardEventMap>(type: K, listener: (this: VirtualKeyboard, ev: VirtualKeyboardEventMap[K]) => any, options?: AddEventListenerOptions): void;
|
|
17
22
|
removeEventListener<K extends keyof VirtualKeyboardEventMap>(type: K, listener: (this: VirtualKeyboard, ev: VirtualKeyboardEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
18
23
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
interface BrowsingContextViewportEventMap {
|
|
25
|
+
change: Event;
|
|
26
|
+
}
|
|
27
|
+
interface BrowsingContextViewport extends EventTarget {
|
|
28
|
+
readonly segments: ReadonlyArray<DOMRectReadOnly> | null;
|
|
29
|
+
addEventListener<K extends keyof BrowsingContextViewportEventMap>(type: K, listener: (this: BrowsingContextViewport, ev: BrowsingContextViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
30
|
+
removeEventListener<K extends keyof BrowsingContextViewportEventMap>(type: K, listener: (this: BrowsingContextViewport, ev: BrowsingContextViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
31
|
+
}
|
|
32
|
+
export default function createEnvObserver<K extends EnvironmentPresetKey>(preset: K): EnvironmentObserver<K>;
|
|
24
33
|
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EnvironmentObserver, EnvironmentPresetKey } from "../types";
|
|
2
|
+
declare global {
|
|
3
|
+
interface Navigator {
|
|
4
|
+
readonly virtualKeyboard?: VirtualKeyboard;
|
|
5
|
+
readonly devicePosture?: DevicePosture;
|
|
6
|
+
}
|
|
7
|
+
var viewport: BrowsingContextViewport | undefined;
|
|
8
|
+
}
|
|
9
|
+
interface DevicePosture extends EventTarget {
|
|
10
|
+
readonly type: 'continuous' | 'folded';
|
|
11
|
+
onchange: ((this: DevicePosture, ev: Event) => any) | null;
|
|
12
|
+
}
|
|
13
|
+
interface VirtualKeyboardEventMap {
|
|
14
|
+
geometrychange: Event;
|
|
15
|
+
}
|
|
16
|
+
interface VirtualKeyboard extends EventTarget {
|
|
17
|
+
readonly boundingRect: DOMRect;
|
|
18
|
+
overlaysContent: boolean;
|
|
19
|
+
show(): void;
|
|
20
|
+
hide(): void;
|
|
21
|
+
addEventListener<K extends keyof VirtualKeyboardEventMap>(type: K, listener: (this: VirtualKeyboard, ev: VirtualKeyboardEventMap[K]) => any, options?: AddEventListenerOptions): void;
|
|
22
|
+
removeEventListener<K extends keyof VirtualKeyboardEventMap>(type: K, listener: (this: VirtualKeyboard, ev: VirtualKeyboardEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
23
|
+
}
|
|
24
|
+
interface BrowsingContextViewportEventMap {
|
|
25
|
+
change: Event;
|
|
26
|
+
}
|
|
27
|
+
interface BrowsingContextViewport extends EventTarget {
|
|
28
|
+
readonly segments: ReadonlyArray<DOMRectReadOnly> | null;
|
|
29
|
+
addEventListener<K extends keyof BrowsingContextViewportEventMap>(type: K, listener: (this: BrowsingContextViewport, ev: BrowsingContextViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
30
|
+
removeEventListener<K extends keyof BrowsingContextViewportEventMap>(type: K, listener: (this: BrowsingContextViewport, ev: BrowsingContextViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
31
|
+
}
|
|
32
|
+
export default function createEnvironmentObserver<K extends EnvironmentPresetKey>(preset: K): EnvironmentObserver<K>;
|
|
33
|
+
export {};
|
|
@@ -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
|
}
|