@triniwiz/nativescript-masonkit 1.0.0-alpha.6 → 1.0.0-alpha.8

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 (343) hide show
  1. package/common.d.ts +53 -28
  2. package/common.js +355 -704
  3. package/common.js.map +1 -1
  4. package/helpers.d.ts +98 -98
  5. package/helpers.js +395 -2945
  6. package/helpers.js.map +1 -1
  7. package/index.android.d.ts +28 -24
  8. package/index.android.js +109 -82
  9. package/index.android.js.map +1 -1
  10. package/index.d.ts +56 -19
  11. package/index.ios.d.ts +42 -24
  12. package/index.ios.js +279 -121
  13. package/index.ios.js.map +1 -1
  14. package/node.d.ts +2 -0
  15. package/node.js +3 -0
  16. package/node.js.map +1 -0
  17. package/package.json +3 -3
  18. package/platforms/android/masonkit-release.aar +0 -0
  19. package/platforms/ios/Mason.xcframework/Info.plist +4 -0
  20. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +251 -267
  21. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason.h +11 -0
  22. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +213 -843
  23. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  24. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  25. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  26. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +17954 -22685
  27. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +404 -310
  28. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  29. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +404 -310
  30. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/module.modulemap +1 -1
  31. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  32. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +1937 -0
  33. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +502 -534
  34. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason.h +11 -0
  35. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +213 -843
  36. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  37. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  38. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  39. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  40. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +17954 -22685
  41. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +404 -310
  42. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  43. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +404 -310
  44. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +17954 -22685
  45. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +404 -310
  46. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  47. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +404 -310
  48. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/module.modulemap +1 -1
  49. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +33 -97
  50. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  51. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +1937 -0
  52. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +1888 -0
  53. package/platforms/ios/Podfile +1 -1
  54. package/platforms/ios/build.xcconfig +5 -1
  55. package/platforms/ios/prebuild.sh +101 -0
  56. package/{pods → src-native/pods}/NativeScript.podspec +1 -1
  57. package/style.d.ts +166 -0
  58. package/style.js +1686 -0
  59. package/style.js.map +1 -0
  60. package/platforms/ios/src/MasonV8Module.h +0 -583
  61. package/platforms/ios/src/MasonV8Module.mm +0 -1005
  62. package/platforms/ios/src/cpp/include/mason_native.h +0 -972
  63. package/platforms/ios/src/cpp/include/robin_hood.h +0 -2544
  64. package/platforms/ios/src/module.modulemap +0 -4
  65. /package/{pods → src-native/pods}/Headers/include/APIDesign.md +0 -0
  66. /package/{pods → src-native/pods}/Headers/include/DEPS +0 -0
  67. /package/{pods → src-native/pods}/Headers/include/DIR_METADATA +0 -0
  68. /package/{pods → src-native/pods}/Headers/include/OWNERS +0 -0
  69. /package/{pods → src-native/pods}/Headers/include/cppgc/DEPS +0 -0
  70. /package/{pods → src-native/pods}/Headers/include/cppgc/OWNERS +0 -0
  71. /package/{pods → src-native/pods}/Headers/include/cppgc/README.md +0 -0
  72. /package/{pods → src-native/pods}/Headers/include/cppgc/allocation.h +0 -0
  73. /package/{pods → src-native/pods}/Headers/include/cppgc/common.h +0 -0
  74. /package/{pods → src-native/pods}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
  75. /package/{pods → src-native/pods}/Headers/include/cppgc/custom-space.h +0 -0
  76. /package/{pods → src-native/pods}/Headers/include/cppgc/default-platform.h +0 -0
  77. /package/{pods → src-native/pods}/Headers/include/cppgc/ephemeron-pair.h +0 -0
  78. /package/{pods → src-native/pods}/Headers/include/cppgc/explicit-management.h +0 -0
  79. /package/{pods → src-native/pods}/Headers/include/cppgc/garbage-collected.h +0 -0
  80. /package/{pods → src-native/pods}/Headers/include/cppgc/heap-consistency.h +0 -0
  81. /package/{pods → src-native/pods}/Headers/include/cppgc/heap-state.h +0 -0
  82. /package/{pods → src-native/pods}/Headers/include/cppgc/heap-statistics.h +0 -0
  83. /package/{pods → src-native/pods}/Headers/include/cppgc/heap.h +0 -0
  84. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/api-constants.h +0 -0
  85. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
  86. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
  87. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
  88. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
  89. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/gc-info.h +0 -0
  90. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/logging.h +0 -0
  91. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/name-trait.h +0 -0
  92. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/persistent-node.h +0 -0
  93. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
  94. /package/{pods → src-native/pods}/Headers/include/cppgc/internal/write-barrier.h +0 -0
  95. /package/{pods → src-native/pods}/Headers/include/cppgc/liveness-broker.h +0 -0
  96. /package/{pods → src-native/pods}/Headers/include/cppgc/macros.h +0 -0
  97. /package/{pods → src-native/pods}/Headers/include/cppgc/member.h +0 -0
  98. /package/{pods → src-native/pods}/Headers/include/cppgc/name-provider.h +0 -0
  99. /package/{pods → src-native/pods}/Headers/include/cppgc/object-size-trait.h +0 -0
  100. /package/{pods → src-native/pods}/Headers/include/cppgc/persistent.h +0 -0
  101. /package/{pods → src-native/pods}/Headers/include/cppgc/platform.h +0 -0
  102. /package/{pods → src-native/pods}/Headers/include/cppgc/prefinalizer.h +0 -0
  103. /package/{pods → src-native/pods}/Headers/include/cppgc/process-heap-statistics.h +0 -0
  104. /package/{pods → src-native/pods}/Headers/include/cppgc/sentinel-pointer.h +0 -0
  105. /package/{pods → src-native/pods}/Headers/include/cppgc/source-location.h +0 -0
  106. /package/{pods → src-native/pods}/Headers/include/cppgc/testing.h +0 -0
  107. /package/{pods → src-native/pods}/Headers/include/cppgc/trace-trait.h +0 -0
  108. /package/{pods → src-native/pods}/Headers/include/cppgc/type-traits.h +0 -0
  109. /package/{pods → src-native/pods}/Headers/include/cppgc/visitor.h +0 -0
  110. /package/{pods → src-native/pods}/Headers/include/js_protocol-1.2.json +0 -0
  111. /package/{pods → src-native/pods}/Headers/include/js_protocol-1.3.json +0 -0
  112. /package/{pods → src-native/pods}/Headers/include/js_protocol.pdl +0 -0
  113. /package/{pods → src-native/pods}/Headers/include/libffi/arm64/ffi.h +0 -0
  114. /package/{pods → src-native/pods}/Headers/include/libffi/arm64/ffitarget.h +0 -0
  115. /package/{pods → src-native/pods}/Headers/include/libffi/x86_64/ffi.h +0 -0
  116. /package/{pods → src-native/pods}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
  117. /package/{pods → src-native/pods}/Headers/include/libffi.h +0 -0
  118. /package/{pods → src-native/pods}/Headers/include/libplatform/DEPS +0 -0
  119. /package/{pods → src-native/pods}/Headers/include/libplatform/libplatform-export.h +0 -0
  120. /package/{pods → src-native/pods}/Headers/include/libplatform/libplatform.h +0 -0
  121. /package/{pods → src-native/pods}/Headers/include/libplatform/v8-tracing.h +0 -0
  122. /package/{pods → src-native/pods}/Headers/include/v8-array-buffer.h +0 -0
  123. /package/{pods → src-native/pods}/Headers/include/v8-callbacks.h +0 -0
  124. /package/{pods → src-native/pods}/Headers/include/v8-container.h +0 -0
  125. /package/{pods → src-native/pods}/Headers/include/v8-context.h +0 -0
  126. /package/{pods → src-native/pods}/Headers/include/v8-cppgc.h +0 -0
  127. /package/{pods → src-native/pods}/Headers/include/v8-data.h +0 -0
  128. /package/{pods → src-native/pods}/Headers/include/v8-date.h +0 -0
  129. /package/{pods → src-native/pods}/Headers/include/v8-debug.h +0 -0
  130. /package/{pods → src-native/pods}/Headers/include/v8-embedder-heap.h +0 -0
  131. /package/{pods → src-native/pods}/Headers/include/v8-embedder-state-scope.h +0 -0
  132. /package/{pods → src-native/pods}/Headers/include/v8-exception.h +0 -0
  133. /package/{pods → src-native/pods}/Headers/include/v8-extension.h +0 -0
  134. /package/{pods → src-native/pods}/Headers/include/v8-external.h +0 -0
  135. /package/{pods → src-native/pods}/Headers/include/v8-fast-api-calls.h +0 -0
  136. /package/{pods → src-native/pods}/Headers/include/v8-forward.h +0 -0
  137. /package/{pods → src-native/pods}/Headers/include/v8-function-callback.h +0 -0
  138. /package/{pods → src-native/pods}/Headers/include/v8-function.h +0 -0
  139. /package/{pods → src-native/pods}/Headers/include/v8-initialization.h +0 -0
  140. /package/{pods → src-native/pods}/Headers/include/v8-inspector-protocol.h +0 -0
  141. /package/{pods → src-native/pods}/Headers/include/v8-inspector.h +0 -0
  142. /package/{pods → src-native/pods}/Headers/include/v8-internal.h +0 -0
  143. /package/{pods → src-native/pods}/Headers/include/v8-isolate.h +0 -0
  144. /package/{pods → src-native/pods}/Headers/include/v8-json.h +0 -0
  145. /package/{pods → src-native/pods}/Headers/include/v8-local-handle.h +0 -0
  146. /package/{pods → src-native/pods}/Headers/include/v8-locker.h +0 -0
  147. /package/{pods → src-native/pods}/Headers/include/v8-maybe.h +0 -0
  148. /package/{pods → src-native/pods}/Headers/include/v8-memory-span.h +0 -0
  149. /package/{pods → src-native/pods}/Headers/include/v8-message.h +0 -0
  150. /package/{pods → src-native/pods}/Headers/include/v8-metrics.h +0 -0
  151. /package/{pods → src-native/pods}/Headers/include/v8-microtask-queue.h +0 -0
  152. /package/{pods → src-native/pods}/Headers/include/v8-microtask.h +0 -0
  153. /package/{pods → src-native/pods}/Headers/include/v8-object.h +0 -0
  154. /package/{pods → src-native/pods}/Headers/include/v8-persistent-handle.h +0 -0
  155. /package/{pods → src-native/pods}/Headers/include/v8-platform.h +0 -0
  156. /package/{pods → src-native/pods}/Headers/include/v8-primitive-object.h +0 -0
  157. /package/{pods → src-native/pods}/Headers/include/v8-primitive.h +0 -0
  158. /package/{pods → src-native/pods}/Headers/include/v8-profiler.h +0 -0
  159. /package/{pods → src-native/pods}/Headers/include/v8-promise.h +0 -0
  160. /package/{pods → src-native/pods}/Headers/include/v8-proxy.h +0 -0
  161. /package/{pods → src-native/pods}/Headers/include/v8-regexp.h +0 -0
  162. /package/{pods → src-native/pods}/Headers/include/v8-script.h +0 -0
  163. /package/{pods → src-native/pods}/Headers/include/v8-snapshot.h +0 -0
  164. /package/{pods → src-native/pods}/Headers/include/v8-statistics.h +0 -0
  165. /package/{pods → src-native/pods}/Headers/include/v8-template.h +0 -0
  166. /package/{pods → src-native/pods}/Headers/include/v8-traced-handle.h +0 -0
  167. /package/{pods → src-native/pods}/Headers/include/v8-typed-array.h +0 -0
  168. /package/{pods → src-native/pods}/Headers/include/v8-unwinder-state.h +0 -0
  169. /package/{pods → src-native/pods}/Headers/include/v8-unwinder.h +0 -0
  170. /package/{pods → src-native/pods}/Headers/include/v8-util.h +0 -0
  171. /package/{pods → src-native/pods}/Headers/include/v8-value-serializer-version.h +0 -0
  172. /package/{pods → src-native/pods}/Headers/include/v8-value-serializer.h +0 -0
  173. /package/{pods → src-native/pods}/Headers/include/v8-value.h +0 -0
  174. /package/{pods → src-native/pods}/Headers/include/v8-version-string.h +0 -0
  175. /package/{pods → src-native/pods}/Headers/include/v8-version.h +0 -0
  176. /package/{pods → src-native/pods}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
  177. /package/{pods → src-native/pods}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
  178. /package/{pods → src-native/pods}/Headers/include/v8-wasm.h +0 -0
  179. /package/{pods → src-native/pods}/Headers/include/v8-weak-callback-info.h +0 -0
  180. /package/{pods → src-native/pods}/Headers/include/v8.h +0 -0
  181. /package/{pods → src-native/pods}/Headers/include/v8config.h +0 -0
  182. /package/{pods → src-native/pods}/Headers/inspector/InspectorServer.h +0 -0
  183. /package/{pods → src-native/pods}/Headers/inspector/JsV8InspectorClient.h +0 -0
  184. /package/{pods → src-native/pods}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
  185. /package/{pods → src-native/pods}/Headers/inspector/base64.h +0 -0
  186. /package/{pods → src-native/pods}/Headers/inspector/src/base/address-region.h +0 -0
  187. /package/{pods → src-native/pods}/Headers/inspector/src/base/atomic-utils.h +0 -0
  188. /package/{pods → src-native/pods}/Headers/inspector/src/base/atomicops.h +0 -0
  189. /package/{pods → src-native/pods}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
  190. /package/{pods → src-native/pods}/Headers/inspector/src/base/base-export.h +0 -0
  191. /package/{pods → src-native/pods}/Headers/inspector/src/base/bits.h +0 -0
  192. /package/{pods → src-native/pods}/Headers/inspector/src/base/build_config.h +0 -0
  193. /package/{pods → src-native/pods}/Headers/inspector/src/base/compiler-specific.h +0 -0
  194. /package/{pods → src-native/pods}/Headers/inspector/src/base/export-template.h +0 -0
  195. /package/{pods → src-native/pods}/Headers/inspector/src/base/flags.h +0 -0
  196. /package/{pods → src-native/pods}/Headers/inspector/src/base/immediate-crash.h +0 -0
  197. /package/{pods → src-native/pods}/Headers/inspector/src/base/lazy-instance.h +0 -0
  198. /package/{pods → src-native/pods}/Headers/inspector/src/base/logging.h +0 -0
  199. /package/{pods → src-native/pods}/Headers/inspector/src/base/macros.h +0 -0
  200. /package/{pods → src-native/pods}/Headers/inspector/src/base/memory.h +0 -0
  201. /package/{pods → src-native/pods}/Headers/inspector/src/base/once.h +0 -0
  202. /package/{pods → src-native/pods}/Headers/inspector/src/base/optional.h +0 -0
  203. /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/mutex.h +0 -0
  204. /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/platform.h +0 -0
  205. /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/semaphore.h +0 -0
  206. /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/v8-time.h +0 -0
  207. /package/{pods → src-native/pods}/Headers/inspector/src/base/platform/wrappers.h +0 -0
  208. /package/{pods → src-native/pods}/Headers/inspector/src/base/safe_conversions.h +0 -0
  209. /package/{pods → src-native/pods}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
  210. /package/{pods → src-native/pods}/Headers/inspector/src/base/template-utils.h +0 -0
  211. /package/{pods → src-native/pods}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
  212. /package/{pods → src-native/pods}/Headers/inspector/src/common/checks.h +0 -0
  213. /package/{pods → src-native/pods}/Headers/inspector/src/common/globals.h +0 -0
  214. /package/{pods → src-native/pods}/Headers/inspector/src/debug/debug-interface.h +0 -0
  215. /package/{pods → src-native/pods}/Headers/inspector/src/debug/interface-types.h +0 -0
  216. /package/{pods → src-native/pods}/Headers/inspector/src/init/v8.h +0 -0
  217. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/custom-preview.h +0 -0
  218. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/injected-script.h +0 -0
  219. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/inspected-context.h +0 -0
  220. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
  221. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
  222. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
  223. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
  224. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
  225. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
  226. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
  227. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
  228. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
  229. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
  230. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
  231. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
  232. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
  233. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
  234. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
  235. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
  236. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/search-util.h +0 -0
  237. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/string-16.h +0 -0
  238. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/string-util.h +0 -0
  239. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
  240. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
  241. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-console.h +0 -0
  242. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
  243. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
  244. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
  245. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
  246. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
  247. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
  248. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
  249. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
  250. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
  251. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
  252. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
  253. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
  254. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
  255. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
  256. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
  257. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-regex.h +0 -0
  258. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
  259. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
  260. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
  261. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
  262. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
  263. /package/{pods → src-native/pods}/Headers/inspector/src/inspector/value-mirror.h +0 -0
  264. /package/{pods → src-native/pods}/Headers/inspector/src/libplatform/default-platform.h +0 -0
  265. /package/{pods → src-native/pods}/Headers/inspector/src/logging/tracing-flags.h +0 -0
  266. /package/{pods → src-native/pods}/Headers/inspector/src/numbers/conversions.h +0 -0
  267. /package/{pods → src-native/pods}/Headers/inspector/src/tracing/trace-event.h +0 -0
  268. /package/{pods → src-native/pods}/Headers/inspector/src/utils/allocation.h +0 -0
  269. /package/{pods → src-native/pods}/Headers/inspector/src/utils/vector.h +0 -0
  270. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
  271. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
  272. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
  273. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
  274. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
  275. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
  276. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
  277. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
  278. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
  279. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
  280. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
  281. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
  282. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
  283. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
  284. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
  285. /package/{pods → src-native/pods}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
  286. /package/{pods → src-native/pods}/Headers/inspector/utils.h +0 -0
  287. /package/{pods → src-native/pods}/Headers/inspector/v8-inspector-platform.h +0 -0
  288. /package/{pods → src-native/pods}/Headers/jsi/decorator.h +0 -0
  289. /package/{pods → src-native/pods}/Headers/jsi/instrumentation.h +0 -0
  290. /package/{pods → src-native/pods}/Headers/jsi/jsi-inl.h +0 -0
  291. /package/{pods → src-native/pods}/Headers/jsi/jsi.h +0 -0
  292. /package/{pods → src-native/pods}/Headers/jsi/jsilib.h +0 -0
  293. /package/{pods → src-native/pods}/Headers/jsi/threadsafe.h +0 -0
  294. /package/{pods → src-native/pods}/Headers/runtime/ArgConverter.h +0 -0
  295. /package/{pods → src-native/pods}/Headers/runtime/ArrayAdapter.h +0 -0
  296. /package/{pods → src-native/pods}/Headers/runtime/Caches.h +0 -0
  297. /package/{pods → src-native/pods}/Headers/runtime/ClassBuilder.h +0 -0
  298. /package/{pods → src-native/pods}/Headers/runtime/Common.h +0 -0
  299. /package/{pods → src-native/pods}/Headers/runtime/ConcurrentMap.h +0 -0
  300. /package/{pods → src-native/pods}/Headers/runtime/ConcurrentQueue.h +0 -0
  301. /package/{pods → src-native/pods}/Headers/runtime/Console.h +0 -0
  302. /package/{pods → src-native/pods}/Headers/runtime/Constants.h +0 -0
  303. /package/{pods → src-native/pods}/Headers/runtime/DataWrapper.h +0 -0
  304. /package/{pods → src-native/pods}/Headers/runtime/DictionaryAdapter.h +0 -0
  305. /package/{pods → src-native/pods}/Headers/runtime/ExtVector.h +0 -0
  306. /package/{pods → src-native/pods}/Headers/runtime/FFICall.h +0 -0
  307. /package/{pods → src-native/pods}/Headers/runtime/FastEnumerationAdapter.h +0 -0
  308. /package/{pods → src-native/pods}/Headers/runtime/FunctionReference.h +0 -0
  309. /package/{pods → src-native/pods}/Headers/runtime/Helpers.h +0 -0
  310. /package/{pods → src-native/pods}/Headers/runtime/InlineFunctions.h +0 -0
  311. /package/{pods → src-native/pods}/Headers/runtime/Interop.h +0 -0
  312. /package/{pods → src-native/pods}/Headers/runtime/KnownUnknownClassPair.h +0 -0
  313. /package/{pods → src-native/pods}/Headers/runtime/Metadata.h +0 -0
  314. /package/{pods → src-native/pods}/Headers/runtime/MetadataBuilder.h +0 -0
  315. /package/{pods → src-native/pods}/Headers/runtime/MetadataInlines.h +0 -0
  316. /package/{pods → src-native/pods}/Headers/runtime/ModuleInternal.h +0 -0
  317. /package/{pods → src-native/pods}/Headers/runtime/NSDataAdapter.h +0 -0
  318. /package/{pods → src-native/pods}/Headers/runtime/NativeScriptException.h +0 -0
  319. /package/{pods → src-native/pods}/Headers/runtime/ObjectManager.h +0 -0
  320. /package/{pods → src-native/pods}/Headers/runtime/OneByteStringResource.h +0 -0
  321. /package/{pods → src-native/pods}/Headers/runtime/Pointer.h +0 -0
  322. /package/{pods → src-native/pods}/Headers/runtime/PromiseProxy.h +0 -0
  323. /package/{pods → src-native/pods}/Headers/runtime/Reference.h +0 -0
  324. /package/{pods → src-native/pods}/Headers/runtime/Runtime.h +0 -0
  325. /package/{pods → src-native/pods}/Headers/runtime/RuntimeConfig.h +0 -0
  326. /package/{pods → src-native/pods}/Headers/runtime/SetTimeout.h +0 -0
  327. /package/{pods → src-native/pods}/Headers/runtime/SimpleAllocator.h +0 -0
  328. /package/{pods → src-native/pods}/Headers/runtime/StringHasher.h +0 -0
  329. /package/{pods → src-native/pods}/Headers/runtime/SymbolIterator.h +0 -0
  330. /package/{pods → src-native/pods}/Headers/runtime/SymbolLoader.h +0 -0
  331. /package/{pods → src-native/pods}/Headers/runtime/TNSDerivedClass.h +0 -0
  332. /package/{pods → src-native/pods}/Headers/runtime/TSHelpers.h +0 -0
  333. /package/{pods → src-native/pods}/Headers/runtime/Tasks.h +0 -0
  334. /package/{pods → src-native/pods}/Headers/runtime/UnmanagedType.h +0 -0
  335. /package/{pods → src-native/pods}/Headers/runtime/WeakRef.h +0 -0
  336. /package/{pods → src-native/pods}/Headers/runtime/Worker.h +0 -0
  337. /package/{pods → src-native/pods}/Headers/runtime/robin_hood.h +0 -0
  338. /package/{pods → src-native/pods}/Headers/v8runtime/HostProxy.h +0 -0
  339. /package/{pods → src-native/pods}/Headers/v8runtime/JSIV8ValueConverter.h +0 -0
  340. /package/{pods → src-native/pods}/Headers/v8runtime/V8PointerValue.h +0 -0
  341. /package/{pods → src-native/pods}/Headers/v8runtime/V8Runtime.h +0 -0
  342. /package/{pods → src-native/pods}/Headers/v8runtime/V8RuntimeConfig.h +0 -0
  343. /package/{pods → src-native/pods}/Headers/v8runtime/V8RuntimeFactory.h +0 -0
package/index.android.js CHANGED
@@ -1,62 +1,62 @@
1
- import { CSSType } from '@nativescript/core';
2
- import { TSCViewBase, applyMixins } from './common';
3
- const BigIntZero = BigInt(0);
4
- export { applyMixins };
5
- export class TSCView extends TSCViewBase {
1
+ var _a;
2
+ import { backgroundColorProperty, Color, colorProperty, Utils } from '@nativescript/core';
3
+ import { TextBase, ViewBase, style_, textProperty, textWrapProperty } from './common';
4
+ import { Style } from './style';
5
+ export class Tree {
6
6
  constructor() {
7
- super(...arguments);
8
- this.__masonStylePtr = BigIntZero;
9
- this.__masonNodePtr = BigIntZero;
10
- this.__masonPtr = BigIntZero;
11
- this._hasNativeView = false;
12
- this._inBatch = false;
7
+ this._base = org.nativescript.mason.masonkit.Mason.getShared();
13
8
  }
14
- loadPtrs() {
15
- // @ts-ignore
16
- const ptrs = this.android?.getMasonPtrs().split(':');
17
- this.__masonPtr = BigInt(ptrs[0]);
18
- this.__masonNodePtr = BigInt(ptrs[1]);
19
- this.__masonStylePtr = BigInt(ptrs[2]);
9
+ static get instance() {
10
+ return Tree._tree;
20
11
  }
21
- get _masonStylePtr() {
22
- if (this.__masonStylePtr === BigIntZero) {
23
- this.loadPtrs();
24
- }
25
- return this.__masonStylePtr;
12
+ get native() {
13
+ return this._base;
26
14
  }
27
- get _masonNodePtr() {
28
- if (this.__masonNodePtr === BigIntZero) {
29
- this.loadPtrs();
30
- }
31
- return this.__masonNodePtr;
15
+ createView(context) {
16
+ return this.native.createView(context);
17
+ }
18
+ createTextView(context) {
19
+ return this.native.createTextView(context);
20
+ }
21
+ }
22
+ _a = Tree;
23
+ (() => {
24
+ _a._tree = new Tree();
25
+ })();
26
+ export class View extends ViewBase {
27
+ constructor() {
28
+ super();
29
+ this._hasNativeView = false;
30
+ this._inBatch = false;
31
+ const view = Tree.instance.createView(Utils.android.getCurrentActivity() || Utils.android.getApplicationContext());
32
+ this._hasNativeView = true;
33
+ this._view = view;
32
34
  }
33
- get _masonPtr() {
34
- if (this.__masonPtr === BigIntZero) {
35
- this.loadPtrs();
35
+ get _styleHelper() {
36
+ if (this[style_] === undefined) {
37
+ this[style_] = Style.fromView(this, this._view);
36
38
  }
37
- return this.__masonPtr;
39
+ return this[style_];
38
40
  }
39
41
  createNativeView() {
40
- const view = new org.nativescript.mason.masonkit.View(this._context);
41
- this._hasNativeView = true;
42
- return view;
42
+ return this._view;
43
43
  }
44
44
  disposeNativeView() {
45
45
  this._hasNativeView = false;
46
46
  super.disposeNativeView();
47
47
  }
48
- //@ts-ignore
48
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
49
+ // @ts-ignore
49
50
  get android() {
50
- return this.nativeViewProtected;
51
+ return this._view;
51
52
  }
52
- _addViewToNativeVisualTree(child, atIndex = Number.MAX_VALUE) {
53
- // super._addViewToNativeVisualTree(child);
54
- const nativeView = this.nativeViewProtected;
53
+ _addViewToNativeVisualTree(child, atIndex = -1) {
54
+ const nativeView = this._view;
55
55
  child._masonParent = this;
56
56
  if (nativeView && child.nativeViewProtected) {
57
- child['_hasNativeView'] = true;
58
- child['_isMasonChild'] = true;
59
- nativeView.addView(child.nativeViewProtected, -1);
57
+ child._hasNativeView = true;
58
+ child._isMasonChild = true;
59
+ nativeView.addView(child.nativeViewProtected, (atIndex ?? -1));
60
60
  return true;
61
61
  }
62
62
  return false;
@@ -68,46 +68,73 @@ export class TSCView extends TSCViewBase {
68
68
  super._removeViewFromNativeVisualTree(view);
69
69
  }
70
70
  }
71
- (() => {
72
- org.nativescript.mason.masonkit.Mason.setShared(false);
73
- })();
74
- let Grid = class Grid extends TSCView {
75
- createNativeView() {
76
- const view = org.nativescript.mason.masonkit.View.createGridView(this._context);
77
- this._hasNativeView = true;
78
- return view;
79
- }
80
- };
81
- Grid = __decorate([
82
- CSSType('Grid')
83
- ], Grid);
84
- export { Grid };
85
- let Flex = class Flex extends TSCView {
86
- createNativeView() {
87
- const view = org.nativescript.mason.masonkit.View.createFlexView(this._context);
71
+ export class Text extends TextBase {
72
+ constructor() {
73
+ super();
74
+ this._hasNativeView = false;
75
+ this._inBatch = false;
76
+ const view = Tree.instance.createTextView(Utils.android.getCurrentActivity() || Utils.android.getApplicationContext());
77
+ this._view = view;
88
78
  this._hasNativeView = true;
89
- return view;
90
- }
91
- };
92
- Flex = __decorate([
93
- CSSType('Flex')
94
- ], Flex);
95
- export { Flex };
96
- let Box = class Box extends TSCView {
79
+ this[style_] = Style.fromView(this, view, true);
80
+ }
81
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
82
+ // @ts-ignore
83
+ get android() {
84
+ return this._view;
85
+ }
86
+ get _styleHelper() {
87
+ if (this[style_] === undefined) {
88
+ this[style_] = Style.fromView(this, this._view);
89
+ }
90
+ return this[style_];
91
+ }
97
92
  createNativeView() {
98
- const view = org.nativescript.mason.masonkit.View.createBlockView(this._context);
99
- this._hasNativeView = true;
100
- return view;
101
- }
102
- };
103
- Box = __decorate([
104
- CSSType('Box')
105
- ], Box);
106
- export { Box };
107
- let Container = class Container extends TSCView {
108
- };
109
- Container = __decorate([
110
- CSSType('Container')
111
- ], Container);
112
- export { Container };
93
+ return this._view;
94
+ }
95
+ [textProperty.setNative](value) {
96
+ const nativeView = this._view;
97
+ if (nativeView) {
98
+ nativeView.updateText(value);
99
+ }
100
+ }
101
+ [colorProperty.setNative](value) {
102
+ if (value instanceof Color) {
103
+ this[style_].color = value.android;
104
+ }
105
+ }
106
+ [backgroundColorProperty.setNative](value) {
107
+ if (typeof value === 'number') {
108
+ this[style_].backgroundColor = value;
109
+ }
110
+ else if (value instanceof Color) {
111
+ this[style_].backgroundColor = value.android;
112
+ }
113
+ }
114
+ [textWrapProperty.setNative](value) {
115
+ switch (value) {
116
+ case 'false':
117
+ case 'nowrap':
118
+ this[style_].textWrap = 0 /* TextWrap.NoWrap */;
119
+ break;
120
+ case 'true':
121
+ case 'wrap':
122
+ this[style_].textWrap = 1 /* TextWrap.Wrap */;
123
+ break;
124
+ case 'balance':
125
+ this[style_].textWrap = 2 /* TextWrap.Balance */;
126
+ break;
127
+ }
128
+ }
129
+ _addViewToNativeVisualTree(child, atIndex = -1) {
130
+ const nativeView = this._view;
131
+ if (nativeView && child.nativeViewProtected) {
132
+ child._hasNativeView = true;
133
+ child._isMasonChild = true;
134
+ nativeView.addView(child.nativeViewProtected, atIndex ?? -1);
135
+ return true;
136
+ }
137
+ return false;
138
+ }
139
+ }
113
140
  //# sourceMappingURL=index.android.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAyB,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,W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BAAgB;QACd,MAAM,IAAI,GAAG,GAAG,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAQ,CAAC;QACvF,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AANY,IAAI;IADhB,OAAO,CAAC,MAAM,CAAC;GACH,IAAI,CAMhB;SANY,IAAI;AASV,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,OAAO;IAC/B,gBAAgB;QACd,MAAM,IAAI,GAAG,GAAG,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAQ,CAAC;QACvF,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AANY,IAAI;IADhB,OAAO,CAAC,MAAM,CAAC;GACH,IAAI,CAMhB;SANY,IAAI;AASV,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,OAAO;IAC9B,gBAAgB;QACd,MAAM,IAAI,GAAG,GAAG,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAQ,CAAC;QACxF,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AANY,GAAG;IADf,OAAO,CAAC,KAAK,CAAC;GACF,GAAG,CAMf;SANY,GAAG;AAST,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,OAAO;CAAG,CAAA;AAA5B,SAAS;IADrB,OAAO,CAAC,WAAW,CAAC;GACR,SAAS,CAAmB;SAA5B,SAAS"}
1
+ {"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../packages/nativescript-masonkit/index.android.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,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EAAE;YAC7B,IAAI,CAAC,MAAM,CAAC,CAAC,eAAe,GAAG,KAAK,CAAC;SACtC;aAAM,IAAI,KAAK,YAAY,KAAK,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,CAAC,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC;SAC9C;IACH,CAAC;IAED,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,KAAK;QAChC,QAAQ,KAAK,EAAE;YACb,KAAK,OAAO,CAAC;YACb,KAAK,QAAQ;gBACX,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,0BAAkB,CAAC;gBACxC,MAAM;YACR,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM;gBACT,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,wBAAgB,CAAC;gBACtC,MAAM;YACR,KAAK,SAAS;gBACZ,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,2BAAmB,CAAC;gBACzC,MAAM;SACT;IACH,CAAC;IAEM,0BAA0B,CAAC,KAAiB,EAAE,OAAO,GAAG,CAAC,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,CAAC,KAAiD,CAAC;QAE1E,IAAI,UAAU,IAAI,KAAK,CAAC,mBAAmB,EAAE;YAC3C,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;YAC5B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;YAC3B,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;YAC7D,OAAO,IAAI,CAAC;SACb;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
package/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { CoreTypes } from '@nativescript/core';
2
2
 
3
- import { TSCViewBase } from './common';
3
+ import { TextBase, ViewBase } from './common';
4
4
  import { LengthPercentage } from '@nativescript/core/css/parser';
5
5
 
6
- export type Length = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit;
6
+ export type Length = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit;
7
7
 
8
- export type LengthAuto = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | 'auto';
8
+ export type LengthAuto = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit | 'auto';
9
9
 
10
10
  export type SizeLength = { width: LengthType; height: LengthType };
11
11
 
@@ -35,21 +35,19 @@ export type JustifySelf = AlignSelf;
35
35
 
36
36
  export type JustifyContent = AlignContent;
37
37
 
38
- export type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense';
38
+ export type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense' | 'dense';
39
39
 
40
- export { applyMixins } from './helpers';
41
-
42
- export class TSCView extends TSCViewBase {
40
+ export class View extends ViewBase {
43
41
  display: Display;
44
42
  position: Position;
45
43
  flexDirection: FlexDirection;
46
44
  flexWrap: FlexWrap;
47
45
  flex: string | 'auto' | 'none' | number | 'initial';
48
46
  flexFlow: string;
49
- width: Length;
50
- height: Length;
51
- maxWidth: Length;
52
- maxHeight: Length;
47
+ width: LengthAuto;
48
+ height: LengthAuto;
49
+ maxWidth: LengthAuto;
50
+ maxHeight: LengthAuto;
53
51
  left: Length;
54
52
  right: Length;
55
53
  top: Length;
@@ -61,7 +59,7 @@ export class TSCView extends TSCViewBase {
61
59
  aspectRatio: number;
62
60
  flexBasis: Length;
63
61
  alignItems: AlignItems;
64
- alignSelf: import('@nativescript/core/ui/layouts/flexbox-layout').AlignSelf;
62
+ alignSelf: AlignSelf;
65
63
  alignContent: AlignContent;
66
64
  justifyItems: JustifyItems;
67
65
  justifySelf: JustifySelf;
@@ -86,13 +84,52 @@ export class TSCView extends TSCViewBase {
86
84
  scrollBarWidth: number | CoreTypes.LengthType;
87
85
  }
88
86
 
89
- export class Grid extends TSCView {}
90
-
91
- export class Flex extends TSCView {}
92
-
93
- export class Box extends TSCView {}
94
-
95
- export class Container extends TSCView {}
87
+ export class Text extends TextBase {
88
+ display: Display;
89
+ position: Position;
90
+ flexDirection: FlexDirection;
91
+ flexWrap: FlexWrap;
92
+ flex: string | 'auto' | 'none' | number | 'initial';
93
+ flexFlow: string;
94
+ width: LengthAuto;
95
+ height: LengthAuto;
96
+ maxWidth: LengthAuto;
97
+ maxHeight: LengthAuto;
98
+ left: Length;
99
+ right: Length;
100
+ top: Length;
101
+ bottom: Length;
102
+ gridGap: Gap;
103
+ gap: Gap;
104
+ rowGap: Length;
105
+ columnGap: Length;
106
+ aspectRatio: number;
107
+ flexBasis: Length;
108
+ alignItems: AlignItems;
109
+ alignSelf: AlignSelf;
110
+ alignContent: AlignContent;
111
+ justifyItems: JustifyItems;
112
+ justifySelf: JustifySelf;
113
+ justifyContent: JustifyContent;
114
+ gridAutoRows: string;
115
+ gridAutoColumns: string;
116
+ gridAutoFlow: GridAutoFlow;
117
+ gridRowGap: Gap;
118
+ gridColumnGap: Gap;
119
+ gridArea: string;
120
+ gridColumn: string;
121
+ gridColumnStart: string;
122
+ gridColumnEnd: string;
123
+ gridRow: string;
124
+ gridRowStart: string;
125
+ gridRowEnd: string;
126
+ gridTemplateRows: string;
127
+ gridTemplateColumns: string;
128
+ overflow: Overflow;
129
+ overflowX: Overflow;
130
+ overflowY: Overflow;
131
+ scrollBarWidth: number | CoreTypes.LengthType;
132
+ }
96
133
 
97
134
  declare module '@nativescript/core/ui/styling/style' {
98
135
  interface Style {
package/index.ios.d.ts CHANGED
@@ -1,30 +1,48 @@
1
- import { ViewBase } from '@nativescript/core';
2
- import { TSCViewBase } from './common';
3
- export declare class TSCView extends TSCViewBase {
4
- __masonStylePtr: bigint;
5
- __masonNodePtr: bigint;
6
- __masonPtr: bigint;
7
- get _masonStylePtr(): bigint;
8
- get _masonNodePtr(): bigint;
9
- get _masonPtr(): bigint;
1
+ import { Color } from '@nativescript/core';
2
+ import { MasonChild, style_, TextBase, ViewBase } from './common';
3
+ export declare class Tree {
4
+ _base: NSCMason;
5
+ private static _tree;
6
+ constructor();
7
+ static get instance(): Tree;
8
+ get native(): NSCMason;
9
+ createView(): MasonUIView;
10
+ createTextView(): MasonText;
11
+ }
12
+ export declare class View extends ViewBase {
13
+ [style_]: any;
14
+ private _view;
15
+ constructor();
16
+ get _styleHelper(): any;
10
17
  _hasNativeView: boolean;
11
- createNativeView(): UIView;
18
+ _inBatch: boolean;
19
+ createNativeView(): MasonUIView;
12
20
  disposeNativeView(): void;
13
- get ios(): UIView;
21
+ get ios(): MasonUIView;
14
22
  onLayout(left: number, top: number, right: number, bottom: number): void;
15
23
  onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
16
- layoutNativeView(): void;
17
- _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean;
18
- _removeViewFromNativeVisualTree(view: ViewBase): void;
19
- }
20
- export declare class Grid extends TSCView {
21
- createNativeView(): any;
22
- }
23
- export declare class Flex extends TSCView {
24
- createNativeView(): any;
25
- }
26
- export declare class Box extends TSCView {
27
- createNativeView(): any;
24
+ _setNativeViewFrame(nativeView: any, frame: CGRect): void;
25
+ _addViewToNativeVisualTree(child: MasonChild, atIndex?: number): boolean;
26
+ _removeViewFromNativeVisualTree(view: MasonChild): void;
28
27
  }
29
- export declare class Container extends TSCView {
28
+ export declare class Text extends TextBase {
29
+ [style_]: any;
30
+ _hasNativeView: boolean;
31
+ _inBatch: boolean;
32
+ _isText: boolean;
33
+ private _view;
34
+ constructor();
35
+ get ios(): MasonText;
36
+ get _styleHelper(): any;
37
+ createNativeView(): MasonText;
38
+ get text(): string;
39
+ set text(value: string);
40
+ set backgroundColor(value: Color | number);
41
+ get backgroundColor(): Color | number;
42
+ onLayout(left: number, top: number, right: number, bottom: number): void;
43
+ onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
44
+ _addViewToNativeVisualTree(child: MasonChild & {
45
+ text?: string;
46
+ }, atIndex?: number): boolean;
47
+ _setNativeViewFrame(nativeView: any, frame: CGRect): void;
30
48
  }