one 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +11 -7
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.cjs +13 -7
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js +13 -7
- 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 +11 -7
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js +13 -7
- 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.tsx +33 -7
- 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":"generateRouteTypes.native.js","names":[],"sources":["cjs/typed-routes/generateRouteTypes.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar generateRouteTypes_exports = {};\n__export(generateRouteTypes_exports, {\n generateRouteTypes: () => generateRouteTypes\n});\nmodule.exports = __toCommonJS(generateRouteTypes_exports);\nvar import_promises = require(\"fs/promises\");\nvar import_path = require(\"path\");\nvar import_fs_extra = __toESM(require(\"fs-extra\"), 1);\nvar import_matchers = require(\"../router/matchers\");\nvar import_useViteRoutes = require(\"../router/useViteRoutes\");\nvar import_routeIndex = require(\"../utils/routeIndex\");\nvar import_getTypedRoutesDeclarationFile = require(\"./getTypedRoutesDeclarationFile\");\nvar import_injectRouteHelpers = require(\"./injectRouteHelpers\");\nasync function generateRouteTypes(outFile, routerRoot, ignoredRouteFiles, typedRoutesMode, routePathsIn) {\n var routePaths = routePathsIn !== null && routePathsIn !== void 0 ? routePathsIn : (0, import_routeIndex.getRoutePaths)(routerRoot, ignoredRouteFiles);\n var routes = routePaths.reduce(function(acc, cur) {\n var vitePath = `/${routerRoot}/${cur.replace(/^\\.\\//, \"\")}`;\n acc[vitePath] = {};\n return acc;\n }, {});\n var context = (0, import_useViteRoutes.globbedRoutesToRouteContext)(routes, routerRoot);\n var declarations = (0, import_getTypedRoutesDeclarationFile.getTypedRoutesDeclarationFile)(context);\n var outDir = (0, import_path.dirname)(outFile);\n var currentDeclarations;\n try {\n currentDeclarations = await (0, import_promises.readFile)(outFile, \"utf8\");\n } catch (error) {\n if (error.code !== \"ENOENT\") {\n throw error;\n }\n }\n if (currentDeclarations !== declarations) {\n await import_fs_extra.default.ensureDir(outDir);\n await (0, import_promises.writeFile)(outFile, declarations);\n }\n if (typedRoutesMode) {\n var mode = typedRoutesMode === \"type\" ? \"type\" : \"runtime\";\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = routePaths[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var routePath = _step.value;\n if (routePath.includes(\"_layout\") || routePath.includes(\"+api\") || routePath.startsWith(\"_\") || routePath.endsWith(\".d.ts\")) {\n continue;\n }\n var fullPath = (0, import_path.join)(process.cwd(), routerRoot, routePath);\n var routeName = routePath.replace(/^\\.\\//, \"\").replace(/\\+[^/]*$/, \"\").replace(/\\/index$/, \"\").replace(/index$/, \"\");\n var cleanRouteName = (0, import_matchers.removeSupportedExtensions)(routeName).replace(/\\/?index$/, \"\");\n if (!cleanRouteName.startsWith(\"/\")) {\n cleanRouteName = \"/\" + cleanRouteName;\n }\n if (!cleanRouteName.includes(\"[\")) {\n continue;\n }\n await (0, import_injectRouteHelpers.injectRouteHelpers)(fullPath, cleanRouteName, mode);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n}\n//# sourceMappingURL=generateRouteTypes.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YA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M;IACzB;IACA,IAAI,CAAC,eAAe,SAAS,GAAG,GAAG;KACjC;IACF;IACA,OAAO,GAAG,0BAA0B,mBAAkB,CAAE,UAAU,gBAAgB,IAAI;GACxF;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":"generateRouteTypes.native.js","names":[],"sources":["cjs/typed-routes/generateRouteTypes.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar generateRouteTypes_exports = {};\n__export(generateRouteTypes_exports, {\n generateRouteTypes: () => generateRouteTypes\n});\nmodule.exports = __toCommonJS(generateRouteTypes_exports);\nvar import_promises = require(\"fs/promises\");\nvar import_path = require(\"path\");\nvar import_fs_extra = __toESM(require(\"fs-extra\"), 1);\nvar import_matchers = require(\"../router/matchers\");\nvar import_useViteRoutes = require(\"../router/useViteRoutes\");\nvar import_routeIndex = require(\"../utils/routeIndex\");\nvar import_getTypedRoutesDeclarationFile = require(\"./getTypedRoutesDeclarationFile\");\nvar import_searchParamSchemas = require(\"./searchParamSchemas\");\nvar import_injectRouteHelpers = require(\"./injectRouteHelpers\");\nvar import_searchSchemaEntries = require(\"./searchSchemaEntries\");\nvar warnedUnassociated = /* @__PURE__ */ new Set();\nfunction toSearchSchemaType(outDir, ref) {\n var specifier = ref.module;\n if (ref.isFile) {\n specifier = (0, import_path.relative)(outDir, ref.module).replaceAll(\"\\\\\", \"/\").replace(/\\.(tsx?|jsx?|mjs)$/, \"\");\n if (!specifier.startsWith(\".\")) specifier = `./${specifier}`;\n }\n var quote = function quote2(text) {\n return `'${text.replace(/[\\\\']/g, \"\\\\$&\")}'`;\n };\n return `typeof import(${quote(specifier)})[${quote(ref.name)}]`;\n}\nasync function generateRouteTypes(outFile, routerRoot, ignoredRouteFiles, typedRoutesMode, routePathsIn) {\n var routePaths = routePathsIn !== null && routePathsIn !== void 0 ? routePathsIn : (0, import_routeIndex.getRoutePaths)(routerRoot, ignoredRouteFiles);\n var routes = routePaths.reduce(function(acc, cur) {\n var vitePath = `/${routerRoot}/${cur.replace(/^\\.\\//, \"\")}`;\n acc[vitePath] = {};\n return acc;\n }, {});\n var context = (0, import_useViteRoutes.globbedRoutesToRouteContext)(routes, routerRoot);\n var outDir = (0, import_path.dirname)(outFile);\n var { scan: scanSearchSchemas } = (0, import_searchParamSchemas.createSearchSchemaScanner)(process.cwd());\n var scannedFiles = /* @__PURE__ */ new Set();\n var declarations = (0, import_getTypedRoutesDeclarationFile.getTypedRoutesDeclarationFile)(context, {\n getSearchParamTypes(contextKey) {\n var scan = scanSearchSchemas((0, import_searchSchemaEntries.getSearchSchemaEntries)(routePaths, contextKey).map(function(key) {\n return (0, import_path.join)(process.cwd(), routerRoot, key);\n }));\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = scan.files[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var file = _step2.value;\n scannedFiles.add(file);\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 _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = scan.unassociated[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var { file: file1, line } = _step1.value;\n var where = `${(0, import_path.relative)(process.cwd(), file1)}:${line}`;\n if (warnedUnassociated.has(where)) continue;\n warnedUnassociated.add(where);\n console.warn(`[one] ${where}: useSearchParams(schema) needs the schema to be an exported constant (or an import of one) so links can be typed from it`);\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 scan.schemas.map(function(ref) {\n return toSearchSchemaType(outDir, ref);\n });\n }\n });\n var currentDeclarations;\n try {\n currentDeclarations = await (0, import_promises.readFile)(outFile, \"utf8\");\n } catch (error) {\n if (error.code !== \"ENOENT\") {\n throw error;\n }\n }\n if (currentDeclarations !== declarations) {\n await import_fs_extra.default.ensureDir(outDir);\n await (0, import_promises.writeFile)(outFile, declarations);\n }\n if (typedRoutesMode) {\n var mode = typedRoutesMode === \"type\" ? \"type\" : \"runtime\";\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = routePaths[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var routePath = _step.value;\n if (routePath.includes(\"_layout\") || routePath.includes(\"+api\") || routePath.startsWith(\"_\") || routePath.endsWith(\".d.ts\")) {\n continue;\n }\n var fullPath = (0, import_path.join)(process.cwd(), routerRoot, routePath);\n var routeName = routePath.replace(/^\\.\\//, \"\").replace(/\\+[^/]*$/, \"\").replace(/\\/index$/, \"\").replace(/index$/, \"\");\n var cleanRouteName = (0, import_matchers.removeSupportedExtensions)(routeName).replace(/\\/?index$/, \"\");\n if (!cleanRouteName.startsWith(\"/\")) {\n cleanRouteName = \"/\" + cleanRouteName;\n }\n if (!cleanRouteName.includes(\"[\")) {\n continue;\n }\n await (0, import_injectRouteHelpers.injectRouteHelpers)(fullPath, cleanRouteName, mode);\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 return scannedFiles;\n}\n//# sourceMappingURL=generateRouteTypes.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,K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");
|
|
26
26
|
const CATCH_ALL = /\[\.\.\..+?\]/g;
|
|
27
27
|
const SLUG = /\[.+?\]/g;
|
|
28
|
-
function getTypedRoutesDeclarationFile(ctx) {
|
|
28
|
+
function getTypedRoutesDeclarationFile(ctx, options = {}) {
|
|
29
29
|
const staticRoutes = /* @__PURE__ */ new Set();
|
|
30
30
|
const dynamicRoutes = /* @__PURE__ */ new Set();
|
|
31
31
|
const dynamicRouteContextKeys = /* @__PURE__ */ new Set();
|
|
32
|
+
const searchParamSchemas = /* @__PURE__ */ new Map();
|
|
32
33
|
walkRouteNode((0, import_getRoutes.getRoutes)(ctx, {
|
|
33
34
|
platformRoutes: false,
|
|
34
35
|
ignoreEntryPoints: true,
|
|
35
36
|
ignoreRequireErrors: true
|
|
36
|
-
}), "", staticRoutes, dynamicRoutes, dynamicRouteContextKeys);
|
|
37
|
+
}), "", staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, options.getSearchParamTypes);
|
|
37
38
|
const hasRoutes = dynamicRouteContextKeys.size > 0;
|
|
38
39
|
return `// deno-lint-ignore-file
|
|
39
40
|
/* eslint-disable */
|
|
@@ -46,7 +47,9 @@ declare module 'one' {
|
|
|
46
47
|
StaticRoutes:${setToUnionType(staticRoutes)}
|
|
47
48
|
DynamicRoutes:${setToUnionType(dynamicRoutes)}
|
|
48
49
|
DynamicRouteTemplate:${setToUnionType(dynamicRouteContextKeys)}
|
|
49
|
-
IsTyped: true
|
|
50
|
+
IsTyped: true${searchParamSchemas.size ? `
|
|
51
|
+
SearchParamTypes: ${generateSearchParamTypesMap(searchParamSchemas, "SearchParamsOf")}
|
|
52
|
+
SearchParamOutputs: ${generateSearchParamTypesMap(searchParamSchemas, "SearchOutputOf")}` : ""}
|
|
50
53
|
${hasRoutes ? `RouteTypes: ${generateRouteTypesMap(dynamicRouteContextKeys)}` : ""}
|
|
51
54
|
}
|
|
52
55
|
}
|
|
@@ -55,12 +58,18 @@ ${hasRoutes ? `
|
|
|
55
58
|
/**
|
|
56
59
|
* Helper type for route information
|
|
57
60
|
*/
|
|
58
|
-
type RouteInfo<Params = Record<string, never
|
|
61
|
+
type RouteInfo<Params = Record<string, never>, Path extends string = string> = {
|
|
59
62
|
Params: Params
|
|
60
|
-
LoaderProps:
|
|
63
|
+
LoaderProps: import('one').LoaderProps<Params, OneRouter.LoaderSearchParams<Path>>
|
|
61
64
|
}` : ""}
|
|
62
65
|
`.trim();
|
|
63
66
|
}
|
|
67
|
+
function generateSearchParamTypesMap(searchParamSchemas, wrapper) {
|
|
68
|
+
const entries = [...searchParamSchemas].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([routePath, schemas]) => ` '${routePath}': ${schemas.map((schema) => `OneRouter.${wrapper}<${schema}>`).join(" & ")}`).join("\n");
|
|
69
|
+
return `{
|
|
70
|
+
${entries}
|
|
71
|
+
}`;
|
|
72
|
+
}
|
|
64
73
|
function generateRouteTypesMap(dynamicRouteContextKeys) {
|
|
65
74
|
if (dynamicRouteContextKeys.size === 0) {
|
|
66
75
|
return "{}";
|
|
@@ -69,7 +78,7 @@ function generateRouteTypesMap(dynamicRouteContextKeys) {
|
|
|
69
78
|
const entries = routes.map((routePath) => {
|
|
70
79
|
const params = extractParams(routePath);
|
|
71
80
|
const paramsType = params.length === 0 ? "{}" : generateInlineParamsType(params);
|
|
72
|
-
return ` '${routePath}': RouteInfo<${paramsType}>`;
|
|
81
|
+
return ` '${routePath}': RouteInfo<${paramsType}, '${routePath}'>`;
|
|
73
82
|
}).join("\n");
|
|
74
83
|
return `{
|
|
75
84
|
${entries}
|
|
@@ -94,28 +103,36 @@ function generateInlineParamsType(params) {
|
|
|
94
103
|
});
|
|
95
104
|
return `{ ${entries.join("; ")} }`;
|
|
96
105
|
}
|
|
97
|
-
function walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys) {
|
|
106
|
+
function walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes) {
|
|
98
107
|
if (!routeNode) return;
|
|
99
|
-
addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys);
|
|
108
|
+
addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes);
|
|
100
109
|
parentRoutePath = `${(0, import_matchers.removeSupportedExtensions)(`${parentRoutePath}/${routeNode.route}`).replace(/\/?index$/, "")}`;
|
|
101
110
|
for (const child of routeNode.children) {
|
|
102
|
-
walkRouteNode(child, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys);
|
|
111
|
+
walkRouteNode(child, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes);
|
|
103
112
|
}
|
|
104
113
|
}
|
|
105
|
-
function addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys) {
|
|
114
|
+
function addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes) {
|
|
106
115
|
if (!routeNode?.route) return;
|
|
107
116
|
if (!(0, import_matchers.isTypedRoute)(routeNode.route)) return;
|
|
108
117
|
let routePath = `${parentRoutePath}/${(0, import_matchers.removeSupportedExtensions)(routeNode.route).replace(/\/?index$/, "")}`;
|
|
109
118
|
if (!routePath.startsWith("/")) {
|
|
110
119
|
routePath = `/${routePath}`;
|
|
111
120
|
}
|
|
121
|
+
const schemaTypes = routeNode.type !== "layout" ? getSearchParamTypes?.(routeNode.contextKey) : void 0;
|
|
122
|
+
const addSearchParamTypes = (path) => {
|
|
123
|
+
if (schemaTypes?.length && !searchParamSchemas.has(path)) {
|
|
124
|
+
searchParamSchemas.set(path, schemaTypes);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
112
127
|
if (routeNode.dynamic) {
|
|
113
128
|
for (const path of generateCombinations(routePath)) {
|
|
129
|
+
addSearchParamTypes(path);
|
|
114
130
|
dynamicRouteContextKeys.add(path);
|
|
115
131
|
dynamicRoutes.add(`${path.replaceAll(CATCH_ALL, "${string}").replaceAll(SLUG, "${OneRouter.SingleRoutePart<T>}")}`);
|
|
116
132
|
}
|
|
117
133
|
} else {
|
|
118
134
|
for (const combination of generateCombinations(routePath)) {
|
|
135
|
+
addSearchParamTypes(combination);
|
|
119
136
|
staticRoutes.add(combination);
|
|
120
137
|
}
|
|
121
138
|
}
|
|
@@ -28,14 +28,16 @@ var import_matchers = require("../router/matchers.native.js");
|
|
|
28
28
|
var CATCH_ALL = /\[\.\.\..+?\]/g;
|
|
29
29
|
var SLUG = /\[.+?\]/g;
|
|
30
30
|
function getTypedRoutesDeclarationFile(ctx) {
|
|
31
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
31
32
|
var staticRoutes = /* @__PURE__ */ new Set();
|
|
32
33
|
var dynamicRoutes = /* @__PURE__ */ new Set();
|
|
33
34
|
var dynamicRouteContextKeys = /* @__PURE__ */ new Set();
|
|
35
|
+
var searchParamSchemas = /* @__PURE__ */ new Map();
|
|
34
36
|
walkRouteNode((0, import_getRoutes.getRoutes)(ctx, {
|
|
35
37
|
platformRoutes: false,
|
|
36
38
|
ignoreEntryPoints: true,
|
|
37
39
|
ignoreRequireErrors: true
|
|
38
|
-
}), "", staticRoutes, dynamicRoutes, dynamicRouteContextKeys);
|
|
40
|
+
}), "", staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, options.getSearchParamTypes);
|
|
39
41
|
var hasRoutes = dynamicRouteContextKeys.size > 0;
|
|
40
42
|
return `// deno-lint-ignore-file
|
|
41
43
|
/* eslint-disable */
|
|
@@ -48,7 +50,9 @@ declare module 'one' {
|
|
|
48
50
|
StaticRoutes:${setToUnionType(staticRoutes)}
|
|
49
51
|
DynamicRoutes:${setToUnionType(dynamicRoutes)}
|
|
50
52
|
DynamicRouteTemplate:${setToUnionType(dynamicRouteContextKeys)}
|
|
51
|
-
IsTyped: true
|
|
53
|
+
IsTyped: true${searchParamSchemas.size ? `
|
|
54
|
+
SearchParamTypes: ${generateSearchParamTypesMap(searchParamSchemas, "SearchParamsOf")}
|
|
55
|
+
SearchParamOutputs: ${generateSearchParamTypesMap(searchParamSchemas, "SearchOutputOf")}` : ""}
|
|
52
56
|
${hasRoutes ? `RouteTypes: ${generateRouteTypesMap(dynamicRouteContextKeys)}` : ""}
|
|
53
57
|
}
|
|
54
58
|
}
|
|
@@ -57,12 +61,26 @@ ${hasRoutes ? `
|
|
|
57
61
|
/**
|
|
58
62
|
* Helper type for route information
|
|
59
63
|
*/
|
|
60
|
-
type RouteInfo<Params = Record<string, never
|
|
64
|
+
type RouteInfo<Params = Record<string, never>, Path extends string = string> = {
|
|
61
65
|
Params: Params
|
|
62
|
-
LoaderProps:
|
|
66
|
+
LoaderProps: import('one').LoaderProps<Params, OneRouter.LoaderSearchParams<Path>>
|
|
63
67
|
}` : ""}
|
|
64
68
|
`.trim();
|
|
65
69
|
}
|
|
70
|
+
function generateSearchParamTypesMap(searchParamSchemas, wrapper) {
|
|
71
|
+
var entries = [...searchParamSchemas].sort(function(param, param1) {
|
|
72
|
+
var [a] = param, [b] = param1;
|
|
73
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
74
|
+
}).map(function(param) {
|
|
75
|
+
var [routePath, schemas] = param;
|
|
76
|
+
return ` '${routePath}': ${schemas.map(function(schema) {
|
|
77
|
+
return `OneRouter.${wrapper}<${schema}>`;
|
|
78
|
+
}).join(" & ")}`;
|
|
79
|
+
}).join("\n");
|
|
80
|
+
return `{
|
|
81
|
+
${entries}
|
|
82
|
+
}`;
|
|
83
|
+
}
|
|
66
84
|
function generateRouteTypesMap(dynamicRouteContextKeys) {
|
|
67
85
|
if (dynamicRouteContextKeys.size === 0) {
|
|
68
86
|
return "{}";
|
|
@@ -71,7 +89,7 @@ function generateRouteTypesMap(dynamicRouteContextKeys) {
|
|
|
71
89
|
var entries = routes.map(function(routePath) {
|
|
72
90
|
var params = extractParams(routePath);
|
|
73
91
|
var paramsType = params.length === 0 ? "{}" : generateInlineParamsType(params);
|
|
74
|
-
return ` '${routePath}': RouteInfo<${paramsType}>`;
|
|
92
|
+
return ` '${routePath}': RouteInfo<${paramsType}, '${routePath}'>`;
|
|
75
93
|
}).join("\n");
|
|
76
94
|
return `{
|
|
77
95
|
${entries}
|
|
@@ -96,15 +114,15 @@ function generateInlineParamsType(params) {
|
|
|
96
114
|
});
|
|
97
115
|
return `{ ${entries.join("; ")} }`;
|
|
98
116
|
}
|
|
99
|
-
function walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys) {
|
|
117
|
+
function walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes) {
|
|
100
118
|
if (!routeNode) return;
|
|
101
|
-
addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys);
|
|
119
|
+
addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes);
|
|
102
120
|
parentRoutePath = `${(0, import_matchers.removeSupportedExtensions)(`${parentRoutePath}/${routeNode.route}`).replace(/\/?index$/, "")}`;
|
|
103
121
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
104
122
|
try {
|
|
105
123
|
for (var _iterator = routeNode.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
106
124
|
var child = _step.value;
|
|
107
|
-
walkRouteNode(child, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys);
|
|
125
|
+
walkRouteNode(child, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes);
|
|
108
126
|
}
|
|
109
127
|
} catch (err) {
|
|
110
128
|
_didIteratorError = true;
|
|
@@ -121,18 +139,25 @@ function walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes,
|
|
|
121
139
|
}
|
|
122
140
|
}
|
|
123
141
|
}
|
|
124
|
-
function addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys) {
|
|
142
|
+
function addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes) {
|
|
125
143
|
if (!(routeNode === null || routeNode === void 0 ? void 0 : routeNode.route)) return;
|
|
126
144
|
if (!(0, import_matchers.isTypedRoute)(routeNode.route)) return;
|
|
127
145
|
var routePath = `${parentRoutePath}/${(0, import_matchers.removeSupportedExtensions)(routeNode.route).replace(/\/?index$/, "")}`;
|
|
128
146
|
if (!routePath.startsWith("/")) {
|
|
129
147
|
routePath = `/${routePath}`;
|
|
130
148
|
}
|
|
149
|
+
var schemaTypes = routeNode.type !== "layout" ? getSearchParamTypes === null || getSearchParamTypes === void 0 ? void 0 : getSearchParamTypes(routeNode.contextKey) : void 0;
|
|
150
|
+
var addSearchParamTypes = function addSearchParamTypes2(path2) {
|
|
151
|
+
if ((schemaTypes === null || schemaTypes === void 0 ? void 0 : schemaTypes.length) && !searchParamSchemas.has(path2)) {
|
|
152
|
+
searchParamSchemas.set(path2, schemaTypes);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
131
155
|
if (routeNode.dynamic) {
|
|
132
156
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
133
157
|
try {
|
|
134
158
|
for (var _iterator = generateCombinations(routePath)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
135
159
|
var path = _step.value;
|
|
160
|
+
addSearchParamTypes(path);
|
|
136
161
|
dynamicRouteContextKeys.add(path);
|
|
137
162
|
dynamicRoutes.add(`${path.replaceAll(CATCH_ALL, "${string}").replaceAll(SLUG, "${OneRouter.SingleRoutePart<T>}")}`);
|
|
138
163
|
}
|
|
@@ -155,6 +180,7 @@ function addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, d
|
|
|
155
180
|
try {
|
|
156
181
|
for (var _iterator1 = generateCombinations(routePath)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
157
182
|
var combination = _step1.value;
|
|
183
|
+
addSearchParamTypes(combination);
|
|
158
184
|
staticRoutes.add(combination);
|
|
159
185
|
}
|
|
160
186
|
} catch (err) {
|
|
@@ -28,14 +28,16 @@ var import_matchers = require("../router/matchers.native.js");
|
|
|
28
28
|
var CATCH_ALL = /\[\.\.\..+?\]/g;
|
|
29
29
|
var SLUG = /\[.+?\]/g;
|
|
30
30
|
function getTypedRoutesDeclarationFile(ctx) {
|
|
31
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
31
32
|
var staticRoutes = /* @__PURE__ */ new Set();
|
|
32
33
|
var dynamicRoutes = /* @__PURE__ */ new Set();
|
|
33
34
|
var dynamicRouteContextKeys = /* @__PURE__ */ new Set();
|
|
35
|
+
var searchParamSchemas = /* @__PURE__ */ new Map();
|
|
34
36
|
walkRouteNode((0, import_getRoutes.getRoutes)(ctx, {
|
|
35
37
|
platformRoutes: false,
|
|
36
38
|
ignoreEntryPoints: true,
|
|
37
39
|
ignoreRequireErrors: true
|
|
38
|
-
}), "", staticRoutes, dynamicRoutes, dynamicRouteContextKeys);
|
|
40
|
+
}), "", staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, options.getSearchParamTypes);
|
|
39
41
|
var hasRoutes = dynamicRouteContextKeys.size > 0;
|
|
40
42
|
return `// deno-lint-ignore-file
|
|
41
43
|
/* eslint-disable */
|
|
@@ -48,7 +50,9 @@ declare module 'one' {
|
|
|
48
50
|
StaticRoutes:${setToUnionType(staticRoutes)}
|
|
49
51
|
DynamicRoutes:${setToUnionType(dynamicRoutes)}
|
|
50
52
|
DynamicRouteTemplate:${setToUnionType(dynamicRouteContextKeys)}
|
|
51
|
-
IsTyped: true
|
|
53
|
+
IsTyped: true${searchParamSchemas.size ? `
|
|
54
|
+
SearchParamTypes: ${generateSearchParamTypesMap(searchParamSchemas, "SearchParamsOf")}
|
|
55
|
+
SearchParamOutputs: ${generateSearchParamTypesMap(searchParamSchemas, "SearchOutputOf")}` : ""}
|
|
52
56
|
${hasRoutes ? `RouteTypes: ${generateRouteTypesMap(dynamicRouteContextKeys)}` : ""}
|
|
53
57
|
}
|
|
54
58
|
}
|
|
@@ -57,12 +61,26 @@ ${hasRoutes ? `
|
|
|
57
61
|
/**
|
|
58
62
|
* Helper type for route information
|
|
59
63
|
*/
|
|
60
|
-
type RouteInfo<Params = Record<string, never
|
|
64
|
+
type RouteInfo<Params = Record<string, never>, Path extends string = string> = {
|
|
61
65
|
Params: Params
|
|
62
|
-
LoaderProps:
|
|
66
|
+
LoaderProps: import('one').LoaderProps<Params, OneRouter.LoaderSearchParams<Path>>
|
|
63
67
|
}` : ""}
|
|
64
68
|
`.trim();
|
|
65
69
|
}
|
|
70
|
+
function generateSearchParamTypesMap(searchParamSchemas, wrapper) {
|
|
71
|
+
var entries = [...searchParamSchemas].sort(function(param, param1) {
|
|
72
|
+
var [a] = param, [b] = param1;
|
|
73
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
74
|
+
}).map(function(param) {
|
|
75
|
+
var [routePath, schemas] = param;
|
|
76
|
+
return ` '${routePath}': ${schemas.map(function(schema) {
|
|
77
|
+
return `OneRouter.${wrapper}<${schema}>`;
|
|
78
|
+
}).join(" & ")}`;
|
|
79
|
+
}).join("\n");
|
|
80
|
+
return `{
|
|
81
|
+
${entries}
|
|
82
|
+
}`;
|
|
83
|
+
}
|
|
66
84
|
function generateRouteTypesMap(dynamicRouteContextKeys) {
|
|
67
85
|
if (dynamicRouteContextKeys.size === 0) {
|
|
68
86
|
return "{}";
|
|
@@ -71,7 +89,7 @@ function generateRouteTypesMap(dynamicRouteContextKeys) {
|
|
|
71
89
|
var entries = routes.map(function(routePath) {
|
|
72
90
|
var params = extractParams(routePath);
|
|
73
91
|
var paramsType = params.length === 0 ? "{}" : generateInlineParamsType(params);
|
|
74
|
-
return ` '${routePath}': RouteInfo<${paramsType}>`;
|
|
92
|
+
return ` '${routePath}': RouteInfo<${paramsType}, '${routePath}'>`;
|
|
75
93
|
}).join("\n");
|
|
76
94
|
return `{
|
|
77
95
|
${entries}
|
|
@@ -96,15 +114,15 @@ function generateInlineParamsType(params) {
|
|
|
96
114
|
});
|
|
97
115
|
return `{ ${entries.join("; ")} }`;
|
|
98
116
|
}
|
|
99
|
-
function walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys) {
|
|
117
|
+
function walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes) {
|
|
100
118
|
if (!routeNode) return;
|
|
101
|
-
addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys);
|
|
119
|
+
addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes);
|
|
102
120
|
parentRoutePath = `${(0, import_matchers.removeSupportedExtensions)(`${parentRoutePath}/${routeNode.route}`).replace(/\/?index$/, "")}`;
|
|
103
121
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
104
122
|
try {
|
|
105
123
|
for (var _iterator = routeNode.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
106
124
|
var child = _step.value;
|
|
107
|
-
walkRouteNode(child, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys);
|
|
125
|
+
walkRouteNode(child, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes);
|
|
108
126
|
}
|
|
109
127
|
} catch (err) {
|
|
110
128
|
_didIteratorError = true;
|
|
@@ -121,18 +139,25 @@ function walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes,
|
|
|
121
139
|
}
|
|
122
140
|
}
|
|
123
141
|
}
|
|
124
|
-
function addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys) {
|
|
142
|
+
function addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes) {
|
|
125
143
|
if (!(routeNode === null || routeNode === void 0 ? void 0 : routeNode.route)) return;
|
|
126
144
|
if (!(0, import_matchers.isTypedRoute)(routeNode.route)) return;
|
|
127
145
|
var routePath = `${parentRoutePath}/${(0, import_matchers.removeSupportedExtensions)(routeNode.route).replace(/\/?index$/, "")}`;
|
|
128
146
|
if (!routePath.startsWith("/")) {
|
|
129
147
|
routePath = `/${routePath}`;
|
|
130
148
|
}
|
|
149
|
+
var schemaTypes = routeNode.type !== "layout" ? getSearchParamTypes === null || getSearchParamTypes === void 0 ? void 0 : getSearchParamTypes(routeNode.contextKey) : void 0;
|
|
150
|
+
var addSearchParamTypes = function addSearchParamTypes2(path2) {
|
|
151
|
+
if ((schemaTypes === null || schemaTypes === void 0 ? void 0 : schemaTypes.length) && !searchParamSchemas.has(path2)) {
|
|
152
|
+
searchParamSchemas.set(path2, schemaTypes);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
131
155
|
if (routeNode.dynamic) {
|
|
132
156
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
133
157
|
try {
|
|
134
158
|
for (var _iterator = generateCombinations(routePath)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
135
159
|
var path = _step.value;
|
|
160
|
+
addSearchParamTypes(path);
|
|
136
161
|
dynamicRouteContextKeys.add(path);
|
|
137
162
|
dynamicRoutes.add(`${path.replaceAll(CATCH_ALL, "${string}").replaceAll(SLUG, "${OneRouter.SingleRoutePart<T>}")}`);
|
|
138
163
|
}
|
|
@@ -155,6 +180,7 @@ function addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, d
|
|
|
155
180
|
try {
|
|
156
181
|
for (var _iterator1 = generateCombinations(routePath)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
157
182
|
var combination = _step1.value;
|
|
183
|
+
addSearchParamTypes(combination);
|
|
158
184
|
staticRoutes.add(combination);
|
|
159
185
|
}
|
|
160
186
|
} catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTypedRoutesDeclarationFile.native.js","names":[],"sources":["cjs/typed-routes/getTypedRoutesDeclarationFile.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar getTypedRoutesDeclarationFile_exports = {};\n__export(getTypedRoutesDeclarationFile_exports, {\n getTypedRoutesDeclarationFile: () => getTypedRoutesDeclarationFile\n});\nmodule.exports = __toCommonJS(getTypedRoutesDeclarationFile_exports);\nvar import_getRoutes = require(\"../router/getRoutes\");\nvar import_matchers = require(\"../router/matchers\");\nvar CATCH_ALL = /\\[\\.\\.\\..+?\\]/g;\nvar SLUG = /\\[.+?\\]/g;\nfunction getTypedRoutesDeclarationFile(ctx) {\n var staticRoutes = /* @__PURE__ */ new Set();\n var dynamicRoutes = /* @__PURE__ */ new Set();\n var dynamicRouteContextKeys = /* @__PURE__ */ new Set();\n walkRouteNode(\n (0, import_getRoutes.getRoutes)(ctx, {\n platformRoutes: false,\n // We don't need to generate platform specific routes\n ignoreEntryPoints: true,\n ignoreRequireErrors: true\n }),\n // importMode: 'async',\n \"\",\n staticRoutes,\n dynamicRoutes,\n dynamicRouteContextKeys\n );\n var hasRoutes = dynamicRouteContextKeys.size > 0;\n return `// deno-lint-ignore-file\n/* eslint-disable */\n// biome-ignore: needed import\nimport type { OneRouter } from 'one'\n\ndeclare module 'one' {\n export namespace OneRouter {\n export interface __routes<T extends string = string> extends Record<string, unknown> {\n StaticRoutes:${setToUnionType(staticRoutes)}\n DynamicRoutes:${setToUnionType(dynamicRoutes)}\n DynamicRouteTemplate:${setToUnionType(dynamicRouteContextKeys)}\n IsTyped: true\n ${hasRoutes ? `RouteTypes: ${generateRouteTypesMap(dynamicRouteContextKeys)}` : \"\"}\n }\n }\n}\n${hasRoutes ? `\n/**\n * Helper type for route information\n */\ntype RouteInfo<Params = Record<string, never>> = {\n Params: Params\n LoaderProps: { path: string; search?: string; subdomain?: string; params: Params; request?: Request }\n}` : \"\"}\n`.trim();\n}\nfunction generateRouteTypesMap(dynamicRouteContextKeys) {\n if (dynamicRouteContextKeys.size === 0) {\n return \"{}\";\n }\n var routes = [\n ...dynamicRouteContextKeys\n ].sort();\n var entries = routes.map(function(routePath) {\n var params = extractParams(routePath);\n var paramsType = params.length === 0 ? \"{}\" : generateInlineParamsType(params);\n return ` '${routePath}': RouteInfo<${paramsType}>`;\n }).join(\"\\n\");\n return `{\n${entries}\n }`;\n}\nfunction extractParams(routePath) {\n var params = [];\n var paramRegex = /\\[(\\.\\.\\.)?([\\w]+)\\]/g;\n var match;\n while ((match = paramRegex.exec(routePath)) !== null) {\n params.push({\n name: match[2],\n isCatchAll: match[1] === \"...\"\n });\n }\n return params;\n}\nfunction generateInlineParamsType(params) {\n var entries = params.map(function(p) {\n var type = p.isCatchAll ? \"string[]\" : \"string\";\n return `${p.name}: ${type}`;\n });\n return `{ ${entries.join(\"; \")} }`;\n}\nfunction walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys) {\n if (!routeNode) return;\n addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys);\n parentRoutePath = `${(0, import_matchers.removeSupportedExtensions)(`${parentRoutePath}/${routeNode.route}`).replace(/\\/?index$/, \"\")}`;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = routeNode.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var child = _step.value;\n walkRouteNode(child, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys);\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}\nfunction addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys) {\n if (!(routeNode === null || routeNode === void 0 ? void 0 : routeNode.route)) return;\n if (!(0, import_matchers.isTypedRoute)(routeNode.route)) return;\n var routePath = `${parentRoutePath}/${(0, import_matchers.removeSupportedExtensions)(routeNode.route).replace(/\\/?index$/, \"\")}`;\n if (!routePath.startsWith(\"/\")) {\n routePath = `/${routePath}`;\n }\n if (routeNode.dynamic) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = generateCombinations(routePath)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var path = _step.value;\n dynamicRouteContextKeys.add(path);\n dynamicRoutes.add(\n // biome-ignore lint/suspicious/noTemplateCurlyInString: intentionally generating type string\n `${path.replaceAll(CATCH_ALL, \"${string}\").replaceAll(SLUG, \"${OneRouter.SingleRoutePart<T>}\")}`\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 } else {\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = generateCombinations(routePath)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var combination = _step1.value;\n staticRoutes.add(combination);\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}\nvar setToUnionType = function setToUnionType2(set) {\n if (set.size === 0) return \" never\";\n var sorted = [\n ...set\n ].sort();\n if (sorted.length === 1) return ` \\`${sorted[0]}\\``;\n return \"\\n | \" + sorted.map(function(s) {\n return `\\`${s}\\``;\n }).join(\"\\n | \");\n};\nfunction generateCombinations(pathname) {\n var groups = pathname.split(\"/\").filter(function(part) {\n return part.startsWith(\"(\") && part.endsWith(\")\");\n });\n var combinations = [];\n function generate(currentIndex, currentPath) {\n if (currentIndex === groups.length) {\n combinations.push(currentPath.replace(/\\/{2,}/g, \"/\"));\n return;\n }\n var group = groups[currentIndex];\n var withoutGroup = currentPath.replace(`/${group}`, \"\");\n generate(currentIndex + 1, withoutGroup);\n generate(currentIndex + 1, currentPath);\n }\n generate(0, pathname);\n return combinations;\n}\n//# sourceM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AAI,QAAQ,OAAO;EACnB,IAAI,eAAe,YAAY,QAAQ,IAAI,SAAS,EAAE;EACtD,SAAS,eAAe,GAAG,YAAY;EACvC,SAAS,eAAe,GAAG,WAAW;CACxC;CACA,SAAS,GAAG,QAAQ;CACpB,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"getTypedRoutesDeclarationFile.native.js","names":[],"sources":["cjs/typed-routes/getTypedRoutesDeclarationFile.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar getTypedRoutesDeclarationFile_exports = {};\n__export(getTypedRoutesDeclarationFile_exports, {\n getTypedRoutesDeclarationFile: () => getTypedRoutesDeclarationFile\n});\nmodule.exports = __toCommonJS(getTypedRoutesDeclarationFile_exports);\nvar import_getRoutes = require(\"../router/getRoutes\");\nvar import_matchers = require(\"../router/matchers\");\nvar CATCH_ALL = /\\[\\.\\.\\..+?\\]/g;\nvar SLUG = /\\[.+?\\]/g;\nfunction getTypedRoutesDeclarationFile(ctx) {\n var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var staticRoutes = /* @__PURE__ */ new Set();\n var dynamicRoutes = /* @__PURE__ */ new Set();\n var dynamicRouteContextKeys = /* @__PURE__ */ new Set();\n var searchParamSchemas = /* @__PURE__ */ new Map();\n walkRouteNode(\n (0, import_getRoutes.getRoutes)(ctx, {\n platformRoutes: false,\n // We don't need to generate platform specific routes\n ignoreEntryPoints: true,\n ignoreRequireErrors: true\n }),\n // importMode: 'async',\n \"\",\n staticRoutes,\n dynamicRoutes,\n dynamicRouteContextKeys,\n searchParamSchemas,\n options.getSearchParamTypes\n );\n var hasRoutes = dynamicRouteContextKeys.size > 0;\n return `// deno-lint-ignore-file\n/* eslint-disable */\n// biome-ignore: needed import\nimport type { OneRouter } from 'one'\n\ndeclare module 'one' {\n export namespace OneRouter {\n export interface __routes<T extends string = string> extends Record<string, unknown> {\n StaticRoutes:${setToUnionType(staticRoutes)}\n DynamicRoutes:${setToUnionType(dynamicRoutes)}\n DynamicRouteTemplate:${setToUnionType(dynamicRouteContextKeys)}\n IsTyped: true${searchParamSchemas.size ? `\n SearchParamTypes: ${generateSearchParamTypesMap(searchParamSchemas, \"SearchParamsOf\")}\n SearchParamOutputs: ${generateSearchParamTypesMap(searchParamSchemas, \"SearchOutputOf\")}` : \"\"}\n ${hasRoutes ? `RouteTypes: ${generateRouteTypesMap(dynamicRouteContextKeys)}` : \"\"}\n }\n }\n}\n${hasRoutes ? `\n/**\n * Helper type for route information\n */\ntype RouteInfo<Params = Record<string, never>, Path extends string = string> = {\n Params: Params\n LoaderProps: import('one').LoaderProps<Params, OneRouter.LoaderSearchParams<Path>>\n}` : \"\"}\n`.trim();\n}\nfunction generateSearchParamTypesMap(searchParamSchemas, wrapper) {\n var entries = [\n ...searchParamSchemas\n ].sort(function(param, param1) {\n var [a] = param, [b] = param1;\n return a < b ? -1 : a > b ? 1 : 0;\n }).map(function(param) {\n var [routePath, schemas] = param;\n return ` '${routePath}': ${schemas.map(function(schema) {\n return `OneRouter.${wrapper}<${schema}>`;\n }).join(\" & \")}`;\n }).join(\"\\n\");\n return `{\n${entries}\n }`;\n}\nfunction generateRouteTypesMap(dynamicRouteContextKeys) {\n if (dynamicRouteContextKeys.size === 0) {\n return \"{}\";\n }\n var routes = [\n ...dynamicRouteContextKeys\n ].sort();\n var entries = routes.map(function(routePath) {\n var params = extractParams(routePath);\n var paramsType = params.length === 0 ? \"{}\" : generateInlineParamsType(params);\n return ` '${routePath}': RouteInfo<${paramsType}, '${routePath}'>`;\n }).join(\"\\n\");\n return `{\n${entries}\n }`;\n}\nfunction extractParams(routePath) {\n var params = [];\n var paramRegex = /\\[(\\.\\.\\.)?([\\w]+)\\]/g;\n var match;\n while ((match = paramRegex.exec(routePath)) !== null) {\n params.push({\n name: match[2],\n isCatchAll: match[1] === \"...\"\n });\n }\n return params;\n}\nfunction generateInlineParamsType(params) {\n var entries = params.map(function(p) {\n var type = p.isCatchAll ? \"string[]\" : \"string\";\n return `${p.name}: ${type}`;\n });\n return `{ ${entries.join(\"; \")} }`;\n}\nfunction walkRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes) {\n if (!routeNode) return;\n addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes);\n parentRoutePath = `${(0, import_matchers.removeSupportedExtensions)(`${parentRoutePath}/${routeNode.route}`).replace(/\\/?index$/, \"\")}`;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = routeNode.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var child = _step.value;\n walkRouteNode(child, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes);\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}\nfunction addRouteNode(routeNode, parentRoutePath, staticRoutes, dynamicRoutes, dynamicRouteContextKeys, searchParamSchemas, getSearchParamTypes) {\n if (!(routeNode === null || routeNode === void 0 ? void 0 : routeNode.route)) return;\n if (!(0, import_matchers.isTypedRoute)(routeNode.route)) return;\n var routePath = `${parentRoutePath}/${(0, import_matchers.removeSupportedExtensions)(routeNode.route).replace(/\\/?index$/, \"\")}`;\n if (!routePath.startsWith(\"/\")) {\n routePath = `/${routePath}`;\n }\n var schemaTypes = routeNode.type !== \"layout\" ? getSearchParamTypes === null || getSearchParamTypes === void 0 ? void 0 : getSearchParamTypes(routeNode.contextKey) : void 0;\n var addSearchParamTypes = function addSearchParamTypes2(path2) {\n if ((schemaTypes === null || schemaTypes === void 0 ? void 0 : schemaTypes.length) && !searchParamSchemas.has(path2)) {\n searchParamSchemas.set(path2, schemaTypes);\n }\n };\n if (routeNode.dynamic) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = generateCombinations(routePath)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var path = _step.value;\n addSearchParamTypes(path);\n dynamicRouteContextKeys.add(path);\n dynamicRoutes.add(\n // biome-ignore lint/suspicious/noTemplateCurlyInString: intentionally generating type string\n `${path.replaceAll(CATCH_ALL, \"${string}\").replaceAll(SLUG, \"${OneRouter.SingleRoutePart<T>}\")}`\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 } else {\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = generateCombinations(routePath)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var combination = _step1.value;\n addSearchParamTypes(combination);\n staticRoutes.add(combination);\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}\nvar setToUnionType = function setToUnionType2(set) {\n if (set.size === 0) return \" never\";\n var sorted = [\n ...set\n ].sort();\n if (sorted.length === 1) return ` \\`${sorted[0]}\\``;\n return \"\\n | \" + sorted.map(function(s) {\n return `\\`${s}\\``;\n }).join(\"\\n | \");\n};\nfunction generateCombinations(pathname) {\n var groups = pathname.split(\"/\").filter(function(part) {\n return part.startsWith(\"(\") && part.endsWith(\")\");\n });\n var combinations = [];\n function generate(currentIndex, currentPath) {\n if (currentIndex === groups.length) {\n combinations.push(currentPath.replace(/\\/{2,}/g, \"/\"));\n return;\n }\n var group = groups[currentIndex];\n var withoutGroup = currentPath.replace(`/${group}`, \"\");\n generate(currentIndex + 1, withoutGroup);\n generate(currentIndex + 1, currentPath);\n }\n generate(0, pathname);\n return combinations;\n}\n//# sourceMappingURL=getTypedRoutesDeclarationFile.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,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