@ohos-ports/react-native-navigation 8.9.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -0
  3. package/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/statusbar/StatusBarPresenter.kt +212 -0
  4. package/lib/module/ARCHITECTURE.md +331 -0
  5. package/lib/module/Mock/Application.js +33 -0
  6. package/lib/module/Mock/Application.js.map +1 -0
  7. package/lib/module/Mock/ComponentProps.js +4 -0
  8. package/lib/module/Mock/ComponentProps.js.map +1 -0
  9. package/lib/module/Mock/Components/BottomTabs.js +16 -0
  10. package/lib/module/Mock/Components/BottomTabs.js.map +1 -0
  11. package/lib/module/Mock/Components/ComponentScreen.js +101 -0
  12. package/lib/module/Mock/Components/ComponentScreen.js.map +1 -0
  13. package/lib/module/Mock/Components/LayoutComponent.js +50 -0
  14. package/lib/module/Mock/Components/LayoutComponent.js.map +1 -0
  15. package/lib/module/Mock/Components/Modals.js +22 -0
  16. package/lib/module/Mock/Components/Modals.js.map +1 -0
  17. package/lib/module/Mock/Components/NavigationButton.js +72 -0
  18. package/lib/module/Mock/Components/NavigationButton.js.map +1 -0
  19. package/lib/module/Mock/Components/Overlays.js +23 -0
  20. package/lib/module/Mock/Components/Overlays.js.map +1 -0
  21. package/lib/module/Mock/Components/SideMenu.js +29 -0
  22. package/lib/module/Mock/Components/SideMenu.js.map +1 -0
  23. package/lib/module/Mock/Components/Stack.js +18 -0
  24. package/lib/module/Mock/Components/Stack.js.map +1 -0
  25. package/lib/module/Mock/Components/TopBar.js +81 -0
  26. package/lib/module/Mock/Components/TopBar.js.map +1 -0
  27. package/lib/module/Mock/Layouts/BottomTabsNode.js +30 -0
  28. package/lib/module/Mock/Layouts/BottomTabsNode.js.map +1 -0
  29. package/lib/module/Mock/Layouts/ComponentNode.js +102 -0
  30. package/lib/module/Mock/Layouts/ComponentNode.js.map +1 -0
  31. package/lib/module/Mock/Layouts/LayoutNodeFactory.js +28 -0
  32. package/lib/module/Mock/Layouts/LayoutNodeFactory.js.map +1 -0
  33. package/lib/module/Mock/Layouts/Node.js +14 -0
  34. package/lib/module/Mock/Layouts/Node.js.map +1 -0
  35. package/lib/module/Mock/Layouts/ParentNode.js +66 -0
  36. package/lib/module/Mock/Layouts/ParentNode.js.map +1 -0
  37. package/lib/module/Mock/Layouts/SideMenu.js +72 -0
  38. package/lib/module/Mock/Layouts/SideMenu.js.map +1 -0
  39. package/lib/module/Mock/Layouts/StackNode.js +12 -0
  40. package/lib/module/Mock/Layouts/StackNode.js.map +1 -0
  41. package/lib/module/Mock/Stores/EventsStore.js +53 -0
  42. package/lib/module/Mock/Stores/EventsStore.js.map +1 -0
  43. package/lib/module/Mock/Stores/LayoutStore.js +176 -0
  44. package/lib/module/Mock/Stores/LayoutStore.js.map +1 -0
  45. package/lib/module/Mock/actions/layoutActions.js +19 -0
  46. package/lib/module/Mock/actions/layoutActions.js.map +1 -0
  47. package/lib/module/Mock/connect.js +8 -0
  48. package/lib/module/Mock/connect.js.map +1 -0
  49. package/lib/module/Mock/constants.js +5 -0
  50. package/lib/module/Mock/constants.js.map +1 -0
  51. package/lib/module/Mock/index.js +20 -0
  52. package/lib/module/Mock/index.js.map +1 -0
  53. package/lib/module/Mock/mocks/AppRegistryService.js +6 -0
  54. package/lib/module/Mock/mocks/AppRegistryService.js.map +1 -0
  55. package/lib/module/Mock/mocks/NativeCommandsSender.js +146 -0
  56. package/lib/module/Mock/mocks/NativeCommandsSender.js.map +1 -0
  57. package/lib/module/Mock/mocks/NativeEventsReceiver.js +103 -0
  58. package/lib/module/Mock/mocks/NativeEventsReceiver.js.map +1 -0
  59. package/lib/module/Navigation.js +250 -0
  60. package/lib/module/Navigation.js.map +1 -0
  61. package/lib/module/NavigationDelegate.js +210 -0
  62. package/lib/module/NavigationDelegate.js.map +1 -0
  63. package/lib/module/adapters/AndroidCustomRowForwarder.js +75 -0
  64. package/lib/module/adapters/AndroidCustomRowForwarder.js.map +1 -0
  65. package/lib/module/adapters/AppRegistryService.js +9 -0
  66. package/lib/module/adapters/AppRegistryService.js.map +1 -0
  67. package/lib/module/adapters/AssetResolver.js +9 -0
  68. package/lib/module/adapters/AssetResolver.js.map +1 -0
  69. package/lib/module/adapters/ColorService.js +9 -0
  70. package/lib/module/adapters/ColorService.js.map +1 -0
  71. package/lib/module/adapters/Constants.js +19 -0
  72. package/lib/module/adapters/Constants.js.map +1 -0
  73. package/lib/module/adapters/NativeCommandsSender.js +60 -0
  74. package/lib/module/adapters/NativeCommandsSender.js.map +1 -0
  75. package/lib/module/adapters/NativeEventsReceiver.js +65 -0
  76. package/lib/module/adapters/NativeEventsReceiver.js.map +1 -0
  77. package/lib/module/adapters/NativeEventsReceiver.mock.js +6 -0
  78. package/lib/module/adapters/NativeEventsReceiver.mock.js.map +1 -0
  79. package/lib/module/adapters/NativeRNNTurboEventEmitter.js +7 -0
  80. package/lib/module/adapters/NativeRNNTurboEventEmitter.js.map +1 -0
  81. package/lib/module/adapters/NativeRNNTurboModule.js +6 -0
  82. package/lib/module/adapters/NativeRNNTurboModule.js.map +1 -0
  83. package/lib/module/adapters/TouchablePreview.js +115 -0
  84. package/lib/module/adapters/TouchablePreview.js.map +1 -0
  85. package/lib/module/adapters/UniqueIdProvider.js +9 -0
  86. package/lib/module/adapters/UniqueIdProvider.js.map +1 -0
  87. package/lib/module/commands/Commands.js +241 -0
  88. package/lib/module/commands/Commands.js.map +1 -0
  89. package/lib/module/commands/Commands.test.js +759 -0
  90. package/lib/module/commands/Commands.test.js.map +1 -0
  91. package/lib/module/commands/Deprecations.js +66 -0
  92. package/lib/module/commands/Deprecations.js.map +1 -0
  93. package/lib/module/commands/LayoutTreeCrawler.js +32 -0
  94. package/lib/module/commands/LayoutTreeCrawler.js.map +1 -0
  95. package/lib/module/commands/LayoutTreeCrawler.test.js +82 -0
  96. package/lib/module/commands/LayoutTreeCrawler.test.js.map +1 -0
  97. package/lib/module/commands/LayoutTreeParser.js +130 -0
  98. package/lib/module/commands/LayoutTreeParser.js.map +1 -0
  99. package/lib/module/commands/LayoutTreeParser.test.js +359 -0
  100. package/lib/module/commands/LayoutTreeParser.test.js.map +1 -0
  101. package/lib/module/commands/LayoutType.js +16 -0
  102. package/lib/module/commands/LayoutType.js.map +1 -0
  103. package/lib/module/commands/LayoutType.test.js +12 -0
  104. package/lib/module/commands/LayoutType.test.js.map +1 -0
  105. package/lib/module/commands/OptionsCrawler.js +72 -0
  106. package/lib/module/commands/OptionsCrawler.js.map +1 -0
  107. package/lib/module/commands/OptionsCrawler.test.js +351 -0
  108. package/lib/module/commands/OptionsCrawler.test.js.map +1 -0
  109. package/lib/module/commands/OptionsProcessor.js +300 -0
  110. package/lib/module/commands/OptionsProcessor.js.map +1 -0
  111. package/lib/module/commands/OptionsProcessor.test.js +1234 -0
  112. package/lib/module/commands/OptionsProcessor.test.js.map +1 -0
  113. package/lib/module/components/ComponentRegistry.js +25 -0
  114. package/lib/module/components/ComponentRegistry.js.map +1 -0
  115. package/lib/module/components/ComponentRegistry.test.js +57 -0
  116. package/lib/module/components/ComponentRegistry.test.js.map +1 -0
  117. package/lib/module/components/ComponentWrapper.js +80 -0
  118. package/lib/module/components/ComponentWrapper.js.map +1 -0
  119. package/lib/module/components/ComponentWrapper.test.js +333 -0
  120. package/lib/module/components/ComponentWrapper.test.js.map +1 -0
  121. package/lib/module/components/Modal.js +125 -0
  122. package/lib/module/components/Modal.js.map +1 -0
  123. package/lib/module/components/Store.js +71 -0
  124. package/lib/module/components/Store.js.map +1 -0
  125. package/lib/module/components/Store.test.js +148 -0
  126. package/lib/module/components/Store.test.js.map +1 -0
  127. package/lib/module/events/CommandsObserver.js +19 -0
  128. package/lib/module/events/CommandsObserver.js.map +1 -0
  129. package/lib/module/events/CommandsObserver.test.js +43 -0
  130. package/lib/module/events/CommandsObserver.test.js.map +1 -0
  131. package/lib/module/events/ComponentEventsObserver.js +94 -0
  132. package/lib/module/events/ComponentEventsObserver.js.map +1 -0
  133. package/lib/module/events/ComponentEventsObserver.test.js +391 -0
  134. package/lib/module/events/ComponentEventsObserver.test.js.map +1 -0
  135. package/lib/module/events/EventsRegistry.js +64 -0
  136. package/lib/module/events/EventsRegistry.js.map +1 -0
  137. package/lib/module/events/EventsRegistry.test.js +131 -0
  138. package/lib/module/events/EventsRegistry.test.js.map +1 -0
  139. package/lib/module/index.js +22 -0
  140. package/lib/module/index.js.map +1 -0
  141. package/lib/module/interfaces/CommandName.js +22 -0
  142. package/lib/module/interfaces/CommandName.js.map +1 -0
  143. package/lib/module/interfaces/ComponentEvents.js +2 -0
  144. package/lib/module/interfaces/ComponentEvents.js.map +1 -0
  145. package/lib/module/interfaces/EventSubscription.js +2 -0
  146. package/lib/module/interfaces/EventSubscription.js.map +1 -0
  147. package/lib/module/interfaces/Events.js +2 -0
  148. package/lib/module/interfaces/Events.js.map +1 -0
  149. package/lib/module/interfaces/Layout.js +4 -0
  150. package/lib/module/interfaces/Layout.js.map +1 -0
  151. package/lib/module/interfaces/NavigationComponent.js +21 -0
  152. package/lib/module/interfaces/NavigationComponent.js.map +1 -0
  153. package/lib/module/interfaces/NavigationComponentListener.js +4 -0
  154. package/lib/module/interfaces/NavigationComponentListener.js.map +1 -0
  155. package/lib/module/interfaces/NavigationComponentProps.js +2 -0
  156. package/lib/module/interfaces/NavigationComponentProps.js.map +1 -0
  157. package/lib/module/interfaces/NavigationFunctionComponent.js +4 -0
  158. package/lib/module/interfaces/NavigationFunctionComponent.js.map +1 -0
  159. package/lib/module/interfaces/Options.js +47 -0
  160. package/lib/module/interfaces/Options.js.map +1 -0
  161. package/lib/module/interfaces/ProcessorSubscription.js +2 -0
  162. package/lib/module/interfaces/ProcessorSubscription.js.map +1 -0
  163. package/lib/module/interfaces/Processors.js +4 -0
  164. package/lib/module/interfaces/Processors.js.map +1 -0
  165. package/lib/module/linking/DeferredLinkQueue.js +52 -0
  166. package/lib/module/linking/DeferredLinkQueue.js.map +1 -0
  167. package/lib/module/linking/DeferredLinkQueue.test.js +54 -0
  168. package/lib/module/linking/DeferredLinkQueue.test.js.map +1 -0
  169. package/lib/module/linking/LinkingHandler.js +139 -0
  170. package/lib/module/linking/LinkingHandler.js.map +1 -0
  171. package/lib/module/linking/LinkingHandler.test.js +384 -0
  172. package/lib/module/linking/LinkingHandler.test.js.map +1 -0
  173. package/lib/module/linking/ModalLayoutBuilder.js +56 -0
  174. package/lib/module/linking/ModalLayoutBuilder.js.map +1 -0
  175. package/lib/module/linking/ModalLayoutBuilder.test.js +154 -0
  176. package/lib/module/linking/ModalLayoutBuilder.test.js.map +1 -0
  177. package/lib/module/linking/RouteMatcher.js +104 -0
  178. package/lib/module/linking/RouteMatcher.js.map +1 -0
  179. package/lib/module/linking/RouteMatcher.test.js +164 -0
  180. package/lib/module/linking/RouteMatcher.test.js.map +1 -0
  181. package/lib/module/linking/URLParser.js +56 -0
  182. package/lib/module/linking/URLParser.js.map +1 -0
  183. package/lib/module/linking/URLParser.test.js +100 -0
  184. package/lib/module/linking/URLParser.test.js.map +1 -0
  185. package/lib/module/linking/types.js +4 -0
  186. package/lib/module/linking/types.js.map +1 -0
  187. package/lib/module/package.json +1 -0
  188. package/lib/module/processors/LayoutProcessor.js +15 -0
  189. package/lib/module/processors/LayoutProcessor.js.map +1 -0
  190. package/lib/module/processors/LayoutProcessor.test.js +53 -0
  191. package/lib/module/processors/LayoutProcessor.test.js.map +1 -0
  192. package/lib/module/processors/LayoutProcessorsStore.js +18 -0
  193. package/lib/module/processors/LayoutProcessorsStore.js.map +1 -0
  194. package/lib/module/processors/LayoutProcessorsStore.test.js +31 -0
  195. package/lib/module/processors/LayoutProcessorsStore.test.js.map +1 -0
  196. package/lib/module/processors/OptionProcessorsStore.js +19 -0
  197. package/lib/module/processors/OptionProcessorsStore.js.map +1 -0
  198. package/lib/module/processors/OptionProcessorsStore.test.js +31 -0
  199. package/lib/module/processors/OptionProcessorsStore.test.js.map +1 -0
  200. package/lib/module/types.js +2 -0
  201. package/lib/module/types.js.map +1 -0
  202. package/lib/typescript/Mock/Application.d.ts +30 -0
  203. package/lib/typescript/Mock/Application.d.ts.map +1 -0
  204. package/lib/typescript/Mock/ComponentProps.d.ts +6 -0
  205. package/lib/typescript/Mock/ComponentProps.d.ts.map +1 -0
  206. package/lib/typescript/Mock/Components/BottomTabs.d.ts +47 -0
  207. package/lib/typescript/Mock/Components/BottomTabs.d.ts.map +1 -0
  208. package/lib/typescript/Mock/Components/ComponentScreen.d.ts +29 -0
  209. package/lib/typescript/Mock/Components/ComponentScreen.d.ts.map +1 -0
  210. package/lib/typescript/Mock/Components/LayoutComponent.d.ts +47 -0
  211. package/lib/typescript/Mock/Components/LayoutComponent.d.ts.map +1 -0
  212. package/lib/typescript/Mock/Components/Modals.d.ts +47 -0
  213. package/lib/typescript/Mock/Components/Modals.d.ts.map +1 -0
  214. package/lib/typescript/Mock/Components/NavigationButton.d.ts +58 -0
  215. package/lib/typescript/Mock/Components/NavigationButton.d.ts.map +1 -0
  216. package/lib/typescript/Mock/Components/Overlays.d.ts +47 -0
  217. package/lib/typescript/Mock/Components/Overlays.d.ts.map +1 -0
  218. package/lib/typescript/Mock/Components/SideMenu.d.ts +179 -0
  219. package/lib/typescript/Mock/Components/SideMenu.d.ts.map +1 -0
  220. package/lib/typescript/Mock/Components/Stack.d.ts +47 -0
  221. package/lib/typescript/Mock/Components/Stack.d.ts.map +1 -0
  222. package/lib/typescript/Mock/Components/TopBar.d.ts +37 -0
  223. package/lib/typescript/Mock/Components/TopBar.d.ts.map +1 -0
  224. package/lib/typescript/Mock/Layouts/BottomTabsNode.d.ts +9 -0
  225. package/lib/typescript/Mock/Layouts/BottomTabsNode.d.ts.map +1 -0
  226. package/lib/typescript/Mock/Layouts/ComponentNode.d.ts +16 -0
  227. package/lib/typescript/Mock/Layouts/ComponentNode.d.ts.map +1 -0
  228. package/lib/typescript/Mock/Layouts/LayoutNodeFactory.d.ts +9 -0
  229. package/lib/typescript/Mock/Layouts/LayoutNodeFactory.d.ts.map +1 -0
  230. package/lib/typescript/Mock/Layouts/Node.d.ts +16 -0
  231. package/lib/typescript/Mock/Layouts/Node.d.ts.map +1 -0
  232. package/lib/typescript/Mock/Layouts/ParentNode.d.ts +21 -0
  233. package/lib/typescript/Mock/Layouts/ParentNode.d.ts.map +1 -0
  234. package/lib/typescript/Mock/Layouts/SideMenu.d.ts +32 -0
  235. package/lib/typescript/Mock/Layouts/SideMenu.d.ts.map +1 -0
  236. package/lib/typescript/Mock/Layouts/StackNode.d.ts +6 -0
  237. package/lib/typescript/Mock/Layouts/StackNode.d.ts.map +1 -0
  238. package/lib/typescript/Mock/Stores/EventsStore.d.ts +22 -0
  239. package/lib/typescript/Mock/Stores/EventsStore.d.ts.map +1 -0
  240. package/lib/typescript/Mock/Stores/LayoutStore.d.ts +2 -0
  241. package/lib/typescript/Mock/Stores/LayoutStore.d.ts.map +1 -0
  242. package/lib/typescript/Mock/actions/layoutActions.d.ts +6 -0
  243. package/lib/typescript/Mock/actions/layoutActions.d.ts.map +1 -0
  244. package/lib/typescript/Mock/connect.d.ts +2 -0
  245. package/lib/typescript/Mock/connect.d.ts.map +1 -0
  246. package/lib/typescript/Mock/constants.d.ts +3 -0
  247. package/lib/typescript/Mock/constants.d.ts.map +1 -0
  248. package/lib/typescript/Mock/index.d.ts +4 -0
  249. package/lib/typescript/Mock/index.d.ts.map +1 -0
  250. package/lib/typescript/Mock/mocks/AppRegistryService.d.ts +5 -0
  251. package/lib/typescript/Mock/mocks/AppRegistryService.d.ts.map +1 -0
  252. package/lib/typescript/Mock/mocks/NativeCommandsSender.d.ts +28 -0
  253. package/lib/typescript/Mock/mocks/NativeCommandsSender.d.ts.map +1 -0
  254. package/lib/typescript/Mock/mocks/NativeEventsReceiver.d.ts +21 -0
  255. package/lib/typescript/Mock/mocks/NativeEventsReceiver.d.ts.map +1 -0
  256. package/lib/typescript/Navigation.d.ts +152 -0
  257. package/lib/typescript/Navigation.d.ts.map +1 -0
  258. package/lib/typescript/NavigationDelegate.d.ts +128 -0
  259. package/lib/typescript/NavigationDelegate.d.ts.map +1 -0
  260. package/lib/typescript/adapters/AndroidCustomRowForwarder.d.ts +23 -0
  261. package/lib/typescript/adapters/AndroidCustomRowForwarder.d.ts.map +1 -0
  262. package/lib/typescript/adapters/AppRegistryService.d.ts +5 -0
  263. package/lib/typescript/adapters/AppRegistryService.d.ts.map +1 -0
  264. package/lib/typescript/adapters/AssetResolver.d.ts +5 -0
  265. package/lib/typescript/adapters/AssetResolver.d.ts.map +1 -0
  266. package/lib/typescript/adapters/ColorService.d.ts +4 -0
  267. package/lib/typescript/adapters/ColorService.d.ts.map +1 -0
  268. package/lib/typescript/adapters/Constants.d.ts +17 -0
  269. package/lib/typescript/adapters/Constants.d.ts.map +1 -0
  270. package/lib/typescript/adapters/NativeCommandsSender.d.ts +62 -0
  271. package/lib/typescript/adapters/NativeCommandsSender.d.ts.map +1 -0
  272. package/lib/typescript/adapters/NativeEventsReceiver.d.ts +23 -0
  273. package/lib/typescript/adapters/NativeEventsReceiver.d.ts.map +1 -0
  274. package/lib/typescript/adapters/NativeEventsReceiver.mock.d.ts +2 -0
  275. package/lib/typescript/adapters/NativeEventsReceiver.mock.d.ts.map +1 -0
  276. package/lib/typescript/adapters/NativeRNNTurboEventEmitter.d.ts +8 -0
  277. package/lib/typescript/adapters/NativeRNNTurboEventEmitter.d.ts.map +1 -0
  278. package/lib/typescript/adapters/NativeRNNTurboModule.d.ts +28 -0
  279. package/lib/typescript/adapters/NativeRNNTurboModule.d.ts.map +1 -0
  280. package/lib/typescript/adapters/TouchablePreview.d.ts +44 -0
  281. package/lib/typescript/adapters/TouchablePreview.d.ts.map +1 -0
  282. package/lib/typescript/adapters/UniqueIdProvider.d.ts +4 -0
  283. package/lib/typescript/adapters/UniqueIdProvider.d.ts.map +1 -0
  284. package/lib/typescript/commands/Commands.d.ts +41 -0
  285. package/lib/typescript/commands/Commands.d.ts.map +1 -0
  286. package/lib/typescript/commands/Commands.test.d.ts +2 -0
  287. package/lib/typescript/commands/Commands.test.d.ts.map +1 -0
  288. package/lib/typescript/commands/Deprecations.d.ts +10 -0
  289. package/lib/typescript/commands/Deprecations.d.ts.map +1 -0
  290. package/lib/typescript/commands/LayoutTreeCrawler.d.ts +25 -0
  291. package/lib/typescript/commands/LayoutTreeCrawler.d.ts.map +1 -0
  292. package/lib/typescript/commands/LayoutTreeCrawler.test.d.ts +2 -0
  293. package/lib/typescript/commands/LayoutTreeCrawler.test.d.ts.map +1 -0
  294. package/lib/typescript/commands/LayoutTreeParser.d.ts +17 -0
  295. package/lib/typescript/commands/LayoutTreeParser.d.ts.map +1 -0
  296. package/lib/typescript/commands/LayoutTreeParser.test.d.ts +2 -0
  297. package/lib/typescript/commands/LayoutTreeParser.test.d.ts.map +1 -0
  298. package/lib/typescript/commands/LayoutType.d.ts +13 -0
  299. package/lib/typescript/commands/LayoutType.d.ts.map +1 -0
  300. package/lib/typescript/commands/LayoutType.test.d.ts +2 -0
  301. package/lib/typescript/commands/LayoutType.test.d.ts.map +1 -0
  302. package/lib/typescript/commands/OptionsCrawler.d.ts +20 -0
  303. package/lib/typescript/commands/OptionsCrawler.d.ts.map +1 -0
  304. package/lib/typescript/commands/OptionsCrawler.test.d.ts +2 -0
  305. package/lib/typescript/commands/OptionsCrawler.test.d.ts.map +1 -0
  306. package/lib/typescript/commands/OptionsProcessor.d.ts +40 -0
  307. package/lib/typescript/commands/OptionsProcessor.d.ts.map +1 -0
  308. package/lib/typescript/commands/OptionsProcessor.test.d.ts +2 -0
  309. package/lib/typescript/commands/OptionsProcessor.test.d.ts.map +1 -0
  310. package/lib/typescript/components/ComponentRegistry.d.ts +14 -0
  311. package/lib/typescript/components/ComponentRegistry.d.ts.map +1 -0
  312. package/lib/typescript/components/ComponentRegistry.test.d.ts +2 -0
  313. package/lib/typescript/components/ComponentRegistry.test.d.ts.map +1 -0
  314. package/lib/typescript/components/ComponentWrapper.d.ts +13 -0
  315. package/lib/typescript/components/ComponentWrapper.d.ts.map +1 -0
  316. package/lib/typescript/components/ComponentWrapper.test.d.ts +2 -0
  317. package/lib/typescript/components/ComponentWrapper.test.d.ts.map +1 -0
  318. package/lib/typescript/components/Modal.d.ts +21 -0
  319. package/lib/typescript/components/Modal.d.ts.map +1 -0
  320. package/lib/typescript/components/Store.d.ts +27 -0
  321. package/lib/typescript/components/Store.d.ts.map +1 -0
  322. package/lib/typescript/components/Store.test.d.ts +2 -0
  323. package/lib/typescript/components/Store.test.d.ts.map +1 -0
  324. package/lib/typescript/events/CommandsObserver.d.ts +11 -0
  325. package/lib/typescript/events/CommandsObserver.d.ts.map +1 -0
  326. package/lib/typescript/events/CommandsObserver.test.d.ts +2 -0
  327. package/lib/typescript/events/CommandsObserver.test.d.ts.map +1 -0
  328. package/lib/typescript/events/ComponentEventsObserver.d.ts +29 -0
  329. package/lib/typescript/events/ComponentEventsObserver.d.ts.map +1 -0
  330. package/lib/typescript/events/ComponentEventsObserver.test.d.ts +2 -0
  331. package/lib/typescript/events/ComponentEventsObserver.test.d.ts.map +1 -0
  332. package/lib/typescript/events/EventsRegistry.d.ts +34 -0
  333. package/lib/typescript/events/EventsRegistry.d.ts.map +1 -0
  334. package/lib/typescript/events/EventsRegistry.test.d.ts +2 -0
  335. package/lib/typescript/events/EventsRegistry.test.d.ts.map +1 -0
  336. package/lib/typescript/index.d.ts +19 -0
  337. package/lib/typescript/index.d.ts.map +1 -0
  338. package/lib/typescript/interfaces/CommandName.d.ts +19 -0
  339. package/lib/typescript/interfaces/CommandName.d.ts.map +1 -0
  340. package/lib/typescript/interfaces/ComponentEvents.d.ts +43 -0
  341. package/lib/typescript/interfaces/ComponentEvents.d.ts.map +1 -0
  342. package/lib/typescript/interfaces/EventSubscription.d.ts +4 -0
  343. package/lib/typescript/interfaces/EventSubscription.d.ts.map +1 -0
  344. package/lib/typescript/interfaces/Events.d.ts +16 -0
  345. package/lib/typescript/interfaces/Events.d.ts.map +1 -0
  346. package/lib/typescript/interfaces/Layout.d.ts +190 -0
  347. package/lib/typescript/interfaces/Layout.d.ts.map +1 -0
  348. package/lib/typescript/interfaces/NavigationComponent.d.ts +22 -0
  349. package/lib/typescript/interfaces/NavigationComponent.d.ts.map +1 -0
  350. package/lib/typescript/interfaces/NavigationComponentListener.d.ts +14 -0
  351. package/lib/typescript/interfaces/NavigationComponentListener.d.ts.map +1 -0
  352. package/lib/typescript/interfaces/NavigationComponentProps.d.ts +11 -0
  353. package/lib/typescript/interfaces/NavigationComponentProps.d.ts.map +1 -0
  354. package/lib/typescript/interfaces/NavigationFunctionComponent.d.ts +7 -0
  355. package/lib/typescript/interfaces/NavigationFunctionComponent.d.ts.map +1 -0
  356. package/lib/typescript/interfaces/Options.d.ts +1738 -0
  357. package/lib/typescript/interfaces/Options.d.ts.map +1 -0
  358. package/lib/typescript/interfaces/ProcessorSubscription.d.ts +4 -0
  359. package/lib/typescript/interfaces/ProcessorSubscription.d.ts.map +1 -0
  360. package/lib/typescript/interfaces/Processors.d.ts +9 -0
  361. package/lib/typescript/interfaces/Processors.d.ts.map +1 -0
  362. package/lib/typescript/linking/DeferredLinkQueue.d.ts +26 -0
  363. package/lib/typescript/linking/DeferredLinkQueue.d.ts.map +1 -0
  364. package/lib/typescript/linking/DeferredLinkQueue.test.d.ts +2 -0
  365. package/lib/typescript/linking/DeferredLinkQueue.test.d.ts.map +1 -0
  366. package/lib/typescript/linking/LinkingHandler.d.ts +71 -0
  367. package/lib/typescript/linking/LinkingHandler.d.ts.map +1 -0
  368. package/lib/typescript/linking/LinkingHandler.test.d.ts +2 -0
  369. package/lib/typescript/linking/LinkingHandler.test.d.ts.map +1 -0
  370. package/lib/typescript/linking/ModalLayoutBuilder.d.ts +21 -0
  371. package/lib/typescript/linking/ModalLayoutBuilder.d.ts.map +1 -0
  372. package/lib/typescript/linking/ModalLayoutBuilder.test.d.ts +2 -0
  373. package/lib/typescript/linking/ModalLayoutBuilder.test.d.ts.map +1 -0
  374. package/lib/typescript/linking/RouteMatcher.d.ts +23 -0
  375. package/lib/typescript/linking/RouteMatcher.d.ts.map +1 -0
  376. package/lib/typescript/linking/RouteMatcher.test.d.ts +2 -0
  377. package/lib/typescript/linking/RouteMatcher.test.d.ts.map +1 -0
  378. package/lib/typescript/linking/URLParser.d.ts +16 -0
  379. package/lib/typescript/linking/URLParser.d.ts.map +1 -0
  380. package/lib/typescript/linking/URLParser.test.d.ts +2 -0
  381. package/lib/typescript/linking/URLParser.test.d.ts.map +1 -0
  382. package/lib/typescript/linking/types.d.ts +107 -0
  383. package/lib/typescript/linking/types.d.ts.map +1 -0
  384. package/lib/typescript/package.json +1 -0
  385. package/lib/typescript/processors/LayoutProcessor.d.ts +9 -0
  386. package/lib/typescript/processors/LayoutProcessor.d.ts.map +1 -0
  387. package/lib/typescript/processors/LayoutProcessor.test.d.ts +2 -0
  388. package/lib/typescript/processors/LayoutProcessor.test.d.ts.map +1 -0
  389. package/lib/typescript/processors/LayoutProcessorsStore.d.ts +9 -0
  390. package/lib/typescript/processors/LayoutProcessorsStore.d.ts.map +1 -0
  391. package/lib/typescript/processors/LayoutProcessorsStore.test.d.ts +2 -0
  392. package/lib/typescript/processors/LayoutProcessorsStore.test.d.ts.map +1 -0
  393. package/lib/typescript/processors/OptionProcessorsStore.d.ts +9 -0
  394. package/lib/typescript/processors/OptionProcessorsStore.d.ts.map +1 -0
  395. package/lib/typescript/processors/OptionProcessorsStore.test.d.ts +2 -0
  396. package/lib/typescript/processors/OptionProcessorsStore.test.d.ts.map +1 -0
  397. package/lib/typescript/types.d.ts +5 -0
  398. package/lib/typescript/types.d.ts.map +1 -0
  399. package/lib/typescript/typescript/Mock/Application.d.ts +30 -0
  400. package/lib/typescript/typescript/Mock/Application.d.ts.map +1 -0
  401. package/lib/typescript/typescript/Mock/ComponentProps.d.ts +6 -0
  402. package/lib/typescript/typescript/Mock/ComponentProps.d.ts.map +1 -0
  403. package/lib/typescript/typescript/Mock/Components/BottomTabs.d.ts +47 -0
  404. package/lib/typescript/typescript/Mock/Components/BottomTabs.d.ts.map +1 -0
  405. package/lib/typescript/typescript/Mock/Components/ComponentScreen.d.ts +29 -0
  406. package/lib/typescript/typescript/Mock/Components/ComponentScreen.d.ts.map +1 -0
  407. package/lib/typescript/typescript/Mock/Components/LayoutComponent.d.ts +47 -0
  408. package/lib/typescript/typescript/Mock/Components/LayoutComponent.d.ts.map +1 -0
  409. package/lib/typescript/typescript/Mock/Components/Modals.d.ts +47 -0
  410. package/lib/typescript/typescript/Mock/Components/Modals.d.ts.map +1 -0
  411. package/lib/typescript/typescript/Mock/Components/NavigationButton.d.ts +58 -0
  412. package/lib/typescript/typescript/Mock/Components/NavigationButton.d.ts.map +1 -0
  413. package/lib/typescript/typescript/Mock/Components/Overlays.d.ts +47 -0
  414. package/lib/typescript/typescript/Mock/Components/Overlays.d.ts.map +1 -0
  415. package/lib/typescript/typescript/Mock/Components/SideMenu.d.ts +179 -0
  416. package/lib/typescript/typescript/Mock/Components/SideMenu.d.ts.map +1 -0
  417. package/lib/typescript/typescript/Mock/Components/Stack.d.ts +47 -0
  418. package/lib/typescript/typescript/Mock/Components/Stack.d.ts.map +1 -0
  419. package/lib/typescript/typescript/Mock/Components/TopBar.d.ts +37 -0
  420. package/lib/typescript/typescript/Mock/Components/TopBar.d.ts.map +1 -0
  421. package/lib/typescript/typescript/Mock/Layouts/BottomTabsNode.d.ts +9 -0
  422. package/lib/typescript/typescript/Mock/Layouts/BottomTabsNode.d.ts.map +1 -0
  423. package/lib/typescript/typescript/Mock/Layouts/ComponentNode.d.ts +16 -0
  424. package/lib/typescript/typescript/Mock/Layouts/ComponentNode.d.ts.map +1 -0
  425. package/lib/typescript/typescript/Mock/Layouts/LayoutNodeFactory.d.ts +9 -0
  426. package/lib/typescript/typescript/Mock/Layouts/LayoutNodeFactory.d.ts.map +1 -0
  427. package/lib/typescript/typescript/Mock/Layouts/Node.d.ts +16 -0
  428. package/lib/typescript/typescript/Mock/Layouts/Node.d.ts.map +1 -0
  429. package/lib/typescript/typescript/Mock/Layouts/ParentNode.d.ts +21 -0
  430. package/lib/typescript/typescript/Mock/Layouts/ParentNode.d.ts.map +1 -0
  431. package/lib/typescript/typescript/Mock/Layouts/SideMenu.d.ts +32 -0
  432. package/lib/typescript/typescript/Mock/Layouts/SideMenu.d.ts.map +1 -0
  433. package/lib/typescript/typescript/Mock/Layouts/StackNode.d.ts +6 -0
  434. package/lib/typescript/typescript/Mock/Layouts/StackNode.d.ts.map +1 -0
  435. package/lib/typescript/typescript/Mock/Stores/EventsStore.d.ts +22 -0
  436. package/lib/typescript/typescript/Mock/Stores/EventsStore.d.ts.map +1 -0
  437. package/lib/typescript/typescript/Mock/Stores/LayoutStore.d.ts +2 -0
  438. package/lib/typescript/typescript/Mock/Stores/LayoutStore.d.ts.map +1 -0
  439. package/lib/typescript/typescript/Mock/actions/layoutActions.d.ts +6 -0
  440. package/lib/typescript/typescript/Mock/actions/layoutActions.d.ts.map +1 -0
  441. package/lib/typescript/typescript/Mock/connect.d.ts +2 -0
  442. package/lib/typescript/typescript/Mock/connect.d.ts.map +1 -0
  443. package/lib/typescript/typescript/Mock/constants.d.ts +3 -0
  444. package/lib/typescript/typescript/Mock/constants.d.ts.map +1 -0
  445. package/lib/typescript/typescript/Mock/index.d.ts +4 -0
  446. package/lib/typescript/typescript/Mock/index.d.ts.map +1 -0
  447. package/lib/typescript/typescript/Mock/mocks/AppRegistryService.d.ts +5 -0
  448. package/lib/typescript/typescript/Mock/mocks/AppRegistryService.d.ts.map +1 -0
  449. package/lib/typescript/typescript/Mock/mocks/NativeCommandsSender.d.ts +28 -0
  450. package/lib/typescript/typescript/Mock/mocks/NativeCommandsSender.d.ts.map +1 -0
  451. package/lib/typescript/typescript/Mock/mocks/NativeEventsReceiver.d.ts +21 -0
  452. package/lib/typescript/typescript/Mock/mocks/NativeEventsReceiver.d.ts.map +1 -0
  453. package/lib/typescript/typescript/Navigation.d.ts +152 -0
  454. package/lib/typescript/typescript/Navigation.d.ts.map +1 -0
  455. package/lib/typescript/typescript/NavigationDelegate.d.ts +128 -0
  456. package/lib/typescript/typescript/NavigationDelegate.d.ts.map +1 -0
  457. package/lib/typescript/typescript/adapters/AndroidCustomRowForwarder.d.ts +23 -0
  458. package/lib/typescript/typescript/adapters/AndroidCustomRowForwarder.d.ts.map +1 -0
  459. package/lib/typescript/typescript/adapters/AppRegistryService.d.ts +5 -0
  460. package/lib/typescript/typescript/adapters/AppRegistryService.d.ts.map +1 -0
  461. package/lib/typescript/typescript/adapters/AssetResolver.d.ts +5 -0
  462. package/lib/typescript/typescript/adapters/AssetResolver.d.ts.map +1 -0
  463. package/lib/typescript/typescript/adapters/ColorService.d.ts +4 -0
  464. package/lib/typescript/typescript/adapters/ColorService.d.ts.map +1 -0
  465. package/lib/typescript/typescript/adapters/Constants.d.ts +17 -0
  466. package/lib/typescript/typescript/adapters/Constants.d.ts.map +1 -0
  467. package/lib/typescript/typescript/adapters/NativeCommandsSender.d.ts +62 -0
  468. package/lib/typescript/typescript/adapters/NativeCommandsSender.d.ts.map +1 -0
  469. package/lib/typescript/typescript/adapters/NativeEventsReceiver.d.ts +23 -0
  470. package/lib/typescript/typescript/adapters/NativeEventsReceiver.d.ts.map +1 -0
  471. package/lib/typescript/typescript/adapters/NativeEventsReceiver.mock.d.ts +2 -0
  472. package/lib/typescript/typescript/adapters/NativeEventsReceiver.mock.d.ts.map +1 -0
  473. package/lib/typescript/typescript/adapters/NativeRNNTurboEventEmitter.d.ts +8 -0
  474. package/lib/typescript/typescript/adapters/NativeRNNTurboEventEmitter.d.ts.map +1 -0
  475. package/lib/typescript/typescript/adapters/NativeRNNTurboModule.d.ts +28 -0
  476. package/lib/typescript/typescript/adapters/NativeRNNTurboModule.d.ts.map +1 -0
  477. package/lib/typescript/typescript/adapters/TouchablePreview.d.ts +44 -0
  478. package/lib/typescript/typescript/adapters/TouchablePreview.d.ts.map +1 -0
  479. package/lib/typescript/typescript/adapters/UniqueIdProvider.d.ts +4 -0
  480. package/lib/typescript/typescript/adapters/UniqueIdProvider.d.ts.map +1 -0
  481. package/lib/typescript/typescript/commands/Commands.d.ts +41 -0
  482. package/lib/typescript/typescript/commands/Commands.d.ts.map +1 -0
  483. package/lib/typescript/typescript/commands/Commands.test.d.ts +2 -0
  484. package/lib/typescript/typescript/commands/Commands.test.d.ts.map +1 -0
  485. package/lib/typescript/typescript/commands/Deprecations.d.ts +10 -0
  486. package/lib/typescript/typescript/commands/Deprecations.d.ts.map +1 -0
  487. package/lib/typescript/typescript/commands/LayoutTreeCrawler.d.ts +25 -0
  488. package/lib/typescript/typescript/commands/LayoutTreeCrawler.d.ts.map +1 -0
  489. package/lib/typescript/typescript/commands/LayoutTreeCrawler.test.d.ts +2 -0
  490. package/lib/typescript/typescript/commands/LayoutTreeCrawler.test.d.ts.map +1 -0
  491. package/lib/typescript/typescript/commands/LayoutTreeParser.d.ts +17 -0
  492. package/lib/typescript/typescript/commands/LayoutTreeParser.d.ts.map +1 -0
  493. package/lib/typescript/typescript/commands/LayoutTreeParser.test.d.ts +2 -0
  494. package/lib/typescript/typescript/commands/LayoutTreeParser.test.d.ts.map +1 -0
  495. package/lib/typescript/typescript/commands/LayoutType.d.ts +13 -0
  496. package/lib/typescript/typescript/commands/LayoutType.d.ts.map +1 -0
  497. package/lib/typescript/typescript/commands/LayoutType.test.d.ts +2 -0
  498. package/lib/typescript/typescript/commands/LayoutType.test.d.ts.map +1 -0
  499. package/lib/typescript/typescript/commands/OptionsCrawler.d.ts +20 -0
  500. package/lib/typescript/typescript/commands/OptionsCrawler.d.ts.map +1 -0
  501. package/lib/typescript/typescript/commands/OptionsCrawler.test.d.ts +2 -0
  502. package/lib/typescript/typescript/commands/OptionsCrawler.test.d.ts.map +1 -0
  503. package/lib/typescript/typescript/commands/OptionsProcessor.d.ts +40 -0
  504. package/lib/typescript/typescript/commands/OptionsProcessor.d.ts.map +1 -0
  505. package/lib/typescript/typescript/commands/OptionsProcessor.test.d.ts +2 -0
  506. package/lib/typescript/typescript/commands/OptionsProcessor.test.d.ts.map +1 -0
  507. package/lib/typescript/typescript/components/ComponentRegistry.d.ts +14 -0
  508. package/lib/typescript/typescript/components/ComponentRegistry.d.ts.map +1 -0
  509. package/lib/typescript/typescript/components/ComponentRegistry.test.d.ts +2 -0
  510. package/lib/typescript/typescript/components/ComponentRegistry.test.d.ts.map +1 -0
  511. package/lib/typescript/typescript/components/ComponentWrapper.d.ts +13 -0
  512. package/lib/typescript/typescript/components/ComponentWrapper.d.ts.map +1 -0
  513. package/lib/typescript/typescript/components/ComponentWrapper.test.d.ts +2 -0
  514. package/lib/typescript/typescript/components/ComponentWrapper.test.d.ts.map +1 -0
  515. package/lib/typescript/typescript/components/Modal.d.ts +21 -0
  516. package/lib/typescript/typescript/components/Modal.d.ts.map +1 -0
  517. package/lib/typescript/typescript/components/Store.d.ts +27 -0
  518. package/lib/typescript/typescript/components/Store.d.ts.map +1 -0
  519. package/lib/typescript/typescript/components/Store.test.d.ts +2 -0
  520. package/lib/typescript/typescript/components/Store.test.d.ts.map +1 -0
  521. package/lib/typescript/typescript/events/CommandsObserver.d.ts +11 -0
  522. package/lib/typescript/typescript/events/CommandsObserver.d.ts.map +1 -0
  523. package/lib/typescript/typescript/events/CommandsObserver.test.d.ts +2 -0
  524. package/lib/typescript/typescript/events/CommandsObserver.test.d.ts.map +1 -0
  525. package/lib/typescript/typescript/events/ComponentEventsObserver.d.ts +29 -0
  526. package/lib/typescript/typescript/events/ComponentEventsObserver.d.ts.map +1 -0
  527. package/lib/typescript/typescript/events/ComponentEventsObserver.test.d.ts +2 -0
  528. package/lib/typescript/typescript/events/ComponentEventsObserver.test.d.ts.map +1 -0
  529. package/lib/typescript/typescript/events/EventsRegistry.d.ts +34 -0
  530. package/lib/typescript/typescript/events/EventsRegistry.d.ts.map +1 -0
  531. package/lib/typescript/typescript/events/EventsRegistry.test.d.ts +2 -0
  532. package/lib/typescript/typescript/events/EventsRegistry.test.d.ts.map +1 -0
  533. package/lib/typescript/typescript/index.d.ts +19 -0
  534. package/lib/typescript/typescript/index.d.ts.map +1 -0
  535. package/lib/typescript/typescript/interfaces/CommandName.d.ts +19 -0
  536. package/lib/typescript/typescript/interfaces/CommandName.d.ts.map +1 -0
  537. package/lib/typescript/typescript/interfaces/ComponentEvents.d.ts +43 -0
  538. package/lib/typescript/typescript/interfaces/ComponentEvents.d.ts.map +1 -0
  539. package/lib/typescript/typescript/interfaces/EventSubscription.d.ts +4 -0
  540. package/lib/typescript/typescript/interfaces/EventSubscription.d.ts.map +1 -0
  541. package/lib/typescript/typescript/interfaces/Events.d.ts +16 -0
  542. package/lib/typescript/typescript/interfaces/Events.d.ts.map +1 -0
  543. package/lib/typescript/typescript/interfaces/Layout.d.ts +190 -0
  544. package/lib/typescript/typescript/interfaces/Layout.d.ts.map +1 -0
  545. package/lib/typescript/typescript/interfaces/NavigationComponent.d.ts +22 -0
  546. package/lib/typescript/typescript/interfaces/NavigationComponent.d.ts.map +1 -0
  547. package/lib/typescript/typescript/interfaces/NavigationComponentListener.d.ts +14 -0
  548. package/lib/typescript/typescript/interfaces/NavigationComponentListener.d.ts.map +1 -0
  549. package/lib/typescript/typescript/interfaces/NavigationComponentProps.d.ts +11 -0
  550. package/lib/typescript/typescript/interfaces/NavigationComponentProps.d.ts.map +1 -0
  551. package/lib/typescript/typescript/interfaces/NavigationFunctionComponent.d.ts +7 -0
  552. package/lib/typescript/typescript/interfaces/NavigationFunctionComponent.d.ts.map +1 -0
  553. package/lib/typescript/typescript/interfaces/Options.d.ts +1738 -0
  554. package/lib/typescript/typescript/interfaces/Options.d.ts.map +1 -0
  555. package/lib/typescript/typescript/interfaces/ProcessorSubscription.d.ts +4 -0
  556. package/lib/typescript/typescript/interfaces/ProcessorSubscription.d.ts.map +1 -0
  557. package/lib/typescript/typescript/interfaces/Processors.d.ts +9 -0
  558. package/lib/typescript/typescript/interfaces/Processors.d.ts.map +1 -0
  559. package/lib/typescript/typescript/linking/DeferredLinkQueue.d.ts +26 -0
  560. package/lib/typescript/typescript/linking/DeferredLinkQueue.d.ts.map +1 -0
  561. package/lib/typescript/typescript/linking/DeferredLinkQueue.test.d.ts +2 -0
  562. package/lib/typescript/typescript/linking/DeferredLinkQueue.test.d.ts.map +1 -0
  563. package/lib/typescript/typescript/linking/LinkingHandler.d.ts +71 -0
  564. package/lib/typescript/typescript/linking/LinkingHandler.d.ts.map +1 -0
  565. package/lib/typescript/typescript/linking/LinkingHandler.test.d.ts +2 -0
  566. package/lib/typescript/typescript/linking/LinkingHandler.test.d.ts.map +1 -0
  567. package/lib/typescript/typescript/linking/ModalLayoutBuilder.d.ts +21 -0
  568. package/lib/typescript/typescript/linking/ModalLayoutBuilder.d.ts.map +1 -0
  569. package/lib/typescript/typescript/linking/ModalLayoutBuilder.test.d.ts +2 -0
  570. package/lib/typescript/typescript/linking/ModalLayoutBuilder.test.d.ts.map +1 -0
  571. package/lib/typescript/typescript/linking/RouteMatcher.d.ts +23 -0
  572. package/lib/typescript/typescript/linking/RouteMatcher.d.ts.map +1 -0
  573. package/lib/typescript/typescript/linking/RouteMatcher.test.d.ts +2 -0
  574. package/lib/typescript/typescript/linking/RouteMatcher.test.d.ts.map +1 -0
  575. package/lib/typescript/typescript/linking/URLParser.d.ts +16 -0
  576. package/lib/typescript/typescript/linking/URLParser.d.ts.map +1 -0
  577. package/lib/typescript/typescript/linking/URLParser.test.d.ts +2 -0
  578. package/lib/typescript/typescript/linking/URLParser.test.d.ts.map +1 -0
  579. package/lib/typescript/typescript/linking/types.d.ts +107 -0
  580. package/lib/typescript/typescript/linking/types.d.ts.map +1 -0
  581. package/lib/typescript/typescript/package.json +1 -0
  582. package/lib/typescript/typescript/processors/LayoutProcessor.d.ts +9 -0
  583. package/lib/typescript/typescript/processors/LayoutProcessor.d.ts.map +1 -0
  584. package/lib/typescript/typescript/processors/LayoutProcessor.test.d.ts +2 -0
  585. package/lib/typescript/typescript/processors/LayoutProcessor.test.d.ts.map +1 -0
  586. package/lib/typescript/typescript/processors/LayoutProcessorsStore.d.ts +9 -0
  587. package/lib/typescript/typescript/processors/LayoutProcessorsStore.d.ts.map +1 -0
  588. package/lib/typescript/typescript/processors/LayoutProcessorsStore.test.d.ts +2 -0
  589. package/lib/typescript/typescript/processors/LayoutProcessorsStore.test.d.ts.map +1 -0
  590. package/lib/typescript/typescript/processors/OptionProcessorsStore.d.ts +9 -0
  591. package/lib/typescript/typescript/processors/OptionProcessorsStore.d.ts.map +1 -0
  592. package/lib/typescript/typescript/processors/OptionProcessorsStore.test.d.ts +2 -0
  593. package/lib/typescript/typescript/processors/OptionProcessorsStore.test.d.ts.map +1 -0
  594. package/lib/typescript/typescript/types.d.ts +5 -0
  595. package/lib/typescript/typescript/types.d.ts.map +1 -0
  596. package/package.json +56 -0
  597. package/scripts/setup-esm-shim.js +102 -0
@@ -0,0 +1,102 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Postinstall script for @ohos-ports/react-native-navigation
4
+ *
5
+ * Creates an ESM shim for 'react-native' that bridges CJS named exports
6
+ * from @ohos-ports/react-native to ESM named imports.
7
+ *
8
+ * Background: react-native-navigation uses ESM `import { X } from 'react-native'`
9
+ * but @ohos-ports/react-native is CJS with getter-based lazy exports.
10
+ * Node.js ESM cannot statically resolve named exports from CJS getters,
11
+ * so we create a thin ESM wrapper using createRequire.
12
+ */
13
+
14
+ const fs = require('fs');
15
+ const path = require('path');
16
+
17
+ const RN_SHIM_DIR = path.join(__dirname, '..', '..', 'react-native');
18
+
19
+ // Check if @ohos-ports/react-native is available
20
+ let ohosPortsRN;
21
+ try {
22
+ ohosPortsRN = require.resolve('@ohos-ports/react-native');
23
+ } catch (e) {
24
+ // @ohos-ports/react-native not installed — skip shim creation
25
+ // User may have regular react-native installed instead
26
+ process.exit(0);
27
+ }
28
+
29
+ // Create shim directory
30
+ fs.mkdirSync(RN_SHIM_DIR, { recursive: true });
31
+
32
+ // Write package.json for the shim
33
+ const shimPkg = {
34
+ name: 'react-native',
35
+ version: '0.0.0-shim',
36
+ type: 'module',
37
+ main: './index.mjs',
38
+ exports: {
39
+ '.': { default: './index.mjs' },
40
+ './package.json': './package.json'
41
+ }
42
+ };
43
+ fs.writeFileSync(
44
+ path.join(RN_SHIM_DIR, 'package.json'),
45
+ JSON.stringify(shimPkg, null, 2)
46
+ );
47
+
48
+ // Write the ESM wrapper
49
+ const shimContent = `// ESM shim for @ohos-ports/react-native (auto-generated by postinstall)
50
+ import { createRequire } from 'module';
51
+ const require = createRequire(import.meta.url);
52
+ const rn = require('@ohos-ports/react-native');
53
+
54
+ function safeGet(obj, key) {
55
+ try { return obj[key]; } catch(e) { return undefined; }
56
+ }
57
+
58
+ // Dimensions.get('window') fails without RN bridge — provide mock fallback
59
+ const _origDimensions = rn.Dimensions;
60
+ const Dimensions = {
61
+ get: (name) => {
62
+ try {
63
+ const val = _origDimensions.get(name);
64
+ if (val) return val;
65
+ } catch(e) {}
66
+ return { width: 375, height: 812, scale: 1, fontScale: 1 };
67
+ },
68
+ addEventListener: _origDimensions && _origDimensions.addEventListener ? _origDimensions.addEventListener.bind(_origDimensions) : undefined,
69
+ removeEventListener: _origDimensions && _origDimensions.removeEventListener ? _origDimensions.removeEventListener.bind(_origDimensions) : undefined,
70
+ set: _origDimensions && _origDimensions.set ? _origDimensions.set.bind(_origDimensions) : undefined,
71
+ };
72
+
73
+ export const AppRegistry = rn.AppRegistry;
74
+ export { Dimensions };
75
+ export const DynamicColorIOS = rn.DynamicColorIOS;
76
+ export const Image = rn.Image;
77
+ export const Linking = rn.Linking;
78
+ export const NativeEventEmitter = rn.NativeEventEmitter;
79
+ export const NativeModules = rn.NativeModules;
80
+ export const Platform = rn.Platform;
81
+ export const StyleSheet = rn.StyleSheet;
82
+ export const TouchableNativeFeedback = rn.TouchableNativeFeedback;
83
+ export const TouchableOpacity = rn.TouchableOpacity;
84
+ export const TouchableWithoutFeedback = rn.TouchableWithoutFeedback;
85
+ export const TurboModuleRegistry = rn.TurboModuleRegistry;
86
+ export const View = rn.View;
87
+ export const findNodeHandle = rn.findNodeHandle;
88
+ export const processColor = rn.processColor;
89
+ // These may fail due to Flow syntax in sub-modules — provide safe fallbacks
90
+ export const Button = safeGet(rn, 'Button') || (() => null);
91
+ export const Text = safeGet(rn, 'Text') || (() => null);
92
+ export const requireNativeComponent = safeGet(rn, 'requireNativeComponent') || ((name) => ({ displayName: name }));
93
+
94
+ export default rn;
95
+ `;
96
+
97
+ fs.writeFileSync(
98
+ path.join(RN_SHIM_DIR, 'index.mjs'),
99
+ shimContent
100
+ );
101
+
102
+ console.log('@ohos-ports/react-native-navigation: ESM shim for react-native created successfully');