native-fn 1.0.81 → 1.0.83

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.
Files changed (201) hide show
  1. package/dist/index.d.ts +8 -1
  2. package/dist/native.cjs +4 -10
  3. package/dist/native.min.cjs +1 -1
  4. package/dist/native.min.mjs +1 -1
  5. package/dist/native.mjs +4 -10
  6. package/dist/native.umd.js +4 -10
  7. package/dist/native.umd.min.js +1 -1
  8. package/dist/plugin/app/index.cjs +189 -224
  9. package/dist/plugin/app/index.min.cjs +1 -1
  10. package/dist/plugin/app/index.min.mjs +1 -1
  11. package/dist/plugin/app/index.mjs +189 -224
  12. package/dist/plugin/app/index.umd.js +189 -224
  13. package/dist/plugin/app/index.umd.min.js +1 -1
  14. package/dist/plugin/app/src/plugin/appearance/constants/index.d.ts +2 -2
  15. package/dist/plugin/app/src/plugin/appearance/types/appearance.d.ts +1 -7
  16. package/dist/plugin/app/src/plugin/clipboard/types/appearance.d.ts +13 -0
  17. package/dist/plugin/app/src/plugin/dimension/constants/index.d.ts +3 -0
  18. package/dist/plugin/app/src/plugin/dimension/cores/index.d.ts +3 -0
  19. package/dist/plugin/app/src/plugin/dimension/index.d.ts +4 -0
  20. package/dist/plugin/app/src/plugin/dimension/types/dimension.d.ts +11 -0
  21. package/dist/plugin/app/src/plugin/dimension/types/dimensions.d.ts +11 -0
  22. package/dist/plugin/app/src/plugin/dimension/types/index.d.ts +13 -0
  23. package/dist/plugin/app/src/plugin/platform/constants/index.d.ts +1 -0
  24. package/dist/plugin/app/src/plugin/platform/cores/index.d.ts +5 -10
  25. package/dist/plugin/app/src/plugin/platform/types/platform.d.ts +7 -18
  26. package/dist/plugin/app/src/types/listener-entry.d.ts +6 -0
  27. package/dist/plugin/app/src/utils/request.d.ts +1 -0
  28. package/dist/plugin/appearance/index.cjs +165 -222
  29. package/dist/plugin/appearance/index.d.ts +2 -8
  30. package/dist/plugin/appearance/index.min.cjs +1 -1
  31. package/dist/plugin/appearance/index.min.mjs +1 -1
  32. package/dist/plugin/appearance/index.mjs +165 -222
  33. package/dist/plugin/appearance/index.umd.js +165 -222
  34. package/dist/plugin/appearance/index.umd.min.js +1 -1
  35. package/dist/plugin/appearance/src/plugin/appearance/constants/index.d.ts +2 -2
  36. package/dist/plugin/appearance/src/plugin/appearance/types/appearance.d.ts +1 -7
  37. package/dist/plugin/appearance/src/plugin/clipboard/types/appearance.d.ts +13 -0
  38. package/dist/plugin/appearance/src/plugin/dimension/constants/index.d.ts +3 -0
  39. package/dist/plugin/appearance/src/plugin/dimension/cores/index.d.ts +3 -0
  40. package/dist/plugin/appearance/src/plugin/dimension/index.d.ts +4 -0
  41. package/dist/plugin/appearance/src/plugin/dimension/types/dimension.d.ts +11 -0
  42. package/dist/plugin/appearance/src/plugin/dimension/types/dimensions.d.ts +11 -0
  43. package/dist/plugin/appearance/src/plugin/dimension/types/index.d.ts +13 -0
  44. package/dist/plugin/appearance/src/plugin/platform/constants/index.d.ts +1 -0
  45. package/dist/plugin/appearance/src/plugin/platform/cores/index.d.ts +5 -10
  46. package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +7 -18
  47. package/dist/plugin/appearance/src/types/listener-entry.d.ts +6 -0
  48. package/dist/plugin/appearance/src/utils/request.d.ts +1 -0
  49. package/dist/plugin/clipboard/index.cjs +148 -183
  50. package/dist/plugin/clipboard/index.min.cjs +1 -1
  51. package/dist/plugin/clipboard/index.min.mjs +1 -1
  52. package/dist/plugin/clipboard/index.mjs +148 -183
  53. package/dist/plugin/clipboard/index.umd.js +148 -183
  54. package/dist/plugin/clipboard/index.umd.min.js +1 -1
  55. package/dist/plugin/clipboard/src/plugin/appearance/constants/index.d.ts +2 -2
  56. package/dist/plugin/clipboard/src/plugin/appearance/types/appearance.d.ts +1 -7
  57. package/dist/plugin/clipboard/src/plugin/clipboard/types/appearance.d.ts +13 -0
  58. package/dist/plugin/clipboard/src/plugin/dimension/constants/index.d.ts +3 -0
  59. package/dist/plugin/clipboard/src/plugin/dimension/cores/index.d.ts +3 -0
  60. package/dist/plugin/clipboard/src/plugin/dimension/index.d.ts +4 -0
  61. package/dist/plugin/clipboard/src/plugin/dimension/types/dimension.d.ts +11 -0
  62. package/dist/plugin/clipboard/src/plugin/dimension/types/dimensions.d.ts +11 -0
  63. package/dist/plugin/clipboard/src/plugin/dimension/types/index.d.ts +13 -0
  64. package/dist/plugin/clipboard/src/plugin/platform/constants/index.d.ts +1 -0
  65. package/dist/plugin/clipboard/src/plugin/platform/cores/index.d.ts +5 -10
  66. package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +7 -18
  67. package/dist/plugin/clipboard/src/types/listener-entry.d.ts +6 -0
  68. package/dist/plugin/clipboard/src/utils/request.d.ts +1 -0
  69. package/dist/plugin/dimension/index.cjs +947 -0
  70. package/dist/plugin/dimension/index.d.ts +36 -0
  71. package/dist/plugin/dimension/index.min.cjs +1 -0
  72. package/dist/plugin/dimension/index.min.mjs +1 -0
  73. package/dist/plugin/dimension/index.mjs +945 -0
  74. package/dist/plugin/dimension/index.umd.js +953 -0
  75. package/dist/plugin/dimension/index.umd.min.js +1 -0
  76. package/dist/plugin/dimension/src/errors/plugin-not-extended-error.d.ts +2 -0
  77. package/dist/plugin/dimension/src/plugin/app/constants/index.d.ts +12 -0
  78. package/dist/plugin/dimension/src/plugin/app/cores/index.d.ts +13 -0
  79. package/dist/plugin/dimension/src/plugin/app/errors/url-open-error.d.ts +2 -0
  80. package/dist/plugin/dimension/src/plugin/app/index.d.ts +12 -0
  81. package/dist/plugin/dimension/src/plugin/app/types/app.d.ts +54 -0
  82. package/dist/plugin/dimension/src/plugin/app/types/index.d.ts +16 -0
  83. package/dist/plugin/dimension/src/plugin/appearance/constants/index.d.ts +11 -0
  84. package/dist/plugin/dimension/src/plugin/appearance/cores/index.d.ts +3 -0
  85. package/dist/plugin/dimension/src/plugin/appearance/index.d.ts +8 -0
  86. package/dist/plugin/dimension/src/plugin/appearance/types/appearance.d.ts +6 -0
  87. package/dist/plugin/dimension/src/plugin/appearance/types/index.d.ts +13 -0
  88. package/dist/plugin/dimension/src/plugin/clipboard/cores/index.d.ts +3 -0
  89. package/dist/plugin/dimension/src/plugin/clipboard/index.d.ts +5 -0
  90. package/dist/plugin/dimension/src/plugin/clipboard/types/appearance.d.ts +13 -0
  91. package/dist/plugin/dimension/src/plugin/clipboard/types/clipboard.d.ts +4 -0
  92. package/dist/plugin/dimension/src/plugin/clipboard/types/index.d.ts +11 -0
  93. package/dist/plugin/dimension/src/plugin/dimension/constants/index.d.ts +3 -0
  94. package/dist/plugin/dimension/src/plugin/dimension/cores/index.d.ts +3 -0
  95. package/dist/plugin/dimension/src/plugin/dimension/index.d.ts +4 -0
  96. package/dist/plugin/dimension/src/plugin/dimension/types/dimension.d.ts +11 -0
  97. package/dist/plugin/dimension/src/plugin/dimension/types/dimensions.d.ts +11 -0
  98. package/dist/plugin/dimension/src/plugin/dimension/types/index.d.ts +13 -0
  99. package/dist/plugin/dimension/src/plugin/fullscreen/cores/index.d.ts +35 -0
  100. package/dist/plugin/dimension/src/plugin/fullscreen/index.d.ts +5 -0
  101. package/dist/plugin/dimension/src/plugin/fullscreen/types/fullscreen.d.ts +10 -0
  102. package/dist/plugin/dimension/src/plugin/fullscreen/types/index.d.ts +11 -0
  103. package/dist/plugin/dimension/src/plugin/platform/constants/index.d.ts +43 -0
  104. package/dist/plugin/dimension/src/plugin/platform/cores/index.d.ts +35 -0
  105. package/dist/plugin/dimension/src/plugin/platform/index.d.ts +12 -0
  106. package/dist/plugin/dimension/src/plugin/platform/types/index.d.ts +11 -0
  107. package/dist/plugin/dimension/src/plugin/platform/types/platform.d.ts +27 -0
  108. package/dist/plugin/dimension/src/plugin/theme/constants/index.d.ts +2 -0
  109. package/dist/plugin/dimension/src/plugin/theme/cores/index.d.ts +3 -0
  110. package/dist/plugin/dimension/src/plugin/theme/index.d.ts +5 -0
  111. package/dist/plugin/dimension/src/plugin/theme/types/index.d.ts +11 -0
  112. package/dist/plugin/dimension/src/plugin/theme/types/theme.d.ts +4 -0
  113. package/dist/plugin/dimension/src/types/event-listener-util.d.ts +11 -0
  114. package/dist/plugin/dimension/src/types/index.d.ts +1 -0
  115. package/dist/plugin/dimension/src/types/listener-entry.d.ts +6 -0
  116. package/dist/plugin/dimension/src/types/native.d.ts +27 -0
  117. package/dist/plugin/dimension/src/utils/assign.d.ts +1 -0
  118. package/dist/plugin/dimension/src/utils/compare-version.d.ts +1 -0
  119. package/dist/plugin/dimension/src/utils/create-custom-error.d.ts +6 -0
  120. package/dist/plugin/dimension/src/utils/create-hidden-element.d.ts +1 -0
  121. package/dist/plugin/dimension/src/utils/dispatch-click-event.d.ts +1 -0
  122. package/dist/plugin/dimension/src/utils/event-listener-utils.d.ts +3 -0
  123. package/dist/plugin/dimension/src/utils/get-topmost-window.d.ts +1 -0
  124. package/dist/plugin/dimension/src/utils/is-secure-context.d.ts +1 -0
  125. package/dist/plugin/dimension/src/utils/request.d.ts +1 -0
  126. package/dist/plugin/fullscreen/index.cjs +156 -188
  127. package/dist/plugin/fullscreen/index.min.cjs +1 -1
  128. package/dist/plugin/fullscreen/index.min.mjs +1 -1
  129. package/dist/plugin/fullscreen/index.mjs +156 -188
  130. package/dist/plugin/fullscreen/index.umd.js +156 -188
  131. package/dist/plugin/fullscreen/index.umd.min.js +1 -1
  132. package/dist/plugin/fullscreen/src/plugin/appearance/constants/index.d.ts +2 -2
  133. package/dist/plugin/fullscreen/src/plugin/appearance/types/appearance.d.ts +1 -7
  134. package/dist/plugin/fullscreen/src/plugin/clipboard/types/appearance.d.ts +13 -0
  135. package/dist/plugin/fullscreen/src/plugin/dimension/constants/index.d.ts +3 -0
  136. package/dist/plugin/fullscreen/src/plugin/dimension/cores/index.d.ts +3 -0
  137. package/dist/plugin/fullscreen/src/plugin/dimension/index.d.ts +4 -0
  138. package/dist/plugin/fullscreen/src/plugin/dimension/types/dimension.d.ts +11 -0
  139. package/dist/plugin/fullscreen/src/plugin/dimension/types/dimensions.d.ts +11 -0
  140. package/dist/plugin/fullscreen/src/plugin/dimension/types/index.d.ts +13 -0
  141. package/dist/plugin/fullscreen/src/plugin/platform/constants/index.d.ts +1 -0
  142. package/dist/plugin/fullscreen/src/plugin/platform/cores/index.d.ts +5 -10
  143. package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +7 -18
  144. package/dist/plugin/fullscreen/src/types/listener-entry.d.ts +6 -0
  145. package/dist/plugin/fullscreen/src/utils/request.d.ts +1 -0
  146. package/dist/plugin/platform/index.cjs +137 -172
  147. package/dist/plugin/platform/index.d.ts +8 -19
  148. package/dist/plugin/platform/index.min.cjs +1 -1
  149. package/dist/plugin/platform/index.min.mjs +1 -1
  150. package/dist/plugin/platform/index.mjs +137 -172
  151. package/dist/plugin/platform/index.umd.js +137 -172
  152. package/dist/plugin/platform/index.umd.min.js +1 -1
  153. package/dist/plugin/platform/src/plugin/appearance/constants/index.d.ts +2 -2
  154. package/dist/plugin/platform/src/plugin/appearance/types/appearance.d.ts +1 -7
  155. package/dist/plugin/platform/src/plugin/clipboard/types/appearance.d.ts +13 -0
  156. package/dist/plugin/platform/src/plugin/dimension/constants/index.d.ts +3 -0
  157. package/dist/plugin/platform/src/plugin/dimension/cores/index.d.ts +3 -0
  158. package/dist/plugin/platform/src/plugin/dimension/index.d.ts +4 -0
  159. package/dist/plugin/platform/src/plugin/dimension/types/dimension.d.ts +11 -0
  160. package/dist/plugin/platform/src/plugin/dimension/types/dimensions.d.ts +11 -0
  161. package/dist/plugin/platform/src/plugin/dimension/types/index.d.ts +13 -0
  162. package/dist/plugin/platform/src/plugin/platform/constants/index.d.ts +1 -0
  163. package/dist/plugin/platform/src/plugin/platform/cores/index.d.ts +5 -10
  164. package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +7 -18
  165. package/dist/plugin/platform/src/types/listener-entry.d.ts +6 -0
  166. package/dist/plugin/platform/src/utils/request.d.ts +1 -0
  167. package/dist/plugin/theme/index.cjs +138 -173
  168. package/dist/plugin/theme/index.min.cjs +1 -1
  169. package/dist/plugin/theme/index.min.mjs +1 -1
  170. package/dist/plugin/theme/index.mjs +138 -173
  171. package/dist/plugin/theme/index.umd.js +138 -173
  172. package/dist/plugin/theme/index.umd.min.js +1 -1
  173. package/dist/plugin/theme/src/plugin/appearance/constants/index.d.ts +2 -2
  174. package/dist/plugin/theme/src/plugin/appearance/types/appearance.d.ts +1 -7
  175. package/dist/plugin/theme/src/plugin/clipboard/types/appearance.d.ts +13 -0
  176. package/dist/plugin/theme/src/plugin/dimension/constants/index.d.ts +3 -0
  177. package/dist/plugin/theme/src/plugin/dimension/cores/index.d.ts +3 -0
  178. package/dist/plugin/theme/src/plugin/dimension/index.d.ts +4 -0
  179. package/dist/plugin/theme/src/plugin/dimension/types/dimension.d.ts +11 -0
  180. package/dist/plugin/theme/src/plugin/dimension/types/dimensions.d.ts +11 -0
  181. package/dist/plugin/theme/src/plugin/dimension/types/index.d.ts +13 -0
  182. package/dist/plugin/theme/src/plugin/platform/constants/index.d.ts +1 -0
  183. package/dist/plugin/theme/src/plugin/platform/cores/index.d.ts +5 -10
  184. package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +7 -18
  185. package/dist/plugin/theme/src/types/listener-entry.d.ts +6 -0
  186. package/dist/plugin/theme/src/utils/request.d.ts +1 -0
  187. package/dist/src/plugin/appearance/constants/index.d.ts +2 -2
  188. package/dist/src/plugin/appearance/types/appearance.d.ts +1 -7
  189. package/dist/src/plugin/clipboard/types/appearance.d.ts +13 -0
  190. package/dist/src/plugin/dimension/constants/index.d.ts +3 -0
  191. package/dist/src/plugin/dimension/cores/index.d.ts +3 -0
  192. package/dist/src/plugin/dimension/index.d.ts +4 -0
  193. package/dist/src/plugin/dimension/types/dimension.d.ts +11 -0
  194. package/dist/src/plugin/dimension/types/dimensions.d.ts +11 -0
  195. package/dist/src/plugin/dimension/types/index.d.ts +13 -0
  196. package/dist/src/plugin/platform/constants/index.d.ts +1 -0
  197. package/dist/src/plugin/platform/cores/index.d.ts +5 -10
  198. package/dist/src/plugin/platform/types/platform.d.ts +7 -18
  199. package/dist/src/types/listener-entry.d.ts +6 -0
  200. package/dist/src/utils/request.d.ts +1 -0
  201. package/package.json +15 -15
@@ -0,0 +1 @@
1
+ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).Dimension=o()}(this,(function(){"use strict";var e,o,r,i,n;!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(e||(e={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(o||(o={})),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"}(r||(r={})),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"}(i||(i={})),function(e){e.Unknown="Unknown",e.ReactNative="ReactNative",e.Electron="Electron",e.Cordova="Cordova"}(n||(n={}));var a=void 0!==globalThis.navigator&&"string"==typeof globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",t={"Google Chrome":"Chrome","Microsoft Edge":"Edge","Microsoft Edge WebView2":"Edge WebView2","Android WebView":"Chrome WebView",HeadlessChrome:"Chrome Headless",OperaMobile:"Opera Mobi"},s=[];var l="loading",g=[],d=0,m={os:{name:e.Unknown,version:""},engine:{name:r.Unknown,version:""},browser:{name:i.Unknown,version:""},crossPlatformFramework:n.Unknown,userAgent:a,get readyState(){return l},get locale(){return function(){var e={language:null,languages:[],timezone:null,timezoneOffset:0};function o(e){for(var o=0;o<e.length;o++)r(e[o])}function r(o){"string"==typeof(o=W(o))&&-1===e.languages.indexOf(o)&&(null===e.language&&(e.language=o),e.languages.push(o))}if(m.crossPlatformFramework===n.ReactNative)try{var i=require("react-native").NativeModules;if(void 0!==i.SettingsManager){var a=i.SettingsManager;if(void 0!==a)if(void 0!==(s="function"==typeof a.getConstants?a.getConstants():a)&&void 0!==s.settings){var t=s.settings;"string"==typeof t.AppleLocale&&r(t.AppleLocale),Array.isArray(t.AppleLanguages)&&t.AppleLanguages.length>0&&o(t.AppleLanguages)}}if(void 0!==i.I18nManager){var s,l=i.I18nManager;if(void 0!==l)void 0!==(s="function"==typeof l.getConstants?l.getConstants():l)&&void 0!==s.localeIdentifier&&r(s.localeIdentifier)}}catch(e){}if(m.crossPlatformFramework===n.Electron)try{var g=require("electron").app;void 0!==g.getLocale&&r(g.getLocale()),void 0!==g.getSystemLocale&&r(g.getSystemLocale()),void 0!==g.getPreferredSystemLanguages&&o(g.getPreferredSystemLanguages())}catch(e){}if("undefined"!=typeof Intl){try{r(Intl.DateTimeFormat().resolvedOptions().locale)}catch(e){}try{e.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}void 0!==globalThis.navigator&&(void 0!==globalThis.navigator.languages&&o(globalThis.navigator.languages),void 0!==globalThis.navigator.language&&r(globalThis.navigator.language),void 0!==globalThis.navigator.userLanguage&&r(globalThis.navigator.userLanguage),void 0!==globalThis.navigator.browserLanguage&&r(globalThis.navigator.browserLanguage),void 0!==globalThis.navigator.systemLanguage&&r(globalThis.navigator.systemLanguage));try{e.timezoneOffset=(new Date).getTimezoneOffset()}catch(e){}return e}()},get device(){return this.os.name===e.iOS||this.os.name===e.Android?o.Mobile:this.os.name===e.Windows||this.os.name===e.MacOS?o.Desktop:o.Unknown},get renderer(){return function(){if(void 0===globalThis.document)return"";var e=globalThis.document.createElement("canvas");if("function"!=typeof e.getContext)return"";var o=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===o)return"";if(o instanceof WebGLRenderingContext||"getParameter"in o&&"function"==typeof o.getParameter){var r=o.getExtension("WEBGL_debug_renderer_info");return null===r?o.getParameter(o.RENDERER):o.getParameter(r.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===e.iOS?"standalone"in globalThis.navigator&&!!globalThis.navigator.standalone:"matchMedia"in globalThis&&globalThis.matchMedia("(display-mode: standalone)").matches},onready:function(e){if("complete"===this.readyState)try{e(this)}catch(e){}else g.push(e)}};function c(e){if(void 0===e)return"";var o={"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!==o?o:e}function u(e){return void 0===e?"":e.replace(/_/g,".")}var v=[[/windows nt (6\.[23]); arm/i,e.Windows,c],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,e.Windows,c],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,e.Windows,c],[/windows nt ?([\d.)]*)(?!.+xbox)/i,e.Windows,c],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,e.Windows,c],[/windows ce\/?([\d.]*)/i,e.Windows,c],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,e.iOS,u],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,e.iOS,u],[/cfnetwork\/.+darwin/i,e.iOS,u],[/mac os x ?([\w. ]*)/i,e.MacOS,u],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,e.MacOS,u],[/droid ([\w.]+)\b.+(android[- ]x86)/i,e.Android],[/android\w*[-\/.; ]?([\d.]*)/i,e.Android]],f=[[/windows.+ edge\/([\w.]+)/i,r.EdgeHTML],[/arkweb\/([\w.]+)/i,r.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,r.Blink],[/presto\/([\w.]+)/i,r.Presto],[/webkit\/([\w.]+)/i,r.WebKit],[/trident\/([\w.]+)/i,r.Trident],[/netfront\/([\w.]+)/i,r.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,r.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,r.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,r.Gecko]],h=[[/\b(?:crmo|crios)\/([\w.]+)/i,i.Chrome],[/webview.+edge\/([\w.]+)/i,i.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,i.Edge],[/opera mini\/([-\w.]+)/i,i.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,i.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,i.Opera],[/opios[\/ ]+([\w.]+)/i,i.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,i.Opera],[/\bopr\/([\w.]+)/i,i.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,i.IE],[/(?:ms|\()ie ([\w.]+)/i,i.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,i.IE],[/\bfocus\/([\w.]+)/i,i.Firefox],[/\bopt\/([\w.]+)/i,i.Opera],[/coast\/([\w.]+)/i,i.Opera],[/fxios\/([\w.-]+)/i,i.Firefox],[/samsungbrowser\/([\w.]+)/i,i.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,i.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,i.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,i.Chrome],[/chrome\/([\w.]+) mobile/i,i.Chrome],[/chrome\/v?([\w.]+)/i,i.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,i.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,i.Safari],[/version\/([\w.,]+) .*safari/i,i.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,i.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,i.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,i.Firefox],[/firefox\/([\w.]+)/i,i.Firefox]];function w(){d--,b()}function b(){if(0===d&&"loading"===l){l="complete";for(var e=0;e<g.length;e++)try{g[e](m)}catch(e){}g.length=0}}function p(e,o){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":o}function T(e,o){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:o}function j(e,o){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":o}function k(e,o){return"function"==typeof o?o(e):"string"==typeof o?o:void 0===e?"":e}function y(e){var o=e.split(".");return{major:parseInt(o[0]||"0"),minor:parseInt(o[1]||"0"),build:parseInt(o[2]||"0")}}function E(){if(m.crossPlatformFramework=n.Cordova,void 0!==globalThis.device)switch(globalThis.device.platform){case"Android":m.os={name:e.Android,version:globalThis.device.version};break;case"iOS":m.os={name:e.iOS,version:globalThis.device.version}}w()}function W(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 W(e.split(".")[0]);if(-1!==e.indexOf("@"))return W(e.split("@")[0]);var o=e.split("-");return 0===o.length?null:(o[0]=o[0].toLowerCase(),o.length>1&&2===o[1].length&&(o[1]=o[1].toUpperCase()),o.length>2&&4===o[1].length&&(o[1]=o[1].charAt(0).toUpperCase()+o[1].slice(1).toLowerCase()),o.join("-"))}!function(){(void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.electron||/ electron\//i.test(a))&&(m.crossPlatformFramework=n.Electron),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product&&(m.crossPlatformFramework=n.ReactNative);for(var r=0;r<v.length;r++){var s=(u=v[r])[0],l=u[1],g=u[2];if(null!==(W=m.userAgent.match(s))){m.os={name:l,version:k(W[1],g)};break}}for(m.os.name===e.iOS&&0===function(e,o){for(var r=e.split("."),i=o.split("."),n=Math.max(r.length,i.length),a=0;a<n;a++){var t=void 0,s=void 0;if((t=a<r.length?parseInt(r[a],10):0)>(s=a<i.length?parseInt(i[a],10):0))return 1;if(t<s)return-1}return 0}(m.os.version,"18.6")&&null!==(S=/\) Version\/([\d.]+)/.exec(m.userAgent))&&parseInt(S[1].substring(0,2),10)>=26&&(m.os.version=S[1]),r=0;r<f.length;r++){s=(u=f[r])[0];var c=u[1];g=u[2];if(null!==(W=m.userAgent.match(s))){m.engine={name:c,version:k(W[1],g)};break}}for(r=0;r<h.length;r++){s=(u=h[r])[0];var u,W,O=u[1];g=u[2];if(null!==(W=m.userAgent.match(s))){m.browser={name:O,version:k(W[1],g)};break}}if(m.crossPlatformFramework===n.ReactNative)try{l=(L=require("react-native").Platform).OS;var S=y(C=""+L.Version);switch(l){case"android":m.os={name:e.Android,version:j(S,C)};break;case"ios":m.os={name:e.iOS,version:C};break;case"windows":m.os={name:e.Windows,version:p(S,C)};break;case"macos":m.os={name:e.MacOS,version:C}}}catch(e){}if(m.isNode)try{var C,L=(l=require("os")).platform();S=y(C=l.release());switch(L){case"win32":m.os={name:e.Windows,version:p(S,C)};break;case"darwin":m.os={name:e.MacOS,version:T(S,C)};break;case"android":m.os={name:e.Android,version:C};break;case"linux":/android/i.test(C)&&(m.os={name:e.Android,version:C})}}catch(e){}void 0!==globalThis.document&&(void 0!==globalThis.device?E():globalThis.document.addEventListener("deviceready",E,!1)),void 0!==globalThis.navigator&&void 0!==globalThis.navigator.userAgentData&&void 0!==globalThis.navigator.userAgentData.getHighEntropyValues&&(d++,globalThis.navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(r){try{for(var n=r.fullVersionList||r.brands||[],a=r.platformVersion,s=r.platform,l=m.browser.name,g=null,d=0;d<n.length;d++){var c=null==(f=n[d])?{brand:"",version:""}:"string"==typeof f?{brand:f,version:""}:{brand:f.brand,version:f.version},u=c.version,v=c.brand;/not.a.brand/i.test(v)||((null===g||/Chrom/.test(g)&&"Chromium"!==v||"Edge"===g&&/WebView2/.test(v))&&(v=t[v]||v,null!==(g=l)&&!/Chrom/.test(g)&&/Chrom/.test(v)||("Chrome"===(l=v)||"Chrome WebView"===l||"Chrome Headless"===l?m.browser.name=i.Chrome:"Edge"===l||"Edge WebView2"===l?m.browser.name=i.Edge:"Opera Mobi"===l&&(m.browser.name=i.Opera),m.browser.version=u),g=v),"Chromium"===v&&(m.engine.version=u))}"string"==typeof a&&(m.os.name===e.Windows?m.os.version=parseInt(a.split(".")[0],10)>=13?"11":"10":m.os.version=a),"string"==typeof s&&(/android/i.test(s)?m.os.name=e.Android:/ios|iphone|ipad/i.test(s)?m.os.name=e.iOS:/windows|win32/i.test(s)?m.os.name=e.Windows:/macos|macintel/i.test(s)&&(m.os.name=e.MacOS)),!0===r.mobile&&(m.device=o.Mobile)}catch(e){}finally{w()}var f}))),b()}();var O=null;function S(){var e={innerWidth:-1,innerHeight:-1,outerWidth:-1,outerHeight:-1,scale:1};if(void 0!==globalThis.innerWidth)return e.innerWidth=globalThis.innerWidth,e.innerHeight=globalThis.innerHeight,e.outerWidth=globalThis.outerWidth,e.outerHeight=globalThis.outerHeight,e.scale=globalThis.devicePixelRatio||1,e;if(m.crossPlatformFramework===n.ReactNative)try{var o=require("react-native"),r=o.Dimensions,i=o.PixelRatio,a=r.get("screen"),t=r.get("window");return e.innerWidth=a.width,e.innerHeight=a.height,e.outerWidth=t.width,e.outerHeight=t.height,e.scale=i.get(),e}catch(e){}if(m.crossPlatformFramework===n.Electron)try{var s=require("electron"),l=s.screen,g=s.BrowserWindow,d=g.getFocusedWindow()||g.getAllWindows()[0];if(void 0!==d){var c=d.getContentSize(),u=d.getSize();e.innerWidth=c[0],e.innerHeight=c[1],e.outerWidth=u[0],e.outerHeight=u[1],e.scale=l.getDisplayMatching(d.getBounds()).scaleFactor}return e}catch(e){}return e}function C(){var e=S();O&&e.innerWidth===O.innerWidth&&e.innerHeight===O.innerHeight&&e.outerWidth===O.outerWidth&&e.outerHeight===O.outerHeight&&e.scale===O.scale||(O=e,L(e))}function L(e){for(var o=0;o<s.length;o++){var r=s[o];r.fn(e),r.once&&A(r)}}function A(e){var o,r=x(e);-1!==r&&s.splice(r,1),0===s.length&&(o=e.capture,O=null,"function"==typeof globalThis.removeEventListener&&globalThis.removeEventListener("resize",C,o))}function x(e){for(var o=0;o<s.length;o++)if(s[o].fn===e.fn&&s[o].capture===e.capture)return o;return-1}return{installed:!1,name:"Dimension",module:{get value(){return S()},onchange:function(e,o){void 0===o&&(o=!1);if(m.crossPlatformFramework===n.ReactNative)return function(e){try{var o=require("react-native").Dimensions.addEventListener("change",(function(o){e(S())}));return function(){o.remove()}}catch(e){}return function(){}}(e);if(m.crossPlatformFramework===n.Electron)return function(e){try{var o=require("electron").BrowserWindow,r=o.getFocusedWindow()||o.getAllWindows()[0];if(void 0!==r){var i=function(){e(S())};return r.on("resize",i),function(){r.removeListener("resize",i)}}}catch(e){}return function(){}}(e);var r={fn:e,capture:!1,once:!1};"boolean"==typeof o&&(o={capture:o});void 0!==o.capture&&(r.capture=o.capture);void 0!==o.once&&(r.once=o.once);void 0!==o.signal&&(r.signal=o.signal);var i=x(r);-1===i?(s.push(r),1===s.length&&(a=r.capture,O=S(),"function"==typeof globalThis.addEventListener&&globalThis.addEventListener("resize",C,a)),L(S())):s[i].once&&!r.once&&(s[i].once=!1);var a;void 0!==r.signal&&(r.signal.aborted?A(r):r.signal.addEventListener("abort",(function e(){void 0!==r.signal&&r.signal.removeEventListener("abort",e),A(r)})));return function(){A(r)}}},Constants:{},Errors:{}}}));
@@ -0,0 +1,2 @@
1
+ declare const PluginNotExtendedError: ErrorConstructor;
2
+ export { PluginNotExtendedError, };
@@ -0,0 +1,12 @@
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 MessengerType {
9
+ Telephone = "telephone",
10
+ Message = "message",
11
+ Mail = "mail"
12
+ }
@@ -0,0 +1,13 @@
1
+ import { AppInstance } 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
+ }
12
+ declare const App: AppInstance;
13
+ export default App;
@@ -0,0 +1,2 @@
1
+ declare const URLOpenError: ErrorConstructor;
2
+ export { URLOpenError, };
@@ -0,0 +1,12 @@
1
+ import type { NativePlugin } from "../../types";
2
+ import type { AppInstance } from "./types";
3
+ import { AppOpenState, MessengerType } from "./constants";
4
+ import { URLOpenError } from "./errors/url-open-error";
5
+ export * from "./types";
6
+ declare const NativeAppPlugin: NativePlugin<'App', AppInstance, {
7
+ AppOpenState: typeof AppOpenState;
8
+ Messengers: typeof MessengerType;
9
+ }, {
10
+ URLOpenError: typeof URLOpenError;
11
+ }>;
12
+ export default NativeAppPlugin;
@@ -0,0 +1,54 @@
1
+ import { AppOpenState, MessengerType } from "../constants";
2
+ import { OS } from "../../platform/constants";
3
+ export declare interface AppInfo {
4
+ scheme?: URLCandidate;
5
+ fallback?: URLCandidateOrFallback;
6
+ timeout?: number;
7
+ allowAppStore?: boolean;
8
+ allowWebStore?: boolean;
9
+ }
10
+ export declare interface AndroidAppInfo extends AppInfo {
11
+ packageName?: string;
12
+ intent?: URLCandidate;
13
+ }
14
+ export declare interface IOSAppInfo extends MacOSAppInfo {
15
+ universal?: URLCandidate;
16
+ }
17
+ export declare interface WindowsAppInfo extends AppInfo {
18
+ productId?: string;
19
+ }
20
+ export declare interface MacOSAppInfo extends AppInfo {
21
+ bundleId?: string;
22
+ trackId?: string;
23
+ }
24
+ export declare interface StoreInfo {
25
+ appStore?: string;
26
+ webStore?: string;
27
+ }
28
+ export declare interface AppOpenOptions {
29
+ [OS.Android]?: AndroidAppInfo;
30
+ ['android']?: AndroidAppInfo;
31
+ [OS.iOS]?: IOSAppInfo;
32
+ ['ios']?: IOSAppInfo;
33
+ [OS.Windows]?: WindowsAppInfo;
34
+ ['windows']?: WindowsAppInfo;
35
+ [OS.MacOS]?: MacOSAppInfo;
36
+ ['mac']?: MacOSAppInfo;
37
+ }
38
+ export declare type URLCandidate = URL | string;
39
+ export declare type URLCandidateOrFallback = URLCandidate | (() => any);
40
+ export declare type URLStringOrFallback = string | (() => any);
41
+ export declare type Stringifiable = string | number | boolean | HTMLElement | null | undefined;
42
+ export declare type StringifiableSequence = Stringifiable[] | NodeList | NodeListOf<Node> | HTMLCollectionBase;
43
+ export declare type MessengerOpenOptions = {
44
+ to?: Stringifiable | StringifiableSequence;
45
+ cc?: Stringifiable | StringifiableSequence;
46
+ bcc?: Stringifiable | StringifiableSequence;
47
+ subject?: Stringifiable;
48
+ body?: Stringifiable;
49
+ } | HTMLFormElement | FormData;
50
+ export declare type Messenger = Record<MessengerType, (options: MessengerOpenOptions) => Promise<void>>;
51
+ export declare interface AppInstance {
52
+ open(options: AppOpenOptions): Promise<AppOpenState>;
53
+ messenger: Messenger;
54
+ }
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,11 @@
1
+ import { ListenerEntry } from "../../../types/listener-entry";
2
+ export declare enum Appearances {
3
+ Unknown = "unknown",
4
+ Light = "light",
5
+ Dark = "dark"
6
+ }
7
+ export declare const MEDIA_QUERY_LIST: MediaQueryList;
8
+ export declare const SUPPORT_PREFERS_COLOR_SCHEME: boolean;
9
+ export declare const CONTEXT: CanvasRenderingContext2D | null;
10
+ export declare const SVG_PIXEL_DATA_URL: string;
11
+ export declare const ENTRIES: ListenerEntry<Appearances>[];
@@ -0,0 +1,3 @@
1
+ import { AppearanceInstance } from "../types";
2
+ declare const Appearance: AppearanceInstance;
3
+ export default Appearance;
@@ -0,0 +1,8 @@
1
+ import { NativePlugin } from "../../types";
2
+ import { AppearanceInstance } from "./types";
3
+ import { Appearances } from "./constants";
4
+ export * from "./types";
5
+ declare const NativeAppearancePlugin: NativePlugin<'Appearance', AppearanceInstance, {
6
+ Appearances: typeof Appearances;
7
+ }, {}>;
8
+ export default NativeAppearancePlugin;
@@ -0,0 +1,6 @@
1
+ import { Appearances } from "../constants";
2
+ export declare interface AppearanceInstance {
3
+ get value(): Appearances;
4
+ set value(appearances: Exclude<Appearances, Appearances.Unknown>);
5
+ onchange(listener: (appearance?: Appearances) => any, options?: boolean | AddEventListenerOptions): () => void;
6
+ }
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ import { ClipboardInstance } from "../types";
2
+ declare const Clipboard: ClipboardInstance;
3
+ export default Clipboard;
@@ -0,0 +1,5 @@
1
+ import type { NativePlugin } from "../../types";
2
+ import type { ClipboardInstance } from "./types";
3
+ export * from "./types";
4
+ declare const NativeClipboardPlugin: NativePlugin<'Clipboard', ClipboardInstance, {}, {}>;
5
+ export default NativeClipboardPlugin;
@@ -0,0 +1,13 @@
1
+ import { Appearances } from "../constants";
2
+ import { NativeModule } from "../../../types";
3
+ export declare interface ListenerEntry {
4
+ fn: (appearance: Appearances) => any;
5
+ capture: boolean;
6
+ once: boolean;
7
+ signal?: AbortSignal;
8
+ }
9
+ export declare interface AppearanceInstance extends NativeModule {
10
+ get value(): Appearances;
11
+ set value(appearances: Exclude<Appearances, Appearances.Unknown>);
12
+ onchange(listener: (appearance?: Appearances) => any, options?: boolean | AddEventListenerOptions): () => void;
13
+ }
@@ -0,0 +1,4 @@
1
+ export declare interface ClipboardInstance {
2
+ copy(item: any): Promise<boolean>;
3
+ paste(): Promise<string>;
4
+ }
@@ -0,0 +1,11 @@
1
+ export * from "./clipboard";
2
+ import type { ClipboardInstance } from "./clipboard";
3
+ declare module 'native-fn' {
4
+ interface NativePlugins {
5
+ Clipboard: ClipboardInstance;
6
+ }
7
+ interface NativeConstants {
8
+ }
9
+ interface NativeErrors {
10
+ }
11
+ }
@@ -0,0 +1,3 @@
1
+ import { Dimensions } from "../types";
2
+ import { ListenerEntry } from "../../../types/listener-entry";
3
+ export declare const ENTRIES: ListenerEntry<Dimensions>[];
@@ -0,0 +1,3 @@
1
+ import { DimensionInstance } from "../types";
2
+ declare const Dimension: DimensionInstance;
3
+ export default Dimension;
@@ -0,0 +1,4 @@
1
+ import { NativePlugin } from "../../types";
2
+ import { DimensionInstance } from "./types";
3
+ declare const NativeDimensionPlugin: NativePlugin<'Dimension', DimensionInstance, {}, {}>;
4
+ export default NativeDimensionPlugin;
@@ -0,0 +1,11 @@
1
+ export declare interface DimensionInstance {
2
+ get value(): Dimension;
3
+ onchange: any;
4
+ }
5
+ export declare interface Dimension {
6
+ outerWidth: number;
7
+ outerHeight: number;
8
+ innerWidth: number;
9
+ innerHeight: number;
10
+ scale: number;
11
+ }
@@ -0,0 +1,11 @@
1
+ export declare interface DimensionInstance {
2
+ get value(): Dimensions;
3
+ onchange: any;
4
+ }
5
+ export declare interface Dimensions {
6
+ outerWidth: number;
7
+ outerHeight: number;
8
+ innerWidth: number;
9
+ innerHeight: number;
10
+ scale: number;
11
+ }
@@ -0,0 +1,13 @@
1
+ import { DimensionInstance } from "./dimensions";
2
+ import Dimension from "../cores";
3
+ 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
+ }
@@ -0,0 +1,35 @@
1
+ import { FullscreenInstance } from "../types";
2
+ declare const Fullscreen: FullscreenInstance;
3
+ declare global {
4
+ interface HTMLVideoElement {
5
+ webkitEnterFullscreen?: () => void;
6
+ webkitExitFullscreen?: () => void;
7
+ webkitSupportsFullscreen?: boolean;
8
+ webkitDisplayingFullscreen?: boolean;
9
+ __fsBridged__?: boolean;
10
+ }
11
+ interface Document {
12
+ readonly fullscreenEnabled: boolean;
13
+ fullscreenElement?: Element | null;
14
+ exitFullscreen: () => Promise<void>;
15
+ readonly webkitFullscreenEnabled?: boolean;
16
+ webkitFullscreenElement?: Element | null;
17
+ webkitCurrentFullScreenElement?: Element | null;
18
+ webkitExitFullscreen?: () => Promise<void>;
19
+ webkitCancelFullScreen?: () => Promise<void>;
20
+ readonly mozFullScreenEnabled?: boolean;
21
+ mozFullScreenElement?: Element | null;
22
+ mozCancelFullScreen?: () => Promise<void>;
23
+ readonly msFullscreenEnabled?: boolean;
24
+ msFullscreenElement?: Element | null;
25
+ msExitFullscreen?: () => Promise<void>;
26
+ }
27
+ interface Element {
28
+ requestFullscreen: (options?: FullscreenOptions) => Promise<void>;
29
+ webkitRequestFullscreen?: (options?: FullscreenOptions) => Promise<void>;
30
+ webkitRequestFullScreen?: (options?: FullscreenOptions) => Promise<void>;
31
+ mozRequestFullScreen?: () => Promise<void>;
32
+ msRequestFullscreen?: () => Promise<void>;
33
+ }
34
+ }
35
+ export default Fullscreen;
@@ -0,0 +1,5 @@
1
+ import type { NativePlugin } from "../../types";
2
+ import type { FullscreenInstance } from "./types";
3
+ export * from "./types";
4
+ declare const NativeFullscreenPlugin: NativePlugin<'Fullscreen', FullscreenInstance, {}, {}>;
5
+ export default NativeFullscreenPlugin;
@@ -0,0 +1,10 @@
1
+ export declare interface FullscreenInstance {
2
+ enabled: boolean;
3
+ element: any;
4
+ isFullscreen: boolean;
5
+ request(target?: any, options?: FullscreenOptions): Promise<void>;
6
+ exit(): Promise<void>;
7
+ toggle(target?: any, options?: FullscreenOptions): Promise<void>;
8
+ onchange(handler: (event: Event) => void): () => void;
9
+ onerror(handler: (event: Event) => void): () => void;
10
+ }
@@ -0,0 +1,11 @@
1
+ export * from "./fullscreen";
2
+ import type { FullscreenInstance } from "./fullscreen";
3
+ declare module 'native-fn' {
4
+ interface NativePlugins {
5
+ Fullscreen: FullscreenInstance;
6
+ }
7
+ interface NativeConstants {
8
+ }
9
+ interface NativeErrors {
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ export declare enum OS {
2
+ Unknown = "Unknown",
3
+ Android = "Android",
4
+ iOS = "iOS",
5
+ Windows = "Windows",
6
+ MacOS = "MacOS"
7
+ }
8
+ export declare enum Devices {
9
+ Unknown = "Unknown",
10
+ Mobile = "Mobile",
11
+ Desktop = "Desktop"
12
+ }
13
+ export declare enum Engines {
14
+ Unknown = "Unknown",
15
+ EdgeHTML = "EdgeHTML",
16
+ ArkWeb = "ArkWeb",
17
+ Blink = "Blink",
18
+ Presto = "Presto",
19
+ WebKit = "WebKit",
20
+ Trident = "Trident",
21
+ NetFront = "NetFront",
22
+ KHTML = "KHTML",
23
+ Tasman = "Tasman",
24
+ Gecko = "Gecko"
25
+ }
26
+ export declare enum Browsers {
27
+ Unknown = "Unknown",
28
+ Chrome = "Chrome",
29
+ Safari = "Safari",
30
+ Edge = "Edge",
31
+ Firefox = "Firefox",
32
+ Opera = "Opera",
33
+ IE = "IE",
34
+ SamsungInternet = "SamsungInternet"
35
+ }
36
+ export declare enum CrossPlatformFramework {
37
+ Unknown = "Unknown",
38
+ ReactNative = "ReactNative",
39
+ Electron = "Electron",
40
+ Cordova = "Cordova"
41
+ }
42
+ export declare const USER_AGENT: string;
43
+ export declare const HIGH_ENTROPY_BRAND_NAME_MAP: Record<string, string>;
@@ -0,0 +1,35 @@
1
+ import { PlatformInstance } from "../types";
2
+ declare global {
3
+ var cordova: string | undefined;
4
+ var device: CordovaDevice | undefined;
5
+ interface Navigator {
6
+ userAgent?: string;
7
+ userAgentData?: UserAgentData;
8
+ language?: string;
9
+ languages?: readonly string[];
10
+ browserLanguage?: string;
11
+ systemLanguage?: string;
12
+ userLanguage?: string;
13
+ }
14
+ }
15
+ interface CordovaDevice {
16
+ platform: string;
17
+ version: string;
18
+ }
19
+ interface ModernUserAgentDataBrand {
20
+ brand: string;
21
+ version: string;
22
+ }
23
+ type UserAgentDataBrand = ModernUserAgentDataBrand | string | null | undefined;
24
+ interface UserAgentDataValues {
25
+ brands?: UserAgentDataBrand[];
26
+ fullVersionList?: UserAgentDataBrand[];
27
+ platformVersion?: string | null | undefined;
28
+ platform?: string | null | undefined;
29
+ mobile?: boolean;
30
+ }
31
+ interface UserAgentData {
32
+ getHighEntropyValues?(hints: string[]): Promise<UserAgentDataValues>;
33
+ }
34
+ declare const Platform: PlatformInstance;
35
+ export default Platform;
@@ -0,0 +1,12 @@
1
+ import type { NativePlugin } from "../../types";
2
+ import { PlatformInstance } from "./types";
3
+ import { Browsers, CrossPlatformFramework, Devices, Engines, OS } from "./constants";
4
+ export * from "./types";
5
+ declare const NativePlatformPlugin: NativePlugin<'Platform', PlatformInstance, {
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;
@@ -0,0 +1,11 @@
1
+ export * from "./platform";
2
+ import type { PlatformInstance } from "./platform";
3
+ declare module 'native-fn' {
4
+ interface NativePlugins {
5
+ Platform: PlatformInstance;
6
+ }
7
+ interface NativeConstants {
8
+ }
9
+ interface NativeErrors {
10
+ }
11
+ }
@@ -0,0 +1,27 @@
1
+ import { Browsers, CrossPlatformFramework, Devices, Engines, OS } from "../constants";
2
+ export declare type VersionResolver = undefined | string | ((string: string | undefined) => string);
3
+ export declare interface PlatformInstance {
4
+ os: NameVersionPair<OS>;
5
+ engine: NameVersionPair<Engines>;
6
+ browser: NameVersionPair<Browsers>;
7
+ device: Devices;
8
+ crossPlatformFramework: CrossPlatformFramework;
9
+ locale: Locale;
10
+ renderer: string;
11
+ userAgent: string;
12
+ readyState: 'loading' | 'complete';
13
+ isNode: boolean;
14
+ isStandalone: boolean;
15
+ isWebview: boolean;
16
+ onready(callback: (platform: PlatformInstance) => void): void;
17
+ }
18
+ export declare interface NameVersionPair<T> {
19
+ name: T;
20
+ version: string;
21
+ }
22
+ export declare interface Locale {
23
+ language: string | null;
24
+ languages: string[];
25
+ timezone: string | null;
26
+ timezoneOffset: number;
27
+ }
@@ -0,0 +1,2 @@
1
+ export declare const IS_IE_MOBILE: boolean;
2
+ export declare const IS_WINDOWS_PHONE: boolean;
@@ -0,0 +1,3 @@
1
+ import type { ThemeInstance } from "../types";
2
+ declare const Theme: ThemeInstance;
3
+ export default Theme;
@@ -0,0 +1,5 @@
1
+ import type { NativePlugin } from "../../types";
2
+ import type { ThemeInstance } from "./types";
3
+ export * from "./types";
4
+ declare const NativeThemePlugin: NativePlugin<'Theme', ThemeInstance, {}, {}>;
5
+ export default NativeThemePlugin;
@@ -0,0 +1,11 @@
1
+ export * from "./theme";
2
+ import type { ThemeInstance } from "./theme";
3
+ declare module 'native-fn' {
4
+ interface NativePlugins {
5
+ Theme: ThemeInstance;
6
+ }
7
+ interface NativeConstants {
8
+ }
9
+ interface NativeErrors {
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ export declare interface ThemeInstance {
2
+ get value(): string | undefined;
3
+ set value(color: string | undefined);
4
+ }
@@ -0,0 +1,11 @@
1
+ export declare interface EventListenerUtil {
2
+ useStd: boolean;
3
+ add<T extends EventTarget | undefined, E extends Event = Event>(target: T, eventListenerOptions: EventListenerOptions<NonNullable<T>, E>): void;
4
+ remove<T extends EventTarget | undefined, E extends Event = Event>(target: T, eventListenerOptions: EventListenerOptions<NonNullable<T>, E>): void;
5
+ withVender(target: any, type?: string): string;
6
+ }
7
+ export declare interface EventListenerOptions<T extends EventTarget = EventTarget, E extends Event = Event> {
8
+ type?: string | undefined;
9
+ callback: ((this: T, event: E) => void) | EventListenerObject | null;
10
+ options?: AddEventListenerOptions | boolean;
11
+ }
@@ -0,0 +1 @@
1
+ export * from "./native";
@@ -0,0 +1,6 @@
1
+ export declare interface ListenerEntry<T> {
2
+ fn: (appearance: T) => any;
3
+ capture: boolean;
4
+ once: boolean;
5
+ signal?: AbortSignal;
6
+ }
@@ -0,0 +1,27 @@
1
+ import { PluginNotExtendedError } from "../errors/plugin-not-extended-error";
2
+ export declare interface NativePlugins {
3
+ }
4
+ export declare interface NativeConstants extends Record<string, any> {
5
+ }
6
+ export declare interface NativeErrors extends Record<string, ErrorConstructor> {
7
+ PluginNotExtendedError: typeof PluginNotExtendedError;
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>> = {
20
+ Version: string;
21
+ Constants: AssignedConstants;
22
+ Errors: AssignedErrors;
23
+ extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
24
+ [Plugin in Key]: Module;
25
+ }, AssignedConstants & Constants, AssignedErrors & Errors>;
26
+ } & NativePlugins;
27
+ export type NativeInstance = NativeBase<NativePlugins, NativeConstants, NativeErrors>;
@@ -0,0 +1 @@
1
+ export default function assign(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export default function compareVersion(lhs: string, rhs: string): -1 | 0 | 1;
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ interface ErrorConstructor {
3
+ captureStackTrace?: (targetObject: object, constructorOpt?: Function) => void;
4
+ }
5
+ }
6
+ export default function createCustomError(name: string, Base?: ErrorConstructor): ErrorConstructor;
@@ -0,0 +1 @@
1
+ export default function createHiddenElement<K extends keyof HTMLElementTagNameMap>(tagName: K, focusable?: boolean): HTMLElementTagNameMap[K] | undefined;
@@ -0,0 +1 @@
1
+ export default function dispatchClickEvent(element: HTMLElement, view?: WindowProxy): void;
@@ -0,0 +1,3 @@
1
+ import type { EventListenerUtil } from "../types/event-listener-util";
2
+ declare const EventListenerUtils: EventListenerUtil;
3
+ export default EventListenerUtils;