one 2.0.0-beta.161.1 → 2.0.0-beta.163.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/android/build.gradle +1 -0
- package/android/portal/CMakeLists.txt +6 -0
- package/android/portal/react/renderer/components/OneNativeSpec/ComponentDescriptors.h +3 -0
- package/android/src/main/java/dev/onejs/one/OnePackage.kt +6 -0
- package/android/src/main/java/dev/onejs/onenative/OneNativePagerManager.kt +226 -0
- package/android/src/main/java/dev/onejs/onenative/OneNativePortal.kt +174 -0
- package/cpp/OneNativePortalShadowNode.cpp +4 -0
- package/cpp/OneNativePortalShadowNode.h +52 -0
- package/cpp/PORTAL-LICENSE +20 -0
- package/dist/cjs/platform/AndroidMenu.cjs +4 -1
- package/dist/cjs/platform/AndroidMenu.native.cjs +6 -1
- package/dist/cjs/platform/AndroidMenu.native.js +6 -1
- package/dist/cjs/platform/AndroidMenu.native.js.map +1 -1
- package/dist/cjs/platform/Menu.native.cjs +14 -1
- package/dist/cjs/platform/Menu.native.js +14 -1
- package/dist/cjs/platform/Menu.native.js.map +1 -1
- package/dist/cjs/platform/Pager.native.cjs +2 -2
- package/dist/cjs/platform/Pager.native.js +2 -2
- package/dist/cjs/platform/Pager.native.js.map +1 -1
- package/dist/cjs/platform/effects/index.cjs +5 -0
- package/dist/cjs/platform/effects/index.native.cjs +5 -0
- package/dist/cjs/platform/effects/index.native.js +5 -0
- package/dist/cjs/platform/effects/index.native.js.map +1 -1
- package/dist/cjs/platform/menuItems.cjs +51 -0
- package/dist/cjs/platform/menuItems.native.cjs +123 -49
- package/dist/cjs/platform/menuItems.native.js +123 -49
- package/dist/cjs/platform/menuItems.native.js.map +1 -1
- package/dist/cjs/platform/specs/OneKotlinHostNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneKotlinHostNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneKotlinHostNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneKotlinHostNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeAlertNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeAlertNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeAlertNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeAlertNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeAngularGradientNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeAngularGradientNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeAngularGradientNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeAngularGradientNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeArrangementSlotNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeArrangementSlotNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeArrangementSlotNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeArrangementSlotNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeArrangementViewNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeArrangementViewNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeArrangementViewNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeArrangementViewNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeBlurNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeBlurNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeBlurNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeBlurNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeButtonNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeButtonNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeButtonNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeButtonNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeCameraNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeCameraNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeCameraNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeCameraNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeCapsuleNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeCapsuleNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeCapsuleNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeCapsuleNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeCircleNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeCircleNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeCircleNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeCircleNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeColorPickerNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeColorPickerNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeColorPickerNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeColorPickerNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeComposeNodeNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeComposeNodeNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeComposeNodeNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeComposeNodeNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeConcentricRectangleNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeConcentricRectangleNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeConcentricRectangleNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeConcentricRectangleNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeConfirmationDialogNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeConfirmationDialogNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeConfirmationDialogNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeConfirmationDialogNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeContainerSlotNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeContainerSlotNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeContainerSlotNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeContainerSlotNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeContentUnavailableViewNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeContentUnavailableViewNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeContentUnavailableViewNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeContentUnavailableViewNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeControlGroupNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeControlGroupNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeControlGroupNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeControlGroupNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeDatePickerNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeDatePickerNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeDatePickerNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeDatePickerNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeDisclosureGroupNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeDisclosureGroupNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeDisclosureGroupNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeDisclosureGroupNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeDividerNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeDividerNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeDividerNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeDividerNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeEdgeFadeNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeEdgeFadeNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeEdgeFadeNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeEdgeFadeNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeEditButtonNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeEditButtonNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeEditButtonNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeEditButtonNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeEllipseNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeEllipseNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeEllipseNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeEllipseNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeEllipticalGradientNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeEllipticalGradientNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeEllipticalGradientNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeEllipticalGradientNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeEmptyViewNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeEmptyViewNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeEmptyViewNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeEmptyViewNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeFileImporterNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeFileImporterNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeFileImporterNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeFileImporterNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeFormNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeFormNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeFormNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeFormNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeGaugeNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeGaugeNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeGaugeNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeGaugeNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeGlassEffectContainerNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGlassEffectContainerNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGlassEffectContainerNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeGlassEffectContainerNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeGlassNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGlassNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGlassNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeGlassNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeGridNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGridNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGridNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeGridNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeGridRowNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGridRowNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGridRowNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeGridRowNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeGroupBoxNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGroupBoxNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGroupBoxNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeGroupBoxNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeGroupNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGroupNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeGroupNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeGroupNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeHostNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeHostNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeHostNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeHostNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeImageNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeImageNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeImageNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeImageNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeLabelNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeLabelNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeLabelNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeLabelNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeLabeledContentNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLabeledContentNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLabeledContentNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeLabeledContentNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeLazyHGridNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyHGridNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyHGridNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyHGridNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeLazyHStackNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyHStackNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyHStackNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyHStackNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeLazyVGridNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyVGridNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyVGridNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyVGridNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeLazyVStackNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyVStackNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyVStackNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeLazyVStackNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeLinearGradientNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeLinearGradientNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeLinearGradientNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeLinearGradientNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeLinkNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLinkNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeLinkNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeLinkNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeListNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeListNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeListNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeListNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeLivePhotoViewNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeLivePhotoViewNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeLivePhotoViewNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeLivePhotoViewNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeMapNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeMapNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeMapNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeMapNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeMaskNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeMaskNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeMaskNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeMaskNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeMenuNativeComponent.cjs +31 -26
- package/dist/cjs/platform/specs/OneNativeMenuNativeComponent.native.cjs +31 -26
- package/dist/cjs/platform/specs/OneNativeMenuNativeComponent.native.js +31 -26
- package/dist/cjs/platform/specs/OneNativeMenuNativeComponent.native.js.map +3 -3
- package/dist/cjs/platform/specs/OneNativeMeshGradientNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeMeshGradientNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeMeshGradientNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeMeshGradientNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeNavigationStackContentNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeNavigationStackContentNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeNavigationStackContentNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeNavigationStackContentNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeNavigationStackNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeNavigationStackNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeNavigationStackNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeNavigationStackNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeOverlayContentNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeOverlayContentNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeOverlayContentNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeOverlayContentNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeOverlayNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeOverlayNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeOverlayNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeOverlayNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativePagerNativeComponent.cjs +60 -31
- package/dist/cjs/platform/specs/OneNativePagerNativeComponent.native.cjs +60 -31
- package/dist/cjs/platform/specs/OneNativePagerNativeComponent.native.js +60 -31
- package/dist/cjs/platform/specs/OneNativePagerNativeComponent.native.js.map +3 -3
- package/dist/cjs/platform/specs/OneNativePasteButtonNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePasteButtonNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePasteButtonNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativePasteButtonNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativePhotosPickerNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePhotosPickerNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePhotosPickerNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativePhotosPickerNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativePickerNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePickerNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePickerNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativePickerNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativePictureInPictureNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePictureInPictureNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePictureInPictureNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativePictureInPictureNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativePopoverContentNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativePopoverContentNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativePopoverContentNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativePopoverContentNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativePopoverNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePopoverNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativePopoverNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativePopoverNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativePortalHostViewNativeComponent.cjs +32 -0
- package/dist/cjs/platform/specs/OneNativePortalHostViewNativeComponent.native.cjs +32 -0
- package/dist/cjs/platform/specs/OneNativePortalHostViewNativeComponent.native.js +33 -0
- package/dist/cjs/platform/specs/OneNativePortalHostViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneNativePortalViewNativeComponent.cjs +33 -0
- package/dist/cjs/platform/specs/OneNativePortalViewNativeComponent.native.cjs +33 -0
- package/dist/cjs/platform/specs/OneNativePortalViewNativeComponent.native.js +34 -0
- package/dist/cjs/platform/specs/OneNativePortalViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneNativeProgressViewNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeProgressViewNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeProgressViewNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeProgressViewNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeQuickLookNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeQuickLookNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeQuickLookNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeQuickLookNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeRadialGradientNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeRadialGradientNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeRadialGradientNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeRadialGradientNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeRectangleNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeRectangleNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeRectangleNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeRectangleNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeReservedRegionsProviderNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeReservedRegionsProviderNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeReservedRegionsProviderNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeReservedRegionsProviderNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeRoundedRectangleNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeRoundedRectangleNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeRoundedRectangleNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeRoundedRectangleNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSafeAreaProviderNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSafeAreaProviderNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSafeAreaProviderNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeSafeAreaProviderNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeScrollViewNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeScrollViewNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeScrollViewNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeScrollViewNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSectionNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSectionNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSectionNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeSectionNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSecureFieldNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSecureFieldNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSecureFieldNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeSecureFieldNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeShareLinkNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeShareLinkNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeShareLinkNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeShareLinkNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSheetContentNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeSheetContentNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeSheetContentNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeSheetContentNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSheetNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSheetNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSheetNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeSheetNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSignInWithAppleButtonNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSignInWithAppleButtonNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSignInWithAppleButtonNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeSignInWithAppleButtonNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSliderNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSliderNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeSliderNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeSliderNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSpacerNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeSpacerNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeSpacerNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeSpacerNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeStepperNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeStepperNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeStepperNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeStepperNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSwiftPagerNativeComponent.cjs +45 -0
- package/dist/cjs/platform/specs/OneNativeSwiftPagerNativeComponent.native.cjs +45 -0
- package/dist/cjs/platform/specs/OneNativeSwiftPagerNativeComponent.native.js +46 -0
- package/dist/cjs/platform/specs/OneNativeSwiftPagerNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneNativeSwipeActionsActionsNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeSwipeActionsActionsNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeSwipeActionsActionsNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeSwipeActionsActionsNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeSwipeActionsNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeSwipeActionsNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeSwipeActionsNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeSwipeActionsNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeTabNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTabNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTabNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeTabNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeTabsNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTabsNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTabsNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeTabsNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeTextEditorNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTextEditorNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTextEditorNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeTextEditorNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeTextFieldNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTextFieldNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTextFieldNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeTextFieldNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeTextNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTextNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeTextNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeTextNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeToggleNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeToggleNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeToggleNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeToggleNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeToolbarItemGroupNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeToolbarItemGroupNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeToolbarItemGroupNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeToolbarItemGroupNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeToolbarItemNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeToolbarItemNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeToolbarItemNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeToolbarItemNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeToolbarNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeToolbarNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeToolbarNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeToolbarNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeToolbarSpacerNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeToolbarSpacerNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeToolbarSpacerNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeToolbarSpacerNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeUiMapNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeUiMapNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeUiMapNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeUiMapNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeUnevenRoundedRectangleNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeUnevenRoundedRectangleNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeUnevenRoundedRectangleNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeUnevenRoundedRectangleNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeVideoPlayerNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeVideoPlayerNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeVideoPlayerNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeVideoPlayerNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeViewThatFitsNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeViewThatFitsNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeViewThatFitsNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeViewThatFitsNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeWebViewNativeComponent.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeWebViewNativeComponent.native.cjs +25 -25
- package/dist/cjs/platform/specs/OneNativeWebViewNativeComponent.native.js +25 -25
- package/dist/cjs/platform/specs/OneNativeWebViewNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneNativeZStackNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeZStackNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneNativeZStackNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneNativeZStackNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/specs/OneSwiftHostNativeComponent.cjs +23 -23
- package/dist/cjs/platform/specs/OneSwiftHostNativeComponent.native.cjs +23 -23
- package/dist/cjs/platform/specs/OneSwiftHostNativeComponent.native.js +23 -23
- package/dist/cjs/platform/specs/OneSwiftHostNativeComponent.native.js.map +2 -2
- package/dist/cjs/platform/ui/Pager.cjs +208 -0
- package/dist/cjs/platform/ui/Pager.native.cjs +75 -0
- package/dist/cjs/platform/ui/Pager.native.js +77 -0
- package/dist/cjs/platform/ui/Pager.native.js.map +1 -0
- package/dist/cjs/platform/ui/Portal.cjs +138 -0
- package/dist/cjs/platform/ui/Portal.native.cjs +48 -0
- package/dist/cjs/platform/ui/Portal.native.js +50 -0
- package/dist/cjs/platform/ui/Portal.native.js.map +1 -0
- package/dist/cjs/platform/ui/pagerTypes.cjs +42 -0
- package/dist/cjs/platform/ui/pagerTypes.native.cjs +45 -0
- package/dist/cjs/platform/ui/pagerTypes.native.js +47 -0
- package/dist/cjs/platform/ui/pagerTypes.native.js.map +1 -0
- package/dist/cjs/platform/ui/portalTypes.cjs +16 -0
- package/dist/cjs/platform/ui/portalTypes.native.cjs +18 -0
- package/dist/cjs/platform/ui/portalTypes.native.js +20 -0
- package/dist/cjs/platform/ui/portalTypes.native.js.map +1 -0
- package/dist/esm/platform/AndroidMenu.mjs +4 -1
- package/dist/esm/platform/AndroidMenu.mjs.map +1 -1
- package/dist/esm/platform/AndroidMenu.native.js +6 -1
- package/dist/esm/platform/AndroidMenu.native.js.map +1 -1
- package/dist/esm/platform/Menu.native.js +14 -1
- package/dist/esm/platform/Menu.native.js.map +1 -1
- package/dist/esm/platform/Pager.native.js +1 -1
- package/dist/esm/platform/Pager.native.js.map +1 -1
- package/dist/esm/platform/effects/index.mjs +3 -1
- package/dist/esm/platform/effects/index.mjs.map +1 -1
- package/dist/esm/platform/effects/index.native.js +3 -1
- package/dist/esm/platform/menuItems.mjs +51 -0
- package/dist/esm/platform/menuItems.mjs.map +1 -1
- package/dist/esm/platform/menuItems.native.js +123 -49
- package/dist/esm/platform/menuItems.native.js.map +1 -1
- package/dist/esm/platform/specs/OneKotlinHostNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneKotlinHostNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneKotlinHostNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneKotlinHostNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeAlertNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeAlertNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeAlertNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeAlertNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeAngularGradientNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeAngularGradientNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeAngularGradientNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeAngularGradientNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeArrangementSlotNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeArrangementSlotNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeArrangementSlotNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeArrangementSlotNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeArrangementViewNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeArrangementViewNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeArrangementViewNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeArrangementViewNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeBlurNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeBlurNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeBlurNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeBlurNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeButtonNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeButtonNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeButtonNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeButtonNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeCameraNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeCameraNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeCameraNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeCameraNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeCapsuleNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeCapsuleNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeCapsuleNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeCapsuleNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeCircleNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeCircleNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeCircleNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeCircleNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeColorPickerNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeColorPickerNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeColorPickerNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeColorPickerNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeComposeNodeNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeComposeNodeNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeComposeNodeNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeComposeNodeNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeConcentricRectangleNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeConcentricRectangleNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeConcentricRectangleNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeConcentricRectangleNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeConfirmationDialogNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeConfirmationDialogNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeConfirmationDialogNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeConfirmationDialogNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeContainerSlotNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeContainerSlotNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeContainerSlotNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeContainerSlotNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeContentUnavailableViewNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeContentUnavailableViewNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeContentUnavailableViewNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeContentUnavailableViewNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeControlGroupNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeControlGroupNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeControlGroupNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeControlGroupNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeDatePickerNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeDatePickerNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeDatePickerNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeDatePickerNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeDisclosureGroupNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeDisclosureGroupNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeDisclosureGroupNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeDisclosureGroupNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeDividerNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeDividerNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeDividerNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeDividerNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeEdgeFadeNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeEdgeFadeNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeEdgeFadeNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeEdgeFadeNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeEditButtonNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeEditButtonNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeEditButtonNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeEditButtonNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeEllipseNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeEllipseNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeEllipseNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeEllipseNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeEllipticalGradientNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeEllipticalGradientNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeEllipticalGradientNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeEllipticalGradientNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeEmptyViewNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeEmptyViewNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeEmptyViewNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeEmptyViewNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeFileImporterNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeFileImporterNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeFileImporterNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeFileImporterNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeFormNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeFormNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeFormNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeFormNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeGaugeNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeGaugeNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeGaugeNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeGaugeNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeGlassEffectContainerNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeGlassEffectContainerNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeGlassEffectContainerNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeGlassEffectContainerNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeGlassNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeGlassNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeGlassNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeGlassNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeGridNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeGridNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeGridNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeGridNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeGridRowNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeGridRowNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeGridRowNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeGridRowNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeGroupBoxNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeGroupBoxNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeGroupBoxNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeGroupBoxNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeGroupNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeGroupNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeGroupNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeGroupNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeHostNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeHostNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeHostNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeHostNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeImageNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeImageNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeImageNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeImageNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeLabelNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeLabelNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeLabelNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeLabelNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeLabeledContentNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeLabeledContentNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeLabeledContentNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeLabeledContentNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeLazyHGridNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeLazyHGridNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeLazyHGridNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeLazyHGridNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeLazyHStackNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeLazyHStackNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeLazyHStackNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeLazyHStackNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeLazyVGridNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeLazyVGridNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeLazyVGridNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeLazyVGridNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeLazyVStackNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeLazyVStackNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeLazyVStackNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeLazyVStackNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeLinearGradientNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeLinearGradientNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeLinearGradientNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeLinearGradientNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeLinkNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeLinkNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeLinkNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeLinkNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeListNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeListNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeListNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeListNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeLivePhotoViewNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeLivePhotoViewNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeLivePhotoViewNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeLivePhotoViewNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeMapNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeMapNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeMapNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeMapNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeMaskNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeMaskNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeMaskNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeMaskNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeMenuNativeComponent.mjs +14 -9
- package/dist/esm/platform/specs/OneNativeMenuNativeComponent.mjs.map +3 -3
- package/dist/esm/platform/specs/OneNativeMenuNativeComponent.native.js +14 -9
- package/dist/esm/platform/specs/OneNativeMenuNativeComponent.native.js.map +3 -3
- package/dist/esm/platform/specs/OneNativeMeshGradientNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeMeshGradientNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeMeshGradientNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeMeshGradientNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeNavigationStackContentNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeNavigationStackContentNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeNavigationStackContentNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeNavigationStackContentNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeNavigationStackNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeNavigationStackNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeNavigationStackNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeNavigationStackNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeOverlayContentNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeOverlayContentNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeOverlayContentNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeOverlayContentNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeOverlayNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeOverlayNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeOverlayNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeOverlayNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativePagerNativeComponent.mjs +43 -14
- package/dist/esm/platform/specs/OneNativePagerNativeComponent.mjs.map +3 -3
- package/dist/esm/platform/specs/OneNativePagerNativeComponent.native.js +43 -14
- package/dist/esm/platform/specs/OneNativePagerNativeComponent.native.js.map +3 -3
- package/dist/esm/platform/specs/OneNativePasteButtonNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativePasteButtonNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativePasteButtonNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativePasteButtonNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativePhotosPickerNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativePhotosPickerNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativePhotosPickerNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativePhotosPickerNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativePickerNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativePickerNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativePickerNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativePickerNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativePictureInPictureNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativePictureInPictureNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativePictureInPictureNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativePictureInPictureNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativePopoverContentNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativePopoverContentNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativePopoverContentNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativePopoverContentNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativePopoverNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativePopoverNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativePopoverNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativePopoverNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativePortalHostViewNativeComponent.mjs +14 -0
- package/dist/esm/platform/specs/OneNativePortalHostViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneNativePortalHostViewNativeComponent.native.js +14 -0
- package/dist/esm/platform/specs/OneNativePortalHostViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneNativePortalViewNativeComponent.mjs +15 -0
- package/dist/esm/platform/specs/OneNativePortalViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneNativePortalViewNativeComponent.native.js +15 -0
- package/dist/esm/platform/specs/OneNativePortalViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneNativeProgressViewNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeProgressViewNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeProgressViewNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeProgressViewNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeQuickLookNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeQuickLookNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeQuickLookNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeQuickLookNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeRadialGradientNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeRadialGradientNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeRadialGradientNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeRadialGradientNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeRectangleNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeRectangleNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeRectangleNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeRectangleNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeReservedRegionsProviderNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeReservedRegionsProviderNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeReservedRegionsProviderNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeReservedRegionsProviderNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeRoundedRectangleNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeRoundedRectangleNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeRoundedRectangleNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeRoundedRectangleNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSafeAreaProviderNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeSafeAreaProviderNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSafeAreaProviderNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeSafeAreaProviderNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeScrollViewNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeScrollViewNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeScrollViewNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeScrollViewNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSectionNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeSectionNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSectionNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeSectionNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSecureFieldNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeSecureFieldNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSecureFieldNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeSecureFieldNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeShareLinkNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeShareLinkNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeShareLinkNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeShareLinkNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSheetContentNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeSheetContentNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSheetContentNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeSheetContentNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSheetNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeSheetNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSheetNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeSheetNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSignInWithAppleButtonNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeSignInWithAppleButtonNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSignInWithAppleButtonNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeSignInWithAppleButtonNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSliderNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeSliderNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSliderNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeSliderNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSpacerNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeSpacerNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSpacerNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeSpacerNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeStepperNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeStepperNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeStepperNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeStepperNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSwiftPagerNativeComponent.mjs +27 -0
- package/dist/esm/platform/specs/OneNativeSwiftPagerNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneNativeSwiftPagerNativeComponent.native.js +27 -0
- package/dist/esm/platform/specs/OneNativeSwiftPagerNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneNativeSwipeActionsActionsNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeSwipeActionsActionsNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSwipeActionsActionsNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeSwipeActionsActionsNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeSwipeActionsNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeSwipeActionsNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeSwipeActionsNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeSwipeActionsNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeTabNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeTabNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeTabNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeTabNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeTabsNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeTabsNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeTabsNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeTabsNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeTextEditorNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeTextEditorNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeTextEditorNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeTextEditorNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeTextFieldNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeTextFieldNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeTextFieldNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeTextFieldNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeTextNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeTextNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeTextNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeTextNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeToggleNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeToggleNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeToggleNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeToggleNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeToolbarItemGroupNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeToolbarItemGroupNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeToolbarItemGroupNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeToolbarItemGroupNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeToolbarItemNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeToolbarItemNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeToolbarItemNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeToolbarItemNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeToolbarNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeToolbarNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeToolbarNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeToolbarNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeToolbarSpacerNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeToolbarSpacerNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeToolbarSpacerNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeToolbarSpacerNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeUiMapNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeUiMapNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeUiMapNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeUiMapNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeUnevenRoundedRectangleNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeUnevenRoundedRectangleNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeUnevenRoundedRectangleNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeUnevenRoundedRectangleNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeVideoPlayerNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeVideoPlayerNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeVideoPlayerNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeVideoPlayerNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeViewThatFitsNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeViewThatFitsNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeViewThatFitsNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeViewThatFitsNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeWebViewNativeComponent.mjs +8 -8
- package/dist/esm/platform/specs/OneNativeWebViewNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeWebViewNativeComponent.native.js +8 -8
- package/dist/esm/platform/specs/OneNativeWebViewNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneNativeZStackNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneNativeZStackNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneNativeZStackNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneNativeZStackNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/specs/OneSwiftHostNativeComponent.mjs +6 -6
- package/dist/esm/platform/specs/OneSwiftHostNativeComponent.mjs.map +2 -2
- package/dist/esm/platform/specs/OneSwiftHostNativeComponent.native.js +6 -6
- package/dist/esm/platform/specs/OneSwiftHostNativeComponent.native.js.map +2 -2
- package/dist/esm/platform/ui/Pager.mjs +189 -0
- package/dist/esm/platform/ui/Pager.mjs.map +1 -0
- package/dist/esm/platform/ui/Pager.native.js +48 -0
- package/dist/esm/platform/ui/Pager.native.js.map +1 -0
- package/dist/esm/platform/ui/Portal.mjs +116 -0
- package/dist/esm/platform/ui/Portal.mjs.map +1 -0
- package/dist/esm/platform/ui/Portal.native.js +18 -0
- package/dist/esm/platform/ui/Portal.native.js.map +1 -0
- package/dist/esm/platform/ui/pagerTypes.mjs +19 -0
- package/dist/esm/platform/ui/pagerTypes.mjs.map +1 -0
- package/dist/esm/platform/ui/pagerTypes.native.js +20 -0
- package/dist/esm/platform/ui/pagerTypes.native.js.map +1 -0
- package/dist/esm/platform/ui/portalTypes.mjs +0 -0
- package/dist/esm/platform/ui/portalTypes.native.js +0 -0
- package/ios/Generated/OneNativeMenuContent.swift +5 -0
- package/ios/Generated/OneNativeMenuPayload.h +2 -1
- package/ios/OneNativeMenuComponentView.mm +8 -1
- package/ios/OneNativeMenuView.swift +55 -1
- package/ios/OneNativePagerComponentView.h +1 -2
- package/ios/OneNativePagerComponentView.mm +138 -59
- package/ios/OneNativePortalHostView.mm +32 -0
- package/ios/OneNativePortalRegistry.h +23 -0
- package/ios/OneNativePortalRegistry.mm +65 -0
- package/ios/OneNativePortalView.mm +92 -0
- package/ios/OneNativeSwiftPagerComponentView.h +6 -0
- package/ios/OneNativeSwiftPagerComponentView.mm +91 -0
- package/ios/{OneNativePagerView.swift → OneNativeSwiftPagerView.swift} +3 -3
- package/package.json +15 -11
- package/react-native.config.cjs +7 -0
- package/schema.json +91 -1
- package/src/index.ts +4 -0
- package/src/nativeCoverage.test.ts +1 -1
- package/src/platform/AndroidMenu.test.tsx +37 -2
- package/src/platform/AndroidMenu.tsx +4 -0
- package/src/platform/Menu.native.tsx +14 -0
- package/src/platform/Pager.native.tsx +1 -1
- package/src/platform/README.md +12 -4
- package/src/platform/effects/index.native.ts +11 -0
- package/src/platform/effects/index.ts +11 -0
- package/src/platform/generated/types.ts +14 -0
- package/src/platform/index.native.ts +81 -15
- package/src/platform/index.ts +73 -13
- package/src/platform/menuItems.ts +89 -0
- package/src/platform/specs/OneNativeMenuNativeComponent.ts +5 -0
- package/src/platform/specs/OneNativePagerNativeComponent.ts +40 -10
- package/src/platform/specs/OneNativePortalHostViewNativeComponent.ts +9 -0
- package/src/platform/specs/OneNativePortalViewNativeComponent.ts +12 -0
- package/src/platform/specs/OneNativeSwiftPagerNativeComponent.ts +15 -0
- package/src/platform/ui/Pager.native.tsx +71 -0
- package/src/platform/ui/Pager.tsx +227 -0
- package/src/platform/ui/Portal.native.tsx +10 -0
- package/src/platform/ui/Portal.tsx +141 -0
- package/src/platform/ui/pagerTypes.ts +64 -0
- package/src/platform/ui/portalTypes.ts +8 -0
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/platform/AndroidMenu.d.ts.map +1 -1
- package/types/platform/effects/index.d.ts +4 -0
- package/types/platform/effects/index.d.ts.map +1 -1
- package/types/platform/effects/index.native.d.ts +4 -0
- package/types/platform/effects/index.native.d.ts.map +1 -1
- package/types/platform/generated/types.d.ts +13 -1
- package/types/platform/generated/types.d.ts.map +1 -1
- package/types/platform/index.d.ts +11 -9
- package/types/platform/index.d.ts.map +1 -1
- package/types/platform/index.native.d.ts +13 -11
- package/types/platform/index.native.d.ts.map +1 -1
- package/types/platform/menuItems.d.ts.map +1 -1
- package/types/platform/specs/OneNativeMenuNativeComponent.d.ts +8 -0
- package/types/platform/specs/OneNativeMenuNativeComponent.d.ts.map +1 -1
- package/types/platform/specs/OneNativePagerNativeComponent.d.ts +27 -9
- package/types/platform/specs/OneNativePagerNativeComponent.d.ts.map +1 -1
- package/types/platform/specs/OneNativePortalHostViewNativeComponent.d.ts +7 -0
- package/types/platform/specs/OneNativePortalHostViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneNativePortalViewNativeComponent.d.ts +8 -0
- package/types/platform/specs/OneNativePortalViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneNativeSwiftPagerNativeComponent.d.ts +15 -0
- package/types/platform/specs/OneNativeSwiftPagerNativeComponent.d.ts.map +1 -0
- package/types/platform/ui/Pager.d.ts +18 -0
- package/types/platform/ui/Pager.d.ts.map +1 -0
- package/types/platform/ui/Pager.native.d.ts +19 -0
- package/types/platform/ui/Pager.native.d.ts.map +1 -0
- package/types/platform/ui/Portal.d.ts +5 -0
- package/types/platform/ui/Portal.d.ts.map +1 -0
- package/types/platform/ui/Portal.native.d.ts +5 -0
- package/types/platform/ui/Portal.native.d.ts.map +1 -0
- package/types/platform/ui/pagerTypes.d.ts +41 -0
- package/types/platform/ui/pagerTypes.d.ts.map +1 -0
- package/types/platform/ui/portalTypes.d.ts +12 -0
- package/types/platform/ui/portalTypes.d.ts.map +1 -0
package/LICENSE
CHANGED
|
@@ -35,3 +35,27 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
35
35
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
36
36
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
37
37
|
SOFTWARE.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
MIT License
|
|
42
|
+
|
|
43
|
+
Copyright (c) 2021 Callstack
|
|
44
|
+
|
|
45
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
46
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
47
|
+
in the Software without restriction, including without limitation the rights
|
|
48
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
50
|
+
furnished to do so, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
The above copyright notice and this permission notice shall be included in all
|
|
53
|
+
copies or substantial portions of the Software.
|
|
54
|
+
|
|
55
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
56
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
57
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
58
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
59
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
60
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
61
|
+
SOFTWARE.
|
package/android/build.gradle
CHANGED
|
@@ -130,6 +130,7 @@ def kotlinVersion = safeExtGet("kotlinVersion", "2.1.20")
|
|
|
130
130
|
dependencies {
|
|
131
131
|
implementation "com.facebook.react:react-android"
|
|
132
132
|
implementation "androidx.browser:browser:1.9.0"
|
|
133
|
+
implementation "androidx.viewpager2:viewpager2:1.1.0"
|
|
133
134
|
implementation "com.google.android.material:material:1.13.0"
|
|
134
135
|
implementation "androidx.activity:activity:1.9.3"
|
|
135
136
|
// setContent and BackHandler for the share-target compose activity.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.13)
|
|
2
|
+
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../build/generated/source/codegen/jni ${CMAKE_CURRENT_BINARY_DIR}/generated)
|
|
3
|
+
target_sources(react_codegen_OneNativeSpec PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../cpp/OneNativePortalShadowNode.cpp)
|
|
4
|
+
target_include_directories(react_codegen_OneNativeSpec BEFORE PUBLIC
|
|
5
|
+
${CMAKE_CURRENT_LIST_DIR}
|
|
6
|
+
${CMAKE_CURRENT_LIST_DIR}/../../cpp)
|
|
@@ -7,9 +7,12 @@ import com.facebook.react.module.model.ReactModuleInfo
|
|
|
7
7
|
import com.facebook.react.module.model.ReactModuleInfoProvider
|
|
8
8
|
import com.facebook.react.uimanager.ViewManager
|
|
9
9
|
import com.margelo.nitro.one.OneOnLoad
|
|
10
|
+
import dev.onejs.onenative.OneNativePortalViewManager
|
|
11
|
+
import dev.onejs.onenative.OneNativePortalHostViewManager
|
|
10
12
|
import dev.onejs.onenative.OneNativeBlurManager
|
|
11
13
|
import dev.onejs.onenative.OneNativeComposeNodeManager
|
|
12
14
|
import dev.onejs.onenative.OneNativeEdgeFadeManager
|
|
15
|
+
import dev.onejs.onenative.OneNativePagerManager
|
|
13
16
|
import dev.onejs.onenative.OneNativeMaskManager
|
|
14
17
|
import dev.onejs.onenative.OneNativeMenuPopupModule
|
|
15
18
|
import dev.onejs.onenative.OneNativeMenuTriggerManager
|
|
@@ -78,7 +81,10 @@ class OnePackage : BaseReactPackage() {
|
|
|
78
81
|
OneNativeReservedRegionsProviderManager(),
|
|
79
82
|
OneNativeEdgeFadeManager(),
|
|
80
83
|
OneNativeBlurManager(),
|
|
84
|
+
OneNativePortalViewManager(),
|
|
85
|
+
OneNativePortalHostViewManager(),
|
|
81
86
|
OneNativeMaskManager(),
|
|
87
|
+
OneNativePagerManager(),
|
|
82
88
|
OneNativeUiMapManager(),
|
|
83
89
|
OneNativePictureInPictureManager(),
|
|
84
90
|
OneKotlinHostManager(),
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
package dev.onejs.onenative
|
|
2
|
+
|
|
3
|
+
import android.view.View
|
|
4
|
+
import android.view.ViewGroup
|
|
5
|
+
import android.view.MotionEvent
|
|
6
|
+
import android.view.ViewConfiguration
|
|
7
|
+
import android.view.inputmethod.InputMethodManager
|
|
8
|
+
import android.content.Context
|
|
9
|
+
import android.widget.FrameLayout
|
|
10
|
+
import androidx.recyclerview.widget.RecyclerView
|
|
11
|
+
import androidx.viewpager2.widget.ViewPager2
|
|
12
|
+
import com.facebook.react.bridge.Arguments
|
|
13
|
+
import com.facebook.react.bridge.ReadableArray
|
|
14
|
+
import com.facebook.react.module.annotations.ReactModule
|
|
15
|
+
import com.facebook.react.uimanager.ThemedReactContext
|
|
16
|
+
import com.facebook.react.uimanager.UIManagerHelper
|
|
17
|
+
import com.facebook.react.uimanager.ViewGroupManager
|
|
18
|
+
import com.facebook.react.uimanager.ViewManagerDelegate
|
|
19
|
+
import com.facebook.react.uimanager.annotations.ReactProp
|
|
20
|
+
import com.facebook.react.uimanager.events.Event
|
|
21
|
+
import com.facebook.react.uimanager.events.NativeGestureUtil
|
|
22
|
+
import com.facebook.react.viewmanagers.OneNativePagerManagerDelegate
|
|
23
|
+
import com.facebook.react.viewmanagers.OneNativePagerManagerInterface
|
|
24
|
+
import kotlin.math.absoluteValue
|
|
25
|
+
import kotlin.math.sign
|
|
26
|
+
|
|
27
|
+
private class PagerEvent(surfaceId: Int, viewId: Int, private val name: String,
|
|
28
|
+
private val position: Int = 0, private val offset: Double = 0.0,
|
|
29
|
+
private val state: String? = null) : Event<PagerEvent>(surfaceId, viewId) {
|
|
30
|
+
override fun getEventName() = name
|
|
31
|
+
// deliver each native scroll sample without merging it with another frame.
|
|
32
|
+
override fun canCoalesce() = false
|
|
33
|
+
override fun getEventData() = Arguments.createMap().apply {
|
|
34
|
+
if (state != null) putString("pageScrollState", state)
|
|
35
|
+
else { putInt("position", position); if (name == "topPageScroll") putDouble("offset", offset) }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
class OneNativePagerView(val reactContext: ThemedReactContext) : FrameLayout(reactContext) {
|
|
40
|
+
val pages = mutableListOf<View>()
|
|
41
|
+
val pager = ViewPager2(reactContext)
|
|
42
|
+
var initialPage = 0
|
|
43
|
+
var initialized = false
|
|
44
|
+
var dismissKeyboard = false
|
|
45
|
+
var margin = 0f
|
|
46
|
+
private val touchSlop = ViewConfiguration.get(context).scaledTouchSlop
|
|
47
|
+
private var initialX = 0f
|
|
48
|
+
private var initialY = 0f
|
|
49
|
+
private var nativeGestureStarted = false
|
|
50
|
+
private val adapter = object : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
|
|
51
|
+
override fun getItemCount() = pages.size
|
|
52
|
+
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = object : RecyclerView.ViewHolder(
|
|
53
|
+
FrameLayout(parent.context).apply {
|
|
54
|
+
layoutParams = ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
|
|
55
|
+
}) {}
|
|
56
|
+
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
|
|
57
|
+
val frame = holder.itemView as FrameLayout
|
|
58
|
+
holder.setIsRecyclable(false)
|
|
59
|
+
frame.removeAllViews()
|
|
60
|
+
val child = pages[position]
|
|
61
|
+
(child.parent as? ViewGroup)?.removeView(child)
|
|
62
|
+
frame.addView(child, LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT))
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
init {
|
|
66
|
+
layoutParams = ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
|
|
67
|
+
isSaveEnabled = false
|
|
68
|
+
pager.isSaveEnabled = false
|
|
69
|
+
pager.adapter = adapter
|
|
70
|
+
addView(pager, LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT))
|
|
71
|
+
pager.registerOnPageChangeCallback(object : ViewPager2.OnPageChangeCallback() {
|
|
72
|
+
override fun onPageScrolled(position: Int, positionOffset: Float, pixels: Int) {
|
|
73
|
+
emit("topPageScroll", position, positionOffset.toDouble())
|
|
74
|
+
}
|
|
75
|
+
override fun onPageSelected(position: Int) { emit("topPageSelected", position) }
|
|
76
|
+
override fun onPageScrollStateChanged(state: Int) {
|
|
77
|
+
if (state == ViewPager2.SCROLL_STATE_DRAGGING && dismissKeyboard) {
|
|
78
|
+
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
|
79
|
+
imm.hideSoftInputFromWindow(windowToken, 0)
|
|
80
|
+
}
|
|
81
|
+
if (state == ViewPager2.SCROLL_STATE_IDLE) emit("topPageScroll", pager.currentItem)
|
|
82
|
+
emit("topPageScrollStateChanged", state = when (state) {
|
|
83
|
+
ViewPager2.SCROLL_STATE_DRAGGING -> "dragging"
|
|
84
|
+
ViewPager2.SCROLL_STATE_SETTLING -> "settling"
|
|
85
|
+
else -> "idle"
|
|
86
|
+
})
|
|
87
|
+
}
|
|
88
|
+
})
|
|
89
|
+
}
|
|
90
|
+
fun emit(name: String, position: Int = 0, offset: Double = 0.0, state: String? = null) {
|
|
91
|
+
UIManagerHelper.getEventDispatcherForReactTag(reactContext, id)?.dispatchEvent(
|
|
92
|
+
PagerEvent(UIManagerHelper.getSurfaceId(reactContext), id, name, position, offset, state))
|
|
93
|
+
}
|
|
94
|
+
fun pagesChanged(index: Int, count: Int, added: Boolean) {
|
|
95
|
+
val selectedPage = if (initialized) pager.currentItem else initialPage
|
|
96
|
+
if (added) adapter.notifyItemRangeInserted(index, count)
|
|
97
|
+
else adapter.notifyItemRangeRemoved(index, count)
|
|
98
|
+
requestLayout()
|
|
99
|
+
post {
|
|
100
|
+
if (pages.isNotEmpty()) {
|
|
101
|
+
val firstLayout = !initialized
|
|
102
|
+
refreshPagerLayout()
|
|
103
|
+
pager.setCurrentItem(selectedPage.coerceIn(0, pages.lastIndex), false)
|
|
104
|
+
initialized = true
|
|
105
|
+
if (firstLayout) emit("topPageSelected", pager.currentItem)
|
|
106
|
+
emit("topPageScroll", pager.currentItem)
|
|
107
|
+
}
|
|
108
|
+
measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY))
|
|
109
|
+
layout(left, top, right, bottom)
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
private fun refreshPagerLayout() {
|
|
113
|
+
// fabric owns the outer frame; ViewPager2 still needs its requested child layout.
|
|
114
|
+
pager.post {
|
|
115
|
+
pager.measure(MeasureSpec.makeMeasureSpec(pager.width, MeasureSpec.EXACTLY),
|
|
116
|
+
MeasureSpec.makeMeasureSpec(pager.height, MeasureSpec.EXACTLY))
|
|
117
|
+
pager.layout(pager.left, pager.top, pager.right, pager.bottom)
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
fun goTo(index: Int, animated: Boolean) {
|
|
121
|
+
if (!initialized) { initialPage = index; return }
|
|
122
|
+
if (index !in pages.indices) return
|
|
123
|
+
refreshPagerLayout()
|
|
124
|
+
pager.setCurrentItem(index, animated)
|
|
125
|
+
if (!animated) emit("topPageScroll", index)
|
|
126
|
+
}
|
|
127
|
+
override fun onInterceptTouchEvent(event: MotionEvent): Boolean {
|
|
128
|
+
var ancestor = parent as? View
|
|
129
|
+
while (ancestor != null && ancestor !is ViewPager2) ancestor = ancestor.parent as? View
|
|
130
|
+
val orientation = (ancestor as? ViewPager2)?.orientation
|
|
131
|
+
if (event.actionMasked == MotionEvent.ACTION_DOWN) {
|
|
132
|
+
initialX = event.x
|
|
133
|
+
initialY = event.y
|
|
134
|
+
if (orientation != null) parent.requestDisallowInterceptTouchEvent(true)
|
|
135
|
+
} else if (event.actionMasked == MotionEvent.ACTION_MOVE) {
|
|
136
|
+
val dx = event.x - initialX
|
|
137
|
+
val dy = event.y - initialY
|
|
138
|
+
val horizontal = orientation == ViewPager2.ORIENTATION_HORIZONTAL
|
|
139
|
+
val scaledDx = dx.absoluteValue * if (horizontal) .5f else 1f
|
|
140
|
+
val scaledDy = dy.absoluteValue * if (horizontal) 1f else .5f
|
|
141
|
+
if (scaledDx > touchSlop || scaledDy > touchSlop) {
|
|
142
|
+
if (!nativeGestureStarted) {
|
|
143
|
+
NativeGestureUtil.notifyNativeGestureStarted(this, event)
|
|
144
|
+
nativeGestureStarted = true
|
|
145
|
+
}
|
|
146
|
+
if (orientation != null) {
|
|
147
|
+
val perpendicular = horizontal == (scaledDy > scaledDx)
|
|
148
|
+
val direction = -(if (horizontal) dx else dy).sign.toInt()
|
|
149
|
+
val childScrolls = if (horizontal) pager.canScrollHorizontally(direction)
|
|
150
|
+
else pager.canScrollVertically(direction)
|
|
151
|
+
parent.requestDisallowInterceptTouchEvent(!perpendicular && childScrolls)
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return super.onInterceptTouchEvent(event)
|
|
156
|
+
}
|
|
157
|
+
override fun dispatchTouchEvent(event: MotionEvent): Boolean {
|
|
158
|
+
val handled = super.dispatchTouchEvent(event)
|
|
159
|
+
if (nativeGestureStarted && (event.actionMasked == MotionEvent.ACTION_UP || event.actionMasked == MotionEvent.ACTION_CANCEL)) {
|
|
160
|
+
NativeGestureUtil.notifyNativeGestureEnded(this, event)
|
|
161
|
+
nativeGestureStarted = false
|
|
162
|
+
}
|
|
163
|
+
return handled
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@ReactModule(name = OneNativePagerManager.NAME)
|
|
168
|
+
class OneNativePagerManager : ViewGroupManager<OneNativePagerView>(), OneNativePagerManagerInterface<OneNativePagerView> {
|
|
169
|
+
private val delegate = OneNativePagerManagerDelegate(this)
|
|
170
|
+
override fun getDelegate(): ViewManagerDelegate<OneNativePagerView> = delegate
|
|
171
|
+
override fun getName() = NAME
|
|
172
|
+
override fun createViewInstance(context: ThemedReactContext) = OneNativePagerView(context)
|
|
173
|
+
override fun needsCustomLayoutForChildren() = true
|
|
174
|
+
override fun getChildCount(view: OneNativePagerView) = view.pages.size
|
|
175
|
+
override fun getChildAt(view: OneNativePagerView, index: Int) = view.pages[index]
|
|
176
|
+
override fun addView(view: OneNativePagerView, child: View, index: Int) { view.pages.add(index, child); view.pagesChanged(index, 1, true) }
|
|
177
|
+
override fun removeViewAt(view: OneNativePagerView, index: Int) {
|
|
178
|
+
val child = view.pages.removeAt(index)
|
|
179
|
+
(child.parent as? ViewGroup)?.removeView(child)
|
|
180
|
+
view.pagesChanged(index, 1, false)
|
|
181
|
+
}
|
|
182
|
+
override fun removeAllViews(view: OneNativePagerView) {
|
|
183
|
+
val count = view.pages.size
|
|
184
|
+
view.pages.forEach { (it.parent as? ViewGroup)?.removeView(it) }
|
|
185
|
+
view.pages.clear(); view.pagesChanged(0, count, false)
|
|
186
|
+
}
|
|
187
|
+
@ReactProp(name = "initialPage", defaultInt = 0)
|
|
188
|
+
override fun setInitialPage(view: OneNativePagerView, value: Int) { if (!view.initialized) view.initialPage = value }
|
|
189
|
+
@ReactProp(name = "scrollEnabled", defaultBoolean = true)
|
|
190
|
+
override fun setScrollEnabled(view: OneNativePagerView, value: Boolean) { view.pager.isUserInputEnabled = value }
|
|
191
|
+
@ReactProp(name = "orientation")
|
|
192
|
+
override fun setOrientation(view: OneNativePagerView, value: String?) { view.pager.orientation = if (value == "vertical") ViewPager2.ORIENTATION_VERTICAL else ViewPager2.ORIENTATION_HORIZONTAL }
|
|
193
|
+
@ReactProp(name = "layoutDirection")
|
|
194
|
+
override fun setLayoutDirection(view: OneNativePagerView, value: String?) { view.pager.layoutDirection = if (value == "rtl") View.LAYOUT_DIRECTION_RTL else View.LAYOUT_DIRECTION_LTR }
|
|
195
|
+
@ReactProp(name = "offscreenPageLimit", defaultInt = -1)
|
|
196
|
+
override fun setOffscreenPageLimit(view: OneNativePagerView, value: Int) { if (value == -1 || value > 0) view.pager.offscreenPageLimit = value }
|
|
197
|
+
@ReactProp(name = "pageMargin")
|
|
198
|
+
override fun setPageMargin(view: OneNativePagerView, value: Double) {
|
|
199
|
+
view.margin = (value * view.resources.displayMetrics.density).toFloat()
|
|
200
|
+
if (view.margin == 0f) { view.pager.setPageTransformer(null); return }
|
|
201
|
+
view.pager.setPageTransformer { page, position ->
|
|
202
|
+
val offset = view.margin * position
|
|
203
|
+
if (view.pager.orientation == ViewPager2.ORIENTATION_VERTICAL) page.translationY = offset
|
|
204
|
+
else page.translationX = if (view.pager.layoutDirection == View.LAYOUT_DIRECTION_RTL) -offset else offset
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
@ReactProp(name = "overdrag")
|
|
208
|
+
override fun setOverdrag(view: OneNativePagerView, value: Boolean) {}
|
|
209
|
+
@ReactProp(name = "overScrollMode")
|
|
210
|
+
override fun setOverScrollMode(view: OneNativePagerView, value: String?) {
|
|
211
|
+
view.pager.getChildAt(0).overScrollMode = when (value) {
|
|
212
|
+
"never" -> View.OVER_SCROLL_NEVER; "always" -> View.OVER_SCROLL_ALWAYS; else -> View.OVER_SCROLL_IF_CONTENT_SCROLLS
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
@ReactProp(name = "keyboardDismissMode")
|
|
216
|
+
override fun setKeyboardDismissMode(view: OneNativePagerView, value: String?) { view.dismissKeyboard = value == "on-drag" }
|
|
217
|
+
override fun setScrollEnabledImperatively(view: OneNativePagerView, enabled: Boolean) { view.pager.isUserInputEnabled = enabled }
|
|
218
|
+
override fun setPage(view: OneNativePagerView, index: Int) { view.goTo(index, true) }
|
|
219
|
+
override fun setPageWithoutAnimation(view: OneNativePagerView, index: Int) { view.goTo(index, false) }
|
|
220
|
+
override fun receiveCommand(view: OneNativePagerView, commandId: String, args: ReadableArray?) { delegate.receiveCommand(view, commandId, args) }
|
|
221
|
+
override fun getExportedCustomDirectEventTypeConstants() = mutableMapOf(
|
|
222
|
+
"topPageScroll" to mapOf("registrationName" to "onPageScroll"),
|
|
223
|
+
"topPageSelected" to mapOf("registrationName" to "onPageSelected"),
|
|
224
|
+
"topPageScrollStateChanged" to mapOf("registrationName" to "onPageScrollStateChanged"))
|
|
225
|
+
companion object { const val NAME = "OneNativePager" }
|
|
226
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
package dev.onejs.onenative
|
|
2
|
+
|
|
3
|
+
import android.view.View
|
|
4
|
+
import android.view.ViewGroup
|
|
5
|
+
import com.facebook.react.bridge.Arguments
|
|
6
|
+
import com.facebook.react.uimanager.*
|
|
7
|
+
import com.facebook.react.uimanager.annotations.ReactProp
|
|
8
|
+
import com.facebook.react.views.view.ReactViewGroup
|
|
9
|
+
import com.facebook.react.views.view.ReactViewManager
|
|
10
|
+
import java.lang.ref.WeakReference
|
|
11
|
+
|
|
12
|
+
internal object OnePortalRegistry {
|
|
13
|
+
val hosts = mutableMapOf<String, WeakReference<OnePortalHost>>()
|
|
14
|
+
val portals = mutableListOf<WeakReference<OnePortal>>()
|
|
15
|
+
fun refresh() {
|
|
16
|
+
portals.removeAll { it.get() == null }
|
|
17
|
+
val live = portals.mapNotNull { it.get() }
|
|
18
|
+
val offsets = java.util.IdentityHashMap<OnePortalGroup, Int>()
|
|
19
|
+
for ((index, portal) in live.withIndex()) {
|
|
20
|
+
val replaced = portal.portalName != null && live.drop(index + 1).any {
|
|
21
|
+
it.portalName == portal.portalName
|
|
22
|
+
}
|
|
23
|
+
val host = hosts[portal.hostName]?.get()?.takeIf { it.isAttachedToWindow }
|
|
24
|
+
val target = if (replaced) null else host ?: portal
|
|
25
|
+
val offset = if (target == null) 0 else offsets[target] ?: if (target is OnePortalHost) target.ownChildren.size else 0
|
|
26
|
+
portal.moveTo(target, offset)
|
|
27
|
+
if (target != null) offsets[target] = offset + portal.ownChildren.size
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
fun layouts() { portals.forEach { it.get()?.publishLayout() } }
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// physical child lists belong to Android; managers expose the React-owned list.
|
|
34
|
+
// attached moves preserve the window attachment while updating drawing order.
|
|
35
|
+
internal open class OnePortalGroup(context: ThemedReactContext) : ReactViewGroup(context) {
|
|
36
|
+
val ownChildren = mutableListOf<View>()
|
|
37
|
+
fun detach(child: View) {
|
|
38
|
+
endViewTransition(child)
|
|
39
|
+
if (child.hasTransientState()) childHasTransientStateChanged(child, false)
|
|
40
|
+
super.detachViewFromParent(child)
|
|
41
|
+
onViewRemoved(child)
|
|
42
|
+
invalidate()
|
|
43
|
+
}
|
|
44
|
+
fun attach(child: View, index: Int) {
|
|
45
|
+
super.attachViewToParent(child, index, child.layoutParams)
|
|
46
|
+
onViewAdded(child)
|
|
47
|
+
if (child.hasTransientState()) childHasTransientStateChanged(child, true)
|
|
48
|
+
invalidate()
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
internal class OnePortalHost(context: ThemedReactContext) : OnePortalGroup(context) {
|
|
52
|
+
var hostName: String? = null
|
|
53
|
+
fun setHost(name: String?) {
|
|
54
|
+
unregister()
|
|
55
|
+
hostName = name
|
|
56
|
+
if (name != null) OnePortalRegistry.hosts[name] = WeakReference(this)
|
|
57
|
+
OnePortalRegistry.refresh()
|
|
58
|
+
}
|
|
59
|
+
fun unregister() {
|
|
60
|
+
if (OnePortalRegistry.hosts[hostName]?.get() === this) OnePortalRegistry.hosts.remove(hostName)
|
|
61
|
+
OnePortalRegistry.refresh()
|
|
62
|
+
}
|
|
63
|
+
override fun onAttachedToWindow() { super.onAttachedToWindow(); post { OnePortalRegistry.refresh() } }
|
|
64
|
+
override fun onDetachedFromWindow() { super.onDetachedFromWindow(); post { OnePortalRegistry.refresh() } }
|
|
65
|
+
override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) {
|
|
66
|
+
super.onLayout(changed, l, t, r, b)
|
|
67
|
+
OnePortalRegistry.layouts()
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
internal class OnePortal(context: ThemedReactContext) : OnePortalGroup(context) {
|
|
71
|
+
var hostName: String? = null
|
|
72
|
+
var portalName: String? = null
|
|
73
|
+
var state: StateWrapper? = null
|
|
74
|
+
private var target: OnePortalGroup? = this
|
|
75
|
+
private var lastLayout: List<Any>? = null
|
|
76
|
+
init { register() }
|
|
77
|
+
fun register() {
|
|
78
|
+
if (OnePortalRegistry.portals.none { it.get() === this }) OnePortalRegistry.portals.add(WeakReference(this))
|
|
79
|
+
}
|
|
80
|
+
fun moveTo(next: OnePortalGroup?, offset: Int) {
|
|
81
|
+
target = next
|
|
82
|
+
pointerEvents = if (next is OnePortalHost) PointerEvents.NONE else PointerEvents.BOX_NONE
|
|
83
|
+
for ((index, child) in ownChildren.withIndex()) {
|
|
84
|
+
val destinationIndex = offset + index
|
|
85
|
+
val parent = child.parent as? ViewGroup
|
|
86
|
+
if (parent === next && (next == null || next.indexOfChild(child) == destinationIndex)) continue
|
|
87
|
+
val attachedMove = parent is OnePortalGroup && next != null &&
|
|
88
|
+
child.isAttachedToWindow && next.isAttachedToWindow && parent.rootView === next.rootView
|
|
89
|
+
if (attachedMove) (parent as OnePortalGroup).detach(child) else parent?.removeView(child)
|
|
90
|
+
if (next != null) {
|
|
91
|
+
if (attachedMove) next.attach(child, minOf(destinationIndex, next.childCount)) else next.addView(child, minOf(destinationIndex, next.childCount))
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
publishLayout()
|
|
95
|
+
}
|
|
96
|
+
fun publishLayout() {
|
|
97
|
+
val wrapper = state ?: return
|
|
98
|
+
val host = target as? OnePortalHost
|
|
99
|
+
val active = host != null && isAttachedToWindow && host.isAttachedToWindow
|
|
100
|
+
val sourcePoint = IntArray(2)
|
|
101
|
+
val hostPoint = IntArray(2)
|
|
102
|
+
if (active) { getLocationOnScreen(sourcePoint); host!!.getLocationOnScreen(hostPoint) }
|
|
103
|
+
val density = resources.displayMetrics.density
|
|
104
|
+
val width = if (active) host!!.width / density.toDouble() else 0.0
|
|
105
|
+
val height = if (active) host!!.height / density.toDouble() else 0.0
|
|
106
|
+
val x = if (active) (hostPoint[0] - sourcePoint[0]) / density.toDouble() else 0.0
|
|
107
|
+
val y = if (active) (hostPoint[1] - sourcePoint[1]) / density.toDouble() else 0.0
|
|
108
|
+
val layout = listOf(active, width, height, x, y)
|
|
109
|
+
if (lastLayout == layout) return
|
|
110
|
+
lastLayout = layout
|
|
111
|
+
wrapper.updateState(Arguments.createMap().apply {
|
|
112
|
+
putBoolean("active", active); putDouble("hostWidth", width); putDouble("hostHeight", height)
|
|
113
|
+
putDouble("offsetX", x); putDouble("offsetY", y)
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
fun cleanup() {
|
|
117
|
+
OnePortalRegistry.portals.removeAll { it.get() == null || it.get() === this }
|
|
118
|
+
for (child in ownChildren) (child.parent as? ViewGroup)?.removeView(child)
|
|
119
|
+
ownChildren.clear(); state = null; lastLayout = null; target = this; hostName = null; portalName = null
|
|
120
|
+
OnePortalRegistry.refresh()
|
|
121
|
+
}
|
|
122
|
+
override fun onAttachedToWindow() { super.onAttachedToWindow(); publishLayout() }
|
|
123
|
+
override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) {
|
|
124
|
+
super.onLayout(changed, l, t, r, b); publishLayout()
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
class OneNativePortalViewManager : ReactViewManager() {
|
|
129
|
+
override fun getName() = "OneNativePortalView"
|
|
130
|
+
override fun createViewInstance(context: ThemedReactContext): ReactViewGroup = OnePortal(context)
|
|
131
|
+
@ReactProp(name = "hostName") fun setHostName(view: ReactViewGroup, name: String?) {
|
|
132
|
+
(view as OnePortal).register(); view.hostName = name?.takeIf { it.isNotEmpty() }; OnePortalRegistry.refresh()
|
|
133
|
+
}
|
|
134
|
+
@ReactProp(name = "name") fun setName(view: ReactViewGroup, name: String?) {
|
|
135
|
+
(view as OnePortal).register(); view.portalName = name?.takeIf { it.isNotEmpty() }; OnePortalRegistry.refresh()
|
|
136
|
+
}
|
|
137
|
+
override fun updateState(view: ReactViewGroup, props: ReactStylesDiffMap?, state: StateWrapper?): Any? {
|
|
138
|
+
(view as OnePortal).state = state; view.publishLayout(); return null
|
|
139
|
+
}
|
|
140
|
+
override fun addView(parent: ReactViewGroup, child: View, index: Int) {
|
|
141
|
+
(parent as OnePortal).ownChildren.add(index, child); OnePortalRegistry.refresh()
|
|
142
|
+
}
|
|
143
|
+
override fun getChildCount(parent: ReactViewGroup) = (parent as OnePortal).ownChildren.size
|
|
144
|
+
override fun getChildAt(parent: ReactViewGroup, index: Int) = (parent as OnePortal).ownChildren[index]
|
|
145
|
+
override fun removeViewAt(parent: ReactViewGroup, index: Int) {
|
|
146
|
+
val child = (parent as OnePortal).ownChildren.removeAt(index)
|
|
147
|
+
(child.parent as? ViewGroup)?.removeView(child)
|
|
148
|
+
}
|
|
149
|
+
override fun removeAllViews(parent: ReactViewGroup) {
|
|
150
|
+
for (index in getChildCount(parent) - 1 downTo 0) removeViewAt(parent, index)
|
|
151
|
+
}
|
|
152
|
+
override fun onDropViewInstance(view: ReactViewGroup) { (view as OnePortal).cleanup(); super.onDropViewInstance(view) }
|
|
153
|
+
}
|
|
154
|
+
class OneNativePortalHostViewManager : ReactViewManager() {
|
|
155
|
+
override fun getName() = "OneNativePortalHostView"
|
|
156
|
+
override fun createViewInstance(context: ThemedReactContext): ReactViewGroup = OnePortalHost(context).also {
|
|
157
|
+
it.pointerEvents = PointerEvents.BOX_NONE
|
|
158
|
+
}
|
|
159
|
+
@ReactProp(name = "name") fun setName(view: ReactViewGroup, name: String?) { (view as OnePortalHost).setHost(name) }
|
|
160
|
+
override fun addView(parent: ReactViewGroup, child: View, index: Int) {
|
|
161
|
+
(parent as OnePortalHost).ownChildren.add(index, child)
|
|
162
|
+
parent.addView(child, index)
|
|
163
|
+
OnePortalRegistry.refresh()
|
|
164
|
+
}
|
|
165
|
+
override fun getChildCount(parent: ReactViewGroup) = (parent as OnePortalHost).ownChildren.size
|
|
166
|
+
override fun getChildAt(parent: ReactViewGroup, index: Int) = (parent as OnePortalHost).ownChildren[index]
|
|
167
|
+
override fun removeViewAt(parent: ReactViewGroup, index: Int) {
|
|
168
|
+
val child = (parent as OnePortalHost).ownChildren.removeAt(index); parent.removeView(child)
|
|
169
|
+
}
|
|
170
|
+
override fun removeAllViews(parent: ReactViewGroup) {
|
|
171
|
+
for (index in getChildCount(parent) - 1 downTo 0) removeViewAt(parent, index)
|
|
172
|
+
}
|
|
173
|
+
override fun onDropViewInstance(view: ReactViewGroup) { (view as OnePortalHost).unregister(); super.onDropViewInstance(view) }
|
|
174
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include <react/renderer/components/OneNativeSpec/Props.h>
|
|
3
|
+
#include <react/renderer/components/OneNativeSpec/EventEmitters.h>
|
|
4
|
+
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
|
|
5
|
+
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
6
|
+
#include <react/renderer/graphics/Transform.h>
|
|
7
|
+
#ifdef ANDROID
|
|
8
|
+
#include <folly/dynamic.h>
|
|
9
|
+
#endif
|
|
10
|
+
namespace facebook::react {
|
|
11
|
+
class OnePortalState {
|
|
12
|
+
public:
|
|
13
|
+
bool active{false};
|
|
14
|
+
Float hostWidth{0}, hostHeight{0}, offsetX{0}, offsetY{0};
|
|
15
|
+
OnePortalState() = default;
|
|
16
|
+
#ifdef ANDROID
|
|
17
|
+
OnePortalState(const OnePortalState &, folly::dynamic data)
|
|
18
|
+
: active(data["active"].getBool()), hostWidth(data["hostWidth"].getDouble()),
|
|
19
|
+
hostHeight(data["hostHeight"].getDouble()), offsetX(data["offsetX"].getDouble()),
|
|
20
|
+
offsetY(data["offsetY"].getDouble()) {}
|
|
21
|
+
folly::dynamic getDynamic() const {
|
|
22
|
+
return folly::dynamic::object("active", active)("hostWidth", hostWidth)
|
|
23
|
+
("hostHeight", hostHeight)("offsetX", offsetX)("offsetY", offsetY);
|
|
24
|
+
}
|
|
25
|
+
#endif
|
|
26
|
+
};
|
|
27
|
+
extern const char OnePortalComponentName[];
|
|
28
|
+
class OnePortalShadowNode : public ConcreteViewShadowNode<OnePortalComponentName,
|
|
29
|
+
OneNativePortalViewProps, OneNativePortalViewEventEmitter, OnePortalState> {
|
|
30
|
+
public:
|
|
31
|
+
using ConcreteViewShadowNode::ConcreteViewShadowNode;
|
|
32
|
+
Transform getTransform() const override {
|
|
33
|
+
const auto &data = getStateData();
|
|
34
|
+
return ConcreteViewShadowNode::getTransform() *
|
|
35
|
+
Transform::Translate(data.offsetX, data.offsetY, 0);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
class OnePortalComponentDescriptor : public ConcreteComponentDescriptor<OnePortalShadowNode> {
|
|
39
|
+
public:
|
|
40
|
+
using ConcreteComponentDescriptor::ConcreteComponentDescriptor;
|
|
41
|
+
void adopt(ShadowNode &node) const override {
|
|
42
|
+
auto &portal = static_cast<OnePortalShadowNode &>(node);
|
|
43
|
+
const auto &data = portal.getStateData();
|
|
44
|
+
portal.updateYogaProps();
|
|
45
|
+
if (data.active) {
|
|
46
|
+
portal.setPositionType(YGPositionTypeAbsolute);
|
|
47
|
+
portal.setSize(Size{data.hostWidth, data.hostHeight});
|
|
48
|
+
}
|
|
49
|
+
ConcreteComponentDescriptor::adopt(node);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Kiryl Ziusko
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
|
@@ -39,10 +39,13 @@ function popup() {
|
|
|
39
39
|
}
|
|
40
40
|
return popupModule;
|
|
41
41
|
}
|
|
42
|
-
function MenuPresentation({ items, onAction, onValueChange, primaryAction: _primaryAction, children, disabled = false, revision: _revision, menuOrder: _menuOrder, menuActionDismissBehavior: _menuActionDismissBehavior, presentation, ...viewProps }) {
|
|
42
|
+
function MenuPresentation({ items, onAction, onValueChange, onPickerChange: _onPickerChange, primaryAction: _primaryAction, children, disabled = false, revision: _revision, menuOrder: _menuOrder, menuActionDismissBehavior: _menuActionDismissBehavior, presentation, ...viewProps }) {
|
|
43
43
|
const anchor = (0, import_react.useRef)(null);
|
|
44
44
|
const contextAnchor = (0, import_react.useRef)(null);
|
|
45
45
|
const nativeItems = (0, import_menuItems.flattenMenuItems)(items);
|
|
46
|
+
if (nativeItems.some((item) => item.type === "picker")) {
|
|
47
|
+
throw new Error("Menu picker items are not supported on Android");
|
|
48
|
+
}
|
|
46
49
|
if (!onValueChange && nativeItems.some((item) => item.type === "toggle")) {
|
|
47
50
|
throw new Error("Menu with toggles requires onValueChange");
|
|
48
51
|
}
|
|
@@ -42,10 +42,15 @@ function popup() {
|
|
|
42
42
|
return popupModule;
|
|
43
43
|
}
|
|
44
44
|
function MenuPresentation(param) {
|
|
45
|
-
var { items, onAction, onValueChange, primaryAction: _primaryAction, children, disabled = false, revision: _revision, menuOrder: _menuOrder, menuActionDismissBehavior: _menuActionDismissBehavior, presentation, ...viewProps } = param;
|
|
45
|
+
var { items, onAction, onValueChange, onPickerChange: _onPickerChange, primaryAction: _primaryAction, children, disabled = false, revision: _revision, menuOrder: _menuOrder, menuActionDismissBehavior: _menuActionDismissBehavior, presentation, ...viewProps } = param;
|
|
46
46
|
var anchor = (0, import_react.useRef)(null);
|
|
47
47
|
var contextAnchor = (0, import_react.useRef)(null);
|
|
48
48
|
var nativeItems = (0, import_menuItems.flattenMenuItems)(items);
|
|
49
|
+
if (nativeItems.some(function(item) {
|
|
50
|
+
return item.type === "picker";
|
|
51
|
+
})) {
|
|
52
|
+
throw new Error("Menu picker items are not supported on Android");
|
|
53
|
+
}
|
|
49
54
|
if (!onValueChange && nativeItems.some(function(item) {
|
|
50
55
|
return item.type === "toggle";
|
|
51
56
|
})) {
|
|
@@ -42,10 +42,15 @@ function popup() {
|
|
|
42
42
|
return popupModule;
|
|
43
43
|
}
|
|
44
44
|
function MenuPresentation(param) {
|
|
45
|
-
var { items, onAction, onValueChange, primaryAction: _primaryAction, children, disabled = false, revision: _revision, menuOrder: _menuOrder, menuActionDismissBehavior: _menuActionDismissBehavior, presentation, ...viewProps } = param;
|
|
45
|
+
var { items, onAction, onValueChange, onPickerChange: _onPickerChange, primaryAction: _primaryAction, children, disabled = false, revision: _revision, menuOrder: _menuOrder, menuActionDismissBehavior: _menuActionDismissBehavior, presentation, ...viewProps } = param;
|
|
46
46
|
var anchor = (0, import_react.useRef)(null);
|
|
47
47
|
var contextAnchor = (0, import_react.useRef)(null);
|
|
48
48
|
var nativeItems = (0, import_menuItems.flattenMenuItems)(items);
|
|
49
|
+
if (nativeItems.some(function(item) {
|
|
50
|
+
return item.type === "picker";
|
|
51
|
+
})) {
|
|
52
|
+
throw new Error("Menu picker items are not supported on Android");
|
|
53
|
+
}
|
|
49
54
|
if (!onValueChange && nativeItems.some(function(item) {
|
|
50
55
|
return item.type === "toggle";
|
|
51
56
|
})) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AndroidMenu.native.js","names":[],"sources":["cjs/platform/AndroidMenu.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 AndroidMenu_exports = {};\n__export(AndroidMenu_exports, {\n ContextMenu: () => ContextMenu,\n Menu: () => Menu\n});\nmodule.exports = __toCommonJS(AndroidMenu_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = require(\"react\");\nvar import_react_native = require(\"react-native\");\nvar import_menuItems = require(\"./menuItems\");\nvar NativeContextTrigger = (0, import_react_native.requireNativeComponent)(\"OneNativeMenuTrigger\");\nvar popupModule;\nfunction popup() {\n if (popupModule === void 0) {\n popupModule = import_react_native.TurboModuleRegistry.get(\"OneNativeMenuPopup\");\n }\n if (!popupModule) {\n throw new Error(\"Menu needs an Android build\");\n }\n return popupModule;\n}\nfunction MenuPresentation(param) {\n var { items, onAction, onValueChange, primaryAction: _primaryAction, children, disabled = false, revision: _revision, menuOrder: _menuOrder, menuActionDismissBehavior: _menuActionDismissBehavior, presentation, ...viewProps } = param;\n var anchor = (0, import_react.useRef)(null);\n var contextAnchor = (0, import_react.useRef)(null);\n var nativeItems = (0, import_menuItems.flattenMenuItems)(items);\n if (!onValueChange && nativeItems.some(function(item) {\n return item.type === \"toggle\";\n })) {\n throw new Error(\"Menu with toggles requires onValueChange\");\n }\n var open = async function() {\n if (disabled) return;\n var anchorTag = (0, import_react_native.findNodeHandle)(presentation === \"contextMenu\" ? contextAnchor.current : anchor.current);\n if (anchorTag == null) throw new Error(\"Menu trigger has no native view\");\n var selection = await popup().show(anchorTag, nativeItems);\n if ((selection === null || selection === void 0 ? void 0 : selection.type) === \"action\") onAction(selection.id);\n if ((selection === null || selection === void 0 ? void 0 : selection.type) === \"toggle\") {\n onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(selection.id, selection.value, selection.sourceIndex);\n }\n };\n if (presentation === \"contextMenu\") {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeContextTrigger, {\n ref: contextAnchor,\n collapsable: false,\n ...viewProps,\n contextMenuEnabled: !disabled,\n onNativeMenuLongPress: open,\n children\n });\n }\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.Pressable, {\n disabled,\n onPress: open,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.View, {\n ref: anchor,\n collapsable: false,\n ...viewProps,\n children\n })\n });\n}\nfunction Menu(props) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPresentation, {\n ...props,\n presentation: \"menu\"\n });\n}\nfunction ContextMenu(props) {\n var _props_accessibilityLabel;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPresentation, {\n ...props,\n accessibilityLabel: (_props_accessibilityLabel = props.accessibilityLabel) !== null && _props_accessibilityLabel !== void 0 ? _props_accessibilityLabel : \"\",\n presentation: \"contextMenu\"\n });\n}\n//# sourceMappingURL=AndroidMenu.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,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,sBAAsB,CAAC;AAC3B,SAAS,qBAAqB;CAC5B,mBAAmB;CACnB,YAAY;AACd,CAAC;AACD,OAAO,UAAU,aAAa,mBAAmB;AACjD,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,sBAAsB,QAAQ,cAAc;AAChD,IAAI,mBAAmB,QAAQ,uBAAa;AAC5C,IAAI,wBAAwB,GAAG,oBAAoB,uBAAsB,CAAE,sBAAsB;AACjG,IAAI;AACJ,SAAS,QAAQ;CACf,IAAI,gBAAgB,KAAK,GAAG;EAC1B,cAAc,oBAAoB,oBAAoB,IAAI,oBAAoB;CAChF;CACA,IAAI,CAAC,aAAa;EAChB,MAAM,IAAI,MAAM,6BAA6B;CAC/C;CACA,OAAO;AACT;AACA,SAAS,iBAAiB,OAAO;CAC/B,IAAI,EAAE,OAAO,UAAU,eAAe,eAAe,gBAAgB,UAAU,WAAW,OAAO,UAAU,WAAW,WAAW,YAAY,2BAA2B,4BAA4B,cAAc,GAAG,cAAc;
|
|
1
|
+
{"version":3,"file":"AndroidMenu.native.js","names":[],"sources":["cjs/platform/AndroidMenu.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 AndroidMenu_exports = {};\n__export(AndroidMenu_exports, {\n ContextMenu: () => ContextMenu,\n Menu: () => Menu\n});\nmodule.exports = __toCommonJS(AndroidMenu_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = require(\"react\");\nvar import_react_native = require(\"react-native\");\nvar import_menuItems = require(\"./menuItems\");\nvar NativeContextTrigger = (0, import_react_native.requireNativeComponent)(\"OneNativeMenuTrigger\");\nvar popupModule;\nfunction popup() {\n if (popupModule === void 0) {\n popupModule = import_react_native.TurboModuleRegistry.get(\"OneNativeMenuPopup\");\n }\n if (!popupModule) {\n throw new Error(\"Menu needs an Android build\");\n }\n return popupModule;\n}\nfunction MenuPresentation(param) {\n var { items, onAction, onValueChange, onPickerChange: _onPickerChange, primaryAction: _primaryAction, children, disabled = false, revision: _revision, menuOrder: _menuOrder, menuActionDismissBehavior: _menuActionDismissBehavior, presentation, ...viewProps } = param;\n var anchor = (0, import_react.useRef)(null);\n var contextAnchor = (0, import_react.useRef)(null);\n var nativeItems = (0, import_menuItems.flattenMenuItems)(items);\n if (nativeItems.some(function(item) {\n return item.type === \"picker\";\n })) {\n throw new Error(\"Menu picker items are not supported on Android\");\n }\n if (!onValueChange && nativeItems.some(function(item) {\n return item.type === \"toggle\";\n })) {\n throw new Error(\"Menu with toggles requires onValueChange\");\n }\n var open = async function() {\n if (disabled) return;\n var anchorTag = (0, import_react_native.findNodeHandle)(presentation === \"contextMenu\" ? contextAnchor.current : anchor.current);\n if (anchorTag == null) throw new Error(\"Menu trigger has no native view\");\n var selection = await popup().show(anchorTag, nativeItems);\n if ((selection === null || selection === void 0 ? void 0 : selection.type) === \"action\") onAction(selection.id);\n if ((selection === null || selection === void 0 ? void 0 : selection.type) === \"toggle\") {\n onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(selection.id, selection.value, selection.sourceIndex);\n }\n };\n if (presentation === \"contextMenu\") {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeContextTrigger, {\n ref: contextAnchor,\n collapsable: false,\n ...viewProps,\n contextMenuEnabled: !disabled,\n onNativeMenuLongPress: open,\n children\n });\n }\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.Pressable, {\n disabled,\n onPress: open,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.View, {\n ref: anchor,\n collapsable: false,\n ...viewProps,\n children\n })\n });\n}\nfunction Menu(props) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPresentation, {\n ...props,\n presentation: \"menu\"\n });\n}\nfunction ContextMenu(props) {\n var _props_accessibilityLabel;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPresentation, {\n ...props,\n accessibilityLabel: (_props_accessibilityLabel = props.accessibilityLabel) !== null && _props_accessibilityLabel !== void 0 ? _props_accessibilityLabel : \"\",\n presentation: \"contextMenu\"\n });\n}\n//# sourceMappingURL=AndroidMenu.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,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,sBAAsB,CAAC;AAC3B,SAAS,qBAAqB;CAC5B,mBAAmB;CACnB,YAAY;AACd,CAAC;AACD,OAAO,UAAU,aAAa,mBAAmB;AACjD,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,sBAAsB,QAAQ,cAAc;AAChD,IAAI,mBAAmB,QAAQ,uBAAa;AAC5C,IAAI,wBAAwB,GAAG,oBAAoB,uBAAsB,CAAE,sBAAsB;AACjG,IAAI;AACJ,SAAS,QAAQ;CACf,IAAI,gBAAgB,KAAK,GAAG;EAC1B,cAAc,oBAAoB,oBAAoB,IAAI,oBAAoB;CAChF;CACA,IAAI,CAAC,aAAa;EAChB,MAAM,IAAI,MAAM,6BAA6B;CAC/C;CACA,OAAO;AACT;AACA,SAAS,iBAAiB,OAAO;CAC/B,IAAI,EAAE,OAAO,UAAU,eAAe,gBAAgB,iBAAiB,eAAe,gBAAgB,UAAU,WAAW,OAAO,UAAU,WAAW,WAAW,YAAY,2BAA2B,4BAA4B,cAAc,GAAG,cAAc;CACpQ,IAAI,UAAU,GAAG,aAAa,OAAM,CAAE,IAAI;CAC1C,IAAI,iBAAiB,GAAG,aAAa,OAAM,CAAE,IAAI;CACjD,IAAI,eAAe,GAAG,iBAAiB,iBAAgB,CAAE,KAAK;CAC9D,IAAI,YAAY,KAAK,SAAS,MAAM;EAClC,OAAO,KAAK,SAAS;CACvB,CAAC,GAAG;EACF,MAAM,IAAI,MAAM,gDAAgD;CAClE;CACA,IAAI,CAAC,iBAAiB,YAAY,KAAK,SAAS,MAAM;EACpD,OAAO,KAAK,SAAS;CACvB,CAAC,GAAG;EACF,MAAM,IAAI,MAAM,0CAA0C;CAC5D;CACA,IAAI,OAAO,iBAAiB;EAC1B,IAAI,UAAU;EACd,IAAI,aAAa,GAAG,oBAAoB,eAAc,CAAE,iBAAiB,gBAAgB,cAAc,UAAU,OAAO,OAAO;EAC/H,IAAI,aAAa,MAAM,MAAM,IAAI,MAAM,iCAAiC;EACxE,IAAI,YAAY,MAAM,MAAM,CAAC,CAAC,KAAK,WAAW,WAAW;EACzD,KAAK,cAAc,QAAQ,cAAc,KAAK,IAAI,KAAK,IAAI,UAAU,UAAU,UAAU,SAAS,UAAU,EAAE;EAC9G,KAAK,cAAc,QAAQ,cAAc,KAAK,IAAI,KAAK,IAAI,UAAU,UAAU,UAAU;GACvF,kBAAkB,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,cAAc,UAAU,IAAI,UAAU,OAAO,UAAU,WAAW;EAClI;CACF;CACA,IAAI,iBAAiB,eAAe;EAClC,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,sBAAsB;GACvE,KAAK;GACL,aAAa;GACb,GAAG;GACH,oBAAoB,CAAC;GACrB,uBAAuB;GACvB;EACF,CAAC;CACH;CACA,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,oBAAoB,WAAW;EAChF;EACA,SAAS;EACT,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,oBAAoB,MAAM;GAC9E,KAAK;GACL,aAAa;GACb,GAAG;GACH;EACF,CAAC;CACH,CAAC;AACH;AACA,SAAS,KAAK,OAAO;CACnB,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,kBAAkB;EACnE,GAAG;EACH,cAAc;CAChB,CAAC;AACH;AACA,SAAS,YAAY,OAAO;CAC1B,IAAI;CACJ,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,kBAAkB;EACnE,GAAG;EACH,qBAAqB,4BAA4B,MAAM,wBAAwB,QAAQ,8BAA8B,KAAK,IAAI,4BAA4B;EAC1J,cAAc;CAChB,CAAC;AACH"}
|