@onekeyfe/react-native-text-input 3.0.179-alpha.303 → 3.0.179-alpha.306

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.
Files changed (3) hide show
  1. package/LICENSE +31 -0
  2. package/README.md +13 -0
  3. package/package.json +5 -1
package/LICENSE CHANGED
@@ -18,3 +18,34 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
18
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
19
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
20
  SOFTWARE.
21
+
22
+ ---
23
+
24
+ React Native-derived source
25
+
26
+ The React Native-derived code retains its Meta copyright notices. The following
27
+ MIT grant was checked against React Native v0.86.2; this identifies the license
28
+ terms and does not assert that every adapted file is an exact copy of that tag.
29
+ https://raw.githubusercontent.com/facebook/react-native/v0.86.2/LICENSE
30
+
31
+ MIT License
32
+
33
+ Copyright (c) Meta Platforms, Inc. and affiliates.
34
+
35
+ Permission is hereby granted, free of charge, to any person obtaining a copy
36
+ of this software and associated documentation files (the "Software"), to deal
37
+ in the Software without restriction, including without limitation the rights
38
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
39
+ copies of the Software, and to permit persons to whom the Software is
40
+ furnished to do so, subject to the following conditions:
41
+
42
+ The above copyright notice and this permission notice shall be included in all
43
+ copies or substantial portions of the Software.
44
+
45
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
46
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
47
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
48
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
49
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
51
+ SOFTWARE.
package/README.md CHANGED
@@ -46,6 +46,19 @@ The public payload types are in [src/type.ts](src/type.ts). The
46
46
  [native behavior specification](https://github.com/OneKeyHQ/app-modules/blob/main/native-views/react-native-text-input/docs/SPEC.md)
47
47
  records event ownership, temporary-file handling and acceptance limits.
48
48
 
49
+ ## Consuming paste payloads
50
+
51
+ Check `nativeEvent.items` before iterating: the public type allows it to be
52
+ absent. Inspect each item's MIME `type` before interpreting its string `data`.
53
+ A text string, a temporary iOS file URL and an Android content URI need distinct
54
+ consumer handling; the callback does not copy them into a common byte format.
55
+
56
+ On Android both Paste and Paste as plain text continue through the underlying
57
+ input paste path after the optional event. On iOS the availability cache is only
58
+ a menu hint; the actual paste action checks clipboard contents. The
59
+ [specification](https://github.com/OneKeyHQ/app-modules/blob/main/native-views/react-native-text-input/docs/SPEC.md) separates these platform behaviors and documents
60
+ pending device acceptance.
61
+
49
62
  ## License
50
63
 
51
64
  MIT.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-text-input",
3
- "version": "3.0.179-alpha.303",
3
+ "version": "3.0.179-alpha.306",
4
4
  "description": "React Native TextInput with native paste events",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -92,5 +92,9 @@
92
92
  "android": {
93
93
  "javaPackageName": "com.textinput"
94
94
  }
95
+ },
96
+ "dependencies": {
97
+ "invariant": "^2.2.4",
98
+ "nullthrows": "^1.1.1"
95
99
  }
96
100
  }