@apollohg/react-native-prose-editor 0.1.1 → 0.3.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/README.md +12 -7
- package/android/build.gradle +7 -2
- package/android/src/main/java/com/apollohg/editor/EditorEditText.kt +289 -2
- package/android/src/main/java/com/apollohg/editor/EditorTheme.kt +51 -1
- package/android/src/main/java/com/apollohg/editor/ImageResizeOverlayView.kt +199 -0
- package/android/src/main/java/com/apollohg/editor/NativeEditorExpoView.kt +16 -3
- package/android/src/main/java/com/apollohg/editor/NativeEditorModule.kt +82 -1
- package/android/src/main/java/com/apollohg/editor/NativeToolbar.kt +403 -45
- package/android/src/main/java/com/apollohg/editor/RemoteSelectionOverlayView.kt +246 -0
- package/android/src/main/java/com/apollohg/editor/RenderBridge.kt +841 -155
- package/android/src/main/java/com/apollohg/editor/RichTextEditorView.kt +125 -8
- package/{src/EditorTheme.ts → dist/EditorTheme.d.ts} +12 -52
- package/dist/EditorTheme.js +29 -0
- package/dist/EditorToolbar.d.ts +129 -0
- package/dist/EditorToolbar.js +394 -0
- package/dist/NativeEditorBridge.d.ts +242 -0
- package/dist/NativeEditorBridge.js +647 -0
- package/dist/NativeRichTextEditor.d.ts +142 -0
- package/dist/NativeRichTextEditor.js +649 -0
- package/dist/YjsCollaboration.d.ts +83 -0
- package/dist/YjsCollaboration.js +585 -0
- package/dist/addons.d.ts +70 -0
- package/dist/addons.js +77 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +26 -0
- package/dist/schemas.d.ts +35 -0
- package/{src/schemas.ts → dist/schemas.js} +62 -27
- package/dist/useNativeEditor.d.ts +40 -0
- package/dist/useNativeEditor.js +117 -0
- package/ios/EditorAddons.swift +26 -3
- 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/EditorLayoutManager.swift +236 -0
- package/ios/EditorTheme.swift +51 -1
- package/ios/Generated_editor_core.swift +270 -2
- package/ios/NativeEditorExpoView.swift +612 -45
- package/ios/NativeEditorModule.swift +81 -0
- package/ios/PositionBridge.swift +22 -0
- package/ios/RenderBridge.swift +427 -39
- package/ios/RichTextEditorView.swift +1342 -18
- package/ios/editor_coreFFI/editor_coreFFI.h +209 -0
- package/package.json +80 -64
- 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 +404 -4
- package/src/EditorToolbar.tsx +0 -620
- package/src/NativeEditorBridge.ts +0 -607
- package/src/NativeRichTextEditor.tsx +0 -951
- package/src/addons.ts +0 -158
- package/src/index.ts +0 -63
- package/src/useNativeEditor.ts +0 -173
|
@@ -250,6 +250,66 @@ typedef struct UniffiForeignFutureStructVoid {
|
|
|
250
250
|
typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStructVoid
|
|
251
251
|
);
|
|
252
252
|
|
|
253
|
+
#endif
|
|
254
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_APPLY_ENCODED_STATE
|
|
255
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_APPLY_ENCODED_STATE
|
|
256
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_apply_encoded_state(uint64_t id, RustBuffer encoded_state_json, RustCallStatus *_Nonnull out_status
|
|
257
|
+
);
|
|
258
|
+
#endif
|
|
259
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_APPLY_LOCAL_DOCUMENT_JSON
|
|
260
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_APPLY_LOCAL_DOCUMENT_JSON
|
|
261
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_apply_local_document_json(uint64_t id, RustBuffer json, RustCallStatus *_Nonnull out_status
|
|
262
|
+
);
|
|
263
|
+
#endif
|
|
264
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_CLEAR_LOCAL_AWARENESS
|
|
265
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_CLEAR_LOCAL_AWARENESS
|
|
266
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_clear_local_awareness(uint64_t id, RustCallStatus *_Nonnull out_status
|
|
267
|
+
);
|
|
268
|
+
#endif
|
|
269
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_CREATE
|
|
270
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_CREATE
|
|
271
|
+
uint64_t uniffi_editor_core_fn_func_collaboration_session_create(RustBuffer config_json, RustCallStatus *_Nonnull out_status
|
|
272
|
+
);
|
|
273
|
+
#endif
|
|
274
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_DESTROY
|
|
275
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_DESTROY
|
|
276
|
+
void uniffi_editor_core_fn_func_collaboration_session_destroy(uint64_t id, RustCallStatus *_Nonnull out_status
|
|
277
|
+
);
|
|
278
|
+
#endif
|
|
279
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_GET_DOCUMENT_JSON
|
|
280
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_GET_DOCUMENT_JSON
|
|
281
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_get_document_json(uint64_t id, RustCallStatus *_Nonnull out_status
|
|
282
|
+
);
|
|
283
|
+
#endif
|
|
284
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_GET_ENCODED_STATE
|
|
285
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_GET_ENCODED_STATE
|
|
286
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_get_encoded_state(uint64_t id, RustCallStatus *_Nonnull out_status
|
|
287
|
+
);
|
|
288
|
+
#endif
|
|
289
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_GET_PEERS_JSON
|
|
290
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_GET_PEERS_JSON
|
|
291
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_get_peers_json(uint64_t id, RustCallStatus *_Nonnull out_status
|
|
292
|
+
);
|
|
293
|
+
#endif
|
|
294
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_HANDLE_MESSAGE
|
|
295
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_HANDLE_MESSAGE
|
|
296
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_handle_message(uint64_t id, RustBuffer message_json, RustCallStatus *_Nonnull out_status
|
|
297
|
+
);
|
|
298
|
+
#endif
|
|
299
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_REPLACE_ENCODED_STATE
|
|
300
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_REPLACE_ENCODED_STATE
|
|
301
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_replace_encoded_state(uint64_t id, RustBuffer encoded_state_json, RustCallStatus *_Nonnull out_status
|
|
302
|
+
);
|
|
303
|
+
#endif
|
|
304
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_SET_LOCAL_AWARENESS
|
|
305
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_SET_LOCAL_AWARENESS
|
|
306
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_set_local_awareness(uint64_t id, RustBuffer awareness_json, RustCallStatus *_Nonnull out_status
|
|
307
|
+
);
|
|
308
|
+
#endif
|
|
309
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_START
|
|
310
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_COLLABORATION_SESSION_START
|
|
311
|
+
RustBuffer uniffi_editor_core_fn_func_collaboration_session_start(uint64_t id, RustCallStatus *_Nonnull out_status
|
|
312
|
+
);
|
|
253
313
|
#endif
|
|
254
314
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CAN_REDO
|
|
255
315
|
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CAN_REDO
|
|
@@ -397,6 +457,11 @@ RustBuffer uniffi_editor_core_fn_func_editor_replace_selection_text(uint64_t id,
|
|
|
397
457
|
RustBuffer uniffi_editor_core_fn_func_editor_replace_text_scalar(uint64_t id, uint32_t scalar_from, uint32_t scalar_to, RustBuffer text, RustCallStatus *_Nonnull out_status
|
|
398
458
|
);
|
|
399
459
|
#endif
|
|
460
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_RESIZE_IMAGE_AT_DOC_POS
|
|
461
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_RESIZE_IMAGE_AT_DOC_POS
|
|
462
|
+
RustBuffer uniffi_editor_core_fn_func_editor_resize_image_at_doc_pos(uint64_t id, uint32_t doc_pos, uint32_t width, uint32_t height, RustCallStatus *_Nonnull out_status
|
|
463
|
+
);
|
|
464
|
+
#endif
|
|
400
465
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SCALAR_TO_DOC
|
|
401
466
|
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SCALAR_TO_DOC
|
|
402
467
|
uint32_t uniffi_editor_core_fn_func_editor_scalar_to_doc(uint64_t id, uint32_t scalar, RustCallStatus *_Nonnull out_status
|
|
@@ -412,6 +477,16 @@ RustBuffer uniffi_editor_core_fn_func_editor_set_html(uint64_t id, RustBuffer ht
|
|
|
412
477
|
RustBuffer uniffi_editor_core_fn_func_editor_set_json(uint64_t id, RustBuffer json, RustCallStatus *_Nonnull out_status
|
|
413
478
|
);
|
|
414
479
|
#endif
|
|
480
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_MARK
|
|
481
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_MARK
|
|
482
|
+
RustBuffer uniffi_editor_core_fn_func_editor_set_mark(uint64_t id, RustBuffer mark_name, RustBuffer attrs_json, RustCallStatus *_Nonnull out_status
|
|
483
|
+
);
|
|
484
|
+
#endif
|
|
485
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_MARK_AT_SELECTION_SCALAR
|
|
486
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_MARK_AT_SELECTION_SCALAR
|
|
487
|
+
RustBuffer uniffi_editor_core_fn_func_editor_set_mark_at_selection_scalar(uint64_t id, uint32_t scalar_anchor, uint32_t scalar_head, RustBuffer mark_name, RustBuffer attrs_json, RustCallStatus *_Nonnull out_status
|
|
488
|
+
);
|
|
489
|
+
#endif
|
|
415
490
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_SELECTION
|
|
416
491
|
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_SELECTION
|
|
417
492
|
void uniffi_editor_core_fn_func_editor_set_selection(uint64_t id, uint32_t anchor, uint32_t head, RustCallStatus *_Nonnull out_status
|
|
@@ -432,6 +507,16 @@ RustBuffer uniffi_editor_core_fn_func_editor_split_block(uint64_t id, uint32_t p
|
|
|
432
507
|
RustBuffer uniffi_editor_core_fn_func_editor_split_block_scalar(uint64_t id, uint32_t scalar_pos, RustCallStatus *_Nonnull out_status
|
|
433
508
|
);
|
|
434
509
|
#endif
|
|
510
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_TOGGLE_BLOCKQUOTE
|
|
511
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_TOGGLE_BLOCKQUOTE
|
|
512
|
+
RustBuffer uniffi_editor_core_fn_func_editor_toggle_blockquote(uint64_t id, RustCallStatus *_Nonnull out_status
|
|
513
|
+
);
|
|
514
|
+
#endif
|
|
515
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_TOGGLE_BLOCKQUOTE_AT_SELECTION_SCALAR
|
|
516
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_TOGGLE_BLOCKQUOTE_AT_SELECTION_SCALAR
|
|
517
|
+
RustBuffer uniffi_editor_core_fn_func_editor_toggle_blockquote_at_selection_scalar(uint64_t id, uint32_t scalar_anchor, uint32_t scalar_head, RustCallStatus *_Nonnull out_status
|
|
518
|
+
);
|
|
519
|
+
#endif
|
|
435
520
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_TOGGLE_MARK
|
|
436
521
|
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_TOGGLE_MARK
|
|
437
522
|
RustBuffer uniffi_editor_core_fn_func_editor_toggle_mark(uint64_t id, RustBuffer mark_name, RustCallStatus *_Nonnull out_status
|
|
@@ -447,6 +532,16 @@ RustBuffer uniffi_editor_core_fn_func_editor_toggle_mark_at_selection_scalar(uin
|
|
|
447
532
|
RustBuffer uniffi_editor_core_fn_func_editor_undo(uint64_t id, RustCallStatus *_Nonnull out_status
|
|
448
533
|
);
|
|
449
534
|
#endif
|
|
535
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNSET_MARK
|
|
536
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNSET_MARK
|
|
537
|
+
RustBuffer uniffi_editor_core_fn_func_editor_unset_mark(uint64_t id, RustBuffer mark_name, RustCallStatus *_Nonnull out_status
|
|
538
|
+
);
|
|
539
|
+
#endif
|
|
540
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNSET_MARK_AT_SELECTION_SCALAR
|
|
541
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNSET_MARK_AT_SELECTION_SCALAR
|
|
542
|
+
RustBuffer uniffi_editor_core_fn_func_editor_unset_mark_at_selection_scalar(uint64_t id, uint32_t scalar_anchor, uint32_t scalar_head, RustBuffer mark_name, RustCallStatus *_Nonnull out_status
|
|
543
|
+
);
|
|
544
|
+
#endif
|
|
450
545
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNWRAP_FROM_LIST
|
|
451
546
|
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNWRAP_FROM_LIST
|
|
452
547
|
RustBuffer uniffi_editor_core_fn_func_editor_unwrap_from_list(uint64_t id, RustCallStatus *_Nonnull out_status
|
|
@@ -745,6 +840,78 @@ void ffi_editor_core_rust_future_free_void(uint64_t handle
|
|
|
745
840
|
#ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_VOID
|
|
746
841
|
#define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_VOID
|
|
747
842
|
void ffi_editor_core_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
843
|
+
);
|
|
844
|
+
#endif
|
|
845
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_APPLY_ENCODED_STATE
|
|
846
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_APPLY_ENCODED_STATE
|
|
847
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_apply_encoded_state(void
|
|
848
|
+
|
|
849
|
+
);
|
|
850
|
+
#endif
|
|
851
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_APPLY_LOCAL_DOCUMENT_JSON
|
|
852
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_APPLY_LOCAL_DOCUMENT_JSON
|
|
853
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_apply_local_document_json(void
|
|
854
|
+
|
|
855
|
+
);
|
|
856
|
+
#endif
|
|
857
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_CLEAR_LOCAL_AWARENESS
|
|
858
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_CLEAR_LOCAL_AWARENESS
|
|
859
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_clear_local_awareness(void
|
|
860
|
+
|
|
861
|
+
);
|
|
862
|
+
#endif
|
|
863
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_CREATE
|
|
864
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_CREATE
|
|
865
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_create(void
|
|
866
|
+
|
|
867
|
+
);
|
|
868
|
+
#endif
|
|
869
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_DESTROY
|
|
870
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_DESTROY
|
|
871
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_destroy(void
|
|
872
|
+
|
|
873
|
+
);
|
|
874
|
+
#endif
|
|
875
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_GET_DOCUMENT_JSON
|
|
876
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_GET_DOCUMENT_JSON
|
|
877
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_get_document_json(void
|
|
878
|
+
|
|
879
|
+
);
|
|
880
|
+
#endif
|
|
881
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_GET_ENCODED_STATE
|
|
882
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_GET_ENCODED_STATE
|
|
883
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_get_encoded_state(void
|
|
884
|
+
|
|
885
|
+
);
|
|
886
|
+
#endif
|
|
887
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_GET_PEERS_JSON
|
|
888
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_GET_PEERS_JSON
|
|
889
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_get_peers_json(void
|
|
890
|
+
|
|
891
|
+
);
|
|
892
|
+
#endif
|
|
893
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_HANDLE_MESSAGE
|
|
894
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_HANDLE_MESSAGE
|
|
895
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_handle_message(void
|
|
896
|
+
|
|
897
|
+
);
|
|
898
|
+
#endif
|
|
899
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_REPLACE_ENCODED_STATE
|
|
900
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_REPLACE_ENCODED_STATE
|
|
901
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_replace_encoded_state(void
|
|
902
|
+
|
|
903
|
+
);
|
|
904
|
+
#endif
|
|
905
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_SET_LOCAL_AWARENESS
|
|
906
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_SET_LOCAL_AWARENESS
|
|
907
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_set_local_awareness(void
|
|
908
|
+
|
|
909
|
+
);
|
|
910
|
+
#endif
|
|
911
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_START
|
|
912
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_COLLABORATION_SESSION_START
|
|
913
|
+
uint16_t uniffi_editor_core_checksum_func_collaboration_session_start(void
|
|
914
|
+
|
|
748
915
|
);
|
|
749
916
|
#endif
|
|
750
917
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_CAN_REDO
|
|
@@ -919,6 +1086,12 @@ uint16_t uniffi_editor_core_checksum_func_editor_replace_selection_text(void
|
|
|
919
1086
|
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_REPLACE_TEXT_SCALAR
|
|
920
1087
|
uint16_t uniffi_editor_core_checksum_func_editor_replace_text_scalar(void
|
|
921
1088
|
|
|
1089
|
+
);
|
|
1090
|
+
#endif
|
|
1091
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_RESIZE_IMAGE_AT_DOC_POS
|
|
1092
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_RESIZE_IMAGE_AT_DOC_POS
|
|
1093
|
+
uint16_t uniffi_editor_core_checksum_func_editor_resize_image_at_doc_pos(void
|
|
1094
|
+
|
|
922
1095
|
);
|
|
923
1096
|
#endif
|
|
924
1097
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SCALAR_TO_DOC
|
|
@@ -937,6 +1110,18 @@ uint16_t uniffi_editor_core_checksum_func_editor_set_html(void
|
|
|
937
1110
|
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_JSON
|
|
938
1111
|
uint16_t uniffi_editor_core_checksum_func_editor_set_json(void
|
|
939
1112
|
|
|
1113
|
+
);
|
|
1114
|
+
#endif
|
|
1115
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_MARK
|
|
1116
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_MARK
|
|
1117
|
+
uint16_t uniffi_editor_core_checksum_func_editor_set_mark(void
|
|
1118
|
+
|
|
1119
|
+
);
|
|
1120
|
+
#endif
|
|
1121
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_MARK_AT_SELECTION_SCALAR
|
|
1122
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_MARK_AT_SELECTION_SCALAR
|
|
1123
|
+
uint16_t uniffi_editor_core_checksum_func_editor_set_mark_at_selection_scalar(void
|
|
1124
|
+
|
|
940
1125
|
);
|
|
941
1126
|
#endif
|
|
942
1127
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_SELECTION
|
|
@@ -961,6 +1146,18 @@ uint16_t uniffi_editor_core_checksum_func_editor_split_block(void
|
|
|
961
1146
|
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SPLIT_BLOCK_SCALAR
|
|
962
1147
|
uint16_t uniffi_editor_core_checksum_func_editor_split_block_scalar(void
|
|
963
1148
|
|
|
1149
|
+
);
|
|
1150
|
+
#endif
|
|
1151
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_TOGGLE_BLOCKQUOTE
|
|
1152
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_TOGGLE_BLOCKQUOTE
|
|
1153
|
+
uint16_t uniffi_editor_core_checksum_func_editor_toggle_blockquote(void
|
|
1154
|
+
|
|
1155
|
+
);
|
|
1156
|
+
#endif
|
|
1157
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_TOGGLE_BLOCKQUOTE_AT_SELECTION_SCALAR
|
|
1158
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_TOGGLE_BLOCKQUOTE_AT_SELECTION_SCALAR
|
|
1159
|
+
uint16_t uniffi_editor_core_checksum_func_editor_toggle_blockquote_at_selection_scalar(void
|
|
1160
|
+
|
|
964
1161
|
);
|
|
965
1162
|
#endif
|
|
966
1163
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_TOGGLE_MARK
|
|
@@ -979,6 +1176,18 @@ uint16_t uniffi_editor_core_checksum_func_editor_toggle_mark_at_selection_scalar
|
|
|
979
1176
|
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNDO
|
|
980
1177
|
uint16_t uniffi_editor_core_checksum_func_editor_undo(void
|
|
981
1178
|
|
|
1179
|
+
);
|
|
1180
|
+
#endif
|
|
1181
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNSET_MARK
|
|
1182
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNSET_MARK
|
|
1183
|
+
uint16_t uniffi_editor_core_checksum_func_editor_unset_mark(void
|
|
1184
|
+
|
|
1185
|
+
);
|
|
1186
|
+
#endif
|
|
1187
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNSET_MARK_AT_SELECTION_SCALAR
|
|
1188
|
+
#define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNSET_MARK_AT_SELECTION_SCALAR
|
|
1189
|
+
uint16_t uniffi_editor_core_checksum_func_editor_unset_mark_at_selection_scalar(void
|
|
1190
|
+
|
|
982
1191
|
);
|
|
983
1192
|
#endif
|
|
984
1193
|
#ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNWRAP_FROM_LIST
|
package/package.json
CHANGED
|
@@ -1,66 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
2
|
+
"name": "@apollohg/react-native-prose-editor",
|
|
3
|
+
"version": "0.3.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": "dist/index.js",
|
|
15
|
+
"module": "dist/index.js",
|
|
16
|
+
"react-native": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"react-native": "./dist/index.js",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"private": false,
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsc -p tsconfig.build.json",
|
|
31
|
+
"prepack": "npm run build",
|
|
32
|
+
"test": "jest --runInBand --watchman=false",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"sync:version": "node scripts/sync-version.mjs",
|
|
35
|
+
"version": "node scripts/sync-version.mjs",
|
|
36
|
+
"android:compile": "cd example/android && ./gradlew :apollohg-react-native-prose-editor:compileDebugKotlin",
|
|
37
|
+
"android:test": "cd example/android && ./gradlew :apollohg-react-native-prose-editor:testDebugUnitTest",
|
|
38
|
+
"android:assemble": "cd example/android && ./gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a",
|
|
39
|
+
"example:prebuild": "npm --prefix example run prebuild",
|
|
40
|
+
"example:start": "npm --prefix example start",
|
|
41
|
+
"example:ios": "npm --prefix example run ios",
|
|
42
|
+
"example:android": "npm --prefix example run android",
|
|
43
|
+
"build:rust": "cd rust && bash build-ios.sh && bash build-android.sh && bash generate-bindings.sh",
|
|
44
|
+
"build:rust:ios": "cd rust && bash build-ios.sh && bash generate-bindings.sh",
|
|
45
|
+
"build:rust:android": "cd rust && bash build-android.sh && bash generate-bindings.sh"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@expo/vector-icons": ">=14.0.0",
|
|
49
|
+
"expo": ">=52.0.0",
|
|
50
|
+
"expo-modules-core": ">=2.0.0",
|
|
51
|
+
"react": ">=18.0.0",
|
|
52
|
+
"react-native": ">=0.76.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@testing-library/react-native": "^13.3.3",
|
|
56
|
+
"@types/jest": "29.5.14",
|
|
57
|
+
"@types/react": "^19.2.14",
|
|
58
|
+
"babel-jest": "^29.7.0",
|
|
59
|
+
"jest": "^29.7.0",
|
|
60
|
+
"react-test-renderer": "^19.1.0",
|
|
61
|
+
"typescript": "^5.9.3"
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"README.md",
|
|
65
|
+
"LICENSE",
|
|
66
|
+
"dist",
|
|
67
|
+
"android/build.gradle",
|
|
68
|
+
"android/src/main",
|
|
69
|
+
"ios/*.swift",
|
|
70
|
+
"ios/*.h",
|
|
71
|
+
"ios/*.modulemap",
|
|
72
|
+
"ios/*.podspec",
|
|
73
|
+
"ios/editor_coreFFI",
|
|
74
|
+
"ios/EditorCore.xcframework",
|
|
75
|
+
"rust/android",
|
|
76
|
+
"rust/bindings/kotlin",
|
|
77
|
+
"expo-module.config.json"
|
|
78
|
+
],
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"prettier": "^3.8.1"
|
|
81
|
+
}
|
|
66
82
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|