native-fn 1.0.89 → 1.1.0
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/dist/index.d.ts +747 -29
- package/dist/native.cjs +4283 -74
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +4283 -74
- package/dist/native.umd.js +4283 -74
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/app/index.cjs +637 -663
- package/dist/plugin/app/index.d.ts +4 -114
- package/dist/plugin/app/index.min.cjs +1 -1
- package/dist/plugin/app/index.min.mjs +1 -1
- package/dist/plugin/app/index.mjs +637 -663
- package/dist/plugin/app/index.umd.js +637 -663
- package/dist/plugin/app/index.umd.min.js +1 -1
- package/dist/plugin/app/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/app/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/app/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/app/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/app/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/app/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/app/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/app/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/app/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/app/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/app/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/app/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/app/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/app/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/app/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/app/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/app/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/app/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/app/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/app/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/app/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/app/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/app/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/app/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/app/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/app/src/types/native.d.ts +16 -26
- package/dist/plugin/appearance/index.cjs +392 -585
- package/dist/plugin/appearance/index.d.ts +4 -37
- package/dist/plugin/appearance/index.min.cjs +1 -1
- package/dist/plugin/appearance/index.min.mjs +1 -1
- package/dist/plugin/appearance/index.mjs +392 -585
- package/dist/plugin/appearance/index.umd.js +392 -585
- package/dist/plugin/appearance/index.umd.min.js +1 -1
- package/dist/plugin/appearance/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/appearance/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/appearance/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/appearance/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/appearance/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/appearance/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/appearance/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/appearance/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/appearance/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/appearance/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/appearance/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/appearance/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/appearance/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/appearance/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/appearance/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/appearance/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/appearance/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/appearance/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/appearance/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/appearance/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/appearance/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/appearance/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/appearance/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/appearance/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/appearance/src/types/native.d.ts +16 -26
- package/dist/plugin/clipboard/index.cjs +48 -822
- package/dist/plugin/clipboard/index.d.ts +4 -27
- package/dist/plugin/clipboard/index.min.cjs +1 -1
- package/dist/plugin/clipboard/index.min.mjs +1 -1
- package/dist/plugin/clipboard/index.mjs +48 -822
- package/dist/plugin/clipboard/index.umd.js +48 -822
- package/dist/plugin/clipboard/index.umd.min.js +1 -1
- package/dist/plugin/clipboard/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/clipboard/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/clipboard/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/clipboard/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/clipboard/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/clipboard/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/clipboard/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/clipboard/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/clipboard/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/clipboard/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/clipboard/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/clipboard/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/clipboard/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/clipboard/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/clipboard/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/clipboard/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/clipboard/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/clipboard/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/clipboard/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/clipboard/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/clipboard/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/clipboard/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/clipboard/src/types/native.d.ts +16 -26
- package/dist/plugin/dimension/index.cjs +3 -883
- package/dist/plugin/dimension/index.d.ts +4 -36
- package/dist/plugin/dimension/index.min.cjs +1 -1
- package/dist/plugin/dimension/index.min.mjs +1 -1
- package/dist/plugin/dimension/index.mjs +3 -883
- package/dist/plugin/dimension/index.umd.js +3 -883
- package/dist/plugin/dimension/index.umd.min.js +1 -1
- package/dist/plugin/dimension/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/dimension/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/dimension/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/dimension/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/dimension/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/dimension/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/dimension/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/dimension/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/dimension/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/dimension/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/dimension/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/dimension/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/dimension/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/dimension/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/dimension/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/dimension/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/dimension/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/dimension/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/dimension/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/dimension/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/dimension/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/dimension/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/dimension/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/dimension/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/dimension/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/dimension/src/types/native.d.ts +16 -26
- package/dist/plugin/fullscreen/index.cjs +391 -588
- package/dist/plugin/fullscreen/index.d.ts +4 -33
- package/dist/plugin/fullscreen/index.min.cjs +1 -1
- package/dist/plugin/fullscreen/index.min.mjs +1 -1
- package/dist/plugin/fullscreen/index.mjs +391 -588
- package/dist/plugin/fullscreen/index.umd.js +391 -588
- package/dist/plugin/fullscreen/index.umd.min.js +1 -1
- package/dist/plugin/fullscreen/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/fullscreen/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/fullscreen/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/fullscreen/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/fullscreen/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/fullscreen/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/fullscreen/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/fullscreen/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/fullscreen/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/fullscreen/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/fullscreen/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/fullscreen/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/fullscreen/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/fullscreen/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/fullscreen/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/fullscreen/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/fullscreen/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/fullscreen/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/fullscreen/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/fullscreen/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/fullscreen/src/types/native.d.ts +16 -26
- package/dist/plugin/platform/index.cjs +409 -488
- package/dist/plugin/platform/index.d.ts +4 -96
- package/dist/plugin/platform/index.min.cjs +1 -1
- package/dist/plugin/platform/index.min.mjs +1 -1
- package/dist/plugin/platform/index.mjs +409 -488
- package/dist/plugin/platform/index.umd.js +409 -488
- package/dist/plugin/platform/index.umd.min.js +1 -1
- package/dist/plugin/platform/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/platform/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/platform/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/platform/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/platform/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/platform/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/platform/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/platform/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/platform/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/platform/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/platform/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/platform/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/platform/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/platform/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/platform/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/platform/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/platform/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/platform/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/platform/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/platform/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/platform/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/platform/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/platform/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/platform/src/types/native.d.ts +16 -26
- package/dist/plugin/theme/index.cjs +390 -461
- package/dist/plugin/theme/index.d.ts +4 -27
- package/dist/plugin/theme/index.min.cjs +1 -1
- package/dist/plugin/theme/index.min.mjs +1 -1
- package/dist/plugin/theme/index.mjs +390 -461
- package/dist/plugin/theme/index.umd.js +390 -461
- package/dist/plugin/theme/index.umd.min.js +1 -1
- package/dist/plugin/theme/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/theme/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/theme/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/theme/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/theme/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/theme/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/theme/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/theme/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/theme/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/theme/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/theme/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/theme/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/theme/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/theme/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/theme/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/theme/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/theme/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/theme/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/theme/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/theme/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/theme/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/theme/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/theme/src/types/native.d.ts +16 -26
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/errors/not-supported-error.d.ts +2 -0
- package/dist/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/src/plugin/Display/constants/index.d.ts +4 -0
- package/dist/src/plugin/Display/cores/index.d.ts +3 -0
- package/dist/src/plugin/Display/index.d.ts +3 -0
- package/dist/src/plugin/Display/types/display.d.ts +13 -0
- package/dist/src/plugin/Display/types/index.d.ts +1 -0
- package/dist/src/plugin/app/constants/index.d.ts +21 -0
- package/dist/src/plugin/app/cores/index.d.ts +10 -2
- package/dist/src/plugin/app/index.d.ts +2 -11
- package/dist/src/plugin/app/types/app.d.ts +73 -3
- package/dist/src/plugin/app/types/index.d.ts +0 -15
- package/dist/src/plugin/appearance/constants/index.d.ts +1 -4
- package/dist/src/plugin/appearance/index.d.ts +2 -7
- package/dist/src/plugin/appearance/types/appearance.d.ts +5 -2
- package/dist/src/plugin/appearance/types/appearanceInstance.d.ts +9 -0
- package/dist/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/src/plugin/badge/index.d.ts +3 -0
- package/dist/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/src/plugin/battery/index.d.ts +3 -0
- package/dist/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/src/plugin/clipboard/types/clipboard.d.ts +2 -0
- package/dist/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/src/plugin/dimension/constants/index.d.ts +42 -2
- package/dist/src/plugin/dimension/index.d.ts +3 -4
- package/dist/src/plugin/dimension/types/dimensions.d.ts +24 -1
- package/dist/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/src/plugin/fullscreen/cores/index.d.ts +3 -1
- package/dist/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/src/plugin/fullscreen/types/fullscreen.d.ts +11 -6
- package/dist/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/src/plugin/geolocation/constants/index.d.ts +2 -0
- package/dist/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/src/plugin/network/cores/index.d.ts +15 -0
- package/dist/src/plugin/network/index.d.ts +3 -0
- package/dist/src/plugin/network/types/index.d.ts +1 -0
- package/dist/src/plugin/network/types/network.d.ts +4 -0
- package/dist/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/src/plugin/notification/index.d.ts +3 -0
- package/dist/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/src/plugin/open/constants/index.d.ts +28 -0
- package/dist/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/src/plugin/open/errors/not-supported-error.d.ts +2 -0
- package/dist/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/src/plugin/open/index.d.ts +3 -0
- package/dist/src/plugin/open/types/index.d.ts +1 -0
- package/dist/src/plugin/open/types/open.d.ts +187 -0
- package/dist/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/src/plugin/permission/index.d.ts +3 -0
- package/dist/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/src/plugin/pip/index.d.ts +3 -0
- package/dist/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/src/plugin/platform/constants/index.d.ts +5 -6
- package/dist/src/plugin/platform/cores/index.d.ts +36 -5
- package/dist/src/plugin/platform/index.d.ts +2 -11
- package/dist/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/src/plugin/platform/types/platform.d.ts +31 -14
- package/dist/src/plugin/pwa/cores/index.d.ts +3 -0
- package/dist/src/plugin/pwa/index.d.ts +3 -0
- package/dist/src/plugin/pwa/types/index.d.ts +1 -0
- package/dist/src/plugin/pwa/types/pwa.d.ts +8 -0
- package/dist/src/plugin/speech/cores/index.d.ts +53 -0
- package/dist/src/plugin/speech/index.d.ts +3 -0
- package/dist/src/plugin/speech/types/index.d.ts +1 -0
- package/dist/src/plugin/speech/types/speech.d.ts +9 -0
- package/dist/src/plugin/theme/index.d.ts +2 -4
- package/dist/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/src/plugin/theme/types/theme.d.ts +2 -0
- package/dist/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/src/plugin/vibration/index.d.ts +3 -0
- package/dist/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/src/plugin/vibration/types/vibration.d.ts +9 -0
- package/dist/src/types/event-listener.d.ts +35 -0
- package/dist/src/types/index.d.ts +3 -0
- package/dist/src/types/listener-entry.d.ts +0 -1
- package/dist/src/types/native.d.ts +30 -26
- package/dist/src/types/subscription-manager.d.ts +4 -0
- package/dist/src/utils/create-env-observer.d.ts +8 -0
- package/dist/src/utils/create-hidden-element.d.ts +1 -1
- package/dist/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/src/utils/defer.d.ts +1 -0
- package/dist/src/utils/event-listener.d.ts +3 -0
- package/dist/src/utils/keys.d.ts +1 -0
- package/dist/src/utils/now.d.ts +1 -0
- package/dist/src/utils/pad-start.d.ts +1 -0
- package/dist/src/utils/random-string.d.ts +1 -0
- package/dist/src/utils/set-style.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NotSupportedError } from "../../../errors/not-supported-error";
|
|
2
|
+
import { PermissionNotGrantedError } from "../../../errors/permission-not-granted-error";
|
|
3
|
+
export interface NotificationOptions {
|
|
4
|
+
title: string;
|
|
5
|
+
badge?: string;
|
|
6
|
+
body?: string;
|
|
7
|
+
data?: any;
|
|
8
|
+
dir?: NotificationDirection;
|
|
9
|
+
icon?: string;
|
|
10
|
+
lang?: string;
|
|
11
|
+
requireInteraction?: boolean;
|
|
12
|
+
silent?: boolean | null;
|
|
13
|
+
tag?: string;
|
|
14
|
+
onClick?: ((this: Notification, ev: Event) => any);
|
|
15
|
+
onClose?: ((this: Notification, ev: Event) => any);
|
|
16
|
+
onError?: ((this: Notification, ev: Event) => any);
|
|
17
|
+
onShow?: ((this: Notification, ev: Event) => any);
|
|
18
|
+
}
|
|
19
|
+
export declare interface NotificationInstance {
|
|
20
|
+
send(options: NotificationOptions): Promise<Notification>;
|
|
21
|
+
get supported(): boolean;
|
|
22
|
+
Constants: {};
|
|
23
|
+
Errors: {
|
|
24
|
+
NotSupportedError: typeof NotSupportedError;
|
|
25
|
+
PermissionNotGrantedError: typeof PermissionNotGrantedError;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum AppOpenState {
|
|
2
|
+
Scheme = 0,
|
|
3
|
+
Universal = 1,
|
|
4
|
+
Intent = 2,
|
|
5
|
+
Fallback = 3,
|
|
6
|
+
Store = 4
|
|
7
|
+
}
|
|
8
|
+
export declare enum SettingType {
|
|
9
|
+
General = "general",
|
|
10
|
+
Network = "network",
|
|
11
|
+
Display = "display",
|
|
12
|
+
Appearance = "appearance",
|
|
13
|
+
Accessibility = "accessibility",
|
|
14
|
+
Battery = "battery",
|
|
15
|
+
Datetime = "datetime",
|
|
16
|
+
Language = "language",
|
|
17
|
+
Accounts = "accounts",
|
|
18
|
+
Storage = "storage"
|
|
19
|
+
}
|
|
20
|
+
export declare enum CameraType {
|
|
21
|
+
Image = "image",
|
|
22
|
+
Video = "video"
|
|
23
|
+
}
|
|
24
|
+
export declare enum CaptureType {
|
|
25
|
+
User = "user",
|
|
26
|
+
Environment = "environment"
|
|
27
|
+
}
|
|
28
|
+
export declare const SETTING_URL: Record<'Android' | 'Windows' | 'MacOS' | 'MacOS13+', Record<SettingType, string>>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Contact, OpenInstance } from "../types";
|
|
2
|
+
declare global {
|
|
3
|
+
interface Document {
|
|
4
|
+
webkitVisibilityState?: 'hidden' | 'visible';
|
|
5
|
+
mozVisibilityState?: 'hidden' | 'visible';
|
|
6
|
+
msVisibilityState?: 'hidden' | 'visible';
|
|
7
|
+
webkitHidden?: boolean;
|
|
8
|
+
mozHidden?: boolean;
|
|
9
|
+
msHidden?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface Navigator {
|
|
12
|
+
contacts?: ContactsManager;
|
|
13
|
+
}
|
|
14
|
+
interface FileSystemDirectoryHandle {
|
|
15
|
+
entries(): AsyncIterator<[string, FileSystemHandle]>;
|
|
16
|
+
}
|
|
17
|
+
var showOpenFilePicker: (options?: OpenFilePickerOptions) => Promise<FileSystemFileHandle[]>;
|
|
18
|
+
var showDirectoryPicker: (options?: OpenDirectoryPickerOptions) => Promise<FileSystemDirectoryHandle>;
|
|
19
|
+
var cordova: object | undefined;
|
|
20
|
+
}
|
|
21
|
+
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
|
|
22
|
+
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
|
|
23
|
+
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
|
|
24
|
+
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
|
|
25
|
+
}
|
|
26
|
+
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
|
|
27
|
+
interface IteratorYieldResult<TYield> {
|
|
28
|
+
done?: false;
|
|
29
|
+
value: TYield;
|
|
30
|
+
}
|
|
31
|
+
interface IteratorReturnResult<TReturn> {
|
|
32
|
+
done: true;
|
|
33
|
+
value: TReturn;
|
|
34
|
+
}
|
|
35
|
+
interface OpenFilePickerOptions {
|
|
36
|
+
excludeAcceptAllOption?: boolean;
|
|
37
|
+
id?: string;
|
|
38
|
+
multiple?: boolean;
|
|
39
|
+
startIn?: 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos';
|
|
40
|
+
types?: {
|
|
41
|
+
description?: string;
|
|
42
|
+
accept: Record<string, string[]>;
|
|
43
|
+
}[];
|
|
44
|
+
}
|
|
45
|
+
interface OpenDirectoryPickerOptions {
|
|
46
|
+
id?: string;
|
|
47
|
+
mode?: 'read' | 'readwrite';
|
|
48
|
+
startIn?: 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos';
|
|
49
|
+
}
|
|
50
|
+
interface ContactsManager {
|
|
51
|
+
select(properties: string[], options?: Record<string, any>): Promise<Contact[]>;
|
|
52
|
+
getProperties(): Promise<string[]>;
|
|
53
|
+
}
|
|
54
|
+
declare const Open: OpenInstance;
|
|
55
|
+
export default Open;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./open";
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { AppOpenState, CameraType, CaptureType, SettingType } from "../constants";
|
|
2
|
+
import { OS } from "../../platform/constants";
|
|
3
|
+
import { URLOpenError } from "../errors/url-open-error";
|
|
4
|
+
import { UserCancelledError } from "../errors/user-cancel-error";
|
|
5
|
+
import { NotSupportedError } from "../../../errors/not-supported-error";
|
|
6
|
+
export declare interface AppInfo {
|
|
7
|
+
scheme?: URLCandidate;
|
|
8
|
+
fallback?: URLCandidateOrFallback;
|
|
9
|
+
timeout?: number;
|
|
10
|
+
allowAppStore?: boolean;
|
|
11
|
+
allowWebStore?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare interface PackageName {
|
|
14
|
+
packageName?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare interface ProductId {
|
|
17
|
+
productId?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare interface BundleId {
|
|
20
|
+
bundleId?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare interface TrackId {
|
|
23
|
+
trackId?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare interface AndroidAppInfo extends AppInfo, PackageName {
|
|
26
|
+
intent?: URLCandidate;
|
|
27
|
+
}
|
|
28
|
+
export declare interface IOSAppInfo extends AppInfo, BundleId, TrackId {
|
|
29
|
+
universal?: URLCandidate;
|
|
30
|
+
}
|
|
31
|
+
export declare interface WindowsAppInfo extends AppInfo, PackageName, ProductId {
|
|
32
|
+
}
|
|
33
|
+
export declare interface MacOSAppInfo extends AppInfo, BundleId, TrackId {
|
|
34
|
+
}
|
|
35
|
+
export declare interface StoreInfo {
|
|
36
|
+
appStore?: string;
|
|
37
|
+
webStore?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare interface AppOpenOptions {
|
|
40
|
+
[OS.Android]?: AndroidAppInfo;
|
|
41
|
+
['android']?: AndroidAppInfo;
|
|
42
|
+
[OS.iOS]?: IOSAppInfo;
|
|
43
|
+
['ios']?: IOSAppInfo;
|
|
44
|
+
[OS.Windows]?: WindowsAppInfo;
|
|
45
|
+
['windows']?: WindowsAppInfo;
|
|
46
|
+
[OS.MacOS]?: MacOSAppInfo;
|
|
47
|
+
['macos']?: MacOSAppInfo;
|
|
48
|
+
}
|
|
49
|
+
export interface Contact {
|
|
50
|
+
name?: string;
|
|
51
|
+
email?: string;
|
|
52
|
+
tel?: string;
|
|
53
|
+
address?: string;
|
|
54
|
+
icon?: Blob[];
|
|
55
|
+
}
|
|
56
|
+
export interface ContactOptions {
|
|
57
|
+
multiple?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export type FileExtension = `.${string}`;
|
|
60
|
+
export type FileMimeType = `${string}/${string}`;
|
|
61
|
+
export interface FileOptions {
|
|
62
|
+
multiple?: boolean;
|
|
63
|
+
accept?: (FileExtension | FileMimeType)[];
|
|
64
|
+
id?: string;
|
|
65
|
+
startIn?: 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos';
|
|
66
|
+
}
|
|
67
|
+
export interface DirectoryOptions {
|
|
68
|
+
mode?: 'read' | 'readwrite';
|
|
69
|
+
id?: string;
|
|
70
|
+
startIn?: 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos';
|
|
71
|
+
}
|
|
72
|
+
export interface FileWithPath {
|
|
73
|
+
file: File;
|
|
74
|
+
relativePath: string;
|
|
75
|
+
}
|
|
76
|
+
export interface CameraOptions {
|
|
77
|
+
type?: CameraType;
|
|
78
|
+
capture?: CaptureType;
|
|
79
|
+
}
|
|
80
|
+
export interface CalendarOptions {
|
|
81
|
+
title?: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
location?: string;
|
|
84
|
+
allDay?: boolean;
|
|
85
|
+
startDate: Date;
|
|
86
|
+
endDate: Date;
|
|
87
|
+
alarm?: CalendarAlarmOptions[];
|
|
88
|
+
recur?: CalendarRecurOptions;
|
|
89
|
+
}
|
|
90
|
+
export type CalendarAlarmOptions = {
|
|
91
|
+
description?: string;
|
|
92
|
+
} & CalendarAlarmTrigger;
|
|
93
|
+
export type CalendarAlarmTrigger = {
|
|
94
|
+
datetime?: Date;
|
|
95
|
+
repeat?: never;
|
|
96
|
+
repeatDuration?: never;
|
|
97
|
+
before?: never;
|
|
98
|
+
weeks?: never;
|
|
99
|
+
days?: never;
|
|
100
|
+
hours?: never;
|
|
101
|
+
minutes?: never;
|
|
102
|
+
seconds?: never;
|
|
103
|
+
} | {
|
|
104
|
+
datetime?: never;
|
|
105
|
+
repeat?: number;
|
|
106
|
+
repeatDuration?: number;
|
|
107
|
+
before?: boolean;
|
|
108
|
+
weeks?: number;
|
|
109
|
+
days?: number;
|
|
110
|
+
hours?: number;
|
|
111
|
+
minutes?: number;
|
|
112
|
+
seconds?: number;
|
|
113
|
+
};
|
|
114
|
+
export type CalendarRecurWeekDay = 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA' | 'SU';
|
|
115
|
+
export type CalendarRecurDayValue = CalendarRecurWeekDay | `${number}${CalendarRecurWeekDay}`;
|
|
116
|
+
export type CalendarRecurOptions = {
|
|
117
|
+
frequency: 'SECONDLY' | 'MINUTELY' | 'HOURLY' | 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY';
|
|
118
|
+
interval?: number;
|
|
119
|
+
byMonth?: number[];
|
|
120
|
+
byWeekNo?: number[];
|
|
121
|
+
byYearDay?: number[];
|
|
122
|
+
byMonthDay?: number[];
|
|
123
|
+
byDay?: CalendarRecurDayValue[];
|
|
124
|
+
byHour?: number[];
|
|
125
|
+
byMinute?: number[];
|
|
126
|
+
bySecond?: number[];
|
|
127
|
+
bySetPos?: number[];
|
|
128
|
+
weekStart?: CalendarRecurWeekDay;
|
|
129
|
+
} & CalendarRecurLimit;
|
|
130
|
+
export type CalendarRecurLimit = {
|
|
131
|
+
count: number;
|
|
132
|
+
until?: never;
|
|
133
|
+
} | {
|
|
134
|
+
count?: never;
|
|
135
|
+
until: Date;
|
|
136
|
+
} | {
|
|
137
|
+
count?: never;
|
|
138
|
+
until?: never;
|
|
139
|
+
};
|
|
140
|
+
export declare type URLCandidate = URL | string;
|
|
141
|
+
export declare type URLCandidateOrFallback = URLCandidate | (() => any);
|
|
142
|
+
export declare type URLStringOrFallback = string | (() => any);
|
|
143
|
+
export declare interface TelephoneOptions {
|
|
144
|
+
to?: string | string[];
|
|
145
|
+
}
|
|
146
|
+
export declare interface MessageOptions extends TelephoneOptions {
|
|
147
|
+
body?: string;
|
|
148
|
+
}
|
|
149
|
+
export declare interface MailOptions extends MessageOptions {
|
|
150
|
+
cc?: string | string[];
|
|
151
|
+
bcc?: string | string[];
|
|
152
|
+
subject?: string;
|
|
153
|
+
}
|
|
154
|
+
export declare interface OpenInstance {
|
|
155
|
+
app(options: AppOpenOptions): Promise<AppOpenState>;
|
|
156
|
+
telephone(options: TelephoneOptions): Promise<void>;
|
|
157
|
+
message(options: MessageOptions): Promise<void>;
|
|
158
|
+
mail(options: MailOptions): Promise<void>;
|
|
159
|
+
file(options?: FileOptions): Promise<File[]>;
|
|
160
|
+
directory(options?: DirectoryOptions): Promise<FileWithPath[]>;
|
|
161
|
+
setting(type: SettingType): Promise<void>;
|
|
162
|
+
camera(options?: CameraOptions): Promise<File[]>;
|
|
163
|
+
contact(options?: ContactOptions): Promise<Contact[]>;
|
|
164
|
+
share(options: ShareData): Promise<void>;
|
|
165
|
+
calendar(options: CalendarOptions): void;
|
|
166
|
+
supported: {
|
|
167
|
+
get intent(): boolean;
|
|
168
|
+
get universal(): boolean;
|
|
169
|
+
get setting(): boolean;
|
|
170
|
+
get directory(): boolean;
|
|
171
|
+
get camera(): boolean;
|
|
172
|
+
get contact(): boolean;
|
|
173
|
+
get share(): boolean;
|
|
174
|
+
get calendar(): boolean;
|
|
175
|
+
};
|
|
176
|
+
Constants: {
|
|
177
|
+
AppOpenState: typeof AppOpenState;
|
|
178
|
+
SettingType: typeof SettingType;
|
|
179
|
+
CameraType: typeof CameraType;
|
|
180
|
+
CaptureType: typeof CaptureType;
|
|
181
|
+
};
|
|
182
|
+
Errors: {
|
|
183
|
+
URLOpenError: typeof URLOpenError;
|
|
184
|
+
NotSupportedError: typeof NotSupportedError;
|
|
185
|
+
UserCancelledError: typeof UserCancelledError;
|
|
186
|
+
};
|
|
187
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Navigator {
|
|
3
|
+
getUserMedia?(constraints?: MediaStreamConstraints): Promise<MediaStream>;
|
|
4
|
+
webkitGetUserMedia?(constraints: MediaStreamConstraints, successCallback: (stream: MediaStream) => void, errorCallback: (error: DOMException) => void): void;
|
|
5
|
+
mozGetUserMedia?(constraints: MediaStreamConstraints, successCallback: (stream: MediaStream) => void, errorCallback: (error: DOMException) => void): void;
|
|
6
|
+
msGetUserMedia?(constraints: MediaStreamConstraints, successCallback: (stream: MediaStream) => void, errorCallback: (error: DOMException) => void): void;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare enum PermissionType {
|
|
10
|
+
Notification = "notifications",
|
|
11
|
+
Geolocation = "geolocation",
|
|
12
|
+
Camera = "camera",
|
|
13
|
+
Microphone = "microphone",
|
|
14
|
+
MIDI = "midi"
|
|
15
|
+
}
|
|
16
|
+
export declare enum PermissionState {
|
|
17
|
+
Grant = "grant",
|
|
18
|
+
Denied = "denied",
|
|
19
|
+
Prompt = "prompt",
|
|
20
|
+
Unsupported = "unsupported"
|
|
21
|
+
}
|
|
22
|
+
export declare const GET_USER_MEDIA: ((constraints?: MediaStreamConstraints) => Promise<MediaStream>) | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./permission";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PermissionState, PermissionType } from "../constants";
|
|
2
|
+
export declare interface PermissionInstance {
|
|
3
|
+
request(type: PermissionType): Promise<PermissionState>;
|
|
4
|
+
check(type: PermissionType): Promise<PermissionState>;
|
|
5
|
+
Constants: {
|
|
6
|
+
PermissionType: typeof PermissionType;
|
|
7
|
+
PermissionState: typeof PermissionState;
|
|
8
|
+
};
|
|
9
|
+
Errors: {};
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PipInstance } from "../types";
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLVideoElement {
|
|
4
|
+
webkitSupportsPresentationMode?: (mode: string) => boolean;
|
|
5
|
+
webkitSetPresentationMode?: (mode: string) => void;
|
|
6
|
+
webkitPresentationMode?: string;
|
|
7
|
+
onwebkitpresentationmodechanged?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
8
|
+
__pipBridged__?: boolean;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare const Pip: PipInstance;
|
|
12
|
+
export default Pip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./pip";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NotSupportedError } from "../../../errors/not-supported-error";
|
|
2
|
+
export declare interface PipInstance {
|
|
3
|
+
supported: boolean;
|
|
4
|
+
element: HTMLVideoElement | null;
|
|
5
|
+
isPip: boolean;
|
|
6
|
+
request(target?: HTMLVideoElement): Promise<void>;
|
|
7
|
+
exit(): Promise<void>;
|
|
8
|
+
toggle(target?: HTMLVideoElement): Promise<void>;
|
|
9
|
+
onChange(listener: (event: Event) => void, options?: AddEventListenerOptions): () => void;
|
|
10
|
+
onError(listener: (event: Event) => void, options?: AddEventListenerOptions): () => void;
|
|
11
|
+
Constants: {};
|
|
12
|
+
Errors: {
|
|
13
|
+
NotSupportedError: typeof NotSupportedError;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VersionResolver } from "../types";
|
|
1
2
|
export declare enum OS {
|
|
2
3
|
Unknown = "Unknown",
|
|
3
4
|
Android = "Android",
|
|
@@ -33,11 +34,9 @@ export declare enum Browsers {
|
|
|
33
34
|
IE = "IE",
|
|
34
35
|
SamsungInternet = "SamsungInternet"
|
|
35
36
|
}
|
|
36
|
-
export declare enum CrossPlatformFramework {
|
|
37
|
-
Unknown = "Unknown",
|
|
38
|
-
ReactNative = "ReactNative",
|
|
39
|
-
Electron = "Electron",
|
|
40
|
-
Cordova = "Cordova"
|
|
41
|
-
}
|
|
42
37
|
export declare const USER_AGENT: string;
|
|
43
38
|
export declare const HIGH_ENTROPY_BRAND_NAME_MAP: Record<string, string>;
|
|
39
|
+
export declare const RTL_LANGUAGES: string[];
|
|
40
|
+
export declare const OS_RESOLVER_MAP: [RegExp, OS, VersionResolver?][];
|
|
41
|
+
export declare const ENGINE_RESOLVER_MAP: [RegExp, Engines, VersionResolver?][];
|
|
42
|
+
export declare const BROWSER_RESOLVER_MAP: [RegExp, Browsers, VersionResolver?][];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { PlatformInstance } from "../types";
|
|
1
|
+
import { GPUAdapterInfo, PlatformInstance } from "../types";
|
|
2
2
|
declare global {
|
|
3
|
-
var device: CordovaDevice | undefined;
|
|
4
3
|
interface Navigator {
|
|
5
4
|
userAgent?: string;
|
|
6
5
|
userAgentData?: UserAgentData;
|
|
@@ -9,11 +8,32 @@ declare global {
|
|
|
9
8
|
browserLanguage?: string;
|
|
10
9
|
systemLanguage?: string;
|
|
11
10
|
userLanguage?: string;
|
|
11
|
+
standalone?: boolean;
|
|
12
|
+
gpu?: WebGPU;
|
|
13
|
+
}
|
|
14
|
+
interface NodeProcessVersions {
|
|
15
|
+
node?: string;
|
|
16
|
+
chrome?: string;
|
|
17
|
+
}
|
|
18
|
+
interface NodeProcess {
|
|
19
|
+
versions?: NodeProcessVersions;
|
|
20
|
+
type?: string;
|
|
21
|
+
platform?: string;
|
|
22
|
+
getSystemVersion?(): string;
|
|
23
|
+
}
|
|
24
|
+
var process: NodeProcess | undefined;
|
|
25
|
+
namespace Intl {
|
|
26
|
+
const Locale: {
|
|
27
|
+
new (tag: string): IntlLocale;
|
|
28
|
+
};
|
|
12
29
|
}
|
|
13
30
|
}
|
|
14
|
-
interface
|
|
15
|
-
|
|
16
|
-
|
|
31
|
+
interface IntlLocale {
|
|
32
|
+
getTextInfo?(): IntlLocaleTextInfo;
|
|
33
|
+
textInfo: IntlLocaleTextInfo;
|
|
34
|
+
}
|
|
35
|
+
interface IntlLocaleTextInfo {
|
|
36
|
+
direction: 'rtl' | 'ltr';
|
|
17
37
|
}
|
|
18
38
|
interface ModernUserAgentDataBrand {
|
|
19
39
|
brand: string;
|
|
@@ -30,5 +50,16 @@ interface UserAgentDataValues {
|
|
|
30
50
|
interface UserAgentData {
|
|
31
51
|
getHighEntropyValues?(hints: string[]): Promise<UserAgentDataValues>;
|
|
32
52
|
}
|
|
53
|
+
interface WebGPU {
|
|
54
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
55
|
+
}
|
|
56
|
+
interface GPURequestAdapterOptions {
|
|
57
|
+
powerPreference?: GPUPowerPreference;
|
|
58
|
+
forceFallbackAdapter?: boolean;
|
|
59
|
+
}
|
|
60
|
+
type GPUPowerPreference = "low-power" | "high-performance";
|
|
61
|
+
interface GPUAdapter {
|
|
62
|
+
readonly info: GPUAdapterInfo;
|
|
63
|
+
}
|
|
33
64
|
declare const Platform: PlatformInstance;
|
|
34
65
|
export default Platform;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PlatformInstance } from "./types";
|
|
3
|
-
import { Browsers, CrossPlatformFramework, Devices, Engines, OS } from "./constants";
|
|
1
|
+
import Platform from "./cores";
|
|
4
2
|
export * from "./types";
|
|
5
|
-
|
|
6
|
-
OS: typeof OS;
|
|
7
|
-
Devices: typeof Devices;
|
|
8
|
-
Engines: typeof Engines;
|
|
9
|
-
Browsers: typeof Browsers;
|
|
10
|
-
CrossPlatformFramework: typeof CrossPlatformFramework;
|
|
11
|
-
}, {}>;
|
|
12
|
-
export default NativePlatformPlugin;
|
|
3
|
+
export default Platform;
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import { Browsers,
|
|
1
|
+
import { Browsers, Devices, Engines, OS } from "../constants";
|
|
2
|
+
import { Writeable } from "../../../types";
|
|
2
3
|
export declare type VersionResolver = undefined | string | ((string: string | undefined) => string);
|
|
3
4
|
export declare interface PlatformInstance {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
isNode: boolean;
|
|
13
|
-
isStandalone: boolean;
|
|
14
|
-
isWebview: boolean;
|
|
15
|
-
|
|
5
|
+
get userAgent(): string;
|
|
6
|
+
set userAgent(value: any);
|
|
7
|
+
get os(): NameVersionPair<OS>;
|
|
8
|
+
get engine(): NameVersionPair<Engines>;
|
|
9
|
+
get browser(): NameVersionPair<Browsers>;
|
|
10
|
+
get device(): Devices;
|
|
11
|
+
get locale(): Locale;
|
|
12
|
+
get gpu(): GPU;
|
|
13
|
+
get isNode(): boolean;
|
|
14
|
+
get isStandalone(): boolean;
|
|
15
|
+
get isWebview(): boolean;
|
|
16
|
+
Constants: {
|
|
17
|
+
OS: typeof OS;
|
|
18
|
+
Engines: typeof Engines;
|
|
19
|
+
Browsers: typeof Browsers;
|
|
20
|
+
Devices: typeof Devices;
|
|
21
|
+
};
|
|
22
|
+
Errors: {};
|
|
16
23
|
}
|
|
17
24
|
export declare interface NameVersionPair<T> {
|
|
18
25
|
name: T;
|
|
@@ -22,5 +29,15 @@ export declare interface Locale {
|
|
|
22
29
|
language: string | null;
|
|
23
30
|
languages: string[];
|
|
24
31
|
timezone: string | null;
|
|
25
|
-
|
|
32
|
+
offset: number;
|
|
33
|
+
isRTL: boolean;
|
|
26
34
|
}
|
|
35
|
+
export interface GPUAdapterInfo {
|
|
36
|
+
readonly vendor?: string;
|
|
37
|
+
readonly architecture?: string;
|
|
38
|
+
readonly device?: string;
|
|
39
|
+
readonly description?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare type GPU = Writeable<GPUAdapterInfo> & {
|
|
42
|
+
webglRenderer: string;
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./pwa";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { SpeechInstance } from "../types";
|
|
2
|
+
declare const Speech: SpeechInstance;
|
|
3
|
+
interface SpeechRecognition extends EventTarget {
|
|
4
|
+
lang: string;
|
|
5
|
+
continuous: boolean;
|
|
6
|
+
interimResults: boolean;
|
|
7
|
+
maxAlternatives: number;
|
|
8
|
+
processLocally?: boolean;
|
|
9
|
+
onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
10
|
+
onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
11
|
+
onend: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
12
|
+
onerror: ((this: SpeechRecognition, ev: SpeechRecognitionErrorEvent) => any) | null;
|
|
13
|
+
onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
|
|
14
|
+
onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
|
|
15
|
+
onsoundstart: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
16
|
+
onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
17
|
+
onspeechstart: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
18
|
+
onspeechend: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
19
|
+
onstart: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
20
|
+
start(audioTrack?: MediaStreamTrack): void;
|
|
21
|
+
stop(): void;
|
|
22
|
+
abort(): void;
|
|
23
|
+
addEventListener(type: "audiostart" | "audioend" | "end" | "error" | "nomatch" | "result" | "soundstart" | "soundend" | "speechstart" | "speechend" | "start", listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
24
|
+
removeEventListener(type: "audiostart" | "audioend" | "end" | "error" | "nomatch" | "result" | "soundstart" | "soundend" | "speechstart" | "speechend" | "start", listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
25
|
+
}
|
|
26
|
+
interface SpeechRecognitionConstructor {
|
|
27
|
+
new (): SpeechRecognition;
|
|
28
|
+
available?: (options?: {
|
|
29
|
+
langs?: string[];
|
|
30
|
+
processLocally?: boolean;
|
|
31
|
+
}) => Promise<boolean>;
|
|
32
|
+
install?: (options?: {
|
|
33
|
+
langs?: string[];
|
|
34
|
+
}) => Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
interface SpeechRecognitionEvent extends Event {
|
|
37
|
+
readonly resultIndex: number;
|
|
38
|
+
readonly results: SpeechRecognitionResultList;
|
|
39
|
+
}
|
|
40
|
+
interface SpeechRecognitionErrorEvent extends Event {
|
|
41
|
+
readonly error: string;
|
|
42
|
+
readonly message: string;
|
|
43
|
+
}
|
|
44
|
+
declare global {
|
|
45
|
+
var webkitSpeechRecognition: SpeechRecognitionConstructor;
|
|
46
|
+
var SpeechRecognition: SpeechRecognitionConstructor;
|
|
47
|
+
interface HTMLAudioElement {
|
|
48
|
+
captureStream?(): MediaStream;
|
|
49
|
+
mozCaptureStream?(): MediaStream;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
declare const SpeechRecognition: SpeechRecognitionConstructor;
|
|
53
|
+
export default Speech;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./speech";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NotSupportedError } from "../../../errors/not-supported-error";
|
|
2
|
+
export declare interface SpeechInstance {
|
|
3
|
+
tts(text: string, language?: string): Promise<Blob>;
|
|
4
|
+
stt(blob: Blob, language?: string): Promise<string>;
|
|
5
|
+
Constants: {};
|
|
6
|
+
Errors: {
|
|
7
|
+
NotSupportedError: typeof NotSupportedError;
|
|
8
|
+
};
|
|
9
|
+
}
|