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
|
@@ -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
|
}
|
|
@@ -19,9 +19,9 @@ export interface NotificationOptions {
|
|
|
19
19
|
export declare interface NotificationInstance {
|
|
20
20
|
send(options: NotificationOptions): Promise<Notification>;
|
|
21
21
|
get supported(): boolean;
|
|
22
|
-
Constants: {};
|
|
23
|
-
Errors: {
|
|
24
|
-
NotSupportedError: typeof NotSupportedError;
|
|
25
|
-
PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
22
|
+
readonly Constants: {};
|
|
23
|
+
readonly Errors: {
|
|
24
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
25
|
+
readonly PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -82,8 +82,8 @@ export interface DirectoryOptions {
|
|
|
82
82
|
startIn?: ExplorerStartIn;
|
|
83
83
|
}
|
|
84
84
|
export interface FileWithPath {
|
|
85
|
-
file: File;
|
|
86
|
-
relativePath: string;
|
|
85
|
+
readonly file: File;
|
|
86
|
+
readonly relativePath: string;
|
|
87
87
|
}
|
|
88
88
|
export interface CameraOptions {
|
|
89
89
|
type?: CameraType;
|
|
@@ -175,7 +175,7 @@ export declare interface OpenInstance {
|
|
|
175
175
|
contact(options?: ContactOptions): Promise<Contact[]>;
|
|
176
176
|
share(options: ShareData): Promise<void>;
|
|
177
177
|
calendar(options: CalendarOptions): void;
|
|
178
|
-
supported: {
|
|
178
|
+
readonly supported: {
|
|
179
179
|
get intent(): boolean;
|
|
180
180
|
get universal(): boolean;
|
|
181
181
|
get setting(): boolean;
|
|
@@ -185,15 +185,15 @@ export declare interface OpenInstance {
|
|
|
185
185
|
get share(): boolean;
|
|
186
186
|
get calendar(): boolean;
|
|
187
187
|
};
|
|
188
|
-
Constants: {
|
|
189
|
-
AppOpenState: typeof AppOpenState;
|
|
190
|
-
SettingType: typeof SettingType;
|
|
191
|
-
CameraType: typeof CameraType;
|
|
192
|
-
CaptureType: typeof CaptureType;
|
|
188
|
+
readonly Constants: {
|
|
189
|
+
readonly AppOpenState: typeof AppOpenState;
|
|
190
|
+
readonly SettingType: typeof SettingType;
|
|
191
|
+
readonly CameraType: typeof CameraType;
|
|
192
|
+
readonly CaptureType: typeof CaptureType;
|
|
193
193
|
};
|
|
194
|
-
Errors: {
|
|
195
|
-
URLOpenError: typeof URLOpenError;
|
|
196
|
-
NotSupportedError: typeof NotSupportedError;
|
|
197
|
-
UserCancelledError: typeof UserCancelledError;
|
|
194
|
+
readonly Errors: {
|
|
195
|
+
readonly URLOpenError: typeof URLOpenError;
|
|
196
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
197
|
+
readonly UserCancelledError: typeof UserCancelledError;
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -12,7 +12,9 @@ export declare enum PermissionType {
|
|
|
12
12
|
Camera = "camera",
|
|
13
13
|
ClipboardRead = "clipboard-read",
|
|
14
14
|
Microphone = "microphone",
|
|
15
|
-
MIDI = "midi"
|
|
15
|
+
MIDI = "midi",
|
|
16
|
+
DeviceOrientation = "device-orientation",
|
|
17
|
+
DeviceMotion = "device-motion"
|
|
16
18
|
}
|
|
17
19
|
export declare enum PermissionState {
|
|
18
20
|
Grant = "grant",
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { PermissionState, PermissionType } from "../constants";
|
|
2
|
+
import { NotSupportedError } from "../../../errors/not-supported-error";
|
|
2
3
|
export declare interface PermissionInstance {
|
|
3
4
|
get supported(): boolean;
|
|
4
5
|
request(type: PermissionType): Promise<PermissionState>;
|
|
5
6
|
check(type: PermissionType): Promise<PermissionState>;
|
|
6
|
-
Constants: {
|
|
7
|
-
PermissionType: typeof PermissionType;
|
|
8
|
-
PermissionState: typeof PermissionState;
|
|
7
|
+
readonly Constants: {
|
|
8
|
+
readonly PermissionType: typeof PermissionType;
|
|
9
|
+
readonly PermissionState: typeof PermissionState;
|
|
10
|
+
};
|
|
11
|
+
readonly Errors: {
|
|
12
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
9
13
|
};
|
|
10
|
-
Errors: {};
|
|
11
14
|
}
|
|
@@ -11,14 +11,14 @@ export declare interface PipInstance {
|
|
|
11
11
|
onChange(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
12
12
|
onError(listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
13
13
|
onError(target: HTMLVideoElement, listener: (payload: PipEventPayload) => void, options?: AddEventListenerOptions): () => void;
|
|
14
|
-
Constants: {};
|
|
15
|
-
Errors: {
|
|
16
|
-
NotSupportedError: typeof NotSupportedError;
|
|
17
|
-
InvalidStateError: typeof InvalidStateError;
|
|
14
|
+
readonly Constants: {};
|
|
15
|
+
readonly Errors: {
|
|
16
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
17
|
+
readonly InvalidStateError: typeof InvalidStateError;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
export declare interface PipEventPayload {
|
|
21
|
-
nativeEvent: Event;
|
|
22
|
-
element: HTMLVideoElement;
|
|
23
|
-
isActive: boolean;
|
|
21
|
+
readonly nativeEvent: Event;
|
|
22
|
+
readonly element: HTMLVideoElement;
|
|
23
|
+
readonly isActive: boolean;
|
|
24
24
|
}
|
|
@@ -34,7 +34,7 @@ export declare enum Browsers {
|
|
|
34
34
|
IE = "IE",
|
|
35
35
|
SamsungInternet = "SamsungInternet"
|
|
36
36
|
}
|
|
37
|
-
export declare
|
|
37
|
+
export declare let USER_AGENT: string;
|
|
38
38
|
export declare const HIGH_ENTROPY_BRAND_NAME_MAP: Record<string, string>;
|
|
39
39
|
export declare const RTL_LANGUAGES: string[];
|
|
40
40
|
export declare const OS_RESOLVER_MAP: [RegExp, OS, VersionResolver?][];
|
|
@@ -14,24 +14,24 @@ export declare interface PlatformInstance {
|
|
|
14
14
|
get isNode(): boolean;
|
|
15
15
|
get isStandalone(): boolean;
|
|
16
16
|
get isWebview(): boolean;
|
|
17
|
-
Constants: {
|
|
18
|
-
OS: typeof OS;
|
|
19
|
-
Engines: typeof Engines;
|
|
20
|
-
Browsers: typeof Browsers;
|
|
21
|
-
Devices: typeof Devices;
|
|
17
|
+
readonly Constants: {
|
|
18
|
+
readonly OS: typeof OS;
|
|
19
|
+
readonly Engines: typeof Engines;
|
|
20
|
+
readonly Browsers: typeof Browsers;
|
|
21
|
+
readonly Devices: typeof Devices;
|
|
22
22
|
};
|
|
23
|
-
Errors: {};
|
|
23
|
+
readonly Errors: {};
|
|
24
24
|
}
|
|
25
25
|
export declare interface NameVersionPair<T> {
|
|
26
|
-
name: T;
|
|
27
|
-
version: string;
|
|
26
|
+
readonly name: T;
|
|
27
|
+
readonly version: string;
|
|
28
28
|
}
|
|
29
29
|
export declare interface Locale {
|
|
30
|
-
language: string | null;
|
|
31
|
-
languages: string[];
|
|
32
|
-
timezone: string | null;
|
|
33
|
-
offset: number;
|
|
34
|
-
isRTL: boolean;
|
|
30
|
+
readonly language: string | null;
|
|
31
|
+
readonly languages: readonly string[];
|
|
32
|
+
readonly timezone: string | null;
|
|
33
|
+
readonly offset: number;
|
|
34
|
+
readonly isRTL: boolean;
|
|
35
35
|
}
|
|
36
36
|
export interface GPUAdapterInfo {
|
|
37
37
|
readonly vendor?: string;
|
|
@@ -3,8 +3,8 @@ export declare interface VibrationInstance {
|
|
|
3
3
|
get supported(): boolean;
|
|
4
4
|
run(pattern: number | number[]): boolean;
|
|
5
5
|
stop(): boolean;
|
|
6
|
-
Constants: {};
|
|
7
|
-
Errors: {
|
|
8
|
-
NotSupportedError: typeof NotSupportedError;
|
|
6
|
+
readonly Constants: {};
|
|
7
|
+
readonly Errors: {
|
|
8
|
+
readonly NotSupportedError: typeof NotSupportedError;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare interface SubscriptionManager<T
|
|
2
|
-
emit: (value:
|
|
3
|
-
subscribe: (listener: (value:
|
|
1
|
+
export declare interface SubscriptionManager<T> {
|
|
2
|
+
emit: (value: T) => void;
|
|
3
|
+
subscribe: (listener: (value: T) => void, options?: AddEventListenerOptions) => () => void;
|
|
4
4
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SubscriptionManager } from "../types/subscription-manager";
|
|
2
|
-
export default function createSubscriptionManager<T
|
|
2
|
+
export default function createSubscriptionManager<T>(attach: () => void, detach: () => void): SubscriptionManager<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function insertionSort(arr: number[]): void;
|
|
@@ -92,6 +92,8 @@ var PermissionType;
|
|
|
92
92
|
PermissionType["ClipboardRead"] = "clipboard-read";
|
|
93
93
|
PermissionType["Microphone"] = "microphone";
|
|
94
94
|
PermissionType["MIDI"] = "midi";
|
|
95
|
+
PermissionType["DeviceOrientation"] = "device-orientation";
|
|
96
|
+
PermissionType["DeviceMotion"] = "device-motion";
|
|
95
97
|
})(PermissionType || (PermissionType = {}));
|
|
96
98
|
var PermissionState;
|
|
97
99
|
(function (PermissionState) {
|
|
@@ -123,6 +125,212 @@ var GET_USER_MEDIA = (function () {
|
|
|
123
125
|
}
|
|
124
126
|
})();
|
|
125
127
|
|
|
128
|
+
var IE_WRAPPER_STORE = [];
|
|
129
|
+
var MEDIA_QUERY_LIST_WRAPPER_STORE = [];
|
|
130
|
+
function isEventListenerCallback(callback) {
|
|
131
|
+
return (typeof callback === 'function' ||
|
|
132
|
+
(typeof callback === 'object' && callback !== null && typeof callback.handleEvent === 'function'));
|
|
133
|
+
}
|
|
134
|
+
function isMediaQueryListTarget(target) {
|
|
135
|
+
return typeof target.media === 'string' && typeof target.matches === 'boolean';
|
|
136
|
+
}
|
|
137
|
+
function findIEWrapper(target, type, callback) {
|
|
138
|
+
for (var i = 0; i < IE_WRAPPER_STORE.length; i++) {
|
|
139
|
+
var wrapper = IE_WRAPPER_STORE[i];
|
|
140
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback)
|
|
141
|
+
return wrapper.wrapper;
|
|
142
|
+
}
|
|
143
|
+
return undefined;
|
|
144
|
+
}
|
|
145
|
+
function setIEWrapper(target, type, callback, wrapper) {
|
|
146
|
+
IE_WRAPPER_STORE.push({ target: target, type: type, callback: callback, wrapper: wrapper });
|
|
147
|
+
}
|
|
148
|
+
function removeIEWrapper(target, type, callback) {
|
|
149
|
+
for (var i = 0; i < IE_WRAPPER_STORE.length; i++) {
|
|
150
|
+
var wrapper = IE_WRAPPER_STORE[i];
|
|
151
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback) {
|
|
152
|
+
IE_WRAPPER_STORE.splice(i, 1);
|
|
153
|
+
return wrapper.wrapper;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return undefined;
|
|
157
|
+
}
|
|
158
|
+
function findMediaQueryListWrapper(target, type, callback) {
|
|
159
|
+
for (var i = 0; i < MEDIA_QUERY_LIST_WRAPPER_STORE.length; i++) {
|
|
160
|
+
var wrapper = MEDIA_QUERY_LIST_WRAPPER_STORE[i];
|
|
161
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback)
|
|
162
|
+
return wrapper.wrapper;
|
|
163
|
+
}
|
|
164
|
+
return undefined;
|
|
165
|
+
}
|
|
166
|
+
function setMediaQueryListWrapper(target, type, callback, wrapper) {
|
|
167
|
+
MEDIA_QUERY_LIST_WRAPPER_STORE.push({ target: target, type: type, callback: callback, wrapper: wrapper });
|
|
168
|
+
}
|
|
169
|
+
function removeMediaQueryListWrapper(target, type, callback) {
|
|
170
|
+
for (var i = 0; i < MEDIA_QUERY_LIST_WRAPPER_STORE.length; i++) {
|
|
171
|
+
var wrapper = MEDIA_QUERY_LIST_WRAPPER_STORE[i];
|
|
172
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback) {
|
|
173
|
+
MEDIA_QUERY_LIST_WRAPPER_STORE.splice(i, 1);
|
|
174
|
+
return wrapper.wrapper;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return undefined;
|
|
178
|
+
}
|
|
179
|
+
function createMediaQueryListWrapper(callback) {
|
|
180
|
+
return function (event) {
|
|
181
|
+
if (typeof callback === 'function') {
|
|
182
|
+
callback.call(this, event);
|
|
183
|
+
}
|
|
184
|
+
else if (callback && typeof callback.handleEvent === 'function') {
|
|
185
|
+
callback.handleEvent(event);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function capitalize(_) {
|
|
190
|
+
var groups = [];
|
|
191
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
192
|
+
groups[_i - 1] = arguments[_i];
|
|
193
|
+
}
|
|
194
|
+
var result = '';
|
|
195
|
+
for (var i = 0; i < groups.length - 2; i++) {
|
|
196
|
+
var arg = groups[i];
|
|
197
|
+
if (typeof arg !== 'undefined')
|
|
198
|
+
result = result + arg.charAt(0).toUpperCase() + arg.slice(1);
|
|
199
|
+
}
|
|
200
|
+
return result;
|
|
201
|
+
}
|
|
202
|
+
function withVendor(target, type) {
|
|
203
|
+
if (target === globalThis.document && ['deviceready', 'pause', 'resume', 'backbutton', 'menubutton', 'searchbutton', 'startcallbutton', 'endcallbutton', 'volumedownbutton', 'volumeupbutton', 'activated', 'cordovacallbackerror'].indexOf(type) > -1)
|
|
204
|
+
return type;
|
|
205
|
+
if (typeof target.webkitEnterFullscreen === 'function' && ['webkitbeginfullscreen', 'webkitendfullscreen', 'webkitpresentationmodechanged'].indexOf(type) > -1)
|
|
206
|
+
return type;
|
|
207
|
+
var types;
|
|
208
|
+
if (typeof LEGACY_TYPE_MAP[type] !== 'undefined')
|
|
209
|
+
types = LEGACY_TYPE_MAP[type];
|
|
210
|
+
else if (EVENT_TYPE_REGEXP.test(type))
|
|
211
|
+
types = [type, type.replace(EVENT_TYPE_REGEXP, capitalize)];
|
|
212
|
+
else
|
|
213
|
+
types = [type];
|
|
214
|
+
for (var i = 0; i < VENDORS.length; i++) {
|
|
215
|
+
for (var j = 0; j < types.length; j++) {
|
|
216
|
+
var name_1 = VENDORS[i] + types[j];
|
|
217
|
+
if (typeof target['on' + name_1] !== 'undefined')
|
|
218
|
+
return name_1;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return type;
|
|
222
|
+
}
|
|
223
|
+
function preventDefaultPolyfill() {
|
|
224
|
+
this.returnValue = false;
|
|
225
|
+
}
|
|
226
|
+
function stopPropagationPolyfill() {
|
|
227
|
+
this.cancelBubble = true;
|
|
228
|
+
}
|
|
229
|
+
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;
|
|
230
|
+
var VENDORS = ['', 'webkit', 'moz', 'ms', 'MS', 'o', 'O'];
|
|
231
|
+
var LEGACY_TYPE_MAP = {
|
|
232
|
+
'wheel': ['wheel', 'mousewheel', 'DOMMouseScroll'],
|
|
233
|
+
'focus': ['focus', 'focusin'],
|
|
234
|
+
'blur': ['blur', 'focusout'],
|
|
235
|
+
'beforeinput': ['beforeinput', 'textInput'],
|
|
236
|
+
};
|
|
237
|
+
var EventListener = {
|
|
238
|
+
useStd: typeof globalThis.document.addEventListener === 'function',
|
|
239
|
+
add: function (target, eventListenerOptions) {
|
|
240
|
+
if (typeof eventListenerOptions.type === 'undefined')
|
|
241
|
+
return;
|
|
242
|
+
if (typeof target === 'undefined')
|
|
243
|
+
return;
|
|
244
|
+
var callback = eventListenerOptions.callback;
|
|
245
|
+
var type = withVendor(target, eventListenerOptions.type);
|
|
246
|
+
var options = eventListenerOptions.options;
|
|
247
|
+
if (isMediaQueryListTarget(target)) {
|
|
248
|
+
if (typeof target.addListener === 'function') {
|
|
249
|
+
try {
|
|
250
|
+
var wrapper = findMediaQueryListWrapper(target, type, callback);
|
|
251
|
+
if (typeof wrapper === 'undefined') {
|
|
252
|
+
setMediaQueryListWrapper(target, type, callback, wrapper = createMediaQueryListWrapper(callback));
|
|
253
|
+
}
|
|
254
|
+
return target.addListener(wrapper);
|
|
255
|
+
}
|
|
256
|
+
catch (_) {
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
if (typeof target.addEventListener === 'function') {
|
|
261
|
+
try {
|
|
262
|
+
if (isEventListenerCallback(callback)) {
|
|
263
|
+
return target.addEventListener(type, callback, options);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
catch (_) {
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
if (typeof target.attachEvent === 'function') {
|
|
270
|
+
var existing = findIEWrapper(target, type, callback);
|
|
271
|
+
if (typeof existing === 'function')
|
|
272
|
+
return;
|
|
273
|
+
var wrapper = function (event) {
|
|
274
|
+
if (typeof event === 'undefined')
|
|
275
|
+
event = globalThis.event;
|
|
276
|
+
if (typeof event === 'undefined')
|
|
277
|
+
return;
|
|
278
|
+
try {
|
|
279
|
+
Object.defineProperty(event, 'currentTarget', { value: target, configurable: true });
|
|
280
|
+
}
|
|
281
|
+
catch (_) {
|
|
282
|
+
}
|
|
283
|
+
if (typeof event.preventDefault !== 'function')
|
|
284
|
+
event.preventDefault = preventDefaultPolyfill.bind(event);
|
|
285
|
+
if (typeof event.stopPropagation !== 'function')
|
|
286
|
+
event.stopPropagation = stopPropagationPolyfill.bind(event);
|
|
287
|
+
if (typeof callback === 'function')
|
|
288
|
+
callback.call(target, event);
|
|
289
|
+
else if (callback && typeof callback.handleEvent === 'function')
|
|
290
|
+
callback.handleEvent(event);
|
|
291
|
+
};
|
|
292
|
+
setIEWrapper(target, type, callback, wrapper);
|
|
293
|
+
return target.attachEvent('on' + type, wrapper);
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
remove: function (target, eventListenerOptions) {
|
|
297
|
+
if (typeof eventListenerOptions.type === 'undefined')
|
|
298
|
+
return;
|
|
299
|
+
if (typeof target === 'undefined')
|
|
300
|
+
return;
|
|
301
|
+
var callback = eventListenerOptions.callback;
|
|
302
|
+
var type = withVendor(target, eventListenerOptions.type);
|
|
303
|
+
var options = eventListenerOptions.options;
|
|
304
|
+
if (isMediaQueryListTarget(target)) {
|
|
305
|
+
if (typeof target.removeListener === 'function') {
|
|
306
|
+
try {
|
|
307
|
+
var wrapper = removeMediaQueryListWrapper(target, type, callback);
|
|
308
|
+
if (typeof wrapper === 'function')
|
|
309
|
+
return target.removeListener(wrapper);
|
|
310
|
+
}
|
|
311
|
+
catch (_) {
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
if (typeof target.removeEventListener === 'function') {
|
|
317
|
+
try {
|
|
318
|
+
if (isEventListenerCallback(callback)) {
|
|
319
|
+
return target.removeEventListener(type, callback, options);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
catch (_) {
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
if (typeof target.detachEvent === 'function') {
|
|
326
|
+
var wrapper = removeIEWrapper(target, type, callback);
|
|
327
|
+
if (typeof wrapper === 'function')
|
|
328
|
+
target.detachEvent('on' + type, wrapper);
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
};
|
|
333
|
+
|
|
126
334
|
var Permission = {
|
|
127
335
|
get supported() {
|
|
128
336
|
return supported$1();
|
|
@@ -133,14 +341,45 @@ var Permission = {
|
|
|
133
341
|
PermissionType: PermissionType,
|
|
134
342
|
PermissionState: PermissionState,
|
|
135
343
|
},
|
|
136
|
-
Errors: {
|
|
344
|
+
Errors: {
|
|
345
|
+
NotSupportedError: NotSupportedError,
|
|
346
|
+
},
|
|
137
347
|
};
|
|
348
|
+
function toPermissionState(permission) {
|
|
349
|
+
switch (permission) {
|
|
350
|
+
case 'granted':
|
|
351
|
+
return PermissionState.Grant;
|
|
352
|
+
case 'denied':
|
|
353
|
+
return PermissionState.Denied;
|
|
354
|
+
case 'prompt':
|
|
355
|
+
case 'default':
|
|
356
|
+
return PermissionState.Prompt;
|
|
357
|
+
default:
|
|
358
|
+
return PermissionState.Unsupported;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function toSafariSensorEventMap(type) {
|
|
362
|
+
switch (type) {
|
|
363
|
+
case PermissionType.DeviceOrientation:
|
|
364
|
+
return {
|
|
365
|
+
event: globalThis.DeviceOrientationEvent,
|
|
366
|
+
type: 'deviceorientation',
|
|
367
|
+
};
|
|
368
|
+
case PermissionType.DeviceMotion:
|
|
369
|
+
return {
|
|
370
|
+
event: globalThis.DeviceMotionEvent,
|
|
371
|
+
type: 'devicemotion',
|
|
372
|
+
};
|
|
373
|
+
default:
|
|
374
|
+
return undefined;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
138
377
|
function supported$1() {
|
|
139
378
|
return typeof globalThis.navigator.permissions !== 'undefined';
|
|
140
379
|
}
|
|
141
380
|
function request(type) {
|
|
142
381
|
var instance = this;
|
|
143
|
-
return new Promise(function (resolve) {
|
|
382
|
+
return new Promise(function (resolve, reject) {
|
|
144
383
|
function resolveAfterCheck() {
|
|
145
384
|
instance.check(type).then(resolve);
|
|
146
385
|
}
|
|
@@ -152,17 +391,8 @@ function request(type) {
|
|
|
152
391
|
case PermissionType.Notification:
|
|
153
392
|
if (typeof globalThis.Notification === 'undefined')
|
|
154
393
|
return resolve(PermissionState.Unsupported);
|
|
155
|
-
globalThis.Notification.requestPermission().then(function (
|
|
156
|
-
|
|
157
|
-
case 'default':
|
|
158
|
-
return resolve(PermissionState.Prompt);
|
|
159
|
-
case 'granted':
|
|
160
|
-
return resolve(PermissionState.Grant);
|
|
161
|
-
case 'denied':
|
|
162
|
-
return resolve(PermissionState.Denied);
|
|
163
|
-
default:
|
|
164
|
-
resolveAfterCheck();
|
|
165
|
-
}
|
|
394
|
+
globalThis.Notification.requestPermission().then(function (permission) {
|
|
395
|
+
resolve(toPermissionState(permission));
|
|
166
396
|
});
|
|
167
397
|
break;
|
|
168
398
|
case PermissionType.Geolocation:
|
|
@@ -200,6 +430,23 @@ function request(type) {
|
|
|
200
430
|
.then(resolveAfterCheck)
|
|
201
431
|
.catch(resolveAfterCheck);
|
|
202
432
|
break;
|
|
433
|
+
case PermissionType.DeviceOrientation:
|
|
434
|
+
case PermissionType.DeviceMotion:
|
|
435
|
+
var sensorEventMap = toSafariSensorEventMap(type);
|
|
436
|
+
if (typeof sensorEventMap === 'undefined' || typeof sensorEventMap.event === 'undefined')
|
|
437
|
+
return resolve(PermissionState.Unsupported);
|
|
438
|
+
if (typeof sensorEventMap.event.requestPermission !== 'function')
|
|
439
|
+
return resolve(PermissionState.Grant);
|
|
440
|
+
try {
|
|
441
|
+
sensorEventMap.event.requestPermission()
|
|
442
|
+
.then(function (permission) {
|
|
443
|
+
resolve(toPermissionState(permission));
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
catch (_) {
|
|
447
|
+
return reject(new NotSupportedError('\'DeviceOrientationEvent.requestPermission()\' must be called within a user gesture context.'));
|
|
448
|
+
}
|
|
449
|
+
break;
|
|
203
450
|
default:
|
|
204
451
|
return resolve(PermissionState.Unsupported);
|
|
205
452
|
}
|
|
@@ -207,6 +454,34 @@ function request(type) {
|
|
|
207
454
|
});
|
|
208
455
|
}
|
|
209
456
|
function check(type) {
|
|
457
|
+
if (type === PermissionType.DeviceOrientation || type === PermissionType.DeviceMotion) {
|
|
458
|
+
return new Promise(function (resolve) {
|
|
459
|
+
var sensorEventMap = toSafariSensorEventMap(type);
|
|
460
|
+
if (typeof sensorEventMap === 'undefined' || typeof sensorEventMap.event === 'undefined')
|
|
461
|
+
return resolve(PermissionState.Unsupported);
|
|
462
|
+
if (typeof sensorEventMap.event.requestPermission !== 'function')
|
|
463
|
+
return resolve(PermissionState.Grant);
|
|
464
|
+
var granted = false;
|
|
465
|
+
EventListener.add(globalThis, {
|
|
466
|
+
type: sensorEventMap.type,
|
|
467
|
+
callback: function () {
|
|
468
|
+
granted = true;
|
|
469
|
+
},
|
|
470
|
+
options: { once: true }
|
|
471
|
+
});
|
|
472
|
+
setTimeout(function () {
|
|
473
|
+
if (granted)
|
|
474
|
+
return resolve(PermissionState.Grant);
|
|
475
|
+
sensorEventMap.event.requestPermission()
|
|
476
|
+
.then(function (permission) {
|
|
477
|
+
resolve(toPermissionState(permission));
|
|
478
|
+
})
|
|
479
|
+
.catch(function () {
|
|
480
|
+
resolve(PermissionState.Prompt);
|
|
481
|
+
});
|
|
482
|
+
}, 50);
|
|
483
|
+
});
|
|
484
|
+
}
|
|
210
485
|
return new Promise(function (resolve) {
|
|
211
486
|
if (typeof globalThis.navigator.permissions === 'undefined')
|
|
212
487
|
return resolve(PermissionState.Unsupported);
|