@ukeyfe/react-native-text-input 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +33 -0
- package/android/build.gradle +126 -0
- package/android/generated/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/UKeyTextInputManagerDelegate.java +26 -0
- package/android/generated/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/UKeyTextInputManagerInterface.java +17 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/CMakeLists.txt +36 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/RNTextInputViewSpec-generated.cpp +22 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/RNTextInputViewSpec.h +24 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/ComponentDescriptors.cpp +22 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/ComponentDescriptors.h +24 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/EventEmitters.cpp +24 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/EventEmitters.h +25 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/Props.cpp +25 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/Props.h +27 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/RNTextInputViewSpecJSI-generated.cpp +17 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/RNTextInputViewSpecJSI.h +19 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/ShadowNodes.cpp +17 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/ShadowNodes.h +32 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/States.cpp +16 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNTextInputViewSpec/States.h +29 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/textinput/PasteWatcher.kt +10 -0
- package/android/src/main/java/com/textinput/TextInputPackage.kt +19 -0
- package/android/src/main/java/com/textinput/TextInputPasteEvent.kt +48 -0
- package/android/src/main/java/com/textinput/TextInputView.kt +80 -0
- package/android/src/main/java/com/textinput/TextInputViewManager.kt +68 -0
- package/android/src/newarch/TextInputViewManagerSpec.kt +21 -0
- package/android/src/oldarch/TextInputViewManagerSpec.kt +9 -0
- package/ios/TextInputViewManager.mm +23 -0
- package/ios/Utils.h +8 -0
- package/ios/Utils.m +26 -0
- package/ios/generated/build/generated/ios/RNTextInputViewSpec/RNTextInputViewSpec-generated.mm +16 -0
- package/ios/generated/build/generated/ios/RNTextInputViewSpec/RNTextInputViewSpec.h +38 -0
- package/ios/generated/build/generated/ios/RNTextInputViewSpecJSI-generated.cpp +17 -0
- package/ios/generated/build/generated/ios/RNTextInputViewSpecJSI.h +19 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/ComponentDescriptors.cpp +22 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/ComponentDescriptors.h +24 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/EventEmitters.cpp +24 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/EventEmitters.h +25 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/Props.cpp +25 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/Props.h +27 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/RCTComponentViewHelpers.h +20 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/ShadowNodes.cpp +17 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/ShadowNodes.h +32 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/States.cpp +16 -0
- package/ios/generated/build/generated/ios/react/renderer/components/RNTextInputViewSpec/States.h +29 -0
- package/lib/commonjs/AndroidTextInputNativeComponent.js +152 -0
- package/lib/commonjs/AndroidTextInputNativeComponent.js.map +1 -0
- package/lib/commonjs/Input.js +537 -0
- package/lib/commonjs/Input.js.map +1 -0
- package/lib/commonjs/TextInputViewNativeComponent.ts +9 -0
- package/lib/commonjs/enum.js +11 -0
- package/lib/commonjs/enum.js.map +1 -0
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/type.js +6 -0
- package/lib/commonjs/type.js.map +1 -0
- package/lib/typescript/src/TextInputViewNativeComponent.d.ts +8 -0
- package/lib/typescript/src/TextInputViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/enum.d.ts +4 -0
- package/lib/typescript/src/enum.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +7 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/type.d.ts +16 -0
- package/lib/typescript/src/type.d.ts.map +1 -0
- package/package.json +178 -0
- package/src/AndroidTextInputNativeComponent.js +767 -0
- package/src/Input.js +1910 -0
- package/src/TextInputViewNativeComponent.ts +9 -0
- package/src/enum.ts +3 -0
- package/src/index.tsx +17 -0
- package/src/type.ts +13 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInputViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/TextInputViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,UAAU,WAAY,SAAQ,SAAS;IACrC,OAAO,CAAC,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC;CAClC;;AAED,wBAAoE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../src/enum.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,SAAS,eAAe;CACzB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { ITextInputProps } from './type';
|
|
3
|
+
export type { IPasteEventPayloadItem, IPasteEventPayload, IPasteEventParams, ITextInputProps, } from './type';
|
|
4
|
+
export * from './enum';
|
|
5
|
+
declare const TextInput: ComponentType<ITextInputProps>;
|
|
6
|
+
export default TextInput;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAI9C,YAAY,EACV,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAChB,MAAM,QAAQ,CAAC;AAChB,cAAc,QAAQ,CAAC;AAEvB,QAAA,MAAM,SAAS,EAAoB,aAAa,CAAC,eAAe,CAAC,CAAC;AAClE,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TextInputProps } from 'react-native';
|
|
2
|
+
import type { EPasteEventPayloadItemType } from './enum';
|
|
3
|
+
export type IPasteEventPayloadItem = {
|
|
4
|
+
data?: string;
|
|
5
|
+
type?: EPasteEventPayloadItemType;
|
|
6
|
+
};
|
|
7
|
+
export type IPasteEventPayload = IPasteEventPayloadItem[];
|
|
8
|
+
export type IPasteEventParams = {
|
|
9
|
+
nativeEvent: {
|
|
10
|
+
items?: IPasteEventPayload;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export interface ITextInputProps extends TextInputProps {
|
|
14
|
+
onPaste?: (event: IPasteEventParams) => void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,0BAA0B,CAAC;CACnC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,EAAE,CAAC;AAC1D,MAAM,MAAM,iBAAiB,GAAG;IAAE,WAAW,EAAE;QAAE,KAAK,CAAC,EAAE,kBAAkB,CAAA;KAAE,CAAA;CAAE,CAAC;AAEhF,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC9C"}
|
package/package.json
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ukeyfe/react-native-text-input",
|
|
3
|
+
"version": "0.2.9",
|
|
4
|
+
"description": "text-input",
|
|
5
|
+
"source": "./src/index.tsx",
|
|
6
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
7
|
+
"main": "./src/index.tsx",
|
|
8
|
+
"files": [
|
|
9
|
+
"src",
|
|
10
|
+
"lib",
|
|
11
|
+
"android",
|
|
12
|
+
"ios",
|
|
13
|
+
"cpp",
|
|
14
|
+
"*.podspec",
|
|
15
|
+
"!ios/build",
|
|
16
|
+
"!android/build",
|
|
17
|
+
"!android/gradle",
|
|
18
|
+
"!android/gradlew",
|
|
19
|
+
"!android/gradlew.bat",
|
|
20
|
+
"!android/local.properties",
|
|
21
|
+
"!**/__tests__",
|
|
22
|
+
"!**/__fixtures__",
|
|
23
|
+
"!**/__mocks__",
|
|
24
|
+
"!**/.*"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"example": "yarn workspace react-native-text-input-example",
|
|
28
|
+
"test": "jest",
|
|
29
|
+
"typecheck": "tsc",
|
|
30
|
+
"lint": "eslint \"**/*.{ts,tsx}\"",
|
|
31
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
32
|
+
"prepare": "bob build",
|
|
33
|
+
"release": "release-it"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"react-native",
|
|
37
|
+
"ios",
|
|
38
|
+
"android"
|
|
39
|
+
],
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/bestyourwallet/react-native-text-input.git"
|
|
43
|
+
},
|
|
44
|
+
"author": "huhuanming <workboring@gmail.com> (https://github.com/huhuanming)",
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/bestyourwallet/react-native-text-input/issues"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/bestyourwallet/react-native-text-input/issues#readme",
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"registry": "https://registry.npmjs.org/"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
55
|
+
"@evilmartians/lefthook": "^1.5.0",
|
|
56
|
+
"@react-native-community/cli": "^19.1.0",
|
|
57
|
+
"@react-native/eslint-config": "^0.73.1",
|
|
58
|
+
"@release-it/conventional-changelog": "^5.0.0",
|
|
59
|
+
"@types/jest": "^29.5.5",
|
|
60
|
+
"@types/react": "^18.2.44",
|
|
61
|
+
"commitlint": "^17.0.2",
|
|
62
|
+
"del-cli": "^5.1.0",
|
|
63
|
+
"eslint": "^8.51.0",
|
|
64
|
+
"eslint-config-prettier": "^9.0.0",
|
|
65
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
66
|
+
"jest": "^29.7.0",
|
|
67
|
+
"prettier": "^3.0.3",
|
|
68
|
+
"react": "18.3.1",
|
|
69
|
+
"react-native": "0.79.5",
|
|
70
|
+
"react-native-builder-bob": "^0.40.12",
|
|
71
|
+
"release-it": "^19.0.0",
|
|
72
|
+
"turbo": "^1.10.7",
|
|
73
|
+
"typescript": "^5.2.2"
|
|
74
|
+
},
|
|
75
|
+
"resolutions": {
|
|
76
|
+
"@types/react": "^18.2.44"
|
|
77
|
+
},
|
|
78
|
+
"peerDependencies": {
|
|
79
|
+
"react": "*",
|
|
80
|
+
"react-native": "*"
|
|
81
|
+
},
|
|
82
|
+
"workspaces": [
|
|
83
|
+
"example"
|
|
84
|
+
],
|
|
85
|
+
"packageManager": "yarn@3.6.1",
|
|
86
|
+
"jest": {
|
|
87
|
+
"preset": "react-native",
|
|
88
|
+
"modulePathIgnorePatterns": [
|
|
89
|
+
"<rootDir>/example/node_modules",
|
|
90
|
+
"<rootDir>/lib/"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"commitlint": {
|
|
94
|
+
"extends": [
|
|
95
|
+
"@commitlint/config-conventional"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"release-it": {
|
|
99
|
+
"git": {
|
|
100
|
+
"commitMessage": "chore: release ${version}",
|
|
101
|
+
"tagName": "v${version}"
|
|
102
|
+
},
|
|
103
|
+
"npm": {
|
|
104
|
+
"publish": true
|
|
105
|
+
},
|
|
106
|
+
"github": {
|
|
107
|
+
"release": true
|
|
108
|
+
},
|
|
109
|
+
"plugins": {
|
|
110
|
+
"@release-it/conventional-changelog": {
|
|
111
|
+
"preset": "angular"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"eslintConfig": {
|
|
116
|
+
"root": true,
|
|
117
|
+
"extends": [
|
|
118
|
+
"@react-native",
|
|
119
|
+
"prettier"
|
|
120
|
+
],
|
|
121
|
+
"rules": {
|
|
122
|
+
"react/react-in-jsx-scope": "off",
|
|
123
|
+
"prettier/prettier": [
|
|
124
|
+
"error",
|
|
125
|
+
{
|
|
126
|
+
"quoteProps": "consistent",
|
|
127
|
+
"singleQuote": true,
|
|
128
|
+
"tabWidth": 2,
|
|
129
|
+
"trailingComma": "es5",
|
|
130
|
+
"useTabs": false
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"eslintIgnore": [
|
|
136
|
+
"node_modules/",
|
|
137
|
+
"lib/"
|
|
138
|
+
],
|
|
139
|
+
"prettier": {
|
|
140
|
+
"quoteProps": "consistent",
|
|
141
|
+
"singleQuote": true,
|
|
142
|
+
"tabWidth": 2,
|
|
143
|
+
"trailingComma": "es5",
|
|
144
|
+
"useTabs": false
|
|
145
|
+
},
|
|
146
|
+
"react-native-builder-bob": {
|
|
147
|
+
"source": "src",
|
|
148
|
+
"output": "lib",
|
|
149
|
+
"targets": [
|
|
150
|
+
"codegen",
|
|
151
|
+
[
|
|
152
|
+
"commonjs"
|
|
153
|
+
],
|
|
154
|
+
[
|
|
155
|
+
"typescript",
|
|
156
|
+
{
|
|
157
|
+
"project": "tsconfig.build.json"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"codegenConfig": {
|
|
163
|
+
"name": "RNTextInputViewSpec",
|
|
164
|
+
"type": "all",
|
|
165
|
+
"jsSrcsDir": "src",
|
|
166
|
+
"outputDir": {
|
|
167
|
+
"ios": "ios/generated",
|
|
168
|
+
"android": "android/generated"
|
|
169
|
+
},
|
|
170
|
+
"android": {
|
|
171
|
+
"javaPackageName": "com.textinput"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"create-react-native-library": {
|
|
175
|
+
"type": "view-mixed",
|
|
176
|
+
"version": "0.41.2"
|
|
177
|
+
}
|
|
178
|
+
}
|