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.
- package/One.podspec +14 -0
- package/android/src/main/java/com/margelo/nitro/one/OneUpdatesLauncher.kt +28 -0
- package/android/src/main/java/dev/onejs/one/OnePackage.kt +2 -0
- package/android/src/main/java/dev/onejs/onenative/OneDOMHostManager.kt +85 -0
- package/android/src/main/java/dev/onejs/onenative/OneDOMHostView.kt +399 -0
- package/android/src/main/java/dev/onejs/onenative/OneDOMResources.kt +126 -0
- package/dist/cjs/cli/iosLinkSet.cjs +111 -0
- package/dist/cjs/cli/iosLinkSet.native.cjs +120 -0
- package/dist/cjs/cli/iosLinkSet.native.js +122 -0
- package/dist/cjs/cli/iosLinkSet.native.js.map +1 -0
- package/dist/cjs/cli/iosLinkSetAnalysis.cjs +329 -0
- package/dist/cjs/cli/iosLinkSetAnalysis.native.cjs +714 -0
- package/dist/cjs/cli/iosLinkSetAnalysis.native.js +716 -0
- package/dist/cjs/cli/iosLinkSetAnalysis.native.js.map +1 -0
- package/dist/cjs/cli/prebuild.cjs +5 -1
- package/dist/cjs/cli/prebuild.native.cjs +4 -2
- package/dist/cjs/cli/prebuild.native.js +4 -2
- package/dist/cjs/cli/prebuild.native.js.map +1 -1
- package/dist/cjs/cli/updatesPublish.cjs +16 -12
- package/dist/cjs/cli/updatesPublish.native.cjs +45 -22
- package/dist/cjs/cli/updatesPublish.native.js +45 -22
- package/dist/cjs/cli/updatesPublish.native.js.map +1 -1
- package/dist/cjs/cli.cjs +4 -2
- package/dist/cjs/cli.native.cjs +4 -2
- package/dist/cjs/cli.native.js +4 -2
- package/dist/cjs/cli.native.js.map +1 -1
- package/dist/cjs/createApp.cjs +8 -0
- package/dist/cjs/createHandleRequest.cjs +4 -17
- package/dist/cjs/createHandleRequest.native.cjs +6 -19
- package/dist/cjs/createHandleRequest.native.js +6 -19
- package/dist/cjs/createHandleRequest.native.js.map +1 -1
- package/dist/cjs/dom/browserBridge.cjs +177 -0
- package/dist/cjs/dom/browserBridge.native.cjs +290 -0
- package/dist/cjs/dom/browserBridge.native.js +292 -0
- package/dist/cjs/dom/browserBridge.native.js.map +1 -0
- package/dist/cjs/dom/client.cjs +69 -0
- package/dist/cjs/dom/client.native.cjs +81 -0
- package/dist/cjs/dom/client.native.js +83 -0
- package/dist/cjs/dom/client.native.js.map +1 -0
- package/dist/cjs/dom/context.cjs +25 -0
- package/dist/cjs/dom/context.native.cjs +27 -0
- package/dist/cjs/dom/context.native.js +29 -0
- package/dist/cjs/dom/context.native.js.map +1 -0
- package/dist/cjs/dom/host.native.cjs +152 -0
- package/dist/cjs/dom/host.native.js +154 -0
- package/dist/cjs/dom/host.native.js.map +1 -0
- package/dist/cjs/dom/index.cjs +88 -0
- package/dist/cjs/dom/index.native.cjs +136 -0
- package/dist/cjs/dom/index.native.js +138 -0
- package/dist/cjs/dom/index.native.js.map +1 -0
- package/dist/cjs/dom/measure.cjs +51 -0
- package/dist/cjs/dom/measure.native.cjs +55 -0
- package/dist/cjs/dom/measure.native.js +57 -0
- package/dist/cjs/dom/measure.native.js.map +1 -0
- package/dist/cjs/dom/nativeBridge.cjs +135 -0
- package/dist/cjs/dom/nativeBridge.native.cjs +223 -0
- package/dist/cjs/dom/nativeBridge.native.js +225 -0
- package/dist/cjs/dom/nativeBridge.native.js.map +1 -0
- package/dist/cjs/dom/peer.cjs +148 -0
- package/dist/cjs/dom/peer.native.cjs +227 -0
- package/dist/cjs/dom/peer.native.js +229 -0
- package/dist/cjs/dom/peer.native.js.map +1 -0
- package/dist/cjs/dom/protocol.cjs +185 -0
- package/dist/cjs/dom/protocol.native.cjs +209 -0
- package/dist/cjs/dom/protocol.native.js +211 -0
- package/dist/cjs/dom/protocol.native.js.map +1 -0
- package/dist/cjs/dom/serialize.cjs +140 -0
- package/dist/cjs/dom/serialize.native.cjs +284 -0
- package/dist/cjs/dom/serialize.native.js +286 -0
- package/dist/cjs/dom/serialize.native.js.map +1 -0
- package/dist/cjs/dom/types.cjs +16 -0
- package/dist/cjs/dom/types.native.cjs +18 -0
- package/dist/cjs/dom/types.native.js +20 -0
- package/dist/cjs/dom/types.native.js.map +1 -0
- package/dist/cjs/fork/getPathFromState.cjs +9 -1
- package/dist/cjs/fork/getPathFromState.native.cjs +48 -4
- package/dist/cjs/fork/getPathFromState.native.js +48 -4
- package/dist/cjs/fork/getPathFromState.native.js.map +1 -1
- package/dist/cjs/hooks.cjs +50 -1
- package/dist/cjs/hooks.native.cjs +55 -2
- package/dist/cjs/hooks.native.js +55 -2
- package/dist/cjs/hooks.native.js.map +1 -1
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.native.cjs +2 -0
- package/dist/cjs/index.native.js +2 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/layouts/Tabs.linux.cjs +48 -0
- package/dist/cjs/layouts/Tabs.linux.native.cjs +50 -0
- package/dist/cjs/layouts/Tabs.linux.native.js +52 -0
- package/dist/cjs/layouts/Tabs.linux.native.js.map +1 -0
- package/dist/cjs/layouts/stack-navigator-desktop.cjs +26 -0
- package/dist/cjs/layouts/stack-navigator-desktop.native.cjs +28 -0
- package/dist/cjs/layouts/stack-navigator-desktop.native.js +30 -0
- package/dist/cjs/layouts/stack-navigator-desktop.native.js.map +1 -0
- package/dist/cjs/layouts/stack-navigator.linux.cjs +39 -0
- package/dist/cjs/layouts/stack-navigator.linux.native.cjs +41 -0
- package/dist/cjs/layouts/stack-navigator.linux.native.js +43 -0
- package/dist/cjs/layouts/stack-navigator.linux.native.js.map +1 -0
- package/dist/cjs/layouts/stack-navigator.macos.cjs +29 -0
- package/dist/cjs/layouts/stack-navigator.macos.native.cjs +31 -0
- package/dist/cjs/layouts/stack-navigator.macos.native.js +33 -0
- package/dist/cjs/layouts/stack-navigator.macos.native.js.map +1 -0
- package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.linux.cjs +18 -0
- package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.linux.native.cjs +20 -0
- package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.linux.native.js +22 -0
- package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.linux.native.js.map +1 -0
- package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.macos.cjs +30 -0
- package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.macos.native.cjs +33 -0
- package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.macos.native.js +35 -0
- package/dist/cjs/layouts/stack-utils/StackToolbarBottomHost.macos.native.js.map +1 -0
- package/dist/cjs/link/Link.cjs +4 -3
- package/dist/cjs/link/Link.native.cjs +4 -3
- package/dist/cjs/link/Link.native.js +4 -3
- package/dist/cjs/link/Link.native.js.map +1 -1
- package/dist/cjs/loaderResponseToModule.cjs +41 -0
- package/dist/cjs/loaderResponseToModule.native.cjs +44 -0
- package/dist/cjs/loaderResponseToModule.native.js +46 -0
- package/dist/cjs/loaderResponseToModule.native.js.map +1 -0
- package/dist/cjs/loaderSearchParams.cjs +99 -0
- package/dist/cjs/loaderSearchParams.native.cjs +139 -0
- package/dist/cjs/loaderSearchParams.native.js +141 -0
- package/dist/cjs/loaderSearchParams.native.js.map +1 -0
- package/dist/cjs/one-shared.cjs +129 -0
- package/dist/cjs/one-shared.native.cjs +132 -0
- package/dist/cjs/one-shared.native.js +134 -0
- package/dist/cjs/one-shared.native.js.map +1 -0
- package/dist/cjs/one.cjs +2 -113
- package/dist/cjs/one.linux.cjs +57 -0
- package/dist/cjs/one.linux.native.cjs +59 -0
- package/dist/cjs/one.linux.native.js +61 -0
- package/dist/cjs/one.linux.native.js.map +1 -0
- package/dist/cjs/one.macos.cjs +45 -0
- package/dist/cjs/one.macos.native.cjs +47 -0
- package/dist/cjs/one.macos.native.js +49 -0
- package/dist/cjs/one.macos.native.js.map +1 -0
- package/dist/cjs/one.native.cjs +2 -114
- package/dist/cjs/one.native.js +2 -114
- package/dist/cjs/one.native.js.map +1 -1
- package/dist/cjs/platform/adaptive/fixed.cjs +48 -0
- package/dist/cjs/platform/adaptive/fixed.native.cjs +50 -0
- package/dist/cjs/platform/adaptive/fixed.native.js +52 -0
- package/dist/cjs/platform/adaptive/fixed.native.js.map +1 -0
- package/dist/cjs/platform/adaptive/index.cjs +2 -24
- package/dist/cjs/platform/adaptive/index.linux.cjs +18 -0
- package/dist/cjs/platform/adaptive/index.linux.native.cjs +20 -0
- package/dist/cjs/platform/adaptive/index.linux.native.js +22 -0
- package/dist/cjs/platform/adaptive/index.linux.native.js.map +1 -0
- package/dist/cjs/platform/adaptive/index.macos.cjs +39 -0
- package/dist/cjs/platform/adaptive/index.macos.native.cjs +41 -0
- package/dist/cjs/platform/adaptive/index.macos.native.js +43 -0
- package/dist/cjs/platform/adaptive/index.macos.native.js.map +1 -0
- package/dist/cjs/platform/controlTypes.cjs +16 -0
- package/dist/cjs/platform/controlTypes.native.cjs +18 -0
- package/dist/cjs/platform/controlTypes.native.js +20 -0
- package/dist/cjs/platform/controlTypes.native.js.map +1 -0
- package/dist/cjs/platform/desktop/appCommandTypes.cjs +16 -0
- package/dist/cjs/platform/desktop/appCommandTypes.native.cjs +18 -0
- package/dist/cjs/platform/desktop/appCommandTypes.native.js +20 -0
- package/dist/cjs/platform/desktop/appCommandTypes.native.js.map +1 -0
- package/dist/cjs/platform/desktop/createAppCommands.cjs +55 -0
- package/dist/cjs/platform/desktop/createAppCommands.native.cjs +60 -0
- package/dist/cjs/platform/desktop/createAppCommands.native.js +62 -0
- package/dist/cjs/platform/desktop/createAppCommands.native.js.map +1 -0
- package/dist/cjs/platform/desktop/createControls.cjs +65 -0
- package/dist/cjs/platform/desktop/createControls.native.cjs +69 -0
- package/dist/cjs/platform/desktop/createControls.native.js +71 -0
- package/dist/cjs/platform/desktop/createControls.native.js.map +1 -0
- package/dist/cjs/platform/linux/AppCommands.linux.cjs +25 -0
- package/dist/cjs/platform/linux/AppCommands.linux.native.cjs +27 -0
- package/dist/cjs/platform/linux/AppCommands.linux.native.js +29 -0
- package/dist/cjs/platform/linux/AppCommands.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/Button.linux.cjs +41 -0
- package/dist/cjs/platform/linux/Button.linux.native.cjs +49 -0
- package/dist/cjs/platform/linux/Button.linux.native.js +51 -0
- package/dist/cjs/platform/linux/Button.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/DropDown.linux.cjs +74 -0
- package/dist/cjs/platform/linux/DropDown.linux.native.cjs +91 -0
- package/dist/cjs/platform/linux/DropDown.linux.native.js +93 -0
- package/dist/cjs/platform/linux/DropDown.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/NavigationView.linux.cjs +114 -0
- package/dist/cjs/platform/linux/NavigationView.linux.native.cjs +130 -0
- package/dist/cjs/platform/linux/NavigationView.linux.native.js +132 -0
- package/dist/cjs/platform/linux/NavigationView.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/OneLinuxButtonNativeComponent.cjs +46 -0
- package/dist/cjs/platform/linux/OneLinuxButtonNativeComponent.native.cjs +46 -0
- package/dist/cjs/platform/linux/OneLinuxButtonNativeComponent.native.js +47 -0
- package/dist/cjs/platform/linux/OneLinuxButtonNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxDropDownNativeComponent.cjs +55 -0
- package/dist/cjs/platform/linux/OneLinuxDropDownNativeComponent.native.cjs +55 -0
- package/dist/cjs/platform/linux/OneLinuxDropDownNativeComponent.native.js +56 -0
- package/dist/cjs/platform/linux/OneLinuxDropDownNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxNavigationNativeComponent.cjs +55 -0
- package/dist/cjs/platform/linux/OneLinuxNavigationNativeComponent.native.cjs +55 -0
- package/dist/cjs/platform/linux/OneLinuxNavigationNativeComponent.native.js +56 -0
- package/dist/cjs/platform/linux/OneLinuxNavigationNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxProgressBarNativeComponent.cjs +33 -0
- package/dist/cjs/platform/linux/OneLinuxProgressBarNativeComponent.native.cjs +33 -0
- package/dist/cjs/platform/linux/OneLinuxProgressBarNativeComponent.native.js +34 -0
- package/dist/cjs/platform/linux/OneLinuxProgressBarNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxSecureFieldNativeComponent.cjs +52 -0
- package/dist/cjs/platform/linux/OneLinuxSecureFieldNativeComponent.native.cjs +52 -0
- package/dist/cjs/platform/linux/OneLinuxSecureFieldNativeComponent.native.js +53 -0
- package/dist/cjs/platform/linux/OneLinuxSecureFieldNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxSegmentedControlNativeComponent.cjs +47 -0
- package/dist/cjs/platform/linux/OneLinuxSegmentedControlNativeComponent.native.cjs +47 -0
- package/dist/cjs/platform/linux/OneLinuxSegmentedControlNativeComponent.native.js +48 -0
- package/dist/cjs/platform/linux/OneLinuxSegmentedControlNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxSliderNativeComponent.cjs +57 -0
- package/dist/cjs/platform/linux/OneLinuxSliderNativeComponent.native.cjs +57 -0
- package/dist/cjs/platform/linux/OneLinuxSliderNativeComponent.native.js +58 -0
- package/dist/cjs/platform/linux/OneLinuxSliderNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxStepperNativeComponent.cjs +50 -0
- package/dist/cjs/platform/linux/OneLinuxStepperNativeComponent.native.cjs +50 -0
- package/dist/cjs/platform/linux/OneLinuxStepperNativeComponent.native.js +51 -0
- package/dist/cjs/platform/linux/OneLinuxStepperNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxSwitchNativeComponent.cjs +45 -0
- package/dist/cjs/platform/linux/OneLinuxSwitchNativeComponent.native.cjs +45 -0
- package/dist/cjs/platform/linux/OneLinuxSwitchNativeComponent.native.js +46 -0
- package/dist/cjs/platform/linux/OneLinuxSwitchNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxTextFieldNativeComponent.cjs +52 -0
- package/dist/cjs/platform/linux/OneLinuxTextFieldNativeComponent.native.cjs +52 -0
- package/dist/cjs/platform/linux/OneLinuxTextFieldNativeComponent.native.js +53 -0
- package/dist/cjs/platform/linux/OneLinuxTextFieldNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/OneLinuxToggleNativeComponent.cjs +47 -0
- package/dist/cjs/platform/linux/OneLinuxToggleNativeComponent.native.cjs +47 -0
- package/dist/cjs/platform/linux/OneLinuxToggleNativeComponent.native.js +48 -0
- package/dist/cjs/platform/linux/OneLinuxToggleNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/linux/ProgressBar.linux.cjs +42 -0
- package/dist/cjs/platform/linux/ProgressBar.linux.native.cjs +45 -0
- package/dist/cjs/platform/linux/ProgressBar.linux.native.js +47 -0
- package/dist/cjs/platform/linux/ProgressBar.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/SecureField.linux.cjs +31 -0
- package/dist/cjs/platform/linux/SecureField.linux.native.cjs +33 -0
- package/dist/cjs/platform/linux/SecureField.linux.native.js +35 -0
- package/dist/cjs/platform/linux/SecureField.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/SegmentedControl.linux.cjs +39 -0
- package/dist/cjs/platform/linux/SegmentedControl.linux.native.cjs +49 -0
- package/dist/cjs/platform/linux/SegmentedControl.linux.native.js +51 -0
- package/dist/cjs/platform/linux/SegmentedControl.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/Slider.linux.cjs +71 -0
- package/dist/cjs/platform/linux/Slider.linux.native.cjs +78 -0
- package/dist/cjs/platform/linux/Slider.linux.native.js +80 -0
- package/dist/cjs/platform/linux/Slider.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/Stepper.linux.cjs +57 -0
- package/dist/cjs/platform/linux/Stepper.linux.native.cjs +62 -0
- package/dist/cjs/platform/linux/Stepper.linux.native.js +64 -0
- package/dist/cjs/platform/linux/Stepper.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/Switch.linux.cjs +47 -0
- package/dist/cjs/platform/linux/Switch.linux.native.cjs +52 -0
- package/dist/cjs/platform/linux/Switch.linux.native.js +54 -0
- package/dist/cjs/platform/linux/Switch.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/TextField.linux.cjs +59 -0
- package/dist/cjs/platform/linux/TextField.linux.native.cjs +68 -0
- package/dist/cjs/platform/linux/TextField.linux.native.js +70 -0
- package/dist/cjs/platform/linux/TextField.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/Toggle.linux.cjs +40 -0
- package/dist/cjs/platform/linux/Toggle.linux.native.cjs +50 -0
- package/dist/cjs/platform/linux/Toggle.linux.native.js +52 -0
- package/dist/cjs/platform/linux/Toggle.linux.native.js.map +1 -0
- package/dist/cjs/platform/linux/Window.linux.cjs +27 -0
- package/dist/cjs/platform/linux/Window.linux.native.cjs +29 -0
- package/dist/cjs/platform/linux/Window.linux.native.js +31 -0
- package/dist/cjs/platform/linux/Window.linux.native.js.map +1 -0
- package/dist/cjs/platform/mac/AppCommands.macos.cjs +25 -0
- package/dist/cjs/platform/mac/AppCommands.macos.native.cjs +27 -0
- package/dist/cjs/platform/mac/AppCommands.macos.native.js +29 -0
- package/dist/cjs/platform/mac/AppCommands.macos.native.js.map +1 -0
- package/dist/cjs/platform/mac/Button.macos.cjs +35 -0
- package/dist/cjs/platform/mac/Button.macos.native.cjs +40 -0
- package/dist/cjs/platform/mac/Button.macos.native.js +42 -0
- package/dist/cjs/platform/mac/Button.macos.native.js.map +1 -0
- package/dist/cjs/platform/mac/Image.macos.cjs +48 -0
- package/dist/cjs/platform/mac/Image.macos.native.cjs +51 -0
- package/dist/cjs/platform/mac/Image.macos.native.js +53 -0
- package/dist/cjs/platform/mac/Image.macos.native.js.map +1 -0
- package/dist/cjs/platform/mac/OneMacButtonNativeComponent.cjs +47 -0
- package/dist/cjs/platform/mac/OneMacButtonNativeComponent.native.cjs +47 -0
- package/dist/cjs/platform/mac/OneMacButtonNativeComponent.native.js +48 -0
- package/dist/cjs/platform/mac/OneMacButtonNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/mac/OneMacImageNativeComponent.cjs +35 -0
- package/dist/cjs/platform/mac/OneMacImageNativeComponent.native.cjs +35 -0
- package/dist/cjs/platform/mac/OneMacImageNativeComponent.native.js +36 -0
- package/dist/cjs/platform/mac/OneMacImageNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/mac/OneMacPopUpButtonNativeComponent.cjs +47 -0
- package/dist/cjs/platform/mac/OneMacPopUpButtonNativeComponent.native.cjs +47 -0
- package/dist/cjs/platform/mac/OneMacPopUpButtonNativeComponent.native.js +48 -0
- package/dist/cjs/platform/mac/OneMacPopUpButtonNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/mac/OneMacSegmentedControlNativeComponent.cjs +48 -0
- package/dist/cjs/platform/mac/OneMacSegmentedControlNativeComponent.native.cjs +48 -0
- package/dist/cjs/platform/mac/OneMacSegmentedControlNativeComponent.native.js +49 -0
- package/dist/cjs/platform/mac/OneMacSegmentedControlNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/mac/OneMacToggleNativeComponent.cjs +46 -0
- package/dist/cjs/platform/mac/OneMacToggleNativeComponent.native.cjs +46 -0
- package/dist/cjs/platform/mac/OneMacToggleNativeComponent.native.js +47 -0
- package/dist/cjs/platform/mac/OneMacToggleNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/mac/PopUpButton.macos.cjs +51 -0
- package/dist/cjs/platform/mac/PopUpButton.macos.native.cjs +56 -0
- package/dist/cjs/platform/mac/PopUpButton.macos.native.js +58 -0
- package/dist/cjs/platform/mac/PopUpButton.macos.native.js.map +1 -0
- package/dist/cjs/platform/mac/SegmentedControl.macos.cjs +38 -0
- package/dist/cjs/platform/mac/SegmentedControl.macos.native.cjs +47 -0
- package/dist/cjs/platform/mac/SegmentedControl.macos.native.js +49 -0
- package/dist/cjs/platform/mac/SegmentedControl.macos.native.js.map +1 -0
- package/dist/cjs/platform/mac/Toggle.macos.cjs +38 -0
- package/dist/cjs/platform/mac/Toggle.macos.native.cjs +47 -0
- package/dist/cjs/platform/mac/Toggle.macos.native.js +49 -0
- package/dist/cjs/platform/mac/Toggle.macos.native.js.map +1 -0
- package/dist/cjs/platform/specs/OneDOMHostNativeComponent.cjs +71 -0
- package/dist/cjs/platform/specs/OneDOMHostNativeComponent.native.cjs +71 -0
- package/dist/cjs/platform/specs/OneDOMHostNativeComponent.native.js +72 -0
- package/dist/cjs/platform/specs/OneDOMHostNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/split-view/split-view.linux.cjs +18 -0
- package/dist/cjs/platform/split-view/split-view.linux.native.cjs +20 -0
- package/dist/cjs/platform/split-view/split-view.linux.native.js +22 -0
- package/dist/cjs/platform/split-view/split-view.linux.native.js.map +1 -0
- package/dist/cjs/platform/split-view/split-view.macos.cjs +34 -0
- package/dist/cjs/platform/split-view/split-view.macos.native.cjs +37 -0
- package/dist/cjs/platform/split-view/split-view.macos.native.js +39 -0
- package/dist/cjs/platform/split-view/split-view.macos.native.js.map +1 -0
- package/dist/cjs/platform/store-review/index.native.cjs +1 -1
- package/dist/cjs/platform/store-review/index.native.js +1 -1
- package/dist/cjs/platform/store-review/index.native.js.map +1 -1
- package/dist/cjs/platform/ui/Image.linux.cjs +18 -0
- package/dist/cjs/platform/ui/Image.linux.native.cjs +20 -0
- package/dist/cjs/platform/ui/Image.linux.native.js +22 -0
- package/dist/cjs/platform/ui/Image.linux.native.js.map +1 -0
- package/dist/cjs/platform/ui/Image.macos.cjs +33 -0
- package/dist/cjs/platform/ui/Image.macos.native.cjs +36 -0
- package/dist/cjs/platform/ui/Image.macos.native.js +38 -0
- package/dist/cjs/platform/ui/Image.macos.native.js.map +1 -0
- package/dist/cjs/router/getRoutes.cjs +2 -0
- package/dist/cjs/router/getRoutes.native.cjs +2 -0
- package/dist/cjs/router/getRoutes.native.js +2 -0
- package/dist/cjs/router/getRoutes.native.js.map +1 -1
- package/dist/cjs/router/router.cjs +57 -31
- package/dist/cjs/router/router.native.cjs +20 -4
- package/dist/cjs/router/router.native.js +20 -4
- package/dist/cjs/router/router.native.js.map +1 -1
- package/dist/cjs/searchParams.cjs +102 -0
- package/dist/cjs/searchParams.native.cjs +194 -0
- package/dist/cjs/searchParams.native.js +196 -0
- package/dist/cjs/searchParams.native.js.map +1 -0
- package/dist/cjs/server/oneServe.cjs +15 -3
- package/dist/cjs/server/oneServe.native.cjs +16 -3
- package/dist/cjs/server/oneServe.native.js +16 -3
- package/dist/cjs/server/oneServe.native.js.map +1 -1
- package/dist/cjs/server/workerHandler.cjs +16 -3
- package/dist/cjs/server/workerHandler.native.cjs +17 -3
- package/dist/cjs/server/workerHandler.native.js +17 -3
- package/dist/cjs/server/workerHandler.native.js.map +1 -1
- package/dist/cjs/standardSchema.cjs +36 -0
- package/dist/cjs/standardSchema.native.cjs +39 -0
- package/dist/cjs/standardSchema.native.js +41 -0
- package/dist/cjs/standardSchema.native.js.map +1 -0
- package/dist/cjs/typed-routes/generateRouteTypes.cjs +26 -1
- package/dist/cjs/typed-routes/generateRouteTypes.native.cjs +68 -1
- package/dist/cjs/typed-routes/generateRouteTypes.native.js +68 -1
- package/dist/cjs/typed-routes/generateRouteTypes.native.js.map +1 -1
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.cjs +27 -10
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.cjs +35 -9
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.js +35 -9
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.js.map +1 -1
- package/dist/cjs/typed-routes/searchParamSchemas.cjs +316 -0
- package/dist/cjs/typed-routes/searchParamSchemas.native.cjs +527 -0
- package/dist/cjs/typed-routes/searchParamSchemas.native.js +529 -0
- package/dist/cjs/typed-routes/searchParamSchemas.native.js.map +1 -0
- package/dist/cjs/typed-routes/searchSchemaEntries.cjs +34 -0
- package/dist/cjs/typed-routes/searchSchemaEntries.native.cjs +38 -0
- package/dist/cjs/typed-routes/searchSchemaEntries.native.js +40 -0
- package/dist/cjs/typed-routes/searchSchemaEntries.native.js.map +1 -0
- package/dist/cjs/useLoader.cjs +40 -30
- package/dist/cjs/useLoader.native.cjs +51 -37
- package/dist/cjs/useLoader.native.js +51 -37
- package/dist/cjs/useLoader.native.js.map +1 -1
- package/dist/cjs/utils/cleanUrl.cjs +31 -3
- package/dist/cjs/utils/cleanUrl.native.cjs +31 -3
- package/dist/cjs/utils/cleanUrl.native.js +31 -3
- package/dist/cjs/utils/cleanUrl.native.js.map +1 -1
- package/dist/cjs/validateParams.cjs +3 -5
- package/dist/cjs/validateParams.native.cjs +3 -6
- package/dist/cjs/validateParams.native.js +3 -6
- package/dist/cjs/validateParams.native.js.map +1 -1
- package/dist/cjs/{validateSearch.cjs → validateSearchParams.cjs} +21 -14
- package/dist/cjs/{validateSearch.native.cjs → validateSearchParams.native.cjs} +21 -15
- package/dist/cjs/{validateSearch.native.js → validateSearchParams.native.js} +22 -16
- package/dist/cjs/validateSearchParams.native.js.map +1 -0
- package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.cjs +36 -2
- package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.native.cjs +36 -2
- package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.native.js +36 -2
- package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.native.js.map +1 -1
- package/dist/cjs/vite/dom/browser.cjs +172 -0
- package/dist/cjs/vite/dom/browser.native.cjs +220 -0
- package/dist/cjs/vite/dom/browser.native.js +222 -0
- package/dist/cjs/vite/dom/browser.native.js.map +1 -0
- package/dist/cjs/vite/dom/directive.cjs +76 -0
- package/dist/cjs/vite/dom/directive.native.cjs +135 -0
- package/dist/cjs/vite/dom/directive.native.js +137 -0
- package/dist/cjs/vite/dom/directive.native.js.map +1 -0
- package/dist/cjs/vite/dom/registry.cjs +71 -0
- package/dist/cjs/vite/dom/registry.native.cjs +184 -0
- package/dist/cjs/vite/dom/registry.native.js +186 -0
- package/dist/cjs/vite/dom/registry.native.js.map +1 -0
- package/dist/cjs/vite/one.cjs +28 -3
- package/dist/cjs/vite/one.native.cjs +35 -10
- package/dist/cjs/vite/one.native.js +35 -10
- package/dist/cjs/vite/one.native.js.map +1 -1
- package/dist/cjs/vite/plugins/clientTreeShakePlugin.cjs +1 -1
- package/dist/cjs/vite/plugins/clientTreeShakePlugin.native.cjs +1 -1
- package/dist/cjs/vite/plugins/clientTreeShakePlugin.native.js +1 -1
- package/dist/cjs/vite/plugins/clientTreeShakePlugin.native.js.map +1 -1
- package/dist/cjs/vite/plugins/environmentGuardPlugin.cjs +6 -1
- package/dist/cjs/vite/plugins/environmentGuardPlugin.native.cjs +6 -1
- package/dist/cjs/vite/plugins/environmentGuardPlugin.native.js +6 -1
- package/dist/cjs/vite/plugins/environmentGuardPlugin.native.js.map +1 -1
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.cjs +14 -9
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.cjs +16 -9
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js +16 -9
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
- package/dist/cjs/vite/plugins/generateFileSystemRouteTypesPlugin.cjs +8 -2
- package/dist/cjs/vite/plugins/generateFileSystemRouteTypesPlugin.native.cjs +8 -2
- package/dist/cjs/vite/plugins/generateFileSystemRouteTypesPlugin.native.js +8 -2
- package/dist/cjs/vite/plugins/generateFileSystemRouteTypesPlugin.native.js.map +1 -1
- package/dist/cjs/vite/plugins/iosLinkSetPlugin.cjs +63 -0
- package/dist/cjs/vite/plugins/iosLinkSetPlugin.native.cjs +69 -0
- package/dist/cjs/vite/plugins/iosLinkSetPlugin.native.js +71 -0
- package/dist/cjs/vite/plugins/iosLinkSetPlugin.native.js.map +1 -0
- package/dist/cjs/vite/plugins/loaderSearchSchemasPlugin.cjs +67 -0
- package/dist/cjs/vite/plugins/loaderSearchSchemasPlugin.native.cjs +107 -0
- package/dist/cjs/vite/plugins/loaderSearchSchemasPlugin.native.js +109 -0
- package/dist/cjs/vite/plugins/loaderSearchSchemasPlugin.native.js.map +1 -0
- package/dist/cjs/vite/plugins/useDomPlugin.cjs +128 -22
- package/dist/cjs/vite/plugins/useDomPlugin.native.cjs +160 -22
- package/dist/cjs/vite/plugins/useDomPlugin.native.js +160 -22
- package/dist/cjs/vite/plugins/useDomPlugin.native.js.map +1 -1
- package/dist/esm/cli/iosLinkSet.mjs +83 -0
- package/dist/esm/cli/iosLinkSet.mjs.map +1 -0
- package/dist/esm/cli/iosLinkSet.native.js +90 -0
- package/dist/esm/cli/iosLinkSet.native.js.map +1 -0
- package/dist/esm/cli/iosLinkSetAnalysis.mjs +303 -0
- package/dist/esm/cli/iosLinkSetAnalysis.mjs.map +1 -0
- package/dist/esm/cli/iosLinkSetAnalysis.native.js +686 -0
- package/dist/esm/cli/iosLinkSetAnalysis.native.js.map +1 -0
- package/dist/esm/cli/prebuild.mjs +5 -1
- package/dist/esm/cli/prebuild.mjs.map +1 -1
- package/dist/esm/cli/prebuild.native.js +4 -2
- package/dist/esm/cli/prebuild.native.js.map +1 -1
- package/dist/esm/cli/updatesPublish.mjs +15 -11
- package/dist/esm/cli/updatesPublish.mjs.map +1 -1
- package/dist/esm/cli/updatesPublish.native.js +44 -21
- package/dist/esm/cli/updatesPublish.native.js.map +1 -1
- package/dist/esm/cli.mjs +4 -2
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +4 -2
- package/dist/esm/cli.native.js.map +1 -1
- package/dist/esm/createApp.mjs +8 -0
- package/dist/esm/createApp.mjs.map +1 -1
- package/dist/esm/createHandleRequest.mjs +4 -17
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +6 -19
- package/dist/esm/createHandleRequest.native.js.map +1 -1
- package/dist/esm/dom/browserBridge.mjs +158 -0
- package/dist/esm/dom/browserBridge.mjs.map +1 -0
- package/dist/esm/dom/browserBridge.native.js +269 -0
- package/dist/esm/dom/browserBridge.native.js.map +1 -0
- package/dist/esm/dom/client.mjs +49 -0
- package/dist/esm/dom/client.mjs.map +1 -0
- package/dist/esm/dom/client.native.js +59 -0
- package/dist/esm/dom/client.native.js.map +1 -0
- package/dist/esm/dom/context.mjs +6 -0
- package/dist/esm/dom/context.mjs.map +1 -0
- package/dist/esm/dom/context.native.js +6 -0
- package/dist/esm/dom/context.native.js.map +1 -0
- package/dist/esm/dom/host.native.js +125 -0
- package/dist/esm/dom/host.native.js.map +1 -0
- package/dist/esm/dom/index.mjs +69 -0
- package/dist/esm/dom/index.mjs.map +1 -0
- package/dist/esm/dom/index.native.js +115 -0
- package/dist/esm/dom/index.native.js.map +1 -0
- package/dist/esm/dom/measure.mjs +31 -0
- package/dist/esm/dom/measure.mjs.map +1 -0
- package/dist/esm/dom/measure.native.js +33 -0
- package/dist/esm/dom/measure.native.js.map +1 -0
- package/dist/esm/dom/nativeBridge.mjs +116 -0
- package/dist/esm/dom/nativeBridge.mjs.map +1 -0
- package/dist/esm/dom/nativeBridge.native.js +202 -0
- package/dist/esm/dom/nativeBridge.native.js.map +1 -0
- package/dist/esm/dom/peer.mjs +129 -0
- package/dist/esm/dom/peer.mjs.map +1 -0
- package/dist/esm/dom/peer.native.js +206 -0
- package/dist/esm/dom/peer.native.js.map +1 -0
- package/dist/esm/dom/protocol.mjs +162 -0
- package/dist/esm/dom/protocol.mjs.map +1 -0
- package/dist/esm/dom/protocol.native.js +184 -0
- package/dist/esm/dom/protocol.native.js.map +1 -0
- package/dist/esm/dom/serialize.mjs +114 -0
- package/dist/esm/dom/serialize.mjs.map +1 -0
- package/dist/esm/dom/serialize.native.js +256 -0
- package/dist/esm/dom/serialize.native.js.map +1 -0
- package/dist/esm/dom/types.mjs +0 -0
- package/dist/esm/dom/types.native.js +0 -0
- package/dist/esm/fork/getPathFromState.mjs +9 -1
- package/dist/esm/fork/getPathFromState.mjs.map +1 -1
- package/dist/esm/fork/getPathFromState.native.js +48 -4
- package/dist/esm/fork/getPathFromState.native.js.map +1 -1
- package/dist/esm/hooks.mjs +51 -2
- package/dist/esm/hooks.mjs.map +1 -1
- package/dist/esm/hooks.native.js +56 -3
- package/dist/esm/hooks.native.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.native.js +2 -1
- package/dist/esm/layouts/Tabs.linux.mjs +26 -0
- package/dist/esm/layouts/Tabs.linux.mjs.map +1 -0
- package/dist/esm/layouts/Tabs.linux.native.js +26 -0
- package/dist/esm/layouts/Tabs.linux.native.js.map +1 -0
- package/dist/esm/layouts/stack-navigator-desktop.mjs +6 -0
- package/dist/esm/layouts/stack-navigator-desktop.mjs.map +1 -0
- package/dist/esm/layouts/stack-navigator-desktop.native.js +6 -0
- package/dist/esm/layouts/stack-navigator-desktop.native.js.map +1 -0
- package/dist/esm/layouts/stack-navigator.linux.mjs +17 -0
- package/dist/esm/layouts/stack-navigator.linux.mjs.map +1 -0
- package/dist/esm/layouts/stack-navigator.linux.native.js +17 -0
- package/dist/esm/layouts/stack-navigator.linux.native.js.map +1 -0
- package/dist/esm/layouts/stack-navigator.macos.mjs +7 -0
- package/dist/esm/layouts/stack-navigator.macos.mjs.map +1 -0
- package/dist/esm/layouts/stack-navigator.macos.native.js +7 -0
- package/dist/esm/layouts/stack-navigator.macos.native.js.map +1 -0
- package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.linux.mjs +1 -0
- package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.linux.native.js +1 -0
- package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.macos.mjs +11 -0
- package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.macos.mjs.map +1 -0
- package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.macos.native.js +12 -0
- package/dist/esm/layouts/stack-utils/StackToolbarBottomHost.macos.native.js.map +1 -0
- package/dist/esm/link/Link.mjs +4 -3
- package/dist/esm/link/Link.mjs.map +1 -1
- package/dist/esm/link/Link.native.js +4 -3
- package/dist/esm/link/Link.native.js.map +1 -1
- package/dist/esm/loaderResponseToModule.mjs +21 -0
- package/dist/esm/loaderResponseToModule.mjs.map +1 -0
- package/dist/esm/loaderResponseToModule.native.js +22 -0
- package/dist/esm/loaderResponseToModule.native.js.map +1 -0
- package/dist/esm/loaderSearchParams.mjs +76 -0
- package/dist/esm/loaderSearchParams.mjs.map +1 -0
- package/dist/esm/loaderSearchParams.native.js +114 -0
- package/dist/esm/loaderSearchParams.native.js.map +1 -0
- package/dist/esm/one-shared.mjs +110 -0
- package/dist/esm/one-shared.mjs.map +1 -0
- package/dist/esm/one-shared.native.js +111 -0
- package/dist/esm/one-shared.native.js.map +1 -0
- package/dist/esm/one.linux.mjs +38 -0
- package/dist/esm/one.linux.mjs.map +1 -0
- package/dist/esm/one.linux.native.js +38 -0
- package/dist/esm/one.linux.native.js.map +1 -0
- package/dist/esm/one.macos.mjs +26 -0
- package/dist/esm/one.macos.mjs.map +1 -0
- package/dist/esm/one.macos.native.js +26 -0
- package/dist/esm/one.macos.native.js.map +1 -0
- package/dist/esm/one.mjs +1 -110
- package/dist/esm/one.native.js +1 -111
- package/dist/esm/platform/adaptive/fixed.mjs +22 -0
- package/dist/esm/platform/adaptive/fixed.mjs.map +1 -0
- package/dist/esm/platform/adaptive/fixed.native.js +22 -0
- package/dist/esm/platform/adaptive/fixed.native.js.map +1 -0
- package/dist/esm/platform/adaptive/index.linux.mjs +1 -0
- package/dist/esm/platform/adaptive/index.linux.native.js +1 -0
- package/dist/esm/platform/adaptive/index.macos.mjs +6 -0
- package/dist/esm/platform/adaptive/index.macos.native.js +6 -0
- package/dist/esm/platform/adaptive/index.mjs +2 -21
- package/dist/esm/platform/controlTypes.mjs +0 -0
- package/dist/esm/platform/controlTypes.native.js +0 -0
- package/dist/esm/platform/desktop/appCommandTypes.mjs +0 -0
- package/dist/esm/platform/desktop/appCommandTypes.native.js +0 -0
- package/dist/esm/platform/desktop/createAppCommands.mjs +36 -0
- package/dist/esm/platform/desktop/createAppCommands.mjs.map +1 -0
- package/dist/esm/platform/desktop/createAppCommands.native.js +39 -0
- package/dist/esm/platform/desktop/createAppCommands.native.js.map +1 -0
- package/dist/esm/platform/desktop/createControls.mjs +42 -0
- package/dist/esm/platform/desktop/createControls.mjs.map +1 -0
- package/dist/esm/platform/desktop/createControls.native.js +44 -0
- package/dist/esm/platform/desktop/createControls.native.js.map +1 -0
- package/dist/esm/platform/linux/AppCommands.linux.mjs +6 -0
- package/dist/esm/platform/linux/AppCommands.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/AppCommands.linux.native.js +6 -0
- package/dist/esm/platform/linux/AppCommands.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/Button.linux.mjs +16 -0
- package/dist/esm/platform/linux/Button.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/Button.linux.native.js +22 -0
- package/dist/esm/platform/linux/Button.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/DropDown.linux.mjs +49 -0
- package/dist/esm/platform/linux/DropDown.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/DropDown.linux.native.js +64 -0
- package/dist/esm/platform/linux/DropDown.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/NavigationView.linux.mjs +89 -0
- package/dist/esm/platform/linux/NavigationView.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/NavigationView.linux.native.js +103 -0
- package/dist/esm/platform/linux/NavigationView.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/OneLinuxButtonNativeComponent.mjs +28 -0
- package/dist/esm/platform/linux/OneLinuxButtonNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxButtonNativeComponent.native.js +28 -0
- package/dist/esm/platform/linux/OneLinuxButtonNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxDropDownNativeComponent.mjs +37 -0
- package/dist/esm/platform/linux/OneLinuxDropDownNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxDropDownNativeComponent.native.js +37 -0
- package/dist/esm/platform/linux/OneLinuxDropDownNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxNavigationNativeComponent.mjs +37 -0
- package/dist/esm/platform/linux/OneLinuxNavigationNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxNavigationNativeComponent.native.js +37 -0
- package/dist/esm/platform/linux/OneLinuxNavigationNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxProgressBarNativeComponent.mjs +15 -0
- package/dist/esm/platform/linux/OneLinuxProgressBarNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxProgressBarNativeComponent.native.js +15 -0
- package/dist/esm/platform/linux/OneLinuxProgressBarNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxSecureFieldNativeComponent.mjs +34 -0
- package/dist/esm/platform/linux/OneLinuxSecureFieldNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxSecureFieldNativeComponent.native.js +34 -0
- package/dist/esm/platform/linux/OneLinuxSecureFieldNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxSegmentedControlNativeComponent.mjs +29 -0
- package/dist/esm/platform/linux/OneLinuxSegmentedControlNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxSegmentedControlNativeComponent.native.js +29 -0
- package/dist/esm/platform/linux/OneLinuxSegmentedControlNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxSliderNativeComponent.mjs +39 -0
- package/dist/esm/platform/linux/OneLinuxSliderNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxSliderNativeComponent.native.js +39 -0
- package/dist/esm/platform/linux/OneLinuxSliderNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxStepperNativeComponent.mjs +32 -0
- package/dist/esm/platform/linux/OneLinuxStepperNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxStepperNativeComponent.native.js +32 -0
- package/dist/esm/platform/linux/OneLinuxStepperNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxSwitchNativeComponent.mjs +27 -0
- package/dist/esm/platform/linux/OneLinuxSwitchNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxSwitchNativeComponent.native.js +27 -0
- package/dist/esm/platform/linux/OneLinuxSwitchNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxTextFieldNativeComponent.mjs +34 -0
- package/dist/esm/platform/linux/OneLinuxTextFieldNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxTextFieldNativeComponent.native.js +34 -0
- package/dist/esm/platform/linux/OneLinuxTextFieldNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/OneLinuxToggleNativeComponent.mjs +29 -0
- package/dist/esm/platform/linux/OneLinuxToggleNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/linux/OneLinuxToggleNativeComponent.native.js +29 -0
- package/dist/esm/platform/linux/OneLinuxToggleNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/linux/ProgressBar.linux.mjs +17 -0
- package/dist/esm/platform/linux/ProgressBar.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/ProgressBar.linux.native.js +18 -0
- package/dist/esm/platform/linux/ProgressBar.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/SecureField.linux.mjs +12 -0
- package/dist/esm/platform/linux/SecureField.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/SecureField.linux.native.js +12 -0
- package/dist/esm/platform/linux/SecureField.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/SegmentedControl.linux.mjs +14 -0
- package/dist/esm/platform/linux/SegmentedControl.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/SegmentedControl.linux.native.js +22 -0
- package/dist/esm/platform/linux/SegmentedControl.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/Slider.linux.mjs +46 -0
- package/dist/esm/platform/linux/Slider.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/Slider.linux.native.js +51 -0
- package/dist/esm/platform/linux/Slider.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/Stepper.linux.mjs +32 -0
- package/dist/esm/platform/linux/Stepper.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/Stepper.linux.native.js +35 -0
- package/dist/esm/platform/linux/Stepper.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/Switch.linux.mjs +22 -0
- package/dist/esm/platform/linux/Switch.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/Switch.linux.native.js +25 -0
- package/dist/esm/platform/linux/Switch.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/TextField.linux.mjs +31 -0
- package/dist/esm/platform/linux/TextField.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/TextField.linux.native.js +38 -0
- package/dist/esm/platform/linux/TextField.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/Toggle.linux.mjs +15 -0
- package/dist/esm/platform/linux/Toggle.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/Toggle.linux.native.js +23 -0
- package/dist/esm/platform/linux/Toggle.linux.native.js.map +1 -0
- package/dist/esm/platform/linux/Window.linux.mjs +8 -0
- package/dist/esm/platform/linux/Window.linux.mjs.map +1 -0
- package/dist/esm/platform/linux/Window.linux.native.js +8 -0
- package/dist/esm/platform/linux/Window.linux.native.js.map +1 -0
- package/dist/esm/platform/mac/AppCommands.macos.mjs +6 -0
- package/dist/esm/platform/mac/AppCommands.macos.mjs.map +1 -0
- package/dist/esm/platform/mac/AppCommands.macos.native.js +6 -0
- package/dist/esm/platform/mac/AppCommands.macos.native.js.map +1 -0
- package/dist/esm/platform/mac/Button.macos.mjs +10 -0
- package/dist/esm/platform/mac/Button.macos.mjs.map +1 -0
- package/dist/esm/platform/mac/Button.macos.native.js +13 -0
- package/dist/esm/platform/mac/Button.macos.native.js.map +1 -0
- package/dist/esm/platform/mac/Image.macos.mjs +23 -0
- package/dist/esm/platform/mac/Image.macos.mjs.map +1 -0
- package/dist/esm/platform/mac/Image.macos.native.js +24 -0
- package/dist/esm/platform/mac/Image.macos.native.js.map +1 -0
- package/dist/esm/platform/mac/OneMacButtonNativeComponent.mjs +29 -0
- package/dist/esm/platform/mac/OneMacButtonNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/mac/OneMacButtonNativeComponent.native.js +29 -0
- package/dist/esm/platform/mac/OneMacButtonNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/mac/OneMacImageNativeComponent.mjs +17 -0
- package/dist/esm/platform/mac/OneMacImageNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/mac/OneMacImageNativeComponent.native.js +17 -0
- package/dist/esm/platform/mac/OneMacImageNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/mac/OneMacPopUpButtonNativeComponent.mjs +29 -0
- package/dist/esm/platform/mac/OneMacPopUpButtonNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/mac/OneMacPopUpButtonNativeComponent.native.js +29 -0
- package/dist/esm/platform/mac/OneMacPopUpButtonNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/mac/OneMacSegmentedControlNativeComponent.mjs +30 -0
- package/dist/esm/platform/mac/OneMacSegmentedControlNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/mac/OneMacSegmentedControlNativeComponent.native.js +30 -0
- package/dist/esm/platform/mac/OneMacSegmentedControlNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/mac/OneMacToggleNativeComponent.mjs +28 -0
- package/dist/esm/platform/mac/OneMacToggleNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/mac/OneMacToggleNativeComponent.native.js +28 -0
- package/dist/esm/platform/mac/OneMacToggleNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/mac/PopUpButton.macos.mjs +26 -0
- package/dist/esm/platform/mac/PopUpButton.macos.mjs.map +1 -0
- package/dist/esm/platform/mac/PopUpButton.macos.native.js +29 -0
- package/dist/esm/platform/mac/PopUpButton.macos.native.js.map +1 -0
- package/dist/esm/platform/mac/SegmentedControl.macos.mjs +13 -0
- package/dist/esm/platform/mac/SegmentedControl.macos.mjs.map +1 -0
- package/dist/esm/platform/mac/SegmentedControl.macos.native.js +20 -0
- package/dist/esm/platform/mac/SegmentedControl.macos.native.js.map +1 -0
- package/dist/esm/platform/mac/Toggle.macos.mjs +13 -0
- package/dist/esm/platform/mac/Toggle.macos.mjs.map +1 -0
- package/dist/esm/platform/mac/Toggle.macos.native.js +20 -0
- package/dist/esm/platform/mac/Toggle.macos.native.js.map +1 -0
- package/dist/esm/platform/specs/OneDOMHostNativeComponent.mjs +53 -0
- package/dist/esm/platform/specs/OneDOMHostNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneDOMHostNativeComponent.native.js +53 -0
- package/dist/esm/platform/specs/OneDOMHostNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/split-view/split-view.linux.mjs +1 -0
- package/dist/esm/platform/split-view/split-view.linux.native.js +1 -0
- package/dist/esm/platform/split-view/split-view.macos.mjs +15 -0
- package/dist/esm/platform/split-view/split-view.macos.mjs.map +1 -0
- package/dist/esm/platform/split-view/split-view.macos.native.js +16 -0
- package/dist/esm/platform/split-view/split-view.macos.native.js.map +1 -0
- package/dist/esm/platform/store-review/index.native.js +1 -1
- package/dist/esm/platform/ui/Image.linux.mjs +1 -0
- package/dist/esm/platform/ui/Image.linux.native.js +1 -0
- package/dist/esm/platform/ui/Image.macos.mjs +14 -0
- package/dist/esm/platform/ui/Image.macos.mjs.map +1 -0
- package/dist/esm/platform/ui/Image.macos.native.js +15 -0
- package/dist/esm/platform/ui/Image.macos.native.js.map +1 -0
- package/dist/esm/router/getRoutes.mjs +2 -0
- package/dist/esm/router/getRoutes.mjs.map +1 -1
- package/dist/esm/router/getRoutes.native.js +2 -0
- package/dist/esm/router/getRoutes.native.js.map +1 -1
- package/dist/esm/router/router.mjs +56 -33
- package/dist/esm/router/router.mjs.map +1 -1
- package/dist/esm/router/router.native.js +18 -4
- package/dist/esm/router/router.native.js.map +1 -1
- package/dist/esm/searchParams.mjs +75 -0
- package/dist/esm/searchParams.mjs.map +1 -0
- package/dist/esm/searchParams.native.js +165 -0
- package/dist/esm/searchParams.native.js.map +1 -0
- package/dist/esm/server/oneServe.mjs +15 -3
- package/dist/esm/server/oneServe.mjs.map +1 -1
- package/dist/esm/server/oneServe.native.js +16 -3
- package/dist/esm/server/oneServe.native.js.map +1 -1
- package/dist/esm/server/workerHandler.mjs +16 -3
- package/dist/esm/server/workerHandler.mjs.map +1 -1
- package/dist/esm/server/workerHandler.native.js +17 -3
- package/dist/esm/server/workerHandler.native.js.map +1 -1
- package/dist/esm/standardSchema.mjs +13 -0
- package/dist/esm/standardSchema.mjs.map +1 -0
- package/dist/esm/standardSchema.native.js +14 -0
- package/dist/esm/standardSchema.native.js.map +1 -0
- package/dist/esm/typed-routes/generateRouteTypes.mjs +27 -2
- package/dist/esm/typed-routes/generateRouteTypes.mjs.map +1 -1
- package/dist/esm/typed-routes/generateRouteTypes.native.js +69 -2
- package/dist/esm/typed-routes/generateRouteTypes.native.js.map +1 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.mjs +27 -10
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.mjs.map +1 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +35 -9
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +1 -1
- package/dist/esm/typed-routes/searchParamSchemas.mjs +297 -0
- package/dist/esm/typed-routes/searchParamSchemas.mjs.map +1 -0
- package/dist/esm/typed-routes/searchParamSchemas.native.js +506 -0
- package/dist/esm/typed-routes/searchParamSchemas.native.js.map +1 -0
- package/dist/esm/typed-routes/searchSchemaEntries.mjs +15 -0
- package/dist/esm/typed-routes/searchSchemaEntries.mjs.map +1 -0
- package/dist/esm/typed-routes/searchSchemaEntries.native.js +17 -0
- package/dist/esm/typed-routes/searchSchemaEntries.native.js.map +1 -0
- package/dist/esm/useLoader.mjs +44 -34
- package/dist/esm/useLoader.mjs.map +1 -1
- package/dist/esm/useLoader.native.js +49 -37
- package/dist/esm/useLoader.native.js.map +1 -1
- package/dist/esm/utils/cleanUrl.mjs +25 -3
- package/dist/esm/utils/cleanUrl.mjs.map +1 -1
- package/dist/esm/utils/cleanUrl.native.js +25 -3
- package/dist/esm/utils/cleanUrl.native.js.map +1 -1
- package/dist/esm/validateParams.mjs +3 -4
- package/dist/esm/validateParams.mjs.map +1 -1
- package/dist/esm/validateParams.native.js +3 -5
- package/dist/esm/validateParams.native.js.map +1 -1
- package/dist/esm/{validateSearch.mjs → validateSearchParams.mjs} +18 -11
- package/dist/esm/validateSearchParams.mjs.map +1 -0
- package/dist/esm/{validateSearch.native.js → validateSearchParams.native.js} +18 -12
- package/dist/esm/validateSearchParams.native.js.map +1 -0
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.mjs +36 -2
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.mjs.map +1 -1
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.native.js +36 -2
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.native.js.map +1 -1
- package/dist/esm/vite/dom/browser.mjs +147 -0
- package/dist/esm/vite/dom/browser.mjs.map +1 -0
- package/dist/esm/vite/dom/browser.native.js +193 -0
- package/dist/esm/vite/dom/browser.native.js.map +1 -0
- package/dist/esm/vite/dom/directive.mjs +51 -0
- package/dist/esm/vite/dom/directive.mjs.map +1 -0
- package/dist/esm/vite/dom/directive.native.js +108 -0
- package/dist/esm/vite/dom/directive.native.js.map +1 -0
- package/dist/esm/vite/dom/registry.mjs +52 -0
- package/dist/esm/vite/dom/registry.mjs.map +1 -0
- package/dist/esm/vite/dom/registry.native.js +163 -0
- package/dist/esm/vite/dom/registry.native.js.map +1 -0
- package/dist/esm/vite/one.mjs +28 -3
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +35 -10
- package/dist/esm/vite/one.native.js.map +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.mjs +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.native.js +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.native.js.map +1 -1
- package/dist/esm/vite/plugins/environmentGuardPlugin.mjs +6 -1
- package/dist/esm/vite/plugins/environmentGuardPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/environmentGuardPlugin.native.js +6 -1
- package/dist/esm/vite/plugins/environmentGuardPlugin.native.js.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs +14 -9
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js +16 -9
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
- package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.mjs +8 -2
- package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.native.js +8 -2
- package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.native.js.map +1 -1
- package/dist/esm/vite/plugins/iosLinkSetPlugin.mjs +44 -0
- package/dist/esm/vite/plugins/iosLinkSetPlugin.mjs.map +1 -0
- package/dist/esm/vite/plugins/iosLinkSetPlugin.native.js +48 -0
- package/dist/esm/vite/plugins/iosLinkSetPlugin.native.js.map +1 -0
- package/dist/esm/vite/plugins/loaderSearchSchemasPlugin.mjs +48 -0
- package/dist/esm/vite/plugins/loaderSearchSchemasPlugin.mjs.map +1 -0
- package/dist/esm/vite/plugins/loaderSearchSchemasPlugin.native.js +86 -0
- package/dist/esm/vite/plugins/loaderSearchSchemasPlugin.native.js.map +1 -0
- package/dist/esm/vite/plugins/useDomPlugin.mjs +128 -22
- package/dist/esm/vite/plugins/useDomPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/useDomPlugin.native.js +160 -22
- package/dist/esm/vite/plugins/useDomPlugin.native.js.map +1 -1
- package/env.d.ts +6 -6
- package/ios/DOM/OneDOMHostView.swift +389 -0
- package/ios/DOM/OneDOMResourceHandler.swift +147 -0
- package/ios/DOM/README.md +5 -0
- package/ios/Generated/OneNativeAddPassToWalletButtonComponentView.mm +11 -0
- package/ios/Generated/OneNativeAddPassToWalletButtonView.swift +4 -0
- package/ios/Generated/OneNativeChartComponentView.mm +10 -0
- package/ios/Generated/OneNativeChartView.swift +3 -0
- package/ios/Generated/OneNativeLivePhotoViewComponentView.mm +10 -0
- package/ios/Generated/OneNativeLivePhotoViewView.swift +4 -0
- package/ios/Generated/OneNativePayWithApplePayButtonComponentView.mm +11 -0
- package/ios/Generated/OneNativePayWithApplePayButtonView.swift +4 -0
- package/ios/Generated/OneNativePhotosPickerComponentView.mm +11 -0
- package/ios/Generated/OneNativePhotosPickerView.swift +4 -0
- package/ios/Generated/OneNativeProductViewComponentView.mm +11 -0
- package/ios/Generated/OneNativeProductViewView.swift +4 -0
- package/ios/Generated/OneNativeQuickLookComponentView.mm +10 -0
- package/ios/Generated/OneNativeQuickLookView.swift +4 -0
- package/ios/Generated/OneNativeSignInWithAppleButtonComponentView.mm +11 -0
- package/ios/Generated/OneNativeSignInWithAppleButtonView.swift +4 -0
- package/ios/Generated/OneNativeStoreViewComponentView.mm +11 -0
- package/ios/Generated/OneNativeStoreViewView.swift +4 -0
- package/ios/Generated/OneNativeSubscriptionStoreViewComponentView.mm +11 -0
- package/ios/Generated/OneNativeSubscriptionStoreViewView.swift +3 -0
- package/ios/Generated/OneNativeSwiftUI.swift +10 -0
- package/ios/Generated/OneNativeViewSlots.swift +16 -0
- package/ios/Nitro/HybridOneAppleAuth.swift +2 -0
- package/ios/Nitro/HybridOneBrowser.swift +2 -0
- package/ios/Nitro/HybridOneImagePicker.swift +2 -0
- package/ios/Nitro/HybridOneMailCompose.swift +2 -0
- package/ios/Nitro/HybridOneMessageCompose.swift +2 -0
- package/ios/Nitro/HybridOnePhotoLibrary.swift +10 -0
- package/ios/Nitro/HybridOnePurchases.swift +2 -0
- package/ios/Nitro/HybridOneStoreReview.swift +37 -0
- package/ios/Nitro/OneUpdatesLauncher.swift +24 -0
- package/ios/OneDOMHostComponentView.h +5 -0
- package/ios/OneDOMHostComponentView.mm +85 -0
- package/ios/OneNativeStyle.swift +426 -1
- package/ios-link-set.json +196 -0
- package/linux/cpp/CMakeLists.txt +160 -0
- package/linux/cpp/OneLinuxControlState.h +42 -0
- package/linux/cpp/OneLinuxControls.cpp +53 -0
- package/linux/cpp/OneLinuxControls.h +70 -0
- package/linux/cpp/OneLinuxNavigationComponent.h +86 -0
- package/linux/cpp/compat/OneLinuxStdCompat.h +6 -0
- package/linux/cpp/compat/OneLinuxThreadName.h +7 -0
- package/linux/cpp/deps/CMakeLists.txt +29 -0
- package/linux/cpp/deps/cmake-utils/react-native-flags.cmake +15 -0
- package/linux/cpp/imagemanager/OneLinuxImageManager.cpp +213 -0
- package/linux/cpp/nitro/NitroLinuxPlatform.cpp +67 -0
- package/linux/cpp/textlayoutmanager/OneLinuxText.cpp +258 -0
- package/linux/cpp/textlayoutmanager/OneLinuxText.h +34 -0
- package/linux/cpp/textlayoutmanager/react/renderer/textlayoutmanager/TextLayoutManager.cpp +101 -0
- package/linux/cpp/textlayoutmanager/react/renderer/textlayoutmanager/TextLayoutManager.h +35 -0
- package/linux/host/OneLinuxAppShell.cpp +267 -0
- package/linux/host/OneLinuxAppShell.h +46 -0
- package/linux/host/OneLinuxControl.cpp +515 -0
- package/linux/host/OneLinuxControl.h +23 -0
- package/linux/host/OneLinuxControlledValue.h +51 -0
- package/linux/host/OneLinuxHost.cpp +381 -0
- package/linux/host/OneLinuxHost.h +64 -0
- package/linux/host/OneLinuxModules.cpp +63 -0
- package/linux/host/OneLinuxModules.h +20 -0
- package/linux/host/OneLinuxMountingManager.cpp +747 -0
- package/linux/host/OneLinuxMountingManager.h +86 -0
- package/linux/host/OneLinuxNavigation.cpp +202 -0
- package/linux/host/OneLinuxNavigation.h +45 -0
- package/linux/host/OneLinuxNetwork.cpp +513 -0
- package/linux/host/OneLinuxNetwork.h +31 -0
- package/linux/host/OneLinuxNitro.cpp +24 -0
- package/linux/host/OneLinuxNitro.h +15 -0
- package/linux/host/OneLinuxOpSqlite.cpp +79 -0
- package/linux/host/OneLinuxOpSqlite.h +15 -0
- package/linux/host/OneLinuxPointer.cpp +373 -0
- package/linux/host/OneLinuxPointer.h +57 -0
- package/linux/host/OneLinuxRuntime.cpp +204 -0
- package/linux/host/OneLinuxRuntime.h +80 -0
- package/linux/host/OneLinuxStartup.cpp +58 -0
- package/linux/host/OneLinuxStartup.h +9 -0
- package/linux/host/OneLinuxTextInput.cpp +585 -0
- package/linux/host/OneLinuxTextInput.h +99 -0
- package/linux/host/OneLinuxView.cpp +540 -0
- package/linux/host/OneLinuxView.h +75 -0
- package/linux/host/OneLinuxWorklets.cpp +210 -0
- package/linux/host/OneLinuxWorklets.h +20 -0
- package/linux/host/main.cpp +89 -0
- package/linux/react-native/Libraries/Utilities/Platform.js +22 -0
- package/linux/scripts/build-core.sh +48 -0
- package/linux/scripts/bundle-js.sh +27 -0
- package/linux/scripts/cache.sh +22 -0
- package/linux/scripts/lima-vm.sh +26 -0
- package/linux/scripts/package-app.sh +118 -0
- package/linux/scripts/package-core.sh +20 -0
- package/linux/scripts/prepare-core.sh +54 -0
- package/linux/scripts/prepare-deps.sh +102 -0
- package/linux/scripts/prepare-hermes.sh +64 -0
- package/linux/scripts/prepare-icu.sh +40 -0
- package/linux/scripts/screenshot.sh +67 -0
- package/linux/smoke/main.cpp +228 -0
- package/linux/smoke/smoke.js +1 -0
- package/macos/README.md +170 -0
- package/macos/cpp/.gitkeep +0 -0
- package/macos/cpp/CMakeLists.txt +157 -0
- package/macos/cpp/OneMacButton/OneMacButtonComponentDescriptor.h +11 -0
- package/macos/cpp/OneMacButton/OneMacButtonEventEmitter.cpp +7 -0
- package/macos/cpp/OneMacButton/OneMacButtonEventEmitter.h +11 -0
- package/macos/cpp/OneMacButton/OneMacButtonProps.cpp +11 -0
- package/macos/cpp/OneMacButton/OneMacButtonProps.h +17 -0
- package/macos/cpp/OneMacButton/OneMacButtonShadowNode.h +28 -0
- package/macos/cpp/OneMacButton/OneMacButtonShadowNode.mm +15 -0
- package/macos/cpp/OneMacImage/OneMacImageComponentDescriptor.h +6 -0
- package/macos/cpp/OneMacImage/OneMacImageProps.cpp +11 -0
- package/macos/cpp/OneMacImage/OneMacImageProps.h +14 -0
- package/macos/cpp/OneMacImage/OneMacImageShadowNode.cpp +9 -0
- package/macos/cpp/OneMacImage/OneMacImageShadowNode.h +18 -0
- package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonComponentDescriptor.h +11 -0
- package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonEventEmitter.cpp +7 -0
- package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonEventEmitter.h +14 -0
- package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonProps.cpp +11 -0
- package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonProps.h +17 -0
- package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonShadowNode.h +28 -0
- package/macos/cpp/OneMacPopUpButton/OneMacPopUpButtonShadowNode.mm +16 -0
- package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlComponentDescriptor.h +11 -0
- package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlEventEmitter.cpp +7 -0
- package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlEventEmitter.h +14 -0
- package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlProps.cpp +12 -0
- package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlProps.h +18 -0
- package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlShadowNode.h +28 -0
- package/macos/cpp/OneMacSegmentedControl/OneMacSegmentedControlShadowNode.mm +15 -0
- package/macos/cpp/OneMacToggle/OneMacToggleComponentDescriptor.h +11 -0
- package/macos/cpp/OneMacToggle/OneMacToggleEventEmitter.cpp +13 -0
- package/macos/cpp/OneMacToggle/OneMacToggleEventEmitter.h +20 -0
- package/macos/cpp/OneMacToggle/OneMacToggleProps.cpp +17 -0
- package/macos/cpp/OneMacToggle/OneMacToggleProps.h +23 -0
- package/macos/cpp/OneMacToggle/OneMacToggleShadowNode.h +29 -0
- package/macos/cpp/OneMacToggle/OneMacToggleShadowNode.mm +27 -0
- package/macos/cpp/graphics/react/renderer/graphics/HostPlatformColor.h +129 -0
- package/macos/cpp/graphics/react/renderer/graphics/HostPlatformColor.mm +83 -0
- package/macos/cpp/graphics/react/renderer/graphics/PlatformColorParser.h +20 -0
- package/macos/cpp/graphics/react/renderer/graphics/PlatformColorParser.mm +38 -0
- package/macos/cpp/textlayoutmanager/OneMacosText.h +22 -0
- package/macos/cpp/textlayoutmanager/OneMacosText.mm +207 -0
- package/macos/cpp/textlayoutmanager/react/renderer/textlayoutmanager/TextLayoutManager.h +35 -0
- package/macos/cpp/textlayoutmanager/react/renderer/textlayoutmanager/TextLayoutManager.mm +74 -0
- package/macos/host/.gitkeep +0 -0
- package/macos/host/OneMacosAnimated.mm +91 -0
- package/macos/host/OneMacosAppCommands.h +36 -0
- package/macos/host/OneMacosAppCommands.mm +731 -0
- package/macos/host/OneMacosBlobStore.h +9 -0
- package/macos/host/OneMacosBlobStore.mm +50 -0
- package/macos/host/OneMacosButtonComponentView.h +3 -0
- package/macos/host/OneMacosButtonComponentView.mm +55 -0
- package/macos/host/OneMacosComponentView.h +67 -0
- package/macos/host/OneMacosComponentView.mm +533 -0
- package/macos/host/OneMacosControlsHosting.h +26 -0
- package/macos/host/OneMacosDebug.h +6 -0
- package/macos/host/OneMacosDebug.mm +337 -0
- package/macos/host/OneMacosImageComponentView.h +6 -0
- package/macos/host/OneMacosImageComponentView.mm +245 -0
- package/macos/host/OneMacosImageManager.mm +91 -0
- package/macos/host/OneMacosModules.h +35 -0
- package/macos/host/OneMacosModules.mm +287 -0
- package/macos/host/OneMacosMountingManager.h +36 -0
- package/macos/host/OneMacosMountingManager.mm +285 -0
- package/macos/host/OneMacosNetworking.h +13 -0
- package/macos/host/OneMacosNetworking.mm +263 -0
- package/macos/host/OneMacosOpSqlite.h +15 -0
- package/macos/host/OneMacosOpSqlite.mm +74 -0
- package/macos/host/OneMacosParagraphComponentView.h +4 -0
- package/macos/host/OneMacosParagraphComponentView.mm +35 -0
- package/macos/host/OneMacosPointerHandler.h +27 -0
- package/macos/host/OneMacosPointerHandler.mm +405 -0
- package/macos/host/OneMacosPopUpButtonComponentView.h +3 -0
- package/macos/host/OneMacosPopUpButtonComponentView.mm +50 -0
- package/macos/host/OneMacosRootView.h +21 -0
- package/macos/host/OneMacosRootView.mm +520 -0
- package/macos/host/OneMacosRuntime.h +46 -0
- package/macos/host/OneMacosRuntime.mm +133 -0
- package/macos/host/OneMacosScrollViewComponentView.h +6 -0
- package/macos/host/OneMacosScrollViewComponentView.mm +240 -0
- package/macos/host/OneMacosSegmentedControlComponentView.h +3 -0
- package/macos/host/OneMacosSegmentedControlComponentView.mm +51 -0
- package/macos/host/OneMacosSymbolImageComponentView.h +3 -0
- package/macos/host/OneMacosSymbolImageComponentView.mm +67 -0
- package/macos/host/OneMacosTextInputComponentView.h +7 -0
- package/macos/host/OneMacosTextInputComponentView.mm +729 -0
- package/macos/host/OneMacosToggleComponentView.h +4 -0
- package/macos/host/OneMacosToggleComponentView.mm +57 -0
- package/macos/host/OneMacosToggleHosting.h +15 -0
- package/macos/host/OneMacosWebSocket.h +22 -0
- package/macos/host/OneMacosWebSocket.mm +161 -0
- package/macos/host/OneMacosWorklets.cpp +139 -0
- package/macos/host/OneMacosWorklets.h +29 -0
- package/macos/host/OneMacosWorkletsPlatform.mm +88 -0
- package/macos/host/swift/OneMacControls.swift +155 -0
- package/macos/host/swift/OneMacToggle.swift +71 -0
- package/macos/react-native/Libraries/Utilities/Platform.js +22 -0
- package/macos/template/macos/OneApp/Info.plist +31 -0
- package/macos/template/macos/OneApp/OneApp-Bridging-Header.h +3 -0
- package/macos/template/macos/OneApp/OneApp.swift +20 -0
- package/macos/template/macos/scripts/build-core.sh +29 -0
- package/macos/template/macos/scripts/bundle-js.sh +29 -0
- package/macos/template/macos/scripts/embed-deps.sh +20 -0
- package/macos/template/macos/scripts/embed-hermes.sh +10 -0
- package/macos/template/macos/scripts/prepare-deps.sh +29 -0
- package/macos/template/macos/scripts/prepare-hermes.sh +29 -0
- package/native-core/host/OneHostCommandPredicate.h +118 -0
- package/native-core/host/OneHostModule.h +125 -0
- package/native-core/host/OneHostModules.cpp +355 -0
- package/native-core/host/OneHostModules.h +20 -0
- package/native-core/host/OneHostRuntime.cpp +314 -0
- package/native-core/host/OneHostRuntime.h +153 -0
- package/native-core/rn-core.cmake +101 -0
- package/nitrogen/generated/ios/One-Swift-Cxx-Bridge.cpp +17 -0
- package/nitrogen/generated/ios/One-Swift-Cxx-Bridge.hpp +19 -2
- package/nitrogen/generated/ios/One-Swift-Cxx-Umbrella.hpp +5 -0
- package/nitrogen/generated/ios/OneAutolinking.mm +22 -0
- package/nitrogen/generated/ios/OneAutolinking.swift +42 -16
- package/nitrogen/generated/ios/c++/HybridOneStoreReviewSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridOneStoreReviewSpecSwift.hpp +82 -0
- package/nitrogen/generated/ios/swift/HybridOneStoreReviewSpec.swift +55 -0
- package/nitrogen/generated/ios/swift/HybridOneStoreReviewSpec_cxx.swift +145 -0
- package/package.json +47 -18
- package/react-native.config.cjs +1 -0
- package/src/cli/build.ts +1 -1
- package/src/cli/iosLinkSet.ts +86 -0
- package/src/cli/iosLinkSetAnalysis.ts +411 -0
- package/src/cli/prebuild.ts +8 -1
- package/src/cli/updatesPublish.ts +25 -24
- package/src/cli.ts +3 -1
- package/src/createApp.tsx +5 -0
- package/src/createHandleRequest.ts +6 -32
- package/src/dom/README.md +27 -0
- package/src/dom/browserBridge.ts +185 -0
- package/src/dom/client.tsx +75 -0
- package/src/dom/context.ts +4 -0
- package/src/dom/host.native.tsx +137 -0
- package/src/dom/index.ts +109 -0
- package/src/dom/measure.ts +32 -0
- package/src/dom/nativeBridge.ts +143 -0
- package/src/dom/peer.ts +150 -0
- package/src/dom/protocol.ts +171 -0
- package/src/dom/serialize.ts +126 -0
- package/src/dom/types.ts +38 -0
- package/src/fork/getPathFromState.test.ts +14 -0
- package/src/fork/getPathFromState.ts +10 -1
- package/src/hooks.tsx +129 -2
- package/src/index.ts +10 -0
- package/src/interfaces/router.ts +63 -1
- package/src/layouts/Tabs.linux.tsx +15 -0
- package/src/layouts/stack-navigator-desktop.tsx +8 -0
- package/src/layouts/stack-navigator.linux.tsx +12 -0
- package/src/layouts/stack-navigator.macos.tsx +9 -0
- package/src/layouts/stack-utils/StackToolbarBottomHost.linux.tsx +1 -0
- package/src/layouts/stack-utils/StackToolbarBottomHost.macos.tsx +17 -0
- package/src/link/Link.tsx +5 -3
- package/src/link/Link.web.tsx +8 -3
- package/src/loaderResponseToModule.ts +42 -0
- package/src/loaderSearchParams.ts +115 -0
- package/src/one-shared.ts +361 -0
- package/src/one.linux.ts +42 -0
- package/src/one.macos.ts +29 -0
- package/src/one.ts +2 -303
- package/src/platform/adaptive/fixed.ts +27 -0
- package/src/platform/adaptive/index.linux.ts +1 -0
- package/src/platform/adaptive/index.macos.ts +11 -0
- package/src/platform/adaptive/index.ts +1 -26
- package/src/platform/controlTypes.ts +12 -0
- package/src/platform/desktop/appCommandTypes.ts +33 -0
- package/src/platform/desktop/createAppCommands.ts +40 -0
- package/src/platform/desktop/createControls.tsx +64 -0
- package/src/platform/linux/AppCommands.linux.ts +6 -0
- package/src/platform/linux/Button.linux.tsx +15 -0
- package/src/platform/linux/DropDown.linux.tsx +50 -0
- package/src/platform/linux/NavigationView.linux.tsx +80 -0
- package/src/platform/linux/OneLinuxButtonNativeComponent.ts +23 -0
- package/src/platform/linux/OneLinuxDropDownNativeComponent.ts +35 -0
- package/src/platform/linux/OneLinuxNavigationNativeComponent.ts +21 -0
- package/src/platform/linux/OneLinuxProgressBarNativeComponent.ts +10 -0
- package/src/platform/linux/OneLinuxSecureFieldNativeComponent.ts +16 -0
- package/src/platform/linux/OneLinuxSegmentedControlNativeComponent.ts +24 -0
- package/src/platform/linux/OneLinuxSliderNativeComponent.ts +29 -0
- package/src/platform/linux/OneLinuxStepperNativeComponent.ts +27 -0
- package/src/platform/linux/OneLinuxSwitchNativeComponent.ts +20 -0
- package/src/platform/linux/OneLinuxTextFieldNativeComponent.ts +16 -0
- package/src/platform/linux/OneLinuxToggleNativeComponent.ts +14 -0
- package/src/platform/linux/ProgressBar.linux.tsx +21 -0
- package/src/platform/linux/SecureField.linux.tsx +7 -0
- package/src/platform/linux/SegmentedControl.linux.tsx +13 -0
- package/src/platform/linux/Slider.linux.tsx +67 -0
- package/src/platform/linux/Stepper.linux.tsx +52 -0
- package/src/platform/linux/Switch.linux.tsx +23 -0
- package/src/platform/linux/TextField.linux.tsx +27 -0
- package/src/platform/linux/Toggle.linux.tsx +12 -0
- package/src/platform/linux/Window.linux.ts +12 -0
- package/src/platform/mac/AppCommands.macos.ts +8 -0
- package/src/platform/mac/Button.macos.tsx +12 -0
- package/src/platform/mac/Image.macos.tsx +41 -0
- package/src/platform/mac/OneMacButtonNativeComponent.ts +14 -0
- package/src/platform/mac/OneMacImageNativeComponent.ts +12 -0
- package/src/platform/mac/OneMacPopUpButtonNativeComponent.ts +20 -0
- package/src/platform/mac/OneMacSegmentedControlNativeComponent.ts +21 -0
- package/src/platform/mac/OneMacToggleNativeComponent.ts +21 -0
- package/src/platform/mac/PopUpButton.macos.tsx +31 -0
- package/src/platform/mac/SegmentedControl.macos.tsx +11 -0
- package/src/platform/mac/Toggle.macos.tsx +12 -0
- package/src/platform/specs/OneDOMHostNativeComponent.ts +30 -0
- package/src/platform/specs/OneStoreReview.nitro.ts +1 -1
- package/src/platform/split-view/split-view.linux.tsx +1 -0
- package/src/platform/split-view/split-view.macos.tsx +26 -0
- package/src/platform/ui/Image.linux.tsx +1 -0
- package/src/platform/ui/Image.macos.tsx +9 -0
- package/src/router/getRoutes.ts +1 -1
- package/src/router/router.ts +61 -13
- package/src/searchParams.ts +163 -0
- package/src/server/oneServe.ts +33 -3
- package/src/server/workerHandler.ts +27 -3
- package/src/standardSchema.ts +82 -0
- package/src/typed-routes/generateRouteTypes.ts +49 -3
- package/src/typed-routes/getTypedRoutesDeclarationFile.ts +62 -10
- package/src/typed-routes/searchParamSchemas.ts +377 -0
- package/src/typed-routes/searchSchemaEntries.ts +22 -0
- package/src/types.ts +15 -2
- package/src/useLoader.ts +91 -43
- package/src/utils/cleanUrl.ts +43 -2
- package/src/validateParams.ts +3 -14
- package/src/{validateSearch.ts → validateSearchParams.ts} +33 -33
- package/src/vercel/build/generate/createSsrServerlessFunction.ts +36 -2
- package/src/vite/dom/README.md +91 -0
- package/src/vite/dom/browser.ts +152 -0
- package/src/vite/dom/build.test.ts +204 -0
- package/src/vite/dom/directive.ts +76 -0
- package/src/vite/dom/registry.ts +67 -0
- package/src/vite/one-defines.test.ts +59 -1
- package/src/vite/one.ts +59 -3
- package/src/vite/plugins/clientTreeShakePlugin.ts +7 -1
- package/src/vite/plugins/environmentGuardPlugin.ts +4 -4
- package/src/vite/plugins/fileSystemRouterPlugin.test.ts +51 -0
- package/src/vite/plugins/fileSystemRouterPlugin.tsx +43 -10
- package/src/vite/plugins/generateFileSystemRouteTypesPlugin.tsx +10 -2
- package/src/vite/plugins/iosLinkSetPlugin.ts +64 -0
- package/src/vite/plugins/iosSdkPlugin.ts +4 -1
- package/src/vite/plugins/kotlinSourcePlugin.ts +4 -1
- package/src/vite/plugins/loaderSearchSchemasPlugin.ts +69 -0
- package/src/vite/plugins/swiftPackagePlugin.ts +4 -1
- package/src/vite/plugins/useDomPlugin.ts +182 -35
- package/src/vite/types.ts +5 -1
- package/types/cli/build.d.ts +1 -1
- package/types/cli/build.d.ts.map +1 -1
- package/types/cli/iosLinkSet.d.ts +9 -0
- package/types/cli/iosLinkSet.d.ts.map +1 -0
- package/types/cli/iosLinkSetAnalysis.d.ts +25 -0
- package/types/cli/iosLinkSetAnalysis.d.ts.map +1 -0
- package/types/cli/prebuild.d.ts.map +1 -1
- package/types/cli/updatesPublish.d.ts.map +1 -1
- package/types/createApp.d.ts +8 -0
- package/types/createApp.d.ts.map +1 -1
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/dom/browserBridge.d.ts +34 -0
- package/types/dom/browserBridge.d.ts.map +1 -0
- package/types/dom/client.d.ts +8 -0
- package/types/dom/client.d.ts.map +1 -0
- package/types/dom/context.d.ts +3 -0
- package/types/dom/context.d.ts.map +1 -0
- package/types/dom/host.native.d.ts +6 -0
- package/types/dom/host.native.d.ts.map +1 -0
- package/types/dom/index.d.ts +8 -0
- package/types/dom/index.d.ts.map +1 -0
- package/types/dom/measure.d.ts +3 -0
- package/types/dom/measure.d.ts.map +1 -0
- package/types/dom/nativeBridge.d.ts +32 -0
- package/types/dom/nativeBridge.d.ts.map +1 -0
- package/types/dom/peer.d.ts +26 -0
- package/types/dom/peer.d.ts.map +1 -0
- package/types/dom/protocol.d.ts +54 -0
- package/types/dom/protocol.d.ts.map +1 -0
- package/types/dom/serialize.d.ts +21 -0
- package/types/dom/serialize.d.ts.map +1 -0
- package/types/dom/types.d.ts +32 -0
- package/types/dom/types.d.ts.map +1 -0
- package/types/fork/getPathFromState.d.ts.map +1 -1
- package/types/hooks.d.ts +30 -3
- package/types/hooks.d.ts.map +1 -1
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +1 -1
- package/types/interfaces/router.d.ts +41 -1
- package/types/interfaces/router.d.ts.map +1 -1
- package/types/layouts/Tabs.linux.d.ts +212 -0
- package/types/layouts/Tabs.linux.d.ts.map +1 -0
- package/types/layouts/stack-navigator-desktop.d.ts +9 -0
- package/types/layouts/stack-navigator-desktop.d.ts.map +1 -0
- package/types/layouts/stack-navigator.linux.d.ts +3 -0
- package/types/layouts/stack-navigator.linux.d.ts.map +1 -0
- package/types/layouts/stack-navigator.macos.d.ts +7 -0
- package/types/layouts/stack-navigator.macos.d.ts.map +1 -0
- package/types/layouts/stack-utils/StackToolbarBottomHost.linux.d.ts +2 -0
- package/types/layouts/stack-utils/StackToolbarBottomHost.linux.d.ts.map +1 -0
- package/types/layouts/stack-utils/StackToolbarBottomHost.macos.d.ts +8 -0
- package/types/layouts/stack-utils/StackToolbarBottomHost.macos.d.ts.map +1 -0
- package/types/link/Link.d.ts.map +1 -1
- package/types/link/Link.web.d.ts.map +1 -1
- package/types/loaderResponseToModule.d.ts +7 -0
- package/types/loaderResponseToModule.d.ts.map +1 -0
- package/types/loaderSearchParams.d.ts +30 -0
- package/types/loaderSearchParams.d.ts.map +1 -0
- package/types/one-shared.d.ts +151 -0
- package/types/one-shared.d.ts.map +1 -0
- package/types/one.d.ts +1 -100
- package/types/one.d.ts.map +1 -1
- package/types/one.linux.d.ts +3 -0
- package/types/one.linux.d.ts.map +1 -0
- package/types/one.macos.d.ts +3 -0
- package/types/one.macos.d.ts.map +1 -0
- package/types/platform/adaptive/fixed.d.ts +7 -0
- package/types/platform/adaptive/fixed.d.ts.map +1 -0
- package/types/platform/adaptive/index.d.ts +1 -6
- package/types/platform/adaptive/index.d.ts.map +1 -1
- package/types/platform/adaptive/index.linux.d.ts +2 -0
- package/types/platform/adaptive/index.linux.d.ts.map +1 -0
- package/types/platform/adaptive/index.macos.d.ts +6 -0
- package/types/platform/adaptive/index.macos.d.ts.map +1 -0
- package/types/platform/controlTypes.d.ts +18 -0
- package/types/platform/controlTypes.d.ts.map +1 -0
- package/types/platform/desktop/appCommandTypes.d.ts +41 -0
- package/types/platform/desktop/appCommandTypes.d.ts.map +1 -0
- package/types/platform/desktop/createAppCommands.d.ts +6 -0
- package/types/platform/desktop/createAppCommands.d.ts.map +1 -0
- package/types/platform/desktop/createControls.d.ts +31 -0
- package/types/platform/desktop/createControls.d.ts.map +1 -0
- package/types/platform/linux/AppCommands.linux.d.ts +8 -0
- package/types/platform/linux/AppCommands.linux.d.ts.map +1 -0
- package/types/platform/linux/Button.linux.d.ts +4 -0
- package/types/platform/linux/Button.linux.d.ts.map +1 -0
- package/types/platform/linux/DropDown.linux.d.ts +26 -0
- package/types/platform/linux/DropDown.linux.d.ts.map +1 -0
- package/types/platform/linux/NavigationView.linux.d.ts +7 -0
- package/types/platform/linux/NavigationView.linux.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxButtonNativeComponent.d.ts +17 -0
- package/types/platform/linux/OneLinuxButtonNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxDropDownNativeComponent.d.ts +29 -0
- package/types/platform/linux/OneLinuxDropDownNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxNavigationNativeComponent.d.ts +23 -0
- package/types/platform/linux/OneLinuxNavigationNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxProgressBarNativeComponent.d.ts +9 -0
- package/types/platform/linux/OneLinuxProgressBarNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxSecureFieldNativeComponent.d.ts +22 -0
- package/types/platform/linux/OneLinuxSecureFieldNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxSegmentedControlNativeComponent.d.ts +18 -0
- package/types/platform/linux/OneLinuxSegmentedControlNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxSliderNativeComponent.d.ts +26 -0
- package/types/platform/linux/OneLinuxSliderNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxStepperNativeComponent.d.ts +21 -0
- package/types/platform/linux/OneLinuxStepperNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxSwitchNativeComponent.d.ts +16 -0
- package/types/platform/linux/OneLinuxSwitchNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxTextFieldNativeComponent.d.ts +22 -0
- package/types/platform/linux/OneLinuxTextFieldNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/OneLinuxToggleNativeComponent.d.ts +18 -0
- package/types/platform/linux/OneLinuxToggleNativeComponent.d.ts.map +1 -0
- package/types/platform/linux/ProgressBar.linux.d.ts +7 -0
- package/types/platform/linux/ProgressBar.linux.d.ts.map +1 -0
- package/types/platform/linux/SecureField.linux.d.ts +4 -0
- package/types/platform/linux/SecureField.linux.d.ts.map +1 -0
- package/types/platform/linux/SegmentedControl.linux.d.ts +5 -0
- package/types/platform/linux/SegmentedControl.linux.d.ts.map +1 -0
- package/types/platform/linux/Slider.linux.d.ts +19 -0
- package/types/platform/linux/Slider.linux.d.ts.map +1 -0
- package/types/platform/linux/Stepper.linux.d.ts +11 -0
- package/types/platform/linux/Stepper.linux.d.ts.map +1 -0
- package/types/platform/linux/Switch.linux.d.ts +9 -0
- package/types/platform/linux/Switch.linux.d.ts.map +1 -0
- package/types/platform/linux/TextField.linux.d.ts +13 -0
- package/types/platform/linux/TextField.linux.d.ts.map +1 -0
- package/types/platform/linux/Toggle.linux.d.ts +4 -0
- package/types/platform/linux/Toggle.linux.d.ts.map +1 -0
- package/types/platform/linux/Window.linux.d.ts +4 -0
- package/types/platform/linux/Window.linux.d.ts.map +1 -0
- package/types/platform/mac/AppCommands.macos.d.ts +7 -0
- package/types/platform/mac/AppCommands.macos.d.ts.map +1 -0
- package/types/platform/mac/Button.macos.d.ts +7 -0
- package/types/platform/mac/Button.macos.d.ts.map +1 -0
- package/types/platform/mac/Image.macos.d.ts +11 -0
- package/types/platform/mac/Image.macos.d.ts.map +1 -0
- package/types/platform/mac/OneMacButtonNativeComponent.d.ts +13 -0
- package/types/platform/mac/OneMacButtonNativeComponent.d.ts.map +1 -0
- package/types/platform/mac/OneMacImageNativeComponent.d.ts +11 -0
- package/types/platform/mac/OneMacImageNativeComponent.d.ts.map +1 -0
- package/types/platform/mac/OneMacPopUpButtonNativeComponent.d.ts +18 -0
- package/types/platform/mac/OneMacPopUpButtonNativeComponent.d.ts.map +1 -0
- package/types/platform/mac/OneMacSegmentedControlNativeComponent.d.ts +19 -0
- package/types/platform/mac/OneMacSegmentedControlNativeComponent.d.ts.map +1 -0
- package/types/platform/mac/OneMacToggleNativeComponent.d.ts +17 -0
- package/types/platform/mac/OneMacToggleNativeComponent.d.ts.map +1 -0
- package/types/platform/mac/PopUpButton.macos.d.ts +14 -0
- package/types/platform/mac/PopUpButton.macos.d.ts.map +1 -0
- package/types/platform/mac/SegmentedControl.macos.d.ts +4 -0
- package/types/platform/mac/SegmentedControl.macos.d.ts.map +1 -0
- package/types/platform/mac/Toggle.macos.d.ts +5 -0
- package/types/platform/mac/Toggle.macos.d.ts.map +1 -0
- package/types/platform/specs/OneDOMHostNativeComponent.d.ts +34 -0
- package/types/platform/specs/OneDOMHostNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneStoreReview.nitro.d.ts +1 -0
- package/types/platform/specs/OneStoreReview.nitro.d.ts.map +1 -1
- package/types/platform/split-view/split-view.linux.d.ts +2 -0
- package/types/platform/split-view/split-view.linux.d.ts.map +1 -0
- package/types/platform/split-view/split-view.macos.d.ts +16 -0
- package/types/platform/split-view/split-view.macos.d.ts.map +1 -0
- package/types/platform/ui/Image.linux.d.ts +2 -0
- package/types/platform/ui/Image.linux.d.ts.map +1 -0
- package/types/platform/ui/Image.macos.d.ts +3 -0
- package/types/platform/ui/Image.macos.d.ts.map +1 -0
- package/types/router/createRoute.d.ts +26 -3
- package/types/router/createRoute.d.ts.map +1 -1
- package/types/router/router.d.ts +6 -0
- package/types/router/router.d.ts.map +1 -1
- package/types/searchParams.d.ts +58 -0
- package/types/searchParams.d.ts.map +1 -0
- package/types/server/oneServe.d.ts.map +1 -1
- package/types/server/workerHandler.d.ts.map +1 -1
- package/types/standardSchema.d.ts +47 -0
- package/types/standardSchema.d.ts.map +1 -0
- package/types/typed-routes/generateRouteTypes.d.ts +5 -1
- package/types/typed-routes/generateRouteTypes.d.ts.map +1 -1
- package/types/typed-routes/getTypedRoutesDeclarationFile.d.ts +8 -1
- package/types/typed-routes/getTypedRoutesDeclarationFile.d.ts.map +1 -1
- package/types/typed-routes/searchParamSchemas.d.ts +34 -0
- package/types/typed-routes/searchParamSchemas.d.ts.map +1 -0
- package/types/typed-routes/searchSchemaEntries.d.ts +9 -0
- package/types/typed-routes/searchSchemaEntries.d.ts.map +1 -0
- package/types/types.d.ts +10 -2
- package/types/types.d.ts.map +1 -1
- package/types/useLoader.d.ts +2 -2
- package/types/useLoader.d.ts.map +1 -1
- package/types/utils/cleanUrl.d.ts +11 -1
- package/types/utils/cleanUrl.d.ts.map +1 -1
- package/types/validateParams.d.ts +1 -1
- package/types/validateParams.d.ts.map +1 -1
- package/types/{validateSearch.d.ts → validateSearchParams.d.ts} +13 -19
- package/types/validateSearchParams.d.ts.map +1 -0
- package/types/vercel/build/generate/createSsrServerlessFunction.d.ts.map +1 -1
- package/types/vite/dom/browser.d.ts +8 -0
- package/types/vite/dom/browser.d.ts.map +1 -0
- package/types/vite/dom/directive.d.ts +6 -0
- package/types/vite/dom/directive.d.ts.map +1 -0
- package/types/vite/dom/registry.d.ts +23 -0
- package/types/vite/dom/registry.d.ts.map +1 -0
- package/types/vite/one.d.ts.map +1 -1
- package/types/vite/plugins/clientTreeShakePlugin.d.ts.map +1 -1
- package/types/vite/plugins/environmentGuardPlugin.d.ts +2 -2
- package/types/vite/plugins/fileSystemRouterPlugin.d.ts.map +1 -1
- package/types/vite/plugins/generateFileSystemRouteTypesPlugin.d.ts.map +1 -1
- package/types/vite/plugins/iosLinkSetPlugin.d.ts +3 -0
- package/types/vite/plugins/iosLinkSetPlugin.d.ts.map +1 -0
- package/types/vite/plugins/iosSdkPlugin.d.ts +1 -1
- package/types/vite/plugins/iosSdkPlugin.d.ts.map +1 -1
- package/types/vite/plugins/kotlinSourcePlugin.d.ts +1 -1
- package/types/vite/plugins/kotlinSourcePlugin.d.ts.map +1 -1
- package/types/vite/plugins/loaderSearchSchemasPlugin.d.ts +14 -0
- package/types/vite/plugins/loaderSearchSchemasPlugin.d.ts.map +1 -0
- package/types/vite/plugins/swiftPackagePlugin.d.ts +1 -1
- package/types/vite/plugins/swiftPackagePlugin.d.ts.map +1 -1
- package/types/vite/plugins/useDomPlugin.d.ts +8 -1
- package/types/vite/plugins/useDomPlugin.d.ts.map +1 -1
- package/types/vite/types.d.ts +5 -1
- package/types/vite/types.d.ts.map +1 -1
- package/dist/cjs/platform/store-review/backend.ios.cjs +0 -47
- package/dist/cjs/platform/store-review/backend.ios.js +0 -49
- package/dist/cjs/platform/store-review/backend.ios.js.map +0 -1
- package/dist/cjs/validateSearch.native.js.map +0 -1
- package/dist/esm/one.mjs.map +0 -1
- package/dist/esm/one.native.js.map +0 -1
- package/dist/esm/platform/adaptive/index.mjs.map +0 -1
- package/dist/esm/platform/store-review/backend.ios.js +0 -26
- package/dist/esm/platform/store-review/backend.ios.js.map +0 -1
- package/dist/esm/validateSearch.mjs.map +0 -1
- package/dist/esm/validateSearch.native.js.map +0 -1
- package/src/platform/store-review/backend.ios.ts +0 -28
- package/types/platform/store-review/backend.ios.d.ts +0 -6
- package/types/platform/store-review/backend.ios.d.ts.map +0 -1
- package/types/validateSearch.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRoutes.native.js","names":[],"sources":["esm/router/getRoutes.native.js"],"sourcesContent":["import { getDefaultRenderMode } from \"../config\";\nimport { getPageExport } from \"../utils/getPageExport\";\nimport { matchArrayGroupName, matchDirectoryRenderMode, matchDynamicName, matchFileRenderMode, matchGroupName, matchInterceptPrefix, matchSlotName, removeSupportedExtensions, stripInterceptPrefix } from \"./matchers\";\nvar validPlatforms = /* @__PURE__ */ new Set([\n \"android\",\n \"ios\",\n \"native\",\n \"web\"\n]);\nfunction getRoutes(contextModule) {\n var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var directoryTree = getDirectoryTree(contextModule, options);\n if (!directoryTree) {\n return null;\n }\n var rootNode = flattenDirectoryTreeToRoutes(directoryTree, options);\n if (!options.ignoreEntryPoints) {\n crawlAndAppendInitialRoutesAndEntryFiles(rootNode, options);\n }\n return rootNode;\n}\nfunction getDirectoryTree(contextModule, options) {\n var importMode = options.importMode || process.env.One_ROUTER_IMPORT_MODE;\n var ignoreList = [\n /^\\.\\/\\+html\\.[tj]sx?$/,\n // Ignore the top level ./+html file\n /\\.d\\.ts$/\n ];\n if (options.ignore) {\n ignoreList.push(...options.ignore);\n }\n if (!options.preserveApiRoutes) {\n ignoreList.push(/\\+api\\.[tj]sx?$/);\n }\n var rootDirectory = {\n files: /* @__PURE__ */ new Map(),\n subdirectories: /* @__PURE__ */ new Map(),\n slots: /* @__PURE__ */ new Map()\n };\n var hasRoutes = false;\n var isValid = false;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n var _loop = function() {\n var filePath = _step.value;\n if (ignoreList.some(function(regex) {\n return regex.test(filePath);\n })) {\n return \"continue\";\n }\n isValid = true;\n var parentRenderMode = void 0;\n var pathParts = filePath.replace(/^\\.\\//, \"\").split(\"/\");\n var directoryParts = pathParts.slice(0, -1);\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = directoryParts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var part = _step1.value;\n var dirRenderMode = matchDirectoryRenderMode(part);\n if (dirRenderMode) {\n parentRenderMode = dirRenderMode.renderMode;\n }\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 var meta = getFileMeta(filePath, options, parentRenderMode);\n if (meta.specificity < 0) {\n return \"continue\";\n }\n var type = meta.isLayout ? \"layout\" : meta.renderMode || getDefaultRenderMode();\n var layoutRenderMode = meta.isLayout && meta.renderMode && meta.renderMode !== \"api\" ? meta.renderMode : void 0;\n var node = {\n type,\n // store layout render mode if this is a layout with an explicit mode\n ...layoutRenderMode && {\n layoutRenderMode\n },\n loadRoute() {\n if (options.ignoreRequireErrors) {\n try {\n return contextModule(filePath);\n } catch (unused) {\n return {};\n }\n } else {\n return contextModule(filePath);\n }\n },\n contextKey: filePath,\n route: \"\",\n // This is overwritten during hoisting based upon the _layout\n dynamic: null,\n children: []\n };\n if (process.env.NODE_ENV === \"development\") {\n if (node.type !== \"api\" && importMode === \"sync\") {\n if (!getPageExport(node.loadRoute())) {\n return \"continue\";\n }\n }\n }\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = extrapolateGroups(meta.route)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var route = _step2.value;\n var subdirectoryParts = route.split(\"/\").slice(0, -1);\n var directory = rootDirectory;\n var _iteratorNormalCompletion22 = true, _didIteratorError22 = false, _iteratorError22 = void 0;\n try {\n for (var _iterator22 = subdirectoryParts[Symbol.iterator](), _step3; !(_iteratorNormalCompletion22 = (_step3 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) {\n var part1 = _step3.value;\n var slotName = matchSlotName(part1);\n if (slotName) {\n var slotDirectory = directory.slots.get(slotName);\n if (!slotDirectory) {\n slotDirectory = {\n files: /* @__PURE__ */ new Map(),\n subdirectories: /* @__PURE__ */ new Map(),\n slots: /* @__PURE__ */ new Map()\n };\n directory.slots.set(slotName, slotDirectory);\n }\n directory = slotDirectory;\n } else {\n var _ref;\n var dirRenderMode1 = matchDirectoryRenderMode(part1);\n var dirName = (_ref = dirRenderMode1 === null || dirRenderMode1 === void 0 ? void 0 : dirRenderMode1.name) !== null && _ref !== void 0 ? _ref : part1;\n var subDirectory = directory.subdirectories.get(dirName);\n if (!subDirectory) {\n subDirectory = {\n files: /* @__PURE__ */ new Map(),\n subdirectories: /* @__PURE__ */ new Map(),\n slots: /* @__PURE__ */ new Map(),\n renderMode: dirRenderMode1 === null || dirRenderMode1 === void 0 ? void 0 : dirRenderMode1.renderMode\n };\n directory.subdirectories.set(dirName, subDirectory);\n }\n directory = subDirectory;\n }\n }\n } catch (err) {\n _didIteratorError22 = true;\n _iteratorError22 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion22 && _iterator22.return != null) {\n _iterator22.return();\n }\n } finally {\n if (_didIteratorError22) {\n throw _iteratorError22;\n }\n }\n }\n node = {\n ...node,\n route,\n slotName: meta.slotName,\n intercept: meta.interceptMatch ? {\n levels: meta.interceptMatch.levels,\n targetPath: meta.interceptMatch.targetPath\n } : void 0\n };\n if (meta.isLayout) {\n var _directory, _layout;\n (_layout = (_directory = directory).layout) !== null && _layout !== void 0 ? _layout : _directory.layout = [];\n var existing = directory.layout[meta.specificity];\n if (existing) {\n if (process.env.NODE_ENV !== \"production\") {\n throw new Error(`The layouts \"${filePath}\" and \"${existing.contextKey}\" conflict on the route \"/${route}\". Please remove or rename one of these files.`);\n }\n } else {\n node = getLayoutNode(node, options);\n directory.layout[meta.specificity] = node;\n }\n } else if (meta.isMiddleware) {\n directory.middleware = node;\n } else if (type === \"api\") {\n var fileKey = `${route}+api`;\n var nodes = directory.files.get(fileKey);\n if (!nodes) {\n nodes = [];\n directory.files.set(fileKey, nodes);\n }\n var existing1 = nodes[0];\n if (existing1) {\n if (process.env.NODE_ENV !== \"production\") {\n throw new Error(`The API route file \"${filePath}\" and \"${existing1.contextKey}\" conflict on the route \"/${route}\". Please remove or rename one of these files.`);\n }\n } else {\n nodes[0] = node;\n }\n } else {\n var nodes1 = directory.files.get(route);\n if (!nodes1) {\n nodes1 = [];\n directory.files.set(route, nodes1);\n }\n var existing2 = nodes1[meta.specificity];\n if (existing2) {\n if (process.env.NODE_ENV !== \"production\") {\n throw new Error(`The route files \"${filePath}\" and \"${existing2.contextKey}\" conflict on the route \"/${route}\". Please remove or rename one of these files.`);\n }\n } else {\n hasRoutes || (hasRoutes = true);\n nodes1[meta.specificity] = node;\n }\n }\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 };\n for (var _iterator = contextModule.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _loop();\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 if (!isValid) {\n return null;\n }\n if (!rootDirectory.layout) {\n rootDirectory.layout = [\n {\n type: \"layout\",\n loadRoute: function loadRoute() {\n return {\n default: (function() {\n try {\n return require(\"../views/Navigator\");\n } catch (e) {\n return {\n DefaultNavigator: function DefaultNavigator() {\n throw e;\n }\n };\n }\n })().DefaultNavigator\n };\n },\n // Generate a fake file name for the directory\n contextKey: \"router/build/views/Navigator.js\",\n route: \"\",\n generated: true,\n dynamic: null,\n children: []\n }\n ];\n }\n if (hasRoutes) {\n appendSitemapRoute(rootDirectory);\n }\n appendNotFoundRoute(rootDirectory);\n return rootDirectory;\n}\nfunction flattenDirectoryTreeToRoutes(directory, options, layout) {\n var pathToRemove = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"\", parentMiddlewares = arguments.length > 4 ? arguments[4] : void 0;\n if (directory.layout) {\n var previousLayout = layout;\n layout = getMostSpecific(directory.layout);\n if (previousLayout) {\n previousLayout.children.push(layout);\n }\n var newRoute = layout.route.replace(pathToRemove, \"\");\n pathToRemove = layout.route ? `${layout.route}/` : \"\";\n layout.route = newRoute;\n layout.dynamic = generateDynamic(layout.route);\n }\n if (!layout) throw new Error(\"One Internal Error: No nearest layout\");\n var middlewares = directory.middleware ? [\n ...parentMiddlewares || [],\n directory.middleware\n ] : parentMiddlewares;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = directory.files.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var routes = _step.value;\n var routeNode = getMostSpecific(routes);\n routeNode.route = routeNode.route.replace(pathToRemove, \"\");\n routeNode.dynamic = generateDynamic(routeNode.route);\n routeNode.middlewares = middlewares;\n layout.children.push(routeNode);\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 var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = directory.subdirectories.values()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var child = _step1.value;\n flattenDirectoryTreeToRoutes(child, options, layout, pathToRemove, middlewares);\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 if (directory.slots.size > 0) {\n layout.slots = /* @__PURE__ */ new Map();\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = directory.slots[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var [slotName, slotDir] = _step2.value;\n var slotConfig = flattenSlotDirectory(slotDir, slotName, options, pathToRemove);\n layout.slots.set(slotName, slotConfig);\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 }\n return layout;\n}\nfunction flattenSlotDirectory(directory, slotName, options, pathToRemove) {\n var interceptRoutes = [];\n var defaultRoute;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = directory.files.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var routes = _step.value;\n var routeNode = getMostSpecific(routes);\n var cleanRoute = routeNode.route.replace(pathToRemove, \"\");\n cleanRoute = cleanRoute.split(\"/\").filter(function(segment) {\n return !matchSlotName(segment);\n }).map(function(segment) {\n return stripInterceptPrefix(segment);\n }).join(\"/\");\n if (cleanRoute.endsWith(\"default\") || cleanRoute === \"default\") {\n defaultRoute = {\n ...routeNode,\n route: cleanRoute,\n slotName,\n dynamic: generateDynamic(cleanRoute)\n };\n } else {\n interceptRoutes.push({\n ...routeNode,\n route: cleanRoute,\n slotName,\n dynamic: generateDynamic(cleanRoute)\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 var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = directory.subdirectories[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var [subDirName, subDir] = _step1.value;\n var subRoutes = flattenSlotSubdirectory(subDir, slotName, options, pathToRemove, subDirName);\n interceptRoutes.push(...subRoutes);\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 return {\n name: slotName,\n defaultRoute,\n interceptRoutes\n };\n}\nfunction flattenSlotSubdirectory(directory, slotName, options, pathToRemove, currentPath) {\n var routes = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = directory.files.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var fileRoutes = _step.value;\n var routeNode = getMostSpecific(fileRoutes);\n var cleanRoute = routeNode.route.replace(pathToRemove, \"\");\n cleanRoute = cleanRoute.split(\"/\").filter(function(segment) {\n return !matchSlotName(segment);\n }).map(function(segment) {\n return stripInterceptPrefix(segment);\n }).join(\"/\");\n routes.push({\n ...routeNode,\n route: cleanRoute,\n slotName,\n dynamic: generateDynamic(cleanRoute)\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 var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = directory.subdirectories[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var [subDirName, subDir] = _step1.value;\n var subPath = currentPath ? `${currentPath}/${subDirName}` : subDirName;\n routes.push(...flattenSlotSubdirectory(subDir, slotName, options, pathToRemove, subPath));\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 return routes;\n}\nfunction getFileMeta(key, options, parentRenderMode) {\n var _options_platformRoutes;\n key = key.replace(/^\\.\\//, \"\");\n var parts = key.split(\"/\");\n var route = removeSupportedExtensions(key);\n var filename = parts[parts.length - 1];\n var filenameWithoutExtensions = removeSupportedExtensions(filename);\n var isLayout = filenameWithoutExtensions.startsWith(\"_layout\");\n var isMiddleware = filenameWithoutExtensions.startsWith(\"_middleware\");\n var fileRenderMode = matchFileRenderMode(filename);\n var renderMode = fileRenderMode !== null && fileRenderMode !== void 0 ? fileRenderMode : parentRenderMode;\n route = route.split(\"/\").map(function(segment) {\n var dirRenderMode = matchDirectoryRenderMode(segment);\n return dirRenderMode ? dirRenderMode.name : segment;\n }).join(\"/\");\n if (filenameWithoutExtensions.startsWith(\"(\") && filenameWithoutExtensions.endsWith(\")\")) {\n throw new Error(`Invalid route ./${key}. Routes cannot end with '(group)' syntax`);\n }\n if (renderMode !== \"api\" && filename.startsWith(\"+\") && filenameWithoutExtensions !== \"+not-found\") {\n var renamedRoute = [\n ...parts.slice(0, -1),\n filename.slice(1)\n ].join(\"/\");\n throw new Error(`Invalid route ./${key}. Route nodes cannot start with the '+' character. \"Please rename to ${renamedRoute}\"`);\n }\n var slotName;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = parts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var part = _step.value;\n var match = matchSlotName(part);\n if (match) {\n slotName = match;\n break;\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 var interceptMatch;\n for (var i = 0; i < parts.length; i++) {\n var part1 = parts[i];\n var match1 = matchInterceptPrefix(part1);\n if (match1) {\n var remainingParts = parts.slice(i + 1).map(function(p) {\n return removeSupportedExtensions(p);\n }).filter(function(p) {\n return p !== \"index\";\n });\n var fullTargetPath = [\n match1.targetPath,\n ...remainingParts\n ].filter(Boolean).join(\"/\");\n interceptMatch = {\n ...match1,\n targetPath: fullTargetPath\n };\n break;\n }\n }\n var specificity = 0;\n var platformExtension = filenameWithoutExtensions.split(\".\")[1];\n var hasPlatformExtension = validPlatforms.has(platformExtension);\n var usePlatformRoutes = (_options_platformRoutes = options.platformRoutes) !== null && _options_platformRoutes !== void 0 ? _options_platformRoutes : true;\n if (hasPlatformExtension) {\n if (!usePlatformRoutes) {\n specificity = -1;\n } else if (!options.platform) {\n specificity = -1;\n } else if (platformExtension === options.platform) {\n specificity = 2;\n } else if (platformExtension === \"native\" && options.platform !== \"web\") {\n specificity = 1;\n } else if (platformExtension !== options.platform) {\n specificity = -1;\n }\n if (renderMode === \"api\" && specificity !== 0) {\n throw new Error(`Api routes cannot have platform extensions. Please remove '.${platformExtension}' from './${key}'`);\n }\n route = route.replace(new RegExp(`.${platformExtension}$`), \"\");\n }\n return {\n route,\n specificity,\n isLayout,\n isMiddleware,\n renderMode,\n slotName,\n interceptMatch\n };\n}\nfunction getMostSpecific(routes) {\n var route = routes[routes.length - 1];\n if (!routes[0]) {\n throw new Error(` [one] The file ${route.contextKey} does not have a fallback sibling file without a platform extension in routes (${routes[0]}, ${routes.length}):\n${routes.map(function(r) {\n return r.contextKey || \"NONE\";\n }).join(\"\\n\")}.`);\n }\n return route;\n}\nfunction getIgnoreList(options) {\n var _ref;\n var ignore = [\n /^\\.\\/\\+html\\.[tj]sx?$/,\n ...(_ref = options === null || options === void 0 ? void 0 : options.ignore) !== null && _ref !== void 0 ? _ref : []\n ];\n if ((options === null || options === void 0 ? void 0 : options.preserveApiRoutes) !== true) {\n ignore.push(/\\+api\\.[tj]sx?$/);\n }\n return ignore;\n}\nfunction extrapolateGroups(key) {\n var keys = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : /* @__PURE__ */ new Set();\n var match = matchArrayGroupName(key);\n if (!match) {\n keys.add(key);\n return keys;\n }\n var groups = match.split(\",\");\n var groupsSet = new Set(groups);\n if (groupsSet.size !== groups.length) {\n throw new Error(`Array syntax cannot contain duplicate group name \"${groups}\" in \"${key}\".`);\n }\n if (groups.length === 1) {\n keys.add(key);\n return keys;\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = groups[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var group = _step.value;\n extrapolateGroups(key.replace(match, group.trim()), keys);\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 keys;\n}\nfunction generateDynamic(path) {\n var dynamic = path.split(\"/\").map(function(part) {\n if (part === \"+not-found\") {\n return {\n name: \"+not-found\",\n deep: true,\n notFound: true\n };\n }\n var dynamicMatch = matchDynamicName(part);\n if (!dynamicMatch) return null;\n return {\n name: dynamicMatch.name,\n deep: dynamicMatch.deep\n };\n }).filter(function(part) {\n return !!part;\n });\n return dynamic.length === 0 ? null : dynamic;\n}\nfunction appendSitemapRoute(directory) {\n if (!directory.files.has(\"_sitemap\")) {\n directory.files.set(\"_sitemap\", [\n {\n loadRoute() {\n return {\n default: function _default() {\n return null;\n },\n getNavOptions: function getNavOptions() {\n }\n };\n },\n route: \"_sitemap\",\n type: \"ssg\",\n contextKey: \"\",\n generated: true,\n internal: true,\n dynamic: null,\n children: []\n }\n ]);\n }\n}\nfunction hasNotFoundInGroupSubdirs(directory) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = directory.subdirectories[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [dirName, subDir] = _step.value;\n if (!matchGroupName(dirName)) continue;\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = subDir.files.keys()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var fileKey = _step1.value;\n if (fileKey.endsWith(\"+not-found\")) {\n return true;\n }\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 if (hasNotFoundInGroupSubdirs(subDir)) {\n return true;\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 false;\n}\nfunction appendNotFoundRoute(directory) {\n if (!directory.files.has(\"+not-found\") && !hasNotFoundInGroupSubdirs(directory)) {\n directory.files.set(\"+not-found\", [\n {\n loadRoute() {\n return {\n default: function _default() {\n return null;\n }\n };\n },\n type: \"spa\",\n route: \"+not-found\",\n contextKey: \"\",\n generated: true,\n internal: true,\n dynamic: [\n {\n name: \"+not-found\",\n deep: true,\n notFound: true\n }\n ],\n children: []\n }\n ]);\n }\n}\nfunction getLayoutNode(node, options) {\n var groupName = matchGroupName(node.route);\n var childMatchingGroup = node.children.find(function(child) {\n return child.route.replace(/\\/index$/, \"\") === groupName;\n });\n var initialRouteName = childMatchingGroup === null || childMatchingGroup === void 0 ? void 0 : childMatchingGroup.route;\n return {\n ...node,\n route: node.route.replace(/\\/?_layout$/, \"\"),\n children: [],\n // Each layout should have its own children\n initialRouteName\n };\n}\nfunction crawlAndAppendInitialRoutesAndEntryFiles(node, options) {\n var entryPoints = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n if (node.type === \"spa\" || node.type === \"ssg\" || node.type === \"ssr\") {\n node.entryPoints = [\n .../* @__PURE__ */ new Set([\n ...entryPoints,\n node.contextKey\n ])\n ];\n } else if (node.type === \"layout\") {\n if (!node.children) {\n throw new Error(`Layout \"${node.contextKey}\" does not contain any child routes`);\n }\n entryPoints = [\n ...entryPoints,\n node.contextKey\n ];\n var groupName = matchGroupName(node.route);\n var childMatchingGroup = node.children.find(function(child2) {\n return child2.route.replace(/\\/index$/, \"\") === groupName;\n });\n var initialRouteName = childMatchingGroup === null || childMatchingGroup === void 0 ? void 0 : childMatchingGroup.route;\n var loaded = node.loadRoute();\n if (loaded === null || loaded === void 0 ? void 0 : loaded.unstable_settings) {\n var _loaded_unstable_settings_initialRouteName;\n initialRouteName = (_loaded_unstable_settings_initialRouteName = loaded.unstable_settings.initialRouteName) !== null && _loaded_unstable_settings_initialRouteName !== void 0 ? _loaded_unstable_settings_initialRouteName : initialRouteName;\n if (groupName) {\n var _loaded_unstable_settings_groupName, _loaded_unstable_settings;\n var groupSpecificInitialRouteName = (_loaded_unstable_settings = loaded.unstable_settings) === null || _loaded_unstable_settings === void 0 ? void 0 : (_loaded_unstable_settings_groupName = _loaded_unstable_settings[groupName]) === null || _loaded_unstable_settings_groupName === void 0 ? void 0 : _loaded_unstable_settings_groupName.initialRouteName;\n initialRouteName = groupSpecificInitialRouteName !== null && groupSpecificInitialRouteName !== void 0 ? groupSpecificInitialRouteName : initialRouteName;\n }\n }\n if (initialRouteName) {\n var initialRoute = node.children.find(function(child2) {\n return child2.route === initialRouteName;\n });\n if (!initialRoute) {\n var validInitialRoutes = node.children.filter(function(child2) {\n return !child2.generated;\n }).map(function(child2) {\n return `'${child2.route}'`;\n }).join(\", \");\n if (groupName) {\n throw new Error(`Layout ${node.contextKey} has invalid initialRouteName '${initialRouteName}' for group '(${groupName})'. Valid options are: ${validInitialRoutes}`);\n }\n throw new Error(`Layout ${node.contextKey} has invalid initialRouteName '${initialRouteName}'. Valid options are: ${validInitialRoutes}`);\n }\n node.initialRouteName = initialRouteName;\n entryPoints.push(initialRoute.contextKey);\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = node.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var child = _step.value;\n crawlAndAppendInitialRoutesAndEntryFiles(child, options, entryPoints);\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}\nexport {\n extrapolateGroups,\n generateDynamic,\n getIgnoreList,\n getRoutes\n};\n//# sourceMappingURL=getRoutes.js.map\n"],"mappings":";;;;;;;;;;;;AAGA,IAAI,iCAAiC,IAAI,IAAI;CAC3C;CACA;CACA;CACA;AACF,CAAC;AACD,SAAS,UAAU,eAAe;CAChC,IAAI,UAAU,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CAChF,IAAI,gBAAgB,iBAAiB,eAAe,OAAO;CAC3D,IAAI,CAAC,eAAe;EAClB,OAAO;CACT;CACA,IAAI,WAAW,6BAA6B,eAAe,OAAO;CAClE,IAAI,CAAC,QAAQ,mBAAmB;EAC9B,yCAAyC,UAAU,OAAO;CAC5D;CACA,OAAO;AACT;AACA,SAAS,iBAAiB,eAAe,SAAS;CAChD,IAAI,aAAa,QAAQ,cAAc,QAAQ,IAAI;CACnD,IAAI,aAAa,CACf,yBAEA,UACF;CACA,IAAI,QAAQ,QAAQ;EAClB,WAAW,KAAK,GAAG,QAAQ,MAAM;CACnC;CACA,IAAI,CAAC,QAAQ,mBAAmB;EAC9B,WAAW,KAAK,iBAAiB;CACnC;CACA,IAAI,gBAAgB;EAClB,uBAAuB,IAAI,IAAI;EAC/B,gCAAgC,IAAI,IAAI;EACxC,uBAAuB,IAAI,IAAI;CACjC;CACA,IAAI,YAAY;CAChB,IAAI,UAAU;CACd,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;CACvF,IAAI;EACF,IAAI,QAAQ,WAAW;GACrB,IAAI,WAAW,MAAM;GACrB,IAAI,WAAW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I,CAAC,cAAc;IACjB,IAAI,qBAAqB,KAAK,SAAS,OAAO,SAAS,QAAQ;KAC7D,OAAO,CAAC,OAAO;IACjB,CAAC,CAAC,CAAC,IAAI,SAAS,QAAQ;KACtB,OAAO,IAAI,OAAO,MAAM;IAC1B,CAAC,CAAC,CAAC,KAAK,IAAI;IACZ,IAAI,WAAW;KACb,MAAM,IAAI,MAAM,UAAU,KAAK,WAAW,iCAAiC,iBAAiB,gBAAgB,UAAU,yBAAyB,oBAAoB;IACrK;IACA,MAAM,IAAI,MAAM,UAAU,KAAK,WAAW,iCAAiC,iBAAiB,wBAAwB,oBAAoB;GAC1I;GACA,KAAK,mBAAmB;GACxB,YAAY,KAAK,aAAa,UAAU;EAC1C;EACA,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;EACvF,IAAI;GACF,KAAK,IAAI,YAAY,KAAK,SAAS,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;IAC9J,IAAI,QAAQ,MAAM;IAClB,yCAAyC,OAAO,SAAS,WAAW;GACtE;EACF,SAAS,KAAK;GACZ,oBAAoB;GACpB,iBAAiB;EACnB,UAAU;GACR,IAAI;IACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;KAC1D,UAAU,OAAO;IACnB;GACF,UAAU;IACR,IAAI,mBAAmB;KACrB,MAAM;IACR;GACF;EACF;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"getRoutes.native.js","names":[],"sources":["esm/router/getRoutes.native.js"],"sourcesContent":["import { getDefaultRenderMode } from \"../config\";\nimport { getPageExport } from \"../utils/getPageExport\";\nimport { matchArrayGroupName, matchDirectoryRenderMode, matchDynamicName, matchFileRenderMode, matchGroupName, matchInterceptPrefix, matchSlotName, removeSupportedExtensions, stripInterceptPrefix } from \"./matchers\";\nvar validPlatforms = /* @__PURE__ */ new Set([\n \"android\",\n \"ios\",\n \"linux\",\n \"macos\",\n \"native\",\n \"web\"\n]);\nfunction getRoutes(contextModule) {\n var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var directoryTree = getDirectoryTree(contextModule, options);\n if (!directoryTree) {\n return null;\n }\n var rootNode = flattenDirectoryTreeToRoutes(directoryTree, options);\n if (!options.ignoreEntryPoints) {\n crawlAndAppendInitialRoutesAndEntryFiles(rootNode, options);\n }\n return rootNode;\n}\nfunction getDirectoryTree(contextModule, options) {\n var importMode = options.importMode || process.env.One_ROUTER_IMPORT_MODE;\n var ignoreList = [\n /^\\.\\/\\+html\\.[tj]sx?$/,\n // Ignore the top level ./+html file\n /\\.d\\.ts$/\n ];\n if (options.ignore) {\n ignoreList.push(...options.ignore);\n }\n if (!options.preserveApiRoutes) {\n ignoreList.push(/\\+api\\.[tj]sx?$/);\n }\n var rootDirectory = {\n files: /* @__PURE__ */ new Map(),\n subdirectories: /* @__PURE__ */ new Map(),\n slots: /* @__PURE__ */ new Map()\n };\n var hasRoutes = false;\n var isValid = false;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n var _loop = function() {\n var filePath = _step.value;\n if (ignoreList.some(function(regex) {\n return regex.test(filePath);\n })) {\n return \"continue\";\n }\n isValid = true;\n var parentRenderMode = void 0;\n var pathParts = filePath.replace(/^\\.\\//, \"\").split(\"/\");\n var directoryParts = pathParts.slice(0, -1);\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = directoryParts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var part = _step1.value;\n var dirRenderMode = matchDirectoryRenderMode(part);\n if (dirRenderMode) {\n parentRenderMode = dirRenderMode.renderMode;\n }\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 var meta = getFileMeta(filePath, options, parentRenderMode);\n if (meta.specificity < 0) {\n return \"continue\";\n }\n var type = meta.isLayout ? \"layout\" : meta.renderMode || getDefaultRenderMode();\n var layoutRenderMode = meta.isLayout && meta.renderMode && meta.renderMode !== \"api\" ? meta.renderMode : void 0;\n var node = {\n type,\n // store layout render mode if this is a layout with an explicit mode\n ...layoutRenderMode && {\n layoutRenderMode\n },\n loadRoute() {\n if (options.ignoreRequireErrors) {\n try {\n return contextModule(filePath);\n } catch (unused) {\n return {};\n }\n } else {\n return contextModule(filePath);\n }\n },\n contextKey: filePath,\n route: \"\",\n // This is overwritten during hoisting based upon the _layout\n dynamic: null,\n children: []\n };\n if (process.env.NODE_ENV === \"development\") {\n if (node.type !== \"api\" && importMode === \"sync\") {\n if (!getPageExport(node.loadRoute())) {\n return \"continue\";\n }\n }\n }\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = extrapolateGroups(meta.route)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var route = _step2.value;\n var subdirectoryParts = route.split(\"/\").slice(0, -1);\n var directory = rootDirectory;\n var _iteratorNormalCompletion22 = true, _didIteratorError22 = false, _iteratorError22 = void 0;\n try {\n for (var _iterator22 = subdirectoryParts[Symbol.iterator](), _step3; !(_iteratorNormalCompletion22 = (_step3 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) {\n var part1 = _step3.value;\n var slotName = matchSlotName(part1);\n if (slotName) {\n var slotDirectory = directory.slots.get(slotName);\n if (!slotDirectory) {\n slotDirectory = {\n files: /* @__PURE__ */ new Map(),\n subdirectories: /* @__PURE__ */ new Map(),\n slots: /* @__PURE__ */ new Map()\n };\n directory.slots.set(slotName, slotDirectory);\n }\n directory = slotDirectory;\n } else {\n var _ref;\n var dirRenderMode1 = matchDirectoryRenderMode(part1);\n var dirName = (_ref = dirRenderMode1 === null || dirRenderMode1 === void 0 ? void 0 : dirRenderMode1.name) !== null && _ref !== void 0 ? _ref : part1;\n var subDirectory = directory.subdirectories.get(dirName);\n if (!subDirectory) {\n subDirectory = {\n files: /* @__PURE__ */ new Map(),\n subdirectories: /* @__PURE__ */ new Map(),\n slots: /* @__PURE__ */ new Map(),\n renderMode: dirRenderMode1 === null || dirRenderMode1 === void 0 ? void 0 : dirRenderMode1.renderMode\n };\n directory.subdirectories.set(dirName, subDirectory);\n }\n directory = subDirectory;\n }\n }\n } catch (err) {\n _didIteratorError22 = true;\n _iteratorError22 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion22 && _iterator22.return != null) {\n _iterator22.return();\n }\n } finally {\n if (_didIteratorError22) {\n throw _iteratorError22;\n }\n }\n }\n node = {\n ...node,\n route,\n slotName: meta.slotName,\n intercept: meta.interceptMatch ? {\n levels: meta.interceptMatch.levels,\n targetPath: meta.interceptMatch.targetPath\n } : void 0\n };\n if (meta.isLayout) {\n var _directory, _layout;\n (_layout = (_directory = directory).layout) !== null && _layout !== void 0 ? _layout : _directory.layout = [];\n var existing = directory.layout[meta.specificity];\n if (existing) {\n if (process.env.NODE_ENV !== \"production\") {\n throw new Error(`The layouts \"${filePath}\" and \"${existing.contextKey}\" conflict on the route \"/${route}\". Please remove or rename one of these files.`);\n }\n } else {\n node = getLayoutNode(node, options);\n directory.layout[meta.specificity] = node;\n }\n } else if (meta.isMiddleware) {\n directory.middleware = node;\n } else if (type === \"api\") {\n var fileKey = `${route}+api`;\n var nodes = directory.files.get(fileKey);\n if (!nodes) {\n nodes = [];\n directory.files.set(fileKey, nodes);\n }\n var existing1 = nodes[0];\n if (existing1) {\n if (process.env.NODE_ENV !== \"production\") {\n throw new Error(`The API route file \"${filePath}\" and \"${existing1.contextKey}\" conflict on the route \"/${route}\". Please remove or rename one of these files.`);\n }\n } else {\n nodes[0] = node;\n }\n } else {\n var nodes1 = directory.files.get(route);\n if (!nodes1) {\n nodes1 = [];\n directory.files.set(route, nodes1);\n }\n var existing2 = nodes1[meta.specificity];\n if (existing2) {\n if (process.env.NODE_ENV !== \"production\") {\n throw new Error(`The route files \"${filePath}\" and \"${existing2.contextKey}\" conflict on the route \"/${route}\". Please remove or rename one of these files.`);\n }\n } else {\n hasRoutes || (hasRoutes = true);\n nodes1[meta.specificity] = node;\n }\n }\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 };\n for (var _iterator = contextModule.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _loop();\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 if (!isValid) {\n return null;\n }\n if (!rootDirectory.layout) {\n rootDirectory.layout = [\n {\n type: \"layout\",\n loadRoute: function loadRoute() {\n return {\n default: (function() {\n try {\n return require(\"../views/Navigator\");\n } catch (e) {\n return {\n DefaultNavigator: function DefaultNavigator() {\n throw e;\n }\n };\n }\n })().DefaultNavigator\n };\n },\n // Generate a fake file name for the directory\n contextKey: \"router/build/views/Navigator.js\",\n route: \"\",\n generated: true,\n dynamic: null,\n children: []\n }\n ];\n }\n if (hasRoutes) {\n appendSitemapRoute(rootDirectory);\n }\n appendNotFoundRoute(rootDirectory);\n return rootDirectory;\n}\nfunction flattenDirectoryTreeToRoutes(directory, options, layout) {\n var pathToRemove = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"\", parentMiddlewares = arguments.length > 4 ? arguments[4] : void 0;\n if (directory.layout) {\n var previousLayout = layout;\n layout = getMostSpecific(directory.layout);\n if (previousLayout) {\n previousLayout.children.push(layout);\n }\n var newRoute = layout.route.replace(pathToRemove, \"\");\n pathToRemove = layout.route ? `${layout.route}/` : \"\";\n layout.route = newRoute;\n layout.dynamic = generateDynamic(layout.route);\n }\n if (!layout) throw new Error(\"One Internal Error: No nearest layout\");\n var middlewares = directory.middleware ? [\n ...parentMiddlewares || [],\n directory.middleware\n ] : parentMiddlewares;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = directory.files.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var routes = _step.value;\n var routeNode = getMostSpecific(routes);\n routeNode.route = routeNode.route.replace(pathToRemove, \"\");\n routeNode.dynamic = generateDynamic(routeNode.route);\n routeNode.middlewares = middlewares;\n layout.children.push(routeNode);\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 var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = directory.subdirectories.values()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var child = _step1.value;\n flattenDirectoryTreeToRoutes(child, options, layout, pathToRemove, middlewares);\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 if (directory.slots.size > 0) {\n layout.slots = /* @__PURE__ */ new Map();\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = directory.slots[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var [slotName, slotDir] = _step2.value;\n var slotConfig = flattenSlotDirectory(slotDir, slotName, options, pathToRemove);\n layout.slots.set(slotName, slotConfig);\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 }\n return layout;\n}\nfunction flattenSlotDirectory(directory, slotName, options, pathToRemove) {\n var interceptRoutes = [];\n var defaultRoute;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = directory.files.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var routes = _step.value;\n var routeNode = getMostSpecific(routes);\n var cleanRoute = routeNode.route.replace(pathToRemove, \"\");\n cleanRoute = cleanRoute.split(\"/\").filter(function(segment) {\n return !matchSlotName(segment);\n }).map(function(segment) {\n return stripInterceptPrefix(segment);\n }).join(\"/\");\n if (cleanRoute.endsWith(\"default\") || cleanRoute === \"default\") {\n defaultRoute = {\n ...routeNode,\n route: cleanRoute,\n slotName,\n dynamic: generateDynamic(cleanRoute)\n };\n } else {\n interceptRoutes.push({\n ...routeNode,\n route: cleanRoute,\n slotName,\n dynamic: generateDynamic(cleanRoute)\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 var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = directory.subdirectories[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var [subDirName, subDir] = _step1.value;\n var subRoutes = flattenSlotSubdirectory(subDir, slotName, options, pathToRemove, subDirName);\n interceptRoutes.push(...subRoutes);\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 return {\n name: slotName,\n defaultRoute,\n interceptRoutes\n };\n}\nfunction flattenSlotSubdirectory(directory, slotName, options, pathToRemove, currentPath) {\n var routes = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = directory.files.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var fileRoutes = _step.value;\n var routeNode = getMostSpecific(fileRoutes);\n var cleanRoute = routeNode.route.replace(pathToRemove, \"\");\n cleanRoute = cleanRoute.split(\"/\").filter(function(segment) {\n return !matchSlotName(segment);\n }).map(function(segment) {\n return stripInterceptPrefix(segment);\n }).join(\"/\");\n routes.push({\n ...routeNode,\n route: cleanRoute,\n slotName,\n dynamic: generateDynamic(cleanRoute)\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 var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = directory.subdirectories[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var [subDirName, subDir] = _step1.value;\n var subPath = currentPath ? `${currentPath}/${subDirName}` : subDirName;\n routes.push(...flattenSlotSubdirectory(subDir, slotName, options, pathToRemove, subPath));\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 return routes;\n}\nfunction getFileMeta(key, options, parentRenderMode) {\n var _options_platformRoutes;\n key = key.replace(/^\\.\\//, \"\");\n var parts = key.split(\"/\");\n var route = removeSupportedExtensions(key);\n var filename = parts[parts.length - 1];\n var filenameWithoutExtensions = removeSupportedExtensions(filename);\n var isLayout = filenameWithoutExtensions.startsWith(\"_layout\");\n var isMiddleware = filenameWithoutExtensions.startsWith(\"_middleware\");\n var fileRenderMode = matchFileRenderMode(filename);\n var renderMode = fileRenderMode !== null && fileRenderMode !== void 0 ? fileRenderMode : parentRenderMode;\n route = route.split(\"/\").map(function(segment) {\n var dirRenderMode = matchDirectoryRenderMode(segment);\n return dirRenderMode ? dirRenderMode.name : segment;\n }).join(\"/\");\n if (filenameWithoutExtensions.startsWith(\"(\") && filenameWithoutExtensions.endsWith(\")\")) {\n throw new Error(`Invalid route ./${key}. Routes cannot end with '(group)' syntax`);\n }\n if (renderMode !== \"api\" && filename.startsWith(\"+\") && filenameWithoutExtensions !== \"+not-found\") {\n var renamedRoute = [\n ...parts.slice(0, -1),\n filename.slice(1)\n ].join(\"/\");\n throw new Error(`Invalid route ./${key}. Route nodes cannot start with the '+' character. \"Please rename to ${renamedRoute}\"`);\n }\n var slotName;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = parts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var part = _step.value;\n var match = matchSlotName(part);\n if (match) {\n slotName = match;\n break;\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 var interceptMatch;\n for (var i = 0; i < parts.length; i++) {\n var part1 = parts[i];\n var match1 = matchInterceptPrefix(part1);\n if (match1) {\n var remainingParts = parts.slice(i + 1).map(function(p) {\n return removeSupportedExtensions(p);\n }).filter(function(p) {\n return p !== \"index\";\n });\n var fullTargetPath = [\n match1.targetPath,\n ...remainingParts\n ].filter(Boolean).join(\"/\");\n interceptMatch = {\n ...match1,\n targetPath: fullTargetPath\n };\n break;\n }\n }\n var specificity = 0;\n var platformExtension = filenameWithoutExtensions.split(\".\")[1];\n var hasPlatformExtension = validPlatforms.has(platformExtension);\n var usePlatformRoutes = (_options_platformRoutes = options.platformRoutes) !== null && _options_platformRoutes !== void 0 ? _options_platformRoutes : true;\n if (hasPlatformExtension) {\n if (!usePlatformRoutes) {\n specificity = -1;\n } else if (!options.platform) {\n specificity = -1;\n } else if (platformExtension === options.platform) {\n specificity = 2;\n } else if (platformExtension === \"native\" && options.platform !== \"web\") {\n specificity = 1;\n } else if (platformExtension !== options.platform) {\n specificity = -1;\n }\n if (renderMode === \"api\" && specificity !== 0) {\n throw new Error(`Api routes cannot have platform extensions. Please remove '.${platformExtension}' from './${key}'`);\n }\n route = route.replace(new RegExp(`.${platformExtension}$`), \"\");\n }\n return {\n route,\n specificity,\n isLayout,\n isMiddleware,\n renderMode,\n slotName,\n interceptMatch\n };\n}\nfunction getMostSpecific(routes) {\n var route = routes[routes.length - 1];\n if (!routes[0]) {\n throw new Error(` [one] The file ${route.contextKey} does not have a fallback sibling file without a platform extension in routes (${routes[0]}, ${routes.length}):\n${routes.map(function(r) {\n return r.contextKey || \"NONE\";\n }).join(\"\\n\")}.`);\n }\n return route;\n}\nfunction getIgnoreList(options) {\n var _ref;\n var ignore = [\n /^\\.\\/\\+html\\.[tj]sx?$/,\n ...(_ref = options === null || options === void 0 ? void 0 : options.ignore) !== null && _ref !== void 0 ? _ref : []\n ];\n if ((options === null || options === void 0 ? void 0 : options.preserveApiRoutes) !== true) {\n ignore.push(/\\+api\\.[tj]sx?$/);\n }\n return ignore;\n}\nfunction extrapolateGroups(key) {\n var keys = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : /* @__PURE__ */ new Set();\n var match = matchArrayGroupName(key);\n if (!match) {\n keys.add(key);\n return keys;\n }\n var groups = match.split(\",\");\n var groupsSet = new Set(groups);\n if (groupsSet.size !== groups.length) {\n throw new Error(`Array syntax cannot contain duplicate group name \"${groups}\" in \"${key}\".`);\n }\n if (groups.length === 1) {\n keys.add(key);\n return keys;\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = groups[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var group = _step.value;\n extrapolateGroups(key.replace(match, group.trim()), keys);\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 keys;\n}\nfunction generateDynamic(path) {\n var dynamic = path.split(\"/\").map(function(part) {\n if (part === \"+not-found\") {\n return {\n name: \"+not-found\",\n deep: true,\n notFound: true\n };\n }\n var dynamicMatch = matchDynamicName(part);\n if (!dynamicMatch) return null;\n return {\n name: dynamicMatch.name,\n deep: dynamicMatch.deep\n };\n }).filter(function(part) {\n return !!part;\n });\n return dynamic.length === 0 ? null : dynamic;\n}\nfunction appendSitemapRoute(directory) {\n if (!directory.files.has(\"_sitemap\")) {\n directory.files.set(\"_sitemap\", [\n {\n loadRoute() {\n return {\n default: function _default() {\n return null;\n },\n getNavOptions: function getNavOptions() {\n }\n };\n },\n route: \"_sitemap\",\n type: \"ssg\",\n contextKey: \"\",\n generated: true,\n internal: true,\n dynamic: null,\n children: []\n }\n ]);\n }\n}\nfunction hasNotFoundInGroupSubdirs(directory) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = directory.subdirectories[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [dirName, subDir] = _step.value;\n if (!matchGroupName(dirName)) continue;\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = subDir.files.keys()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var fileKey = _step1.value;\n if (fileKey.endsWith(\"+not-found\")) {\n return true;\n }\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 if (hasNotFoundInGroupSubdirs(subDir)) {\n return true;\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 false;\n}\nfunction appendNotFoundRoute(directory) {\n if (!directory.files.has(\"+not-found\") && !hasNotFoundInGroupSubdirs(directory)) {\n directory.files.set(\"+not-found\", [\n {\n loadRoute() {\n return {\n default: function _default() {\n return null;\n }\n };\n },\n type: \"spa\",\n route: \"+not-found\",\n contextKey: \"\",\n generated: true,\n internal: true,\n dynamic: [\n {\n name: \"+not-found\",\n deep: true,\n notFound: true\n }\n ],\n children: []\n }\n ]);\n }\n}\nfunction getLayoutNode(node, options) {\n var groupName = matchGroupName(node.route);\n var childMatchingGroup = node.children.find(function(child) {\n return child.route.replace(/\\/index$/, \"\") === groupName;\n });\n var initialRouteName = childMatchingGroup === null || childMatchingGroup === void 0 ? void 0 : childMatchingGroup.route;\n return {\n ...node,\n route: node.route.replace(/\\/?_layout$/, \"\"),\n children: [],\n // Each layout should have its own children\n initialRouteName\n };\n}\nfunction crawlAndAppendInitialRoutesAndEntryFiles(node, options) {\n var entryPoints = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n if (node.type === \"spa\" || node.type === \"ssg\" || node.type === \"ssr\") {\n node.entryPoints = [\n .../* @__PURE__ */ new Set([\n ...entryPoints,\n node.contextKey\n ])\n ];\n } else if (node.type === \"layout\") {\n if (!node.children) {\n throw new Error(`Layout \"${node.contextKey}\" does not contain any child routes`);\n }\n entryPoints = [\n ...entryPoints,\n node.contextKey\n ];\n var groupName = matchGroupName(node.route);\n var childMatchingGroup = node.children.find(function(child2) {\n return child2.route.replace(/\\/index$/, \"\") === groupName;\n });\n var initialRouteName = childMatchingGroup === null || childMatchingGroup === void 0 ? void 0 : childMatchingGroup.route;\n var loaded = node.loadRoute();\n if (loaded === null || loaded === void 0 ? void 0 : loaded.unstable_settings) {\n var _loaded_unstable_settings_initialRouteName;\n initialRouteName = (_loaded_unstable_settings_initialRouteName = loaded.unstable_settings.initialRouteName) !== null && _loaded_unstable_settings_initialRouteName !== void 0 ? _loaded_unstable_settings_initialRouteName : initialRouteName;\n if (groupName) {\n var _loaded_unstable_settings_groupName, _loaded_unstable_settings;\n var groupSpecificInitialRouteName = (_loaded_unstable_settings = loaded.unstable_settings) === null || _loaded_unstable_settings === void 0 ? void 0 : (_loaded_unstable_settings_groupName = _loaded_unstable_settings[groupName]) === null || _loaded_unstable_settings_groupName === void 0 ? void 0 : _loaded_unstable_settings_groupName.initialRouteName;\n initialRouteName = groupSpecificInitialRouteName !== null && groupSpecificInitialRouteName !== void 0 ? groupSpecificInitialRouteName : initialRouteName;\n }\n }\n if (initialRouteName) {\n var initialRoute = node.children.find(function(child2) {\n return child2.route === initialRouteName;\n });\n if (!initialRoute) {\n var validInitialRoutes = node.children.filter(function(child2) {\n return !child2.generated;\n }).map(function(child2) {\n return `'${child2.route}'`;\n }).join(\", \");\n if (groupName) {\n throw new Error(`Layout ${node.contextKey} has invalid initialRouteName '${initialRouteName}' for group '(${groupName})'. Valid options are: ${validInitialRoutes}`);\n }\n throw new Error(`Layout ${node.contextKey} has invalid initialRouteName '${initialRouteName}'. Valid options are: ${validInitialRoutes}`);\n }\n node.initialRouteName = initialRouteName;\n entryPoints.push(initialRoute.contextKey);\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = node.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var child = _step.value;\n crawlAndAppendInitialRoutesAndEntryFiles(child, options, entryPoints);\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}\nexport {\n extrapolateGroups,\n generateDynamic,\n getIgnoreList,\n getRoutes\n};\n//# sourceMappingURL=getRoutes.js.map\n"],"mappings":";;;;;;;;;;;;AAGA,IAAI,iCAAiC,IAAI,IAAI;CAC3C;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,SAAS,UAAU,eAAe;CAChC,IAAI,UAAU,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CAChF,IAAI,gBAAgB,iBAAiB,eAAe,OAAO;CAC3D,IAAI,CAAC,eAAe;EAClB,OAAO;CACT;CACA,IAAI,WAAW,6BAA6B,eAAe,OAAO;CAClE,IAAI,CAAC,QAAQ,mBAAmB;EAC9B,yCAAyC,UAAU,OAAO;CAC5D;CACA,OAAO;AACT;AACA,SAAS,iBAAiB,eAAe,SAAS;CAChD,IAAI,aAAa,QAAQ,cAAc,QAAQ,IAAI;CACnD,IAAI,aAAa,CACf,yBAEA,UACF;CACA,IAAI,QAAQ,QAAQ;EAClB,WAAW,KAAK,GAAG,QAAQ,MAAM;CACnC;CACA,IAAI,CAAC,QAAQ,mBAAmB;EAC9B,WAAW,KAAK,iBAAiB;CACnC;CACA,IAAI,gBA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";
|
|
|
6
6
|
import { resolve } from "../link/path.mjs";
|
|
7
7
|
import { checkBlocker } from "../useBlocker.mjs";
|
|
8
8
|
import { assertIsReady } from "../utils/assertIsReady.mjs";
|
|
9
|
-
import { getLoaderPath, getPreloadCSSPath, getPreloadPath } from "../utils/cleanUrl.mjs";
|
|
9
|
+
import { getLoaderPath, getPreloadCSSPath, getPreloadPath, isLoaderBadRequest, splitLoaderKey, toLoaderKey } from "../utils/cleanUrl.mjs";
|
|
10
10
|
import { dynamicImport, isChunkLoadError } from "../utils/dynamicImport.mjs";
|
|
11
11
|
import { PLATFORM } from "../utils/platform.mjs";
|
|
12
12
|
import { isVersionStale } from "../skewProtection.mjs";
|
|
@@ -420,7 +420,7 @@ async function doPreloadDev(href) {
|
|
|
420
420
|
const normalizedPath = normalizeLoaderPath(href);
|
|
421
421
|
if (globalThis["__vxrnHeadless"]) return null;
|
|
422
422
|
try {
|
|
423
|
-
const loaderJSUrl = getLoaderPath(href, true);
|
|
423
|
+
const loaderJSUrl = getLoaderPath(href, true, void 0, splitLoaderKey(normalizedPath)[1]);
|
|
424
424
|
const moduleLoadStart = performance.now();
|
|
425
425
|
const modulePromise = dynamicImport(loaderJSUrl, false);
|
|
426
426
|
if (!modulePromise) return null;
|
|
@@ -459,7 +459,7 @@ async function doPreload(href) {
|
|
|
459
459
|
if (globalThis["__vxrnHeadless"]) return null;
|
|
460
460
|
const artifactPaths = getRouteArtifactPaths(href, getResolvedLinking(), routeNode);
|
|
461
461
|
const preloadPath = getPreloadPath(artifactPaths.preload);
|
|
462
|
-
const loaderPath = getLoaderPath(artifactPaths.loader);
|
|
462
|
+
const loaderPath = getLoaderPath(artifactPaths.loader, void 0, void 0, splitLoaderKey(normalizeLoaderPath(href))[1]);
|
|
463
463
|
const cssPreloadPath = getPreloadCSSPath(artifactPaths.preload);
|
|
464
464
|
recordPreloadStart(href);
|
|
465
465
|
try {
|
|
@@ -543,38 +543,56 @@ function getPreloadHistory() {
|
|
|
543
543
|
return preloadHistory;
|
|
544
544
|
}
|
|
545
545
|
function preloadRoute(href, injectCSS = false) {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
setBoundedPreloadRecord(
|
|
546
|
+
{
|
|
547
|
+
if (!shouldPreloadRoute(href)) return;
|
|
548
|
+
if (process.env.NODE_ENV === "development") {
|
|
549
|
+
const normalizedHref = normalizeLoaderPath(href);
|
|
550
|
+
if (!preloadingLoader[normalizedHref]) setBoundedPreloadRecord(preloadingLoader, normalizedHref, doPreloadDev(href).then((data) => {
|
|
551
|
+
if (isLoaderBadRequest(data)) {
|
|
552
|
+
delete preloadingLoader[normalizedHref];
|
|
553
|
+
return data;
|
|
554
|
+
}
|
|
555
|
+
setBoundedPreloadRecord(preloadedLoaderData, normalizedHref, data);
|
|
556
|
+
return data;
|
|
557
|
+
}));
|
|
558
|
+
return preloadingLoader[normalizedHref];
|
|
559
|
+
}
|
|
560
|
+
const preloadKey = splitLoaderKey(normalizeLoaderPath(href))[1] ? normalizeLoaderPath(href) : href;
|
|
561
|
+
if (!preloadingLoader[preloadKey]) setBoundedPreloadRecord(preloadingLoader, preloadKey, doPreload(href).then((data) => {
|
|
562
|
+
if (isLoaderBadRequest(data)) {
|
|
563
|
+
delete preloadingLoader[preloadKey];
|
|
564
|
+
return data;
|
|
565
|
+
}
|
|
566
|
+
setBoundedPreloadRecord(preloadedLoaderData, preloadKey, data);
|
|
551
567
|
return data;
|
|
568
|
+
}).catch((err) => {
|
|
569
|
+
delete preloadingLoader[preloadKey];
|
|
570
|
+
throw err;
|
|
552
571
|
}));
|
|
553
|
-
return preloadingLoader[
|
|
572
|
+
return preloadingLoader[preloadKey]?.then(async (data) => {
|
|
573
|
+
if (injectCSS) {
|
|
574
|
+
const inject = cssInjectFunctions[href];
|
|
575
|
+
if (inject) await Promise.race([inject(), new Promise((r) => setTimeout(r, 800))]);
|
|
576
|
+
}
|
|
577
|
+
return data;
|
|
578
|
+
}, (err) => {
|
|
579
|
+
if (injectCSS && process.env.ONE_SKEW_PROTECTION !== "false" && isChunkLoadError(err)) {
|
|
580
|
+
window.location.href = href;
|
|
581
|
+
return new Promise(() => {});
|
|
582
|
+
}
|
|
583
|
+
return null;
|
|
584
|
+
});
|
|
554
585
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
throw err;
|
|
561
|
-
}));
|
|
562
|
-
return preloadingLoader[href]?.then(async (data) => {
|
|
563
|
-
if (injectCSS) {
|
|
564
|
-
const inject = cssInjectFunctions[href];
|
|
565
|
-
if (inject) await Promise.race([inject(), new Promise((r) => setTimeout(r, 800))]);
|
|
566
|
-
}
|
|
567
|
-
return data;
|
|
568
|
-
}, (err) => {
|
|
569
|
-
if (injectCSS && process.env.ONE_SKEW_PROTECTION !== "false" && isChunkLoadError(err)) {
|
|
570
|
-
window.location.href = href;
|
|
571
|
-
return new Promise(() => {});
|
|
572
|
-
}
|
|
573
|
-
return null;
|
|
574
|
-
});
|
|
586
|
+
}
|
|
587
|
+
function isSsrHref(href) {
|
|
588
|
+
const linking = getResolvedLinking();
|
|
589
|
+
if (!linking?.getStateFromPath || !routeNode) return false;
|
|
590
|
+
return findRouteNodeFromState(linking.getStateFromPath(href, linking.config), routeNode)?.type === "ssr";
|
|
575
591
|
}
|
|
576
592
|
function normalizeLoaderPath(href) {
|
|
577
|
-
|
|
593
|
+
const url = new URL(href, "http://example.com");
|
|
594
|
+
const path = url.pathname.replace(/\/index$/, "").replace(/\/$/, "") || "/";
|
|
595
|
+
return url.search && isSsrHref(href) ? toLoaderKey(path, url.search) : path;
|
|
578
596
|
}
|
|
579
597
|
function buildClientMatches(href, matchingNode, params, loaderData) {
|
|
580
598
|
const pathname = extractPathnameFromHref(href);
|
|
@@ -663,8 +681,13 @@ async function linkTo(href, event, options) {
|
|
|
663
681
|
}
|
|
664
682
|
setLoadingState("loading");
|
|
665
683
|
const normalizedPreloadPath = normalizeLoaderPath(href);
|
|
666
|
-
if (!(normalizedPreloadPath in preloadedLoaderData) && !(href in preloadedLoaderData))
|
|
667
|
-
|
|
684
|
+
if (!(normalizedPreloadPath in preloadedLoaderData) && !(href in preloadedLoaderData)) {
|
|
685
|
+
if (isLoaderBadRequest(await preloadRoute(href, true))) {
|
|
686
|
+
setLoadingState("loaded");
|
|
687
|
+
window.location.assign(href);
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
} else if (process.env.NODE_ENV !== "development") {
|
|
668
691
|
const inject = cssInjectFunctions[href];
|
|
669
692
|
if (inject) inject().catch(() => {});
|
|
670
693
|
}
|
|
@@ -844,5 +867,5 @@ function deepEqual(a, b) {
|
|
|
844
867
|
return false;
|
|
845
868
|
}
|
|
846
869
|
|
|
847
|
-
export { canDismiss, canGoBack, cleanup, consumePendingNavigationAction, dismiss, dismissAll, getPreloadHistory, getSafeWindowPathname2 as getSafeWindowPathname, getSortedRoutes, getValidationState, goBack, handleNavigationContainerStateChange, hasAttemptedToHideSplash, initClientMatches, initialPathname, initialState, initialize, isRouteProtected, lastIntendedPathname, linkTo, navigate, navigationRef, preloadRoute, preloadedLoaderData, preloadingLoader, push, registerProtectedRoutes, replace, resolveProtectedHref, rootComponent, rootState, rootStateSnapshot, routeInfo, routeInfoSnapshot, routeNode, setLoadingState, setParams, setValidationState, snapshot, subscribeToLoadingState, subscribeToRootState, subscribeToStore, subscribeToValidationState, unregisterProtectedRoutes, updateState, useOneRouter, useStoreRootState, useStoreRouteInfo, useValidationState };
|
|
870
|
+
export { canDismiss, canGoBack, cleanup, consumePendingNavigationAction, dismiss, dismissAll, getPreloadHistory, getSafeWindowPathname2 as getSafeWindowPathname, getSortedRoutes, getValidationState, goBack, handleNavigationContainerStateChange, hasAttemptedToHideSplash, initClientMatches, initialPathname, initialState, initialize, isRouteProtected, lastIntendedPathname, linkTo, navigate, navigationRef, normalizeLoaderPath, preloadRoute, preloadedLoaderData, preloadingLoader, push, registerProtectedRoutes, replace, resolveProtectedHref, rootComponent, rootState, rootStateSnapshot, routeInfo, routeInfoSnapshot, routeNode, setLoadingState, setParams, setValidationState, snapshot, subscribeToLoadingState, subscribeToRootState, subscribeToStore, subscribeToValidationState, unregisterProtectedRoutes, updateState, useOneRouter, useStoreRootState, useStoreRouteInfo, useValidationState };
|
|
848
871
|
//# sourceMappingURL=router.mjs.map
|