@apollohg/react-native-prose-editor 0.5.10 → 0.5.12
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/android/src/main/java/com/apollohg/editor/EditorEditText.kt +14 -2
- package/android/src/main/java/com/apollohg/editor/NativeEditorExpoView.kt +208 -27
- package/android/src/main/java/com/apollohg/editor/NativeEditorModule.kt +4 -0
- package/android/src/main/java/com/apollohg/editor/NativeToolbar.kt +2 -1
- package/android/src/main/java/com/apollohg/editor/RichTextEditorView.kt +10 -0
- package/dist/EditorToolbar.d.ts +18 -1
- package/dist/EditorToolbar.js +192 -4
- package/dist/NativeRichTextEditor.d.ts +16 -0
- package/dist/NativeRichTextEditor.js +89 -13
- package/dist/index.d.ts +1 -1
- 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/NativeEditorExpoView.swift +70 -8
- package/ios/NativeEditorModule.swift +3 -0
- package/ios/RichTextEditorView.swift +7 -0
- 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_64/libeditor_core.so +0 -0
- package/rust/bindings/kotlin/uniffi/editor_core/editor_core.kt +1892 -1391
|
@@ -4669,6 +4669,13 @@ final class RichTextEditorView: UIView {
|
|
|
4669
4669
|
remoteSelectionOverlayView.refresh()
|
|
4670
4670
|
}
|
|
4671
4671
|
|
|
4672
|
+
func currentCaretRect() -> CGRect? {
|
|
4673
|
+
guard let selectedTextRange = textView.selectedTextRange else { return nil }
|
|
4674
|
+
let rect = textView.caretRect(for: selectedTextRange.end)
|
|
4675
|
+
guard rect.height > 0 else { return nil }
|
|
4676
|
+
return textView.convert(rect, to: self)
|
|
4677
|
+
}
|
|
4678
|
+
|
|
4672
4679
|
func remoteSelectionOverlaySubviewsForTesting() -> [UIView] {
|
|
4673
4680
|
remoteSelectionOverlayView.subviews.filter { !$0.isHidden }
|
|
4674
4681
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollohg/react-native-prose-editor",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.12",
|
|
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-prose-editor",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|