react-native-external-keyboard 0.8.1 → 0.8.2-rc

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.
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_withKeyboardFocus","Pressable","exports","withKeyboardFocus","RNPressable"],"sourceRoot":"../../../../src","sources":["components/Touchable/Pressable.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAAC,kBAAA,GAAAD,OAAA;AAGO,MAAME,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,IAAAE,oCAAiB,EAACC,sBAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_withKeyboardFocus","Pressable","exports","withKeyboardFocus","RNPressable"],"sourceRoot":"../../../../src","sources":["components/Touchable/Pressable.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,IAAAC,kBAAA,GAAAD,OAAA;AAGO,MAAME,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,IAAAE,oCAAiB,EAACC,sBAAW,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["Pressable","RNPressable","withKeyboardFocus"],"sourceRoot":"../../../../src","sources":["components/Touchable/Pressable.tsx"],"mappings":";;AAAA,SACEA,SAAS,IAAIC,WAAW,QAGnB,cAAc;AAErB,SAASC,iBAAiB,QAAQ,+BAA+B;AAGjE,OAAO,MAAMF,SAAS,GAAGE,iBAAiB,CAACD,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Pressable","RNPressable","withKeyboardFocus"],"sourceRoot":"../../../../src","sources":["components/Touchable/Pressable.tsx"],"mappings":";;AAAA,SACEA,SAAS,IAAIC,WAAW,QAInB,cAAc;AAErB,SAASC,iBAAiB,QAAQ,+BAA+B;AAGjE,OAAO,MAAMF,SAAS,GAAGE,iBAAiB,CAACD,WAAW,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { type PressableProps, type ViewProps } from 'react-native';
1
+ import { type PressableProps, type ViewProps, type View } from 'react-native';
2
2
  import type { WithKeyboardPropsTypeDeclaration } from '../../types/WithKeyboardFocus';
3
3
  export declare const Pressable: import("react").NamedExoticComponent<Omit<import("../..").WithKeyboardFocus<Omit<Readonly<Omit<Omit<Readonly<Omit<Readonly<{
4
4
  onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
@@ -148,11 +148,11 @@ export declare const Pressable: import("react").NamedExoticComponent<Omit<import
148
148
  testOnly_pressed?: boolean | undefined;
149
149
  unstable_pressDelay?: number | undefined;
150
150
  }>, never>>, "ref"> & {
151
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").View>>;
151
+ ref?: React.Ref<React.ComponentRef<typeof View>>;
152
152
  }, unknown>, "ref"> & import("react").RefAttributes<((props: Omit<ViewProps, keyof {
153
153
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
154
154
  }> & {
155
155
  ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
156
156
  }) => React.ReactNode) | import("../..").KeyboardFocus>>;
157
- export type KeyboardPressableProps = WithKeyboardPropsTypeDeclaration<PressableProps, ViewProps['style']>;
157
+ export type KeyboardPressableProps = WithKeyboardPropsTypeDeclaration<PressableProps, ViewProps['style'], View>;
158
158
  //# sourceMappingURL=Pressable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../../src/components/Touchable/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEtF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAM+X,CAAC;;OAAyE,CAAC;wDANza,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CACnE,cAAc,EACd,SAAS,CAAC,OAAO,CAAC,CACnB,CAAC"}
1
+ {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../../src/components/Touchable/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,IAAI,EACV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEtF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAO0W,CAAC;;OAAyE,CAAC;wDAPpZ,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CACnE,cAAc,EACd,SAAS,CAAC,OAAO,CAAC,EAClB,IAAI,CACL,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { PressableProps, ViewProps } from 'react-native';
1
+ import type { PressableProps, View, ViewProps } from 'react-native';
2
2
  import type { FocusStyle } from './FocusStyle';
3
3
  import type { KeyboardFocus, OnKeyPress } from './BaseKeyboardView';
4
4
  import type { FocusViewProps } from './KeyboardFocusView.types';
@@ -16,12 +16,12 @@ export type KeyboardPressType<ComponentProps extends object> = {
16
16
  onComponentFocus?: PickProp<ComponentProps, 'onFocus'>;
17
17
  onComponentBlur?: PickProp<ComponentProps, 'onBlur'>;
18
18
  };
19
- export type WithKeyboardProps<R = unknown, ViewStyleType = unknown> = {
19
+ export type WithKeyboardProps<ViewType = View, ViewStyleType = unknown> = {
20
20
  withPressedStyle?: boolean;
21
21
  containerStyle?: ViewStyleType | ViewProps['style'];
22
22
  containerFocusStyle?: FocusStyle;
23
23
  tintType?: TintType;
24
- componentRef?: React.RefObject<R>;
24
+ componentRef?: React.RefObject<ViewType>;
25
25
  FocusHoverComponent?: RenderProp;
26
26
  style?: PressableProps['style'];
27
27
  onBlur?: (() => void) | ((e: any) => void) | null;
@@ -29,10 +29,10 @@ export type WithKeyboardProps<R = unknown, ViewStyleType = unknown> = {
29
29
  };
30
30
  type KeyboardFocusBaseProps = Omit<FocusViewProps, 'onPress' | 'onLongPress' | 'onBlur' | 'onFocus'>;
31
31
  type MergeProps<BaseProps extends object, OverrideProps extends object> = Omit<BaseProps, keyof OverrideProps> & OverrideProps;
32
- type KeyboardFocusOverrideProps<ComponentProps extends object, ViewStyleType> = KeyboardPressType<ComponentProps> & KeyboardFocusBaseProps & WithKeyboardProps<ComponentProps, ViewStyleType>;
33
- export type WithKeyboardFocus<ComponentProps extends object, ViewStyleType> = MergeProps<ComponentProps, KeyboardFocusOverrideProps<ComponentProps, ViewStyleType>>;
34
- export type WithKeyboardPropsTypeDeclaration<ComponentProps extends object, ViewStyleType> = WithKeyboardFocus<ComponentProps, ViewStyleType> & RefAttributes<KeyboardFocus>;
35
- export type WithKeyboardFocusDeclaration<ComponentProps extends object, ViewStyleType> = React.JSXElementConstructor<WithKeyboardPropsTypeDeclaration<ComponentProps, ViewStyleType>> | React.ForwardRefExoticComponent<WithKeyboardPropsTypeDeclaration<ComponentProps, ViewStyleType>>;
32
+ type KeyboardFocusOverrideProps<ComponentProps extends object, ViewStyleType, ViewType = View> = KeyboardPressType<ComponentProps> & KeyboardFocusBaseProps & WithKeyboardProps<ViewType, ViewStyleType>;
33
+ export type WithKeyboardFocus<ComponentProps extends object, ViewStyleType, ViewType = View> = MergeProps<ComponentProps, KeyboardFocusOverrideProps<ComponentProps, ViewStyleType, ViewType>>;
34
+ export type WithKeyboardPropsTypeDeclaration<ComponentProps extends object, ViewStyleType, ViewType = View> = WithKeyboardFocus<ComponentProps, ViewStyleType, ViewType> & RefAttributes<KeyboardFocus>;
35
+ export type WithKeyboardFocusDeclaration<ComponentProps extends object, ViewStyleType, ViewType = View> = React.JSXElementConstructor<WithKeyboardPropsTypeDeclaration<ComponentProps, ViewStyleType, ViewType>> | React.ForwardRefExoticComponent<WithKeyboardPropsTypeDeclaration<ComponentProps, ViewStyleType, ViewType>>;
36
36
  export type TintType = 'default' | 'hover' | 'background' | 'none';
37
37
  export {};
38
38
  //# sourceMappingURL=WithKeyboardFocus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WithKeyboardFocus.d.ts","sourceRoot":"","sources":["../../../../src/types/WithKeyboardFocus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,UAAU,GAClB,KAAK,CAAC,YAAY,GAClB,KAAK,CAAC,iBAAiB,GACvB,CAAC,MAAM,KAAK,CAAC,YAAY,CAAC,CAAC;AAE/B,KAAK,oBAAoB,GAAG,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;AAErD,KAAK,gBAAgB,CACnB,cAAc,SAAS,MAAM,EAC7B,QAAQ,SAAS,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,YAAY,IACrE,QAAQ,SAAS,MAAM,cAAc,GACrC,cAAc,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC;AAEzB,KAAK,QAAQ,CACX,cAAc,SAAS,MAAM,EAC7B,QAAQ,SAAS,MAAM,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aAAa,EACb,QAAQ,GAAG,IAAI,IACb,iBAAiB,CAAC,cAAc,CAAC,GACnC,sBAAsB,GACtB,iBAAiB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAE7C,MAAM,MAAM,iBAAiB,CAC3B,cAAc,SAAS,MAAM,EAC7B,aAAa,EACb,QAAQ,GAAG,IAAI,IACb,UAAU,CACZ,cAAc,EACd,0BAA0B,CAAC,cAAc,EAAE,aAAa,EAAE,QAAQ,CAAC,CACpE,CAAC;AAEF,MAAM,MAAM,gCAAgC,CAC1C,cAAc,SAAS,MAAM,EAC7B,aAAa,EACb,QAAQ,GAAG,IAAI,IACb,iBAAiB,CAAC,cAAc,EAAE,aAAa,EAAE,QAAQ,CAAC,GAC5D,aAAa,CAAC,aAAa,CAAC,CAAC;AAE/B,MAAM,MAAM,4BAA4B,CACtC,cAAc,SAAS,MAAM,EAC7B,aAAa,EACb,QAAQ,GAAG,IAAI,IAEb,KAAK,CAAC,qBAAqB,CACzB,gCAAgC,CAAC,cAAc,EAAE,aAAa,EAAE,QAAQ,CAAC,CAC1E,GACD,KAAK,CAAC,yBAAyB,CAC7B,gCAAgC,CAAC,cAAc,EAAE,aAAa,EAAE,QAAQ,CAAC,CAC1E,CAAC;AAEN,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-external-keyboard",
3
- "version": "0.8.1",
3
+ "version": "0.8.2-rc",
4
4
  "description": "Toolkit for improving physical keyboard support in React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -2,6 +2,7 @@ import {
2
2
  Pressable as RNPressable,
3
3
  type PressableProps,
4
4
  type ViewProps,
5
+ type View,
5
6
  } from 'react-native';
6
7
 
7
8
  import { withKeyboardFocus } from '../../utils/withKeyboardFocus';
@@ -11,5 +12,6 @@ export const Pressable = withKeyboardFocus(RNPressable);
11
12
 
12
13
  export type KeyboardPressableProps = WithKeyboardPropsTypeDeclaration<
13
14
  PressableProps,
14
- ViewProps['style']
15
+ ViewProps['style'],
16
+ View
15
17
  >;
@@ -1,4 +1,4 @@
1
- import type { PressableProps, ViewProps } from 'react-native';
1
+ import type { PressableProps, View, ViewProps } from 'react-native';
2
2
  import type { FocusStyle } from './FocusStyle';
3
3
  import type { KeyboardFocus, OnKeyPress } from './BaseKeyboardView';
4
4
  import type { FocusViewProps } from './KeyboardFocusView.types';
@@ -36,12 +36,12 @@ export type KeyboardPressType<ComponentProps extends object> = {
36
36
  onComponentBlur?: PickProp<ComponentProps, 'onBlur'>;
37
37
  };
38
38
 
39
- export type WithKeyboardProps<R = unknown, ViewStyleType = unknown> = {
39
+ export type WithKeyboardProps<ViewType = View, ViewStyleType = unknown> = {
40
40
  withPressedStyle?: boolean;
41
41
  containerStyle?: ViewStyleType | ViewProps['style'];
42
42
  containerFocusStyle?: FocusStyle;
43
43
  tintType?: TintType;
44
- componentRef?: React.RefObject<R>;
44
+ componentRef?: React.RefObject<ViewType>;
45
45
  FocusHoverComponent?: RenderProp;
46
46
  style?: PressableProps['style'];
47
47
  onBlur?: (() => void) | ((e: any) => void) | null;
@@ -61,34 +61,38 @@ type MergeProps<BaseProps extends object, OverrideProps extends object> = Omit<
61
61
 
62
62
  type KeyboardFocusOverrideProps<
63
63
  ComponentProps extends object,
64
- ViewStyleType
64
+ ViewStyleType,
65
+ ViewType = View
65
66
  > = KeyboardPressType<ComponentProps> &
66
67
  KeyboardFocusBaseProps &
67
- WithKeyboardProps<ComponentProps, ViewStyleType>;
68
+ WithKeyboardProps<ViewType, ViewStyleType>;
68
69
 
69
70
  export type WithKeyboardFocus<
70
71
  ComponentProps extends object,
71
- ViewStyleType
72
+ ViewStyleType,
73
+ ViewType = View
72
74
  > = MergeProps<
73
75
  ComponentProps,
74
- KeyboardFocusOverrideProps<ComponentProps, ViewStyleType>
76
+ KeyboardFocusOverrideProps<ComponentProps, ViewStyleType, ViewType>
75
77
  >;
76
78
 
77
79
  export type WithKeyboardPropsTypeDeclaration<
78
80
  ComponentProps extends object,
79
- ViewStyleType
80
- > = WithKeyboardFocus<ComponentProps, ViewStyleType> &
81
+ ViewStyleType,
82
+ ViewType = View
83
+ > = WithKeyboardFocus<ComponentProps, ViewStyleType, ViewType> &
81
84
  RefAttributes<KeyboardFocus>;
82
85
 
83
86
  export type WithKeyboardFocusDeclaration<
84
87
  ComponentProps extends object,
85
- ViewStyleType
88
+ ViewStyleType,
89
+ ViewType = View
86
90
  > =
87
91
  | React.JSXElementConstructor<
88
- WithKeyboardPropsTypeDeclaration<ComponentProps, ViewStyleType>
92
+ WithKeyboardPropsTypeDeclaration<ComponentProps, ViewStyleType, ViewType>
89
93
  >
90
94
  | React.ForwardRefExoticComponent<
91
- WithKeyboardPropsTypeDeclaration<ComponentProps, ViewStyleType>
95
+ WithKeyboardPropsTypeDeclaration<ComponentProps, ViewStyleType, ViewType>
92
96
  >;
93
97
 
94
98
  export type TintType = 'default' | 'hover' | 'background' | 'none';