@transferwise/components 0.0.0-experimental-f88eeb9 → 0.0.0-experimental-222fc9c

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/build/index.mjs CHANGED
@@ -6230,6 +6230,21 @@ const PolymorphicWithOverrides = /*#__PURE__*/forwardRef(function PolymorphicWit
6230
6230
  });
6231
6231
  });
6232
6232
 
6233
+ function useVirtualKeyboard() {
6234
+ useEffect(() => {
6235
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
6236
+ if ('virtualKeyboard' in navigator) {
6237
+ const virtualKeyboard = navigator.virtualKeyboard;
6238
+ const initialOverlaysContent = virtualKeyboard.overlaysContent;
6239
+ virtualKeyboard.overlaysContent = true;
6240
+ return () => {
6241
+ virtualKeyboard.overlaysContent = initialOverlaysContent;
6242
+ };
6243
+ }
6244
+ /* eslint-enable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
6245
+ }, []);
6246
+ }
6247
+
6233
6248
  function PreventScroll() {
6234
6249
  usePreventScroll();
6235
6250
  return null;
@@ -6245,7 +6260,7 @@ function BottomSheet({
6245
6260
  onClose,
6246
6261
  onCloseEnd
6247
6262
  }) {
6248
- // useVirtualKeyboard();
6263
+ useVirtualKeyboard();
6249
6264
  const {
6250
6265
  refs,
6251
6266
  context