native-fn 1.0.88 → 1.0.90
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 +4 -33
- package/dist/native.cjs +2742 -47
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +2742 -47
- package/dist/native.umd.js +2742 -47
- 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/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 +13 -0
- package/dist/src/plugin/app/cores/index.d.ts +11 -2
- package/dist/src/plugin/app/index.d.ts +2 -11
- package/dist/src/plugin/app/types/app.d.ts +25 -3
- package/dist/src/plugin/app/types/index.d.ts +0 -15
- package/dist/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/src/plugin/appearance/index.d.ts +2 -7
- package/dist/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/src/plugin/dimension/index.d.ts +3 -4
- package/dist/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/src/plugin/fullscreen/types/index.d.ts +0 -10
- 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/platform/constants/index.d.ts +6 -6
- package/dist/src/plugin/platform/cores/index.d.ts +24 -6
- 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 +23 -15
- package/dist/src/plugin/theme/cores/index.d.ts +2 -2
- 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 +3 -1
- package/dist/src/types/native.d.ts +16 -26
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(e="undefined"!=typeof globalThis?globalThis:e||self).Clipboard=r()}(this,(function(){"use strict";function e(e,r){if(void 0===r&&(r=!0),void 0!==globalThis.document){var n=globalThis.document.createElement(e);return"width"in n&&(n.width="0"),"height"in n&&(n.height="0"),"border"in n&&(n.border="0"),"frameBorder"in n&&(n.frameBorder="0"),"scrolling"in n&&(n.scrolling="no"),"cellPadding"in n&&(n.cellPadding="0"),"cellSpacing"in n&&(n.cellSpacing="0"),"frame"in n&&(n.frame="void"),"rules"in n&&(n.rules="none"),"noWrap"in n&&(n.noWrap=!0),n.tabIndex=-1,n.setAttribute("role","presentation"),r?(n.style.width="1px",n.style.height="1px"):(n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.zIndex="-9999",n.style.display="none",n.style.visibility="hidden",n.style.pointerEvents="none"),n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.padding="0",n.style.margin="0",n.style.border="none",n.style.outline="none",n.style.clip="rect(1px, 1px, 1px, 1px)",n.style.clipPath="inset(50%)",n.style.overflow="hidden",n.style.whiteSpace="nowrap",n}}function r(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];for(var t="",o=0;o<r.length-2;o++){var i=r[o];void 0!==i&&(t=t+i.charAt(0).toUpperCase()+i.slice(1))}return t}function n(){this.returnValue=!1}function t(){this.cancelBubble=!0}var o,i,a,l,s,c=/(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,u=["","webkit","moz","ms","MS","o","O"],d={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},m={useStd:void 0!==globalThis.document&&"function"==typeof globalThis.document.addEventListener,add:function(e,r){void 0===r&&(r={callback:null,options:!1});var o=r.callback;if(void 0!==e&&null!==o){var i=m.withVender(e,r.type),a=r.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,o,a)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(o)}catch(e){}else try{return e.addListener(i,o)}catch(e){}return"function"==typeof e.attachEvent?o.__ieWrapper?e.attachEvent("on"+i,o.__ieWrapper):e.attachEvent("on"+i,o.__ieWrapper=function(r){void 0===r&&(r=globalThis.event),void 0!==r&&(r.currentTarget=e,"function"!=typeof r.preventDefault&&(r.preventDefault=n),"function"!=typeof r.stopPropagation&&(r.stopPropagation=t),"function"==typeof o?o.call(e,r):o&&"function"==typeof o.handleEvent&&o.handleEvent.call(e,r))}):void 0}},remove:function(e,r){void 0===r&&(r={callback:null,options:!1});var n=r.callback;if(void 0!==e&&null!==n){var t=m.withVender(e,r.type),o=r.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(t,n,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(n)}catch(e){}else try{return e.removeListener(t,n)}catch(e){}if("function"!=typeof e.detachEvent);else{var i=n.__ieWrapper;void 0!==i&&(e.detachEvent("on"+t,i),delete n.__ieWrapper)}}},withVender:function(e,n){if(void 0===n)return"";if(e===globalThis.document&&["deviceready","pause","resume","backbutton","menubutton","searchbutton","startcallbutton","endcallbutton","volumedownbutton","volumeupbutton","activated","cordovacallbackerror"].indexOf(n)>-1)return n;if(void 0!==e.webkitEnterFullscreen&&["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"].indexOf(n)>-1)return n;var t;t=n in d?d[n]:c.test(n)?[n,n.replace(c,r)]:[n];for(var o=0;o<u.length;o++)for(var i=0;i<t.length;i++){var a=u[o]+t[i];if(void 0!==e["on"+a])return a}return""}};!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(o||(o={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(i||(i={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(a||(a={})),function(e){e.Unknown="Unknown",e.Chrome="Chrome",e.Safari="Safari",e.Edge="Edge",e.Firefox="Firefox",e.Opera="Opera",e.IE="IE",e.SamsungInternet="SamsungInternet"}(l||(l={})),function(e){e.Unknown="Unknown",e.ReactNative="ReactNative",e.Electron="Electron",e.Cordova="Cordova"}(s||(s={}));var f=void 0!==globalThis.navigator&&"string"==typeof globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",g={"Google Chrome":"Chrome","Microsoft Edge":"Edge","Microsoft Edge WebView2":"Edge WebView2","Android WebView":"Chrome WebView",HeadlessChrome:"Chrome Headless",OperaMobile:"Opera Mobi"},v="loading",p=[],h=0,b={os:{name:o.Unknown,version:""},engine:{name:a.Unknown,version:""},browser:{name:l.Unknown,version:""},crossPlatformFramework:s.Unknown,userAgent:f,get locale(){return function(){var e={language:null,languages:[],timezone:null,timezoneOffset:0};function r(e){for(var r=0;r<e.length;r++)n(e[r])}function n(r){"string"==typeof(r=P(r))&&-1===e.languages.indexOf(r)&&(null===e.language&&(e.language=r),e.languages.push(r))}if(b.crossPlatformFramework===s.ReactNative)try{var t=require("react-native").NativeModules;if(void 0!==t.SettingsManager){var o=t.SettingsManager;if(void 0!==o)if(void 0!==(a="function"==typeof o.getConstants?o.getConstants():o)&&void 0!==a.settings){var i=a.settings;"string"==typeof i.AppleLocale&&n(i.AppleLocale),Array.isArray(i.AppleLanguages)&&i.AppleLanguages.length>0&&r(i.AppleLanguages)}}if(void 0!==t.I18nManager){var a,l=t.I18nManager;if(void 0!==l)void 0!==(a="function"==typeof l.getConstants?l.getConstants():l)&&void 0!==a.localeIdentifier&&n(a.localeIdentifier)}}catch(e){}if(b.crossPlatformFramework===s.Electron)try{var c=require("electron").app;void 0!==c.getLocale&&n(c.getLocale()),void 0!==c.getSystemLocale&&n(c.getSystemLocale()),void 0!==c.getPreferredSystemLanguages&&r(c.getPreferredSystemLanguages())}catch(e){}if("undefined"!=typeof Intl){try{n(Intl.DateTimeFormat().resolvedOptions().locale)}catch(e){}try{e.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}void 0!==globalThis.navigator&&(void 0!==globalThis.navigator.languages&&r(globalThis.navigator.languages),void 0!==globalThis.navigator.language&&n(globalThis.navigator.language),void 0!==globalThis.navigator.userLanguage&&n(globalThis.navigator.userLanguage),void 0!==globalThis.navigator.browserLanguage&&n(globalThis.navigator.browserLanguage),void 0!==globalThis.navigator.systemLanguage&&n(globalThis.navigator.systemLanguage));try{e.timezoneOffset=(new Date).getTimezoneOffset()}catch(e){}return e}()},get device(){return this.os.name===o.iOS||this.os.name===o.Android?i.Mobile:this.os.name===o.Windows||this.os.name===o.MacOS?i.Desktop:i.Unknown},get renderer(){return function(){if(void 0===globalThis.document)return"";var e=globalThis.document.createElement("canvas");if("function"!=typeof e.getContext)return"";var r=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===r)return"";if(r instanceof WebGLRenderingContext||"getParameter"in r&&"function"==typeof r.getParameter){var n=r.getExtension("WEBGL_debug_renderer_info");return null===n?r.getParameter(r.RENDERER):r.getParameter(n.UNMASKED_RENDERER_WEBGL)}return""}()},get isWebview(){return/; ?wv|applewebkit(?!.*safari)/i.test(this.userAgent)},get isNode(){return void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.node},get isStandalone(){return this.os.name===o.iOS?"standalone"in globalThis.navigator&&!!globalThis.navigator.standalone:"matchMedia"in globalThis&&globalThis.matchMedia("(display-mode: standalone)").matches},onready:function(e){if("complete"===v)try{e(this)}catch(e){}else p.push(e)}};function w(e){if(void 0===e)return"";var r={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==r?r:e}function y(e){return void 0===e?"":e.replace(/_/g,".")}var T=[[/windows nt (6\.[23]); arm/i,o.Windows,w],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,o.Windows,w],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,o.Windows,w],[/windows nt ?([\d.)]*)(?!.+xbox)/i,o.Windows,w],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,o.Windows,w],[/windows ce\/?([\d.]*)/i,o.Windows,w],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,o.iOS,y],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,o.iOS,y],[/cfnetwork\/.+darwin/i,o.iOS,y],[/mac os x ?([\w. ]*)/i,o.MacOS,y],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,o.MacOS,y],[/droid ([\w.]+)\b.+(android[- ]x86)/i,o.Android],[/android\w*[-\/.; ]?([\d.]*)/i,o.Android]],x=[[/windows.+ edge\/([\w.]+)/i,a.EdgeHTML],[/arkweb\/([\w.]+)/i,a.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,a.Blink],[/presto\/([\w.]+)/i,a.Presto],[/webkit\/([\w.]+)/i,a.WebKit],[/trident\/([\w.]+)/i,a.Trident],[/netfront\/([\w.]+)/i,a.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,a.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,a.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,a.Gecko]],k=[[/\b(?:crmo|crios)\/([\w.]+)/i,l.Chrome],[/webview.+edge\/([\w.]+)/i,l.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,l.Edge],[/opera mini\/([-\w.]+)/i,l.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,l.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,l.Opera],[/opios[\/ ]+([\w.]+)/i,l.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,l.Opera],[/\bopr\/([\w.]+)/i,l.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,l.IE],[/(?:ms|\()ie ([\w.]+)/i,l.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,l.IE],[/\bfocus\/([\w.]+)/i,l.Firefox],[/\bopt\/([\w.]+)/i,l.Opera],[/coast\/([\w.]+)/i,l.Opera],[/fxios\/([\w.-]+)/i,l.Firefox],[/samsungbrowser\/([\w.]+)/i,l.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,l.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,l.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,l.Chrome],[/chrome\/([\w.]+) mobile/i,l.Chrome],[/chrome\/v?([\w.]+)/i,l.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/version\/([\w.,]+) .*safari/i,l.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,l.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,l.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,l.Firefox],[/firefox\/([\w.]+)/i,l.Firefox]];function j(){h--,E()}function E(){if(0===h&&"loading"===v){v="complete";for(var e=0;e<p.length;e++)try{p[e](b)}catch(e){}p.length=0}}function C(e,r){return 10===e.major&&0===e.minor&&e.build>=22e3?"11":10===e.major&&0===e.minor&&e.build<22e3?"10":6===e.major&&3===e.minor?"8.1":6===e.major&&2===e.minor?"8":6===e.major&&1===e.minor?"7":6===e.major&&0===e.minor?"Vista":5===e.major&&1===e.minor||5===e.major&&2===e.minor?"XP":5===e.major&&0===e.minor?"2000":4===e.major&&90===e.minor?"ME":4===e.major&&0===e.minor?"NT 4.0":3===e.major&&51===e.minor?"NT 3.11":r}function S(e,r){return e.major>=24?e.major-9+"."+e.minor+"."+e.build:23===e.major?"14."+e.minor+"."+e.build:22===e.major?"13."+e.minor+"."+e.build:21===e.major?"12."+e.minor+"."+e.build:20===e.major?"11."+e.minor+"."+e.build:19===e.major?"10.15."+e.minor:18===e.major?"10.14."+e.minor:17===e.major?"10.13."+e.minor:16===e.major?"10.12."+e.minor:15===e.major?"10.11."+e.minor:14===e.major?"10.10."+e.minor:13===e.major?"10.9."+e.minor:e.major>=5&&e.major<=12?"10."+(e.major-4)+"."+e.minor:r}function L(e,r){return e.major>=36?"16":35===e.major?"15":34===e.major?"14":33===e.major?"13":32===e.major?"12.1":31===e.major?"12":30===e.major?"11":29===e.major?"10":28===e.major?"9":27===e.major?"8.1":26===e.major?"8.0":25===e.major?"7.1":24===e.major?"7.0":23===e.major?"6.0":22===e.major?"5.1":21===e.major?"5.0":20===e.major||19===e.major?"4.4":18===e.major?"4.3":17===e.major?"4.2":16===e.major?"4.1":15===e.major?"4.0.3":14===e.major?"4.0":13===e.major?"3.2":12===e.major?"3.1":11===e.major?"3.0":10===e.major?"2.3.3":9===e.major?"2.3":8===e.major?"2.2":7===e.major?"2.1":6===e.major?"2.0.1":5===e.major?"2.0":4===e.major?"1.6":3===e.major?"1.5":2===e.major?"1.1":1===e.major?"1.0":r}function O(e,r){return"function"==typeof r?r(e):"string"==typeof r?r:void 0===e?"":e}function A(e){var r=e.split(".");return{major:parseInt(r[0]||"0"),minor:parseInt(r[1]||"0"),build:parseInt(r[2]||"0")}}function M(){if(b.crossPlatformFramework=s.Cordova,void 0!==globalThis.device)switch(globalThis.device.platform){case"Android":b.os={name:o.Android,version:globalThis.device.version};break;case"iOS":b.os={name:o.iOS,version:globalThis.device.version}}j()}function P(e){if(null==e)return e;if(0===e.length)return null;if("C"===(e=e.replace(/_/g,"-"))||"posix"===e.toLowerCase())return"en-US";if(-1!==e.indexOf("."))return P(e.split(".")[0]);if(-1!==e.indexOf("@"))return P(e.split("@")[0]);var r=e.split("-");return 0===r.length?null:(r[0]=r[0].toLowerCase(),r.length>1&&2===r[1].length&&(r[1]=r[1].toUpperCase()),r.length>2&&4===r[1].length&&(r[1]=r[1].charAt(0).toUpperCase()+r[1].slice(1).toLowerCase()),r.join("-"))}function D(e){return null!==e&&"object"==typeof e}function W(){return function(){if(void 0!==globalThis.isSecureContext)return globalThis.isSecureContext;var e=location.protocol,r=location.hostname;return"https:"===e||"localhost"===r||"127.0.0.1"===r||"[::1]"===r}()&&"undefined"!=typeof navigator&&"clipboard"in navigator}function N(r){return function(r){if(!globalThis.getSelection||!globalThis.document.createRange)return!1;var n=e("div");if(void 0===n)return!1;n.contentEditable="true",n.innerHTML=r,n.style.whiteSpace="pre",n.style.userSelect="text",n.style.setProperty("-webkit-user-select","text"),n.style.setProperty("-moz-user-select","text"),n.style.setProperty("-ms-user-select","text"),globalThis.document.body.appendChild(n);var t=globalThis.getSelection(),o=globalThis.document.createRange(),i=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.setData&&(e.preventDefault(),e.clipboardData.setData("text/html",r),e.clipboardData.setData("text/plain",r))}catch(e){}};m.add(globalThis.document,{type:"copy",callback:i,options:{once:!0,capture:!0}});try{if(null===t)return F(n,t,i),!1;t.removeAllRanges(),o.selectNodeContents(n),t.addRange(o);var a=globalThis.document.execCommand("copy");return F(n,t,i),a}catch(e){return F(n,t,i),!1}}(r)||function(e){var r=window.clipboardData;if(void 0!==r&&"function"==typeof r.setData)try{return r.setData("Text",e)}catch(e){return!1}return!1}(r)}function I(){return function(){var r=e("div");if(void 0===r)return null;r.contentEditable="true",globalThis.document.body.appendChild(r),r.focus();var n=null,t=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.getData&&(e.preventDefault(),n=e.clipboardData.getData("text/html")||e.clipboardData.getData("text/plain")||null)}catch(e){}};m.add(globalThis.document,{type:"paste",callback:t,options:{once:!0,capture:!0}});try{return globalThis.document.execCommand("paste")||n||(n=r.innerHTML||r.textContent||null),V(r,t),n}catch(e){return V(r,t),null}}()||function(){var e=window.clipboardData;if(void 0!==e&&"function"==typeof e.getData)try{return e.getData("Text")||null}catch(e){return null}return null}()||""}function F(e,r,n){null!==r&&r.removeAllRanges(),globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"copy",callback:n})}function V(e,r){globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"paste",callback:r})}return function(){(void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.electron||/ electron\//i.test(f))&&(b.crossPlatformFramework=s.Electron),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product&&(b.crossPlatformFramework=s.ReactNative);for(var e=0;e<T.length;e++){var r=(c=T[e])[0],n=c[1],t=c[2];if(null!==(u=b.userAgent.match(r))){b.os={name:n,version:O(u[1],t)};break}}for(b.os.name===o.iOS&&0===function(e,r){for(var n=e.split("."),t=r.split("."),o=Math.max(n.length,t.length),i=0;i<o;i++){var a=void 0,l=void 0;if((a=i<n.length?parseInt(n[i],10):0)>(l=i<t.length?parseInt(t[i],10):0))return 1;if(a<l)return-1}return 0}(b.os.version,"18.6")&&null!==(m=/\) Version\/([\d.]+)/.exec(b.userAgent))&&parseInt(m[1].substring(0,2),10)>=26&&(b.os.version=m[1]),e=0;e<x.length;e++){r=(c=x[e])[0];var a=c[1];t=c[2];if(null!==(u=b.userAgent.match(r))){b.engine={name:a,version:O(u[1],t)};break}}for(e=0;e<k.length;e++){r=(c=k[e])[0];var c,u,d=c[1];t=c[2];if(null!==(u=b.userAgent.match(r))){b.browser={name:d,version:O(u[1],t)};break}}if(b.crossPlatformFramework===s.ReactNative)try{n=(p=require("react-native").Platform).OS;var m=A(v=""+p.Version);switch(n){case"android":b.os={name:o.Android,version:L(m,v)};break;case"ios":b.os={name:o.iOS,version:v};break;case"windows":b.os={name:o.Windows,version:C(m,v)};break;case"macos":b.os={name:o.MacOS,version:v}}}catch(e){}if(b.isNode)try{var v,p=(n=require("os")).platform();m=A(v=n.release());switch(p){case"win32":b.os={name:o.Windows,version:C(m,v)};break;case"darwin":b.os={name:o.MacOS,version:S(m,v)};break;case"android":b.os={name:o.Android,version:v};break;case"linux":/android/i.test(v)&&(b.os={name:o.Android,version:v})}}catch(e){}void 0!==globalThis.document&&(void 0!==globalThis.device?M():globalThis.document.addEventListener("deviceready",M,!1)),void 0!==globalThis.navigator&&void 0!==globalThis.navigator.userAgentData&&void 0!==globalThis.navigator.userAgentData.getHighEntropyValues&&(h++,globalThis.navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(e){try{for(var r=e.fullVersionList||e.brands||[],n=e.platformVersion,t=e.platform,a=b.browser.name,s=null,c=0;c<r.length;c++){var u=null==(f=r[c])?{brand:"",version:""}:"string"==typeof f?{brand:f,version:""}:{brand:f.brand,version:f.version},d=u.version,m=u.brand;/not.a.brand/i.test(m)||((null===s||/Chrom/.test(s)&&"Chromium"!==m||"Edge"===s&&/WebView2/.test(m))&&(m=g[m]||m,null!==(s=a)&&!/Chrom/.test(s)&&/Chrom/.test(m)||("Chrome"===(a=m)||"Chrome WebView"===a||"Chrome Headless"===a?b.browser.name=l.Chrome:"Edge"===a||"Edge WebView2"===a?b.browser.name=l.Edge:"Opera Mobi"===a&&(b.browser.name=l.Opera),b.browser.version=d),s=m),"Chromium"===m&&(b.engine.version=d))}"string"==typeof n&&(b.os.name===o.Windows?b.os.version=parseInt(n.split(".")[0],10)>=13?"11":"10":b.os.version=n),"string"==typeof t&&(/android/i.test(t)?b.os.name=o.Android:/ios|iphone|ipad/i.test(t)?b.os.name=o.iOS:/windows|win32/i.test(t)?b.os.name=o.Windows:/macos|macintel/i.test(t)&&(b.os.name=o.MacOS)),!0===e.mobile&&(b.device=i.Mobile)}catch(e){}finally{j()}var f}))),E()}(),{installed:!1,name:"Clipboard",module:{copy:function(e){var r=function(e){if(function(e){return D(e)&&void 0!==e.innerText}(e))return e.innerHTML;if(function(e){return D(e)||function(e){return Array.isArray(e)}(e)}(e))try{return JSON.stringify(e)}catch(r){return""+e}else if("string"!=typeof e)return""+e;return e}(e);if(b.crossPlatformFramework===s.Electron)return function(e){try{var r=require("electron");return new Promise((function(n){try{r.clipboard.writeText(e),r.clipboard.writeHTML(e),n(!0)}catch(e){n(!1)}}))}catch(e){return Promise.resolve(!1)}}(r);if(W()&&("write"in navigator.clipboard||"writeText"in navigator.clipboard))return function(e){try{if("ClipboardItem"in window&&"write"in navigator.clipboard)return navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]).then((function(){return!0})).catch((function(){return!1}));if("writeText"in navigator.clipboard)return navigator.clipboard.writeText(e).then((function(){return!0})).catch((function(){return!1}))}catch(e){return Promise.resolve(!1)}return Promise.resolve(!1)}(r).then((function(e){return!!e||N(r)})).catch((function(){return N(r)}));return Promise.resolve(N(r))},paste:function(){if(b.crossPlatformFramework===s.Electron)return function(){try{var e=require("electron");return new Promise((function(r){try{var n=e.clipboard.readHTML();return r(n?n.replace(/<meta[^>]*\bcharset\b[^>]*>/i,""):e.clipboard.readText()||"")}catch(e){r("")}}))}catch(e){return Promise.resolve("")}}();if(W()&&("read"in navigator.clipboard||"readText"in navigator.clipboard))return function(){try{if("ClipboardItem"in window&&"read"in navigator.clipboard)return navigator.clipboard.read().then((function(e){if(0===e.length)return Promise.resolve(null);for(var r=e[0],n=r.types,t=0;t<n.length;t++)if("text/html"===n[t])return r.getType("text/html").then((function(e){return e.text()})).catch((function(){return null}));for(t=0;t<n.length;t++)if("text/plain"===n[t])return r.getType("text/plain").then((function(e){return e.text()})).catch((function(){return null}));return Promise.resolve(null)})).catch((function(){return null}));if("readText"in navigator.clipboard)return navigator.clipboard.readText().then((function(e){return e})).catch((function(){return null}))}catch(e){return Promise.resolve(null)}return Promise.resolve(null)}().then((function(e){return null!==e?e:I()})).catch((function(){return I()}));return Promise.resolve(I())}},Constants:{},Errors:{}}}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Clipboard=e()}(this,(function(){"use strict";function t(t,e){if(void 0===e&&(e=!0),void 0!==globalThis.document){var n=globalThis.document.createElement(t);return"width"in n&&(n.width="0"),"height"in n&&(n.height="0"),"border"in n&&(n.border="0"),"frameBorder"in n&&(n.frameBorder="0"),"scrolling"in n&&(n.scrolling="no"),"cellPadding"in n&&(n.cellPadding="0"),"cellSpacing"in n&&(n.cellSpacing="0"),"frame"in n&&(n.frame="void"),"rules"in n&&(n.rules="none"),"noWrap"in n&&(n.noWrap=!0),n.tabIndex=-1,n.setAttribute("role","presentation"),e?(n.style.width="1px",n.style.height="1px"):(n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.zIndex="-9999",n.style.display="none",n.style.visibility="hidden",n.style.pointerEvents="none"),n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.padding="0",n.style.margin="0",n.style.border="none",n.style.outline="none",n.style.clip="rect(1px, 1px, 1px, 1px)",n.style.clipPath="inset(50%)",n.style.overflow="hidden",n.style.whiteSpace="nowrap",n}}function e(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r="",o=0;o<e.length-2;o++){var i=e[o];void 0!==i&&(r=r+i.charAt(0).toUpperCase()+i.slice(1))}return r}function n(){this.returnValue=!1}function r(){this.cancelBubble=!0}var o=/(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,i=["","webkit","moz","ms","MS","o","O"],a={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},l={useStd:void 0!==globalThis.document&&"function"==typeof globalThis.document.addEventListener,add:function(t,e){void 0===e&&(e={callback:null,options:!1});var o=e.callback;if(void 0!==t&&null!==o){var i=l.withVender(t,e.type),a=e.options;if("function"==typeof t.addEventListener)try{return t.addEventListener(i,o,a)}catch(t){}if("function"==typeof t.addListener)if("boolean"==typeof t.matches)try{return t.addListener(o)}catch(t){}else try{return t.addListener(i,o)}catch(t){}return"function"==typeof t.attachEvent?o.__ieWrapper?t.attachEvent("on"+i,o.__ieWrapper):t.attachEvent("on"+i,o.__ieWrapper=function(e){void 0===e&&(e=globalThis.event),void 0!==e&&(e.currentTarget=t,"function"!=typeof e.preventDefault&&(e.preventDefault=n),"function"!=typeof e.stopPropagation&&(e.stopPropagation=r),"function"==typeof o?o.call(t,e):o&&"function"==typeof o.handleEvent&&o.handleEvent.call(t,e))}):void 0}},remove:function(t,e){void 0===e&&(e={callback:null,options:!1});var n=e.callback;if(void 0!==t&&null!==n){var r=l.withVender(t,e.type),o=e.options;if("function"==typeof t.removeEventListener)try{return t.removeEventListener(r,n,o)}catch(t){}if("function"==typeof t.removeListener)if("boolean"==typeof t.matches)try{return t.removeListener(n)}catch(t){}else try{return t.removeListener(r,n)}catch(t){}if("function"!=typeof t.detachEvent);else{var i=n.__ieWrapper;void 0!==i&&(t.detachEvent("on"+r,i),delete n.__ieWrapper)}}},withVender:function(t,n){if(void 0===n)return"";if(t===globalThis.document&&["deviceready","pause","resume","backbutton","menubutton","searchbutton","startcallbutton","endcallbutton","volumedownbutton","volumeupbutton","activated","cordovacallbackerror"].indexOf(n)>-1)return n;if(void 0!==t.webkitEnterFullscreen&&["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"].indexOf(n)>-1)return n;var r;r=n in a?a[n]:o.test(n)?[n,n.replace(o,e)]:[n];for(var l=0;l<i.length;l++)for(var c=0;c<r.length;c++){var u=i[l]+r[c];if(void 0!==t["on"+u])return u}return""}};function c(t){return null!==t&&"object"==typeof t}function u(t){return c(t)&&void 0!==t.innerText}function d(t){return"[object Selection]"===Object.prototype.toString.call(t)}function s(){return function(){if(void 0!==globalThis.isSecureContext)return globalThis.isSecureContext;var t=location.protocol,e=location.hostname;return"https:"===t||"localhost"===e||"127.0.0.1"===e||"[::1]"===e}()&&"undefined"!=typeof navigator&&"clipboard"in navigator}function f(e,n){return function(e,n){if(!globalThis.getSelection||!globalThis.document.createRange)return!1;var r=t("div");if(void 0===r)return!1;r.contentEditable="true",r.innerHTML=e,r.style.whiteSpace="pre",r.style.userSelect="text",r.style.setProperty("-webkit-user-select","text"),r.style.setProperty("-moz-user-select","text"),r.style.setProperty("-ms-user-select","text"),globalThis.document.body.appendChild(r);var o=globalThis.getSelection(),i=globalThis.document.createRange(),a=function(t){try{null!==t.clipboardData&&"function"==typeof t.clipboardData.setData&&(t.preventDefault(),void 0!==n&&t.clipboardData.setData("text/html",n),t.clipboardData.setData("text/plain",e))}catch(t){}};l.add(globalThis.document,{type:"copy",callback:a,options:{once:!0,capture:!0}});try{if(null===o)return v(r,o,a),!1;o.removeAllRanges(),i.selectNodeContents(r),o.addRange(i);var c=globalThis.document.execCommand("copy");return v(r,o,a),c}catch(t){return v(r,o,a),!1}}(e,n)||function(t,e){var n=window.clipboardData;if(void 0!==n&&"function"==typeof n.setData)try{return void 0!==e&&n.setData("HTML",e),n.setData("Text",t)}catch(t){return!1}return!1}(e,n)}function p(){return function(){var e=t("div");if(void 0===e)return null;e.contentEditable="true",globalThis.document.body.appendChild(e),e.focus();var n=null,r=function(t){try{null!==t.clipboardData&&"function"==typeof t.clipboardData.getData&&(t.preventDefault(),n=t.clipboardData.getData("text/html")||t.clipboardData.getData("text/plain")||null)}catch(t){}};l.add(globalThis.document,{type:"paste",callback:r,options:{once:!0,capture:!0}});try{return globalThis.document.execCommand("paste")||n||(n=e.innerHTML||e.textContent||null),h(e,r),n}catch(t){return h(e,r),null}}()||function(){var t=window.clipboardData;if(void 0!==t&&"function"==typeof t.getData)try{return t.getData("Text")||null}catch(t){return null}return null}()||""}function v(t,e,n){null!==e&&e.removeAllRanges(),globalThis.document.body.removeChild(t),l.remove(globalThis.document,{type:"copy",callback:n})}function h(t,e){globalThis.document.body.removeChild(t),l.remove(globalThis.document,{type:"paste",callback:e})}return{copy:function(t){var e=function(t){if(u(t))return"value"in t&&"string"==typeof t.value?t.value:t.textContent;if(d(t))return t.toString();if(function(t){return c(t)||function(t){return Array.isArray(t)}(t)}(t))try{return JSON.stringify(t)}catch(e){return""+t}else if("string"!=typeof t)return""+t;return t}(t),n=function(t){var e=null;u(t)&&(e=t.outerHTML);if(d(t)&&t.rangeCount>0){for(var n=globalThis.document.createElement("div"),r=0;r<t.rangeCount;r++)n.appendChild(t.getRangeAt(r).cloneContents());e=n.innerHTML}if(null===e)return;return e}(t);if(s()&&("write"in navigator.clipboard||"writeText"in navigator.clipboard))return function(t,e){try{if("ClipboardItem"in window&&"write"in navigator.clipboard){var n={};return void 0!==e&&(n["text/html"]=new Blob([e],{type:"text/html"})),n["text/plain"]=new Blob([t],{type:"text/plain"}),navigator.clipboard.write([new ClipboardItem(n)]).then((function(){return!0})).catch((function(){return!1}))}if("writeText"in navigator.clipboard)return navigator.clipboard.writeText(t).then((function(){return!0})).catch((function(){return!1}))}catch(t){return Promise.resolve(!1)}return Promise.resolve(!1)}(e,n).then((function(t){return!!t||f(e,n)})).catch((function(){return f(e,n)}));return Promise.resolve(f(e,n))},paste:function(){if(s()&&("read"in navigator.clipboard||"readText"in navigator.clipboard))return function(){try{if("ClipboardItem"in window&&"read"in navigator.clipboard)return navigator.clipboard.read().then((function(t){if(0===t.length)return Promise.resolve(null);for(var e=t[0],n=e.types,r=0;r<n.length;r++)if("text/html"===n[r])return e.getType("text/html").then((function(t){return t.text()})).catch((function(){return null}));for(r=0;r<n.length;r++)if("text/plain"===n[r])return e.getType("text/plain").then((function(t){return t.text()})).catch((function(){return null}));return Promise.resolve(null)})).catch((function(){return null}));if("readText"in navigator.clipboard)return navigator.clipboard.readText().then((function(t){return t})).catch((function(){return null}))}catch(t){return Promise.resolve(null)}return Promise.resolve(null)}().then((function(t){return null!==t?t:p()})).catch((function(){return p()}));return Promise.resolve(p())},Constants:{},Errors:{}}}));
|
|
@@ -10,3 +10,16 @@ export declare enum MessengerType {
|
|
|
10
10
|
Message = "message",
|
|
11
11
|
Mail = "mail"
|
|
12
12
|
}
|
|
13
|
+
export declare enum SettingType {
|
|
14
|
+
General = "general",
|
|
15
|
+
Network = "network",
|
|
16
|
+
Display = "display",
|
|
17
|
+
Appearance = "appearance",
|
|
18
|
+
Accessibility = "accessibility",
|
|
19
|
+
Battery = "battery",
|
|
20
|
+
Datetime = "datetime",
|
|
21
|
+
Language = "language",
|
|
22
|
+
Accounts = "accounts",
|
|
23
|
+
Storage = "storage"
|
|
24
|
+
}
|
|
25
|
+
export declare const SETTING_URL: Record<'Android' | 'Windows' | 'MacOS' | 'MacOS13+', Record<SettingType, string>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { App } from "../types";
|
|
2
2
|
declare global {
|
|
3
3
|
interface Document {
|
|
4
4
|
webkitVisibilityState?: 'hidden' | 'visible';
|
|
@@ -8,6 +8,7 @@ declare global {
|
|
|
8
8
|
mozHidden?: boolean;
|
|
9
9
|
msHidden?: boolean;
|
|
10
10
|
}
|
|
11
|
+
var cordova: object | undefined;
|
|
11
12
|
}
|
|
12
|
-
declare const App:
|
|
13
|
+
declare const App: App;
|
|
13
14
|
export default App;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { AppInstance } from "./types";
|
|
3
|
-
import { AppOpenState, MessengerType } from "./constants";
|
|
4
|
-
import { URLOpenError } from "./errors/url-open-error";
|
|
1
|
+
import App from "./cores";
|
|
5
2
|
export * from "./types";
|
|
6
|
-
|
|
7
|
-
AppOpenState: typeof AppOpenState;
|
|
8
|
-
Messengers: typeof MessengerType;
|
|
9
|
-
}, {
|
|
10
|
-
URLOpenError: typeof URLOpenError;
|
|
11
|
-
}>;
|
|
12
|
-
export default NativeAppPlugin;
|
|
3
|
+
export default App;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AppOpenState, MessengerType } from "../constants";
|
|
1
|
+
import { AppOpenState, MessengerType, SettingType } from "../constants";
|
|
2
2
|
import { OS } from "../../platform/constants";
|
|
3
|
+
import { URLOpenError } from "../errors/url-open-error";
|
|
3
4
|
export declare interface AppInfo {
|
|
4
5
|
scheme?: URLCandidate;
|
|
5
6
|
fallback?: URLCandidateOrFallback;
|
|
@@ -41,7 +42,7 @@ export declare interface AppOpenOptions {
|
|
|
41
42
|
[OS.Windows]?: WindowsAppInfo;
|
|
42
43
|
['windows']?: WindowsAppInfo;
|
|
43
44
|
[OS.MacOS]?: MacOSAppInfo;
|
|
44
|
-
['
|
|
45
|
+
['macos']?: MacOSAppInfo;
|
|
45
46
|
}
|
|
46
47
|
export declare type URLCandidate = URL | string;
|
|
47
48
|
export declare type URLCandidateOrFallback = URLCandidate | (() => any);
|
|
@@ -56,7 +57,16 @@ export declare type MessengerOpenOptions = {
|
|
|
56
57
|
body?: Stringifiable;
|
|
57
58
|
} | HTMLFormElement | FormData;
|
|
58
59
|
export declare type Messenger = Record<MessengerType, (options: MessengerOpenOptions) => Promise<void>>;
|
|
59
|
-
export declare interface
|
|
60
|
+
export declare interface App {
|
|
60
61
|
open(options: AppOpenOptions): Promise<AppOpenState>;
|
|
62
|
+
setting(type: SettingType): Promise<void>;
|
|
61
63
|
messenger: Messenger;
|
|
64
|
+
Constants: {
|
|
65
|
+
AppOpenState: typeof AppOpenState;
|
|
66
|
+
MessengerType: typeof MessengerType;
|
|
67
|
+
SettingType: typeof SettingType;
|
|
68
|
+
};
|
|
69
|
+
Errors: {
|
|
70
|
+
URLOpenError: typeof URLOpenError;
|
|
71
|
+
};
|
|
62
72
|
}
|
|
@@ -1,16 +1 @@
|
|
|
1
1
|
export * from "./app";
|
|
2
|
-
import type { AppInstance } from "./";
|
|
3
|
-
import { AppOpenState, MessengerType } from "../constants";
|
|
4
|
-
import { URLOpenError } from "../errors/url-open-error";
|
|
5
|
-
declare module 'native-fn' {
|
|
6
|
-
interface NativePlugins {
|
|
7
|
-
App: AppInstance;
|
|
8
|
-
}
|
|
9
|
-
interface NativeConstants {
|
|
10
|
-
AppOpenState: typeof AppOpenState;
|
|
11
|
-
Messengers: typeof MessengerType;
|
|
12
|
-
}
|
|
13
|
-
interface NativeErrors {
|
|
14
|
-
URLOpenError: typeof URLOpenError;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const Appearance:
|
|
1
|
+
import { Appearance } from "../types";
|
|
2
|
+
declare const Appearance: Appearance;
|
|
3
3
|
export default Appearance;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AppearanceInstance } from "./types";
|
|
3
|
-
import { Appearances } from "./constants";
|
|
1
|
+
import Appearance from "./cores";
|
|
4
2
|
export * from "./types";
|
|
5
|
-
|
|
6
|
-
Appearances: typeof Appearances;
|
|
7
|
-
}, {}>;
|
|
8
|
-
export default NativeAppearancePlugin;
|
|
3
|
+
export default Appearance;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Appearances } from "../constants";
|
|
2
|
-
export declare interface
|
|
2
|
+
export declare interface Appearance {
|
|
3
3
|
get value(): Appearances;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
onchange(listener: (appearance?: Appearances) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
5
|
+
Constants: {
|
|
6
|
+
Appearances: typeof Appearances;
|
|
7
|
+
};
|
|
8
|
+
Errors: {};
|
|
6
9
|
}
|
|
@@ -1,13 +1 @@
|
|
|
1
1
|
export * from "./appearance";
|
|
2
|
-
import type { AppearanceInstance } from "./appearance";
|
|
3
|
-
import { Appearances } from "../constants";
|
|
4
|
-
declare module 'native-fn' {
|
|
5
|
-
interface NativePlugins {
|
|
6
|
-
Appearance: AppearanceInstance;
|
|
7
|
-
}
|
|
8
|
-
interface NativeConstants {
|
|
9
|
-
Appearances: typeof Appearances;
|
|
10
|
-
}
|
|
11
|
-
interface NativeErrors {
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const Clipboard:
|
|
1
|
+
import { Clipboard } from "../types";
|
|
2
|
+
declare const Clipboard: Clipboard;
|
|
3
3
|
export default Clipboard;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ClipboardInstance } from "./types";
|
|
1
|
+
import Clipboard from "./cores";
|
|
3
2
|
export * from "./types";
|
|
4
|
-
|
|
5
|
-
export default NativeClipboardPlugin;
|
|
3
|
+
export default Clipboard;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const Dimension:
|
|
1
|
+
import { Dimension } from "../types";
|
|
2
|
+
declare const Dimension: Dimension;
|
|
3
3
|
export default Dimension;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default NativeDimensionPlugin;
|
|
1
|
+
import Dimension from "./cores";
|
|
2
|
+
export * from "./types";
|
|
3
|
+
export default Dimension;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export declare interface
|
|
1
|
+
export declare interface Dimension {
|
|
2
2
|
get value(): Dimensions;
|
|
3
|
-
onchange(listener: (dimension?: Dimensions) =>
|
|
3
|
+
onchange(listener: (dimension?: Dimensions) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
4
|
+
Constants: {};
|
|
5
|
+
Errors: {};
|
|
4
6
|
}
|
|
5
7
|
export declare interface Dimensions {
|
|
6
8
|
outerWidth: number;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
import { DimensionInstance } from "./dimensions";
|
|
2
|
-
import Dimension from "../cores";
|
|
3
1
|
export * from "./dimensions";
|
|
4
|
-
declare module 'native-fn' {
|
|
5
|
-
interface NativePlugins {
|
|
6
|
-
Dimension: DimensionInstance;
|
|
7
|
-
}
|
|
8
|
-
interface NativeConstants {
|
|
9
|
-
Dimension: typeof Dimension;
|
|
10
|
-
}
|
|
11
|
-
interface NativeErrors {
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { FullscreenInstance } from "./types";
|
|
1
|
+
import Fullscreen from "./cores";
|
|
3
2
|
export * from "./types";
|
|
4
|
-
|
|
5
|
-
export default NativeFullscreenPlugin;
|
|
3
|
+
export default Fullscreen;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export declare interface
|
|
1
|
+
export declare interface Fullscreen {
|
|
2
2
|
enabled: boolean;
|
|
3
|
-
element:
|
|
3
|
+
element: Element | null;
|
|
4
4
|
isFullscreen: boolean;
|
|
5
|
-
request(target?:
|
|
5
|
+
request(target?: Element, options?: FullscreenOptions): Promise<void>;
|
|
6
6
|
exit(): Promise<void>;
|
|
7
|
-
toggle(target?:
|
|
7
|
+
toggle(target?: Element, options?: FullscreenOptions): Promise<void>;
|
|
8
8
|
onchange(handler: (event: Event) => void): () => void;
|
|
9
9
|
onerror(handler: (event: Event) => void): () => void;
|
|
10
|
+
Constants: {};
|
|
11
|
+
Errors: {};
|
|
10
12
|
}
|
|
@@ -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,10 @@ 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?][];
|
|
43
|
+
export declare const BOT_REGEXP: RegExp[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Platform } from "../types";
|
|
2
2
|
declare global {
|
|
3
|
-
var device: CordovaDevice | undefined;
|
|
4
3
|
interface Navigator {
|
|
5
4
|
userAgent?: string;
|
|
6
5
|
userAgentData?: UserAgentData;
|
|
@@ -10,10 +9,29 @@ declare global {
|
|
|
10
9
|
systemLanguage?: string;
|
|
11
10
|
userLanguage?: string;
|
|
12
11
|
}
|
|
12
|
+
interface NodeProcessVersions {
|
|
13
|
+
node?: string;
|
|
14
|
+
chrome?: string;
|
|
15
|
+
}
|
|
16
|
+
interface NodeProcess {
|
|
17
|
+
versions?: NodeProcessVersions;
|
|
18
|
+
type?: string;
|
|
19
|
+
platform?: string;
|
|
20
|
+
getSystemVersion?(): string;
|
|
21
|
+
}
|
|
22
|
+
var process: NodeProcess | undefined;
|
|
23
|
+
namespace Intl {
|
|
24
|
+
const Locale: {
|
|
25
|
+
new (tag: string): IntlLocale;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
13
28
|
}
|
|
14
|
-
interface
|
|
15
|
-
|
|
16
|
-
|
|
29
|
+
interface IntlLocale {
|
|
30
|
+
getTextInfo?(): IntlLocaleTextInfo;
|
|
31
|
+
textInfo: IntlLocaleTextInfo;
|
|
32
|
+
}
|
|
33
|
+
interface IntlLocaleTextInfo {
|
|
34
|
+
direction: 'rtl' | 'ltr';
|
|
17
35
|
}
|
|
18
36
|
interface ModernUserAgentDataBrand {
|
|
19
37
|
brand: string;
|
|
@@ -30,5 +48,5 @@ interface UserAgentDataValues {
|
|
|
30
48
|
interface UserAgentData {
|
|
31
49
|
getHighEntropyValues?(hints: string[]): Promise<UserAgentDataValues>;
|
|
32
50
|
}
|
|
33
|
-
declare const Platform:
|
|
51
|
+
declare const Platform: Platform;
|
|
34
52
|
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
2
|
export declare type VersionResolver = undefined | string | ((string: string | undefined) => string);
|
|
3
|
-
export declare interface
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
isNode: boolean;
|
|
13
|
-
isStandalone: boolean;
|
|
14
|
-
isWebview: boolean;
|
|
15
|
-
|
|
3
|
+
export declare interface Platform {
|
|
4
|
+
get userAgent(): string;
|
|
5
|
+
set userAgent(value: any);
|
|
6
|
+
get os(): NameVersionPair<OS>;
|
|
7
|
+
get engine(): NameVersionPair<Engines>;
|
|
8
|
+
get browser(): NameVersionPair<Browsers>;
|
|
9
|
+
get device(): Devices;
|
|
10
|
+
get locale(): Locale;
|
|
11
|
+
get renderer(): string;
|
|
12
|
+
get isNode(): boolean;
|
|
13
|
+
get isStandalone(): boolean;
|
|
14
|
+
get isWebview(): boolean;
|
|
15
|
+
get isBot(): 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;
|
|
@@ -23,4 +30,5 @@ export declare interface Locale {
|
|
|
23
30
|
languages: string[];
|
|
24
31
|
timezone: string | null;
|
|
25
32
|
timezoneOffset: number;
|
|
33
|
+
isRTL: boolean;
|
|
26
34
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const Theme:
|
|
1
|
+
import type { Theme } from "../types";
|
|
2
|
+
declare const Theme: Theme;
|
|
3
3
|
export default Theme;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ThemeInstance } from "./types";
|
|
1
|
+
import Theme from "./cores";
|
|
3
2
|
export * from "./types";
|
|
4
|
-
|
|
5
|
-
export default NativeThemePlugin;
|
|
3
|
+
export default Theme;
|
|
@@ -1,27 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare interface NativePlugin<Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>> {
|
|
10
|
-
installed: boolean;
|
|
11
|
-
name: Key;
|
|
12
|
-
module: Module;
|
|
13
|
-
Constants: Constants;
|
|
14
|
-
Errors: Errors;
|
|
15
|
-
}
|
|
16
|
-
export declare type ExtendedNativeBase<Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>> = NativeBase<NativePlugins & {
|
|
17
|
-
[Plugin in Key]: Module;
|
|
18
|
-
}, NativeConstants & Constants, NativeErrors & Errors>;
|
|
19
|
-
export declare type NativeBase<Plugins, AssignedConstants extends Record<string, any> = Record<string, any>, AssignedErrors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>> = {
|
|
1
|
+
import App from "../plugin/app";
|
|
2
|
+
import Appearance from "../plugin/appearance";
|
|
3
|
+
import Clipboard from "../plugin/clipboard";
|
|
4
|
+
import Dimension from "../plugin/dimension";
|
|
5
|
+
import Fullscreen from "../plugin/fullscreen";
|
|
6
|
+
import Platform from "../plugin/platform";
|
|
7
|
+
import Theme from "../plugin/theme";
|
|
8
|
+
export declare interface Native {
|
|
20
9
|
Version: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
App: App;
|
|
11
|
+
Appearance: Appearance;
|
|
12
|
+
Clipboard: Clipboard;
|
|
13
|
+
Dimension: Dimension;
|
|
14
|
+
Fullscreen: Fullscreen;
|
|
15
|
+
Platform: Platform;
|
|
16
|
+
Theme: Theme;
|
|
17
|
+
}
|