@apollohg/react-native-prose-editor 0.1.0
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 +160 -0
- package/README.md +143 -0
- package/android/build.gradle +39 -0
- package/android/src/main/assets/editor-icons/MaterialIcons.json +2236 -0
- package/android/src/main/assets/editor-icons/MaterialIcons.ttf +0 -0
- package/android/src/main/java/com/apollohg/editor/EditorAddons.kt +131 -0
- package/android/src/main/java/com/apollohg/editor/EditorEditText.kt +1057 -0
- package/android/src/main/java/com/apollohg/editor/EditorHeightBehavior.kt +14 -0
- package/android/src/main/java/com/apollohg/editor/EditorInputConnection.kt +191 -0
- package/android/src/main/java/com/apollohg/editor/EditorTheme.kt +325 -0
- package/android/src/main/java/com/apollohg/editor/NativeEditorExpoView.kt +647 -0
- package/android/src/main/java/com/apollohg/editor/NativeEditorModule.kt +257 -0
- package/android/src/main/java/com/apollohg/editor/NativeToolbar.kt +714 -0
- package/android/src/main/java/com/apollohg/editor/PositionBridge.kt +76 -0
- package/android/src/main/java/com/apollohg/editor/RenderBridge.kt +1044 -0
- package/android/src/main/java/com/apollohg/editor/RichTextEditorView.kt +211 -0
- package/expo-module.config.json +9 -0
- package/ios/EditorAddons.swift +228 -0
- package/ios/EditorCore.xcframework/Info.plist +44 -0
- 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/EditorLayoutManager.swift +254 -0
- package/ios/EditorTheme.swift +372 -0
- package/ios/Generated_editor_core.swift +1143 -0
- package/ios/NativeEditorExpoView.swift +1417 -0
- package/ios/NativeEditorModule.swift +263 -0
- package/ios/PositionBridge.swift +278 -0
- package/ios/ReactNativeProseEditor.podspec +49 -0
- package/ios/RenderBridge.swift +825 -0
- package/ios/RichTextEditorView.swift +1559 -0
- package/ios/editor_coreFFI/editor_coreFFI.h +1014 -0
- package/ios/editor_coreFFI/module.modulemap +7 -0
- package/ios/editor_coreFFI.h +904 -0
- package/ios/editor_coreFFI.modulemap +7 -0
- package/package.json +66 -0
- 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 +2014 -0
- package/src/EditorTheme.ts +130 -0
- package/src/EditorToolbar.tsx +620 -0
- package/src/NativeEditorBridge.ts +607 -0
- package/src/NativeRichTextEditor.tsx +951 -0
- package/src/addons.ts +158 -0
- package/src/index.ts +63 -0
- package/src/schemas.ts +153 -0
- package/src/useNativeEditor.ts +173 -0
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@apollohg/react-native-prose-editor",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Native rich text editor with Rust core for React Native",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"homepage": "https://github.com/apollohg/react-native-prose-editor",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/apollohg/react-native-prose-editor.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/apollohg/react-native-prose-editor/issues"
|
|
13
|
+
},
|
|
14
|
+
"main": "src/index.ts",
|
|
15
|
+
"types": "src/index.ts",
|
|
16
|
+
"private": false,
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "jest --runInBand --watchman=false",
|
|
22
|
+
"typecheck": "tsc --noEmit",
|
|
23
|
+
"android:compile": "cd example/android && ./gradlew :apollohg-react-native-prose-editor:compileDebugKotlin",
|
|
24
|
+
"android:test": "cd example/android && ./gradlew :apollohg-react-native-prose-editor:testDebugUnitTest",
|
|
25
|
+
"android:assemble": "cd example/android && ./gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a",
|
|
26
|
+
"example:prebuild": "npm --prefix example run prebuild",
|
|
27
|
+
"example:start": "npm --prefix example start",
|
|
28
|
+
"example:ios": "npm --prefix example run ios",
|
|
29
|
+
"example:android": "npm --prefix example run android",
|
|
30
|
+
"build:rust": "cd rust && bash build-ios.sh && bash build-android.sh && bash generate-bindings.sh",
|
|
31
|
+
"build:rust:ios": "cd rust && bash build-ios.sh && bash generate-bindings.sh",
|
|
32
|
+
"build:rust:android": "cd rust && bash build-android.sh && bash generate-bindings.sh"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@expo/vector-icons": ">=14.0.0",
|
|
36
|
+
"expo": ">=52.0.0",
|
|
37
|
+
"expo-modules-core": ">=2.0.0",
|
|
38
|
+
"react": ">=18.0.0",
|
|
39
|
+
"react-native": ">=0.76.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@testing-library/react-native": "^13.3.3",
|
|
43
|
+
"@types/jest": "29.5.14",
|
|
44
|
+
"@types/react": "^19.2.14",
|
|
45
|
+
"babel-jest": "^29.7.0",
|
|
46
|
+
"jest": "^29.7.0",
|
|
47
|
+
"react-test-renderer": "^19.1.0",
|
|
48
|
+
"typescript": "^5.9.3"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"README.md",
|
|
52
|
+
"src/*.ts",
|
|
53
|
+
"src/*.tsx",
|
|
54
|
+
"android/build.gradle",
|
|
55
|
+
"android/src/main",
|
|
56
|
+
"ios/*.swift",
|
|
57
|
+
"ios/*.h",
|
|
58
|
+
"ios/*.modulemap",
|
|
59
|
+
"ios/*.podspec",
|
|
60
|
+
"ios/editor_coreFFI",
|
|
61
|
+
"ios/EditorCore.xcframework",
|
|
62
|
+
"rust/android",
|
|
63
|
+
"rust/bindings/kotlin",
|
|
64
|
+
"expo-module.config.json"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|