@apollohg/react-native-rich-text-editor 2.0.3 → 2.0.4
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/ios/EditorCore.xcframework/Info.plist +5 -5
- package/ios/EditorCore.xcframework/ios-arm64/libeditor_core.a +0 -0
- package/ios/EditorCore.xcframework/ios-arm64_x86_64-simulator/libeditor_core.a +0 -0
- package/ios/EditorTextView+Selection.swift +5 -2
- package/package.json +1 -1
- package/rust/android/arm64-v8a/libeditor_core.so +0 -0
- package/rust/android/armeabi-v7a/libeditor_core.so +0 -0
- package/rust/android/x86/libeditor_core.so +0 -0
- package/rust/android/x86_64/libeditor_core.so +0 -0
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>libeditor_core.a</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>libeditor_core.a</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
-
<string>x86_64</string>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
19
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>simulator</string>
|
|
23
20
|
</dict>
|
|
24
21
|
<dict>
|
|
25
22
|
<key>BinaryPath</key>
|
|
26
23
|
<string>libeditor_core.a</string>
|
|
27
24
|
<key>LibraryIdentifier</key>
|
|
28
|
-
<string>ios-
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
29
26
|
<key>LibraryPath</key>
|
|
30
27
|
<string>libeditor_core.a</string>
|
|
31
28
|
<key>SupportedArchitectures</key>
|
|
32
29
|
<array>
|
|
33
30
|
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
34
32
|
</array>
|
|
35
33
|
<key>SupportedPlatform</key>
|
|
36
34
|
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
@@ -49,7 +49,8 @@ extension EditorTextView {
|
|
|
49
49
|
prepareForExternalEditorUpdate(),
|
|
50
50
|
let position = closestPosition(to: point)
|
|
51
51
|
else { return false }
|
|
52
|
-
let
|
|
52
|
+
let caretPosition = autocapitalizationFriendlyEmptyBlockPosition(for: position) ?? position
|
|
53
|
+
let offset = self.offset(from: beginningOfDocument, to: caretPosition)
|
|
53
54
|
guard !isAtomBoundaryCaretOffset(offset) else { return false }
|
|
54
55
|
_ = becomeFirstResponder()
|
|
55
56
|
logicalSelectionScalarRange = nil
|
|
@@ -154,7 +155,9 @@ extension EditorTextView {
|
|
|
154
155
|
selectedRange.length == 0,
|
|
155
156
|
let point = caretPlacementTapRecognizer.pendingCaretPoint,
|
|
156
157
|
let position = closestPosition(to: point) {
|
|
157
|
-
|
|
158
|
+
// Match empty-block normalization so synchronous callbacks cannot alternate offsets.
|
|
159
|
+
let caretPosition = autocapitalizationFriendlyEmptyBlockPosition(for: position) ?? position
|
|
160
|
+
let offset = self.offset(from: beginningOfDocument, to: caretPosition)
|
|
158
161
|
if selectedRange.location != offset, !isAtomBoundaryCaretOffset(offset) {
|
|
159
162
|
// Correct UIKit's word snap before publishing or drawing the selection.
|
|
160
163
|
selectedRange = NSRange(location: offset, length: 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollohg/react-native-rich-text-editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Native rich text editor with Rust core for React Native",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/apollohg/react-native-rich-text-editor",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|