@nativescript/core 8.9.0-next-01-17-2025-12834437745 → 8.9.0-next-01-22-2025-12918162303

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 (317) hide show
  1. package/accessibility/accessibility-service.d.ts +10 -0
  2. package/accessibility/font-scale.d.ts +9 -0
  3. package/accessibility/index.d.ts +37 -0
  4. package/animation-frame/animation-native.d.ts +4 -0
  5. package/animation-frame/index.d.ts +17 -3
  6. package/application/application.d.ts +194 -0
  7. package/application/index.d.ts +2 -0
  8. package/application-settings/index.d.ts +70 -0
  9. package/cli-hooks/before-checkForChanges.js +60 -0
  10. package/cli-hooks/postinstall.js +2 -0
  11. package/cli-hooks/preuninstall.js +2 -0
  12. package/color/index.d.ts +206 -0
  13. package/connectivity/index.d.ts +52 -0
  14. package/css/css-tree-parser.js +21 -17
  15. package/css/lib/parse/index.js +602 -0
  16. package/css/package.json +36 -0
  17. package/css/reworkcss.d.ts +47 -0
  18. package/css/reworkcss.js +1 -0
  19. package/css-value/package.json +23 -0
  20. package/css-value/reworkcss-value.d.ts +8 -0
  21. package/css-value/reworkcss-value.js +113 -0
  22. package/debugger/css-agent.d.ts +59 -0
  23. package/debugger/devtools-elements.d.ts +23 -5
  24. package/debugger/dom-node.d.ts +23 -20
  25. package/fetch/index.js +539 -0
  26. package/file-system/file-system-access.d.ts +441 -0
  27. package/file-system/index.d.ts +370 -95
  28. package/fps-meter/fps-native.d.ts +24 -0
  29. package/fps-meter/index.d.ts +24 -7
  30. package/global-types.d.ts +393 -0
  31. package/globals/index.d.ts +4 -19
  32. package/http/http-request/index.d.ts +3 -0
  33. package/http/index.d.ts +149 -73
  34. package/image-asset/index.d.ts +17 -0
  35. package/image-source/index.d.ts +350 -0
  36. package/index.d.ts +24 -7
  37. package/js-libs/easysax/easysax.d.ts +8 -0
  38. package/js-libs/easysax/easysax.js +782 -0
  39. package/js-libs/easysax/package.json +35 -0
  40. package/matrix/index.d.ts +32 -5
  41. package/module-name-resolver/index.d.ts +21 -13
  42. package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
  43. package/package.json +1 -1
  44. package/platform/device/index.d.ts +70 -0
  45. package/platform/index.d.ts +26 -0
  46. package/platform/screen/index.d.ts +48 -0
  47. package/platforms/android/native-api-usage.json +32 -0
  48. package/platforms/android/res/values/ids.xml +4 -0
  49. package/platforms/android/widgets-release.aar +0 -0
  50. package/platforms/android/winter_tc-release.aar +0 -0
  51. package/platforms/ios/NSCWinterTC.xcframework/Info.plist +102 -0
  52. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  53. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  54. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  55. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Info.plist +0 -0
  56. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  57. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
  58. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  59. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  60. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  61. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  62. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  63. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  64. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  65. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/NSCWinterTC +0 -0
  66. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +52 -0
  67. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCCrypto.h +79 -0
  68. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
  69. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h +21 -0
  70. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
  71. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC +0 -0
  72. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Resources/Info.plist +52 -0
  73. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC +0 -0
  74. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  75. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  76. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  77. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  78. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  79. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  80. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  81. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
  82. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  83. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
  84. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
  85. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  86. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  87. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  88. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  89. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  90. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  91. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  92. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Info.plist +0 -0
  93. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  94. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
  95. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  96. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  97. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  98. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  99. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  100. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  101. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
  102. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  103. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
  104. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
  105. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  106. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  107. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  108. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  109. package/platforms/ios/TNSWidgets.xcframework/Info.plist +102 -0
  110. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  111. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  112. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  113. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  114. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  115. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  116. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  117. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  118. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  119. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  120. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
  121. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  122. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  123. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  124. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  125. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  126. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  127. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  128. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  129. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  130. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  131. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  132. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  133. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  134. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  135. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  136. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
  137. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  138. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  139. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
  140. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  141. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +60 -0
  142. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
  143. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
  144. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
  145. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
  146. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
  147. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +25 -0
  148. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
  149. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
  150. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
  151. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
  152. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
  153. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
  154. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  155. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  156. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  157. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  158. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  159. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  160. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  161. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  162. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  163. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  164. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  165. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  166. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  167. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  168. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  169. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  170. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
  171. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  172. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  173. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  174. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
  175. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  176. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  177. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  178. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  179. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  180. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  181. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  182. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  183. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  184. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  185. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  186. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  187. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  188. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
  189. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
  190. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  191. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  192. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  193. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  194. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  195. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  196. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  197. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  198. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  199. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  200. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  201. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  202. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  203. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  204. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  205. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  206. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
  207. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  208. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  209. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  210. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
  211. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  212. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  213. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  214. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  215. package/platforms/ios/native-api-usage.json +41 -0
  216. package/platforms/ios/src/NativeScriptEmbedder.h +31 -0
  217. package/platforms/ios/src/NativeScriptEmbedder.m +43 -0
  218. package/platforms/ios/src/NativeScriptMainWindow.swift +196 -0
  219. package/platforms/ios/src/NativeScriptUtils.h +16 -0
  220. package/platforms/ios/src/NativeScriptUtils.m +137 -0
  221. package/platforms/ios/src/UIView+NativeScript.h +15 -0
  222. package/platforms/ios/src/UIView+NativeScript.m +148 -0
  223. package/platforms/ios/src/module.modulemap +14 -0
  224. package/platforms/ios/typings/objc!MaterialComponents.d.ts +808 -0
  225. package/platforms/ios/typings/objc!NativeScriptUtils.d.ts +18 -0
  226. package/profiling/index.d.ts +153 -26
  227. package/references.d.ts +10 -0
  228. package/text/formatted-string.d.ts +1 -1
  229. package/text/index.d.ts +36 -0
  230. package/text/span.d.ts +1 -1
  231. package/timer/index.d.ts +27 -0
  232. package/trace/index.d.ts +131 -105
  233. package/ui/action-bar/index.d.ts +304 -0
  234. package/ui/activity-indicator/index.d.ts +25 -0
  235. package/ui/animation/index.d.ts +139 -0
  236. package/ui/animation/keyframe-animation.d.ts +118 -67
  237. package/ui/builder/binding-builder.d.ts +15 -12
  238. package/ui/builder/index.d.ts +69 -27
  239. package/ui/button/index.d.ts +50 -0
  240. package/ui/content-view/index.d.ts +11 -21
  241. package/ui/core/control-state-change/index.d.ts +17 -0
  242. package/ui/core/view/index.d.ts +1216 -0
  243. package/ui/core/view/view-helper/index.d.ts +76 -0
  244. package/ui/core/weak-event-listener/index.d.ts +18 -2
  245. package/ui/date-picker/index.d.ts +95 -0
  246. package/ui/dialogs/index.d.ts +311 -0
  247. package/ui/editable-text-base/index.d.ts +142 -0
  248. package/ui/embedding/index.d.ts +10 -0
  249. package/ui/frame/fragment.d.ts +5 -0
  250. package/ui/frame/fragment.transitions.d.ts +43 -0
  251. package/ui/frame/frame-common.d.ts +1 -0
  252. package/ui/frame/frame-common.js +6 -0
  253. package/ui/frame/frame-common.js.map +1 -1
  254. package/ui/frame/index.android.d.ts +1 -0
  255. package/ui/frame/index.android.js +12 -15
  256. package/ui/frame/index.android.js.map +1 -1
  257. package/ui/frame/index.d.ts +590 -0
  258. package/ui/frame/index.ios.js +13 -0
  259. package/ui/frame/index.ios.js.map +1 -1
  260. package/ui/frame/transition-definitions.android.d.ts +54 -0
  261. package/ui/gestures/index.d.ts +59 -0
  262. package/ui/html-view/index.d.ts +41 -0
  263. package/ui/image/index.d.ts +119 -0
  264. package/ui/image/symbol-effects.d.ts +13 -0
  265. package/ui/image-cache/index.d.ts +147 -0
  266. package/ui/label/index.d.ts +25 -0
  267. package/ui/layouts/absolute-layout/index.d.ts +42 -0
  268. package/ui/layouts/dock-layout/index.d.ts +39 -0
  269. package/ui/layouts/flexbox-layout/index.d.ts +98 -0
  270. package/ui/layouts/grid-layout/index.d.ts +201 -0
  271. package/ui/layouts/index.d.ts +1 -2
  272. package/ui/layouts/layout-base.d.ts +119 -0
  273. package/ui/layouts/root-layout/index.d.ts +48 -0
  274. package/ui/layouts/stack-layout/index.d.ts +22 -0
  275. package/ui/layouts/wrap-layout/index.d.ts +51 -0
  276. package/ui/list-picker/index.d.ts +43 -0
  277. package/ui/list-view/index.d.ts +232 -0
  278. package/ui/page/index.d.ts +241 -0
  279. package/ui/placeholder/index.d.ts +46 -8
  280. package/ui/progress/index.d.ts +50 -0
  281. package/ui/scroll-view/index.d.ts +99 -0
  282. package/ui/search-bar/index.d.ts +103 -0
  283. package/ui/segmented-bar/index.d.ts +122 -0
  284. package/ui/slider/index.d.ts +99 -0
  285. package/ui/styling/background.d.ts +95 -0
  286. package/ui/styling/converters.d.ts +2 -2
  287. package/ui/styling/font.d.ts +62 -0
  288. package/ui/styling/style-properties.d.ts +101 -81
  289. package/ui/styling/style-scope.d.ts +48 -79
  290. package/ui/switch/index.d.ts +46 -0
  291. package/ui/tab-view/index.d.ts +213 -0
  292. package/ui/text-base/formatted-string.d.ts +97 -36
  293. package/ui/text-base/index.d.ts +208 -0
  294. package/ui/text-base/span.d.ts +111 -36
  295. package/ui/text-field/index.d.ts +54 -0
  296. package/ui/text-view/index.d.ts +35 -0
  297. package/ui/time-picker/index.d.ts +107 -0
  298. package/ui/transition/fade-transition.d.ts +3 -0
  299. package/ui/transition/flip-transition.d.ts +5 -0
  300. package/ui/transition/index.d.ts +59 -0
  301. package/ui/transition/modal-transition.d.ts +2 -0
  302. package/ui/transition/page-transition.d.ts +4 -0
  303. package/ui/transition/shared-transition-helper.d.ts +14 -0
  304. package/ui/transition/slide-transition.d.ts +5 -0
  305. package/ui/utils.d.ts +44 -0
  306. package/ui/web-view/index.d.ts +142 -0
  307. package/utils/constants.d.ts +1 -0
  308. package/utils/debug.d.ts +61 -17
  309. package/utils/index.d.ts +183 -0
  310. package/utils/layout-helper/index.d.ts +82 -0
  311. package/utils/lazy.d.ts +5 -0
  312. package/utils/macrotask-scheduler.d.ts +5 -1
  313. package/utils/mainthread-helper.d.ts +16 -0
  314. package/utils/native-helper.d.ts +280 -0
  315. package/utils/types.d.ts +115 -23
  316. package/utils/typescript-utils.d.ts +6 -0
  317. package/xml/index.d.ts +105 -44
@@ -0,0 +1,393 @@
1
+ interface ModuleResolver {
2
+ /**
3
+ * A function used to resolve the exports for a module.
4
+ * @param uri The name of the module to be resolved.
5
+ */
6
+ (uri: string): any;
7
+ }
8
+
9
+ /**
10
+ * An extended JavaScript Error which will have the nativeException property initialized in case the error is caused by executing platform-specific code.
11
+ */
12
+ declare interface NativeScriptError extends Error {
13
+ /**
14
+ * Represents the native error object.
15
+ */
16
+ nativeException?: any;
17
+ /**
18
+ * The native stack trace.
19
+ */
20
+ stackTrace?: string;
21
+ /**
22
+ * Javascript portion of stack trace.
23
+ */
24
+ stack?: string;
25
+ }
26
+
27
+ //Augment the NodeJS global type with our own extensions
28
+ declare module globalThis {
29
+ var NativeScriptHasInitGlobal: boolean;
30
+ var NativeScriptGlobals: {
31
+ /**
32
+ * Global framework event handling
33
+ */
34
+ events: {
35
+ [Key in keyof import('data/observable').Observable]: import('data/observable').Observable[Key];
36
+ };
37
+ launched: boolean;
38
+ // used by various classes to setup callbacks to wire up global app event handling when the app instance is ready
39
+ appEventWiring: Array<any>;
40
+ // determines if the app instance is ready upon bootstrap
41
+ appInstanceReady: boolean;
42
+
43
+ /**
44
+ * Ability for classes to initialize app event handling early even before the app instance is ready during boot cycle avoiding boot race conditions
45
+ * @param callback wire up any global event handling inside the callback
46
+ */
47
+ addEventWiring(callback: () => void): void;
48
+ };
49
+ // var android: any;
50
+ function require(id: string): any;
51
+
52
+ function moduleMerge(sourceExports: any, destExports: any): void;
53
+
54
+ function registerModule(name: string, loader: (name: string) => any): void;
55
+ /**
56
+ * Register all modules from a webpack context.
57
+ * The context is one created using the following webpack utility:
58
+ * https://webpack.js.org/guides/dependency-management/#requirecontext
59
+ *
60
+ * The extension map is optional, modules in the webpack context will have their original file extension (e.g. may be ".ts" or ".scss" etc.),
61
+ * while the built-in module builders in {N} will look for ".js", ".css" or ".xml" files. Adding a map such as:
62
+ * ```
63
+ * { ".ts": ".js" }
64
+ * ```
65
+ * Will resolve lookups for .js to the .ts file.
66
+ * By default scss and ts files are mapped.
67
+ */
68
+ function registerWebpackModules(context: { keys(): string[]; (key: string): any }, extensionMap?: { [originalFileExtension: string]: string });
69
+
70
+ /**
71
+ * The NativeScript XML builder, style-scope, application modules use various resources such as:
72
+ * app.css, page.xml files and modules during the application life-cycle.
73
+ * The moduleResolvers can be used to provide additional mechanisms to locate such resources.
74
+ * For example:
75
+ * ```
76
+ * global.moduleResolvers.unshift(uri => uri === "main-page" ? require("main-page") : null);
77
+ * ```
78
+ * More advanced scenarios will allow for specific bundlers to integrate their module resolving mechanisms.
79
+ * When adding resolvers at the start of the array, avoid throwing and return null instead so subsequent resolvers may try to resolve the resource.
80
+ * By default the only member of the array is global.require, as last resort - if it fails to find a module it will throw.
81
+ */
82
+ var moduleResolvers: ModuleResolver[];
83
+
84
+ /**
85
+ *
86
+ * @param name Name of the module to be loaded
87
+ * @param loadForUI Is this UI module is being loaded for UI from @nativescript/core/ui/builder.
88
+ * Xml, css/scss and js/ts modules for pages and custom-components should load with loadForUI=true.
89
+ * Passing "true" will enable the HMR mechanics this module. Default value is false.
90
+ */
91
+ function loadModule(name: string, loadForUI?: boolean): any;
92
+
93
+ /**
94
+ * Checks if the module has been registered with `registerModule` or in `registerWebpackModules`
95
+ * @param name Name of the module
96
+ */
97
+ function moduleExists(name: string): boolean;
98
+
99
+ function getRegisteredModules(): string[];
100
+
101
+ function _unregisterModule(name: string): void;
102
+
103
+ function _isModuleLoadedForUI(moduleName: string): boolean;
104
+
105
+ var onGlobalLayoutListener: any;
106
+ function zonedCallback<T = Function>(callback: T): T;
107
+ var Reflect: any;
108
+ function Deprecated(target: Object, key?: string | symbol, descriptor?: any): any;
109
+ function Experimental(target: Object, key?: string | symbol, descriptor?: any): any;
110
+
111
+ var __native: any;
112
+ var __inspector: any;
113
+ var __extends: any;
114
+ var __onLiveSync: (context?: { type: string; path: string }) => void;
115
+ var __onLiveSyncCore: (context?: { type: string; path: string }) => void;
116
+ var __onUncaughtError: (error: NativeScriptError) => void;
117
+ var __onDiscardedError: (error: NativeScriptError) => void;
118
+ var __snapshot: boolean;
119
+ var TNS_WEBPACK: boolean;
120
+ var isIOS: boolean;
121
+ var isAndroid: boolean;
122
+ var isVisionOS: boolean;
123
+ var isDisplayedEventFired: boolean;
124
+ var autoLoadPolyfills: boolean;
125
+ var __requireOverride: (name: string, dir: string) => any;
126
+
127
+ // used to get the rootlayout instance to add/remove childviews
128
+ var rootLayout: any;
129
+ }
130
+ declare const __DEV__: boolean;
131
+ declare const __CSS_PARSER__: string;
132
+ declare const __NS_WEBPACK__: boolean;
133
+ declare const __UI_USE_EXTERNAL_RENDERER__: boolean;
134
+ declare const __UI_USE_XML_PARSER__: boolean;
135
+ declare const __ANDROID__: boolean;
136
+ declare const __IOS__: boolean;
137
+ declare const __VISIONOS__: boolean;
138
+ declare const __APPLE__: boolean;
139
+
140
+ declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
141
+ declare function clearTimeout(timeoutId: number): void;
142
+ declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
143
+ declare function clearInterval(intervalId: number): void;
144
+
145
+ declare type ModuleType = 'markup' | 'script' | 'style';
146
+
147
+ /**
148
+ * Define a module context for Hot Module Replacement.
149
+ */
150
+ interface ModuleContext {
151
+ /**
152
+ * The type of the module for replacement.
153
+ */
154
+ type: ModuleType;
155
+
156
+ /**
157
+ * The path of the module for replacement.
158
+ */
159
+ path: string;
160
+ }
161
+
162
+ interface NodeModule {
163
+ exports: any;
164
+ id: string;
165
+ filename: string;
166
+ }
167
+
168
+ declare enum RequestContext {
169
+ 'audio',
170
+ 'beacon',
171
+ 'cspreport',
172
+ 'download',
173
+ 'embed',
174
+ 'eventsource',
175
+ 'favicon',
176
+ 'fetch',
177
+ 'font',
178
+ 'form',
179
+ 'frame',
180
+ 'hyperlink',
181
+ 'iframe',
182
+ 'image',
183
+ 'imageset',
184
+ 'import',
185
+ 'internal',
186
+ 'location',
187
+ 'manifest',
188
+ 'object',
189
+ 'ping',
190
+ 'plugin',
191
+ 'prefetch',
192
+ 'script',
193
+ 'serviceworker',
194
+ 'sharedworker',
195
+ 'subresource',
196
+ 'style',
197
+ 'track',
198
+ 'video',
199
+ 'worker',
200
+ 'xmlhttprequest',
201
+ 'xslt',
202
+ }
203
+
204
+ // Extend the lib.dom.d.ts Body interface with `formData`
205
+ // interface Body {
206
+ // formData(): Promise<FormData>;
207
+ // }
208
+
209
+ declare type HeaderInit = Headers | Array<string>;
210
+
211
+ declare function fetch(url: string, init?: RequestInit): Promise<Response>;
212
+
213
+ // declare var console: Console;
214
+ declare var require: NodeRequire;
215
+
216
+ // Extend NodeRequire with the webpack's require context extension.
217
+ interface RequireContext {
218
+ keys(): string[];
219
+ (id: string): any;
220
+ <T>(id: string): T;
221
+ resolve(id: string): string;
222
+ }
223
+
224
+ interface WeakRef<T extends object> {
225
+ /**
226
+ * @deprecated Use deref instead with 8.5+
227
+ */
228
+ get(): T;
229
+
230
+ /**
231
+ * @deprecated You no longer need to make this call and can be safely removed.
232
+ */
233
+ clear(): void;
234
+ }
235
+
236
+ declare var __dirname: string;
237
+ declare var __filename: string;
238
+
239
+ declare var module: NodeModule;
240
+ // Same as module.exports
241
+ declare var exports: any;
242
+
243
+ // Global functions
244
+ declare function Deprecated(target: Object, key?: string | symbol, value?: any): void;
245
+ declare function Experimental(target: Object, key?: string | symbol, value?: any): void;
246
+
247
+ declare interface NativeClassOptions {
248
+ nativeClassName?: string; // for @JavaProxy and
249
+ protocols?: any[];
250
+ interfaces?: any[];
251
+ }
252
+
253
+ /**
254
+ * Decorates class that extends a native class(iOS or Android)
255
+ */
256
+ declare function NativeClass<T extends { new (...args: any[]): {} }>(constructor: T);
257
+ declare function NativeClass<T extends { new (...args: any[]): {} }>(options?: NativeClassOptions);
258
+
259
+ /**
260
+ * Decorates class that implements native Java interfaces.
261
+ * @param interfaces Implemented interfaces.
262
+ */
263
+ declare function Interfaces(...interfaces): ClassDecorator;
264
+
265
+ /**
266
+ * Important: Not applicable to Objective-C classes (iOS platform)
267
+ * Decorates class that extends native Java class
268
+ * @param interfaces An array of fully-classified Java interface names that the class must implement.
269
+ */
270
+ declare function Interfaces(interfaces: any[]): ClassDecorator;
271
+
272
+ /**
273
+ * Decorates class that extends native Java class
274
+ * @param nativeClassName The name of the newly generated class. Must be unique in the application.
275
+ */
276
+ declare function JavaProxy(nativeClassName: string): ClassDecorator;
277
+
278
+ /**
279
+ * Important: Not applicable to Java classes (Android platform)
280
+ * Decorates a class that implements native Objective-C protocols.
281
+ * @param protocols An array of fully-classified Objective-C protocol names that the class must implement.
282
+ */
283
+ declare function ObjCClass(...protocols: any[]): ClassDecorator;
284
+
285
+ /**
286
+ * Important: Not applicable to Java methods (Android platform)
287
+ * Decorates method that it is exposed in Objective-C.
288
+ * The JS name of the method will be used as the name of the native method
289
+ * and the return type will be set to `interop.types.void`
290
+ */
291
+ declare function ObjCMethod(): MethodDecorator;
292
+
293
+ /**
294
+ * Important: Not applicable to Java methods (Android platform)
295
+ * Decorates method that it is exposed in Objective-C.
296
+ * @param name The name of the method to be exposed.
297
+ * The native return type will be set to `interop.types.void`.
298
+ */
299
+ declare function ObjCMethod(name: string): MethodDecorator;
300
+
301
+ /**
302
+ * Important: Not applicable to Java methods (Android platform)
303
+ * Decorates a method to be exposed in Objective-C.
304
+ * The JS name of the method will be used for the name of the native method.
305
+ * @param returnType The native type of the result.
306
+ */
307
+ declare function ObjCMethod(returnType: any): MethodDecorator;
308
+
309
+ /**
310
+ * Important: Not applicable to Java methods (Android platform)
311
+ * Decorates a method to be exposed in Objective-C.
312
+ * @param name The name of the method to be exposed. Can be different than the JS function name
313
+ * and can follow Objective-C colon syntax (for example `tableView:cellForRowAtIndexPath:`).
314
+ * @param returnType The native type of the result.
315
+ */
316
+ declare function ObjCMethod(name: string, returnType: any): MethodDecorator;
317
+
318
+ /**
319
+ * Important: Not applicable to Java classes or methods (Android platform)
320
+ * This is a shorthand decorator that can be used to decorate either a method or a class
321
+ * to be exposed to Objective-C.
322
+ * @param params Parameters to send to the ObjCClass or ObjCMethod decorators.
323
+ */
324
+ declare function ObjC(...params: any[]): ClassDecorator & MethodDecorator;
325
+
326
+ /**
327
+ * Important: Not applicable to Java method parameters (Android platform)
328
+ * Decorates a parameter in an Objective-C exposed method with its native type.
329
+ * @param type The native type for the parameter.
330
+ */
331
+ declare function ObjCParam(type: any): ParameterDecorator;
332
+
333
+ declare function Log(data: any): void;
334
+ declare function log(data: any): void;
335
+ declare function fail(data: any): void;
336
+
337
+ /**
338
+ * Calls a function after a specified delay.
339
+ * @param callback The function to be called.
340
+ * @param milliseconds The time to wait before the function is called. Defaults to 0.
341
+ */
342
+ // declare function setTimeout(callback: Function, milliseconds?: number): number;
343
+
344
+ /**
345
+ * Clears the delay set by a call to the setTimeout function.
346
+ * @param id The identifier returned by the previously called setTimeout() method.
347
+ */
348
+ // declare function clearTimeout(id: number): void;
349
+
350
+ /**
351
+ * Calls a function repeatedly with a delay between each call.
352
+ * @param callback The function to be called.
353
+ * @param milliseconds The delay between each function call.
354
+ */
355
+ // declare function setInterval(callback: Function, milliseconds?: number): number;
356
+
357
+ /**
358
+ * Clears repeated function which was set up by calling setInterval().
359
+ * @param id The identifier returned by the setInterval() method.
360
+ */
361
+ // declare function clearInterval(id: number): void;
362
+
363
+ declare function zonedCallback<T = Function>(callback: T): T;
364
+
365
+ /**
366
+ * Create a Java long from a number
367
+ */
368
+ declare function long(value: number): any;
369
+
370
+ /**
371
+ * Create a Java byte from a number
372
+ */
373
+ declare function byte(value: number): any;
374
+
375
+ /**
376
+ * Create a Java short from a number
377
+ */
378
+ declare function short(value: number): any;
379
+
380
+ /**
381
+ * Create a Java double from a number
382
+ */
383
+ declare function double(value: number): any;
384
+
385
+ /**
386
+ * Create a Java float from a number
387
+ */
388
+ declare function float(value: number): any;
389
+
390
+ /**
391
+ * Create a Java char from a string
392
+ */
393
+ declare function char(value: string): any;
@@ -1,22 +1,7 @@
1
1
  import { Observable } from '../data/observable';
2
- /**
3
- * Manages internal framework global state
4
- */
5
2
  export declare class NativeScriptGlobalState {
6
- events: Observable;
7
- launched: boolean;
8
- appEventWiring: Array<any>;
9
- private _appInstanceReady;
10
- private _setLaunched;
11
- constructor();
12
- get appInstanceReady(): boolean;
13
- set appInstanceReady(value: boolean);
14
- /**
15
- * Ability for classes to initialize app event handling early even before the app instance is ready during boot cycle avoiding boot race conditions
16
- * @param callback wire up any global event handling inside the callback
17
- */
18
- addEventWiring(callback: () => void): void;
19
- private _setLaunchedFn;
3
+ events: Observable;
4
+ launched: boolean;
20
5
  }
21
- export declare function installPolyfills(moduleName: string, exportNames: string[]): void;
22
- export declare function initGlobal(): void;
6
+ export function installPolyfills(moduleName: string, exportNames: string[]): void;
7
+ export function initGlobal(): void;
@@ -0,0 +1,3 @@
1
+ import { HttpRequestOptions, HttpResponse, Headers } from '..';
2
+ export const request: (options: HttpRequestOptions) => Promise<HttpResponse>;
3
+ export function addHeader(headers: Headers, key: string, value: string): void;
package/http/index.d.ts CHANGED
@@ -1,90 +1,166 @@
1
- import { ImageSource } from '../image-source';
1
+ import { ImageSource } from '../image-source';
2
2
  import { File } from '../file-system';
3
- export * from './http-request';
3
+
4
+ /**
5
+ * Downloads the content from the specified URL as a string.
6
+ * @param url The URL to request from.
7
+ */
8
+ export function getString(url: string): Promise<string>;
9
+
10
+ /**
11
+ * Downloads the content from the specified URL as a string.
12
+ * @param options An object that specifies various request options.
13
+ */
14
+ export function getString(options: HttpRequestOptions): Promise<string>;
15
+
16
+ /**
17
+ * Downloads the content from the specified URL as a string and returns its JSON.parse representation.
18
+ * @param url The URL to request from.
19
+ */
20
+ export function getJSON<T>(url: string): Promise<T>;
21
+
22
+ /**
23
+ * Downloads the content from the specified URL as a string and returns its JSON.parse representation.
24
+ * @param options An object that specifies various request options.
25
+ */
26
+ export function getJSON<T>(options: HttpRequestOptions): Promise<T>;
27
+
28
+ /**
29
+ * Downloads the content from the specified URL and attempts to decode it as an image.
30
+ * @param url The URL to request from.
31
+ */
32
+ export function getImage(url: string): Promise<ImageSource>;
33
+
34
+ /**
35
+ * Downloads the content from the specified URL and attempts to decode it as an image.
36
+ * @param options An object that specifies various request options.
37
+ */
38
+ export function getImage(options: HttpRequestOptions): Promise<ImageSource>;
39
+
40
+ /**
41
+ * Downloads the content from the specified URL and attempts to save it as file.
42
+ * @param url The URL to request from.
43
+ * @param destinationFilePath Optional. The downloaded file path.
44
+ */
45
+ export function getFile(url: string, destinationFilePath?: string): Promise<File>;
46
+
47
+ /**
48
+ * Downloads the content from the specified URL and attempts to save it as file.
49
+ * @param options An object that specifies various request options.
50
+ * @param destinationFilePath Optional. The downloaded file path.
51
+ */
52
+ export function getFile(options: HttpRequestOptions, destinationFilePath?: string): Promise<File>;
53
+
54
+ /**
55
+ * Downloads the content from the specified URL as binary and returns an ArrayBuffer.
56
+ * @param url The URL to request from.
57
+ */
58
+ export function getBinary(url: string): Promise<ArrayBuffer>;
59
+
60
+ /**
61
+ * Downloads the content from the specified URL as binary and returns an ArrayBuffer.
62
+ * @param options An object that specifies various request options.
63
+ */
64
+ export function getBinary(options: HttpRequestOptions): Promise<ArrayBuffer>;
65
+
66
+ /**
67
+ * Makes a generic http request using the provided options and returns a HttpResponse Object.
68
+ * @param options An object that specifies various request options.
69
+ */
70
+ export function request(options: HttpRequestOptions): Promise<HttpResponse>;
71
+
4
72
  /**
5
73
  * Provides options for the http requests.
6
74
  */
7
75
  export interface HttpRequestOptions {
8
- /**
9
- * Gets or sets the request url.
10
- */
11
- url: string;
12
- /**
13
- * Gets or sets the request method.
14
- */
15
- method: string;
16
- /**
17
- * Gets or sets the request headers in JSON format.
18
- */
19
- headers?: any;
20
- /**
21
- * Gets or sets the request body.
22
- */
23
- content?: string | FormData | ArrayBuffer;
24
- /**
25
- * Gets or sets the request timeout in milliseconds.
26
- */
27
- timeout?: number;
28
- /**
29
- * Gets or sets whether to *not* follow server's redirection responses.
30
- */
31
- dontFollowRedirects?: boolean;
76
+ /**
77
+ * Gets or sets the request url.
78
+ */
79
+ url: string;
80
+
81
+ /**
82
+ * Gets or sets the request method.
83
+ */
84
+ method: string;
85
+
86
+ /**
87
+ * Gets or sets the request headers in JSON format.
88
+ */
89
+ headers?: any;
90
+
91
+ /**
92
+ * Gets or sets the request body.
93
+ */
94
+ content?: string | FormData | ArrayBuffer;
95
+
96
+ /**
97
+ * Gets or sets the request timeout in milliseconds.
98
+ */
99
+ timeout?: number;
100
+
101
+ /**
102
+ * Gets or sets wether to *not* follow server's redirection responses.
103
+ */
104
+ dontFollowRedirects?: boolean;
32
105
  }
106
+
33
107
  /**
34
108
  * Encapsulates HTTP-response information from an HTTP-request.
35
109
  */
36
110
  export interface HttpResponse {
37
- /**
38
- * Gets the response status code.
39
- */
40
- statusCode: number;
41
- /**
42
- * Gets the response headers.
43
- */
44
- headers: Headers;
45
- /**
46
- * Gets the response content.
47
- */
48
- content?: HttpContent;
111
+ /**
112
+ * Gets the response status code.
113
+ */
114
+ statusCode: number;
115
+
116
+ /**
117
+ * Gets the response headers.
118
+ */
119
+ headers: Headers;
120
+
121
+ /**
122
+ * Gets the response content.
123
+ */
124
+ content?: HttpContent;
49
125
  }
50
- export type Headers = {
51
- [key: string]: string | string[];
52
- };
53
- export declare enum HttpResponseEncoding {
54
- UTF8 = 0,
55
- GBK = 1
126
+
127
+ export type Headers = { [key: string]: string | string[] };
128
+
129
+ export enum HttpResponseEncoding {
130
+ UTF8,
131
+ GBK,
56
132
  }
57
133
  /**
58
134
  * Encapsulates the content of an HttpResponse.
59
135
  */
60
136
  export interface HttpContent {
61
- /**
62
- * Gets the response body as raw data.
63
- */
64
- raw: any;
65
- /**
66
- * Gets the response body as ArrayBuffer
67
- */
68
- toArrayBuffer: () => ArrayBuffer;
69
- /**
70
- * Gets the response body as string.
71
- */
72
- toString: (encoding?: HttpResponseEncoding) => string;
73
- /**
74
- * Gets the response body as JSON object.
75
- */
76
- toJSON: (encoding?: HttpResponseEncoding) => any;
77
- /**
78
- * Gets the response body as ImageSource.
79
- */
80
- toImage: () => Promise<ImageSource>;
81
- /**
82
- * Gets the response body as file.
83
- */
84
- toFile: (destinationFilePath?: string) => File;
137
+ /**
138
+ * Gets the response body as raw data.
139
+ */
140
+ raw: any;
141
+
142
+ /**
143
+ * Gets the response body as ArrayBuffer
144
+ */
145
+ toArrayBuffer: () => ArrayBuffer;
146
+
147
+ /**
148
+ * Gets the response body as string.
149
+ */
150
+ toString: (encoding?: HttpResponseEncoding) => string;
151
+
152
+ /**
153
+ * Gets the response body as JSON object.
154
+ */
155
+ toJSON: (encoding?: HttpResponseEncoding) => any;
156
+
157
+ /**
158
+ * Gets the response body as ImageSource.
159
+ */
160
+ toImage: () => Promise<ImageSource>;
161
+
162
+ /**
163
+ * Gets the response body as file.
164
+ */
165
+ toFile: (destinationFilePath?: string) => File;
85
166
  }
86
- export declare function getString(arg: any): Promise<string>;
87
- export declare function getJSON<T>(arg: any): Promise<T>;
88
- export declare function getImage(arg: any): Promise<ImageSource>;
89
- export declare function getFile(arg: any, destinationFilePath?: string): Promise<any>;
90
- export declare function getBinary(arg: any): Promise<ArrayBuffer>;
@@ -0,0 +1,17 @@
1
+ import { Observable } from '../data/observable';
2
+
3
+ export class ImageAsset extends Observable {
4
+ constructor(asset: any);
5
+ getImageAsync(callback: (image: any, error: any) => void); //UIImage for iOS and android.graphics.Bitmap for Android
6
+ ios: any; //PHAsset
7
+ nativeImage: any; //UIImage for iOS and android.graphics.Bitmap for Android
8
+ android: any;
9
+ options: ImageAssetOptions;
10
+ }
11
+
12
+ export interface ImageAssetOptions {
13
+ width?: number;
14
+ height?: number;
15
+ keepAspectRatio?: boolean;
16
+ autoScaleFactor?: boolean;
17
+ }