one 2.10.0 → 2.11.1

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 (1421) hide show
  1. package/One.podspec +14 -0
  2. package/android/src/main/java/com/margelo/nitro/one/OneUpdatesLauncher.kt +28 -0
  3. package/android/src/main/java/dev/onejs/one/OnePackage.kt +2 -0
  4. package/android/src/main/java/dev/onejs/onenative/OneDOMHostManager.kt +85 -0
  5. package/android/src/main/java/dev/onejs/onenative/OneDOMHostView.kt +399 -0
  6. package/android/src/main/java/dev/onejs/onenative/OneDOMResources.kt +126 -0
  7. package/dist/cjs/cli/iosLinkSet.cjs +111 -0
  8. package/dist/cjs/cli/iosLinkSet.native.cjs +120 -0
  9. package/dist/cjs/cli/iosLinkSet.native.js +122 -0
  10. package/dist/cjs/cli/iosLinkSet.native.js.map +1 -0
  11. package/dist/cjs/cli/iosLinkSetAnalysis.cjs +329 -0
  12. package/dist/cjs/cli/iosLinkSetAnalysis.native.cjs +714 -0
  13. package/dist/cjs/cli/iosLinkSetAnalysis.native.js +716 -0
  14. package/dist/cjs/cli/iosLinkSetAnalysis.native.js.map +1 -0
  15. package/dist/cjs/cli/prebuild.cjs +5 -1
  16. package/dist/cjs/cli/prebuild.native.cjs +4 -2
  17. package/dist/cjs/cli/prebuild.native.js +4 -2
  18. package/dist/cjs/cli/prebuild.native.js.map +1 -1
  19. package/dist/cjs/cli/updatesPublish.cjs +16 -12
  20. package/dist/cjs/cli/updatesPublish.native.cjs +45 -22
  21. package/dist/cjs/cli/updatesPublish.native.js +45 -22
  22. package/dist/cjs/cli/updatesPublish.native.js.map +1 -1
  23. package/dist/cjs/cli.cjs +4 -2
  24. package/dist/cjs/cli.native.cjs +4 -2
  25. package/dist/cjs/cli.native.js +4 -2
  26. package/dist/cjs/cli.native.js.map +1 -1
  27. package/dist/cjs/createApp.cjs +8 -0
  28. package/dist/cjs/createHandleRequest.cjs +4 -17
  29. package/dist/cjs/createHandleRequest.native.cjs +6 -19
  30. package/dist/cjs/createHandleRequest.native.js +6 -19
  31. package/dist/cjs/createHandleRequest.native.js.map +1 -1
  32. package/dist/cjs/dom/browserBridge.cjs +177 -0
  33. package/dist/cjs/dom/browserBridge.native.cjs +290 -0
  34. package/dist/cjs/dom/browserBridge.native.js +292 -0
  35. package/dist/cjs/dom/browserBridge.native.js.map +1 -0
  36. package/dist/cjs/dom/client.cjs +69 -0
  37. package/dist/cjs/dom/client.native.cjs +81 -0
  38. package/dist/cjs/dom/client.native.js +83 -0
  39. package/dist/cjs/dom/client.native.js.map +1 -0
  40. package/dist/cjs/dom/context.cjs +25 -0
  41. package/dist/cjs/dom/context.native.cjs +27 -0
  42. package/dist/cjs/dom/context.native.js +29 -0
  43. package/dist/cjs/dom/context.native.js.map +1 -0
  44. package/dist/cjs/dom/host.native.cjs +152 -0
  45. package/dist/cjs/dom/host.native.js +154 -0
  46. package/dist/cjs/dom/host.native.js.map +1 -0
  47. package/dist/cjs/dom/index.cjs +88 -0
  48. package/dist/cjs/dom/index.native.cjs +136 -0
  49. package/dist/cjs/dom/index.native.js +138 -0
  50. package/dist/cjs/dom/index.native.js.map +1 -0
  51. package/dist/cjs/dom/measure.cjs +51 -0
  52. package/dist/cjs/dom/measure.native.cjs +55 -0
  53. package/dist/cjs/dom/measure.native.js +57 -0
  54. package/dist/cjs/dom/measure.native.js.map +1 -0
  55. package/dist/cjs/dom/nativeBridge.cjs +135 -0
  56. package/dist/cjs/dom/nativeBridge.native.cjs +223 -0
  57. package/dist/cjs/dom/nativeBridge.native.js +225 -0
  58. package/dist/cjs/dom/nativeBridge.native.js.map +1 -0
  59. package/dist/cjs/dom/peer.cjs +148 -0
  60. package/dist/cjs/dom/peer.native.cjs +227 -0
  61. package/dist/cjs/dom/peer.native.js +229 -0
  62. package/dist/cjs/dom/peer.native.js.map +1 -0
  63. package/dist/cjs/dom/protocol.cjs +185 -0
  64. package/dist/cjs/dom/protocol.native.cjs +209 -0
  65. package/dist/cjs/dom/protocol.native.js +211 -0
  66. package/dist/cjs/dom/protocol.native.js.map +1 -0
  67. package/dist/cjs/dom/serialize.cjs +140 -0
  68. package/dist/cjs/dom/serialize.native.cjs +284 -0
  69. package/dist/cjs/dom/serialize.native.js +286 -0
  70. package/dist/cjs/dom/serialize.native.js.map +1 -0
  71. package/dist/cjs/dom/types.cjs +16 -0
  72. package/dist/cjs/dom/types.native.cjs +18 -0
  73. package/dist/cjs/dom/types.native.js +20 -0
  74. package/dist/cjs/dom/types.native.js.map +1 -0
  75. package/dist/cjs/fork/getPathFromState.cjs +9 -1
  76. package/dist/cjs/fork/getPathFromState.native.cjs +48 -4
  77. package/dist/cjs/fork/getPathFromState.native.js +48 -4
  78. package/dist/cjs/fork/getPathFromState.native.js.map +1 -1
  79. package/dist/cjs/hooks.cjs +50 -1
  80. package/dist/cjs/hooks.native.cjs +55 -2
  81. package/dist/cjs/hooks.native.js +55 -2
  82. package/dist/cjs/hooks.native.js.map +1 -1
  83. package/dist/cjs/index.cjs +2 -0
  84. package/dist/cjs/index.native.cjs +2 -0
  85. package/dist/cjs/index.native.js +2 -0
  86. package/dist/cjs/index.native.js.map +1 -1
  87. package/dist/cjs/layouts/Tabs.linux.cjs +48 -0
  88. package/dist/cjs/layouts/Tabs.linux.native.cjs +50 -0
  89. package/dist/cjs/layouts/Tabs.linux.native.js +52 -0
  90. package/dist/cjs/layouts/Tabs.linux.native.js.map +1 -0
  91. package/dist/cjs/layouts/stack-navigator-desktop.cjs +26 -0
  92. package/dist/cjs/layouts/stack-navigator-desktop.native.cjs +28 -0
  93. package/dist/cjs/layouts/stack-navigator-desktop.native.js +30 -0
  94. package/dist/cjs/layouts/stack-navigator-desktop.native.js.map +1 -0
  95. package/dist/cjs/layouts/stack-navigator.linux.cjs +39 -0
  96. package/dist/cjs/layouts/stack-navigator.linux.native.cjs +41 -0
  97. package/dist/cjs/layouts/stack-navigator.linux.native.js +43 -0
  98. package/dist/cjs/layouts/stack-navigator.linux.native.js.map +1 -0
  99. package/dist/cjs/layouts/stack-navigator.macos.cjs +29 -0
  100. package/dist/cjs/layouts/stack-navigator.macos.native.cjs +31 -0
  101. package/dist/cjs/layouts/stack-navigator.macos.native.js +33 -0
  102. package/dist/cjs/layouts/stack-navigator.macos.native.js.map +1 -0
  103. package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.linux.cjs +18 -0
  104. package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.linux.native.cjs +20 -0
  105. package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.linux.native.js +22 -0
  106. package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.linux.native.js.map +1 -0
  107. package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.macos.cjs +30 -0
  108. package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.macos.native.cjs +33 -0
  109. package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.macos.native.js +35 -0
  110. package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.macos.native.js.map +1 -0
  111. package/dist/cjs/link/Link.cjs +4 -3
  112. package/dist/cjs/link/Link.native.cjs +4 -3
  113. package/dist/cjs/link/Link.native.js +4 -3
  114. package/dist/cjs/link/Link.native.js.map +1 -1
  115. package/dist/cjs/loaderResponseToModule.cjs +41 -0
  116. package/dist/cjs/loaderResponseToModule.native.cjs +44 -0
  117. package/dist/cjs/loaderResponseToModule.native.js +46 -0
  118. package/dist/cjs/loaderResponseToModule.native.js.map +1 -0
  119. package/dist/cjs/loaderSearchParams.cjs +99 -0
  120. package/dist/cjs/loaderSearchParams.native.cjs +139 -0
  121. package/dist/cjs/loaderSearchParams.native.js +141 -0
  122. package/dist/cjs/loaderSearchParams.native.js.map +1 -0
  123. package/dist/cjs/one-shared.cjs +129 -0
  124. package/dist/cjs/one-shared.native.cjs +132 -0
  125. package/dist/cjs/one-shared.native.js +134 -0
  126. package/dist/cjs/one-shared.native.js.map +1 -0
  127. package/dist/cjs/one.cjs +2 -113
  128. package/dist/cjs/one.linux.cjs +57 -0
  129. package/dist/cjs/one.linux.native.cjs +59 -0
  130. package/dist/cjs/one.linux.native.js +61 -0
  131. package/dist/cjs/one.linux.native.js.map +1 -0
  132. package/dist/cjs/one.macos.cjs +45 -0
  133. package/dist/cjs/one.macos.native.cjs +47 -0
  134. package/dist/cjs/one.macos.native.js +49 -0
  135. package/dist/cjs/one.macos.native.js.map +1 -0
  136. package/dist/cjs/one.native.cjs +2 -114
  137. package/dist/cjs/one.native.js +2 -114
  138. package/dist/cjs/one.native.js.map +1 -1
  139. package/dist/cjs/platform/adaptive/fixed.cjs +48 -0
  140. package/dist/cjs/platform/adaptive/fixed.native.cjs +50 -0
  141. package/dist/cjs/platform/adaptive/fixed.native.js +52 -0
  142. package/dist/cjs/platform/adaptive/fixed.native.js.map +1 -0
  143. package/dist/cjs/platform/adaptive/index.cjs +2 -24
  144. package/dist/cjs/platform/adaptive/index.linux.cjs +18 -0
  145. package/dist/cjs/platform/adaptive/index.linux.native.cjs +20 -0
  146. package/dist/cjs/platform/adaptive/index.linux.native.js +22 -0
  147. package/dist/cjs/platform/adaptive/index.linux.native.js.map +1 -0
  148. package/dist/cjs/platform/adaptive/index.macos.cjs +39 -0
  149. package/dist/cjs/platform/adaptive/index.macos.native.cjs +41 -0
  150. package/dist/cjs/platform/adaptive/index.macos.native.js +43 -0
  151. package/dist/cjs/platform/adaptive/index.macos.native.js.map +1 -0
  152. package/dist/cjs/platform/controlTypes.cjs +16 -0
  153. package/dist/cjs/platform/controlTypes.native.cjs +18 -0
  154. package/dist/cjs/platform/controlTypes.native.js +20 -0
  155. package/dist/cjs/platform/controlTypes.native.js.map +1 -0
  156. package/dist/cjs/platform/desktop/appCommandTypes.cjs +16 -0
  157. package/dist/cjs/platform/desktop/appCommandTypes.native.cjs +18 -0
  158. package/dist/cjs/platform/desktop/appCommandTypes.native.js +20 -0
  159. package/dist/cjs/platform/desktop/appCommandTypes.native.js.map +1 -0
  160. package/dist/cjs/platform/desktop/createAppCommands.cjs +55 -0
  161. package/dist/cjs/platform/desktop/createAppCommands.native.cjs +60 -0
  162. package/dist/cjs/platform/desktop/createAppCommands.native.js +62 -0
  163. package/dist/cjs/platform/desktop/createAppCommands.native.js.map +1 -0
  164. package/dist/cjs/platform/desktop/createControls.cjs +65 -0
  165. package/dist/cjs/platform/desktop/createControls.native.cjs +69 -0
  166. package/dist/cjs/platform/desktop/createControls.native.js +71 -0
  167. package/dist/cjs/platform/desktop/createControls.native.js.map +1 -0
  168. package/dist/cjs/platform/linux/AppCommands.linux.cjs +25 -0
  169. package/dist/cjs/platform/linux/AppCommands.linux.native.cjs +27 -0
  170. package/dist/cjs/platform/linux/AppCommands.linux.native.js +29 -0
  171. package/dist/cjs/platform/linux/AppCommands.linux.native.js.map +1 -0
  172. package/dist/cjs/platform/linux/Button.linux.cjs +41 -0
  173. package/dist/cjs/platform/linux/Button.linux.native.cjs +49 -0
  174. package/dist/cjs/platform/linux/Button.linux.native.js +51 -0
  175. package/dist/cjs/platform/linux/Button.linux.native.js.map +1 -0
  176. package/dist/cjs/platform/linux/DropDown.linux.cjs +74 -0
  177. package/dist/cjs/platform/linux/DropDown.linux.native.cjs +91 -0
  178. package/dist/cjs/platform/linux/DropDown.linux.native.js +93 -0
  179. package/dist/cjs/platform/linux/DropDown.linux.native.js.map +1 -0
  180. package/dist/cjs/platform/linux/NavigationView.linux.cjs +114 -0
  181. package/dist/cjs/platform/linux/NavigationView.linux.native.cjs +130 -0
  182. package/dist/cjs/platform/linux/NavigationView.linux.native.js +132 -0
  183. package/dist/cjs/platform/linux/NavigationView.linux.native.js.map +1 -0
  184. package/dist/cjs/platform/linux/OneLinuxButtonNativeComponent.cjs +46 -0
  185. package/dist/cjs/platform/linux/OneLinuxButtonNativeComponent.native.cjs +46 -0
  186. package/dist/cjs/platform/linux/OneLinuxButtonNativeComponent.native.js +47 -0
  187. package/dist/cjs/platform/linux/OneLinuxButtonNativeComponent.native.js.map +7 -0
  188. package/dist/cjs/platform/linux/OneLinuxDropDownNativeComponent.cjs +55 -0
  189. package/dist/cjs/platform/linux/OneLinuxDropDownNativeComponent.native.cjs +55 -0
  190. package/dist/cjs/platform/linux/OneLinuxDropDownNativeComponent.native.js +56 -0
  191. package/dist/cjs/platform/linux/OneLinuxDropDownNativeComponent.native.js.map +7 -0
  192. package/dist/cjs/platform/linux/OneLinuxNavigationNativeComponent.cjs +55 -0
  193. package/dist/cjs/platform/linux/OneLinuxNavigationNativeComponent.native.cjs +55 -0
  194. package/dist/cjs/platform/linux/OneLinuxNavigationNativeComponent.native.js +56 -0
  195. package/dist/cjs/platform/linux/OneLinuxNavigationNativeComponent.native.js.map +7 -0
  196. package/dist/cjs/platform/linux/OneLinuxProgressBarNativeComponent.cjs +33 -0
  197. package/dist/cjs/platform/linux/OneLinuxProgressBarNativeComponent.native.cjs +33 -0
  198. package/dist/cjs/platform/linux/OneLinuxProgressBarNativeComponent.native.js +34 -0
  199. package/dist/cjs/platform/linux/OneLinuxProgressBarNativeComponent.native.js.map +7 -0
  200. package/dist/cjs/platform/linux/OneLinuxSecureFieldNativeComponent.cjs +52 -0
  201. package/dist/cjs/platform/linux/OneLinuxSecureFieldNativeComponent.native.cjs +52 -0
  202. package/dist/cjs/platform/linux/OneLinuxSecureFieldNativeComponent.native.js +53 -0
  203. package/dist/cjs/platform/linux/OneLinuxSecureFieldNativeComponent.native.js.map +7 -0
  204. package/dist/cjs/platform/linux/OneLinuxSegmentedControlNativeComponent.cjs +47 -0
  205. package/dist/cjs/platform/linux/OneLinuxSegmentedControlNativeComponent.native.cjs +47 -0
  206. package/dist/cjs/platform/linux/OneLinuxSegmentedControlNativeComponent.native.js +48 -0
  207. package/dist/cjs/platform/linux/OneLinuxSegmentedControlNativeComponent.native.js.map +7 -0
  208. package/dist/cjs/platform/linux/OneLinuxSliderNativeComponent.cjs +57 -0
  209. package/dist/cjs/platform/linux/OneLinuxSliderNativeComponent.native.cjs +57 -0
  210. package/dist/cjs/platform/linux/OneLinuxSliderNativeComponent.native.js +58 -0
  211. package/dist/cjs/platform/linux/OneLinuxSliderNativeComponent.native.js.map +7 -0
  212. package/dist/cjs/platform/linux/OneLinuxStepperNativeComponent.cjs +50 -0
  213. package/dist/cjs/platform/linux/OneLinuxStepperNativeComponent.native.cjs +50 -0
  214. package/dist/cjs/platform/linux/OneLinuxStepperNativeComponent.native.js +51 -0
  215. package/dist/cjs/platform/linux/OneLinuxStepperNativeComponent.native.js.map +7 -0
  216. package/dist/cjs/platform/linux/OneLinuxSwitchNativeComponent.cjs +45 -0
  217. package/dist/cjs/platform/linux/OneLinuxSwitchNativeComponent.native.cjs +45 -0
  218. package/dist/cjs/platform/linux/OneLinuxSwitchNativeComponent.native.js +46 -0
  219. package/dist/cjs/platform/linux/OneLinuxSwitchNativeComponent.native.js.map +7 -0
  220. package/dist/cjs/platform/linux/OneLinuxTextFieldNativeComponent.cjs +52 -0
  221. package/dist/cjs/platform/linux/OneLinuxTextFieldNativeComponent.native.cjs +52 -0
  222. package/dist/cjs/platform/linux/OneLinuxTextFieldNativeComponent.native.js +53 -0
  223. package/dist/cjs/platform/linux/OneLinuxTextFieldNativeComponent.native.js.map +7 -0
  224. package/dist/cjs/platform/linux/OneLinuxToggleNativeComponent.cjs +47 -0
  225. package/dist/cjs/platform/linux/OneLinuxToggleNativeComponent.native.cjs +47 -0
  226. package/dist/cjs/platform/linux/OneLinuxToggleNativeComponent.native.js +48 -0
  227. package/dist/cjs/platform/linux/OneLinuxToggleNativeComponent.native.js.map +7 -0
  228. package/dist/cjs/platform/linux/ProgressBar.linux.cjs +42 -0
  229. package/dist/cjs/platform/linux/ProgressBar.linux.native.cjs +45 -0
  230. package/dist/cjs/platform/linux/ProgressBar.linux.native.js +47 -0
  231. package/dist/cjs/platform/linux/ProgressBar.linux.native.js.map +1 -0
  232. package/dist/cjs/platform/linux/SecureField.linux.cjs +31 -0
  233. package/dist/cjs/platform/linux/SecureField.linux.native.cjs +33 -0
  234. package/dist/cjs/platform/linux/SecureField.linux.native.js +35 -0
  235. package/dist/cjs/platform/linux/SecureField.linux.native.js.map +1 -0
  236. package/dist/cjs/platform/linux/SegmentedControl.linux.cjs +39 -0
  237. package/dist/cjs/platform/linux/SegmentedControl.linux.native.cjs +49 -0
  238. package/dist/cjs/platform/linux/SegmentedControl.linux.native.js +51 -0
  239. package/dist/cjs/platform/linux/SegmentedControl.linux.native.js.map +1 -0
  240. package/dist/cjs/platform/linux/Slider.linux.cjs +71 -0
  241. package/dist/cjs/platform/linux/Slider.linux.native.cjs +78 -0
  242. package/dist/cjs/platform/linux/Slider.linux.native.js +80 -0
  243. package/dist/cjs/platform/linux/Slider.linux.native.js.map +1 -0
  244. package/dist/cjs/platform/linux/Stepper.linux.cjs +57 -0
  245. package/dist/cjs/platform/linux/Stepper.linux.native.cjs +62 -0
  246. package/dist/cjs/platform/linux/Stepper.linux.native.js +64 -0
  247. package/dist/cjs/platform/linux/Stepper.linux.native.js.map +1 -0
  248. package/dist/cjs/platform/linux/Switch.linux.cjs +47 -0
  249. package/dist/cjs/platform/linux/Switch.linux.native.cjs +52 -0
  250. package/dist/cjs/platform/linux/Switch.linux.native.js +54 -0
  251. package/dist/cjs/platform/linux/Switch.linux.native.js.map +1 -0
  252. package/dist/cjs/platform/linux/TextField.linux.cjs +59 -0
  253. package/dist/cjs/platform/linux/TextField.linux.native.cjs +68 -0
  254. package/dist/cjs/platform/linux/TextField.linux.native.js +70 -0
  255. package/dist/cjs/platform/linux/TextField.linux.native.js.map +1 -0
  256. package/dist/cjs/platform/linux/Toggle.linux.cjs +40 -0
  257. package/dist/cjs/platform/linux/Toggle.linux.native.cjs +50 -0
  258. package/dist/cjs/platform/linux/Toggle.linux.native.js +52 -0
  259. package/dist/cjs/platform/linux/Toggle.linux.native.js.map +1 -0
  260. package/dist/cjs/platform/linux/Window.linux.cjs +27 -0
  261. package/dist/cjs/platform/linux/Window.linux.native.cjs +29 -0
  262. package/dist/cjs/platform/linux/Window.linux.native.js +31 -0
  263. package/dist/cjs/platform/linux/Window.linux.native.js.map +1 -0
  264. package/dist/cjs/platform/mac/AppCommands.macos.cjs +25 -0
  265. package/dist/cjs/platform/mac/AppCommands.macos.native.cjs +27 -0
  266. package/dist/cjs/platform/mac/AppCommands.macos.native.js +29 -0
  267. package/dist/cjs/platform/mac/AppCommands.macos.native.js.map +1 -0
  268. package/dist/cjs/platform/mac/Button.macos.cjs +35 -0
  269. package/dist/cjs/platform/mac/Button.macos.native.cjs +40 -0
  270. package/dist/cjs/platform/mac/Button.macos.native.js +42 -0
  271. package/dist/cjs/platform/mac/Button.macos.native.js.map +1 -0
  272. package/dist/cjs/platform/mac/Image.macos.cjs +48 -0
  273. package/dist/cjs/platform/mac/Image.macos.native.cjs +51 -0
  274. package/dist/cjs/platform/mac/Image.macos.native.js +53 -0
  275. package/dist/cjs/platform/mac/Image.macos.native.js.map +1 -0
  276. package/dist/cjs/platform/mac/OneMacButtonNativeComponent.cjs +47 -0
  277. package/dist/cjs/platform/mac/OneMacButtonNativeComponent.native.cjs +47 -0
  278. package/dist/cjs/platform/mac/OneMacButtonNativeComponent.native.js +48 -0
  279. package/dist/cjs/platform/mac/OneMacButtonNativeComponent.native.js.map +7 -0
  280. package/dist/cjs/platform/mac/OneMacImageNativeComponent.cjs +35 -0
  281. package/dist/cjs/platform/mac/OneMacImageNativeComponent.native.cjs +35 -0
  282. package/dist/cjs/platform/mac/OneMacImageNativeComponent.native.js +36 -0
  283. package/dist/cjs/platform/mac/OneMacImageNativeComponent.native.js.map +7 -0
  284. package/dist/cjs/platform/mac/OneMacPopUpButtonNativeComponent.cjs +47 -0
  285. package/dist/cjs/platform/mac/OneMacPopUpButtonNativeComponent.native.cjs +47 -0
  286. package/dist/cjs/platform/mac/OneMacPopUpButtonNativeComponent.native.js +48 -0
  287. package/dist/cjs/platform/mac/OneMacPopUpButtonNativeComponent.native.js.map +7 -0
  288. package/dist/cjs/platform/mac/OneMacSegmentedControlNativeComponent.cjs +48 -0
  289. package/dist/cjs/platform/mac/OneMacSegmentedControlNativeComponent.native.cjs +48 -0
  290. package/dist/cjs/platform/mac/OneMacSegmentedControlNativeComponent.native.js +49 -0
  291. package/dist/cjs/platform/mac/OneMacSegmentedControlNativeComponent.native.js.map +7 -0
  292. package/dist/cjs/platform/mac/OneMacToggleNativeComponent.cjs +46 -0
  293. package/dist/cjs/platform/mac/OneMacToggleNativeComponent.native.cjs +46 -0
  294. package/dist/cjs/platform/mac/OneMacToggleNativeComponent.native.js +47 -0
  295. package/dist/cjs/platform/mac/OneMacToggleNativeComponent.native.js.map +7 -0
  296. package/dist/cjs/platform/mac/PopUpButton.macos.cjs +51 -0
  297. package/dist/cjs/platform/mac/PopUpButton.macos.native.cjs +56 -0
  298. package/dist/cjs/platform/mac/PopUpButton.macos.native.js +58 -0
  299. package/dist/cjs/platform/mac/PopUpButton.macos.native.js.map +1 -0
  300. package/dist/cjs/platform/mac/SegmentedControl.macos.cjs +38 -0
  301. package/dist/cjs/platform/mac/SegmentedControl.macos.native.cjs +47 -0
  302. package/dist/cjs/platform/mac/SegmentedControl.macos.native.js +49 -0
  303. package/dist/cjs/platform/mac/SegmentedControl.macos.native.js.map +1 -0
  304. package/dist/cjs/platform/mac/Toggle.macos.cjs +38 -0
  305. package/dist/cjs/platform/mac/Toggle.macos.native.cjs +47 -0
  306. package/dist/cjs/platform/mac/Toggle.macos.native.js +49 -0
  307. package/dist/cjs/platform/mac/Toggle.macos.native.js.map +1 -0
  308. package/dist/cjs/platform/specs/OneDOMHostNativeComponent.cjs +71 -0
  309. package/dist/cjs/platform/specs/OneDOMHostNativeComponent.native.cjs +71 -0
  310. package/dist/cjs/platform/specs/OneDOMHostNativeComponent.native.js +72 -0
  311. package/dist/cjs/platform/specs/OneDOMHostNativeComponent.native.js.map +7 -0
  312. package/dist/cjs/platform/split-view/split-view.linux.cjs +18 -0
  313. package/dist/cjs/platform/split-view/split-view.linux.native.cjs +20 -0
  314. package/dist/cjs/platform/split-view/split-view.linux.native.js +22 -0
  315. package/dist/cjs/platform/split-view/split-view.linux.native.js.map +1 -0
  316. package/dist/cjs/platform/split-view/split-view.macos.cjs +34 -0
  317. package/dist/cjs/platform/split-view/split-view.macos.native.cjs +37 -0
  318. package/dist/cjs/platform/split-view/split-view.macos.native.js +39 -0
  319. package/dist/cjs/platform/split-view/split-view.macos.native.js.map +1 -0
  320. package/dist/cjs/platform/store-review/index.native.cjs +1 -1
  321. package/dist/cjs/platform/store-review/index.native.js +1 -1
  322. package/dist/cjs/platform/store-review/index.native.js.map +1 -1
  323. package/dist/cjs/platform/ui/Image.linux.cjs +18 -0
  324. package/dist/cjs/platform/ui/Image.linux.native.cjs +20 -0
  325. package/dist/cjs/platform/ui/Image.linux.native.js +22 -0
  326. package/dist/cjs/platform/ui/Image.linux.native.js.map +1 -0
  327. package/dist/cjs/platform/ui/Image.macos.cjs +33 -0
  328. package/dist/cjs/platform/ui/Image.macos.native.cjs +36 -0
  329. package/dist/cjs/platform/ui/Image.macos.native.js +38 -0
  330. package/dist/cjs/platform/ui/Image.macos.native.js.map +1 -0
  331. package/dist/cjs/router/getRoutes.cjs +2 -0
  332. package/dist/cjs/router/getRoutes.native.cjs +2 -0
  333. package/dist/cjs/router/getRoutes.native.js +2 -0
  334. package/dist/cjs/router/getRoutes.native.js.map +1 -1
  335. package/dist/cjs/router/router.cjs +57 -31
  336. package/dist/cjs/router/router.native.cjs +20 -4
  337. package/dist/cjs/router/router.native.js +20 -4
  338. package/dist/cjs/router/router.native.js.map +1 -1
  339. package/dist/cjs/searchParams.cjs +102 -0
  340. package/dist/cjs/searchParams.native.cjs +194 -0
  341. package/dist/cjs/searchParams.native.js +196 -0
  342. package/dist/cjs/searchParams.native.js.map +1 -0
  343. package/dist/cjs/server/oneServe.cjs +15 -3
  344. package/dist/cjs/server/oneServe.native.cjs +16 -3
  345. package/dist/cjs/server/oneServe.native.js +16 -3
  346. package/dist/cjs/server/oneServe.native.js.map +1 -1
  347. package/dist/cjs/server/workerHandler.cjs +16 -3
  348. package/dist/cjs/server/workerHandler.native.cjs +17 -3
  349. package/dist/cjs/server/workerHandler.native.js +17 -3
  350. package/dist/cjs/server/workerHandler.native.js.map +1 -1
  351. package/dist/cjs/standardSchema.cjs +36 -0
  352. package/dist/cjs/standardSchema.native.cjs +39 -0
  353. package/dist/cjs/standardSchema.native.js +41 -0
  354. package/dist/cjs/standardSchema.native.js.map +1 -0
  355. package/dist/cjs/typed-routes/generateRouteTypes.cjs +26 -1
  356. package/dist/cjs/typed-routes/generateRouteTypes.native.cjs +68 -1
  357. package/dist/cjs/typed-routes/generateRouteTypes.native.js +68 -1
  358. package/dist/cjs/typed-routes/generateRouteTypes.native.js.map +1 -1
  359. package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.cjs +27 -10
  360. package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.cjs +35 -9
  361. package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.js +35 -9
  362. package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.js.map +1 -1
  363. package/dist/cjs/typed-routes/searchParamSchemas.cjs +316 -0
  364. package/dist/cjs/typed-routes/searchParamSchemas.native.cjs +527 -0
  365. package/dist/cjs/typed-routes/searchParamSchemas.native.js +529 -0
  366. package/dist/cjs/typed-routes/searchParamSchemas.native.js.map +1 -0
  367. package/dist/cjs/typed-routes/searchSchemaEntries.cjs +34 -0
  368. package/dist/cjs/typed-routes/searchSchemaEntries.native.cjs +38 -0
  369. package/dist/cjs/typed-routes/searchSchemaEntries.native.js +40 -0
  370. package/dist/cjs/typed-routes/searchSchemaEntries.native.js.map +1 -0
  371. package/dist/cjs/useLoader.cjs +40 -30
  372. package/dist/cjs/useLoader.native.cjs +51 -37
  373. package/dist/cjs/useLoader.native.js +51 -37
  374. package/dist/cjs/useLoader.native.js.map +1 -1
  375. package/dist/cjs/utils/cleanUrl.cjs +31 -3
  376. package/dist/cjs/utils/cleanUrl.native.cjs +31 -3
  377. package/dist/cjs/utils/cleanUrl.native.js +31 -3
  378. package/dist/cjs/utils/cleanUrl.native.js.map +1 -1
  379. package/dist/cjs/validateParams.cjs +3 -5
  380. package/dist/cjs/validateParams.native.cjs +3 -6
  381. package/dist/cjs/validateParams.native.js +3 -6
  382. package/dist/cjs/validateParams.native.js.map +1 -1
  383. package/dist/cjs/{validateSearch.cjs → validateSearchParams.cjs} +21 -14
  384. package/dist/cjs/{validateSearch.native.cjs → validateSearchParams.native.cjs} +21 -15
  385. package/dist/cjs/{validateSearch.native.js → validateSearchParams.native.js} +22 -16
  386. package/dist/cjs/validateSearchParams.native.js.map +1 -0
  387. package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.cjs +36 -2
  388. package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.native.cjs +36 -2
  389. package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.native.js +36 -2
  390. package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.native.js.map +1 -1
  391. package/dist/cjs/vite/dom/browser.cjs +172 -0
  392. package/dist/cjs/vite/dom/browser.native.cjs +220 -0
  393. package/dist/cjs/vite/dom/browser.native.js +222 -0
  394. package/dist/cjs/vite/dom/browser.native.js.map +1 -0
  395. package/dist/cjs/vite/dom/directive.cjs +76 -0
  396. package/dist/cjs/vite/dom/directive.native.cjs +135 -0
  397. package/dist/cjs/vite/dom/directive.native.js +137 -0
  398. package/dist/cjs/vite/dom/directive.native.js.map +1 -0
  399. package/dist/cjs/vite/dom/registry.cjs +71 -0
  400. package/dist/cjs/vite/dom/registry.native.cjs +184 -0
  401. package/dist/cjs/vite/dom/registry.native.js +186 -0
  402. package/dist/cjs/vite/dom/registry.native.js.map +1 -0
  403. package/dist/cjs/vite/one.cjs +28 -3
  404. package/dist/cjs/vite/one.native.cjs +35 -10
  405. package/dist/cjs/vite/one.native.js +35 -10
  406. package/dist/cjs/vite/one.native.js.map +1 -1
  407. package/dist/cjs/vite/plugins/clientTreeShakePlugin.cjs +1 -1
  408. package/dist/cjs/vite/plugins/clientTreeShakePlugin.native.cjs +1 -1
  409. package/dist/cjs/vite/plugins/clientTreeShakePlugin.native.js +1 -1
  410. package/dist/cjs/vite/plugins/clientTreeShakePlugin.native.js.map +1 -1
  411. package/dist/cjs/vite/plugins/environmentGuardPlugin.cjs +6 -1
  412. package/dist/cjs/vite/plugins/environmentGuardPlugin.native.cjs +6 -1
  413. package/dist/cjs/vite/plugins/environmentGuardPlugin.native.js +6 -1
  414. package/dist/cjs/vite/plugins/environmentGuardPlugin.native.js.map +1 -1
  415. package/dist/cjs/vite/plugins/fileSystemRouterPlugin.cjs +14 -9
  416. package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.cjs +16 -9
  417. package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js +16 -9
  418. package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
  419. package/dist/cjs/vite/plugins/generateFileSystemRouteTypesPlugin.cjs +8 -2
  420. package/dist/cjs/vite/plugins/generateFileSystemRouteTypesPlugin.native.cjs +8 -2
  421. package/dist/cjs/vite/plugins/generateFileSystemRouteTypesPlugin.native.js +8 -2
  422. package/dist/cjs/vite/plugins/generateFileSystemRouteTypesPlugin.native.js.map +1 -1
  423. package/dist/cjs/vite/plugins/iosLinkSetPlugin.cjs +63 -0
  424. package/dist/cjs/vite/plugins/iosLinkSetPlugin.native.cjs +69 -0
  425. package/dist/cjs/vite/plugins/iosLinkSetPlugin.native.js +71 -0
  426. package/dist/cjs/vite/plugins/iosLinkSetPlugin.native.js.map +1 -0
  427. package/dist/cjs/vite/plugins/loaderSearchSchemasPlugin.cjs +67 -0
  428. package/dist/cjs/vite/plugins/loaderSearchSchemasPlugin.native.cjs +107 -0
  429. package/dist/cjs/vite/plugins/loaderSearchSchemasPlugin.native.js +109 -0
  430. package/dist/cjs/vite/plugins/loaderSearchSchemasPlugin.native.js.map +1 -0
  431. package/dist/cjs/vite/plugins/useDomPlugin.cjs +128 -22
  432. package/dist/cjs/vite/plugins/useDomPlugin.native.cjs +160 -22
  433. package/dist/cjs/vite/plugins/useDomPlugin.native.js +160 -22
  434. package/dist/cjs/vite/plugins/useDomPlugin.native.js.map +1 -1
  435. package/dist/esm/cli/iosLinkSet.mjs +83 -0
  436. package/dist/esm/cli/iosLinkSet.mjs.map +1 -0
  437. package/dist/esm/cli/iosLinkSet.native.js +90 -0
  438. package/dist/esm/cli/iosLinkSet.native.js.map +1 -0
  439. package/dist/esm/cli/iosLinkSetAnalysis.mjs +303 -0
  440. package/dist/esm/cli/iosLinkSetAnalysis.mjs.map +1 -0
  441. package/dist/esm/cli/iosLinkSetAnalysis.native.js +686 -0
  442. package/dist/esm/cli/iosLinkSetAnalysis.native.js.map +1 -0
  443. package/dist/esm/cli/prebuild.mjs +5 -1
  444. package/dist/esm/cli/prebuild.mjs.map +1 -1
  445. package/dist/esm/cli/prebuild.native.js +4 -2
  446. package/dist/esm/cli/prebuild.native.js.map +1 -1
  447. package/dist/esm/cli/updatesPublish.mjs +15 -11
  448. package/dist/esm/cli/updatesPublish.mjs.map +1 -1
  449. package/dist/esm/cli/updatesPublish.native.js +44 -21
  450. package/dist/esm/cli/updatesPublish.native.js.map +1 -1
  451. package/dist/esm/cli.mjs +4 -2
  452. package/dist/esm/cli.mjs.map +1 -1
  453. package/dist/esm/cli.native.js +4 -2
  454. package/dist/esm/cli.native.js.map +1 -1
  455. package/dist/esm/createApp.mjs +8 -0
  456. package/dist/esm/createApp.mjs.map +1 -1
  457. package/dist/esm/createHandleRequest.mjs +4 -17
  458. package/dist/esm/createHandleRequest.mjs.map +1 -1
  459. package/dist/esm/createHandleRequest.native.js +6 -19
  460. package/dist/esm/createHandleRequest.native.js.map +1 -1
  461. package/dist/esm/dom/browserBridge.mjs +158 -0
  462. package/dist/esm/dom/browserBridge.mjs.map +1 -0
  463. package/dist/esm/dom/browserBridge.native.js +269 -0
  464. package/dist/esm/dom/browserBridge.native.js.map +1 -0
  465. package/dist/esm/dom/client.mjs +49 -0
  466. package/dist/esm/dom/client.mjs.map +1 -0
  467. package/dist/esm/dom/client.native.js +59 -0
  468. package/dist/esm/dom/client.native.js.map +1 -0
  469. package/dist/esm/dom/context.mjs +6 -0
  470. package/dist/esm/dom/context.mjs.map +1 -0
  471. package/dist/esm/dom/context.native.js +6 -0
  472. package/dist/esm/dom/context.native.js.map +1 -0
  473. package/dist/esm/dom/host.native.js +125 -0
  474. package/dist/esm/dom/host.native.js.map +1 -0
  475. package/dist/esm/dom/index.mjs +69 -0
  476. package/dist/esm/dom/index.mjs.map +1 -0
  477. package/dist/esm/dom/index.native.js +115 -0
  478. package/dist/esm/dom/index.native.js.map +1 -0
  479. package/dist/esm/dom/measure.mjs +31 -0
  480. package/dist/esm/dom/measure.mjs.map +1 -0
  481. package/dist/esm/dom/measure.native.js +33 -0
  482. package/dist/esm/dom/measure.native.js.map +1 -0
  483. package/dist/esm/dom/nativeBridge.mjs +116 -0
  484. package/dist/esm/dom/nativeBridge.mjs.map +1 -0
  485. package/dist/esm/dom/nativeBridge.native.js +202 -0
  486. package/dist/esm/dom/nativeBridge.native.js.map +1 -0
  487. package/dist/esm/dom/peer.mjs +129 -0
  488. package/dist/esm/dom/peer.mjs.map +1 -0
  489. package/dist/esm/dom/peer.native.js +206 -0
  490. package/dist/esm/dom/peer.native.js.map +1 -0
  491. package/dist/esm/dom/protocol.mjs +162 -0
  492. package/dist/esm/dom/protocol.mjs.map +1 -0
  493. package/dist/esm/dom/protocol.native.js +184 -0
  494. package/dist/esm/dom/protocol.native.js.map +1 -0
  495. package/dist/esm/dom/serialize.mjs +114 -0
  496. package/dist/esm/dom/serialize.mjs.map +1 -0
  497. package/dist/esm/dom/serialize.native.js +256 -0
  498. package/dist/esm/dom/serialize.native.js.map +1 -0
  499. package/dist/esm/dom/types.mjs +0 -0
  500. package/dist/esm/dom/types.native.js +0 -0
  501. package/dist/esm/fork/getPathFromState.mjs +9 -1
  502. package/dist/esm/fork/getPathFromState.mjs.map +1 -1
  503. package/dist/esm/fork/getPathFromState.native.js +48 -4
  504. package/dist/esm/fork/getPathFromState.native.js.map +1 -1
  505. package/dist/esm/hooks.mjs +51 -2
  506. package/dist/esm/hooks.mjs.map +1 -1
  507. package/dist/esm/hooks.native.js +56 -3
  508. package/dist/esm/hooks.native.js.map +1 -1
  509. package/dist/esm/index.js +2 -1
  510. package/dist/esm/index.mjs +2 -1
  511. package/dist/esm/index.native.js +2 -1
  512. package/dist/esm/layouts/Tabs.linux.mjs +26 -0
  513. package/dist/esm/layouts/Tabs.linux.mjs.map +1 -0
  514. package/dist/esm/layouts/Tabs.linux.native.js +26 -0
  515. package/dist/esm/layouts/Tabs.linux.native.js.map +1 -0
  516. package/dist/esm/layouts/stack-navigator-desktop.mjs +6 -0
  517. package/dist/esm/layouts/stack-navigator-desktop.mjs.map +1 -0
  518. package/dist/esm/layouts/stack-navigator-desktop.native.js +6 -0
  519. package/dist/esm/layouts/stack-navigator-desktop.native.js.map +1 -0
  520. package/dist/esm/layouts/stack-navigator.linux.mjs +17 -0
  521. package/dist/esm/layouts/stack-navigator.linux.mjs.map +1 -0
  522. package/dist/esm/layouts/stack-navigator.linux.native.js +17 -0
  523. package/dist/esm/layouts/stack-navigator.linux.native.js.map +1 -0
  524. package/dist/esm/layouts/stack-navigator.macos.mjs +7 -0
  525. package/dist/esm/layouts/stack-navigator.macos.mjs.map +1 -0
  526. package/dist/esm/layouts/stack-navigator.macos.native.js +7 -0
  527. package/dist/esm/layouts/stack-navigator.macos.native.js.map +1 -0
  528. package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.linux.mjs +1 -0
  529. package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.linux.native.js +1 -0
  530. package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.macos.mjs +11 -0
  531. package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.macos.mjs.map +1 -0
  532. package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.macos.native.js +12 -0
  533. package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.macos.native.js.map +1 -0
  534. package/dist/esm/link/Link.mjs +4 -3
  535. package/dist/esm/link/Link.mjs.map +1 -1
  536. package/dist/esm/link/Link.native.js +4 -3
  537. package/dist/esm/link/Link.native.js.map +1 -1
  538. package/dist/esm/loaderResponseToModule.mjs +21 -0
  539. package/dist/esm/loaderResponseToModule.mjs.map +1 -0
  540. package/dist/esm/loaderResponseToModule.native.js +22 -0
  541. package/dist/esm/loaderResponseToModule.native.js.map +1 -0
  542. package/dist/esm/loaderSearchParams.mjs +76 -0
  543. package/dist/esm/loaderSearchParams.mjs.map +1 -0
  544. package/dist/esm/loaderSearchParams.native.js +114 -0
  545. package/dist/esm/loaderSearchParams.native.js.map +1 -0
  546. package/dist/esm/one-shared.mjs +110 -0
  547. package/dist/esm/one-shared.mjs.map +1 -0
  548. package/dist/esm/one-shared.native.js +111 -0
  549. package/dist/esm/one-shared.native.js.map +1 -0
  550. package/dist/esm/one.linux.mjs +38 -0
  551. package/dist/esm/one.linux.mjs.map +1 -0
  552. package/dist/esm/one.linux.native.js +38 -0
  553. package/dist/esm/one.linux.native.js.map +1 -0
  554. package/dist/esm/one.macos.mjs +26 -0
  555. package/dist/esm/one.macos.mjs.map +1 -0
  556. package/dist/esm/one.macos.native.js +26 -0
  557. package/dist/esm/one.macos.native.js.map +1 -0
  558. package/dist/esm/one.mjs +1 -110
  559. package/dist/esm/one.native.js +1 -111
  560. package/dist/esm/platform/adaptive/fixed.mjs +22 -0
  561. package/dist/esm/platform/adaptive/fixed.mjs.map +1 -0
  562. package/dist/esm/platform/adaptive/fixed.native.js +22 -0
  563. package/dist/esm/platform/adaptive/fixed.native.js.map +1 -0
  564. package/dist/esm/platform/adaptive/index.linux.mjs +1 -0
  565. package/dist/esm/platform/adaptive/index.linux.native.js +1 -0
  566. package/dist/esm/platform/adaptive/index.macos.mjs +6 -0
  567. package/dist/esm/platform/adaptive/index.macos.native.js +6 -0
  568. package/dist/esm/platform/adaptive/index.mjs +2 -21
  569. package/dist/esm/platform/controlTypes.mjs +0 -0
  570. package/dist/esm/platform/controlTypes.native.js +0 -0
  571. package/dist/esm/platform/desktop/appCommandTypes.mjs +0 -0
  572. package/dist/esm/platform/desktop/appCommandTypes.native.js +0 -0
  573. package/dist/esm/platform/desktop/createAppCommands.mjs +36 -0
  574. package/dist/esm/platform/desktop/createAppCommands.mjs.map +1 -0
  575. package/dist/esm/platform/desktop/createAppCommands.native.js +39 -0
  576. package/dist/esm/platform/desktop/createAppCommands.native.js.map +1 -0
  577. package/dist/esm/platform/desktop/createControls.mjs +42 -0
  578. package/dist/esm/platform/desktop/createControls.mjs.map +1 -0
  579. package/dist/esm/platform/desktop/createControls.native.js +44 -0
  580. package/dist/esm/platform/desktop/createControls.native.js.map +1 -0
  581. package/dist/esm/platform/linux/AppCommands.linux.mjs +6 -0
  582. package/dist/esm/platform/linux/AppCommands.linux.mjs.map +1 -0
  583. package/dist/esm/platform/linux/AppCommands.linux.native.js +6 -0
  584. package/dist/esm/platform/linux/AppCommands.linux.native.js.map +1 -0
  585. package/dist/esm/platform/linux/Button.linux.mjs +16 -0
  586. package/dist/esm/platform/linux/Button.linux.mjs.map +1 -0
  587. package/dist/esm/platform/linux/Button.linux.native.js +22 -0
  588. package/dist/esm/platform/linux/Button.linux.native.js.map +1 -0
  589. package/dist/esm/platform/linux/DropDown.linux.mjs +49 -0
  590. package/dist/esm/platform/linux/DropDown.linux.mjs.map +1 -0
  591. package/dist/esm/platform/linux/DropDown.linux.native.js +64 -0
  592. package/dist/esm/platform/linux/DropDown.linux.native.js.map +1 -0
  593. package/dist/esm/platform/linux/NavigationView.linux.mjs +89 -0
  594. package/dist/esm/platform/linux/NavigationView.linux.mjs.map +1 -0
  595. package/dist/esm/platform/linux/NavigationView.linux.native.js +103 -0
  596. package/dist/esm/platform/linux/NavigationView.linux.native.js.map +1 -0
  597. package/dist/esm/platform/linux/OneLinuxButtonNativeComponent.mjs +28 -0
  598. package/dist/esm/platform/linux/OneLinuxButtonNativeComponent.mjs.map +7 -0
  599. package/dist/esm/platform/linux/OneLinuxButtonNativeComponent.native.js +28 -0
  600. package/dist/esm/platform/linux/OneLinuxButtonNativeComponent.native.js.map +7 -0
  601. package/dist/esm/platform/linux/OneLinuxDropDownNativeComponent.mjs +37 -0
  602. package/dist/esm/platform/linux/OneLinuxDropDownNativeComponent.mjs.map +7 -0
  603. package/dist/esm/platform/linux/OneLinuxDropDownNativeComponent.native.js +37 -0
  604. package/dist/esm/platform/linux/OneLinuxDropDownNativeComponent.native.js.map +7 -0
  605. package/dist/esm/platform/linux/OneLinuxNavigationNativeComponent.mjs +37 -0
  606. package/dist/esm/platform/linux/OneLinuxNavigationNativeComponent.mjs.map +7 -0
  607. package/dist/esm/platform/linux/OneLinuxNavigationNativeComponent.native.js +37 -0
  608. package/dist/esm/platform/linux/OneLinuxNavigationNativeComponent.native.js.map +7 -0
  609. package/dist/esm/platform/linux/OneLinuxProgressBarNativeComponent.mjs +15 -0
  610. package/dist/esm/platform/linux/OneLinuxProgressBarNativeComponent.mjs.map +7 -0
  611. package/dist/esm/platform/linux/OneLinuxProgressBarNativeComponent.native.js +15 -0
  612. package/dist/esm/platform/linux/OneLinuxProgressBarNativeComponent.native.js.map +7 -0
  613. package/dist/esm/platform/linux/OneLinuxSecureFieldNativeComponent.mjs +34 -0
  614. package/dist/esm/platform/linux/OneLinuxSecureFieldNativeComponent.mjs.map +7 -0
  615. package/dist/esm/platform/linux/OneLinuxSecureFieldNativeComponent.native.js +34 -0
  616. package/dist/esm/platform/linux/OneLinuxSecureFieldNativeComponent.native.js.map +7 -0
  617. package/dist/esm/platform/linux/OneLinuxSegmentedControlNativeComponent.mjs +29 -0
  618. package/dist/esm/platform/linux/OneLinuxSegmentedControlNativeComponent.mjs.map +7 -0
  619. package/dist/esm/platform/linux/OneLinuxSegmentedControlNativeComponent.native.js +29 -0
  620. package/dist/esm/platform/linux/OneLinuxSegmentedControlNativeComponent.native.js.map +7 -0
  621. package/dist/esm/platform/linux/OneLinuxSliderNativeComponent.mjs +39 -0
  622. package/dist/esm/platform/linux/OneLinuxSliderNativeComponent.mjs.map +7 -0
  623. package/dist/esm/platform/linux/OneLinuxSliderNativeComponent.native.js +39 -0
  624. package/dist/esm/platform/linux/OneLinuxSliderNativeComponent.native.js.map +7 -0
  625. package/dist/esm/platform/linux/OneLinuxStepperNativeComponent.mjs +32 -0
  626. package/dist/esm/platform/linux/OneLinuxStepperNativeComponent.mjs.map +7 -0
  627. package/dist/esm/platform/linux/OneLinuxStepperNativeComponent.native.js +32 -0
  628. package/dist/esm/platform/linux/OneLinuxStepperNativeComponent.native.js.map +7 -0
  629. package/dist/esm/platform/linux/OneLinuxSwitchNativeComponent.mjs +27 -0
  630. package/dist/esm/platform/linux/OneLinuxSwitchNativeComponent.mjs.map +7 -0
  631. package/dist/esm/platform/linux/OneLinuxSwitchNativeComponent.native.js +27 -0
  632. package/dist/esm/platform/linux/OneLinuxSwitchNativeComponent.native.js.map +7 -0
  633. package/dist/esm/platform/linux/OneLinuxTextFieldNativeComponent.mjs +34 -0
  634. package/dist/esm/platform/linux/OneLinuxTextFieldNativeComponent.mjs.map +7 -0
  635. package/dist/esm/platform/linux/OneLinuxTextFieldNativeComponent.native.js +34 -0
  636. package/dist/esm/platform/linux/OneLinuxTextFieldNativeComponent.native.js.map +7 -0
  637. package/dist/esm/platform/linux/OneLinuxToggleNativeComponent.mjs +29 -0
  638. package/dist/esm/platform/linux/OneLinuxToggleNativeComponent.mjs.map +7 -0
  639. package/dist/esm/platform/linux/OneLinuxToggleNativeComponent.native.js +29 -0
  640. package/dist/esm/platform/linux/OneLinuxToggleNativeComponent.native.js.map +7 -0
  641. package/dist/esm/platform/linux/ProgressBar.linux.mjs +17 -0
  642. package/dist/esm/platform/linux/ProgressBar.linux.mjs.map +1 -0
  643. package/dist/esm/platform/linux/ProgressBar.linux.native.js +18 -0
  644. package/dist/esm/platform/linux/ProgressBar.linux.native.js.map +1 -0
  645. package/dist/esm/platform/linux/SecureField.linux.mjs +12 -0
  646. package/dist/esm/platform/linux/SecureField.linux.mjs.map +1 -0
  647. package/dist/esm/platform/linux/SecureField.linux.native.js +12 -0
  648. package/dist/esm/platform/linux/SecureField.linux.native.js.map +1 -0
  649. package/dist/esm/platform/linux/SegmentedControl.linux.mjs +14 -0
  650. package/dist/esm/platform/linux/SegmentedControl.linux.mjs.map +1 -0
  651. package/dist/esm/platform/linux/SegmentedControl.linux.native.js +22 -0
  652. package/dist/esm/platform/linux/SegmentedControl.linux.native.js.map +1 -0
  653. package/dist/esm/platform/linux/Slider.linux.mjs +46 -0
  654. package/dist/esm/platform/linux/Slider.linux.mjs.map +1 -0
  655. package/dist/esm/platform/linux/Slider.linux.native.js +51 -0
  656. package/dist/esm/platform/linux/Slider.linux.native.js.map +1 -0
  657. package/dist/esm/platform/linux/Stepper.linux.mjs +32 -0
  658. package/dist/esm/platform/linux/Stepper.linux.mjs.map +1 -0
  659. package/dist/esm/platform/linux/Stepper.linux.native.js +35 -0
  660. package/dist/esm/platform/linux/Stepper.linux.native.js.map +1 -0
  661. package/dist/esm/platform/linux/Switch.linux.mjs +22 -0
  662. package/dist/esm/platform/linux/Switch.linux.mjs.map +1 -0
  663. package/dist/esm/platform/linux/Switch.linux.native.js +25 -0
  664. package/dist/esm/platform/linux/Switch.linux.native.js.map +1 -0
  665. package/dist/esm/platform/linux/TextField.linux.mjs +31 -0
  666. package/dist/esm/platform/linux/TextField.linux.mjs.map +1 -0
  667. package/dist/esm/platform/linux/TextField.linux.native.js +38 -0
  668. package/dist/esm/platform/linux/TextField.linux.native.js.map +1 -0
  669. package/dist/esm/platform/linux/Toggle.linux.mjs +15 -0
  670. package/dist/esm/platform/linux/Toggle.linux.mjs.map +1 -0
  671. package/dist/esm/platform/linux/Toggle.linux.native.js +23 -0
  672. package/dist/esm/platform/linux/Toggle.linux.native.js.map +1 -0
  673. package/dist/esm/platform/linux/Window.linux.mjs +8 -0
  674. package/dist/esm/platform/linux/Window.linux.mjs.map +1 -0
  675. package/dist/esm/platform/linux/Window.linux.native.js +8 -0
  676. package/dist/esm/platform/linux/Window.linux.native.js.map +1 -0
  677. package/dist/esm/platform/mac/AppCommands.macos.mjs +6 -0
  678. package/dist/esm/platform/mac/AppCommands.macos.mjs.map +1 -0
  679. package/dist/esm/platform/mac/AppCommands.macos.native.js +6 -0
  680. package/dist/esm/platform/mac/AppCommands.macos.native.js.map +1 -0
  681. package/dist/esm/platform/mac/Button.macos.mjs +10 -0
  682. package/dist/esm/platform/mac/Button.macos.mjs.map +1 -0
  683. package/dist/esm/platform/mac/Button.macos.native.js +13 -0
  684. package/dist/esm/platform/mac/Button.macos.native.js.map +1 -0
  685. package/dist/esm/platform/mac/Image.macos.mjs +23 -0
  686. package/dist/esm/platform/mac/Image.macos.mjs.map +1 -0
  687. package/dist/esm/platform/mac/Image.macos.native.js +24 -0
  688. package/dist/esm/platform/mac/Image.macos.native.js.map +1 -0
  689. package/dist/esm/platform/mac/OneMacButtonNativeComponent.mjs +29 -0
  690. package/dist/esm/platform/mac/OneMacButtonNativeComponent.mjs.map +7 -0
  691. package/dist/esm/platform/mac/OneMacButtonNativeComponent.native.js +29 -0
  692. package/dist/esm/platform/mac/OneMacButtonNativeComponent.native.js.map +7 -0
  693. package/dist/esm/platform/mac/OneMacImageNativeComponent.mjs +17 -0
  694. package/dist/esm/platform/mac/OneMacImageNativeComponent.mjs.map +7 -0
  695. package/dist/esm/platform/mac/OneMacImageNativeComponent.native.js +17 -0
  696. package/dist/esm/platform/mac/OneMacImageNativeComponent.native.js.map +7 -0
  697. package/dist/esm/platform/mac/OneMacPopUpButtonNativeComponent.mjs +29 -0
  698. package/dist/esm/platform/mac/OneMacPopUpButtonNativeComponent.mjs.map +7 -0
  699. package/dist/esm/platform/mac/OneMacPopUpButtonNativeComponent.native.js +29 -0
  700. package/dist/esm/platform/mac/OneMacPopUpButtonNativeComponent.native.js.map +7 -0
  701. package/dist/esm/platform/mac/OneMacSegmentedControlNativeComponent.mjs +30 -0
  702. package/dist/esm/platform/mac/OneMacSegmentedControlNativeComponent.mjs.map +7 -0
  703. package/dist/esm/platform/mac/OneMacSegmentedControlNativeComponent.native.js +30 -0
  704. package/dist/esm/platform/mac/OneMacSegmentedControlNativeComponent.native.js.map +7 -0
  705. package/dist/esm/platform/mac/OneMacToggleNativeComponent.mjs +28 -0
  706. package/dist/esm/platform/mac/OneMacToggleNativeComponent.mjs.map +7 -0
  707. package/dist/esm/platform/mac/OneMacToggleNativeComponent.native.js +28 -0
  708. package/dist/esm/platform/mac/OneMacToggleNativeComponent.native.js.map +7 -0
  709. package/dist/esm/platform/mac/PopUpButton.macos.mjs +26 -0
  710. package/dist/esm/platform/mac/PopUpButton.macos.mjs.map +1 -0
  711. package/dist/esm/platform/mac/PopUpButton.macos.native.js +29 -0
  712. package/dist/esm/platform/mac/PopUpButton.macos.native.js.map +1 -0
  713. package/dist/esm/platform/mac/SegmentedControl.macos.mjs +13 -0
  714. package/dist/esm/platform/mac/SegmentedControl.macos.mjs.map +1 -0
  715. package/dist/esm/platform/mac/SegmentedControl.macos.native.js +20 -0
  716. package/dist/esm/platform/mac/SegmentedControl.macos.native.js.map +1 -0
  717. package/dist/esm/platform/mac/Toggle.macos.mjs +13 -0
  718. package/dist/esm/platform/mac/Toggle.macos.mjs.map +1 -0
  719. package/dist/esm/platform/mac/Toggle.macos.native.js +20 -0
  720. package/dist/esm/platform/mac/Toggle.macos.native.js.map +1 -0
  721. package/dist/esm/platform/specs/OneDOMHostNativeComponent.mjs +53 -0
  722. package/dist/esm/platform/specs/OneDOMHostNativeComponent.mjs.map +7 -0
  723. package/dist/esm/platform/specs/OneDOMHostNativeComponent.native.js +53 -0
  724. package/dist/esm/platform/specs/OneDOMHostNativeComponent.native.js.map +7 -0
  725. package/dist/esm/platform/split-view/split-view.linux.mjs +1 -0
  726. package/dist/esm/platform/split-view/split-view.linux.native.js +1 -0
  727. package/dist/esm/platform/split-view/split-view.macos.mjs +15 -0
  728. package/dist/esm/platform/split-view/split-view.macos.mjs.map +1 -0
  729. package/dist/esm/platform/split-view/split-view.macos.native.js +16 -0
  730. package/dist/esm/platform/split-view/split-view.macos.native.js.map +1 -0
  731. package/dist/esm/platform/store-review/index.native.js +1 -1
  732. package/dist/esm/platform/ui/Image.linux.mjs +1 -0
  733. package/dist/esm/platform/ui/Image.linux.native.js +1 -0
  734. package/dist/esm/platform/ui/Image.macos.mjs +14 -0
  735. package/dist/esm/platform/ui/Image.macos.mjs.map +1 -0
  736. package/dist/esm/platform/ui/Image.macos.native.js +15 -0
  737. package/dist/esm/platform/ui/Image.macos.native.js.map +1 -0
  738. package/dist/esm/router/getRoutes.mjs +2 -0
  739. package/dist/esm/router/getRoutes.mjs.map +1 -1
  740. package/dist/esm/router/getRoutes.native.js +2 -0
  741. package/dist/esm/router/getRoutes.native.js.map +1 -1
  742. package/dist/esm/router/router.mjs +56 -33
  743. package/dist/esm/router/router.mjs.map +1 -1
  744. package/dist/esm/router/router.native.js +18 -4
  745. package/dist/esm/router/router.native.js.map +1 -1
  746. package/dist/esm/searchParams.mjs +75 -0
  747. package/dist/esm/searchParams.mjs.map +1 -0
  748. package/dist/esm/searchParams.native.js +165 -0
  749. package/dist/esm/searchParams.native.js.map +1 -0
  750. package/dist/esm/server/oneServe.mjs +15 -3
  751. package/dist/esm/server/oneServe.mjs.map +1 -1
  752. package/dist/esm/server/oneServe.native.js +16 -3
  753. package/dist/esm/server/oneServe.native.js.map +1 -1
  754. package/dist/esm/server/workerHandler.mjs +16 -3
  755. package/dist/esm/server/workerHandler.mjs.map +1 -1
  756. package/dist/esm/server/workerHandler.native.js +17 -3
  757. package/dist/esm/server/workerHandler.native.js.map +1 -1
  758. package/dist/esm/standardSchema.mjs +13 -0
  759. package/dist/esm/standardSchema.mjs.map +1 -0
  760. package/dist/esm/standardSchema.native.js +14 -0
  761. package/dist/esm/standardSchema.native.js.map +1 -0
  762. package/dist/esm/typed-routes/generateRouteTypes.mjs +27 -2
  763. package/dist/esm/typed-routes/generateRouteTypes.mjs.map +1 -1
  764. package/dist/esm/typed-routes/generateRouteTypes.native.js +69 -2
  765. package/dist/esm/typed-routes/generateRouteTypes.native.js.map +1 -1
  766. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.mjs +27 -10
  767. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.mjs.map +1 -1
  768. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +35 -9
  769. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +1 -1
  770. package/dist/esm/typed-routes/searchParamSchemas.mjs +297 -0
  771. package/dist/esm/typed-routes/searchParamSchemas.mjs.map +1 -0
  772. package/dist/esm/typed-routes/searchParamSchemas.native.js +506 -0
  773. package/dist/esm/typed-routes/searchParamSchemas.native.js.map +1 -0
  774. package/dist/esm/typed-routes/searchSchemaEntries.mjs +15 -0
  775. package/dist/esm/typed-routes/searchSchemaEntries.mjs.map +1 -0
  776. package/dist/esm/typed-routes/searchSchemaEntries.native.js +17 -0
  777. package/dist/esm/typed-routes/searchSchemaEntries.native.js.map +1 -0
  778. package/dist/esm/useLoader.mjs +44 -34
  779. package/dist/esm/useLoader.mjs.map +1 -1
  780. package/dist/esm/useLoader.native.js +49 -37
  781. package/dist/esm/useLoader.native.js.map +1 -1
  782. package/dist/esm/utils/cleanUrl.mjs +25 -3
  783. package/dist/esm/utils/cleanUrl.mjs.map +1 -1
  784. package/dist/esm/utils/cleanUrl.native.js +25 -3
  785. package/dist/esm/utils/cleanUrl.native.js.map +1 -1
  786. package/dist/esm/validateParams.mjs +3 -4
  787. package/dist/esm/validateParams.mjs.map +1 -1
  788. package/dist/esm/validateParams.native.js +3 -5
  789. package/dist/esm/validateParams.native.js.map +1 -1
  790. package/dist/esm/{validateSearch.mjs → validateSearchParams.mjs} +18 -11
  791. package/dist/esm/validateSearchParams.mjs.map +1 -0
  792. package/dist/esm/{validateSearch.native.js → validateSearchParams.native.js} +18 -12
  793. package/dist/esm/validateSearchParams.native.js.map +1 -0
  794. package/dist/esm/vercel/build/generate/createSsrServerlessFunction.mjs +36 -2
  795. package/dist/esm/vercel/build/generate/createSsrServerlessFunction.mjs.map +1 -1
  796. package/dist/esm/vercel/build/generate/createSsrServerlessFunction.native.js +36 -2
  797. package/dist/esm/vercel/build/generate/createSsrServerlessFunction.native.js.map +1 -1
  798. package/dist/esm/vite/dom/browser.mjs +147 -0
  799. package/dist/esm/vite/dom/browser.mjs.map +1 -0
  800. package/dist/esm/vite/dom/browser.native.js +193 -0
  801. package/dist/esm/vite/dom/browser.native.js.map +1 -0
  802. package/dist/esm/vite/dom/directive.mjs +51 -0
  803. package/dist/esm/vite/dom/directive.mjs.map +1 -0
  804. package/dist/esm/vite/dom/directive.native.js +108 -0
  805. package/dist/esm/vite/dom/directive.native.js.map +1 -0
  806. package/dist/esm/vite/dom/registry.mjs +52 -0
  807. package/dist/esm/vite/dom/registry.mjs.map +1 -0
  808. package/dist/esm/vite/dom/registry.native.js +163 -0
  809. package/dist/esm/vite/dom/registry.native.js.map +1 -0
  810. package/dist/esm/vite/one.mjs +28 -3
  811. package/dist/esm/vite/one.mjs.map +1 -1
  812. package/dist/esm/vite/one.native.js +35 -10
  813. package/dist/esm/vite/one.native.js.map +1 -1
  814. package/dist/esm/vite/plugins/clientTreeShakePlugin.mjs +1 -1
  815. package/dist/esm/vite/plugins/clientTreeShakePlugin.mjs.map +1 -1
  816. package/dist/esm/vite/plugins/clientTreeShakePlugin.native.js +1 -1
  817. package/dist/esm/vite/plugins/clientTreeShakePlugin.native.js.map +1 -1
  818. package/dist/esm/vite/plugins/environmentGuardPlugin.mjs +6 -1
  819. package/dist/esm/vite/plugins/environmentGuardPlugin.mjs.map +1 -1
  820. package/dist/esm/vite/plugins/environmentGuardPlugin.native.js +6 -1
  821. package/dist/esm/vite/plugins/environmentGuardPlugin.native.js.map +1 -1
  822. package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs +14 -9
  823. package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs.map +1 -1
  824. package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js +16 -9
  825. package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
  826. package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.mjs +8 -2
  827. package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.mjs.map +1 -1
  828. package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.native.js +8 -2
  829. package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.native.js.map +1 -1
  830. package/dist/esm/vite/plugins/iosLinkSetPlugin.mjs +44 -0
  831. package/dist/esm/vite/plugins/iosLinkSetPlugin.mjs.map +1 -0
  832. package/dist/esm/vite/plugins/iosLinkSetPlugin.native.js +48 -0
  833. package/dist/esm/vite/plugins/iosLinkSetPlugin.native.js.map +1 -0
  834. package/dist/esm/vite/plugins/loaderSearchSchemasPlugin.mjs +48 -0
  835. package/dist/esm/vite/plugins/loaderSearchSchemasPlugin.mjs.map +1 -0
  836. package/dist/esm/vite/plugins/loaderSearchSchemasPlugin.native.js +86 -0
  837. package/dist/esm/vite/plugins/loaderSearchSchemasPlugin.native.js.map +1 -0
  838. package/dist/esm/vite/plugins/useDomPlugin.mjs +128 -22
  839. package/dist/esm/vite/plugins/useDomPlugin.mjs.map +1 -1
  840. package/dist/esm/vite/plugins/useDomPlugin.native.js +160 -22
  841. package/dist/esm/vite/plugins/useDomPlugin.native.js.map +1 -1
  842. package/env.d.ts +6 -6
  843. package/ios/DOM/OneDOMHostView.swift +389 -0
  844. package/ios/DOM/OneDOMResourceHandler.swift +147 -0
  845. package/ios/DOM/README.md +5 -0
  846. package/ios/Generated/OneNativeAddPassToWalletButtonComponentView.mm +11 -0
  847. package/ios/Generated/OneNativeAddPassToWalletButtonView.swift +4 -0
  848. package/ios/Generated/OneNativeChartComponentView.mm +10 -0
  849. package/ios/Generated/OneNativeChartView.swift +3 -0
  850. package/ios/Generated/OneNativeLivePhotoViewComponentView.mm +10 -0
  851. package/ios/Generated/OneNativeLivePhotoViewView.swift +4 -0
  852. package/ios/Generated/OneNativePayWithApplePayButtonComponentView.mm +11 -0
  853. package/ios/Generated/OneNativePayWithApplePayButtonView.swift +4 -0
  854. package/ios/Generated/OneNativePhotosPickerComponentView.mm +11 -0
  855. package/ios/Generated/OneNativePhotosPickerView.swift +4 -0
  856. package/ios/Generated/OneNativeProductViewComponentView.mm +11 -0
  857. package/ios/Generated/OneNativeProductViewView.swift +4 -0
  858. package/ios/Generated/OneNativeQuickLookComponentView.mm +10 -0
  859. package/ios/Generated/OneNativeQuickLookView.swift +4 -0
  860. package/ios/Generated/OneNativeSignInWithAppleButtonComponentView.mm +11 -0
  861. package/ios/Generated/OneNativeSignInWithAppleButtonView.swift +4 -0
  862. package/ios/Generated/OneNativeStoreViewComponentView.mm +11 -0
  863. package/ios/Generated/OneNativeStoreViewView.swift +4 -0
  864. package/ios/Generated/OneNativeSubscriptionStoreViewComponentView.mm +11 -0
  865. package/ios/Generated/OneNativeSubscriptionStoreViewView.swift +3 -0
  866. package/ios/Generated/OneNativeSwiftUI.swift +10 -0
  867. package/ios/Generated/OneNativeViewSlots.swift +16 -0
  868. package/ios/Nitro/HybridOneAppleAuth.swift +2 -0
  869. package/ios/Nitro/HybridOneBrowser.swift +2 -0
  870. package/ios/Nitro/HybridOneImagePicker.swift +2 -0
  871. package/ios/Nitro/HybridOneMailCompose.swift +2 -0
  872. package/ios/Nitro/HybridOneMessageCompose.swift +2 -0
  873. package/ios/Nitro/HybridOnePhotoLibrary.swift +10 -0
  874. package/ios/Nitro/HybridOnePurchases.swift +2 -0
  875. package/ios/Nitro/HybridOneStoreReview.swift +37 -0
  876. package/ios/Nitro/OneUpdatesLauncher.swift +24 -0
  877. package/ios/OneDOMHostComponentView.h +5 -0
  878. package/ios/OneDOMHostComponentView.mm +85 -0
  879. package/ios/OneNativeStyle.swift +426 -1
  880. package/ios-link-set.json +196 -0
  881. package/linux/cpp/CMakeLists.txt +160 -0
  882. package/linux/cpp/OneLinuxControlState.h +42 -0
  883. package/linux/cpp/OneLinuxControls.cpp +53 -0
  884. package/linux/cpp/OneLinuxControls.h +70 -0
  885. package/linux/cpp/OneLinuxNavigationComponent.h +86 -0
  886. package/linux/cpp/compat/OneLinuxStdCompat.h +6 -0
  887. package/linux/cpp/compat/OneLinuxThreadName.h +7 -0
  888. package/linux/cpp/deps/CMakeLists.txt +29 -0
  889. package/linux/cpp/deps/cmake-utils/react-native-flags.cmake +15 -0
  890. package/linux/cpp/imagemanager/OneLinuxImageManager.cpp +213 -0
  891. package/linux/cpp/nitro/NitroLinuxPlatform.cpp +67 -0
  892. package/linux/cpp/textlayoutmanager/OneLinuxText.cpp +258 -0
  893. package/linux/cpp/textlayoutmanager/OneLinuxText.h +34 -0
  894. package/linux/cpp/textlayoutmanager/react/renderer/textlayoutmanager/TextLayoutManager.cpp +101 -0
  895. package/linux/cpp/textlayoutmanager/react/renderer/textlayoutmanager/TextLayoutManager.h +35 -0
  896. package/linux/host/OneLinuxAppShell.cpp +267 -0
  897. package/linux/host/OneLinuxAppShell.h +46 -0
  898. package/linux/host/OneLinuxControl.cpp +515 -0
  899. package/linux/host/OneLinuxControl.h +23 -0
  900. package/linux/host/OneLinuxControlledValue.h +51 -0
  901. package/linux/host/OneLinuxHost.cpp +381 -0
  902. package/linux/host/OneLinuxHost.h +64 -0
  903. package/linux/host/OneLinuxModules.cpp +63 -0
  904. package/linux/host/OneLinuxModules.h +20 -0
  905. package/linux/host/OneLinuxMountingManager.cpp +747 -0
  906. package/linux/host/OneLinuxMountingManager.h +86 -0
  907. package/linux/host/OneLinuxNavigation.cpp +202 -0
  908. package/linux/host/OneLinuxNavigation.h +45 -0
  909. package/linux/host/OneLinuxNetwork.cpp +513 -0
  910. package/linux/host/OneLinuxNetwork.h +31 -0
  911. package/linux/host/OneLinuxNitro.cpp +24 -0
  912. package/linux/host/OneLinuxNitro.h +15 -0
  913. package/linux/host/OneLinuxOpSqlite.cpp +79 -0
  914. package/linux/host/OneLinuxOpSqlite.h +15 -0
  915. package/linux/host/OneLinuxPointer.cpp +373 -0
  916. package/linux/host/OneLinuxPointer.h +57 -0
  917. package/linux/host/OneLinuxRuntime.cpp +204 -0
  918. package/linux/host/OneLinuxRuntime.h +80 -0
  919. package/linux/host/OneLinuxStartup.cpp +58 -0
  920. package/linux/host/OneLinuxStartup.h +9 -0
  921. package/linux/host/OneLinuxTextInput.cpp +585 -0
  922. package/linux/host/OneLinuxTextInput.h +99 -0
  923. package/linux/host/OneLinuxView.cpp +540 -0
  924. package/linux/host/OneLinuxView.h +75 -0
  925. package/linux/host/OneLinuxWorklets.cpp +210 -0
  926. package/linux/host/OneLinuxWorklets.h +20 -0
  927. package/linux/host/main.cpp +89 -0
  928. package/linux/react-native/Libraries/Utilities/Platform.js +22 -0
  929. package/linux/scripts/build-core.sh +48 -0
  930. package/linux/scripts/bundle-js.sh +27 -0
  931. package/linux/scripts/cache.sh +22 -0
  932. package/linux/scripts/lima-vm.sh +26 -0
  933. package/linux/scripts/package-app.sh +118 -0
  934. package/linux/scripts/package-core.sh +20 -0
  935. package/linux/scripts/prepare-core.sh +54 -0
  936. package/linux/scripts/prepare-deps.sh +102 -0
  937. package/linux/scripts/prepare-hermes.sh +64 -0
  938. package/linux/scripts/prepare-icu.sh +40 -0
  939. package/linux/scripts/screenshot.sh +67 -0
  940. package/linux/smoke/main.cpp +228 -0
  941. package/linux/smoke/smoke.js +1 -0
  942. package/macos/README.md +170 -0
  943. package/macos/cpp/.gitkeep +0 -0
  944. package/macos/cpp/CMakeLists.txt +157 -0
  945. package/macos/cpp/OneMacButton/OneMacButtonComponentDescriptor.h +11 -0
  946. package/macos/cpp/OneMacButton/OneMacButtonEventEmitter.cpp +7 -0
  947. package/macos/cpp/OneMacButton/OneMacButtonEventEmitter.h +11 -0
  948. package/macos/cpp/OneMacButton/OneMacButtonProps.cpp +11 -0
  949. package/macos/cpp/OneMacButton/OneMacButtonProps.h +17 -0
  950. package/macos/cpp/OneMacButton/OneMacButtonShadowNode.h +28 -0
  951. package/macos/cpp/OneMacButton/OneMacButtonShadowNode.mm +15 -0
  952. package/macos/cpp/OneMacImage/OneMacImageComponentDescriptor.h +6 -0
  953. package/macos/cpp/OneMacImage/OneMacImageProps.cpp +11 -0
  954. package/macos/cpp/OneMacImage/OneMacImageProps.h +14 -0
  955. package/macos/cpp/OneMacImage/OneMacImageShadowNode.cpp +9 -0
  956. package/macos/cpp/OneMacImage/OneMacImageShadowNode.h +18 -0
  957. package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonComponentDescriptor.h +11 -0
  958. package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonEventEmitter.cpp +7 -0
  959. package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonEventEmitter.h +14 -0
  960. package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonProps.cpp +11 -0
  961. package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonProps.h +17 -0
  962. package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonShadowNode.h +28 -0
  963. package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonShadowNode.mm +16 -0
  964. package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlComponentDescriptor.h +11 -0
  965. package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlEventEmitter.cpp +7 -0
  966. package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlEventEmitter.h +14 -0
  967. package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlProps.cpp +12 -0
  968. package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlProps.h +18 -0
  969. package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlShadowNode.h +28 -0
  970. package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlShadowNode.mm +15 -0
  971. package/macos/cpp/OneMacToggle/OneMacToggleComponentDescriptor.h +11 -0
  972. package/macos/cpp/OneMacToggle/OneMacToggleEventEmitter.cpp +13 -0
  973. package/macos/cpp/OneMacToggle/OneMacToggleEventEmitter.h +20 -0
  974. package/macos/cpp/OneMacToggle/OneMacToggleProps.cpp +17 -0
  975. package/macos/cpp/OneMacToggle/OneMacToggleProps.h +23 -0
  976. package/macos/cpp/OneMacToggle/OneMacToggleShadowNode.h +29 -0
  977. package/macos/cpp/OneMacToggle/OneMacToggleShadowNode.mm +27 -0
  978. package/macos/cpp/graphics/react/renderer/graphics/HostPlatformColor.h +129 -0
  979. package/macos/cpp/graphics/react/renderer/graphics/HostPlatformColor.mm +83 -0
  980. package/macos/cpp/graphics/react/renderer/graphics/PlatformColorParser.h +20 -0
  981. package/macos/cpp/graphics/react/renderer/graphics/PlatformColorParser.mm +38 -0
  982. package/macos/cpp/textlayoutmanager/OneMacosText.h +22 -0
  983. package/macos/cpp/textlayoutmanager/OneMacosText.mm +207 -0
  984. package/macos/cpp/textlayoutmanager/react/renderer/textlayoutmanager/TextLayoutManager.h +35 -0
  985. package/macos/cpp/textlayoutmanager/react/renderer/textlayoutmanager/TextLayoutManager.mm +74 -0
  986. package/macos/host/.gitkeep +0 -0
  987. package/macos/host/OneMacosAnimated.mm +91 -0
  988. package/macos/host/OneMacosAppCommands.h +36 -0
  989. package/macos/host/OneMacosAppCommands.mm +731 -0
  990. package/macos/host/OneMacosBlobStore.h +9 -0
  991. package/macos/host/OneMacosBlobStore.mm +50 -0
  992. package/macos/host/OneMacosButtonComponentView.h +3 -0
  993. package/macos/host/OneMacosButtonComponentView.mm +55 -0
  994. package/macos/host/OneMacosComponentView.h +67 -0
  995. package/macos/host/OneMacosComponentView.mm +533 -0
  996. package/macos/host/OneMacosControlsHosting.h +26 -0
  997. package/macos/host/OneMacosDebug.h +6 -0
  998. package/macos/host/OneMacosDebug.mm +337 -0
  999. package/macos/host/OneMacosImageComponentView.h +6 -0
  1000. package/macos/host/OneMacosImageComponentView.mm +245 -0
  1001. package/macos/host/OneMacosImageManager.mm +91 -0
  1002. package/macos/host/OneMacosModules.h +35 -0
  1003. package/macos/host/OneMacosModules.mm +287 -0
  1004. package/macos/host/OneMacosMountingManager.h +36 -0
  1005. package/macos/host/OneMacosMountingManager.mm +285 -0
  1006. package/macos/host/OneMacosNetworking.h +13 -0
  1007. package/macos/host/OneMacosNetworking.mm +263 -0
  1008. package/macos/host/OneMacosOpSqlite.h +15 -0
  1009. package/macos/host/OneMacosOpSqlite.mm +74 -0
  1010. package/macos/host/OneMacosParagraphComponentView.h +4 -0
  1011. package/macos/host/OneMacosParagraphComponentView.mm +35 -0
  1012. package/macos/host/OneMacosPointerHandler.h +27 -0
  1013. package/macos/host/OneMacosPointerHandler.mm +405 -0
  1014. package/macos/host/OneMacosPopUpButtonComponentView.h +3 -0
  1015. package/macos/host/OneMacosPopUpButtonComponentView.mm +50 -0
  1016. package/macos/host/OneMacosRootView.h +21 -0
  1017. package/macos/host/OneMacosRootView.mm +520 -0
  1018. package/macos/host/OneMacosRuntime.h +46 -0
  1019. package/macos/host/OneMacosRuntime.mm +133 -0
  1020. package/macos/host/OneMacosScrollViewComponentView.h +6 -0
  1021. package/macos/host/OneMacosScrollViewComponentView.mm +240 -0
  1022. package/macos/host/OneMacosSegmentedControlComponentView.h +3 -0
  1023. package/macos/host/OneMacosSegmentedControlComponentView.mm +51 -0
  1024. package/macos/host/OneMacosSymbolImageComponentView.h +3 -0
  1025. package/macos/host/OneMacosSymbolImageComponentView.mm +67 -0
  1026. package/macos/host/OneMacosTextInputComponentView.h +7 -0
  1027. package/macos/host/OneMacosTextInputComponentView.mm +729 -0
  1028. package/macos/host/OneMacosToggleComponentView.h +4 -0
  1029. package/macos/host/OneMacosToggleComponentView.mm +57 -0
  1030. package/macos/host/OneMacosToggleHosting.h +15 -0
  1031. package/macos/host/OneMacosWebSocket.h +22 -0
  1032. package/macos/host/OneMacosWebSocket.mm +161 -0
  1033. package/macos/host/OneMacosWorklets.cpp +139 -0
  1034. package/macos/host/OneMacosWorklets.h +29 -0
  1035. package/macos/host/OneMacosWorkletsPlatform.mm +88 -0
  1036. package/macos/host/swift/OneMacControls.swift +155 -0
  1037. package/macos/host/swift/OneMacToggle.swift +71 -0
  1038. package/macos/react-native/Libraries/Utilities/Platform.js +22 -0
  1039. package/macos/template/macos/OneApp/Info.plist +31 -0
  1040. package/macos/template/macos/OneApp/OneApp-Bridging-Header.h +3 -0
  1041. package/macos/template/macos/OneApp/OneApp.swift +20 -0
  1042. package/macos/template/macos/scripts/build-core.sh +29 -0
  1043. package/macos/template/macos/scripts/bundle-js.sh +29 -0
  1044. package/macos/template/macos/scripts/embed-deps.sh +20 -0
  1045. package/macos/template/macos/scripts/embed-hermes.sh +10 -0
  1046. package/macos/template/macos/scripts/prepare-deps.sh +29 -0
  1047. package/macos/template/macos/scripts/prepare-hermes.sh +29 -0
  1048. package/native-core/host/OneHostCommandPredicate.h +118 -0
  1049. package/native-core/host/OneHostModule.h +125 -0
  1050. package/native-core/host/OneHostModules.cpp +355 -0
  1051. package/native-core/host/OneHostModules.h +20 -0
  1052. package/native-core/host/OneHostRuntime.cpp +314 -0
  1053. package/native-core/host/OneHostRuntime.h +153 -0
  1054. package/native-core/rn-core.cmake +101 -0
  1055. package/nitrogen/generated/ios/One-Swift-Cxx-Bridge.cpp +17 -0
  1056. package/nitrogen/generated/ios/One-Swift-Cxx-Bridge.hpp +19 -2
  1057. package/nitrogen/generated/ios/One-Swift-Cxx-Umbrella.hpp +5 -0
  1058. package/nitrogen/generated/ios/OneAutolinking.mm +22 -0
  1059. package/nitrogen/generated/ios/OneAutolinking.swift +42 -16
  1060. package/nitrogen/generated/ios/c++/HybridOneStoreReviewSpecSwift.cpp +11 -0
  1061. package/nitrogen/generated/ios/c++/HybridOneStoreReviewSpecSwift.hpp +82 -0
  1062. package/nitrogen/generated/ios/swift/HybridOneStoreReviewSpec.swift +55 -0
  1063. package/nitrogen/generated/ios/swift/HybridOneStoreReviewSpec_cxx.swift +145 -0
  1064. package/package.json +47 -18
  1065. package/react-native.config.cjs +1 -0
  1066. package/src/cli/build.ts +1 -1
  1067. package/src/cli/iosLinkSet.ts +86 -0
  1068. package/src/cli/iosLinkSetAnalysis.ts +411 -0
  1069. package/src/cli/prebuild.ts +8 -1
  1070. package/src/cli/updatesPublish.ts +25 -24
  1071. package/src/cli.ts +3 -1
  1072. package/src/createApp.tsx +5 -0
  1073. package/src/createHandleRequest.ts +6 -32
  1074. package/src/dom/README.md +27 -0
  1075. package/src/dom/browserBridge.ts +185 -0
  1076. package/src/dom/client.tsx +75 -0
  1077. package/src/dom/context.ts +4 -0
  1078. package/src/dom/host.native.tsx +137 -0
  1079. package/src/dom/index.ts +109 -0
  1080. package/src/dom/measure.ts +32 -0
  1081. package/src/dom/nativeBridge.ts +143 -0
  1082. package/src/dom/peer.ts +150 -0
  1083. package/src/dom/protocol.ts +171 -0
  1084. package/src/dom/serialize.ts +126 -0
  1085. package/src/dom/types.ts +38 -0
  1086. package/src/fork/getPathFromState.test.ts +14 -0
  1087. package/src/fork/getPathFromState.ts +10 -1
  1088. package/src/hooks.tsx +129 -2
  1089. package/src/index.ts +10 -0
  1090. package/src/interfaces/router.ts +63 -1
  1091. package/src/layouts/Tabs.linux.tsx +15 -0
  1092. package/src/layouts/stack-navigator-desktop.tsx +8 -0
  1093. package/src/layouts/stack-navigator.linux.tsx +12 -0
  1094. package/src/layouts/stack-navigator.macos.tsx +9 -0
  1095. package/src/layouts/stack-utils/StackToolbarBottomHost.linux.tsx +1 -0
  1096. package/src/layouts/stack-utils/StackToolbarBottomHost.macos.tsx +17 -0
  1097. package/src/link/Link.tsx +5 -3
  1098. package/src/link/Link.web.tsx +8 -3
  1099. package/src/loaderResponseToModule.ts +42 -0
  1100. package/src/loaderSearchParams.ts +115 -0
  1101. package/src/one-shared.ts +361 -0
  1102. package/src/one.linux.ts +42 -0
  1103. package/src/one.macos.ts +29 -0
  1104. package/src/one.ts +2 -303
  1105. package/src/platform/adaptive/fixed.ts +27 -0
  1106. package/src/platform/adaptive/index.linux.ts +1 -0
  1107. package/src/platform/adaptive/index.macos.ts +11 -0
  1108. package/src/platform/adaptive/index.ts +1 -26
  1109. package/src/platform/controlTypes.ts +12 -0
  1110. package/src/platform/desktop/appCommandTypes.ts +33 -0
  1111. package/src/platform/desktop/createAppCommands.ts +40 -0
  1112. package/src/platform/desktop/createControls.tsx +64 -0
  1113. package/src/platform/linux/AppCommands.linux.ts +6 -0
  1114. package/src/platform/linux/Button.linux.tsx +15 -0
  1115. package/src/platform/linux/DropDown.linux.tsx +50 -0
  1116. package/src/platform/linux/NavigationView.linux.tsx +80 -0
  1117. package/src/platform/linux/OneLinuxButtonNativeComponent.ts +23 -0
  1118. package/src/platform/linux/OneLinuxDropDownNativeComponent.ts +35 -0
  1119. package/src/platform/linux/OneLinuxNavigationNativeComponent.ts +21 -0
  1120. package/src/platform/linux/OneLinuxProgressBarNativeComponent.ts +10 -0
  1121. package/src/platform/linux/OneLinuxSecureFieldNativeComponent.ts +16 -0
  1122. package/src/platform/linux/OneLinuxSegmentedControlNativeComponent.ts +24 -0
  1123. package/src/platform/linux/OneLinuxSliderNativeComponent.ts +29 -0
  1124. package/src/platform/linux/OneLinuxStepperNativeComponent.ts +27 -0
  1125. package/src/platform/linux/OneLinuxSwitchNativeComponent.ts +20 -0
  1126. package/src/platform/linux/OneLinuxTextFieldNativeComponent.ts +16 -0
  1127. package/src/platform/linux/OneLinuxToggleNativeComponent.ts +14 -0
  1128. package/src/platform/linux/ProgressBar.linux.tsx +21 -0
  1129. package/src/platform/linux/SecureField.linux.tsx +7 -0
  1130. package/src/platform/linux/SegmentedControl.linux.tsx +13 -0
  1131. package/src/platform/linux/Slider.linux.tsx +67 -0
  1132. package/src/platform/linux/Stepper.linux.tsx +52 -0
  1133. package/src/platform/linux/Switch.linux.tsx +23 -0
  1134. package/src/platform/linux/TextField.linux.tsx +27 -0
  1135. package/src/platform/linux/Toggle.linux.tsx +12 -0
  1136. package/src/platform/linux/Window.linux.ts +12 -0
  1137. package/src/platform/mac/AppCommands.macos.ts +8 -0
  1138. package/src/platform/mac/Button.macos.tsx +12 -0
  1139. package/src/platform/mac/Image.macos.tsx +41 -0
  1140. package/src/platform/mac/OneMacButtonNativeComponent.ts +14 -0
  1141. package/src/platform/mac/OneMacImageNativeComponent.ts +12 -0
  1142. package/src/platform/mac/OneMacPopUpButtonNativeComponent.ts +20 -0
  1143. package/src/platform/mac/OneMacSegmentedControlNativeComponent.ts +21 -0
  1144. package/src/platform/mac/OneMacToggleNativeComponent.ts +21 -0
  1145. package/src/platform/mac/PopUpButton.macos.tsx +31 -0
  1146. package/src/platform/mac/SegmentedControl.macos.tsx +11 -0
  1147. package/src/platform/mac/Toggle.macos.tsx +12 -0
  1148. package/src/platform/specs/OneDOMHostNativeComponent.ts +30 -0
  1149. package/src/platform/specs/OneStoreReview.nitro.ts +1 -1
  1150. package/src/platform/split-view/split-view.linux.tsx +1 -0
  1151. package/src/platform/split-view/split-view.macos.tsx +26 -0
  1152. package/src/platform/ui/Image.linux.tsx +1 -0
  1153. package/src/platform/ui/Image.macos.tsx +9 -0
  1154. package/src/router/getRoutes.ts +1 -1
  1155. package/src/router/router.ts +61 -13
  1156. package/src/searchParams.ts +163 -0
  1157. package/src/server/oneServe.ts +33 -3
  1158. package/src/server/workerHandler.ts +27 -3
  1159. package/src/standardSchema.ts +82 -0
  1160. package/src/typed-routes/generateRouteTypes.ts +49 -3
  1161. package/src/typed-routes/getTypedRoutesDeclarationFile.ts +62 -10
  1162. package/src/typed-routes/searchParamSchemas.ts +377 -0
  1163. package/src/typed-routes/searchSchemaEntries.ts +22 -0
  1164. package/src/types.ts +15 -2
  1165. package/src/useLoader.ts +91 -43
  1166. package/src/utils/cleanUrl.ts +43 -2
  1167. package/src/validateParams.ts +3 -14
  1168. package/src/{validateSearch.ts → validateSearchParams.ts} +33 -33
  1169. package/src/vercel/build/generate/createSsrServerlessFunction.ts +36 -2
  1170. package/src/vite/dom/README.md +91 -0
  1171. package/src/vite/dom/browser.ts +152 -0
  1172. package/src/vite/dom/build.test.ts +204 -0
  1173. package/src/vite/dom/directive.ts +76 -0
  1174. package/src/vite/dom/registry.ts +67 -0
  1175. package/src/vite/one-defines.test.ts +59 -1
  1176. package/src/vite/one.ts +59 -3
  1177. package/src/vite/plugins/clientTreeShakePlugin.ts +7 -1
  1178. package/src/vite/plugins/environmentGuardPlugin.ts +4 -4
  1179. package/src/vite/plugins/fileSystemRouterPlugin.test.ts +51 -0
  1180. package/src/vite/plugins/fileSystemRouterPlugin.tsx +43 -10
  1181. package/src/vite/plugins/generateFileSystemRouteTypesPlugin.tsx +10 -2
  1182. package/src/vite/plugins/iosLinkSetPlugin.ts +64 -0
  1183. package/src/vite/plugins/iosSdkPlugin.ts +4 -1
  1184. package/src/vite/plugins/kotlinSourcePlugin.ts +4 -1
  1185. package/src/vite/plugins/loaderSearchSchemasPlugin.ts +69 -0
  1186. package/src/vite/plugins/swiftPackagePlugin.ts +4 -1
  1187. package/src/vite/plugins/useDomPlugin.ts +182 -35
  1188. package/src/vite/types.ts +5 -1
  1189. package/types/cli/build.d.ts +1 -1
  1190. package/types/cli/build.d.ts.map +1 -1
  1191. package/types/cli/iosLinkSet.d.ts +9 -0
  1192. package/types/cli/iosLinkSet.d.ts.map +1 -0
  1193. package/types/cli/iosLinkSetAnalysis.d.ts +25 -0
  1194. package/types/cli/iosLinkSetAnalysis.d.ts.map +1 -0
  1195. package/types/cli/prebuild.d.ts.map +1 -1
  1196. package/types/cli/updatesPublish.d.ts.map +1 -1
  1197. package/types/createApp.d.ts +8 -0
  1198. package/types/createApp.d.ts.map +1 -1
  1199. package/types/createHandleRequest.d.ts.map +1 -1
  1200. package/types/dom/browserBridge.d.ts +34 -0
  1201. package/types/dom/browserBridge.d.ts.map +1 -0
  1202. package/types/dom/client.d.ts +8 -0
  1203. package/types/dom/client.d.ts.map +1 -0
  1204. package/types/dom/context.d.ts +3 -0
  1205. package/types/dom/context.d.ts.map +1 -0
  1206. package/types/dom/host.native.d.ts +6 -0
  1207. package/types/dom/host.native.d.ts.map +1 -0
  1208. package/types/dom/index.d.ts +8 -0
  1209. package/types/dom/index.d.ts.map +1 -0
  1210. package/types/dom/measure.d.ts +3 -0
  1211. package/types/dom/measure.d.ts.map +1 -0
  1212. package/types/dom/nativeBridge.d.ts +32 -0
  1213. package/types/dom/nativeBridge.d.ts.map +1 -0
  1214. package/types/dom/peer.d.ts +26 -0
  1215. package/types/dom/peer.d.ts.map +1 -0
  1216. package/types/dom/protocol.d.ts +54 -0
  1217. package/types/dom/protocol.d.ts.map +1 -0
  1218. package/types/dom/serialize.d.ts +21 -0
  1219. package/types/dom/serialize.d.ts.map +1 -0
  1220. package/types/dom/types.d.ts +32 -0
  1221. package/types/dom/types.d.ts.map +1 -0
  1222. package/types/fork/getPathFromState.d.ts.map +1 -1
  1223. package/types/hooks.d.ts +30 -3
  1224. package/types/hooks.d.ts.map +1 -1
  1225. package/types/index.d.ts +3 -0
  1226. package/types/index.d.ts.map +1 -1
  1227. package/types/interfaces/router.d.ts +41 -1
  1228. package/types/interfaces/router.d.ts.map +1 -1
  1229. package/types/layouts/Tabs.linux.d.ts +212 -0
  1230. package/types/layouts/Tabs.linux.d.ts.map +1 -0
  1231. package/types/layouts/stack-navigator-desktop.d.ts +9 -0
  1232. package/types/layouts/stack-navigator-desktop.d.ts.map +1 -0
  1233. package/types/layouts/stack-navigator.linux.d.ts +3 -0
  1234. package/types/layouts/stack-navigator.linux.d.ts.map +1 -0
  1235. package/types/layouts/stack-navigator.macos.d.ts +7 -0
  1236. package/types/layouts/stack-navigator.macos.d.ts.map +1 -0
  1237. package/types/layouts/stack-utils/StackToolbarBottomHost.linux.d.ts +2 -0
  1238. package/types/layouts/stack-utils/StackToolbarBottomHost.linux.d.ts.map +1 -0
  1239. package/types/layouts/stack-utils/StackToolbarBottomHost.macos.d.ts +8 -0
  1240. package/types/layouts/stack-utils/StackToolbarBottomHost.macos.d.ts.map +1 -0
  1241. package/types/link/Link.d.ts.map +1 -1
  1242. package/types/link/Link.web.d.ts.map +1 -1
  1243. package/types/loaderResponseToModule.d.ts +7 -0
  1244. package/types/loaderResponseToModule.d.ts.map +1 -0
  1245. package/types/loaderSearchParams.d.ts +30 -0
  1246. package/types/loaderSearchParams.d.ts.map +1 -0
  1247. package/types/one-shared.d.ts +151 -0
  1248. package/types/one-shared.d.ts.map +1 -0
  1249. package/types/one.d.ts +1 -100
  1250. package/types/one.d.ts.map +1 -1
  1251. package/types/one.linux.d.ts +3 -0
  1252. package/types/one.linux.d.ts.map +1 -0
  1253. package/types/one.macos.d.ts +3 -0
  1254. package/types/one.macos.d.ts.map +1 -0
  1255. package/types/platform/adaptive/fixed.d.ts +7 -0
  1256. package/types/platform/adaptive/fixed.d.ts.map +1 -0
  1257. package/types/platform/adaptive/index.d.ts +1 -6
  1258. package/types/platform/adaptive/index.d.ts.map +1 -1
  1259. package/types/platform/adaptive/index.linux.d.ts +2 -0
  1260. package/types/platform/adaptive/index.linux.d.ts.map +1 -0
  1261. package/types/platform/adaptive/index.macos.d.ts +6 -0
  1262. package/types/platform/adaptive/index.macos.d.ts.map +1 -0
  1263. package/types/platform/controlTypes.d.ts +18 -0
  1264. package/types/platform/controlTypes.d.ts.map +1 -0
  1265. package/types/platform/desktop/appCommandTypes.d.ts +41 -0
  1266. package/types/platform/desktop/appCommandTypes.d.ts.map +1 -0
  1267. package/types/platform/desktop/createAppCommands.d.ts +6 -0
  1268. package/types/platform/desktop/createAppCommands.d.ts.map +1 -0
  1269. package/types/platform/desktop/createControls.d.ts +31 -0
  1270. package/types/platform/desktop/createControls.d.ts.map +1 -0
  1271. package/types/platform/linux/AppCommands.linux.d.ts +8 -0
  1272. package/types/platform/linux/AppCommands.linux.d.ts.map +1 -0
  1273. package/types/platform/linux/Button.linux.d.ts +4 -0
  1274. package/types/platform/linux/Button.linux.d.ts.map +1 -0
  1275. package/types/platform/linux/DropDown.linux.d.ts +26 -0
  1276. package/types/platform/linux/DropDown.linux.d.ts.map +1 -0
  1277. package/types/platform/linux/NavigationView.linux.d.ts +7 -0
  1278. package/types/platform/linux/NavigationView.linux.d.ts.map +1 -0
  1279. package/types/platform/linux/OneLinuxButtonNativeComponent.d.ts +17 -0
  1280. package/types/platform/linux/OneLinuxButtonNativeComponent.d.ts.map +1 -0
  1281. package/types/platform/linux/OneLinuxDropDownNativeComponent.d.ts +29 -0
  1282. package/types/platform/linux/OneLinuxDropDownNativeComponent.d.ts.map +1 -0
  1283. package/types/platform/linux/OneLinuxNavigationNativeComponent.d.ts +23 -0
  1284. package/types/platform/linux/OneLinuxNavigationNativeComponent.d.ts.map +1 -0
  1285. package/types/platform/linux/OneLinuxProgressBarNativeComponent.d.ts +9 -0
  1286. package/types/platform/linux/OneLinuxProgressBarNativeComponent.d.ts.map +1 -0
  1287. package/types/platform/linux/OneLinuxSecureFieldNativeComponent.d.ts +22 -0
  1288. package/types/platform/linux/OneLinuxSecureFieldNativeComponent.d.ts.map +1 -0
  1289. package/types/platform/linux/OneLinuxSegmentedControlNativeComponent.d.ts +18 -0
  1290. package/types/platform/linux/OneLinuxSegmentedControlNativeComponent.d.ts.map +1 -0
  1291. package/types/platform/linux/OneLinuxSliderNativeComponent.d.ts +26 -0
  1292. package/types/platform/linux/OneLinuxSliderNativeComponent.d.ts.map +1 -0
  1293. package/types/platform/linux/OneLinuxStepperNativeComponent.d.ts +21 -0
  1294. package/types/platform/linux/OneLinuxStepperNativeComponent.d.ts.map +1 -0
  1295. package/types/platform/linux/OneLinuxSwitchNativeComponent.d.ts +16 -0
  1296. package/types/platform/linux/OneLinuxSwitchNativeComponent.d.ts.map +1 -0
  1297. package/types/platform/linux/OneLinuxTextFieldNativeComponent.d.ts +22 -0
  1298. package/types/platform/linux/OneLinuxTextFieldNativeComponent.d.ts.map +1 -0
  1299. package/types/platform/linux/OneLinuxToggleNativeComponent.d.ts +18 -0
  1300. package/types/platform/linux/OneLinuxToggleNativeComponent.d.ts.map +1 -0
  1301. package/types/platform/linux/ProgressBar.linux.d.ts +7 -0
  1302. package/types/platform/linux/ProgressBar.linux.d.ts.map +1 -0
  1303. package/types/platform/linux/SecureField.linux.d.ts +4 -0
  1304. package/types/platform/linux/SecureField.linux.d.ts.map +1 -0
  1305. package/types/platform/linux/SegmentedControl.linux.d.ts +5 -0
  1306. package/types/platform/linux/SegmentedControl.linux.d.ts.map +1 -0
  1307. package/types/platform/linux/Slider.linux.d.ts +19 -0
  1308. package/types/platform/linux/Slider.linux.d.ts.map +1 -0
  1309. package/types/platform/linux/Stepper.linux.d.ts +11 -0
  1310. package/types/platform/linux/Stepper.linux.d.ts.map +1 -0
  1311. package/types/platform/linux/Switch.linux.d.ts +9 -0
  1312. package/types/platform/linux/Switch.linux.d.ts.map +1 -0
  1313. package/types/platform/linux/TextField.linux.d.ts +13 -0
  1314. package/types/platform/linux/TextField.linux.d.ts.map +1 -0
  1315. package/types/platform/linux/Toggle.linux.d.ts +4 -0
  1316. package/types/platform/linux/Toggle.linux.d.ts.map +1 -0
  1317. package/types/platform/linux/Window.linux.d.ts +4 -0
  1318. package/types/platform/linux/Window.linux.d.ts.map +1 -0
  1319. package/types/platform/mac/AppCommands.macos.d.ts +7 -0
  1320. package/types/platform/mac/AppCommands.macos.d.ts.map +1 -0
  1321. package/types/platform/mac/Button.macos.d.ts +7 -0
  1322. package/types/platform/mac/Button.macos.d.ts.map +1 -0
  1323. package/types/platform/mac/Image.macos.d.ts +11 -0
  1324. package/types/platform/mac/Image.macos.d.ts.map +1 -0
  1325. package/types/platform/mac/OneMacButtonNativeComponent.d.ts +13 -0
  1326. package/types/platform/mac/OneMacButtonNativeComponent.d.ts.map +1 -0
  1327. package/types/platform/mac/OneMacImageNativeComponent.d.ts +11 -0
  1328. package/types/platform/mac/OneMacImageNativeComponent.d.ts.map +1 -0
  1329. package/types/platform/mac/OneMacPopUpButtonNativeComponent.d.ts +18 -0
  1330. package/types/platform/mac/OneMacPopUpButtonNativeComponent.d.ts.map +1 -0
  1331. package/types/platform/mac/OneMacSegmentedControlNativeComponent.d.ts +19 -0
  1332. package/types/platform/mac/OneMacSegmentedControlNativeComponent.d.ts.map +1 -0
  1333. package/types/platform/mac/OneMacToggleNativeComponent.d.ts +17 -0
  1334. package/types/platform/mac/OneMacToggleNativeComponent.d.ts.map +1 -0
  1335. package/types/platform/mac/PopUpButton.macos.d.ts +14 -0
  1336. package/types/platform/mac/PopUpButton.macos.d.ts.map +1 -0
  1337. package/types/platform/mac/SegmentedControl.macos.d.ts +4 -0
  1338. package/types/platform/mac/SegmentedControl.macos.d.ts.map +1 -0
  1339. package/types/platform/mac/Toggle.macos.d.ts +5 -0
  1340. package/types/platform/mac/Toggle.macos.d.ts.map +1 -0
  1341. package/types/platform/specs/OneDOMHostNativeComponent.d.ts +34 -0
  1342. package/types/platform/specs/OneDOMHostNativeComponent.d.ts.map +1 -0
  1343. package/types/platform/specs/OneStoreReview.nitro.d.ts +1 -0
  1344. package/types/platform/specs/OneStoreReview.nitro.d.ts.map +1 -1
  1345. package/types/platform/split-view/split-view.linux.d.ts +2 -0
  1346. package/types/platform/split-view/split-view.linux.d.ts.map +1 -0
  1347. package/types/platform/split-view/split-view.macos.d.ts +16 -0
  1348. package/types/platform/split-view/split-view.macos.d.ts.map +1 -0
  1349. package/types/platform/ui/Image.linux.d.ts +2 -0
  1350. package/types/platform/ui/Image.linux.d.ts.map +1 -0
  1351. package/types/platform/ui/Image.macos.d.ts +3 -0
  1352. package/types/platform/ui/Image.macos.d.ts.map +1 -0
  1353. package/types/router/createRoute.d.ts +26 -3
  1354. package/types/router/createRoute.d.ts.map +1 -1
  1355. package/types/router/router.d.ts +6 -0
  1356. package/types/router/router.d.ts.map +1 -1
  1357. package/types/searchParams.d.ts +58 -0
  1358. package/types/searchParams.d.ts.map +1 -0
  1359. package/types/server/oneServe.d.ts.map +1 -1
  1360. package/types/server/workerHandler.d.ts.map +1 -1
  1361. package/types/standardSchema.d.ts +47 -0
  1362. package/types/standardSchema.d.ts.map +1 -0
  1363. package/types/typed-routes/generateRouteTypes.d.ts +5 -1
  1364. package/types/typed-routes/generateRouteTypes.d.ts.map +1 -1
  1365. package/types/typed-routes/getTypedRoutesDeclarationFile.d.ts +8 -1
  1366. package/types/typed-routes/getTypedRoutesDeclarationFile.d.ts.map +1 -1
  1367. package/types/typed-routes/searchParamSchemas.d.ts +34 -0
  1368. package/types/typed-routes/searchParamSchemas.d.ts.map +1 -0
  1369. package/types/typed-routes/searchSchemaEntries.d.ts +9 -0
  1370. package/types/typed-routes/searchSchemaEntries.d.ts.map +1 -0
  1371. package/types/types.d.ts +10 -2
  1372. package/types/types.d.ts.map +1 -1
  1373. package/types/useLoader.d.ts +2 -2
  1374. package/types/useLoader.d.ts.map +1 -1
  1375. package/types/utils/cleanUrl.d.ts +11 -1
  1376. package/types/utils/cleanUrl.d.ts.map +1 -1
  1377. package/types/validateParams.d.ts +1 -1
  1378. package/types/validateParams.d.ts.map +1 -1
  1379. package/types/{validateSearch.d.ts → validateSearchParams.d.ts} +13 -19
  1380. package/types/validateSearchParams.d.ts.map +1 -0
  1381. package/types/vercel/build/generate/createSsrServerlessFunction.d.ts.map +1 -1
  1382. package/types/vite/dom/browser.d.ts +8 -0
  1383. package/types/vite/dom/browser.d.ts.map +1 -0
  1384. package/types/vite/dom/directive.d.ts +6 -0
  1385. package/types/vite/dom/directive.d.ts.map +1 -0
  1386. package/types/vite/dom/registry.d.ts +23 -0
  1387. package/types/vite/dom/registry.d.ts.map +1 -0
  1388. package/types/vite/one.d.ts.map +1 -1
  1389. package/types/vite/plugins/clientTreeShakePlugin.d.ts.map +1 -1
  1390. package/types/vite/plugins/environmentGuardPlugin.d.ts +2 -2
  1391. package/types/vite/plugins/fileSystemRouterPlugin.d.ts.map +1 -1
  1392. package/types/vite/plugins/generateFileSystemRouteTypesPlugin.d.ts.map +1 -1
  1393. package/types/vite/plugins/iosLinkSetPlugin.d.ts +3 -0
  1394. package/types/vite/plugins/iosLinkSetPlugin.d.ts.map +1 -0
  1395. package/types/vite/plugins/iosSdkPlugin.d.ts +1 -1
  1396. package/types/vite/plugins/iosSdkPlugin.d.ts.map +1 -1
  1397. package/types/vite/plugins/kotlinSourcePlugin.d.ts +1 -1
  1398. package/types/vite/plugins/kotlinSourcePlugin.d.ts.map +1 -1
  1399. package/types/vite/plugins/loaderSearchSchemasPlugin.d.ts +14 -0
  1400. package/types/vite/plugins/loaderSearchSchemasPlugin.d.ts.map +1 -0
  1401. package/types/vite/plugins/swiftPackagePlugin.d.ts +1 -1
  1402. package/types/vite/plugins/swiftPackagePlugin.d.ts.map +1 -1
  1403. package/types/vite/plugins/useDomPlugin.d.ts +8 -1
  1404. package/types/vite/plugins/useDomPlugin.d.ts.map +1 -1
  1405. package/types/vite/types.d.ts +5 -1
  1406. package/types/vite/types.d.ts.map +1 -1
  1407. package/dist/cjs/platform/store-review/backend.ios.cjs +0 -47
  1408. package/dist/cjs/platform/store-review/backend.ios.js +0 -49
  1409. package/dist/cjs/platform/store-review/backend.ios.js.map +0 -1
  1410. package/dist/cjs/validateSearch.native.js.map +0 -1
  1411. package/dist/esm/one.mjs.map +0 -1
  1412. package/dist/esm/one.native.js.map +0 -1
  1413. package/dist/esm/platform/adaptive/index.mjs.map +0 -1
  1414. package/dist/esm/platform/store-review/backend.ios.js +0 -26
  1415. package/dist/esm/platform/store-review/backend.ios.js.map +0 -1
  1416. package/dist/esm/validateSearch.mjs.map +0 -1
  1417. package/dist/esm/validateSearch.native.js.map +0 -1
  1418. package/src/platform/store-review/backend.ios.ts +0 -28
  1419. package/types/platform/store-review/backend.ios.d.ts +0 -6
  1420. package/types/platform/store-review/backend.ios.d.ts.map +0 -1
  1421. package/types/validateSearch.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"one.native.js","names":[],"sources":["esm/vite/one.native.js"],"sourcesContent":["import { configureVXRNCompilerPlugin } from \"@vxrn/compiler\";\nimport { resolvePath } from \"@vxrn/resolve\";\nimport { getPlatformEnvDefine } from \"@vxrn/utils\";\nimport events from \"events\";\nimport { existsSync, readFileSync } from \"fs\";\nimport path from \"path\";\nimport { exactRegex } from \"rolldown/filter\";\nimport { normalizePath } from \"vite\";\nimport { autoDepOptimizePlugin, getOptionsFilled, loadEnv, nearestPackageJson, backgroundComputationPlugin, workletImportsPlugin } from \"vxrn\";\nimport vxrnVitePlugin from \"vxrn/vite-plugin\";\nimport { CACHE_KEY } from \"../constants\";\nimport { getViteMetroPluginOptions } from \"../metro-config/getViteMetroPluginOptions\";\nimport { setServerGlobals } from \"../server/setServerGlobals\";\nimport { getRouterRootFromOneOptions } from \"../utils/getRouterRootFromOneOptions\";\nimport { createRouteIndex } from \"../utils/routeIndex\";\nimport { absorbedPackageAliases } from \"../utils/absorbedPackages\";\nimport { ensureTSConfig } from \"./ensureTsConfig\";\nimport { setOneOptions } from \"./loadConfig\";\nimport { resolveNativeBundler } from \"./nativeBundler\";\nimport { bundledDevPlugin } from \"./plugins/bundledDevPlugin\";\nimport { clientTreeShakePlugin } from \"./plugins/clientTreeShakePlugin\";\nimport { createDevtoolsPlugin } from \"./plugins/devtoolsPlugin\";\nimport { createFileSystemRouterPlugin } from \"./plugins/fileSystemRouterPlugin\";\nimport { fixDependenciesPlugin } from \"./plugins/fixDependenciesPlugin\";\nimport { generateFileSystemRouteTypesPlugin } from \"./plugins/generateFileSystemRouteTypesPlugin\";\nimport { criticalCSSPlugin } from \"./plugins/criticalCSSPlugin\";\nimport { imageDataPlugin } from \"./plugins/imageDataPlugin\";\nimport { createRouteModuleHmrPlugin } from \"./plugins/routeModuleHmrPlugin\";\nimport { sourceInspectorPlugin } from \"./plugins/sourceInspectorPlugin\";\nimport { swiftPackagePlugin } from \"./plugins/swiftPackagePlugin\";\nimport { iosSdkPlugin } from \"./plugins/iosSdkPlugin\";\nimport { kotlinSourcePlugin } from \"./plugins/kotlinSourcePlugin\";\nimport { SSRCSSPlugin } from \"./plugins/SSRCSSPlugin\";\nimport { virtualEntryId } from \"./plugins/virtualEntryConstants\";\nimport { createVirtualEntry } from \"./plugins/virtualEntryPlugin\";\nimport { environmentGuardPlugin } from \"./plugins/environmentGuardPlugin\";\nimport { shouldEnableWorkerdDev } from \"./cloudflareWranglerConfig\";\nvar RN_DEEP_IMPORT_RE = /^react-native\\/Libraries\\/|react-native-web(-lite)?\\/.*\\/Libraries\\//;\nevents.setMaxListeners(1e3);\nglobalThis.__vxrnEnableNativeEnv = true;\nfunction one() {\n var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n var _ref;\n var _nativeOptions_app, _options_config, _options_react, _options_ssr, _options_ssr1, _options_web, _options_config1, _options_router, _options_web1;\n setServerGlobals();\n var routerRoot = getRouterRootFromOneOptions(options);\n var nativeDisabled = options.native === false;\n var nativeOptions = options.native === false ? void 0 : options.native;\n var nativeAppName = (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_app = nativeOptions.app) === null || _nativeOptions_app === void 0 ? void 0 : _nativeOptions_app.name) || (nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.key);\n var nativeApp = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.app;\n var nativeAppVersion = nativeApp === null || nativeApp === void 0 ? void 0 : nativeApp.version;\n if (nativeDisabled) {\n globalThis.__vxrnEnableNativeEnv = false;\n }\n var metroOptions = (function() {\n var _nativeOptions_bundlerOptions_argv, _nativeOptions_bundlerOptions, _options_router3, _options_router12, _nativeOptions_bundlerOptions1, _options_react2, _options_react1;\n if (nativeDisabled) return null;\n if (resolveNativeBundler({\n bundler: nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler\n }) !== \"metro\") {\n var dropped = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n if ((dropped === null || dropped === void 0 ? void 0 : dropped.babelConfig) || (dropped === null || dropped === void 0 ? void 0 : dropped.babelConfigOverrides)) {\n console.warn(`[one] native.bundlerOptions configures babel plugins, but native.bundler is \"${nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler}\", which runs no babel. Those plugins will not run and whatever they were rewriting will reach the bundle untransformed.`);\n }\n return null;\n }\n if (process.env.ONE_METRO_MODE) {\n console.info(\"ONE_METRO_MODE environment variable is set, enabling Metro mode\");\n }\n var routerRoot2 = getRouterRootFromOneOptions(options);\n var defaultMetroOptions = getViteMetroPluginOptions({\n projectRoot: (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions_argv = _nativeOptions_bundlerOptions.argv) === null || _nativeOptions_bundlerOptions_argv === void 0 ? void 0 : _nativeOptions_bundlerOptions_argv.projectRoot) || process.cwd(),\n relativeRouterRoot: routerRoot2,\n ignoredRouteFiles: (_options_router3 = options.router) === null || _options_router3 === void 0 ? void 0 : _options_router3.ignoredRouteFiles,\n linking: (_options_router12 = options.router) === null || _options_router12 === void 0 ? void 0 : _options_router12.linking,\n userDefaultConfigOverrides: nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions1 = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions1 === void 0 ? void 0 : _nativeOptions_bundlerOptions1.defaultConfigOverrides,\n setupFile: options.setupFile\n });\n var userMetroOptions = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n var babelConfig = {\n ...defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.babelConfig,\n ...userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.babelConfig\n };\n return {\n ...defaultMetroOptions,\n ...userMetroOptions,\n defaultConfigOverrides: defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.defaultConfigOverrides,\n // defaultConfigOverrides is merged by getViteMetroPluginOptions, so we need to set it here again.\n argv: {\n ...defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.argv,\n ...userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.argv\n },\n babelConfig: {\n ...babelConfig,\n plugins: [\n ...babelConfig.plugins || [],\n ...((_options_react2 = options.react) === null || _options_react2 === void 0 ? void 0 : _options_react2.compiler) === true || ((_options_react1 = options.react) === null || _options_react1 === void 0 ? void 0 : _options_react1.compiler) === \"native\" ? [\n \"babel-plugin-react-compiler\"\n ] : []\n ]\n },\n mainModuleName: \"one/metro-entry\",\n // allow env var to enable lazy startup\n startup: process.env.ONE_METRO_LAZY ? \"lazy\" : userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.startup\n };\n })();\n var vxrnPlugins = [];\n if (!process.env.IS_VXRN_CLI) {\n console.warn(\"Experimental: running VxRN as a Vite plugin. This is not yet stable.\");\n vxrnPlugins.push(vxrnVitePlugin({\n metro: metroOptions,\n disableNative: nativeDisabled\n }));\n } else {\n if (!globalThis.__oneOptions) {\n setOneOptions(options);\n globalThis[\"__vxrnPluginConfig__\"] = options;\n globalThis[\"__vxrnMetroOptions__\"] = metroOptions;\n return [];\n }\n }\n if (((_options_config = options.config) === null || _options_config === void 0 ? void 0 : _options_config.ensureTSConfig) !== false) {\n void ensureTSConfig();\n }\n var vxrnOptions = getOptionsFilled();\n var root = (vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.root) || process.cwd();\n var compiler = (_options_react = options.react) === null || _options_react === void 0 ? void 0 : _options_react.compiler;\n if (compiler) {\n configureVXRNCompilerPlugin({\n enableCompiler: (\n // pass through object config, regex, or function directly\n typeof compiler === \"object\" || typeof compiler === \"function\" ? compiler : compiler === \"native\" ? [\n \"ios\",\n \"android\"\n ] : compiler === \"web\" ? [\n \"ssr\",\n \"client\"\n ] : true\n )\n });\n }\n var autoDepsOptions = (_options_ssr = options.ssr) === null || _options_ssr === void 0 ? void 0 : _options_ssr.autoDepsOptimization;\n var dedupeSymlinks = (_ref = (_options_ssr1 = options.ssr) === null || _options_ssr1 === void 0 ? void 0 : _options_ssr1.dedupeSymlinkedModules) !== null && _ref !== void 0 ? _ref : false;\n var ssrDedup_optimizedPackages = null;\n var ssrDedup_projectRoot = \"\";\n var ssrSymlinkDedupPlugin = {\n name: \"one:ssr-symlink-dedup\",\n enforce: \"pre\",\n configResolved(config) {\n var _config_ssr_optimizeDeps, _config_ssr;\n if (!dedupeSymlinks) return;\n ssrDedup_projectRoot = config.root || process.cwd();\n var ssrInclude = (_config_ssr = config.ssr) === null || _config_ssr === void 0 ? void 0 : (_config_ssr_optimizeDeps = _config_ssr.optimizeDeps) === null || _config_ssr_optimizeDeps === void 0 ? void 0 : _config_ssr_optimizeDeps.include;\n if (!(ssrInclude === null || ssrInclude === void 0 ? void 0 : ssrInclude.length)) return;\n ssrDedup_optimizedPackages = /* @__PURE__ */ new Set();\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = ssrInclude[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n if (entry.startsWith(\"@\")) {\n var parts = entry.split(\"/\");\n ssrDedup_optimizedPackages.add(`${parts[0]}/${parts[1]}`);\n } else {\n ssrDedup_optimizedPackages.add(entry.split(\"/\")[0]);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n },\n async resolveId(source, importer, options2) {\n if (!dedupeSymlinks) return;\n if (source[0] === \".\" || source[0] === \"/\") return;\n var pkgName;\n var subpath = null;\n if (source.startsWith(\"@\")) {\n var parts = source.split(\"/\");\n pkgName = parts.length >= 2 ? `${parts[0]}/${parts[1]}` : source;\n if (parts.length > 2) subpath = `./${parts.slice(2).join(\"/\")}`;\n } else {\n var parts1 = source.split(\"/\");\n pkgName = parts1[0];\n if (parts1.length > 1) subpath = `./${parts1.slice(1).join(\"/\")}`;\n }\n var resolved = await this.resolve(source, importer, {\n ...options2,\n skipSelf: true\n });\n if (!(resolved === null || resolved === void 0 ? void 0 : resolved.id)) return;\n if (resolved.id.includes(\"/node_modules/\")) return;\n var _$path = await import(\"path\");\n var fs = await import(\"fs\");\n var { join, dirname } = _$path;\n var { realpathSync, existsSync: existsSync2, readFileSync: readFileSync2 } = fs;\n var dir = ssrDedup_projectRoot;\n while (dir !== dirname(dir)) {\n var nmPkgDir = join(dir, \"node_modules\", pkgName);\n if (existsSync2(nmPkgDir)) {\n if (subpath) {\n try {\n var _pkg_exports;\n var pkg = JSON.parse(readFileSync2(join(nmPkgDir, \"package.json\"), \"utf8\"));\n var exportEntry = (_pkg_exports = pkg.exports) === null || _pkg_exports === void 0 ? void 0 : _pkg_exports[subpath];\n if (exportEntry && typeof exportEntry === \"object\") {\n var target = exportEntry.import || exportEntry.module || exportEntry.default;\n if (target) {\n var fullPath = join(nmPkgDir, target);\n if (existsSync2(fullPath))\n return {\n id: normalizePath(fullPath),\n external: resolved.external\n };\n }\n }\n } catch (unused) {\n }\n }\n var realPkgDir = normalizePath(realpathSync(nmPkgDir));\n if (resolved.id.startsWith(realPkgDir)) {\n var relativePart = resolved.id.slice(realPkgDir.length);\n return {\n id: normalizePath(nmPkgDir) + relativePart,\n external: resolved.external\n };\n }\n break;\n }\n dir = dirname(dir);\n }\n }\n };\n var withAbsorbedAliases = function withAbsorbedAliases2(alias) {\n var root2 = process.cwd();\n return {\n ...alias,\n native: {\n ...absorbedPackageAliases(root2, \"native\"),\n ...alias === null || alias === void 0 ? void 0 : alias.native\n }\n };\n };\n var createAliasPlugin = function createAliasPlugin2(alias, nativePlatform) {\n var resolveMap = function resolveMap2(map) {\n if (!map) return null;\n var out = {};\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(map)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [key, value] = _step.value;\n try {\n out[key] = path.isAbsolute(value) ? value : resolvePath(value);\n } catch (unused) {\n out[key] = value;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return out;\n };\n var resolved = {\n web: resolveMap(alias.web),\n native: resolveMap(alias.native),\n client: resolveMap(alias.client),\n ssr: resolveMap(alias.ssr),\n ios: resolveMap(alias.ios),\n android: resolveMap(alias.android)\n };\n var aliasKeys = [\n ...new Set(Object.values(resolved).flatMap(function(m) {\n return m ? Object.keys(m) : [];\n }))\n ];\n var aliasFilter = aliasKeys.length ? new RegExp(`^(?:${aliasKeys.map(function(k) {\n return k.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n }).join(\"|\")})$`) : /(?!)/;\n return {\n name: \"one:alias\",\n enforce: \"pre\",\n // vite's dep optimizer resolves its include list without plugins, so the\n // absorbed packages also go in resolve.alias, which only web resolves with\n config: nativePlatform ? void 0 : function() {\n return {\n resolve: {\n alias: Object.entries(absorbedPackageAliases(process.cwd(), \"web\")).map(function(param) {\n var [name, replacement] = param;\n return {\n find: new RegExp(`^${name}$`),\n replacement\n };\n })\n }\n };\n },\n resolveId: {\n filter: {\n id: aliasFilter\n },\n handler(source) {\n var _this_environment;\n var env = nativePlatform !== null && nativePlatform !== void 0 ? nativePlatform : (_this_environment = this.environment) === null || _this_environment === void 0 ? void 0 : _this_environment.name;\n var specific = env ? resolved[env] : null;\n if (specific && source in specific) {\n var id = specific[source];\n return {\n id,\n external: false,\n packageJsonPath: nearestPackageJson(id)\n };\n }\n var isWeb = !env || env === \"client\" || env === \"ssr\";\n var general = isWeb ? resolved.web : resolved.native;\n if (general && source in general) {\n var id1 = general[source];\n return {\n id: id1,\n external: false,\n packageJsonPath: nearestPackageJson(id1)\n };\n }\n }\n }\n };\n };\n var devAndProdPlugins = [\n {\n name: \"one:config\",\n __get: options\n },\n {\n name: \"one:env-prefix\",\n config(userConfig) {\n if (userConfig.envPrefix) return;\n return {\n envPrefix: [\n \"VITE_\",\n \"ONE_PUBLIC_\",\n \"EXPO_PUBLIC_\"\n ]\n };\n }\n },\n bundledDevPlugin(!!((_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.experimentalBundledDev)),\n environmentGuardPlugin(options.environmentGuards),\n criticalCSSPlugin(),\n imageDataPlugin(),\n {\n name: \"one-define-client-env\",\n async config(userConfig, env) {\n var _ref2, _ref1, _ref22;\n var clientEnvDefine = options.skipEnv ? {} : (await loadEnv((_ref2 = (_ref1 = (_ref22 = vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.mode) !== null && _ref22 !== void 0 ? _ref22 : userConfig === null || userConfig === void 0 ? void 0 : userConfig.mode) !== null && _ref1 !== void 0 ? _ref1 : env === null || env === void 0 ? void 0 : env.mode) !== null && _ref2 !== void 0 ? _ref2 : \"development\", process.cwd(), userConfig === null || userConfig === void 0 ? void 0 : userConfig.envPrefix)).clientEnvDefine;\n return {\n define: {\n ...clientEnvDefine,\n ...process.env.ONE_DEBUG_ROUTER && {\n \"process.env.ONE_DEBUG_ROUTER\": JSON.stringify(process.env.ONE_DEBUG_ROUTER)\n }\n }\n };\n }\n },\n ...autoDepsOptions === false ? [] : [\n autoDepOptimizePlugin({\n onScannedDeps(param) {\n var { hasReanimated, hasNativewind } = param;\n var _ref2;\n configureVXRNCompilerPlugin({\n enableReanimated: hasReanimated,\n enableNativeCSS: (_ref2 = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.css) !== null && _ref2 !== void 0 ? _ref2 : hasNativewind,\n enableNativewind: hasNativewind\n });\n },\n root,\n include: /node_modules/,\n ...autoDepsOptions === true ? {} : autoDepsOptions\n })\n ],\n ...((_options_config1 = options.config) === null || _options_config1 === void 0 ? void 0 : _options_config1.tsConfigPaths) === false ? [] : [\n (function() {\n var mappings = [];\n function loadMappings(resolvedRoot) {\n try {\n var _config_compilerOptions, _config_compilerOptions1;\n var configPath = path.resolve(resolvedRoot, \"tsconfig.json\");\n if (!existsSync(configPath)) return;\n var raw = readFileSync(configPath, \"utf-8\");\n var stripped = raw.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, function(m, g) {\n return g ? \"\" : m;\n });\n var config = JSON.parse(stripped);\n var paths = config === null || config === void 0 ? void 0 : (_config_compilerOptions = config.compilerOptions) === null || _config_compilerOptions === void 0 ? void 0 : _config_compilerOptions.paths;\n var baseUrl = (config === null || config === void 0 ? void 0 : (_config_compilerOptions1 = config.compilerOptions) === null || _config_compilerOptions1 === void 0 ? void 0 : _config_compilerOptions1.baseUrl) || \".\";\n if (!paths) return;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(paths)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [pattern, targets] = _step.value;\n var target = targets[0];\n if (!target) continue;\n if (pattern.endsWith(\"/*\")) {\n var resolved = path.resolve(resolvedRoot, baseUrl, target.slice(0, -1));\n mappings.push({\n prefix: pattern.slice(0, -1),\n replacement: resolved.endsWith(\"/\") ? resolved : resolved + \"/\",\n wildcard: true\n });\n } else {\n mappings.push({\n prefix: pattern,\n replacement: path.resolve(resolvedRoot, baseUrl, target),\n wildcard: false\n });\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } catch (unused) {\n }\n }\n loadMappings(root);\n var tsconfigPathsFilter = mappings.length ? new RegExp(mappings.map(function(m) {\n return `^${m.prefix.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\")}${m.wildcard ? \"\" : \"$\"}`;\n }).join(\"|\")) : /^[^./]/;\n return {\n name: \"one:tsconfig-paths\",\n enforce: \"pre\",\n config() {\n return {\n resolve: {\n tsconfigPaths: true\n }\n };\n },\n configResolved(config) {\n if (mappings.length === 0) {\n loadMappings(config.root);\n }\n },\n resolveId: {\n filter: {\n id: tsconfigPathsFilter\n },\n handler(source) {\n var resolved = function resolved2(id) {\n return {\n id,\n packageJsonPath: nearestPackageJson(id)\n };\n };\n var jsExts = [\n \".ts\",\n \".tsx\",\n \".js\",\n \".jsx\",\n \".mts\",\n \".mjs\",\n \".cjs\",\n \".cts\"\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var m = _step.value;\n var candidate = void 0;\n if (m.wildcard) {\n if (source.startsWith(m.prefix)) {\n candidate = m.replacement + source.slice(m.prefix.length);\n }\n } else if (source === m.prefix) {\n candidate = m.replacement;\n }\n if (!candidate) continue;\n if (jsExts.includes(path.extname(candidate))) return resolved(candidate);\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = jsExts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var e = _step1.value;\n if (existsSync(candidate + e)) return resolved(candidate + e);\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = jsExts[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var e1 = _step2.value;\n if (existsSync(candidate + \"/index\" + e1)) return resolved(candidate + \"/index\" + e1);\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n return resolved(candidate);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n }\n };\n })()\n ],\n createAliasPlugin(withAbsorbedAliases(options.alias)),\n {\n // rolldown fails on deep react-native/Libraries/* imports during dep pre-bundling.\n // these are native-only paths that don't exist in react-native-web.\n name: \"one:redirect-rn-deep-imports\",\n enforce: \"pre\",\n // rust-side filter matching the two source patterns below, so the ~24k\n // non-matching imports in a build never enter js at all\n resolveId: {\n filter: {\n id: RN_DEEP_IMPORT_RE\n },\n handler(source) {\n var _this_environment, _this_environment1, _this_environment2;\n if (((_this_environment = this.environment) === null || _this_environment === void 0 ? void 0 : _this_environment.name) === \"client\" || ((_this_environment1 = this.environment) === null || _this_environment1 === void 0 ? void 0 : _this_environment1.name) === \"ssr\" || ((_this_environment2 = this.environment) === null || _this_environment2 === void 0 ? void 0 : _this_environment2.name) === \"worker\") {\n return \"\\0rn-empty-module\";\n }\n }\n },\n load: {\n filter: {\n id: exactRegex(\"\\0rn-empty-module\")\n },\n handler() {\n return \"export default {}; export {};\";\n }\n }\n },\n {\n name: \"one-aliases\",\n enforce: \"pre\",\n config() {\n var tslibLitePath = \"\";\n try {\n tslibLitePath = resolvePath(\"@vxrn/tslib-lite\", process.cwd());\n } catch (err) {\n console.info(`Can't find tslib-lite, falling back to tslib`);\n if (process.env.DEBUG) {\n console.error(err);\n }\n }\n return {\n resolve: {\n alias: {\n // testing getting transition between routes working\n // 'use-sync-external-store/with-selector': resolvePath(\n // 'use-sync-external-store/shim/with-selector'\n // ),\n ...tslibLitePath && {\n tslib: tslibLitePath\n }\n }\n }\n };\n }\n },\n {\n name: \"one:init-config\",\n config() {\n var _options_web2, _options_web12, _options_web22, _options_web3;\n var setupFileDefines = (function() {\n if (!options.setupFile) return {};\n var setupFiles;\n if (typeof options.setupFile === \"string\") {\n setupFiles = {\n client: options.setupFile,\n server: options.setupFile,\n ios: options.setupFile,\n android: options.setupFile\n };\n } else if (\"native\" in options.setupFile) {\n setupFiles = {\n client: options.setupFile.client,\n server: options.setupFile.server,\n ios: options.setupFile.native,\n android: options.setupFile.native\n };\n } else {\n setupFiles = options.setupFile;\n }\n return {\n ...setupFiles.client && {\n \"process.env.ONE_SETUP_FILE_CLIENT\": JSON.stringify(setupFiles.client)\n },\n ...setupFiles.server && {\n \"process.env.ONE_SETUP_FILE_SERVER\": JSON.stringify(setupFiles.server)\n },\n ...setupFiles.ios && {\n \"process.env.ONE_SETUP_FILE_IOS\": JSON.stringify(setupFiles.ios)\n },\n ...setupFiles.android && {\n \"process.env.ONE_SETUP_FILE_ANDROID\": JSON.stringify(setupFiles.android)\n }\n };\n })();\n var serverURL = process.env.ONE_SERVER_URL || (vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.server.url);\n return {\n // Platform env defined at root level for client (workaround for Vite bug with environment.client.define)\n define: {\n ...getPlatformEnvDefine(\"client\"),\n ...setupFileDefines,\n ...((_options_web2 = options.web) === null || _options_web2 === void 0 ? void 0 : _options_web2.defaultRenderMode) && {\n \"process.env.ONE_DEFAULT_RENDER_MODE\": JSON.stringify(options.web.defaultRenderMode),\n \"import.meta.env.ONE_DEFAULT_RENDER_MODE\": JSON.stringify(options.web.defaultRenderMode)\n },\n ...process.env.NODE_ENV !== \"production\" && serverURL && {\n \"process.env.ONE_SERVER_URL\": JSON.stringify(serverURL),\n \"import.meta.env.ONE_SERVER_URL\": JSON.stringify(serverURL)\n },\n ...((_options_web12 = options.web) === null || _options_web12 === void 0 ? void 0 : _options_web12.linkPrefetch) && {\n \"process.env.ONE_LINK_PREFETCH\": JSON.stringify(options.web.linkPrefetch)\n },\n ...((_options_web22 = options.web) === null || _options_web22 === void 0 ? void 0 : _options_web22.skewProtection) !== void 0 && {\n \"process.env.ONE_SKEW_PROTECTION\": JSON.stringify(options.web.skewProtection === true ? \"true\" : options.web.skewProtection === false ? \"false\" : options.web.skewProtection)\n },\n // 'proactive'\n ...((_options_web3 = options.web) === null || _options_web3 === void 0 ? void 0 : _options_web3.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES\": JSON.stringify(options.web.suspendRoutes ? \"1\" : \"0\")\n }\n },\n environments: {\n ssr: {\n define: getPlatformEnvDefine(\"ssr\")\n },\n ios: {\n define: {\n ...getPlatformEnvDefine(\"ios\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n android: {\n define: {\n ...getPlatformEnvDefine(\"android\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n }\n },\n ssr: {\n // ensure server-only/client-only go through vite so our environmentGuardPlugin can handle them\n noExternal: [\n \"server-only\",\n \"client-only\"\n ]\n }\n };\n }\n },\n {\n name: \"one:tamagui\",\n config() {\n return {\n define: {\n // safe to set because it only affects web in tamagui, and one is always react 19\n \"process.env.TAMAGUI_REACT_19\": '\"1\"'\n },\n environments: {\n ssr: {\n define: {\n \"process.env.TAMAGUI_IS_SERVER\": '\"1\"',\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n ios: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n android: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n }\n }\n };\n }\n },\n createRouteModuleHmrPlugin(routerRoot),\n // Plugins may transform the source code and add imports of `react/jsx-dev-runtime`, which won't be discovered by Vite's initial `scanImports` since the implementation is using ESbuild where such plugins are not executed.\n // Thus, if the project has a valid `react/jsx-dev-runtime` import, we tell Vite to optimize it, so Vite won't only discover it on the next page load and trigger a full reload.\n {\n name: \"one:optimize-dev-deps\",\n config(_, env) {\n if (env.mode === \"development\") {\n return {\n optimizeDeps: {\n include: [\n \"react/jsx-dev-runtime\",\n \"react/compiler-runtime\"\n ]\n }\n };\n }\n }\n },\n {\n name: \"one:remove-server-from-client\",\n enforce: \"pre\",\n // both conditions are rust-side: only one-server-only modules that\n // actually contain the import cross into js\n transform: {\n filter: {\n id: /one-server-only/,\n code: 'import { AsyncLocalStorage } from \"node:async_hooks\"'\n },\n handler(code) {\n if (this.environment.name !== \"client\") return;\n return code.replace(`import { AsyncLocalStorage } from \"node:async_hooks\"`, `class AsyncLocalStorage {}`);\n }\n }\n },\n // packages in resolve.dedupe must also be pre-bundled for SSR to prevent\n // duplicate module instances (e.g. symlinked monorepo packages resolving\n // to different paths)\n {\n name: \"one:ssr-dedupe-prebundle\",\n config(config) {\n var _config_resolve;\n if (!dedupeSymlinks) return;\n var dedupeList = (_config_resolve = config.resolve) === null || _config_resolve === void 0 ? void 0 : _config_resolve.dedupe;\n if (!Array.isArray(dedupeList) || dedupeList.length === 0) return;\n return {\n ssr: {\n optimizeDeps: {\n include: [\n ...dedupeList\n ]\n },\n noExternal: [\n ...dedupeList\n ]\n }\n };\n }\n },\n // fix: vite's ssr dep optimizer registers pre-bundled deps by their\n // node_modules path, but symlinks cause imports to resolve to the real\n // (source) path. the optimizer doesn't recognize the real path, so it\n // loads from source — creating a duplicate instance.\n // this plugin forces optimized SSR deps to resolve via node_modules.\n // off by default, and every hook bails on `!dedupeSymlinks`, so skip\n // registering it entirely rather than paying a napi round trip per import\n ...dedupeSymlinks ? [\n ssrSymlinkDedupPlugin\n ] : []\n ];\n var nativeWebDevAndProdPlugsin = [\n clientTreeShakePlugin({\n routerRoot\n })\n ];\n var nativeFormPlugins = [];\n var nativeFormPluginsCapture = {\n name: \"one:native-form-plugins\",\n configResolved(config) {\n nativeFormPlugins = config.plugins.filter(function(plugin) {\n var _plugin_api;\n return (_plugin_api = plugin.api) === null || _plugin_api === void 0 ? void 0 : _plugin_api.vxrnNative;\n });\n }\n };\n if (!nativeDisabled) {\n var viteBundlerOptions = (nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler) === \"metro\" ? void 0 : nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n globalThis.__vxrnAddNativePlugins = function(platform) {\n var _ref2;\n var listed = [\n backgroundComputationPlugin(\"native\"),\n workletImportsPlugin({}),\n ...nativeApp ? [\n {\n name: \"one:externalize-expo-for-native-app\",\n resolveId(source) {\n if (/^(?:expo(?:-[^/]+)?|@expo\\/[^/]+)(?:\\/|$)/.test(source)) {\n return {\n id: source,\n external: true\n };\n }\n }\n }\n ] : [],\n createAliasPlugin(withAbsorbedAliases(options.alias), platform),\n clientTreeShakePlugin({\n runtime: \"rolldown\",\n routerRoot\n }),\n ...(_ref2 = viteBundlerOptions === null || viteBundlerOptions === void 0 ? void 0 : viteBundlerOptions.plugins) !== null && _ref2 !== void 0 ? _ref2 : []\n ];\n var listedNames = new Set(listed.map(function(plugin) {\n return plugin.name;\n }));\n return [\n ...listed,\n ...nativeFormPlugins.filter(function(plugin) {\n return !listedNames.has(plugin.name);\n }),\n // last, so an app plugin that compiles .swift itself (a simulator) wins\n swiftPackagePlugin(platform, root),\n kotlinSourcePlugin(platform, root),\n iosSdkPlugin(platform, root)\n ];\n };\n globalThis.__vxrnNativeUserDefine = {\n ...viteBundlerOptions === null || viteBundlerOptions === void 0 ? void 0 : viteBundlerOptions.define,\n ...nativeAppName && {\n \"process.env.ONE_APP_NAME\": JSON.stringify(nativeAppName),\n \"import.meta.env.ONE_APP_NAME\": JSON.stringify(nativeAppName)\n }\n };\n }\n globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins;\n var flags = {};\n var routeIndex = createRouteIndex({\n routerRoot: path.resolve(root, routerRoot),\n ignoredRouteFiles: (_options_router = options.router) === null || _options_router === void 0 ? void 0 : _options_router.ignoredRouteFiles\n });\n if (!nativeDisabled) {\n var _options_router1, _options_router2;\n globalThis.__vxrnNativeEntryConfig = {\n routerRoot,\n ignoredRouteFiles: (_options_router1 = options.router) === null || _options_router1 === void 0 ? void 0 : _options_router1.ignoredRouteFiles,\n linking: (_options_router2 = options.router) === null || _options_router2 === void 0 ? void 0 : _options_router2.linking,\n setupFile: options.setupFile,\n flags,\n app: nativeApp\n };\n }\n var inspectorPlugins = (function() {\n var _options_devtools, _devtools_inspector;\n var devtools = (_options_devtools = options.devtools) !== null && _options_devtools !== void 0 ? _options_devtools : true;\n var inspector = devtools === true || devtools !== false && ((_devtools_inspector = devtools.inspector) !== null && _devtools_inspector !== void 0 ? _devtools_inspector : true);\n var editor = devtools !== true && devtools !== false ? devtools.editor : void 0;\n return inspector ? sourceInspectorPlugin({\n editor\n }) : [];\n })();\n var workerdDevPlugins = shouldEnableWorkerdDev((_options_web1 = options.web) === null || _options_web1 === void 0 ? void 0 : _options_web1.deploy, root) ? import(\"./plugins/workerdDevPlugin\").then(function(param) {\n var { createWorkerdDevPlugins } = param;\n return createWorkerdDevPlugins(options, root, routeIndex);\n }) : [];\n return [\n backgroundComputationPlugin(\"web\"),\n {\n name: \"one:background-worker-build\",\n config(config) {\n var _config_worker;\n var plugins = (_config_worker = config.worker) === null || _config_worker === void 0 ? void 0 : _config_worker.plugins;\n return {\n worker: {\n plugins: function plugins1() {\n var _ref2;\n return [\n ...(_ref2 = plugins === null || plugins === void 0 ? void 0 : plugins()) !== null && _ref2 !== void 0 ? _ref2 : [],\n backgroundComputationPlugin(\"web\")\n ];\n }\n }\n };\n }\n },\n workerdDevPlugins,\n ...vxrnPlugins,\n ...devAndProdPlugins,\n ...inspectorPlugins,\n ...nativeWebDevAndProdPlugsin,\n ...nativeDisabled ? [] : [\n nativeFormPluginsCapture\n ],\n /**\n * This is really the meat of one, where it handles requests:\n */\n createFileSystemRouterPlugin(options, routeIndex),\n generateFileSystemRouteTypesPlugin(options, routeIndex),\n fixDependenciesPlugin(options.patches),\n createVirtualEntry({\n ...options,\n flags,\n root: routerRoot,\n routeIndex\n }),\n {\n name: \"one-define-environment\",\n config() {\n return {\n define: {\n ...nativeAppName && {\n \"process.env.ONE_APP_NAME\": JSON.stringify(nativeAppName),\n \"import.meta.env.ONE_APP_NAME\": JSON.stringify(nativeAppName)\n },\n ...nativeAppVersion && {\n \"process.env.ONE_APP_VERSION\": JSON.stringify(nativeAppVersion),\n \"import.meta.env.ONE_APP_VERSION\": JSON.stringify(nativeAppVersion)\n },\n \"process.env.ONE_CACHE_KEY\": JSON.stringify(CACHE_KEY),\n \"import.meta.env.ONE_CACHE_KEY\": JSON.stringify(CACHE_KEY)\n }\n };\n }\n },\n SSRCSSPlugin({\n entries: [\n virtualEntryId\n ]\n }),\n // devtools (always includes refresh preamble for HMR, optionally includes UI)\n ...(function() {\n var _options_devtools;\n var devtools = (_options_devtools = options.devtools) !== null && _options_devtools !== void 0 ? _options_devtools : true;\n var includeUI = devtools !== false;\n var devtoolsOptions = typeof devtools === \"object\" ? devtools : void 0;\n return [\n // always include devtools plugin for refresh preamble (required for HMR)\n createDevtoolsPlugin({\n includeUI,\n plugins: devtoolsOptions === null || devtoolsOptions === void 0 ? void 0 : devtoolsOptions.plugins,\n rozenite: devtoolsOptions === null || devtoolsOptions === void 0 ? void 0 : devtoolsOptions.rozenite,\n // One's Vite bundler owns the native dev server. Metro mode has its\n // own Rozenite wrapper, so mounting a second host here would fight it.\n native: !nativeDisabled && !metroOptions\n })\n ];\n })()\n ];\n}\nexport {\n one\n};\n//# sourceMappingURL=one.js.map\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,IAAI,oBAAoB;AACxB,OAAO,gBAAgB,GAAG;AAC1B,WAAW,wBAAw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AY,aAAa;GAC7B,IAAI,kBAAkB,OAAO,aAAa,WAAW,WAAW,KAAK;GACrE,OAAO,CAEL,qBAAqB;IACnB;IACA,SAAS,oBAAoB,QAAQ,oBAAoB,KAAK,IAAI,KAAK,IAAI,gBAAgB;IAC3F,UAAU,oBAAoB,QAAQ,oBAAoB,KAAK,IAAI,KAAK,IAAI,gBAAgB;IAG5F,QAAQ,CAAC,kBAAkB,CAAC;GAC9B,CAAC,CACH;EACF,EAAC,CAAE;CACL;AACF"}
1
+ {"version":3,"file":"one.native.js","names":[],"sources":["esm/vite/one.native.js"],"sourcesContent":["import { configureVXRNCompilerPlugin } from \"@vxrn/compiler\";\nimport { resolvePath } from \"@vxrn/resolve\";\nimport { getPlatformEnvDefine } from \"@vxrn/utils\";\nimport events from \"events\";\nimport { existsSync, readFileSync } from \"fs\";\nimport path from \"path\";\nimport { exactRegex } from \"rolldown/filter\";\nimport { normalizePath } from \"vite\";\nimport { autoDepOptimizePlugin, getOptionsFilled, loadEnv, nearestPackageJson, backgroundComputationPlugin, workletImportsPlugin } from \"vxrn\";\nimport vxrnVitePlugin from \"vxrn/vite-plugin\";\nimport { CACHE_KEY } from \"../constants\";\nimport { getViteMetroPluginOptions } from \"../metro-config/getViteMetroPluginOptions\";\nimport { setServerGlobals } from \"../server/setServerGlobals\";\nimport { getRouterRootFromOneOptions } from \"../utils/getRouterRootFromOneOptions\";\nimport { createRouteIndex } from \"../utils/routeIndex\";\nimport { absorbedPackageAliases } from \"../utils/absorbedPackages\";\nimport { ensureTSConfig } from \"./ensureTsConfig\";\nimport { setOneOptions } from \"./loadConfig\";\nimport { resolveNativeBundler } from \"./nativeBundler\";\nimport { bundledDevPlugin } from \"./plugins/bundledDevPlugin\";\nimport { clientTreeShakePlugin } from \"./plugins/clientTreeShakePlugin\";\nimport { createDevtoolsPlugin } from \"./plugins/devtoolsPlugin\";\nimport { createFileSystemRouterPlugin } from \"./plugins/fileSystemRouterPlugin\";\nimport { fixDependenciesPlugin } from \"./plugins/fixDependenciesPlugin\";\nimport { generateFileSystemRouteTypesPlugin } from \"./plugins/generateFileSystemRouteTypesPlugin\";\nimport { loaderSearchSchemasPlugin } from \"./plugins/loaderSearchSchemasPlugin\";\nimport { criticalCSSPlugin } from \"./plugins/criticalCSSPlugin\";\nimport { imageDataPlugin } from \"./plugins/imageDataPlugin\";\nimport { createRouteModuleHmrPlugin } from \"./plugins/routeModuleHmrPlugin\";\nimport { sourceInspectorPlugin } from \"./plugins/sourceInspectorPlugin\";\nimport { swiftPackagePlugin } from \"./plugins/swiftPackagePlugin\";\nimport { iosLinkSetPlugin } from \"./plugins/iosLinkSetPlugin\";\nimport { iosSdkPlugin } from \"./plugins/iosSdkPlugin\";\nimport { kotlinSourcePlugin } from \"./plugins/kotlinSourcePlugin\";\nimport { SSRCSSPlugin } from \"./plugins/SSRCSSPlugin\";\nimport { virtualEntryId } from \"./plugins/virtualEntryConstants\";\nimport { createVirtualEntry } from \"./plugins/virtualEntryPlugin\";\nimport { environmentGuardPlugin } from \"./plugins/environmentGuardPlugin\";\nimport { useDOMPlugin } from \"./plugins/useDomPlugin\";\nimport { shouldEnableWorkerdDev } from \"./cloudflareWranglerConfig\";\nvar RN_DEEP_IMPORT_RE = /^react-native\\/Libraries\\/|react-native-web(-lite)?\\/.*\\/Libraries\\//;\nevents.setMaxListeners(1e3);\nglobalThis.__vxrnEnableNativeEnv = true;\nfunction one() {\n var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n var _ref;\n var _nativeOptions_app, _options_config, _options_react, _options_ssr, _options_ssr1, _options_router, _options_web, _options_config1, _options_router1, _options_web1;\n setServerGlobals();\n var routerRoot = getRouterRootFromOneOptions(options);\n var nativeDisabled = options.native === false;\n var nativeOptions = options.native === false ? void 0 : options.native;\n var nativeAppName = (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_app = nativeOptions.app) === null || _nativeOptions_app === void 0 ? void 0 : _nativeOptions_app.name) || (nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.key);\n var nativeApp = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.app;\n var nativeAppVersion = nativeApp === null || nativeApp === void 0 ? void 0 : nativeApp.version;\n if (nativeDisabled) {\n globalThis.__vxrnEnableNativeEnv = false;\n }\n var metroOptions = (function() {\n var _nativeOptions_bundlerOptions_argv, _nativeOptions_bundlerOptions, _options_router4, _options_router12, _nativeOptions_bundlerOptions1, _options_react2, _options_react1;\n if (nativeDisabled) return null;\n if (resolveNativeBundler({\n bundler: nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler\n }) !== \"metro\") {\n var dropped = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n if ((dropped === null || dropped === void 0 ? void 0 : dropped.babelConfig) || (dropped === null || dropped === void 0 ? void 0 : dropped.babelConfigOverrides)) {\n console.warn(`[one] native.bundlerOptions configures babel plugins, but native.bundler is \"${nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler}\", which runs no babel. Those plugins will not run and whatever they were rewriting will reach the bundle untransformed.`);\n }\n return null;\n }\n if (process.env.ONE_METRO_MODE) {\n console.info(\"ONE_METRO_MODE environment variable is set, enabling Metro mode\");\n }\n var routerRoot2 = getRouterRootFromOneOptions(options);\n var defaultMetroOptions = getViteMetroPluginOptions({\n projectRoot: (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions_argv = _nativeOptions_bundlerOptions.argv) === null || _nativeOptions_bundlerOptions_argv === void 0 ? void 0 : _nativeOptions_bundlerOptions_argv.projectRoot) || process.cwd(),\n relativeRouterRoot: routerRoot2,\n ignoredRouteFiles: (_options_router4 = options.router) === null || _options_router4 === void 0 ? void 0 : _options_router4.ignoredRouteFiles,\n linking: (_options_router12 = options.router) === null || _options_router12 === void 0 ? void 0 : _options_router12.linking,\n userDefaultConfigOverrides: nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions1 = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions1 === void 0 ? void 0 : _nativeOptions_bundlerOptions1.defaultConfigOverrides,\n setupFile: options.setupFile\n });\n var userMetroOptions = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n var babelConfig = {\n ...defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.babelConfig,\n ...userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.babelConfig\n };\n return {\n ...defaultMetroOptions,\n ...userMetroOptions,\n defaultConfigOverrides: defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.defaultConfigOverrides,\n // defaultConfigOverrides is merged by getViteMetroPluginOptions, so we need to set it here again.\n argv: {\n ...defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.argv,\n ...userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.argv\n },\n babelConfig: {\n ...babelConfig,\n plugins: [\n ...babelConfig.plugins || [],\n ...((_options_react2 = options.react) === null || _options_react2 === void 0 ? void 0 : _options_react2.compiler) === true || ((_options_react1 = options.react) === null || _options_react1 === void 0 ? void 0 : _options_react1.compiler) === \"native\" ? [\n \"babel-plugin-react-compiler\"\n ] : []\n ]\n },\n mainModuleName: \"one/metro-entry\",\n // allow env var to enable lazy startup\n startup: process.env.ONE_METRO_LAZY ? \"lazy\" : userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.startup\n };\n })();\n var vxrnPlugins = [];\n if (!process.env.IS_VXRN_CLI) {\n console.warn(\"Experimental: running VxRN as a Vite plugin. This is not yet stable.\");\n vxrnPlugins.push(vxrnVitePlugin({\n metro: metroOptions,\n disableNative: nativeDisabled\n }));\n } else {\n if (!globalThis.__oneOptions) {\n setOneOptions(options);\n globalThis[\"__vxrnPluginConfig__\"] = options;\n globalThis[\"__vxrnMetroOptions__\"] = metroOptions;\n return [];\n }\n }\n if (((_options_config = options.config) === null || _options_config === void 0 ? void 0 : _options_config.ensureTSConfig) !== false) {\n void ensureTSConfig();\n }\n var vxrnOptions = getOptionsFilled();\n var root = (vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.root) || process.cwd();\n var compiler = (_options_react = options.react) === null || _options_react === void 0 ? void 0 : _options_react.compiler;\n if (compiler) {\n configureVXRNCompilerPlugin({\n enableCompiler: (\n // pass through object config, regex, or function directly\n typeof compiler === \"object\" || typeof compiler === \"function\" ? compiler : compiler === \"native\" ? [\n \"ios\",\n \"android\"\n ] : compiler === \"web\" ? [\n \"ssr\",\n \"client\"\n ] : true\n )\n });\n }\n var autoDepsOptions = (_options_ssr = options.ssr) === null || _options_ssr === void 0 ? void 0 : _options_ssr.autoDepsOptimization;\n var dedupeSymlinks = (_ref = (_options_ssr1 = options.ssr) === null || _options_ssr1 === void 0 ? void 0 : _options_ssr1.dedupeSymlinkedModules) !== null && _ref !== void 0 ? _ref : false;\n var ssrDedup_optimizedPackages = null;\n var ssrDedup_projectRoot = \"\";\n var ssrSymlinkDedupPlugin = {\n name: \"one:ssr-symlink-dedup\",\n enforce: \"pre\",\n configResolved(config) {\n var _config_ssr_optimizeDeps, _config_ssr;\n if (!dedupeSymlinks) return;\n ssrDedup_projectRoot = config.root || process.cwd();\n var ssrInclude = (_config_ssr = config.ssr) === null || _config_ssr === void 0 ? void 0 : (_config_ssr_optimizeDeps = _config_ssr.optimizeDeps) === null || _config_ssr_optimizeDeps === void 0 ? void 0 : _config_ssr_optimizeDeps.include;\n if (!(ssrInclude === null || ssrInclude === void 0 ? void 0 : ssrInclude.length)) return;\n ssrDedup_optimizedPackages = /* @__PURE__ */ new Set();\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = ssrInclude[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n if (entry.startsWith(\"@\")) {\n var parts = entry.split(\"/\");\n ssrDedup_optimizedPackages.add(`${parts[0]}/${parts[1]}`);\n } else {\n ssrDedup_optimizedPackages.add(entry.split(\"/\")[0]);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n },\n async resolveId(source, importer, options2) {\n if (!dedupeSymlinks) return;\n if (source[0] === \".\" || source[0] === \"/\") return;\n var pkgName;\n var subpath = null;\n if (source.startsWith(\"@\")) {\n var parts = source.split(\"/\");\n pkgName = parts.length >= 2 ? `${parts[0]}/${parts[1]}` : source;\n if (parts.length > 2) subpath = `./${parts.slice(2).join(\"/\")}`;\n } else {\n var parts1 = source.split(\"/\");\n pkgName = parts1[0];\n if (parts1.length > 1) subpath = `./${parts1.slice(1).join(\"/\")}`;\n }\n var resolved = await this.resolve(source, importer, {\n ...options2,\n skipSelf: true\n });\n if (!(resolved === null || resolved === void 0 ? void 0 : resolved.id)) return;\n if (resolved.id.includes(\"/node_modules/\")) return;\n var _$path = await import(\"path\");\n var fs = await import(\"fs\");\n var { join, dirname } = _$path;\n var { realpathSync, existsSync: existsSync2, readFileSync: readFileSync2 } = fs;\n var dir = ssrDedup_projectRoot;\n while (dir !== dirname(dir)) {\n var nmPkgDir = join(dir, \"node_modules\", pkgName);\n if (existsSync2(nmPkgDir)) {\n if (subpath) {\n try {\n var _pkg_exports;\n var pkg = JSON.parse(readFileSync2(join(nmPkgDir, \"package.json\"), \"utf8\"));\n var exportEntry = (_pkg_exports = pkg.exports) === null || _pkg_exports === void 0 ? void 0 : _pkg_exports[subpath];\n if (exportEntry && typeof exportEntry === \"object\") {\n var target = exportEntry.import || exportEntry.module || exportEntry.default;\n if (target) {\n var fullPath = join(nmPkgDir, target);\n if (existsSync2(fullPath))\n return {\n id: normalizePath(fullPath),\n external: resolved.external\n };\n }\n }\n } catch (unused) {\n }\n }\n var realPkgDir = normalizePath(realpathSync(nmPkgDir));\n if (resolved.id.startsWith(realPkgDir)) {\n var relativePart = resolved.id.slice(realPkgDir.length);\n return {\n id: normalizePath(nmPkgDir) + relativePart,\n external: resolved.external\n };\n }\n break;\n }\n dir = dirname(dir);\n }\n }\n };\n var withAbsorbedAliases = function withAbsorbedAliases2(alias) {\n var root2 = process.cwd();\n return {\n ...alias,\n native: {\n ...absorbedPackageAliases(root2, \"native\"),\n ...alias === null || alias === void 0 ? void 0 : alias.native\n }\n };\n };\n var createAliasPlugin = function createAliasPlugin2(alias, nativePlatform) {\n var resolveMap = function resolveMap2(map) {\n if (!map) return null;\n var out = {};\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(map)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [key, value] = _step.value;\n try {\n out[key] = path.isAbsolute(value) ? value : resolvePath(value);\n } catch (unused) {\n out[key] = value;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return out;\n };\n var resolved = {\n web: resolveMap(alias.web),\n native: resolveMap(alias.native),\n client: resolveMap(alias.client),\n ssr: resolveMap(alias.ssr),\n ios: resolveMap(alias.ios),\n android: resolveMap(alias.android)\n };\n var aliasKeys = [\n ...new Set(Object.values(resolved).flatMap(function(m) {\n return m ? Object.keys(m) : [];\n }))\n ];\n var aliasFilter = aliasKeys.length ? new RegExp(`^(?:${aliasKeys.map(function(k) {\n return k.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n }).join(\"|\")})$`) : /(?!)/;\n return {\n name: \"one:alias\",\n enforce: \"pre\",\n // vite's dep optimizer resolves its include list without plugins, so the\n // absorbed packages also go in resolve.alias, which only web resolves with\n config: nativePlatform ? void 0 : function() {\n return {\n resolve: {\n alias: Object.entries(absorbedPackageAliases(process.cwd(), \"web\")).map(function(param) {\n var [name, replacement] = param;\n return {\n find: new RegExp(`^${name}$`),\n replacement\n };\n })\n }\n };\n },\n resolveId: {\n filter: {\n id: aliasFilter\n },\n handler(source) {\n var _this_environment;\n var env = nativePlatform !== null && nativePlatform !== void 0 ? nativePlatform : (_this_environment = this.environment) === null || _this_environment === void 0 ? void 0 : _this_environment.name;\n var specific = env ? resolved[env] : null;\n if (specific && source in specific) {\n var id = specific[source];\n return {\n id,\n external: false,\n packageJsonPath: nearestPackageJson(id)\n };\n }\n var isWeb = !env || env === \"client\" || env === \"ssr\";\n var general = isWeb ? resolved.web : resolved.native;\n if (general && source in general) {\n var id1 = general[source];\n return {\n id: id1,\n external: false,\n packageJsonPath: nearestPackageJson(id1)\n };\n }\n }\n }\n };\n };\n var domPlugin = useDOMPlugin({\n root,\n routerRoot,\n ignoredRouteFiles: (_options_router = options.router) === null || _options_router === void 0 ? void 0 : _options_router.ignoredRouteFiles,\n metro: !!metroOptions,\n browserPlugins: [\n createAliasPlugin(withAbsorbedAliases(options.alias)),\n environmentGuardPlugin(options.environmentGuards)\n ]\n });\n var devAndProdPlugins = [\n domPlugin,\n {\n name: \"one:config\",\n __get: options\n },\n {\n name: \"one:env-prefix\",\n config(userConfig) {\n if (userConfig.envPrefix) return;\n return {\n envPrefix: [\n \"VITE_\",\n \"ONE_PUBLIC_\",\n \"EXPO_PUBLIC_\"\n ]\n };\n }\n },\n bundledDevPlugin(!!((_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.experimentalBundledDev)),\n environmentGuardPlugin(options.environmentGuards),\n criticalCSSPlugin(),\n imageDataPlugin(),\n {\n name: \"one-define-client-env\",\n async config(userConfig, env) {\n var _ref2, _ref1, _ref22;\n var clientEnvDefine = options.skipEnv ? {} : (await loadEnv((_ref2 = (_ref1 = (_ref22 = vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.mode) !== null && _ref22 !== void 0 ? _ref22 : userConfig === null || userConfig === void 0 ? void 0 : userConfig.mode) !== null && _ref1 !== void 0 ? _ref1 : env === null || env === void 0 ? void 0 : env.mode) !== null && _ref2 !== void 0 ? _ref2 : \"development\", process.cwd(), userConfig === null || userConfig === void 0 ? void 0 : userConfig.envPrefix)).clientEnvDefine;\n return {\n define: {\n ...clientEnvDefine,\n ...process.env.ONE_DEBUG_ROUTER && {\n \"process.env.ONE_DEBUG_ROUTER\": JSON.stringify(process.env.ONE_DEBUG_ROUTER)\n }\n }\n };\n }\n },\n ...autoDepsOptions === false ? [] : [\n autoDepOptimizePlugin({\n onScannedDeps(param) {\n var { hasReanimated, hasNativewind } = param;\n var _ref2;\n configureVXRNCompilerPlugin({\n enableReanimated: hasReanimated,\n enableNativeCSS: (_ref2 = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.css) !== null && _ref2 !== void 0 ? _ref2 : hasNativewind,\n enableNativewind: hasNativewind\n });\n },\n root,\n include: /node_modules/,\n ...autoDepsOptions === true ? {} : autoDepsOptions\n })\n ],\n ...((_options_config1 = options.config) === null || _options_config1 === void 0 ? void 0 : _options_config1.tsConfigPaths) === false ? [] : [\n (function() {\n var mappings = [];\n function loadMappings(resolvedRoot) {\n try {\n var _config_compilerOptions, _config_compilerOptions1;\n var configPath = path.resolve(resolvedRoot, \"tsconfig.json\");\n if (!existsSync(configPath)) return;\n var raw = readFileSync(configPath, \"utf-8\");\n var stripped = raw.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, function(m, g) {\n return g ? \"\" : m;\n });\n var config = JSON.parse(stripped);\n var paths = config === null || config === void 0 ? void 0 : (_config_compilerOptions = config.compilerOptions) === null || _config_compilerOptions === void 0 ? void 0 : _config_compilerOptions.paths;\n var baseUrl = (config === null || config === void 0 ? void 0 : (_config_compilerOptions1 = config.compilerOptions) === null || _config_compilerOptions1 === void 0 ? void 0 : _config_compilerOptions1.baseUrl) || \".\";\n if (!paths) return;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(paths)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [pattern, targets] = _step.value;\n var target = targets[0];\n if (!target) continue;\n if (pattern.endsWith(\"/*\")) {\n var resolved = path.resolve(resolvedRoot, baseUrl, target.slice(0, -1));\n mappings.push({\n prefix: pattern.slice(0, -1),\n replacement: resolved.endsWith(\"/\") ? resolved : resolved + \"/\",\n wildcard: true\n });\n } else {\n mappings.push({\n prefix: pattern,\n replacement: path.resolve(resolvedRoot, baseUrl, target),\n wildcard: false\n });\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } catch (unused) {\n }\n }\n loadMappings(root);\n var tsconfigPathsFilter = mappings.length ? new RegExp(mappings.map(function(m) {\n return `^${m.prefix.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\")}${m.wildcard ? \"\" : \"$\"}`;\n }).join(\"|\")) : /^[^./]/;\n return {\n name: \"one:tsconfig-paths\",\n enforce: \"pre\",\n config() {\n return {\n resolve: {\n tsconfigPaths: true\n }\n };\n },\n configResolved(config) {\n if (mappings.length === 0) {\n loadMappings(config.root);\n }\n },\n resolveId: {\n filter: {\n id: tsconfigPathsFilter\n },\n handler(source) {\n var resolved = function resolved2(id) {\n return {\n id,\n packageJsonPath: nearestPackageJson(id)\n };\n };\n var jsExts = [\n \".ts\",\n \".tsx\",\n \".js\",\n \".jsx\",\n \".mts\",\n \".mjs\",\n \".cjs\",\n \".cts\"\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var m = _step.value;\n var candidate = void 0;\n if (m.wildcard) {\n if (source.startsWith(m.prefix)) {\n candidate = m.replacement + source.slice(m.prefix.length);\n }\n } else if (source === m.prefix) {\n candidate = m.replacement;\n }\n if (!candidate) continue;\n if (jsExts.includes(path.extname(candidate))) return resolved(candidate);\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = jsExts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var e = _step1.value;\n if (existsSync(candidate + e)) return resolved(candidate + e);\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = jsExts[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var e1 = _step2.value;\n if (existsSync(candidate + \"/index\" + e1)) return resolved(candidate + \"/index\" + e1);\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n return resolved(candidate);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n }\n };\n })()\n ],\n createAliasPlugin(withAbsorbedAliases(options.alias)),\n {\n // rolldown fails on deep react-native/Libraries/* imports during dep pre-bundling.\n // these are native-only paths that don't exist in react-native-web.\n name: \"one:redirect-rn-deep-imports\",\n enforce: \"pre\",\n // rust-side filter matching the two source patterns below, so the ~24k\n // non-matching imports in a build never enter js at all\n resolveId: {\n filter: {\n id: RN_DEEP_IMPORT_RE\n },\n handler(source) {\n var _this_environment, _this_environment1, _this_environment2;\n if (((_this_environment = this.environment) === null || _this_environment === void 0 ? void 0 : _this_environment.name) === \"client\" || ((_this_environment1 = this.environment) === null || _this_environment1 === void 0 ? void 0 : _this_environment1.name) === \"ssr\" || ((_this_environment2 = this.environment) === null || _this_environment2 === void 0 ? void 0 : _this_environment2.name) === \"worker\") {\n return \"\\0rn-empty-module\";\n }\n }\n },\n load: {\n filter: {\n id: exactRegex(\"\\0rn-empty-module\")\n },\n handler() {\n return \"export default {}; export {};\";\n }\n }\n },\n {\n name: \"one-aliases\",\n enforce: \"pre\",\n config() {\n var tslibLitePath = \"\";\n try {\n tslibLitePath = resolvePath(\"@vxrn/tslib-lite\", process.cwd());\n } catch (err) {\n console.info(`Can't find tslib-lite, falling back to tslib`);\n if (process.env.DEBUG) {\n console.error(err);\n }\n }\n return {\n resolve: {\n alias: {\n // testing getting transition between routes working\n // 'use-sync-external-store/with-selector': resolvePath(\n // 'use-sync-external-store/shim/with-selector'\n // ),\n ...tslibLitePath && {\n tslib: tslibLitePath\n }\n }\n }\n };\n }\n },\n {\n name: \"one:init-config\",\n config() {\n var _options_web2, _options_web12, _options_web22, _options_web3;\n var setupFileDefines = (function() {\n if (!options.setupFile) return {};\n var setupFiles;\n if (typeof options.setupFile === \"string\") {\n setupFiles = {\n client: options.setupFile,\n server: options.setupFile,\n ios: options.setupFile,\n android: options.setupFile\n };\n } else if (\"native\" in options.setupFile) {\n setupFiles = {\n client: options.setupFile.client,\n server: options.setupFile.server,\n ios: options.setupFile.native,\n android: options.setupFile.native\n };\n } else {\n setupFiles = options.setupFile;\n }\n return {\n ...setupFiles.client && {\n \"process.env.ONE_SETUP_FILE_CLIENT\": JSON.stringify(setupFiles.client)\n },\n ...setupFiles.server && {\n \"process.env.ONE_SETUP_FILE_SERVER\": JSON.stringify(setupFiles.server)\n },\n ...setupFiles.ios && {\n \"process.env.ONE_SETUP_FILE_IOS\": JSON.stringify(setupFiles.ios)\n },\n ...setupFiles.android && {\n \"process.env.ONE_SETUP_FILE_ANDROID\": JSON.stringify(setupFiles.android)\n }\n };\n })();\n var serverURL = process.env.ONE_SERVER_URL || (vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.server.url);\n return {\n // Platform env defined at root level for client (workaround for Vite bug with environment.client.define)\n define: {\n ...getPlatformEnvDefine(\"client\"),\n ...setupFileDefines,\n ...((_options_web2 = options.web) === null || _options_web2 === void 0 ? void 0 : _options_web2.defaultRenderMode) && {\n \"process.env.ONE_DEFAULT_RENDER_MODE\": JSON.stringify(options.web.defaultRenderMode),\n \"import.meta.env.ONE_DEFAULT_RENDER_MODE\": JSON.stringify(options.web.defaultRenderMode)\n },\n ...process.env.NODE_ENV !== \"production\" && serverURL && {\n \"process.env.ONE_SERVER_URL\": JSON.stringify(serverURL),\n \"import.meta.env.ONE_SERVER_URL\": JSON.stringify(serverURL)\n },\n ...((_options_web12 = options.web) === null || _options_web12 === void 0 ? void 0 : _options_web12.linkPrefetch) && {\n \"process.env.ONE_LINK_PREFETCH\": JSON.stringify(options.web.linkPrefetch)\n },\n ...((_options_web22 = options.web) === null || _options_web22 === void 0 ? void 0 : _options_web22.skewProtection) !== void 0 && {\n \"process.env.ONE_SKEW_PROTECTION\": JSON.stringify(options.web.skewProtection === true ? \"true\" : options.web.skewProtection === false ? \"false\" : options.web.skewProtection)\n },\n // 'proactive'\n ...((_options_web3 = options.web) === null || _options_web3 === void 0 ? void 0 : _options_web3.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES\": JSON.stringify(options.web.suspendRoutes ? \"1\" : \"0\")\n }\n },\n environments: {\n ssr: {\n define: getPlatformEnvDefine(\"ssr\")\n },\n ios: {\n define: {\n ...getPlatformEnvDefine(\"ios\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n android: {\n define: {\n ...getPlatformEnvDefine(\"android\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n macos: {\n define: {\n ...getPlatformEnvDefine(\"macos\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n linux: {\n define: {\n ...getPlatformEnvDefine(\"linux\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n }\n },\n ssr: {\n // ensure server-only/client-only go through vite so our environmentGuardPlugin can handle them\n noExternal: [\n \"server-only\",\n \"client-only\"\n ]\n }\n };\n }\n },\n {\n name: \"one:tamagui\",\n config() {\n return {\n define: {\n // safe to set because it only affects web in tamagui, and one is always react 19\n \"process.env.TAMAGUI_REACT_19\": '\"1\"'\n },\n environments: {\n ssr: {\n define: {\n \"process.env.TAMAGUI_IS_SERVER\": '\"1\"',\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n ios: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n android: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n macos: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n linux: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n }\n }\n };\n }\n },\n createRouteModuleHmrPlugin(routerRoot),\n // Plugins may transform the source code and add imports of `react/jsx-dev-runtime`, which won't be discovered by Vite's initial `scanImports` since the implementation is using ESbuild where such plugins are not executed.\n // Thus, if the project has a valid `react/jsx-dev-runtime` import, we tell Vite to optimize it, so Vite won't only discover it on the next page load and trigger a full reload.\n {\n name: \"one:optimize-dev-deps\",\n config(_, env) {\n if (env.mode === \"development\") {\n return {\n optimizeDeps: {\n include: [\n \"react/jsx-dev-runtime\",\n \"react/compiler-runtime\"\n ]\n }\n };\n }\n }\n },\n {\n name: \"one:remove-server-from-client\",\n enforce: \"pre\",\n // both conditions are rust-side: only one-server-only modules that\n // actually contain the import cross into js\n transform: {\n filter: {\n id: /one-server-only/,\n code: 'import { AsyncLocalStorage } from \"node:async_hooks\"'\n },\n handler(code) {\n if (this.environment.name !== \"client\") return;\n return code.replace(`import { AsyncLocalStorage } from \"node:async_hooks\"`, `class AsyncLocalStorage {}`);\n }\n }\n },\n // packages in resolve.dedupe must also be pre-bundled for SSR to prevent\n // duplicate module instances (e.g. symlinked monorepo packages resolving\n // to different paths)\n {\n name: \"one:ssr-dedupe-prebundle\",\n config(config) {\n var _config_resolve;\n if (!dedupeSymlinks) return;\n var dedupeList = (_config_resolve = config.resolve) === null || _config_resolve === void 0 ? void 0 : _config_resolve.dedupe;\n if (!Array.isArray(dedupeList) || dedupeList.length === 0) return;\n return {\n ssr: {\n optimizeDeps: {\n include: [\n ...dedupeList\n ]\n },\n noExternal: [\n ...dedupeList\n ]\n }\n };\n }\n },\n // fix: vite's ssr dep optimizer registers pre-bundled deps by their\n // node_modules path, but symlinks cause imports to resolve to the real\n // (source) path. the optimizer doesn't recognize the real path, so it\n // loads from source — creating a duplicate instance.\n // this plugin forces optimized SSR deps to resolve via node_modules.\n // off by default, and every hook bails on `!dedupeSymlinks`, so skip\n // registering it entirely rather than paying a napi round trip per import\n ...dedupeSymlinks ? [\n ssrSymlinkDedupPlugin\n ] : []\n ];\n var nativeWebDevAndProdPlugsin = [\n clientTreeShakePlugin({\n routerRoot\n })\n ];\n var nativeFormPlugins = [];\n var nativeFormPluginsCapture = {\n name: \"one:native-form-plugins\",\n configResolved(config) {\n nativeFormPlugins = config.plugins.filter(function(plugin) {\n var _plugin_api;\n return (_plugin_api = plugin.api) === null || _plugin_api === void 0 ? void 0 : _plugin_api.vxrnNative;\n });\n }\n };\n if (!nativeDisabled) {\n var viteBundlerOptions = (nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler) === \"metro\" ? void 0 : nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n globalThis.__vxrnAddNativePlugins = function(platform) {\n var _ref2;\n var listed = [\n domPlugin,\n backgroundComputationPlugin(\"native\"),\n workletImportsPlugin({}),\n ...nativeApp ? [\n {\n name: \"one:externalize-expo-for-native-app\",\n resolveId(source, _importer, options2) {\n if (/^(?:expo(?:-[^/]+)?|@expo\\/[^/]+)(?:\\/|$)/.test(source)) {\n if ((platform === \"macos\" || platform === \"linux\") && options2.kind !== \"require-call\") return;\n return {\n id: source,\n external: true\n };\n }\n }\n }\n ] : [],\n createAliasPlugin(withAbsorbedAliases(options.alias), platform),\n clientTreeShakePlugin({\n runtime: \"rolldown\",\n routerRoot\n }),\n ...(_ref2 = viteBundlerOptions === null || viteBundlerOptions === void 0 ? void 0 : viteBundlerOptions.plugins) !== null && _ref2 !== void 0 ? _ref2 : []\n ];\n var listedNames = new Set(listed.map(function(plugin) {\n return plugin.name;\n }));\n return [\n ...listed,\n ...nativeFormPlugins.filter(function(plugin) {\n return !listedNames.has(plugin.name);\n }),\n // last, so an app plugin that compiles .swift itself (a simulator) wins\n swiftPackagePlugin(platform, root),\n kotlinSourcePlugin(platform, root),\n iosSdkPlugin(platform, root),\n iosLinkSetPlugin()\n ];\n };\n globalThis.__vxrnNativeUserDefine = {\n ...viteBundlerOptions === null || viteBundlerOptions === void 0 ? void 0 : viteBundlerOptions.define,\n ...nativeAppName && {\n \"process.env.ONE_APP_NAME\": JSON.stringify(nativeAppName),\n \"import.meta.env.ONE_APP_NAME\": JSON.stringify(nativeAppName)\n }\n };\n }\n globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins;\n var flags = {};\n var routeIndex = createRouteIndex({\n routerRoot: path.resolve(root, routerRoot),\n ignoredRouteFiles: (_options_router1 = options.router) === null || _options_router1 === void 0 ? void 0 : _options_router1.ignoredRouteFiles\n });\n if (!nativeDisabled) {\n var _options_router2, _options_router3;\n globalThis.__vxrnNativeEntryConfig = {\n routerRoot,\n ignoredRouteFiles: (_options_router2 = options.router) === null || _options_router2 === void 0 ? void 0 : _options_router2.ignoredRouteFiles,\n linking: (_options_router3 = options.router) === null || _options_router3 === void 0 ? void 0 : _options_router3.linking,\n setupFile: options.setupFile,\n flags,\n app: nativeApp\n };\n }\n var inspectorPlugins = (function() {\n var _options_devtools, _devtools_inspector;\n var devtools = (_options_devtools = options.devtools) !== null && _options_devtools !== void 0 ? _options_devtools : true;\n var inspector = devtools === true || devtools !== false && ((_devtools_inspector = devtools.inspector) !== null && _devtools_inspector !== void 0 ? _devtools_inspector : true);\n var editor = devtools !== true && devtools !== false ? devtools.editor : void 0;\n return inspector ? sourceInspectorPlugin({\n editor\n }) : [];\n })();\n var workerdDevPlugins = shouldEnableWorkerdDev((_options_web1 = options.web) === null || _options_web1 === void 0 ? void 0 : _options_web1.deploy, root) ? import(\"./plugins/workerdDevPlugin\").then(function(param) {\n var { createWorkerdDevPlugins } = param;\n return createWorkerdDevPlugins(options, root, routeIndex);\n }) : [];\n return [\n backgroundComputationPlugin(\"web\"),\n {\n name: \"one:background-worker-build\",\n config(config) {\n var _config_worker;\n var plugins = (_config_worker = config.worker) === null || _config_worker === void 0 ? void 0 : _config_worker.plugins;\n return {\n worker: {\n plugins: function plugins1() {\n var _ref2;\n return [\n ...(_ref2 = plugins === null || plugins === void 0 ? void 0 : plugins()) !== null && _ref2 !== void 0 ? _ref2 : [],\n backgroundComputationPlugin(\"web\")\n ];\n }\n }\n };\n }\n },\n workerdDevPlugins,\n ...vxrnPlugins,\n ...devAndProdPlugins,\n ...inspectorPlugins,\n ...nativeWebDevAndProdPlugsin,\n ...nativeDisabled ? [] : [\n nativeFormPluginsCapture\n ],\n /**\n * This is really the meat of one, where it handles requests:\n */\n createFileSystemRouterPlugin(options, routeIndex),\n generateFileSystemRouteTypesPlugin(options, routeIndex),\n loaderSearchSchemasPlugin(options, routeIndex),\n fixDependenciesPlugin(options.patches),\n createVirtualEntry({\n ...options,\n flags,\n root: routerRoot,\n routeIndex\n }),\n {\n name: \"one-define-environment\",\n config() {\n return {\n define: {\n ...nativeAppName && {\n \"process.env.ONE_APP_NAME\": JSON.stringify(nativeAppName),\n \"import.meta.env.ONE_APP_NAME\": JSON.stringify(nativeAppName)\n },\n ...nativeAppVersion && {\n \"process.env.ONE_APP_VERSION\": JSON.stringify(nativeAppVersion),\n \"import.meta.env.ONE_APP_VERSION\": JSON.stringify(nativeAppVersion)\n },\n \"process.env.ONE_CACHE_KEY\": JSON.stringify(CACHE_KEY),\n \"import.meta.env.ONE_CACHE_KEY\": JSON.stringify(CACHE_KEY)\n }\n };\n }\n },\n SSRCSSPlugin({\n entries: [\n virtualEntryId\n ]\n }),\n // devtools (always includes refresh preamble for HMR, optionally includes UI)\n ...(function() {\n var _options_devtools;\n var devtools = (_options_devtools = options.devtools) !== null && _options_devtools !== void 0 ? _options_devtools : true;\n var includeUI = devtools !== false;\n var devtoolsOptions = typeof devtools === \"object\" ? devtools : void 0;\n return [\n // always include devtools plugin for refresh preamble (required for HMR)\n createDevtoolsPlugin({\n includeUI,\n plugins: devtoolsOptions === null || devtoolsOptions === void 0 ? void 0 : devtoolsOptions.plugins,\n rozenite: devtoolsOptions === null || devtoolsOptions === void 0 ? void 0 : devtoolsOptions.rozenite,\n // One's Vite bundler owns the native dev server. Metro mode has its\n // own Rozenite wrapper, so mounting a second host here would fight it.\n native: !nativeDisabled && !metroOptions\n })\n ];\n })()\n ];\n}\nexport {\n one\n};\n//# sourceMappingURL=one.js.map\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,IAAI,oBAAoB;AACxB,OAAO,gBAAgB,GAAG;AAC1B,WAAW,wBAAwB;AACnC,SAAS,MAAM;CACb,IAAI,UAAU,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CAChF,IAAI;CACJ,IAAI,oBAAoB,iBAAiB,gBAAgB,cAAc,eAAe,iBAAiB,cAAc,kBAAkB,kBAAkB;CACzJ,iBAAiB;CACjB,IAAI,aAAa,4BAA4B,OAAO;CACpD,IAAI,iBAAiB,QAAQ,WAAW;CACxC,IAAI,gBAAgB,QAAQ,WAAW,QAAQ,KAAK,IAAI,QAAQ;CAChE,IAAI,iBAAiB,kBAAkB,QAAQ,kBAAkB,KAAK,IAAI,KAAK,KAAK,qBAAqB,cAAc,SAAS,QAAQ,uBAAuB,KAAK,IAAI,KAAK,IAAI,mBAAmB,UAAU,kBAAkB,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,cAAc;CAC1R,IAAI,YAAY,kBAAkB,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,cAAc;CAC5F,IAAI,mBAAmB,cAAc,QAAQ,cAAc,KAAK,IAAI,KAAK,IAAI,UAAU;CACvF,IAAI,gBAAgB;EAClB,WAAW,wBAAwB;CACrC;CACA,IAAI,gBAAgB,WAAW;EAC7B,IAAI,oCAAoC,+BAA+B,kBAAkB,mBAAmB,gCAAgC,iBAAiB;EAC7J,IAAI,gBAAgB,OAAO;EAC3B,IAAI,qB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I,oBAAoB;GACrH,IAAI,YAAY,aAAa;GAC7B,IAAI,kBAAkB,OAAO,aAAa,WAAW,WAAW,KAAK;GACrE,OAAO,CAEL,qBAAqB;IACnB;IACA,SAAS,oBAAoB,QAAQ,oBAAoB,KAAK,IAAI,KAAK,IAAI,gBAAgB;IAC3F,UAAU,oBAAoB,QAAQ,oBAAoB,KAAK,IAAI,KAAK,IAAI,gBAAgB;IAG5F,QAAQ,CAAC,kBAAkB,CAAC;GAC9B,CAAC,CACH;EACF,EAAC,CAAE;CACL;AACF"}
@@ -10,7 +10,7 @@ const clientTreeShakePlugin = (opts) => {
10
10
  name: "one-client-tree-shake",
11
11
  enforce: "pre",
12
12
  ...runtime === "vite" && { applyToEnvironment(env) {
13
- return env.name === "client" || env.name === "ios" || env.name === "android";
13
+ return env.name === "client" || env.name === "ios" || env.name === "android" || env.name === "macos" || env.name === "linux";
14
14
  } },
15
15
  transform: {
16
16
  order: "pre",
@@ -1 +1 @@
1
- {"version":3,"file":"clientTreeShakePlugin.js","names":[],"sources":["esm/vite/plugins/clientTreeShakePlugin.js"],"sourcesContent":["import { extname, relative } from \"node:path\";\nimport MagicString from \"magic-string\";\nimport { parseSync } from \"oxc-parser\";\nimport { EMPTY_LOADER_STRING, makeLoaderRouteIdStub } from \"../constants\";\nconst clientTreeShakePlugin = (opts) => {\n const runtime = opts?.runtime ?? \"vite\";\n const routerRoot = opts?.routerRoot ?? \"app\";\n return {\n name: \"one-client-tree-shake\",\n enforce: \"pre\",\n ...runtime === \"vite\" && {\n applyToEnvironment(env) {\n return env.name === \"client\" || env.name === \"ios\" || env.name === \"android\";\n }\n },\n transform: {\n order: \"pre\",\n async handler(code, id, settings) {\n if (runtime === \"vite\" && this.environment?.name === \"ssr\") {\n return;\n }\n if (!/\\.(js|jsx|ts|tsx)$/.test(extname(id))) {\n return;\n }\n if (/node_modules/.test(id)) {\n return;\n }\n const out = await transformTreeShakeClient(code, id, process.cwd(), routerRoot);\n return out;\n }\n }\n };\n};\nfunction extractPatternBindings(node, names) {\n if (!node) return;\n switch (node.type) {\n case \"Identifier\":\n names.add(node.name);\n break;\n case \"ObjectPattern\":\n for (const prop of node.properties) {\n if (prop.type === \"Property\") {\n extractPatternBindings(prop.value, names);\n } else if (prop.type === \"RestElement\") {\n extractPatternBindings(prop.argument, names);\n }\n }\n break;\n case \"ArrayPattern\":\n for (const element of node.elements) {\n if (element) {\n extractPatternBindings(element, names);\n }\n }\n break;\n case \"AssignmentPattern\":\n extractPatternBindings(node.left, names);\n break;\n case \"RestElement\":\n extractPatternBindings(node.argument, names);\n break;\n case \"TSParameterProperty\":\n extractPatternBindings(node.parameter, names);\n break;\n }\n}\nfunction getReferencedIdentifiers(rootNode, candidateNames) {\n const referenced = /* @__PURE__ */ new Set();\n const scopeStack = [];\n function isShadowed(name) {\n for (let i = scopeStack.length - 1; i >= 0; i--) {\n if (scopeStack[i].has(name)) return true;\n }\n return false;\n }\n function checkIdentifier(name) {\n if (!isShadowed(name) && candidateNames.has(name)) {\n referenced.add(name);\n }\n }\n function walk(node) {\n if (!node || typeof node !== \"object\") return;\n if (node.type === \"TSTypeAnnotation\" || node.type === \"TSTypeReference\" || node.type === \"TSTypeAliasDeclaration\" || node.type === \"TSInterfaceDeclaration\" || node.type === \"TSTypeParameterDeclaration\" || node.type === \"TSTypeParameterInstantiation\") {\n return;\n }\n if (node.type === \"TSAsExpression\" || node.type === \"TSTypeAssertion\" || node.type === \"TSSatisfiesExpression\" || node.type === \"TSNonNullExpression\") {\n walk(node.expression);\n return;\n }\n function walkPatternExpressions(pat) {\n if (!pat || typeof pat !== \"object\") return;\n switch (pat.type) {\n case \"AssignmentPattern\":\n walk(pat.right);\n walkPatternExpressions(pat.left);\n break;\n case \"ObjectPattern\":\n for (const prop of pat.properties) {\n if (prop.type === \"Property\") {\n if (prop.computed) {\n walk(prop.key);\n }\n walkPatternExpressions(prop.value);\n } else if (prop.type === \"RestElement\") {\n walkPatternExpressions(prop.argument);\n }\n }\n break;\n case \"ArrayPattern\":\n for (const element of pat.elements) {\n if (element) {\n walkPatternExpressions(element);\n }\n }\n break;\n case \"RestElement\":\n walkPatternExpressions(pat.argument);\n break;\n case \"TSParameterProperty\":\n walkPatternExpressions(pat.parameter);\n break;\n }\n }\n if (node.type === \"FunctionDeclaration\" || node.type === \"FunctionExpression\" || node.type === \"ArrowFunctionExpression\") {\n let addVars = function(n) {\n if (!n || typeof n !== \"object\") return;\n if (n.type === \"FunctionDeclaration\" || n.type === \"FunctionExpression\" || n.type === \"ArrowFunctionExpression\") {\n return;\n }\n if (n.type === \"VariableDeclaration\" && n.kind === \"var\") {\n for (const d of n.declarations) {\n extractPatternBindings(d.id, scope);\n }\n }\n for (const k of Object.keys(n)) {\n if (k === \"parent\") continue;\n const val = n[k];\n if (Array.isArray(val)) {\n for (const item of val) addVars(item);\n } else if (val && typeof val === \"object\") {\n addVars(val);\n }\n }\n };\n const scope = /* @__PURE__ */ new Set();\n if (node.type === \"FunctionExpression\" && node.id) {\n scope.add(node.id.name);\n }\n if (node.params) {\n for (const param of node.params) {\n walkPatternExpressions(param);\n extractPatternBindings(param, scope);\n }\n }\n addVars(node.body);\n scopeStack.push(scope);\n walk(node.body);\n scopeStack.pop();\n return;\n }\n if (node.type === \"BlockStatement\") {\n const scope = /* @__PURE__ */ new Set();\n for (const stmt of node.body) {\n if (stmt.type === \"VariableDeclaration\" && (stmt.kind === \"let\" || stmt.kind === \"const\")) {\n for (const decl of stmt.declarations) {\n extractPatternBindings(decl.id, scope);\n }\n } else if (stmt.type === \"FunctionDeclaration\" && stmt.id) {\n scope.add(stmt.id.name);\n } else if (stmt.type === \"ClassDeclaration\" && stmt.id) {\n scope.add(stmt.id.name);\n }\n }\n scopeStack.push(scope);\n for (const stmt of node.body) {\n walk(stmt);\n }\n scopeStack.pop();\n return;\n }\n if (node.type === \"CatchClause\") {\n const scope = /* @__PURE__ */ new Set();\n if (node.param) {\n extractPatternBindings(node.param, scope);\n }\n scopeStack.push(scope);\n walk(node.body);\n scopeStack.pop();\n return;\n }\n if (node.type === \"ForStatement\" || node.type === \"ForInStatement\" || node.type === \"ForOfStatement\") {\n const scope = /* @__PURE__ */ new Set();\n const initOrLeft = node.init || node.left;\n if (initOrLeft && initOrLeft.type === \"VariableDeclaration\" && initOrLeft.kind !== \"var\") {\n for (const decl of initOrLeft.declarations) {\n extractPatternBindings(decl.id, scope);\n }\n }\n scopeStack.push(scope);\n if (node.init) walk(node.init);\n if (node.left) walk(node.left);\n if (node.right) walk(node.right);\n if (node.test) walk(node.test);\n if (node.update) walk(node.update);\n walk(node.body);\n scopeStack.pop();\n return;\n }\n if (node.type === \"Identifier\") {\n checkIdentifier(node.name);\n return;\n }\n if (node.type === \"JSXOpeningElement\") {\n if (node.name) {\n if (node.name.type === \"JSXIdentifier\") {\n if (node.name.name && /^[A-Z]/.test(node.name.name)) {\n checkIdentifier(node.name.name);\n }\n } else if (node.name.type === \"JSXMemberExpression\") {\n let rootObj = node.name.object;\n while (rootObj && rootObj.type === \"JSXMemberExpression\") {\n rootObj = rootObj.object;\n }\n if (rootObj && rootObj.type === \"JSXIdentifier\") {\n checkIdentifier(rootObj.name);\n }\n }\n }\n if (node.attributes) {\n for (const attr of node.attributes) {\n walk(attr);\n }\n }\n return;\n }\n if (node.type === \"JSXAttribute\") {\n if (node.value) walk(node.value);\n return;\n }\n if (node.type === \"JSXClosingElement\") {\n return;\n }\n if (node.type === \"Property\") {\n if (node.computed) {\n walk(node.key);\n }\n walk(node.value);\n return;\n }\n if (node.type === \"MemberExpression\") {\n walk(node.object);\n if (node.computed) {\n walk(node.property);\n }\n return;\n }\n if (node.type === \"VariableDeclarator\") {\n walkPatternExpressions(node.id);\n if (node.init) {\n walk(node.init);\n }\n return;\n }\n if (node.type === \"ExportSpecifier\") {\n if (node.local && node.local.type === \"Identifier\") {\n checkIdentifier(node.local.name);\n }\n return;\n }\n for (const key of Object.keys(node)) {\n if (key === \"parent\") continue;\n const child = node[key];\n if (Array.isArray(child)) {\n for (const item of child) {\n if (item && typeof item === \"object\") walk(item);\n }\n } else if (child && typeof child === \"object\") {\n walk(child);\n }\n }\n }\n walk(rootNode);\n return referenced;\n}\nasync function transformTreeShakeClient(code, id, root, routerRoot = \"app\") {\n if (!/generateStaticParams|loader/.test(code)) {\n return;\n }\n const isProd = process.env.NODE_ENV === \"production\";\n const filename = (id || \"file.tsx\").split(\"?\")[0].split(\"#\")[0];\n let parseResult;\n try {\n parseResult = parseSync(filename, code);\n if (parseResult.errors && parseResult.errors.length > 0) {\n const errorMessage = parseResult.errors.map((e) => e.message).join(\"\\n\");\n if (isProd) {\n throw new Error(\n `[one] Failed to parse ${id} with server exports:\n${errorMessage}`\n );\n }\n console.warn(\n `[one] Skipping tree shaking for ${id} due to syntax error:`,\n errorMessage\n );\n return;\n }\n } catch (error) {\n if (isProd) {\n throw error instanceof Error ? error : new Error(String(error));\n }\n const errorMessage = error instanceof Error ? error.message : String(error);\n console.warn(\n `[one] Skipping tree shaking for ${id} due to syntax error:`,\n errorMessage\n );\n return;\n }\n const ast = parseResult.program;\n try {\n return doTreeShakeClient(code, id, root, ast, routerRoot);\n } catch (error) {\n if (isProd) {\n throw error instanceof Error ? error : new Error(String(error));\n }\n const errorMessage = error instanceof Error ? error.message : String(error);\n console.warn(\n `[one] Skipping tree shaking for ${id} due to analysis error:`,\n errorMessage\n );\n return;\n }\n}\nfunction doTreeShakeClient(code, id, root, ast, routerRoot) {\n const removed = {\n loader: false,\n generateStaticParams: false\n };\n const serverExportStmts = /* @__PURE__ */ new Map();\n for (const stmt of ast.body) {\n if (stmt.type === \"ExportNamedDeclaration\" && stmt.declaration) {\n if (stmt.declaration.type === \"FunctionDeclaration\") {\n const fnName = stmt.declaration.id?.name;\n if (fnName === \"loader\" || fnName === \"generateStaticParams\") {\n removed[fnName] = true;\n serverExportStmts.set(stmt, {\n names: /* @__PURE__ */ new Set([fnName]),\n replaceAll: true,\n declaratorsToRemove: /* @__PURE__ */ new Set()\n });\n }\n } else if (stmt.declaration.type === \"VariableDeclaration\") {\n const found = [];\n for (const d of stmt.declaration.declarations) {\n if (d.id?.type === \"Identifier\" && (d.id.name === \"loader\" || d.id.name === \"generateStaticParams\")) {\n found.push(d);\n removed[d.id.name] = true;\n }\n }\n if (found.length > 0) {\n serverExportStmts.set(stmt, {\n names: new Set(found.map((d) => d.id.name)),\n replaceAll: found.length === stmt.declaration.declarations.length,\n declaratorsToRemove: new Set(found)\n });\n }\n }\n }\n }\n const removedFunctions = Object.keys(removed).filter((k) => removed[k]);\n if (removedFunctions.length === 0) {\n return;\n }\n const moduleBindings = /* @__PURE__ */ new Map();\n for (const stmt of ast.body) {\n if (stmt.type === \"ImportDeclaration\") {\n const isDeclType = stmt.importKind === \"type\";\n for (const sp of stmt.specifiers) {\n const isType = isDeclType || sp.importKind === \"type\";\n moduleBindings.set(sp.local.name, {\n kind: \"import\",\n stmt,\n node: sp,\n isType\n });\n }\n } else if (stmt.type === \"ExportNamedDeclaration\" && stmt.declaration) {\n const decl = stmt.declaration;\n if (decl.type === \"FunctionDeclaration\" && decl.id) {\n moduleBindings.set(decl.id.name, { kind: \"function\", stmt, node: decl });\n } else if (decl.type === \"VariableDeclaration\") {\n for (const d of decl.declarations) {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n for (const name of names) {\n moduleBindings.set(name, { kind: \"variable\", stmt, node: d });\n }\n }\n } else if (decl.type === \"ClassDeclaration\" && decl.id) {\n moduleBindings.set(decl.id.name, { kind: \"class\", stmt, node: decl });\n }\n } else if (stmt.type === \"FunctionDeclaration\" && stmt.id) {\n moduleBindings.set(stmt.id.name, { kind: \"function\", stmt, node: stmt });\n } else if (stmt.type === \"VariableDeclaration\") {\n for (const d of stmt.declarations) {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n for (const name of names) {\n moduleBindings.set(name, { kind: \"variable\", stmt, node: d });\n }\n }\n } else if (stmt.type === \"ClassDeclaration\" && stmt.id) {\n moduleBindings.set(stmt.id.name, { kind: \"class\", stmt, node: stmt });\n } else if (stmt.type === \"TSEnumDeclaration\" && stmt.id) {\n moduleBindings.set(stmt.id.name, { kind: \"enum\", stmt, node: stmt });\n }\n }\n const allBindingNames = new Set(moduleBindings.keys());\n const topLevelDeps = /* @__PURE__ */ new Map();\n const clientRootDeps = /* @__PURE__ */ new Set();\n for (const [name, info] of moduleBindings) {\n if (info.kind === \"import\") {\n topLevelDeps.set(name, /* @__PURE__ */ new Set());\n } else if (info.kind === \"function\") {\n topLevelDeps.set(name, getReferencedIdentifiers(info.node, allBindingNames));\n } else if (info.kind === \"variable\") {\n const deps = getReferencedIdentifiers(info.node, allBindingNames);\n deps.delete(name);\n topLevelDeps.set(name, deps);\n } else if (info.kind === \"class\") {\n topLevelDeps.set(name, getReferencedIdentifiers(info.node, allBindingNames));\n } else if (info.kind === \"enum\") {\n topLevelDeps.set(name, getReferencedIdentifiers(info.node, allBindingNames));\n }\n }\n const serverNeeded = /* @__PURE__ */ new Set();\n const serverQueue = [];\n for (const fn of removedFunctions) {\n const deps = topLevelDeps.get(fn);\n if (deps) {\n for (const dep of deps) serverQueue.push(dep);\n }\n }\n while (serverQueue.length > 0) {\n const name = serverQueue.shift();\n if (serverNeeded.has(name)) continue;\n serverNeeded.add(name);\n const deps = topLevelDeps.get(name);\n if (deps) {\n for (const dep of deps) {\n if (!serverNeeded.has(dep)) serverQueue.push(dep);\n }\n }\n }\n for (const stmt of ast.body) {\n if (stmt.type === \"ImportDeclaration\") {\n continue;\n }\n if (serverExportStmts.has(stmt)) {\n const info = serverExportStmts.get(stmt);\n if (!info.replaceAll && stmt.declaration?.declarations) {\n for (const d of stmt.declaration.declarations) {\n if (!info.declaratorsToRemove.has(d)) {\n const deps2 = getReferencedIdentifiers(d, allBindingNames);\n for (const dep of deps2) clientRootDeps.add(dep);\n }\n }\n }\n continue;\n }\n if (stmt.type === \"VariableDeclaration\") {\n const allInServer = stmt.declarations.every((d) => {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n return names.size > 0 && Array.from(names).every((n) => serverNeeded.has(n));\n });\n if (!allInServer) {\n for (const d of stmt.declarations) {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n const inServer = names.size > 0 && Array.from(names).every((n) => serverNeeded.has(n));\n if (!inServer) {\n const deps2 = getReferencedIdentifiers(d, allBindingNames);\n for (const dep of deps2) clientRootDeps.add(dep);\n }\n }\n }\n continue;\n }\n if ((stmt.type === \"FunctionDeclaration\" || stmt.type === \"ClassDeclaration\" || stmt.type === \"TSEnumDeclaration\") && stmt.id && serverNeeded.has(stmt.id.name)) {\n continue;\n }\n const deps = getReferencedIdentifiers(stmt, allBindingNames);\n for (const dep of deps) clientRootDeps.add(dep);\n }\n const clientNeeded = /* @__PURE__ */ new Set();\n const clientQueue = Array.from(clientRootDeps);\n while (clientQueue.length > 0) {\n const name = clientQueue.shift();\n if (clientNeeded.has(name)) continue;\n clientNeeded.add(name);\n if (name === \"loader\" || name === \"generateStaticParams\") continue;\n const deps = topLevelDeps.get(name);\n if (deps) {\n for (const dep of deps) {\n if (!clientNeeded.has(dep)) clientQueue.push(dep);\n }\n }\n }\n const exclusiveServerBindings = /* @__PURE__ */ new Set();\n for (const name of serverNeeded) {\n if (!clientNeeded.has(name)) {\n exclusiveServerBindings.add(name);\n }\n }\n const s = new MagicString(code);\n const overwritePreservingLines = (start, end, replacement = \"\") => {\n const lineBreaks = code.slice(start, end).match(/\\r\\n|\\r|\\n/g)?.join(\"\") ?? \"\";\n s.overwrite(start, end, replacement + lineBreaks);\n };\n for (const [stmt, info] of serverExportStmts) {\n const stubs = [];\n if (info.names.has(\"loader\")) {\n if (root) {\n const fromRoot = relative(root, id).replace(/\\\\/g, \"/\");\n const prefix = routerRoot.replace(/^\\.\\//, \"\").replace(/\\/$/, \"\") + \"/\";\n const routeId = \"./\" + (fromRoot.startsWith(prefix) ? fromRoot.slice(prefix.length) : fromRoot);\n stubs.push(makeLoaderRouteIdStub(routeId));\n } else {\n stubs.push(EMPTY_LOADER_STRING);\n }\n }\n if (info.names.has(\"generateStaticParams\")) {\n stubs.push(\"export function generateStaticParams() {};\");\n }\n if (info.replaceAll) {\n overwritePreservingLines(stmt.start, stmt.end, stubs.join(\" \"));\n } else {\n const decl = stmt.declaration;\n for (let i = decl.declarations.length - 1; i >= 0; i--) {\n const d = decl.declarations[i];\n if (info.declaratorsToRemove.has(d)) {\n if (i === 0) {\n const next = decl.declarations[1];\n overwritePreservingLines(d.start, next.start);\n } else {\n const prev = decl.declarations[i - 1];\n overwritePreservingLines(prev.end, d.end);\n }\n }\n }\n s.appendRight(stmt.end, \"; \" + stubs.join(\" \"));\n }\n }\n for (const stmt of ast.body) {\n if (serverExportStmts.has(stmt) || stmt.type === \"ImportDeclaration\") continue;\n if ((stmt.type === \"FunctionDeclaration\" || stmt.type === \"ClassDeclaration\" || stmt.type === \"TSEnumDeclaration\") && stmt.id && exclusiveServerBindings.has(stmt.id.name)) {\n let end = stmt.end;\n if (code[end] === \";\") end++;\n if (code[end] === \"\\r\" && code[end + 1] === \"\\n\") end += 2;\n else if (code[end] === \"\\n\") end += 1;\n overwritePreservingLines(stmt.start, end);\n } else if (stmt.type === \"VariableDeclaration\") {\n const allExclusive = stmt.declarations.every((d) => {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n return Array.from(names).every((n) => exclusiveServerBindings.has(n));\n });\n if (allExclusive) {\n let end = stmt.end;\n if (code[end] === \";\") end++;\n if (code[end] === \"\\r\" && code[end + 1] === \"\\n\") end += 2;\n else if (code[end] === \"\\n\") end += 1;\n overwritePreservingLines(stmt.start, end);\n } else {\n for (let i = stmt.declarations.length - 1; i >= 0; i--) {\n const d = stmt.declarations[i];\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n if (Array.from(names).every((n) => exclusiveServerBindings.has(n))) {\n if (i === 0) {\n const next = stmt.declarations[1];\n overwritePreservingLines(d.start, next.start);\n } else {\n const prev = stmt.declarations[i - 1];\n overwritePreservingLines(prev.end, d.end);\n }\n }\n }\n }\n } else if (stmt.type === \"ClassDeclaration\" && stmt.id && exclusiveServerBindings.has(stmt.id.name)) {\n let end = stmt.end;\n if (code[end] === \";\") end++;\n if (code[end] === \"\\r\" && code[end + 1] === \"\\n\") end += 2;\n else if (code[end] === \"\\n\") end += 1;\n overwritePreservingLines(stmt.start, end);\n }\n }\n for (const stmt of ast.body) {\n if (stmt.type !== \"ImportDeclaration\") continue;\n if (stmt.importKind === \"type\") continue;\n if (!stmt.specifiers || stmt.specifiers.length === 0) continue;\n const kept = stmt.specifiers.filter((sp) => {\n if (sp.importKind === \"type\") return true;\n return !exclusiveServerBindings.has(sp.local.name);\n });\n if (kept.length === 0) {\n let end = stmt.end;\n if (code[end] === \";\") end++;\n if (code[end] === \"\\r\" && code[end + 1] === \"\\n\") end += 2;\n else if (code[end] === \"\\n\") end += 1;\n overwritePreservingLines(stmt.start, end);\n } else if (kept.length < stmt.specifiers.length) {\n const declCode = code.slice(stmt.start, stmt.source.start);\n const prefixMatch = declCode.match(/^import\\s+/);\n const prefixEnd = stmt.start + (prefixMatch ? prefixMatch[0].length : 7);\n let pos = stmt.source.start - 1;\n while (pos >= 0 && /\\s/.test(code[pos])) pos--;\n const fromStart = pos - 3;\n const defaultSpec = kept.find((sp) => sp.type === \"ImportDefaultSpecifier\");\n const namespaceSpec = kept.find((sp) => sp.type === \"ImportNamespaceSpecifier\");\n const namedSpecs = kept.filter((sp) => sp.type === \"ImportSpecifier\");\n const parts = [];\n if (defaultSpec) parts.push(defaultSpec.local.name);\n if (namespaceSpec) parts.push(\"* as \" + namespaceSpec.local.name);\n if (namedSpecs.length > 0) {\n const namedStr = namedSpecs.map((sp) => {\n const typePrefix = sp.importKind === \"type\" ? \"type \" : \"\";\n const importedName = sp.imported.raw || sp.imported.name;\n if (importedName === sp.local.name) {\n return typePrefix + sp.local.name;\n }\n return typePrefix + importedName + \" as \" + sp.local.name;\n }).join(\", \");\n parts.push(\"{ \" + namedStr + \" }\");\n }\n overwritePreservingLines(prefixEnd, fromStart, parts.join(\", \") + \" \");\n }\n }\n console.info(\n ` \\u{1F9F9} [one] ${relative(process.cwd(), id)} removed ${removedFunctions.length} server-only exports`\n );\n return {\n code: s.toString(),\n map: s.generateMap({ hires: \"boundary\", source: id, includeContent: true })\n };\n}\nexport {\n clientTreeShakePlugin,\n transformTreeShakeClient\n};\n//# sourceMappingURL=clientTreeShakePlugin.js.map\n"],"mappings":";;;;;;AAIA,MAAM,yBAAyB,SAAS;CACtC,MAAM,UAAU,MAAM,WAAW;CACjC,MAAM,aAAa,MAAM,cAAc;CACvC,OAAO;EACL,MAAM;EACN,SAAS;EACT,GAAG,YAAY,UAAU,EACvB,mBAAmB,KAAK;GACtB,OAAO,IAAI,SAAS,YAAY,IAAI,SAAS,SAAS,IAAI,SAAS;EACrE,EACF;EACA,WAAW;GACT,OAAO;GACP,MAAM,QAAQ,MAAM,IAAI,UAAU;IAChC,IAAI,YAAY,UAAU,KAAK,aAAa,SAAS,OAAO;KAC1D;IACF;IACA,IAAI,CAAC,qBAAqB,KAAK,QAAQ,EAAE,CAAC,GAAG;KAC3C;IACF;IACA,IAAI,eAAe,KAAK,EAAE,GAAG;KAC3B;IACF;IACA,MAAM,MAAM,MAAM,yBAAyB,MAAM,IAAI,QAAQ,IAAI,GAAG,UAAU;IAC9E,OAAO;GACT;EACF;CACF;AACF;AACA,SAAS,uBAAuB,MAAM,OAAO;CAC3C,IAAI,CAAC,MAAM;CACX,QAAQ,KAAK,MAAb;EACE,KAAK;GACH,MAAM,IAAI,KAAK,IAAI;GACnB;EACF,KAAK;GACH,KAAK,MAAM,QAAQ,KAAK,YAAY;IAClC,IAAI,KAAK,SAAS,YAAY;KAC5B,uBAAuB,KAAK,OAAO,KAAK;IAC1C,OAAO,IAAI,KAAK,SAAS,eAAe;KACtC,uBAAuB,KAAK,UAAU,KAAK;IAC7C;GACF;GACA;EACF,KAAK;GACH,KAAK,MAAM,WAAW,KAAK,U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M,aAAa,GAAG,eAAe,SAAS,UAAU;KACxD,MAAM,eAAe,GAAG,SAAS,OAAO,GAAG,SAAS;KACpD,IAAI,iBAAiB,GAAG,MAAM,MAAM;MAClC,OAAO,aAAa,GAAG,MAAM;KAC/B;KACA,OAAO,aAAa,eAAe,SAAS,GAAG,MAAM;IACvD,CAAC,CAAC,CAAC,KAAK,IAAI;IACZ,MAAM,KAAK,OAAO,WAAW,IAAI;GACnC;GACA,yBAAyB,WAAW,WAAW,MAAM,KAAK,IAAI,IAAI,GAAG;EACvE;CACF;CACA,QAAQ,KACN,yBAAyB,SAAS,QAAQ,IAAI,GAAG,EAAE,EAAE,WAAW,iBAAiB,OAAO,qBAC1F;CACA,OAAO;EACL,MAAM,EAAE,SAAS;EACjB,KAAK,EAAE,YAAY;GAAE,OAAO;GAAY,QAAQ;GAAI,gBAAgB;EAAK,CAAC;CAC5E;AACF"}
1
+ {"version":3,"file":"clientTreeShakePlugin.js","names":[],"sources":["esm/vite/plugins/clientTreeShakePlugin.js"],"sourcesContent":["import { extname, relative } from \"node:path\";\nimport MagicString from \"magic-string\";\nimport { parseSync } from \"oxc-parser\";\nimport { EMPTY_LOADER_STRING, makeLoaderRouteIdStub } from \"../constants\";\nconst clientTreeShakePlugin = (opts) => {\n const runtime = opts?.runtime ?? \"vite\";\n const routerRoot = opts?.routerRoot ?? \"app\";\n return {\n name: \"one-client-tree-shake\",\n enforce: \"pre\",\n ...runtime === \"vite\" && {\n applyToEnvironment(env) {\n return env.name === \"client\" || env.name === \"ios\" || env.name === \"android\" || env.name === \"macos\" || env.name === \"linux\";\n }\n },\n transform: {\n order: \"pre\",\n async handler(code, id, settings) {\n if (runtime === \"vite\" && this.environment?.name === \"ssr\") {\n return;\n }\n if (!/\\.(js|jsx|ts|tsx)$/.test(extname(id))) {\n return;\n }\n if (/node_modules/.test(id)) {\n return;\n }\n const out = await transformTreeShakeClient(code, id, process.cwd(), routerRoot);\n return out;\n }\n }\n };\n};\nfunction extractPatternBindings(node, names) {\n if (!node) return;\n switch (node.type) {\n case \"Identifier\":\n names.add(node.name);\n break;\n case \"ObjectPattern\":\n for (const prop of node.properties) {\n if (prop.type === \"Property\") {\n extractPatternBindings(prop.value, names);\n } else if (prop.type === \"RestElement\") {\n extractPatternBindings(prop.argument, names);\n }\n }\n break;\n case \"ArrayPattern\":\n for (const element of node.elements) {\n if (element) {\n extractPatternBindings(element, names);\n }\n }\n break;\n case \"AssignmentPattern\":\n extractPatternBindings(node.left, names);\n break;\n case \"RestElement\":\n extractPatternBindings(node.argument, names);\n break;\n case \"TSParameterProperty\":\n extractPatternBindings(node.parameter, names);\n break;\n }\n}\nfunction getReferencedIdentifiers(rootNode, candidateNames) {\n const referenced = /* @__PURE__ */ new Set();\n const scopeStack = [];\n function isShadowed(name) {\n for (let i = scopeStack.length - 1; i >= 0; i--) {\n if (scopeStack[i].has(name)) return true;\n }\n return false;\n }\n function checkIdentifier(name) {\n if (!isShadowed(name) && candidateNames.has(name)) {\n referenced.add(name);\n }\n }\n function walk(node) {\n if (!node || typeof node !== \"object\") return;\n if (node.type === \"TSTypeAnnotation\" || node.type === \"TSTypeReference\" || node.type === \"TSTypeAliasDeclaration\" || node.type === \"TSInterfaceDeclaration\" || node.type === \"TSTypeParameterDeclaration\" || node.type === \"TSTypeParameterInstantiation\") {\n return;\n }\n if (node.type === \"TSAsExpression\" || node.type === \"TSTypeAssertion\" || node.type === \"TSSatisfiesExpression\" || node.type === \"TSNonNullExpression\") {\n walk(node.expression);\n return;\n }\n function walkPatternExpressions(pat) {\n if (!pat || typeof pat !== \"object\") return;\n switch (pat.type) {\n case \"AssignmentPattern\":\n walk(pat.right);\n walkPatternExpressions(pat.left);\n break;\n case \"ObjectPattern\":\n for (const prop of pat.properties) {\n if (prop.type === \"Property\") {\n if (prop.computed) {\n walk(prop.key);\n }\n walkPatternExpressions(prop.value);\n } else if (prop.type === \"RestElement\") {\n walkPatternExpressions(prop.argument);\n }\n }\n break;\n case \"ArrayPattern\":\n for (const element of pat.elements) {\n if (element) {\n walkPatternExpressions(element);\n }\n }\n break;\n case \"RestElement\":\n walkPatternExpressions(pat.argument);\n break;\n case \"TSParameterProperty\":\n walkPatternExpressions(pat.parameter);\n break;\n }\n }\n if (node.type === \"FunctionDeclaration\" || node.type === \"FunctionExpression\" || node.type === \"ArrowFunctionExpression\") {\n let addVars = function(n) {\n if (!n || typeof n !== \"object\") return;\n if (n.type === \"FunctionDeclaration\" || n.type === \"FunctionExpression\" || n.type === \"ArrowFunctionExpression\") {\n return;\n }\n if (n.type === \"VariableDeclaration\" && n.kind === \"var\") {\n for (const d of n.declarations) {\n extractPatternBindings(d.id, scope);\n }\n }\n for (const k of Object.keys(n)) {\n if (k === \"parent\") continue;\n const val = n[k];\n if (Array.isArray(val)) {\n for (const item of val) addVars(item);\n } else if (val && typeof val === \"object\") {\n addVars(val);\n }\n }\n };\n const scope = /* @__PURE__ */ new Set();\n if (node.type === \"FunctionExpression\" && node.id) {\n scope.add(node.id.name);\n }\n if (node.params) {\n for (const param of node.params) {\n walkPatternExpressions(param);\n extractPatternBindings(param, scope);\n }\n }\n addVars(node.body);\n scopeStack.push(scope);\n walk(node.body);\n scopeStack.pop();\n return;\n }\n if (node.type === \"BlockStatement\") {\n const scope = /* @__PURE__ */ new Set();\n for (const stmt of node.body) {\n if (stmt.type === \"VariableDeclaration\" && (stmt.kind === \"let\" || stmt.kind === \"const\")) {\n for (const decl of stmt.declarations) {\n extractPatternBindings(decl.id, scope);\n }\n } else if (stmt.type === \"FunctionDeclaration\" && stmt.id) {\n scope.add(stmt.id.name);\n } else if (stmt.type === \"ClassDeclaration\" && stmt.id) {\n scope.add(stmt.id.name);\n }\n }\n scopeStack.push(scope);\n for (const stmt of node.body) {\n walk(stmt);\n }\n scopeStack.pop();\n return;\n }\n if (node.type === \"CatchClause\") {\n const scope = /* @__PURE__ */ new Set();\n if (node.param) {\n extractPatternBindings(node.param, scope);\n }\n scopeStack.push(scope);\n walk(node.body);\n scopeStack.pop();\n return;\n }\n if (node.type === \"ForStatement\" || node.type === \"ForInStatement\" || node.type === \"ForOfStatement\") {\n const scope = /* @__PURE__ */ new Set();\n const initOrLeft = node.init || node.left;\n if (initOrLeft && initOrLeft.type === \"VariableDeclaration\" && initOrLeft.kind !== \"var\") {\n for (const decl of initOrLeft.declarations) {\n extractPatternBindings(decl.id, scope);\n }\n }\n scopeStack.push(scope);\n if (node.init) walk(node.init);\n if (node.left) walk(node.left);\n if (node.right) walk(node.right);\n if (node.test) walk(node.test);\n if (node.update) walk(node.update);\n walk(node.body);\n scopeStack.pop();\n return;\n }\n if (node.type === \"Identifier\") {\n checkIdentifier(node.name);\n return;\n }\n if (node.type === \"JSXOpeningElement\") {\n if (node.name) {\n if (node.name.type === \"JSXIdentifier\") {\n if (node.name.name && /^[A-Z]/.test(node.name.name)) {\n checkIdentifier(node.name.name);\n }\n } else if (node.name.type === \"JSXMemberExpression\") {\n let rootObj = node.name.object;\n while (rootObj && rootObj.type === \"JSXMemberExpression\") {\n rootObj = rootObj.object;\n }\n if (rootObj && rootObj.type === \"JSXIdentifier\") {\n checkIdentifier(rootObj.name);\n }\n }\n }\n if (node.attributes) {\n for (const attr of node.attributes) {\n walk(attr);\n }\n }\n return;\n }\n if (node.type === \"JSXAttribute\") {\n if (node.value) walk(node.value);\n return;\n }\n if (node.type === \"JSXClosingElement\") {\n return;\n }\n if (node.type === \"Property\") {\n if (node.computed) {\n walk(node.key);\n }\n walk(node.value);\n return;\n }\n if (node.type === \"MemberExpression\") {\n walk(node.object);\n if (node.computed) {\n walk(node.property);\n }\n return;\n }\n if (node.type === \"VariableDeclarator\") {\n walkPatternExpressions(node.id);\n if (node.init) {\n walk(node.init);\n }\n return;\n }\n if (node.type === \"ExportSpecifier\") {\n if (node.local && node.local.type === \"Identifier\") {\n checkIdentifier(node.local.name);\n }\n return;\n }\n for (const key of Object.keys(node)) {\n if (key === \"parent\") continue;\n const child = node[key];\n if (Array.isArray(child)) {\n for (const item of child) {\n if (item && typeof item === \"object\") walk(item);\n }\n } else if (child && typeof child === \"object\") {\n walk(child);\n }\n }\n }\n walk(rootNode);\n return referenced;\n}\nasync function transformTreeShakeClient(code, id, root, routerRoot = \"app\") {\n if (!/generateStaticParams|loader/.test(code)) {\n return;\n }\n const isProd = process.env.NODE_ENV === \"production\";\n const filename = (id || \"file.tsx\").split(\"?\")[0].split(\"#\")[0];\n let parseResult;\n try {\n parseResult = parseSync(filename, code);\n if (parseResult.errors && parseResult.errors.length > 0) {\n const errorMessage = parseResult.errors.map((e) => e.message).join(\"\\n\");\n if (isProd) {\n throw new Error(\n `[one] Failed to parse ${id} with server exports:\n${errorMessage}`\n );\n }\n console.warn(\n `[one] Skipping tree shaking for ${id} due to syntax error:`,\n errorMessage\n );\n return;\n }\n } catch (error) {\n if (isProd) {\n throw error instanceof Error ? error : new Error(String(error));\n }\n const errorMessage = error instanceof Error ? error.message : String(error);\n console.warn(\n `[one] Skipping tree shaking for ${id} due to syntax error:`,\n errorMessage\n );\n return;\n }\n const ast = parseResult.program;\n try {\n return doTreeShakeClient(code, id, root, ast, routerRoot);\n } catch (error) {\n if (isProd) {\n throw error instanceof Error ? error : new Error(String(error));\n }\n const errorMessage = error instanceof Error ? error.message : String(error);\n console.warn(\n `[one] Skipping tree shaking for ${id} due to analysis error:`,\n errorMessage\n );\n return;\n }\n}\nfunction doTreeShakeClient(code, id, root, ast, routerRoot) {\n const removed = {\n loader: false,\n generateStaticParams: false\n };\n const serverExportStmts = /* @__PURE__ */ new Map();\n for (const stmt of ast.body) {\n if (stmt.type === \"ExportNamedDeclaration\" && stmt.declaration) {\n if (stmt.declaration.type === \"FunctionDeclaration\") {\n const fnName = stmt.declaration.id?.name;\n if (fnName === \"loader\" || fnName === \"generateStaticParams\") {\n removed[fnName] = true;\n serverExportStmts.set(stmt, {\n names: /* @__PURE__ */ new Set([fnName]),\n replaceAll: true,\n declaratorsToRemove: /* @__PURE__ */ new Set()\n });\n }\n } else if (stmt.declaration.type === \"VariableDeclaration\") {\n const found = [];\n for (const d of stmt.declaration.declarations) {\n if (d.id?.type === \"Identifier\" && (d.id.name === \"loader\" || d.id.name === \"generateStaticParams\")) {\n found.push(d);\n removed[d.id.name] = true;\n }\n }\n if (found.length > 0) {\n serverExportStmts.set(stmt, {\n names: new Set(found.map((d) => d.id.name)),\n replaceAll: found.length === stmt.declaration.declarations.length,\n declaratorsToRemove: new Set(found)\n });\n }\n }\n }\n }\n const removedFunctions = Object.keys(removed).filter((k) => removed[k]);\n if (removedFunctions.length === 0) {\n return;\n }\n const moduleBindings = /* @__PURE__ */ new Map();\n for (const stmt of ast.body) {\n if (stmt.type === \"ImportDeclaration\") {\n const isDeclType = stmt.importKind === \"type\";\n for (const sp of stmt.specifiers) {\n const isType = isDeclType || sp.importKind === \"type\";\n moduleBindings.set(sp.local.name, {\n kind: \"import\",\n stmt,\n node: sp,\n isType\n });\n }\n } else if (stmt.type === \"ExportNamedDeclaration\" && stmt.declaration) {\n const decl = stmt.declaration;\n if (decl.type === \"FunctionDeclaration\" && decl.id) {\n moduleBindings.set(decl.id.name, { kind: \"function\", stmt, node: decl });\n } else if (decl.type === \"VariableDeclaration\") {\n for (const d of decl.declarations) {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n for (const name of names) {\n moduleBindings.set(name, { kind: \"variable\", stmt, node: d });\n }\n }\n } else if (decl.type === \"ClassDeclaration\" && decl.id) {\n moduleBindings.set(decl.id.name, { kind: \"class\", stmt, node: decl });\n }\n } else if (stmt.type === \"FunctionDeclaration\" && stmt.id) {\n moduleBindings.set(stmt.id.name, { kind: \"function\", stmt, node: stmt });\n } else if (stmt.type === \"VariableDeclaration\") {\n for (const d of stmt.declarations) {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n for (const name of names) {\n moduleBindings.set(name, { kind: \"variable\", stmt, node: d });\n }\n }\n } else if (stmt.type === \"ClassDeclaration\" && stmt.id) {\n moduleBindings.set(stmt.id.name, { kind: \"class\", stmt, node: stmt });\n } else if (stmt.type === \"TSEnumDeclaration\" && stmt.id) {\n moduleBindings.set(stmt.id.name, { kind: \"enum\", stmt, node: stmt });\n }\n }\n const allBindingNames = new Set(moduleBindings.keys());\n const topLevelDeps = /* @__PURE__ */ new Map();\n const clientRootDeps = /* @__PURE__ */ new Set();\n for (const [name, info] of moduleBindings) {\n if (info.kind === \"import\") {\n topLevelDeps.set(name, /* @__PURE__ */ new Set());\n } else if (info.kind === \"function\") {\n topLevelDeps.set(name, getReferencedIdentifiers(info.node, allBindingNames));\n } else if (info.kind === \"variable\") {\n const deps = getReferencedIdentifiers(info.node, allBindingNames);\n deps.delete(name);\n topLevelDeps.set(name, deps);\n } else if (info.kind === \"class\") {\n topLevelDeps.set(name, getReferencedIdentifiers(info.node, allBindingNames));\n } else if (info.kind === \"enum\") {\n topLevelDeps.set(name, getReferencedIdentifiers(info.node, allBindingNames));\n }\n }\n const serverNeeded = /* @__PURE__ */ new Set();\n const serverQueue = [];\n for (const fn of removedFunctions) {\n const deps = topLevelDeps.get(fn);\n if (deps) {\n for (const dep of deps) serverQueue.push(dep);\n }\n }\n while (serverQueue.length > 0) {\n const name = serverQueue.shift();\n if (serverNeeded.has(name)) continue;\n serverNeeded.add(name);\n const deps = topLevelDeps.get(name);\n if (deps) {\n for (const dep of deps) {\n if (!serverNeeded.has(dep)) serverQueue.push(dep);\n }\n }\n }\n for (const stmt of ast.body) {\n if (stmt.type === \"ImportDeclaration\") {\n continue;\n }\n if (serverExportStmts.has(stmt)) {\n const info = serverExportStmts.get(stmt);\n if (!info.replaceAll && stmt.declaration?.declarations) {\n for (const d of stmt.declaration.declarations) {\n if (!info.declaratorsToRemove.has(d)) {\n const deps2 = getReferencedIdentifiers(d, allBindingNames);\n for (const dep of deps2) clientRootDeps.add(dep);\n }\n }\n }\n continue;\n }\n if (stmt.type === \"VariableDeclaration\") {\n const allInServer = stmt.declarations.every((d) => {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n return names.size > 0 && Array.from(names).every((n) => serverNeeded.has(n));\n });\n if (!allInServer) {\n for (const d of stmt.declarations) {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n const inServer = names.size > 0 && Array.from(names).every((n) => serverNeeded.has(n));\n if (!inServer) {\n const deps2 = getReferencedIdentifiers(d, allBindingNames);\n for (const dep of deps2) clientRootDeps.add(dep);\n }\n }\n }\n continue;\n }\n if ((stmt.type === \"FunctionDeclaration\" || stmt.type === \"ClassDeclaration\" || stmt.type === \"TSEnumDeclaration\") && stmt.id && serverNeeded.has(stmt.id.name)) {\n continue;\n }\n const deps = getReferencedIdentifiers(stmt, allBindingNames);\n for (const dep of deps) clientRootDeps.add(dep);\n }\n const clientNeeded = /* @__PURE__ */ new Set();\n const clientQueue = Array.from(clientRootDeps);\n while (clientQueue.length > 0) {\n const name = clientQueue.shift();\n if (clientNeeded.has(name)) continue;\n clientNeeded.add(name);\n if (name === \"loader\" || name === \"generateStaticParams\") continue;\n const deps = topLevelDeps.get(name);\n if (deps) {\n for (const dep of deps) {\n if (!clientNeeded.has(dep)) clientQueue.push(dep);\n }\n }\n }\n const exclusiveServerBindings = /* @__PURE__ */ new Set();\n for (const name of serverNeeded) {\n if (!clientNeeded.has(name)) {\n exclusiveServerBindings.add(name);\n }\n }\n const s = new MagicString(code);\n const overwritePreservingLines = (start, end, replacement = \"\") => {\n const lineBreaks = code.slice(start, end).match(/\\r\\n|\\r|\\n/g)?.join(\"\") ?? \"\";\n s.overwrite(start, end, replacement + lineBreaks);\n };\n for (const [stmt, info] of serverExportStmts) {\n const stubs = [];\n if (info.names.has(\"loader\")) {\n if (root) {\n const fromRoot = relative(root, id).replace(/\\\\/g, \"/\");\n const prefix = routerRoot.replace(/^\\.\\//, \"\").replace(/\\/$/, \"\") + \"/\";\n const routeId = \"./\" + (fromRoot.startsWith(prefix) ? fromRoot.slice(prefix.length) : fromRoot);\n stubs.push(makeLoaderRouteIdStub(routeId));\n } else {\n stubs.push(EMPTY_LOADER_STRING);\n }\n }\n if (info.names.has(\"generateStaticParams\")) {\n stubs.push(\"export function generateStaticParams() {};\");\n }\n if (info.replaceAll) {\n overwritePreservingLines(stmt.start, stmt.end, stubs.join(\" \"));\n } else {\n const decl = stmt.declaration;\n for (let i = decl.declarations.length - 1; i >= 0; i--) {\n const d = decl.declarations[i];\n if (info.declaratorsToRemove.has(d)) {\n if (i === 0) {\n const next = decl.declarations[1];\n overwritePreservingLines(d.start, next.start);\n } else {\n const prev = decl.declarations[i - 1];\n overwritePreservingLines(prev.end, d.end);\n }\n }\n }\n s.appendRight(stmt.end, \"; \" + stubs.join(\" \"));\n }\n }\n for (const stmt of ast.body) {\n if (serverExportStmts.has(stmt) || stmt.type === \"ImportDeclaration\") continue;\n if ((stmt.type === \"FunctionDeclaration\" || stmt.type === \"ClassDeclaration\" || stmt.type === \"TSEnumDeclaration\") && stmt.id && exclusiveServerBindings.has(stmt.id.name)) {\n let end = stmt.end;\n if (code[end] === \";\") end++;\n if (code[end] === \"\\r\" && code[end + 1] === \"\\n\") end += 2;\n else if (code[end] === \"\\n\") end += 1;\n overwritePreservingLines(stmt.start, end);\n } else if (stmt.type === \"VariableDeclaration\") {\n const allExclusive = stmt.declarations.every((d) => {\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n return Array.from(names).every((n) => exclusiveServerBindings.has(n));\n });\n if (allExclusive) {\n let end = stmt.end;\n if (code[end] === \";\") end++;\n if (code[end] === \"\\r\" && code[end + 1] === \"\\n\") end += 2;\n else if (code[end] === \"\\n\") end += 1;\n overwritePreservingLines(stmt.start, end);\n } else {\n for (let i = stmt.declarations.length - 1; i >= 0; i--) {\n const d = stmt.declarations[i];\n const names = /* @__PURE__ */ new Set();\n extractPatternBindings(d.id, names);\n if (Array.from(names).every((n) => exclusiveServerBindings.has(n))) {\n if (i === 0) {\n const next = stmt.declarations[1];\n overwritePreservingLines(d.start, next.start);\n } else {\n const prev = stmt.declarations[i - 1];\n overwritePreservingLines(prev.end, d.end);\n }\n }\n }\n }\n } else if (stmt.type === \"ClassDeclaration\" && stmt.id && exclusiveServerBindings.has(stmt.id.name)) {\n let end = stmt.end;\n if (code[end] === \";\") end++;\n if (code[end] === \"\\r\" && code[end + 1] === \"\\n\") end += 2;\n else if (code[end] === \"\\n\") end += 1;\n overwritePreservingLines(stmt.start, end);\n }\n }\n for (const stmt of ast.body) {\n if (stmt.type !== \"ImportDeclaration\") continue;\n if (stmt.importKind === \"type\") continue;\n if (!stmt.specifiers || stmt.specifiers.length === 0) continue;\n const kept = stmt.specifiers.filter((sp) => {\n if (sp.importKind === \"type\") return true;\n return !exclusiveServerBindings.has(sp.local.name);\n });\n if (kept.length === 0) {\n let end = stmt.end;\n if (code[end] === \";\") end++;\n if (code[end] === \"\\r\" && code[end + 1] === \"\\n\") end += 2;\n else if (code[end] === \"\\n\") end += 1;\n overwritePreservingLines(stmt.start, end);\n } else if (kept.length < stmt.specifiers.length) {\n const declCode = code.slice(stmt.start, stmt.source.start);\n const prefixMatch = declCode.match(/^import\\s+/);\n const prefixEnd = stmt.start + (prefixMatch ? prefixMatch[0].length : 7);\n let pos = stmt.source.start - 1;\n while (pos >= 0 && /\\s/.test(code[pos])) pos--;\n const fromStart = pos - 3;\n const defaultSpec = kept.find((sp) => sp.type === \"ImportDefaultSpecifier\");\n const namespaceSpec = kept.find((sp) => sp.type === \"ImportNamespaceSpecifier\");\n const namedSpecs = kept.filter((sp) => sp.type === \"ImportSpecifier\");\n const parts = [];\n if (defaultSpec) parts.push(defaultSpec.local.name);\n if (namespaceSpec) parts.push(\"* as \" + namespaceSpec.local.name);\n if (namedSpecs.length > 0) {\n const namedStr = namedSpecs.map((sp) => {\n const typePrefix = sp.importKind === \"type\" ? \"type \" : \"\";\n const importedName = sp.imported.raw || sp.imported.name;\n if (importedName === sp.local.name) {\n return typePrefix + sp.local.name;\n }\n return typePrefix + importedName + \" as \" + sp.local.name;\n }).join(\", \");\n parts.push(\"{ \" + namedStr + \" }\");\n }\n overwritePreservingLines(prefixEnd, fromStart, parts.join(\", \") + \" \");\n }\n }\n console.info(\n ` \\u{1F9F9} [one] ${relative(process.cwd(), id)} removed ${removedFunctions.length} server-only exports`\n );\n return {\n code: s.toString(),\n map: s.generateMap({ hires: \"boundary\", source: id, includeContent: true })\n };\n}\nexport {\n clientTreeShakePlugin,\n transformTreeShakeClient\n};\n//# sourceMappingURL=clientTreeShakePlugin.js.map\n"],"mappings":";;;;;;AAIA,MAAM,yBAAyB,SAAS;CACtC,MAAM,UAAU,MAAM,WAAW;CACjC,MAAM,aAAa,MAAM,cAAc;CACvC,OAAO;EACL,MAAM;EACN,SAAS;EACT,GAAG,YAAY,UAAU,EACvB,mBAAmB,KAAK;GACtB,OAAO,IAAI,SAAS,YAAY,IAAI,SAAS,SAAS,IAAI,SAAS,aAAa,IAAI,SAAS,WAAW,IAAI,SAAS;EACvH,EACF;EACA,WAAW;GACT,OAAO;GACP,MAAM,QAAQ,MAAM,IAAI,UAAU;IAChC,IAAI,YAAY,UAAU,KAAK,aAAa,SAAS,OAAO;KAC1D;IACF;IACA,IAAI,CAAC,qBAAqB,KAAK,QAAQ,EAAE,CAAC,GAAG;KAC3C;IACF;IACA,IAAI,eAAe,KAAK,EAAE,GAAG;KAC3B;IACF;IACA,MAAM,MAAM,MAAM,yBAAyB,MAAM,IAAI,QAAQ,IAAI,GAAG,UAAU;IAC9E,OAAO;GACT;EACF;CACF;AACF;AACA,SAAS,uBAAuB,MAAM,OAAO;CAC3C,IAAI,CAAC,MAAM;CACX,QAAQ,KAAK,MAAb;EACE,KAAK;GACH,MAAM,IAAI,KAAK,IAAI;GACnB;EACF,KAAK;GACH,KAAK,MAAM,QAAQ,KAAK,YAAY;IAClC,IAAI,KAAK,SAAS,YAAY;KAC5B,uBAAuB,KAAK,OAAO,KAAK;IAC1C,OAAO,IAAI,KAAK,SAAS,eAAe;KACtC,uBAAuB,KAAK,UAAU,KAAK;IAC7C;GACF;GACA;EACF,KAAK;GACH,KAAK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AAK,OAAO;KACtC,MAAM,aAAa,GAAG,eAAe,SAAS,UAAU;KACxD,MAAM,eAAe,GAAG,SAAS,OAAO,GAAG,SAAS;KACpD,IAAI,iBAAiB,GAAG,MAAM,MAAM;MAClC,OAAO,aAAa,GAAG,MAAM;KAC/B;KACA,OAAO,aAAa,eAAe,SAAS,GAAG,MAAM;IACvD,CAAC,CAAC,CAAC,KAAK,IAAI;IACZ,MAAM,KAAK,OAAO,WAAW,IAAI;GACnC;GACA,yBAAyB,WAAW,WAAW,MAAM,KAAK,IAAI,IAAI,GAAG;EACvE;CACF;CACA,QAAQ,KACN,yBAAyB,SAAS,QAAQ,IAAI,GAAG,EAAE,EAAE,WAAW,iBAAiB,OAAO,qBAC1F;CACA,OAAO;EACL,MAAM,EAAE,SAAS;EACjB,KAAK,EAAE,YAAY;GAAE,OAAO;GAAY,QAAQ;GAAI,gBAAgB;EAAK,CAAC;CAC5E;AACF"}
@@ -11,7 +11,7 @@ var clientTreeShakePlugin = function clientTreeShakePlugin2(opts) {
11
11
  name: "one-client-tree-shake",
12
12
  enforce: "pre",
13
13
  ...runtime === "vite" && { applyToEnvironment(env) {
14
- return env.name === "client" || env.name === "ios" || env.name === "android";
14
+ return env.name === "client" || env.name === "ios" || env.name === "android" || env.name === "macos" || env.name === "linux";
15
15
  } },
16
16
  transform: {
17
17
  order: "pre",