one 2.19.0 → 2.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/One.podspec +2 -2
- package/android/build.gradle +2 -0
- package/android/portal/CMakeLists.txt +4 -1
- package/android/portal/react/renderer/components/OneNativeSpec/ComponentDescriptors.h +1 -0
- package/android/src/main/java/com/margelo/nitro/one/HybridOneKeyboard.kt +110 -0
- package/android/src/main/java/dev/onejs/keyboard/ClippingScrollViewDecoratorViewManager.kt +44 -0
- package/android/src/main/java/dev/onejs/keyboard/KeyboardBackgroundViewManager.kt +19 -0
- package/android/src/main/java/dev/onejs/keyboard/KeyboardControllerViewManager.kt +85 -0
- package/android/src/main/java/dev/onejs/keyboard/KeyboardGestureAreaViewManager.kt +65 -0
- package/android/src/main/java/dev/onejs/keyboard/KeyboardToolbarGroupViewManager.kt +19 -0
- package/android/src/main/java/dev/onejs/keyboard/LICENSE +21 -0
- package/android/src/main/java/dev/onejs/keyboard/OneKeyboardBridge.kt +9 -0
- package/android/src/main/java/dev/onejs/keyboard/OverKeyboardViewManager.kt +49 -0
- package/android/src/main/java/dev/onejs/keyboard/constants/Keyboard.kt +7 -0
- package/android/src/main/java/dev/onejs/keyboard/constants/UIThread.kt +9 -0
- package/android/src/main/java/dev/onejs/keyboard/events/FocusedInputLayoutChangedEvent.kt +52 -0
- package/android/src/main/java/dev/onejs/keyboard/events/FocusedInputSelectionChangedEvent.kt +56 -0
- package/android/src/main/java/dev/onejs/keyboard/events/FocusedInputTextChangedEvent.kt +25 -0
- package/android/src/main/java/dev/onejs/keyboard/events/KeyboardTransitionEvent.kt +44 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/Context.kt +58 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/EditText.kt +262 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/Float.kt +8 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/ReactContext.kt +37 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/ScrollView.kt +65 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/SoftInputMode.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/ThemedReactContext.kt +56 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/View.kt +91 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/ViewGroup.kt +10 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/WindowInsetsAnimationCompat.kt +7 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/InteractiveKeyboardProvider.kt +5 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/KeyboardAnimationController.kt +407 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/interpolators/Interpolator.kt +20 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/interpolators/IosInterpolator.kt +21 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/interpolators/LinearInterpolator.kt +10 -0
- package/android/src/main/java/dev/onejs/keyboard/listeners/FocusedInputObserver.kt +200 -0
- package/android/src/main/java/dev/onejs/keyboard/listeners/KeyboardAnimationCallback.kt +505 -0
- package/android/src/main/java/dev/onejs/keyboard/listeners/WindowDimensionListener.kt +76 -0
- package/android/src/main/java/dev/onejs/keyboard/log/Logger.kt +28 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/ClippingScrollViewDecoratorViewManagerImpl.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/KeyboardBackgroundViewManagerImpl.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/KeyboardControllerViewManagerImpl.kt +96 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/KeyboardGestureAreaViewManagerImpl.kt +41 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/KeyboardToolbarGroupViewManagerImpl.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/OverKeyboardViewManagerImpl.kt +23 -0
- package/android/src/main/java/dev/onejs/keyboard/modal/ModalAttachedWatcher.kt +116 -0
- package/android/src/main/java/dev/onejs/keyboard/modules/KeyboardControllerModuleImpl.kt +139 -0
- package/android/src/main/java/dev/onejs/keyboard/traversal/FocusedInputHolder.kt +19 -0
- package/android/src/main/java/dev/onejs/keyboard/traversal/ViewHierarchyNavigator.kt +130 -0
- package/android/src/main/java/dev/onejs/keyboard/views/ClippingScrollViewDecoratorView.kt +241 -0
- package/android/src/main/java/dev/onejs/keyboard/views/EdgeToEdgeReactViewGroup.kt +225 -0
- package/android/src/main/java/dev/onejs/keyboard/views/KeyboardGestureAreaReactViewGroup.kt +247 -0
- package/android/src/main/java/dev/onejs/keyboard/views/KeyboardToolbarGroupReactViewGroup.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/views/background/KeyboardBackgroundViewGroup.kt +34 -0
- package/android/src/main/java/dev/onejs/keyboard/views/background/Skins.kt +91 -0
- package/android/src/main/java/dev/onejs/keyboard/views/overlay/JSPointerDispatcherCompat.kt +74 -0
- package/android/src/main/java/dev/onejs/keyboard/views/overlay/OverKeyboardHostShadowNode.kt +33 -0
- package/android/src/main/java/dev/onejs/keyboard/views/overlay/OverKeyboardViewGroup.kt +249 -0
- package/android/src/main/java/dev/onejs/keyboard/views/overlay/RootViewCompat.kt +18 -0
- package/android/src/main/java/dev/onejs/one/OnePackage.kt +12 -0
- package/android/src/main/res/values/one_keyboard_attrs.xml +7 -0
- package/android/src/main/res/values/one_keyboard_skins.xml +35 -0
- package/android/src/main/res/values-v29/one_keyboard_skins.xml +5 -0
- package/android/src/main/res/values-v30/one_keyboard_skins.xml +17 -0
- package/android/src/main/res/values-v33/one_keyboard_skins.xml +14 -0
- package/android/src/main/res/values-v34/one_keyboard_skins.xml +18 -0
- package/android/src/main/res/values-v35/one_keyboard_skins.xml +10 -0
- package/cpp/OneOverKeyboardViewComponentDescriptor.h +31 -0
- package/cpp/OneOverKeyboardViewShadowNode.cpp +7 -0
- package/cpp/OneOverKeyboardViewShadowNode.h +23 -0
- package/cpp/OneOverKeyboardViewState.cpp +12 -0
- package/cpp/OneOverKeyboardViewState.h +43 -0
- package/dist/cjs/keyboard/animated.cjs +154 -0
- package/dist/cjs/keyboard/animated.native.cjs +168 -0
- package/dist/cjs/keyboard/animated.native.js +170 -0
- package/dist/cjs/keyboard/animated.native.js.map +1 -0
- package/dist/cjs/keyboard/architecture.cjs +25 -0
- package/dist/cjs/keyboard/architecture.native.cjs +27 -0
- package/dist/cjs/keyboard/architecture.native.js +29 -0
- package/dist/cjs/keyboard/architecture.native.js.map +1 -0
- package/dist/cjs/keyboard/bindings.cjs +65 -0
- package/dist/cjs/keyboard/bindings.native.cjs +147 -0
- package/dist/cjs/keyboard/bindings.native.js +149 -0
- package/dist/cjs/keyboard/bindings.native.js.map +1 -0
- package/dist/cjs/keyboard/compat.cjs +63 -0
- package/dist/cjs/keyboard/compat.native.cjs +65 -0
- package/dist/cjs/keyboard/compat.native.js +67 -0
- package/dist/cjs/keyboard/compat.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/hooks.cjs +144 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/hooks.native.cjs +146 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/hooks.native.js +148 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/hooks.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/index.cjs +156 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/index.native.cjs +173 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/index.native.js +175 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/index.cjs +326 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/index.native.cjs +344 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/index.native.js +346 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.cjs +100 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.cjs +110 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.js +112 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/utils.cjs +50 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/utils.native.cjs +58 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/utils.native.js +60 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/utils.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/hooks.cjs +25 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/hooks.native.cjs +27 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/hooks.native.js +29 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/hooks.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/index.cjs +118 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/index.native.cjs +133 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/index.native.js +135 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.cjs +93 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.cjs +97 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.js +99 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.cjs +210 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.cjs +145 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js +147 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.cjs +212 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.js +214 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useEndVisible.cjs +52 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useEndVisible.native.cjs +61 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useEndVisible.native.js +63 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useEndVisible.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.cjs +92 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.cjs +96 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.js +98 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.cjs +53 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.cjs +58 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.js +60 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardEffects/index.cjs +94 -0
- package/dist/cjs/keyboard/components/KeyboardEffects/index.native.cjs +99 -0
- package/dist/cjs/keyboard/components/KeyboardEffects/index.native.js +101 -0
- package/dist/cjs/keyboard/components/KeyboardEffects/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardStickyView/index.cjs +54 -0
- package/dist/cjs/keyboard/components/KeyboardStickyView/index.native.cjs +59 -0
- package/dist/cjs/keyboard/components/KeyboardStickyView/index.native.js +61 -0
- package/dist/cjs/keyboard/components/KeyboardStickyView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Arrow.cjs +82 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Arrow.native.cjs +99 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Arrow.native.js +101 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Arrow.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Button.cjs +71 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Button.native.cjs +89 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Button.native.js +91 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Button.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/colors.cjs +38 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/colors.native.cjs +59 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/colors.native.js +61 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/colors.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Background.cjs +27 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Background.native.cjs +39 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Background.native.js +41 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Background.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Content.cjs +36 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Content.native.cjs +46 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Content.native.js +48 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Content.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Done.cjs +75 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Done.native.cjs +84 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Done.native.js +86 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Done.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Next.cjs +64 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Next.native.cjs +67 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Next.native.js +69 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Next.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Prev.cjs +64 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Prev.native.cjs +68 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Prev.native.js +70 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Prev.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/index.cjs +41 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/index.native.cjs +43 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/index.native.js +45 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/context.cjs +36 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/context.native.cjs +38 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/context.native.js +40 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/context.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/constants.cjs +42 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/constants.native.cjs +44 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/constants.native.js +46 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/constants.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/index.cjs +202 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/index.native.cjs +215 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/index.native.js +217 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/index.cjs +127 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/index.native.cjs +134 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/index.native.js +136 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/styles.cjs +30 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/styles.native.cjs +32 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/styles.native.js +34 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/styles.native.js.map +1 -0
- package/dist/cjs/keyboard/components/hooks/useCombinedRef.cjs +40 -0
- package/dist/cjs/keyboard/components/hooks/useCombinedRef.native.cjs +62 -0
- package/dist/cjs/keyboard/components/hooks/useCombinedRef.native.js +64 -0
- package/dist/cjs/keyboard/components/hooks/useCombinedRef.native.js.map +1 -0
- package/dist/cjs/keyboard/components/hooks/useScrollState.cjs +78 -0
- package/dist/cjs/keyboard/components/hooks/useScrollState.native.cjs +81 -0
- package/dist/cjs/keyboard/components/hooks/useScrollState.native.js +83 -0
- package/dist/cjs/keyboard/components/hooks/useScrollState.native.js.map +1 -0
- package/dist/cjs/keyboard/components/index.cjs +44 -0
- package/dist/cjs/keyboard/components/index.native.cjs +46 -0
- package/dist/cjs/keyboard/components/index.native.js +48 -0
- package/dist/cjs/keyboard/components/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/utils/safeScrollTo.cjs +33 -0
- package/dist/cjs/keyboard/components/utils/safeScrollTo.native.cjs +35 -0
- package/dist/cjs/keyboard/components/utils/safeScrollTo.native.js +37 -0
- package/dist/cjs/keyboard/components/utils/safeScrollTo.native.js.map +1 -0
- package/dist/cjs/keyboard/constants.cjs +48 -0
- package/dist/cjs/keyboard/constants.native.cjs +50 -0
- package/dist/cjs/keyboard/constants.native.js +52 -0
- package/dist/cjs/keyboard/constants.native.js.map +1 -0
- package/dist/cjs/keyboard/context.cjs +65 -0
- package/dist/cjs/keyboard/context.native.cjs +73 -0
- package/dist/cjs/keyboard/context.native.js +75 -0
- package/dist/cjs/keyboard/context.native.js.map +1 -0
- package/dist/cjs/keyboard/hooks/index.cjs +121 -0
- package/dist/cjs/keyboard/hooks/index.native.cjs +135 -0
- package/dist/cjs/keyboard/hooks/index.native.js +137 -0
- package/dist/cjs/keyboard/hooks/index.native.js.map +1 -0
- package/dist/cjs/keyboard/hooks/useKeyboardState/index.cjs +44 -0
- package/dist/cjs/keyboard/hooks/useKeyboardState/index.native.cjs +59 -0
- package/dist/cjs/keyboard/hooks/useKeyboardState/index.native.js +61 -0
- package/dist/cjs/keyboard/hooks/useKeyboardState/index.native.js.map +1 -0
- package/dist/cjs/keyboard/hooks/useWindowDimensions/index.cjs +48 -0
- package/dist/cjs/keyboard/hooks/useWindowDimensions/index.native.cjs +50 -0
- package/dist/cjs/keyboard/hooks/useWindowDimensions/index.native.js +52 -0
- package/dist/cjs/keyboard/hooks/useWindowDimensions/index.native.js.map +1 -0
- package/dist/cjs/keyboard/index.cjs +45 -0
- package/dist/cjs/keyboard/index.native.cjs +47 -0
- package/dist/cjs/keyboard/index.native.js +49 -0
- package/dist/cjs/keyboard/index.native.js.map +1 -0
- package/dist/cjs/keyboard/internal.cjs +77 -0
- package/dist/cjs/keyboard/internal.native.cjs +79 -0
- package/dist/cjs/keyboard/internal.native.js +81 -0
- package/dist/cjs/keyboard/internal.native.js.map +1 -0
- package/dist/cjs/keyboard/module.cjs +72 -0
- package/dist/cjs/keyboard/module.native.cjs +79 -0
- package/dist/cjs/keyboard/module.native.js +81 -0
- package/dist/cjs/keyboard/module.native.js.map +1 -0
- package/dist/cjs/keyboard/reanimated.cjs +36 -0
- package/dist/cjs/keyboard/reanimated.native.cjs +84 -0
- package/dist/cjs/keyboard/reanimated.native.js +86 -0
- package/dist/cjs/keyboard/reanimated.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/hooks.cjs +17 -0
- package/dist/cjs/keyboard/typings/hooks.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/hooks.native.js +21 -0
- package/dist/cjs/keyboard/typings/hooks.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/index.cjs +23 -0
- package/dist/cjs/keyboard/typings/index.native.cjs +25 -0
- package/dist/cjs/keyboard/typings/index.native.js +27 -0
- package/dist/cjs/keyboard/typings/index.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/internal.cjs +17 -0
- package/dist/cjs/keyboard/typings/internal.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/internal.native.js +21 -0
- package/dist/cjs/keyboard/typings/internal.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/module.cjs +17 -0
- package/dist/cjs/keyboard/typings/module.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/module.native.js +21 -0
- package/dist/cjs/keyboard/typings/module.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/provider.cjs +17 -0
- package/dist/cjs/keyboard/typings/provider.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/provider.native.js +21 -0
- package/dist/cjs/keyboard/typings/provider.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/views.cjs +17 -0
- package/dist/cjs/keyboard/typings/views.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/views.native.js +21 -0
- package/dist/cjs/keyboard/typings/views.native.js.map +1 -0
- package/dist/cjs/keyboard/utils/findNodeHandle/index.cjs +25 -0
- package/dist/cjs/keyboard/utils/findNodeHandle/index.native.cjs +27 -0
- package/dist/cjs/keyboard/utils/findNodeHandle/index.native.js +29 -0
- package/dist/cjs/keyboard/utils/findNodeHandle/index.native.js.map +1 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.cjs +48 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.ios.cjs +50 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.ios.js +52 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.ios.js.map +1 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.native.cjs +57 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.native.js +59 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.native.js.map +1 -0
- package/dist/cjs/keyboard/views/OverKeyboardView/index.cjs +60 -0
- package/dist/cjs/keyboard/views/OverKeyboardView/index.native.cjs +72 -0
- package/dist/cjs/keyboard/views/OverKeyboardView/index.native.js +74 -0
- package/dist/cjs/keyboard/views/OverKeyboardView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/views/index.cjs +35 -0
- package/dist/cjs/keyboard/views/index.native.cjs +37 -0
- package/dist/cjs/keyboard/views/index.native.js +39 -0
- package/dist/cjs/keyboard/views/index.native.js.map +1 -0
- package/dist/cjs/keyboard.cjs +19 -0
- package/dist/cjs/keyboard.native.cjs +21 -0
- package/dist/cjs/keyboard.native.js +23 -0
- package/dist/cjs/keyboard.native.js.map +1 -0
- package/dist/cjs/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.cjs +34 -0
- package/dist/cjs/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.cjs +34 -0
- package/dist/cjs/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.js +35 -0
- package/dist/cjs/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboard.nitro.cjs +17 -0
- package/dist/cjs/platform/specs/OneKeyboard.nitro.native.cjs +19 -0
- package/dist/cjs/platform/specs/OneKeyboard.nitro.native.js +21 -0
- package/dist/cjs/platform/specs/OneKeyboard.nitro.native.js.map +1 -0
- package/dist/cjs/platform/specs/OneKeyboardBackgroundViewNativeComponent.cjs +30 -0
- package/dist/cjs/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.cjs +30 -0
- package/dist/cjs/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.js +31 -0
- package/dist/cjs/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboardControllerViewNativeComponent.cjs +79 -0
- package/dist/cjs/platform/specs/OneKeyboardControllerViewNativeComponent.native.cjs +79 -0
- package/dist/cjs/platform/specs/OneKeyboardControllerViewNativeComponent.native.js +80 -0
- package/dist/cjs/platform/specs/OneKeyboardControllerViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboardExtenderNativeComponent.cjs +33 -0
- package/dist/cjs/platform/specs/OneKeyboardExtenderNativeComponent.native.cjs +33 -0
- package/dist/cjs/platform/specs/OneKeyboardExtenderNativeComponent.native.js +34 -0
- package/dist/cjs/platform/specs/OneKeyboardExtenderNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboardGestureAreaNativeComponent.cjs +36 -0
- package/dist/cjs/platform/specs/OneKeyboardGestureAreaNativeComponent.native.cjs +36 -0
- package/dist/cjs/platform/specs/OneKeyboardGestureAreaNativeComponent.native.js +37 -0
- package/dist/cjs/platform/specs/OneKeyboardGestureAreaNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.cjs +30 -0
- package/dist/cjs/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.cjs +30 -0
- package/dist/cjs/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.js +31 -0
- package/dist/cjs/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneOverKeyboardViewNativeComponent.cjs +32 -0
- package/dist/cjs/platform/specs/OneOverKeyboardViewNativeComponent.native.cjs +32 -0
- package/dist/cjs/platform/specs/OneOverKeyboardViewNativeComponent.native.js +33 -0
- package/dist/cjs/platform/specs/OneOverKeyboardViewNativeComponent.native.js.map +7 -0
- package/dist/esm/keyboard/animated.mjs +135 -0
- package/dist/esm/keyboard/animated.mjs.map +1 -0
- package/dist/esm/keyboard/animated.native.js +141 -0
- package/dist/esm/keyboard/animated.native.js.map +1 -0
- package/dist/esm/keyboard/architecture.mjs +5 -0
- package/dist/esm/keyboard/architecture.mjs.map +1 -0
- package/dist/esm/keyboard/architecture.native.js +5 -0
- package/dist/esm/keyboard/architecture.native.js.map +1 -0
- package/dist/esm/keyboard/bindings.mjs +33 -0
- package/dist/esm/keyboard/bindings.mjs.map +1 -0
- package/dist/esm/keyboard/bindings.native.js +107 -0
- package/dist/esm/keyboard/bindings.native.js.map +1 -0
- package/dist/esm/keyboard/compat.mjs +41 -0
- package/dist/esm/keyboard/compat.mjs.map +1 -0
- package/dist/esm/keyboard/compat.native.js +41 -0
- package/dist/esm/keyboard/compat.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/hooks.mjs +122 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/hooks.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/hooks.native.js +122 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/hooks.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/index.mjs +131 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/index.native.js +146 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/index.mjs +301 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/index.native.js +317 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/types.native.js +0 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.mjs +81 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.js +89 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/utils.mjs +27 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/utils.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/utils.native.js +33 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/utils.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/hooks.mjs +3 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/hooks.native.js +3 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/index.mjs +92 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/index.native.js +105 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/types.native.js +0 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.mjs +65 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.js +67 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js +118 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.mjs +185 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.js +185 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.native.js +0 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useEndVisible.mjs +33 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useEndVisible.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useEndVisible.native.js +40 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useEndVisible.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.mjs +73 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.js +75 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.mjs +34 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.js +37 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardEffects/index.mjs +69 -0
- package/dist/esm/keyboard/components/KeyboardEffects/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardEffects/index.native.js +72 -0
- package/dist/esm/keyboard/components/KeyboardEffects/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardStickyView/index.mjs +29 -0
- package/dist/esm/keyboard/components/KeyboardStickyView/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardStickyView/index.native.js +32 -0
- package/dist/esm/keyboard/components/KeyboardStickyView/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Arrow.mjs +63 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Arrow.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Arrow.native.js +72 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Arrow.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Button.mjs +52 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Button.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Button.native.js +62 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Button.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/colors.mjs +18 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/colors.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/colors.native.js +38 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/colors.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.mjs +8 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.native.js +12 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.mjs +17 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.native.js +19 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.mjs +50 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.native.js +56 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.mjs +39 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.native.js +40 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Prev.mjs +39 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Prev.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Prev.native.js +40 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Prev.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/index.mjs +7 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/index.native.js +7 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/types.native.js +0 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/context.mjs +14 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/context.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/context.native.js +14 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/context.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/constants.mjs +14 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/constants.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/constants.native.js +14 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/constants.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/index.mjs +174 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/index.native.js +185 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/types.native.js +0 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/index.mjs +102 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/index.native.js +107 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/styles.mjs +11 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/styles.mjs.map +1 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/styles.native.js +11 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/styles.native.js.map +1 -0
- package/dist/esm/keyboard/components/hooks/useCombinedRef.mjs +21 -0
- package/dist/esm/keyboard/components/hooks/useCombinedRef.mjs.map +1 -0
- package/dist/esm/keyboard/components/hooks/useCombinedRef.native.js +41 -0
- package/dist/esm/keyboard/components/hooks/useCombinedRef.native.js.map +1 -0
- package/dist/esm/keyboard/components/hooks/useScrollState.mjs +59 -0
- package/dist/esm/keyboard/components/hooks/useScrollState.mjs.map +1 -0
- package/dist/esm/keyboard/components/hooks/useScrollState.native.js +60 -0
- package/dist/esm/keyboard/components/hooks/useScrollState.native.js.map +1 -0
- package/dist/esm/keyboard/components/index.mjs +8 -0
- package/dist/esm/keyboard/components/index.native.js +8 -0
- package/dist/esm/keyboard/components/utils/safeScrollTo.mjs +14 -0
- package/dist/esm/keyboard/components/utils/safeScrollTo.mjs.map +1 -0
- package/dist/esm/keyboard/components/utils/safeScrollTo.native.js +14 -0
- package/dist/esm/keyboard/components/utils/safeScrollTo.native.js.map +1 -0
- package/dist/esm/keyboard/constants.mjs +25 -0
- package/dist/esm/keyboard/constants.mjs.map +1 -0
- package/dist/esm/keyboard/constants.native.js +25 -0
- package/dist/esm/keyboard/constants.native.js.map +1 -0
- package/dist/esm/keyboard/context.mjs +43 -0
- package/dist/esm/keyboard/context.mjs.map +1 -0
- package/dist/esm/keyboard/context.native.js +49 -0
- package/dist/esm/keyboard/context.native.js.map +1 -0
- package/dist/esm/keyboard/hooks/index.mjs +94 -0
- package/dist/esm/keyboard/hooks/index.mjs.map +1 -0
- package/dist/esm/keyboard/hooks/index.native.js +106 -0
- package/dist/esm/keyboard/hooks/index.native.js.map +1 -0
- package/dist/esm/keyboard/hooks/useKeyboardState/index.mjs +25 -0
- package/dist/esm/keyboard/hooks/useKeyboardState/index.mjs.map +1 -0
- package/dist/esm/keyboard/hooks/useKeyboardState/index.native.js +38 -0
- package/dist/esm/keyboard/hooks/useKeyboardState/index.native.js.map +1 -0
- package/dist/esm/keyboard/hooks/useWindowDimensions/index.mjs +29 -0
- package/dist/esm/keyboard/hooks/useWindowDimensions/index.mjs.map +1 -0
- package/dist/esm/keyboard/hooks/useWindowDimensions/index.native.js +29 -0
- package/dist/esm/keyboard/hooks/useWindowDimensions/index.native.js.map +1 -0
- package/dist/esm/keyboard/index.mjs +20 -0
- package/dist/esm/keyboard/index.native.js +20 -0
- package/dist/esm/keyboard/internal.mjs +55 -0
- package/dist/esm/keyboard/internal.mjs.map +1 -0
- package/dist/esm/keyboard/internal.native.js +55 -0
- package/dist/esm/keyboard/internal.native.js.map +1 -0
- package/dist/esm/keyboard/module.mjs +53 -0
- package/dist/esm/keyboard/module.mjs.map +1 -0
- package/dist/esm/keyboard/module.native.js +58 -0
- package/dist/esm/keyboard/module.native.js.map +1 -0
- package/dist/esm/keyboard/reanimated.mjs +9 -0
- package/dist/esm/keyboard/reanimated.mjs.map +1 -0
- package/dist/esm/keyboard/reanimated.native.js +55 -0
- package/dist/esm/keyboard/reanimated.native.js.map +1 -0
- package/dist/esm/keyboard/typings/hooks.mjs +0 -0
- package/dist/esm/keyboard/typings/hooks.native.js +0 -0
- package/dist/esm/keyboard/typings/index.mjs +9 -0
- package/dist/esm/keyboard/typings/index.native.js +9 -0
- package/dist/esm/keyboard/typings/internal.mjs +0 -0
- package/dist/esm/keyboard/typings/internal.native.js +0 -0
- package/dist/esm/keyboard/typings/module.mjs +0 -0
- package/dist/esm/keyboard/typings/module.native.js +0 -0
- package/dist/esm/keyboard/typings/provider.mjs +0 -0
- package/dist/esm/keyboard/typings/provider.native.js +0 -0
- package/dist/esm/keyboard/typings/views.mjs +0 -0
- package/dist/esm/keyboard/typings/views.native.js +0 -0
- package/dist/esm/keyboard/utils/findNodeHandle/index.mjs +5 -0
- package/dist/esm/keyboard/utils/findNodeHandle/index.mjs.map +1 -0
- package/dist/esm/keyboard/utils/findNodeHandle/index.native.js +3 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.ios.js +23 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.ios.js.map +1 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.mjs +29 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.mjs.map +1 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.native.js +30 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.native.js.map +1 -0
- package/dist/esm/keyboard/views/OverKeyboardView/index.mjs +41 -0
- package/dist/esm/keyboard/views/OverKeyboardView/index.mjs.map +1 -0
- package/dist/esm/keyboard/views/OverKeyboardView/index.native.js +45 -0
- package/dist/esm/keyboard/views/OverKeyboardView/index.native.js.map +1 -0
- package/dist/esm/keyboard/views/index.mjs +4 -0
- package/dist/esm/keyboard/views/index.native.js +4 -0
- package/dist/esm/keyboard.mjs +1 -0
- package/dist/esm/keyboard.native.js +1 -0
- package/dist/esm/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.mjs +16 -0
- package/dist/esm/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.js +16 -0
- package/dist/esm/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboard.nitro.mjs +0 -0
- package/dist/esm/platform/specs/OneKeyboard.nitro.native.js +0 -0
- package/dist/esm/platform/specs/OneKeyboardBackgroundViewNativeComponent.mjs +12 -0
- package/dist/esm/platform/specs/OneKeyboardBackgroundViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.js +12 -0
- package/dist/esm/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardControllerViewNativeComponent.mjs +61 -0
- package/dist/esm/platform/specs/OneKeyboardControllerViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardControllerViewNativeComponent.native.js +61 -0
- package/dist/esm/platform/specs/OneKeyboardControllerViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardExtenderNativeComponent.mjs +15 -0
- package/dist/esm/platform/specs/OneKeyboardExtenderNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardExtenderNativeComponent.native.js +15 -0
- package/dist/esm/platform/specs/OneKeyboardExtenderNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardGestureAreaNativeComponent.mjs +18 -0
- package/dist/esm/platform/specs/OneKeyboardGestureAreaNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardGestureAreaNativeComponent.native.js +18 -0
- package/dist/esm/platform/specs/OneKeyboardGestureAreaNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.mjs +12 -0
- package/dist/esm/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.js +12 -0
- package/dist/esm/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneOverKeyboardViewNativeComponent.mjs +14 -0
- package/dist/esm/platform/specs/OneOverKeyboardViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneOverKeyboardViewNativeComponent.native.js +14 -0
- package/dist/esm/platform/specs/OneOverKeyboardViewNativeComponent.native.js.map +7 -0
- package/ios/Keyboard/KeyboardBackdropController.swift +57 -0
- package/ios/Keyboard/KeyboardControllerModuleImpl.swift +75 -0
- package/ios/Keyboard/LICENSE +21 -0
- package/ios/Keyboard/OneKeyboardBridge.swift +51 -0
- package/ios/Keyboard/animations/KeyboardAnimation.swift +80 -0
- package/ios/Keyboard/animations/SpringAnimation.swift +75 -0
- package/ios/Keyboard/animations/TimingAnimation.swift +145 -0
- package/ios/Keyboard/core/KeyboardControllerConfiguration.swift +9 -0
- package/ios/Keyboard/core/UIUtils.swift +6 -0
- package/ios/Keyboard/delegates/KCTextInputCompositeDelegate.swift +263 -0
- package/ios/Keyboard/events/KeyboardEventEmitterPayload.swift +16 -0
- package/ios/Keyboard/events/OneKCFocusedInputLayoutChangedEvent.h +8 -0
- package/ios/Keyboard/events/OneKCFocusedInputLayoutChangedEvent.m +70 -0
- package/ios/Keyboard/events/OneKCFocusedInputSelectionChangedEvent.h +8 -0
- package/ios/Keyboard/events/OneKCFocusedInputSelectionChangedEvent.m +69 -0
- package/ios/Keyboard/events/OneKCFocusedInputTextChangedEvent.h +8 -0
- package/ios/Keyboard/events/OneKCFocusedInputTextChangedEvent.m +64 -0
- package/ios/Keyboard/events/OneKCKeyboardMoveEvent.h +13 -0
- package/ios/Keyboard/events/OneKCKeyboardMoveEvent.m +75 -0
- package/ios/Keyboard/extensions/CGFloat.swift +13 -0
- package/ios/Keyboard/extensions/Date.swift +7 -0
- package/ios/Keyboard/extensions/NSObject.swift +5 -0
- package/ios/Keyboard/extensions/Notification.swift +15 -0
- package/ios/Keyboard/extensions/String.swift +5 -0
- package/ios/Keyboard/extensions/UIApplication.swift +38 -0
- package/ios/Keyboard/extensions/UIKeyboardType.swift +23 -0
- package/ios/Keyboard/extensions/UIResponder.swift +94 -0
- package/ios/Keyboard/extensions/UIScrollView.swift +8 -0
- package/ios/Keyboard/extensions/UIView.swift +83 -0
- package/ios/Keyboard/extensions/UIWindow.swift +56 -0
- package/ios/Keyboard/interactive/InvisibleInputAccessoryView.swift +52 -0
- package/ios/Keyboard/interactive/KeyboardAreaExtender.swift +68 -0
- package/ios/Keyboard/interactive/KeyboardOffsetProvider.swift +32 -0
- package/ios/Keyboard/objc/NSObject+SafeKVC.h +5 -0
- package/ios/Keyboard/objc/NSObject+SafeKVC.m +12 -0
- package/ios/Keyboard/objc/TextInput+DelegateManager.h +13 -0
- package/ios/Keyboard/objc/TextInput+DelegateManager.m +48 -0
- package/ios/Keyboard/observers/FocusedInputObserver.swift +334 -0
- package/ios/Keyboard/observers/movement/KeyboardEventsIgnorer.swift +32 -0
- package/ios/Keyboard/observers/movement/KeyboardTrackingView.swift +163 -0
- package/ios/Keyboard/observers/movement/KeyboardViewLocator.swift +16 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Animation.swift +14 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Interactive.swift +55 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Lifecycle.swift +28 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Listeners.swift +116 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Watcher.swift +69 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver.swift +57 -0
- package/ios/Keyboard/protocols/TextInput.swift +50 -0
- package/ios/Keyboard/swizzling/UIResponderSwizzle.swift +144 -0
- package/ios/Keyboard/traversal/FocusedInputHolder.swift +24 -0
- package/ios/Keyboard/traversal/KeyboardView.swift +28 -0
- package/ios/Keyboard/traversal/ViewHierarchyNavigator.swift +157 -0
- package/ios/Keyboard/views/KeyboardExtenderContainerView.swift +207 -0
- package/ios/Keyboard/views/OneClippingScrollViewDecoratorViewComponentView.h +8 -0
- package/ios/Keyboard/views/OneClippingScrollViewDecoratorViewComponentView.mm +230 -0
- package/ios/Keyboard/views/OneKeyboardBackgroundViewComponentView.h +8 -0
- package/ios/Keyboard/views/OneKeyboardBackgroundViewComponentView.mm +123 -0
- package/ios/Keyboard/views/OneKeyboardControllerViewComponentView.h +13 -0
- package/ios/Keyboard/views/OneKeyboardControllerViewComponentView.mm +299 -0
- package/ios/Keyboard/views/OneKeyboardExtenderComponentView.h +16 -0
- package/ios/Keyboard/views/OneKeyboardExtenderComponentView.mm +275 -0
- package/ios/Keyboard/views/OneKeyboardGestureAreaComponentView.h +10 -0
- package/ios/Keyboard/views/OneKeyboardGestureAreaComponentView.mm +111 -0
- package/ios/Keyboard/views/OneKeyboardToolbarGroupViewComponentView.h +7 -0
- package/ios/Keyboard/views/OneKeyboardToolbarGroupViewComponentView.mm +47 -0
- package/ios/Keyboard/views/OneOverKeyboardViewComponentView.h +15 -0
- package/ios/Keyboard/views/OneOverKeyboardViewComponentView.mm +155 -0
- package/ios/Nitro/HybridOneKeyboard.swift +140 -0
- package/ios/Nitro/OneLaunchScreen.h +2 -0
- package/ios/Nitro/OneLaunchScreen.m +16 -0
- package/nitrogen/generated/android/One+autolinking.cmake +2 -0
- package/nitrogen/generated/android/OneOnLoad.cpp +24 -2
- package/nitrogen/generated/android/c++/JFunc_void_OneKeyboardEventName_OneKeyboardEvent.hpp +80 -0
- package/nitrogen/generated/android/c++/JFunc_void_OneKeyboardFocus.hpp +77 -0
- package/nitrogen/generated/android/c++/JFunc_void_double_double.hpp +75 -0
- package/nitrogen/generated/android/c++/JHybridOneKeyboardSpec.cpp +181 -0
- package/nitrogen/generated/android/c++/JHybridOneKeyboardSpec.hpp +74 -0
- package/nitrogen/generated/android/c++/JOneKeyboardEvent.hpp +77 -0
- package/nitrogen/generated/android/c++/JOneKeyboardEventName.hpp +64 -0
- package/nitrogen/generated/android/c++/JOneKeyboardFocus.hpp +61 -0
- package/nitrogen/generated/android/c++/JOneKeyboardFrame.hpp +69 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/Func_void_OneKeyboardEventName_OneKeyboardEvent.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/Func_void_OneKeyboardFocus.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/Func_void_double_double.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/HybridOneKeyboardSpec.kt +128 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/OneKeyboardEvent.kt +76 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/OneKeyboardEventName.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/OneKeyboardFocus.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/OneKeyboardFrame.kt +66 -0
- package/nitrogen/generated/ios/One-Swift-Cxx-Bridge.cpp +197 -148
- package/nitrogen/generated/ios/One-Swift-Cxx-Bridge.hpp +590 -452
- package/nitrogen/generated/ios/One-Swift-Cxx-Umbrella.hpp +17 -0
- package/nitrogen/generated/ios/OneAutolinking.mm +8 -0
- package/nitrogen/generated/ios/OneAutolinking.swift +12 -0
- package/nitrogen/generated/ios/c++/HybridOneKeyboardSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridOneKeyboardSpecSwift.hpp +173 -0
- package/nitrogen/generated/ios/swift/Func_void_OneKeyboardEventName_OneKeyboardEvent.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_OneKeyboardFocus.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_OneKeyboardFrame.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_double_double.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridOneKeyboardSpec.swift +66 -0
- package/nitrogen/generated/ios/swift/HybridOneKeyboardSpec_cxx.swift +316 -0
- package/nitrogen/generated/ios/swift/OneKeyboardEvent.swift +54 -0
- package/nitrogen/generated/ios/swift/OneKeyboardEventName.swift +48 -0
- package/nitrogen/generated/ios/swift/OneKeyboardFocus.swift +34 -0
- package/nitrogen/generated/ios/swift/OneKeyboardFrame.swift +44 -0
- package/nitrogen/generated/shared/c++/HybridOneKeyboardSpec.cpp +33 -0
- package/nitrogen/generated/shared/c++/HybridOneKeyboardSpec.hpp +86 -0
- package/nitrogen/generated/shared/c++/OneKeyboardEvent.hpp +103 -0
- package/nitrogen/generated/shared/c++/OneKeyboardEventName.hpp +84 -0
- package/nitrogen/generated/shared/c++/OneKeyboardFocus.hpp +87 -0
- package/nitrogen/generated/shared/c++/OneKeyboardFrame.hpp +95 -0
- package/package.json +27 -13
- package/react-native.config.cjs +6 -0
- package/src/keyboard/LICENSE +21 -0
- package/src/keyboard/animated.tsx +235 -0
- package/src/keyboard/architecture.ts +1 -0
- package/src/keyboard/bindings.native.ts +113 -0
- package/src/keyboard/bindings.ts +100 -0
- package/src/keyboard/compat.ts +61 -0
- package/src/keyboard/components/KeyboardAvoidingView/hooks.ts +152 -0
- package/src/keyboard/components/KeyboardAvoidingView/index.tsx +260 -0
- package/src/keyboard/components/KeyboardAwareScrollView/index.tsx +607 -0
- package/src/keyboard/components/KeyboardAwareScrollView/types.ts +30 -0
- package/src/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.ts +151 -0
- package/src/keyboard/components/KeyboardAwareScrollView/utils.ts +42 -0
- package/src/keyboard/components/KeyboardChatScrollView/hooks.ts +2 -0
- package/src/keyboard/components/KeyboardChatScrollView/index.tsx +182 -0
- package/src/keyboard/components/KeyboardChatScrollView/types.ts +120 -0
- package/src/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.ts +263 -0
- package/src/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.ts +255 -0
- package/src/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ts +356 -0
- package/src/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.ts +39 -0
- package/src/keyboard/components/KeyboardChatScrollView/useEndVisible.ts +59 -0
- package/src/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.ts +188 -0
- package/src/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.ts +80 -0
- package/src/keyboard/components/KeyboardEffects/index.tsx +122 -0
- package/src/keyboard/components/KeyboardStickyView/index.tsx +75 -0
- package/src/keyboard/components/KeyboardToolbar/Arrow.tsx +76 -0
- package/src/keyboard/components/KeyboardToolbar/Button.tsx +89 -0
- package/src/keyboard/components/KeyboardToolbar/colors.native.ts +37 -0
- package/src/keyboard/components/KeyboardToolbar/colors.ts +16 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Background.tsx +7 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Content.tsx +23 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Done.tsx +70 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Next.tsx +53 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Prev.tsx +54 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/index.ts +5 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/types.ts +15 -0
- package/src/keyboard/components/KeyboardToolbar/compound/context.ts +21 -0
- package/src/keyboard/components/KeyboardToolbar/constants.ts +13 -0
- package/src/keyboard/components/KeyboardToolbar/index.tsx +231 -0
- package/src/keyboard/components/KeyboardToolbar/types.ts +129 -0
- package/src/keyboard/components/ScrollViewWithBottomPadding/index.tsx +185 -0
- package/src/keyboard/components/ScrollViewWithBottomPadding/styles.ts +10 -0
- package/src/keyboard/components/hooks/useCombinedRef.ts +22 -0
- package/src/keyboard/components/hooks/useScrollState.ts +81 -0
- package/src/keyboard/components/index.ts +22 -0
- package/src/keyboard/components/utils/safeScrollTo.ts +26 -0
- package/src/keyboard/constants.ts +23 -0
- package/src/keyboard/context.ts +100 -0
- package/src/keyboard/hooks/index.ts +289 -0
- package/src/keyboard/hooks/useKeyboardState/index.ts +70 -0
- package/src/keyboard/hooks/useWindowDimensions/index.ts +38 -0
- package/src/keyboard/index.ts +31 -0
- package/src/keyboard/internal.ts +117 -0
- package/src/keyboard/module.ts +62 -0
- package/src/keyboard/reanimated.native.ts +104 -0
- package/src/keyboard/reanimated.ts +26 -0
- package/src/keyboard/typings/hooks.ts +214 -0
- package/src/keyboard/typings/index.ts +5 -0
- package/src/keyboard/typings/internal.ts +24 -0
- package/src/keyboard/typings/module.ts +136 -0
- package/src/keyboard/typings/provider.ts +43 -0
- package/src/keyboard/typings/views.ts +63 -0
- package/src/keyboard/utils/findNodeHandle/index.native.ts +3 -0
- package/src/keyboard/utils/findNodeHandle/index.ts +6 -0
- package/src/keyboard/views/KeyboardExtender/index.ios.tsx +35 -0
- package/src/keyboard/views/KeyboardExtender/index.tsx +47 -0
- package/src/keyboard/views/OverKeyboardView/index.tsx +61 -0
- package/src/keyboard/views/index.ts +2 -0
- package/src/keyboard.ts +1 -0
- package/src/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.ts +15 -0
- package/src/platform/specs/OneKeyboard.nitro.ts +49 -0
- package/src/platform/specs/OneKeyboardBackgroundViewNativeComponent.ts +10 -0
- package/src/platform/specs/OneKeyboardControllerViewNativeComponent.ts +84 -0
- package/src/platform/specs/OneKeyboardExtenderNativeComponent.ts +13 -0
- package/src/platform/specs/OneKeyboardGestureAreaNativeComponent.ts +17 -0
- package/src/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.ts +10 -0
- package/src/platform/specs/OneOverKeyboardViewNativeComponent.ts +12 -0
- package/types/keyboard/animated.d.ts +18 -0
- package/types/keyboard/animated.d.ts.map +1 -0
- package/types/keyboard/architecture.d.ts +2 -0
- package/types/keyboard/architecture.d.ts.map +1 -0
- package/types/keyboard/bindings.d.ts +64 -0
- package/types/keyboard/bindings.d.ts.map +1 -0
- package/types/keyboard/bindings.native.d.ts +19 -0
- package/types/keyboard/bindings.native.d.ts.map +1 -0
- package/types/keyboard/compat.d.ts +28 -0
- package/types/keyboard/compat.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAvoidingView/hooks.d.ts +11 -0
- package/types/keyboard/components/KeyboardAvoidingView/hooks.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAvoidingView/index.d.ts +81 -0
- package/types/keyboard/components/KeyboardAvoidingView/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAwareScrollView/index.d.ts +31 -0
- package/types/keyboard/components/KeyboardAwareScrollView/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAwareScrollView/types.d.ts +29 -0
- package/types/keyboard/components/KeyboardAwareScrollView/types.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.d.ts +23 -0
- package/types/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAwareScrollView/utils.d.ts +3 -0
- package/types/keyboard/components/KeyboardAwareScrollView/utils.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/hooks.d.ts +3 -0
- package/types/keyboard/components/KeyboardChatScrollView/hooks.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/index.d.ts +5 -0
- package/types/keyboard/components/KeyboardChatScrollView/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/types.d.ts +116 -0
- package/types/keyboard/components/KeyboardChatScrollView/types.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.d.ts +134 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.d.ts +19 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.d.ts +22 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.d.ts +42 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useEndVisible.d.ts +18 -0
- package/types/keyboard/components/KeyboardChatScrollView/useEndVisible.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.d.ts +48 -0
- package/types/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.d.ts +31 -0
- package/types/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardEffects/index.d.ts +61 -0
- package/types/keyboard/components/KeyboardEffects/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardStickyView/index.d.ts +53 -0
- package/types/keyboard/components/KeyboardStickyView/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/Arrow.d.ts +10 -0
- package/types/keyboard/components/KeyboardToolbar/Arrow.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/Button.d.ts +18 -0
- package/types/keyboard/components/KeyboardToolbar/Button.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/colors.d.ts +3 -0
- package/types/keyboard/components/KeyboardToolbar/colors.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/colors.native.d.ts +3 -0
- package/types/keyboard/components/KeyboardToolbar/colors.native.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Background.d.ts +7 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Background.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Content.d.ts +8 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Content.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Done.d.ts +8 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Done.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Next.d.ts +5 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Next.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Prev.d.ts +5 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Prev.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/index.d.ts +6 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/types.d.ts +15 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/types.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/context.d.ts +10 -0
- package/types/keyboard/components/KeyboardToolbar/compound/context.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/constants.d.ts +10 -0
- package/types/keyboard/components/KeyboardToolbar/constants.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/index.d.ts +30 -0
- package/types/keyboard/components/KeyboardToolbar/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/types.d.ts +106 -0
- package/types/keyboard/components/KeyboardToolbar/types.d.ts.map +1 -0
- package/types/keyboard/components/ScrollViewWithBottomPadding/index.d.ts +31 -0
- package/types/keyboard/components/ScrollViewWithBottomPadding/index.d.ts.map +1 -0
- package/types/keyboard/components/ScrollViewWithBottomPadding/styles.d.ts +8 -0
- package/types/keyboard/components/ScrollViewWithBottomPadding/styles.d.ts.map +1 -0
- package/types/keyboard/components/hooks/useCombinedRef.d.ts +4 -0
- package/types/keyboard/components/hooks/useCombinedRef.d.ts.map +1 -0
- package/types/keyboard/components/hooks/useScrollState.d.ts +18 -0
- package/types/keyboard/components/hooks/useScrollState.d.ts.map +1 -0
- package/types/keyboard/components/index.d.ts +13 -0
- package/types/keyboard/components/index.d.ts.map +1 -0
- package/types/keyboard/components/utils/safeScrollTo.d.ts +13 -0
- package/types/keyboard/components/utils/safeScrollTo.d.ts.map +1 -0
- package/types/keyboard/constants.d.ts +19 -0
- package/types/keyboard/constants.d.ts.map +1 -0
- package/types/keyboard/context.d.ts +58 -0
- package/types/keyboard/context.d.ts.map +1 -0
- package/types/keyboard/hooks/index.d.ts +176 -0
- package/types/keyboard/hooks/index.d.ts.map +1 -0
- package/types/keyboard/hooks/useKeyboardState/index.d.ts +29 -0
- package/types/keyboard/hooks/useKeyboardState/index.d.ts.map +1 -0
- package/types/keyboard/hooks/useWindowDimensions/index.d.ts +3 -0
- package/types/keyboard/hooks/useWindowDimensions/index.d.ts.map +1 -0
- package/types/keyboard/index.d.ts +12 -0
- package/types/keyboard/index.d.ts.map +1 -0
- package/types/keyboard/internal.d.ts +37 -0
- package/types/keyboard/internal.d.ts.map +1 -0
- package/types/keyboard/module.d.ts +6 -0
- package/types/keyboard/module.d.ts.map +1 -0
- package/types/keyboard/reanimated.d.ts +5 -0
- package/types/keyboard/reanimated.d.ts.map +1 -0
- package/types/keyboard/reanimated.native.d.ts +12 -0
- package/types/keyboard/reanimated.native.d.ts.map +1 -0
- package/types/keyboard/typings/hooks.d.ts +168 -0
- package/types/keyboard/typings/hooks.d.ts.map +1 -0
- package/types/keyboard/typings/index.d.ts +6 -0
- package/types/keyboard/typings/index.d.ts.map +1 -0
- package/types/keyboard/typings/internal.d.ts +18 -0
- package/types/keyboard/typings/internal.d.ts.map +1 -0
- package/types/keyboard/typings/module.d.ts +122 -0
- package/types/keyboard/typings/module.d.ts.map +1 -0
- package/types/keyboard/typings/provider.d.ts +44 -0
- package/types/keyboard/typings/provider.d.ts.map +1 -0
- package/types/keyboard/typings/views.d.ts +61 -0
- package/types/keyboard/typings/views.d.ts.map +1 -0
- package/types/keyboard/utils/findNodeHandle/index.d.ts +5 -0
- package/types/keyboard/utils/findNodeHandle/index.d.ts.map +1 -0
- package/types/keyboard/utils/findNodeHandle/index.native.d.ts +3 -0
- package/types/keyboard/utils/findNodeHandle/index.native.d.ts.map +1 -0
- package/types/keyboard/views/KeyboardExtender/index.d.ts +20 -0
- package/types/keyboard/views/KeyboardExtender/index.d.ts.map +1 -0
- package/types/keyboard/views/KeyboardExtender/index.ios.d.ts +20 -0
- package/types/keyboard/views/KeyboardExtender/index.ios.d.ts.map +1 -0
- package/types/keyboard/views/OverKeyboardView/index.d.ts +19 -0
- package/types/keyboard/views/OverKeyboardView/index.d.ts.map +1 -0
- package/types/keyboard/views/index.d.ts +3 -0
- package/types/keyboard/views/index.d.ts.map +1 -0
- package/types/keyboard.d.ts +2 -0
- package/types/keyboard.d.ts.map +1 -0
- package/types/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.d.ts +11 -0
- package/types/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboard.nitro.d.ts +39 -0
- package/types/platform/specs/OneKeyboard.nitro.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardBackgroundViewNativeComponent.d.ts +7 -0
- package/types/platform/specs/OneKeyboardBackgroundViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardControllerViewNativeComponent.d.ts +61 -0
- package/types/platform/specs/OneKeyboardControllerViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardExtenderNativeComponent.d.ts +9 -0
- package/types/platform/specs/OneKeyboardExtenderNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardGestureAreaNativeComponent.d.ts +13 -0
- package/types/platform/specs/OneKeyboardGestureAreaNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.d.ts +7 -0
- package/types/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneOverKeyboardViewNativeComponent.d.ts +8 -0
- package/types/platform/specs/OneOverKeyboardViewNativeComponent.d.ts.map +1 -0
package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.native.js","names":[],"sources":["cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.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 helpers_exports = {};\n__export(helpers_exports, {\n clampedScrollTarget: () => clampedScrollTarget,\n computeIOSContentOffset: () => computeIOSContentOffset,\n getEffectiveHeight: () => getEffectiveHeight,\n getMinimumPaddingAbsorbed: () => getMinimumPaddingAbsorbed,\n getScrollEffective: () => getScrollEffective,\n getVisibleMinimumPaddingFraction: () => getVisibleMinimumPaddingFraction,\n isScrollAtEnd: () => isScrollAtEnd,\n shouldShiftContent: () => shouldShiftContent\n});\nmodule.exports = __toCommonJS(helpers_exports);\nvar import_react_native_reanimated = require(\"react-native-reanimated\");\nvar AT_END_THRESHOLD = 20;\nvar getEffectiveHeight = function getEffectiveHeight2(height, targetKeyboardHeight, offset) {\n \"worklet\";\n if (offset === 0 || targetKeyboardHeight === 0) {\n return height;\n }\n return (0, import_react_native_reanimated.interpolate)(height, [\n 0,\n targetKeyboardHeight\n ], [\n 0,\n Math.max(targetKeyboardHeight - offset, 0)\n ]);\n};\nvar isScrollAtEnd = function isScrollAtEnd2(scrollOffset, layoutHeight, contentHeight) {\n \"worklet\";\n var inverted = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;\n if (inverted) {\n return scrollOffset <= AT_END_THRESHOLD;\n }\n return scrollOffset + layoutHeight >= contentHeight - AT_END_THRESHOLD;\n};\nvar shouldShiftContent = function shouldShiftContent2(behavior, isAtEnd) {\n \"worklet\";\n switch (behavior) {\n case \"always\":\n return true;\n case \"never\":\n return false;\n case \"whenAtEnd\":\n return isAtEnd;\n case \"persistent\":\n return true;\n }\n};\nvar getVisibleMinimumPaddingFraction = function getVisibleMinimumPaddingFraction2(scrollOffset, layoutHeight, contentHeight, blankSpace, inverted) {\n \"worklet\";\n if (blankSpace <= 0) {\n return 0;\n }\n if (inverted) {\n return Math.max(0, Math.min(1, -scrollOffset / blankSpace));\n }\n var pastContentEnd = scrollOffset + layoutHeight - contentHeight;\n return Math.max(0, Math.min(1, pastContentEnd / blankSpace));\n};\nvar getMinimumPaddingAbsorbed = function getMinimumPaddingAbsorbed2(blankSpace, extraContentPadding) {\n \"worklet\";\n return Math.max(0, blankSpace - extraContentPadding);\n};\nvar getScrollEffective = function getScrollEffective2(rawEffective, minimumPaddingAbsorbed) {\n \"worklet\";\n return Math.max(0, rawEffective - minimumPaddingAbsorbed);\n};\nvar clampedScrollTarget = function clampedScrollTarget2(offsetBeforeScroll, keyboardHeight, contentHeight, layoutHeight, totalPaddingForMaxScroll) {\n \"worklet\";\n var paddingForMax = totalPaddingForMaxScroll !== void 0 ? totalPaddingForMaxScroll : keyboardHeight;\n var maxScroll = Math.max(contentHeight - layoutHeight + paddingForMax, 0);\n return Math.min(Math.max(offsetBeforeScroll + keyboardHeight, 0), maxScroll);\n};\nvar computeIOSContentOffset = function computeIOSContentOffset2(relativeScroll, keyboardHeight, contentHeight, layoutHeight, inverted, totalPaddingForMaxScroll) {\n \"worklet\";\n var minScroll = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : 0;\n var paddingForMax = totalPaddingForMaxScroll !== void 0 ? totalPaddingForMaxScroll : keyboardHeight;\n if (inverted) {\n var maxScroll = Math.max(contentHeight - layoutHeight, 0);\n return Math.max(Math.min(relativeScroll - keyboardHeight, maxScroll), -paddingForMax);\n }\n var maxScroll1 = Math.max(contentHeight - layoutHeight + paddingForMax, minScroll);\n return Math.min(Math.max(keyboardHeight + relativeScroll, minScroll), maxScroll1);\n};\n//# sourceMappingURL=helpers.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,kBAAkB,CAAC;AACvB,SAAS,iBAAiB;CACxB,2BAA2B;CAC3B,+BAA+B;CAC/B,0BAA0B;CAC1B,iCAAiC;CACjC,0BAA0B;CAC1B,wCAAwC;CACxC,qBAAqB;CACrB,0BAA0B;AAC5B,CAAC;AACD,OAAO,UAAU,aAAa,eAAe;AAC7C,IAAI,iCAAiC,QAAQ,yBAAyB;AACtE,IAAI,mBAAmB;AACvB,IAAI,qBAAqB,SAAS,oBAAoB,QAAQ,sBAAsB,QAAQ;CAC1F;CACA,IAAI,WAAW,KAAK,yBAAyB,GAAG;EAC9C,OAAO;CACT;CACA,QAAQ,GAAG,+BAA+B,YAAW,CAAE,QAAQ,CAC7D,GACA,oBACF,GAAG,CACD,GACA,KAAK,IAAI,uBAAuB,QAAQ,CAAC,CAC3C,CAAC;AACH;AACA,IAAI,gBAAgB,SAAS,eAAe,cAAc,cAAc,eAAe;CACrF;CACA,IAAI,WAAW,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAChF,IAAI,UAAU;EACZ,OAAO,gBAAgB;CACzB;CACA,OAAO,eAAe,gBAAgB,gBAAgB;AACxD;AACA,IAAI,qBAAqB,SAAS,oBAAoB,UAAU,SAAS;CACvE;CACA,QAAQ,UAAR;EACE,KAAK,UACH,OAAO;EACT,KAAK,SACH,OAAO;EACT,KAAK,aACH,OAAO;EACT,KAAK,cACH,OAAO;CACX;AACF;AACA,IAAI,mCAAmC,SAAS,kCAAkC,cAAc,cAAc,eAAe,YAAY,UAAU;CACjJ;CACA,IAAI,cAAc,GAAG;EACnB,OAAO;CACT;CACA,IAAI,UAAU;EACZ,OAAO,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,CAAC,eAAe,UAAU,CAAC;CAC5D;CACA,IAAI,iBAAiB,eAAe,eAAe;CACnD,OAAO,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,iBAAiB,UAAU,CAAC;AAC7D;AACA,IAAI,4BAA4B,SAAS,2BAA2B,YAAY,qBAAqB;CACnG;CACA,OAAO,KAAK,IAAI,GAAG,aAAa,mBAAmB;AACrD;AACA,IAAI,qBAAqB,SAAS,oBAAoB,cAAc,wBAAwB;CAC1F;CACA,OAAO,KAAK,IAAI,GAAG,eAAe,sBAAsB;AAC1D;AACA,IAAI,sBAAsB,SAAS,qBAAqB,oBAAoB,gBAAgB,eAAe,cAAc,0BAA0B;CACjJ;CACA,IAAI,gBAAgB,6BAA6B,KAAK,IAAI,2BAA2B;CACrF,IAAI,YAAY,KAAK,IAAI,gBAAgB,eAAe,eAAe,CAAC;CACxE,OAAO,KAAK,IAAI,KAAK,IAAI,qBAAqB,gBAAgB,CAAC,GAAG,SAAS;AAC7E;AACA,IAAI,0BAA0B,SAAS,yBAAyB,gBAAgB,gBAAgB,eAAe,cAAc,UAAU,0BAA0B;CAC/J;CACA,IAAI,YAAY,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CACjF,IAAI,gBAAgB,6BAA6B,KAAK,IAAI,2BAA2B;CACrF,IAAI,UAAU;EACZ,IAAI,YAAY,KAAK,IAAI,gBAAgB,cAAc,CAAC;EACxD,OAAO,KAAK,IAAI,KAAK,IAAI,iBAAiB,gBAAgB,SAAS,GAAG,CAAC,aAAa;CACtF;CACA,IAAI,aAAa,KAAK,IAAI,gBAAgB,eAAe,eAAe,SAAS;CACjF,OAAO,KAAK,IAAI,KAAK,IAAI,iBAAiB,gBAAgB,SAAS,GAAG,UAAU;AAClF"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
// dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var useChatKeyboard_exports = {};
|
|
29
|
+
__export(useChatKeyboard_exports, { useChatKeyboard: () => useChatKeyboard });
|
|
30
|
+
module.exports = __toCommonJS(useChatKeyboard_exports);
|
|
31
|
+
var import_react = require("react");
|
|
32
|
+
var import_react_native_reanimated = require("react-native-reanimated");
|
|
33
|
+
var import_hooks = require("../../../hooks/index.cjs");
|
|
34
|
+
var import_useScrollState = __toESM(require("../../hooks/useScrollState.cjs"), 1);
|
|
35
|
+
var import_safeScrollTo = require("../../utils/safeScrollTo.cjs");
|
|
36
|
+
var import_helpers = require("./helpers.cjs");
|
|
37
|
+
function useChatKeyboard(scrollViewRef, options) {
|
|
38
|
+
const { inverted, keyboardLiftBehavior, freeze, offset, blankSpace, extraContentPadding } = options;
|
|
39
|
+
const padding = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
40
|
+
const currentHeight = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
41
|
+
const offsetBeforeScroll = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
42
|
+
const targetKeyboardHeight = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
43
|
+
const closing = (0, import_react_native_reanimated.useSharedValue)(false);
|
|
44
|
+
const minimumPaddingFractionOnOpen = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
45
|
+
const actualOpenShift = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
46
|
+
const { layout, size, offset: scroll, onLayout, onContentSizeChange } = (0, import_useScrollState.default)(scrollViewRef);
|
|
47
|
+
const clampScrollIfNeeded = (0, import_react.useCallback)((effective, totalPaddingForMaxScroll) => {
|
|
48
|
+
"worklet";
|
|
49
|
+
const paddingForMax = totalPaddingForMaxScroll !== void 0 ? totalPaddingForMaxScroll : effective;
|
|
50
|
+
const maxScroll = Math.max(size.value.height - layout.value.height + paddingForMax, 0);
|
|
51
|
+
if (scroll.value > maxScroll) {
|
|
52
|
+
(0, import_safeScrollTo.safeScrollTo)(scrollViewRef, 0, maxScroll, false);
|
|
53
|
+
}
|
|
54
|
+
}, [
|
|
55
|
+
scrollViewRef,
|
|
56
|
+
scroll,
|
|
57
|
+
layout,
|
|
58
|
+
size
|
|
59
|
+
]);
|
|
60
|
+
(0, import_hooks.useKeyboardHandler)({
|
|
61
|
+
onStart: (e) => {
|
|
62
|
+
"worklet";
|
|
63
|
+
if (freeze.value) {
|
|
64
|
+
if (!inverted) {
|
|
65
|
+
offsetBeforeScroll.value = -1;
|
|
66
|
+
}
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (e.height > 0) {
|
|
70
|
+
targetKeyboardHeight.value = e.height;
|
|
71
|
+
closing.value = false;
|
|
72
|
+
} else {
|
|
73
|
+
closing.value = true;
|
|
74
|
+
}
|
|
75
|
+
const effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);
|
|
76
|
+
const atEnd = (0, import_helpers.isScrollAtEnd)(scroll.value, layout.value.height, size.value.height, inverted);
|
|
77
|
+
const visibleFraction = (0, import_helpers.getVisibleMinimumPaddingFraction)(scroll.value, layout.value.height, size.value.height, blankSpace.value, inverted);
|
|
78
|
+
const minimumPaddingAbsorbed = visibleFraction >= 1 ? (0, import_helpers.getMinimumPaddingAbsorbed)(blankSpace.value, extraContentPadding.value) : 0;
|
|
79
|
+
const scrollEffective = (0, import_helpers.getScrollEffective)(effective, minimumPaddingAbsorbed);
|
|
80
|
+
if (inverted && e.duration === -1) {
|
|
81
|
+
return;
|
|
82
|
+
} else if (e.height > 0) {
|
|
83
|
+
minimumPaddingFractionOnOpen.value = visibleFraction >= 1 ? 1 : 0;
|
|
84
|
+
padding.value = effective;
|
|
85
|
+
offsetBeforeScroll.value = scroll.value;
|
|
86
|
+
if (!inverted && keyboardLiftBehavior === "whenAtEnd" && !atEnd) {
|
|
87
|
+
offsetBeforeScroll.value = -1;
|
|
88
|
+
} else if (!inverted && scrollEffective === 0) {
|
|
89
|
+
offsetBeforeScroll.value = -1;
|
|
90
|
+
} else if (inverted && scrollEffective === 0) {
|
|
91
|
+
offsetBeforeScroll.value = scroll.value;
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
if (inverted) {
|
|
95
|
+
offsetBeforeScroll.value = scroll.value;
|
|
96
|
+
} else {
|
|
97
|
+
if (offsetBeforeScroll.value !== -1) {
|
|
98
|
+
offsetBeforeScroll.value = scroll.value - actualOpenShift.value;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
onMove: (e) => {
|
|
104
|
+
"worklet";
|
|
105
|
+
if (freeze.value) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
currentHeight.value = e.height;
|
|
109
|
+
if (inverted) {
|
|
110
|
+
if (e.duration === -1) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);
|
|
114
|
+
const minimumPaddingAbsorbed = (0, import_helpers.getMinimumPaddingAbsorbed)(blankSpace.value, extraContentPadding.value) * minimumPaddingFractionOnOpen.value;
|
|
115
|
+
const scrollEffective = (0, import_helpers.getScrollEffective)(effective, minimumPaddingAbsorbed);
|
|
116
|
+
const actualTotalPadding = Math.max(blankSpace.value, effective + extraContentPadding.value);
|
|
117
|
+
const wasAtEnd = (0, import_helpers.isScrollAtEnd)(offsetBeforeScroll.value, layout.value.height, size.value.height, inverted);
|
|
118
|
+
if (keyboardLiftBehavior === "never" && wasAtEnd && effective < padding.value) {
|
|
119
|
+
padding.value = effective;
|
|
120
|
+
if (scrollEffective === 0 && minimumPaddingAbsorbed > 0) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
(0, import_safeScrollTo.safeScrollTo)(scrollViewRef, 0, 0, false);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (!(0, import_helpers.shouldShiftContent)(keyboardLiftBehavior, wasAtEnd)) {
|
|
127
|
+
if (closing.value && effective < padding.value) {
|
|
128
|
+
padding.value = effective;
|
|
129
|
+
clampScrollIfNeeded(effective, actualTotalPadding);
|
|
130
|
+
}
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (scrollEffective === 0 && minimumPaddingAbsorbed > 0) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (keyboardLiftBehavior === "persistent") {
|
|
137
|
+
const currentShift = offsetBeforeScroll.value + padding.value - scroll.value;
|
|
138
|
+
if (effective < currentShift) {
|
|
139
|
+
if (wasAtEnd) {
|
|
140
|
+
padding.value = effective;
|
|
141
|
+
(0, import_safeScrollTo.safeScrollTo)(scrollViewRef, 0, 0, false);
|
|
142
|
+
} else if (closing.value) {
|
|
143
|
+
padding.value = effective;
|
|
144
|
+
clampScrollIfNeeded(effective, actualTotalPadding);
|
|
145
|
+
}
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const target = offsetBeforeScroll.value + padding.value - scrollEffective;
|
|
150
|
+
(0, import_safeScrollTo.safeScrollTo)(scrollViewRef, 0, target, false);
|
|
151
|
+
} else {
|
|
152
|
+
const effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);
|
|
153
|
+
const minimumPaddingAbsorbed = (0, import_helpers.getMinimumPaddingAbsorbed)(blankSpace.value, extraContentPadding.value) * minimumPaddingFractionOnOpen.value;
|
|
154
|
+
const scrollEffective = (0, import_helpers.getScrollEffective)(effective, minimumPaddingAbsorbed);
|
|
155
|
+
const actualTotalPadding = Math.max(blankSpace.value, effective + extraContentPadding.value);
|
|
156
|
+
if (keyboardLiftBehavior === "never" && closing.value && effective < padding.value) {
|
|
157
|
+
clampScrollIfNeeded(effective, actualTotalPadding);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (!(0, import_helpers.shouldShiftContent)(keyboardLiftBehavior, true)) {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (offsetBeforeScroll.value === -1) {
|
|
164
|
+
if (closing.value) {
|
|
165
|
+
clampScrollIfNeeded(effective, actualTotalPadding);
|
|
166
|
+
}
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (keyboardLiftBehavior === "persistent" && closing.value) {
|
|
170
|
+
const keepAt = offsetBeforeScroll.value + padding.value;
|
|
171
|
+
const maxScroll = Math.max(size.value.height - layout.value.height + actualTotalPadding, 0);
|
|
172
|
+
(0, import_safeScrollTo.safeScrollTo)(scrollViewRef, 0, Math.min(keepAt, maxScroll), false);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
const target = (0, import_helpers.clampedScrollTarget)(offsetBeforeScroll.value, scrollEffective, size.value.height, layout.value.height, actualTotalPadding);
|
|
176
|
+
(0, import_safeScrollTo.safeScrollTo)(scrollViewRef, 0, target, false);
|
|
177
|
+
if (!closing.value) {
|
|
178
|
+
actualOpenShift.value = target - offsetBeforeScroll.value;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
onEnd: (e) => {
|
|
183
|
+
"worklet";
|
|
184
|
+
if (freeze.value) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
const effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);
|
|
188
|
+
padding.value = effective;
|
|
189
|
+
if (effective > 0 && offsetBeforeScroll.value !== -1) {
|
|
190
|
+
actualOpenShift.value = scroll.value - offsetBeforeScroll.value;
|
|
191
|
+
} else if (effective === 0) {
|
|
192
|
+
actualOpenShift.value = 0;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}, [
|
|
196
|
+
inverted,
|
|
197
|
+
keyboardLiftBehavior,
|
|
198
|
+
offset
|
|
199
|
+
]);
|
|
200
|
+
return {
|
|
201
|
+
padding,
|
|
202
|
+
currentHeight,
|
|
203
|
+
contentOffsetY: void 0,
|
|
204
|
+
scroll,
|
|
205
|
+
layout,
|
|
206
|
+
size,
|
|
207
|
+
onLayout,
|
|
208
|
+
onContentSizeChange
|
|
209
|
+
};
|
|
210
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
+
get: () => from[key],
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: true
|
|
28
|
+
}) : target, mod));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var index_ios_exports = {};
|
|
31
|
+
__export(index_ios_exports, { useChatKeyboard: () => useChatKeyboard });
|
|
32
|
+
module.exports = __toCommonJS(index_ios_exports);
|
|
33
|
+
var import_react_native_reanimated = require("react-native-reanimated");
|
|
34
|
+
var import_hooks = require("../../../hooks/index.native.js");
|
|
35
|
+
var import_useScrollState = __toESM(require("../../hooks/useScrollState.native.js"), 1);
|
|
36
|
+
var import_helpers = require("./helpers.native.js");
|
|
37
|
+
function useChatKeyboard(scrollViewRef, options) {
|
|
38
|
+
var _options_initialContentOffsetY;
|
|
39
|
+
var { inverted, keyboardLiftBehavior, freeze, offset, minScroll = 0, blankSpace, extraContentPadding } = options;
|
|
40
|
+
var padding = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
41
|
+
var currentHeight = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
42
|
+
var contentOffsetY = (0, import_react_native_reanimated.useSharedValue)((_options_initialContentOffsetY = options.initialContentOffsetY) !== null && _options_initialContentOffsetY !== void 0 ? _options_initialContentOffsetY : 0);
|
|
43
|
+
var targetKeyboardHeight = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
44
|
+
var prevAbsorption = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
45
|
+
var isInteractiveDismissal = (0, import_react_native_reanimated.useSharedValue)(false);
|
|
46
|
+
var lastTransitionFrozen = (0, import_react_native_reanimated.useSharedValue)(false);
|
|
47
|
+
var { layout, size, offset: scroll, onLayout, onContentSizeChange } = (0, import_useScrollState.default)(scrollViewRef, options.initialContentOffsetY);
|
|
48
|
+
(0, import_hooks.useKeyboardHandler)({
|
|
49
|
+
onStart: function onStart(e) {
|
|
50
|
+
"worklet";
|
|
51
|
+
if (freeze.value) {
|
|
52
|
+
lastTransitionFrozen.value = true;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (e.height > 0) {
|
|
56
|
+
targetKeyboardHeight.value = e.height;
|
|
57
|
+
}
|
|
58
|
+
if (lastTransitionFrozen.value) {
|
|
59
|
+
lastTransitionFrozen.value = false;
|
|
60
|
+
prevAbsorption.value = padding.value;
|
|
61
|
+
}
|
|
62
|
+
var effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);
|
|
63
|
+
var atEnd = (0, import_helpers.isScrollAtEnd)(scroll.value, layout.value.height, size.value.height, inverted);
|
|
64
|
+
var visibleFraction = (0, import_helpers.getVisibleMinimumPaddingFraction)(scroll.value, layout.value.height, size.value.height, blankSpace.value, inverted);
|
|
65
|
+
var visiblePadding = visibleFraction * blankSpace.value;
|
|
66
|
+
var minimumPaddingAbsorbed = Math.max(0, visiblePadding - extraContentPadding.value);
|
|
67
|
+
var scrollEffective = (0, import_helpers.getScrollEffective)(effective, minimumPaddingAbsorbed);
|
|
68
|
+
var actualTotalPadding = Math.max(blankSpace.value, effective + extraContentPadding.value);
|
|
69
|
+
if (isInteractiveDismissal.value) {
|
|
70
|
+
isInteractiveDismissal.value = false;
|
|
71
|
+
padding.value = effective;
|
|
72
|
+
prevAbsorption.value = minimumPaddingAbsorbed;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (keyboardLiftBehavior === "persistent" && effective < padding.value) {
|
|
76
|
+
padding.value = effective;
|
|
77
|
+
prevAbsorption.value = minimumPaddingAbsorbed;
|
|
78
|
+
if (inverted) {
|
|
79
|
+
var maxScroll = Math.max(size.value.height - layout.value.height, 0);
|
|
80
|
+
contentOffsetY.value = Math.max(-actualTotalPadding, Math.min(scroll.value, maxScroll));
|
|
81
|
+
} else {
|
|
82
|
+
var maxScroll1 = Math.max(size.value.height - layout.value.height + actualTotalPadding, minScroll);
|
|
83
|
+
contentOffsetY.value = Math.max(minScroll, Math.min(scroll.value, maxScroll1));
|
|
84
|
+
}
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (keyboardLiftBehavior === "never" && effective < padding.value && atEnd) {
|
|
88
|
+
padding.value = effective;
|
|
89
|
+
prevAbsorption.value = minimumPaddingAbsorbed;
|
|
90
|
+
if (inverted) {
|
|
91
|
+
var maxScroll2 = Math.max(size.value.height - layout.value.height, 0);
|
|
92
|
+
contentOffsetY.value = Math.max(-actualTotalPadding, Math.min(scroll.value, maxScroll2));
|
|
93
|
+
} else {
|
|
94
|
+
var maxScroll3 = Math.max(size.value.height - layout.value.height + actualTotalPadding, minScroll);
|
|
95
|
+
contentOffsetY.value = Math.max(minScroll, Math.min(scroll.value, maxScroll3));
|
|
96
|
+
}
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
var prevScrollEffective = (0, import_helpers.getScrollEffective)(padding.value, prevAbsorption.value);
|
|
100
|
+
var relativeScroll = inverted ? scroll.value + prevScrollEffective : scroll.value - prevScrollEffective;
|
|
101
|
+
padding.value = effective;
|
|
102
|
+
prevAbsorption.value = minimumPaddingAbsorbed;
|
|
103
|
+
if (!(0, import_helpers.shouldShiftContent)(keyboardLiftBehavior, atEnd)) {
|
|
104
|
+
contentOffsetY.value = scroll.value;
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (scrollEffective === 0 && minimumPaddingAbsorbed > 0 && effective > 0) {
|
|
108
|
+
contentOffsetY.value = scroll.value;
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
contentOffsetY.value = (0, import_helpers.computeIOSContentOffset)(relativeScroll, scrollEffective, size.value.height, layout.value.height, inverted, actualTotalPadding, minScroll);
|
|
112
|
+
},
|
|
113
|
+
onInteractive: function onInteractive() {
|
|
114
|
+
"worklet";
|
|
115
|
+
isInteractiveDismissal.value = true;
|
|
116
|
+
},
|
|
117
|
+
onMove: function onMove() {
|
|
118
|
+
"worklet";
|
|
119
|
+
},
|
|
120
|
+
onEnd: function onEnd(e) {
|
|
121
|
+
"worklet";
|
|
122
|
+
if (freeze.value) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
var effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);
|
|
126
|
+
padding.value = effective;
|
|
127
|
+
}
|
|
128
|
+
}, [
|
|
129
|
+
inverted,
|
|
130
|
+
keyboardLiftBehavior,
|
|
131
|
+
offset,
|
|
132
|
+
minScroll,
|
|
133
|
+
extraContentPadding
|
|
134
|
+
]);
|
|
135
|
+
return {
|
|
136
|
+
padding,
|
|
137
|
+
currentHeight,
|
|
138
|
+
contentOffsetY,
|
|
139
|
+
scroll,
|
|
140
|
+
layout,
|
|
141
|
+
size,
|
|
142
|
+
onLayout,
|
|
143
|
+
onContentSizeChange
|
|
144
|
+
};
|
|
145
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
+
get: () => from[key],
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: true
|
|
28
|
+
}) : target, mod));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var index_ios_exports = {};
|
|
31
|
+
__export(index_ios_exports, { useChatKeyboard: () => useChatKeyboard });
|
|
32
|
+
module.exports = __toCommonJS(index_ios_exports);
|
|
33
|
+
var import_react_native_reanimated = require("react-native-reanimated");
|
|
34
|
+
var import_hooks = require("../../../hooks/index.native.js");
|
|
35
|
+
var import_useScrollState = __toESM(require("../../hooks/useScrollState.native.js"), 1);
|
|
36
|
+
var import_helpers = require("./helpers.native.js");
|
|
37
|
+
function useChatKeyboard(scrollViewRef, options) {
|
|
38
|
+
var _options_initialContentOffsetY;
|
|
39
|
+
var { inverted, keyboardLiftBehavior, freeze, offset, minScroll = 0, blankSpace, extraContentPadding } = options;
|
|
40
|
+
var padding = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
41
|
+
var currentHeight = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
42
|
+
var contentOffsetY = (0, import_react_native_reanimated.useSharedValue)((_options_initialContentOffsetY = options.initialContentOffsetY) !== null && _options_initialContentOffsetY !== void 0 ? _options_initialContentOffsetY : 0);
|
|
43
|
+
var targetKeyboardHeight = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
44
|
+
var prevAbsorption = (0, import_react_native_reanimated.useSharedValue)(0);
|
|
45
|
+
var isInteractiveDismissal = (0, import_react_native_reanimated.useSharedValue)(false);
|
|
46
|
+
var lastTransitionFrozen = (0, import_react_native_reanimated.useSharedValue)(false);
|
|
47
|
+
var { layout, size, offset: scroll, onLayout, onContentSizeChange } = (0, import_useScrollState.default)(scrollViewRef, options.initialContentOffsetY);
|
|
48
|
+
(0, import_hooks.useKeyboardHandler)({
|
|
49
|
+
onStart: function onStart(e) {
|
|
50
|
+
"worklet";
|
|
51
|
+
if (freeze.value) {
|
|
52
|
+
lastTransitionFrozen.value = true;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (e.height > 0) {
|
|
56
|
+
targetKeyboardHeight.value = e.height;
|
|
57
|
+
}
|
|
58
|
+
if (lastTransitionFrozen.value) {
|
|
59
|
+
lastTransitionFrozen.value = false;
|
|
60
|
+
prevAbsorption.value = padding.value;
|
|
61
|
+
}
|
|
62
|
+
var effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);
|
|
63
|
+
var atEnd = (0, import_helpers.isScrollAtEnd)(scroll.value, layout.value.height, size.value.height, inverted);
|
|
64
|
+
var visibleFraction = (0, import_helpers.getVisibleMinimumPaddingFraction)(scroll.value, layout.value.height, size.value.height, blankSpace.value, inverted);
|
|
65
|
+
var visiblePadding = visibleFraction * blankSpace.value;
|
|
66
|
+
var minimumPaddingAbsorbed = Math.max(0, visiblePadding - extraContentPadding.value);
|
|
67
|
+
var scrollEffective = (0, import_helpers.getScrollEffective)(effective, minimumPaddingAbsorbed);
|
|
68
|
+
var actualTotalPadding = Math.max(blankSpace.value, effective + extraContentPadding.value);
|
|
69
|
+
if (isInteractiveDismissal.value) {
|
|
70
|
+
isInteractiveDismissal.value = false;
|
|
71
|
+
padding.value = effective;
|
|
72
|
+
prevAbsorption.value = minimumPaddingAbsorbed;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (keyboardLiftBehavior === "persistent" && effective < padding.value) {
|
|
76
|
+
padding.value = effective;
|
|
77
|
+
prevAbsorption.value = minimumPaddingAbsorbed;
|
|
78
|
+
if (inverted) {
|
|
79
|
+
var maxScroll = Math.max(size.value.height - layout.value.height, 0);
|
|
80
|
+
contentOffsetY.value = Math.max(-actualTotalPadding, Math.min(scroll.value, maxScroll));
|
|
81
|
+
} else {
|
|
82
|
+
var maxScroll1 = Math.max(size.value.height - layout.value.height + actualTotalPadding, minScroll);
|
|
83
|
+
contentOffsetY.value = Math.max(minScroll, Math.min(scroll.value, maxScroll1));
|
|
84
|
+
}
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (keyboardLiftBehavior === "never" && effective < padding.value && atEnd) {
|
|
88
|
+
padding.value = effective;
|
|
89
|
+
prevAbsorption.value = minimumPaddingAbsorbed;
|
|
90
|
+
if (inverted) {
|
|
91
|
+
var maxScroll2 = Math.max(size.value.height - layout.value.height, 0);
|
|
92
|
+
contentOffsetY.value = Math.max(-actualTotalPadding, Math.min(scroll.value, maxScroll2));
|
|
93
|
+
} else {
|
|
94
|
+
var maxScroll3 = Math.max(size.value.height - layout.value.height + actualTotalPadding, minScroll);
|
|
95
|
+
contentOffsetY.value = Math.max(minScroll, Math.min(scroll.value, maxScroll3));
|
|
96
|
+
}
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
var prevScrollEffective = (0, import_helpers.getScrollEffective)(padding.value, prevAbsorption.value);
|
|
100
|
+
var relativeScroll = inverted ? scroll.value + prevScrollEffective : scroll.value - prevScrollEffective;
|
|
101
|
+
padding.value = effective;
|
|
102
|
+
prevAbsorption.value = minimumPaddingAbsorbed;
|
|
103
|
+
if (!(0, import_helpers.shouldShiftContent)(keyboardLiftBehavior, atEnd)) {
|
|
104
|
+
contentOffsetY.value = scroll.value;
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (scrollEffective === 0 && minimumPaddingAbsorbed > 0 && effective > 0) {
|
|
108
|
+
contentOffsetY.value = scroll.value;
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
contentOffsetY.value = (0, import_helpers.computeIOSContentOffset)(relativeScroll, scrollEffective, size.value.height, layout.value.height, inverted, actualTotalPadding, minScroll);
|
|
112
|
+
},
|
|
113
|
+
onInteractive: function onInteractive() {
|
|
114
|
+
"worklet";
|
|
115
|
+
isInteractiveDismissal.value = true;
|
|
116
|
+
},
|
|
117
|
+
onMove: function onMove() {
|
|
118
|
+
"worklet";
|
|
119
|
+
},
|
|
120
|
+
onEnd: function onEnd(e) {
|
|
121
|
+
"worklet";
|
|
122
|
+
if (freeze.value) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
var effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);
|
|
126
|
+
padding.value = effective;
|
|
127
|
+
}
|
|
128
|
+
}, [
|
|
129
|
+
inverted,
|
|
130
|
+
keyboardLiftBehavior,
|
|
131
|
+
offset,
|
|
132
|
+
minScroll,
|
|
133
|
+
extraContentPadding
|
|
134
|
+
]);
|
|
135
|
+
return {
|
|
136
|
+
padding,
|
|
137
|
+
currentHeight,
|
|
138
|
+
contentOffsetY,
|
|
139
|
+
scroll,
|
|
140
|
+
layout,
|
|
141
|
+
size,
|
|
142
|
+
onLayout,
|
|
143
|
+
onContentSizeChange
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
//# sourceMappingURL=index.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.ios.js","names":[],"sources":["cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_ios_exports = {};\n__export(index_ios_exports, {\n useChatKeyboard: () => useChatKeyboard\n});\nmodule.exports = __toCommonJS(index_ios_exports);\nvar import_react_native_reanimated = require(\"react-native-reanimated\");\nvar import_hooks = require(\"../../../hooks\");\nvar import_useScrollState = __toESM(require(\"../../hooks/useScrollState\"), 1);\nvar import_helpers = require(\"./helpers\");\nfunction useChatKeyboard(scrollViewRef, options) {\n var _options_initialContentOffsetY;\n var { inverted, keyboardLiftBehavior, freeze, offset, minScroll = 0, blankSpace, extraContentPadding } = options;\n var padding = (0, import_react_native_reanimated.useSharedValue)(0);\n var currentHeight = (0, import_react_native_reanimated.useSharedValue)(0);\n var contentOffsetY = (0, import_react_native_reanimated.useSharedValue)((_options_initialContentOffsetY = options.initialContentOffsetY) !== null && _options_initialContentOffsetY !== void 0 ? _options_initialContentOffsetY : 0);\n var targetKeyboardHeight = (0, import_react_native_reanimated.useSharedValue)(0);\n var prevAbsorption = (0, import_react_native_reanimated.useSharedValue)(0);\n var isInteractiveDismissal = (0, import_react_native_reanimated.useSharedValue)(false);\n var lastTransitionFrozen = (0, import_react_native_reanimated.useSharedValue)(false);\n var { layout, size, offset: scroll, onLayout, onContentSizeChange } = (0, import_useScrollState.default)(scrollViewRef, options.initialContentOffsetY);\n (0, import_hooks.useKeyboardHandler)({\n onStart: function onStart(e) {\n \"worklet\";\n if (freeze.value) {\n lastTransitionFrozen.value = true;\n return;\n }\n if (e.height > 0) {\n targetKeyboardHeight.value = e.height;\n }\n if (lastTransitionFrozen.value) {\n lastTransitionFrozen.value = false;\n prevAbsorption.value = padding.value;\n }\n var effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);\n var atEnd = (0, import_helpers.isScrollAtEnd)(scroll.value, layout.value.height, size.value.height, inverted);\n var visibleFraction = (0, import_helpers.getVisibleMinimumPaddingFraction)(scroll.value, layout.value.height, size.value.height, blankSpace.value, inverted);\n var visiblePadding = visibleFraction * blankSpace.value;\n var minimumPaddingAbsorbed = Math.max(0, visiblePadding - extraContentPadding.value);\n var scrollEffective = (0, import_helpers.getScrollEffective)(effective, minimumPaddingAbsorbed);\n var actualTotalPadding = Math.max(blankSpace.value, effective + extraContentPadding.value);\n if (isInteractiveDismissal.value) {\n isInteractiveDismissal.value = false;\n padding.value = effective;\n prevAbsorption.value = minimumPaddingAbsorbed;\n return;\n }\n if (keyboardLiftBehavior === \"persistent\" && effective < padding.value) {\n padding.value = effective;\n prevAbsorption.value = minimumPaddingAbsorbed;\n if (inverted) {\n var maxScroll = Math.max(size.value.height - layout.value.height, 0);\n contentOffsetY.value = Math.max(-actualTotalPadding, Math.min(scroll.value, maxScroll));\n } else {\n var maxScroll1 = Math.max(size.value.height - layout.value.height + actualTotalPadding, minScroll);\n contentOffsetY.value = Math.max(minScroll, Math.min(scroll.value, maxScroll1));\n }\n return;\n }\n if (keyboardLiftBehavior === \"never\" && effective < padding.value && atEnd) {\n padding.value = effective;\n prevAbsorption.value = minimumPaddingAbsorbed;\n if (inverted) {\n var maxScroll2 = Math.max(size.value.height - layout.value.height, 0);\n contentOffsetY.value = Math.max(-actualTotalPadding, Math.min(scroll.value, maxScroll2));\n } else {\n var maxScroll3 = Math.max(size.value.height - layout.value.height + actualTotalPadding, minScroll);\n contentOffsetY.value = Math.max(minScroll, Math.min(scroll.value, maxScroll3));\n }\n return;\n }\n var prevScrollEffective = (0, import_helpers.getScrollEffective)(padding.value, prevAbsorption.value);\n var relativeScroll = inverted ? scroll.value + prevScrollEffective : scroll.value - prevScrollEffective;\n padding.value = effective;\n prevAbsorption.value = minimumPaddingAbsorbed;\n if (!(0, import_helpers.shouldShiftContent)(keyboardLiftBehavior, atEnd)) {\n contentOffsetY.value = scroll.value;\n return;\n }\n if (scrollEffective === 0 && minimumPaddingAbsorbed > 0 && effective > 0) {\n contentOffsetY.value = scroll.value;\n return;\n }\n contentOffsetY.value = (0, import_helpers.computeIOSContentOffset)(relativeScroll, scrollEffective, size.value.height, layout.value.height, inverted, actualTotalPadding, minScroll);\n },\n onInteractive: function onInteractive() {\n \"worklet\";\n isInteractiveDismissal.value = true;\n },\n onMove: function onMove() {\n \"worklet\";\n },\n // iOS doesn't need per-frame updates (contentOffset handles it)\n onEnd: function onEnd(e) {\n \"worklet\";\n if (freeze.value) {\n return;\n }\n var effective = (0, import_helpers.getEffectiveHeight)(e.height, targetKeyboardHeight.value, offset);\n padding.value = effective;\n }\n }, [\n inverted,\n keyboardLiftBehavior,\n offset,\n minScroll,\n extraContentPadding\n ]);\n return {\n padding,\n currentHeight,\n contentOffsetY,\n scroll,\n layout,\n size,\n onLayout,\n onContentSizeChange\n };\n}\n//# sourceMappingURL=index.ios.js.map\n"],"mappings":"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"}
|