@apollohg/react-native-rich-text-editor-code-highlighting 2.0.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.
Files changed (29) hide show
  1. package/LICENSE +160 -0
  2. package/NativeEditorCodeHighlighting.podspec +24 -0
  3. package/README.md +47 -0
  4. package/RUST-STANDARD-LIBRARY-NOTICES.html +8266 -0
  5. package/THIRD_PARTY_NOTICES.md +18451 -0
  6. package/android/build.gradle +25 -0
  7. package/android/consumer-rules.pro +1 -0
  8. package/android/src/main/AndroidManifest.xml +1 -0
  9. package/android/src/main/java/com/apollohg/editor/highlighting/NativeCodeHighlightingModule.kt +17 -0
  10. package/android/src/main/java/com/apollohg/editor/highlighting/SyntectHighlightingProvider.kt +23 -0
  11. package/android/src/main/java/uniffi/native_editor_highlighting/native_editor_highlighting.kt +1259 -0
  12. package/android/src/main/jniLibs/arm64-v8a/libnative_editor_highlighting.so +0 -0
  13. package/android/src/main/jniLibs/armeabi-v7a/libnative_editor_highlighting.so +0 -0
  14. package/android/src/main/jniLibs/x86/libnative_editor_highlighting.so +0 -0
  15. package/android/src/main/jniLibs/x86_64/libnative_editor_highlighting.so +0 -0
  16. package/dist/index.d.ts +7 -0
  17. package/dist/index.js +25 -0
  18. package/expo-module.config.json +10 -0
  19. package/ios/Generated_highlighting.swift +728 -0
  20. package/ios/NativeCodeHighlightingModule.swift +14 -0
  21. package/ios/NativeEditorHighlighting.xcframework/Info.plist +44 -0
  22. package/ios/NativeEditorHighlighting.xcframework/ios-arm64/libnative_editor_highlighting.a +0 -0
  23. package/ios/NativeEditorHighlighting.xcframework/ios-arm64_x86_64-simulator/libnative_editor_highlighting.a +0 -0
  24. package/ios/SyntectHighlightingProvider.swift +12 -0
  25. package/ios/native_editor_highlightingFFI/module.modulemap +7 -0
  26. package/ios/native_editor_highlightingFFI/native_editor_highlightingFFI.h +551 -0
  27. package/package.json +49 -0
  28. package/scripts/verify-package.mjs +19 -0
  29. package/src/index.ts +41 -0
@@ -0,0 +1,14 @@
1
+ @preconcurrency public import ExpoModulesCore
2
+ import ReactNativeProseEditor
3
+
4
+ public final class NativeCodeHighlightingModule: Module {
5
+ private let provider = SyntectHighlightingProvider()
6
+
7
+ public func definition() -> ModuleDefinition {
8
+ Name("NativeCodeHighlighting")
9
+ Function("initialize") { () throws -> Int in
10
+ try NativeCodeHighlightingRegistry.register(provider: self.provider)
11
+ return self.provider.version
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>libnative_editor_highlighting.a</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
+ <key>LibraryPath</key>
13
+ <string>libnative_editor_highlighting.a</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ <string>x86_64</string>
18
+ </array>
19
+ <key>SupportedPlatform</key>
20
+ <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
23
+ </dict>
24
+ <dict>
25
+ <key>BinaryPath</key>
26
+ <string>libnative_editor_highlighting.a</string>
27
+ <key>LibraryIdentifier</key>
28
+ <string>ios-arm64</string>
29
+ <key>LibraryPath</key>
30
+ <string>libnative_editor_highlighting.a</string>
31
+ <key>SupportedArchitectures</key>
32
+ <array>
33
+ <string>arm64</string>
34
+ </array>
35
+ <key>SupportedPlatform</key>
36
+ <string>ios</string>
37
+ </dict>
38
+ </array>
39
+ <key>CFBundlePackageType</key>
40
+ <string>XFWK</string>
41
+ <key>XCFrameworkFormatVersion</key>
42
+ <string>1.0</string>
43
+ </dict>
44
+ </plist>
@@ -0,0 +1,12 @@
1
+ import ReactNativeProseEditor
2
+
3
+ final class SyntectHighlightingProvider: NativeCodeHighlightingProvider {
4
+ let id = "syntect"
5
+ let version = 1
6
+
7
+ func highlight(text: String, language: String?, theme: String) throws -> [NativeCodeHighlightRange] {
8
+ try highlightCode(text: text, language: language, theme: theme).map {
9
+ NativeCodeHighlightRange(start: Int($0.start), length: Int($0.length), color: $0.color, fontStyle: $0.fontStyle)
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,7 @@
1
+ module native_editor_highlightingFFI {
2
+ header "native_editor_highlightingFFI.h"
3
+ export *
4
+ use "Darwin"
5
+ use "_Builtin_stdbool"
6
+ use "_Builtin_stdint"
7
+ }
@@ -0,0 +1,551 @@
1
+ // This file was autogenerated by some hot garbage in the `uniffi` crate.
2
+ // Trust me, you don't want to mess with it!
3
+
4
+ #pragma once
5
+
6
+ #include <stdbool.h>
7
+ #include <stddef.h>
8
+ #include <stdint.h>
9
+
10
+ // The following structs are used to implement the lowest level
11
+ // of the FFI, and thus useful to multiple uniffied crates.
12
+ // We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
13
+ #ifdef UNIFFI_SHARED_H
14
+ // We also try to prevent mixing versions of shared uniffi header structs.
15
+ // If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
16
+ #ifndef UNIFFI_SHARED_HEADER_V4
17
+ #error Combining helper code from multiple versions of uniffi is not supported
18
+ #endif // ndef UNIFFI_SHARED_HEADER_V4
19
+ #else
20
+ #define UNIFFI_SHARED_H
21
+ #define UNIFFI_SHARED_HEADER_V4
22
+ // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
23
+ // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
24
+
25
+ typedef struct RustBuffer
26
+ {
27
+ uint64_t capacity;
28
+ uint64_t len;
29
+ uint8_t *_Nullable data;
30
+ } RustBuffer;
31
+
32
+ typedef struct ForeignBytes
33
+ {
34
+ int32_t len;
35
+ const uint8_t *_Nullable data;
36
+ } ForeignBytes;
37
+
38
+ // Error definitions
39
+ typedef struct RustCallStatus {
40
+ int8_t code;
41
+ RustBuffer errorBuf;
42
+ } RustCallStatus;
43
+
44
+ // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
45
+ // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
46
+ #endif // def UNIFFI_SHARED_H
47
+ #ifndef UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
48
+ #define UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
49
+ typedef void (*UniffiRustFutureContinuationCallback)(uint64_t, int8_t
50
+ );
51
+
52
+ #endif
53
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_FREE
54
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_FREE
55
+ typedef void (*UniffiForeignFutureFree)(uint64_t
56
+ );
57
+
58
+ #endif
59
+ #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
60
+ #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
61
+ typedef void (*UniffiCallbackInterfaceFree)(uint64_t
62
+ );
63
+
64
+ #endif
65
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE
66
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE
67
+ typedef struct UniffiForeignFuture {
68
+ uint64_t handle;
69
+ UniffiForeignFutureFree _Nonnull free;
70
+ } UniffiForeignFuture;
71
+
72
+ #endif
73
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U8
74
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U8
75
+ typedef struct UniffiForeignFutureStructU8 {
76
+ uint8_t returnValue;
77
+ RustCallStatus callStatus;
78
+ } UniffiForeignFutureStructU8;
79
+
80
+ #endif
81
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
82
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
83
+ typedef void (*UniffiForeignFutureCompleteU8)(uint64_t, UniffiForeignFutureStructU8
84
+ );
85
+
86
+ #endif
87
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I8
88
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I8
89
+ typedef struct UniffiForeignFutureStructI8 {
90
+ int8_t returnValue;
91
+ RustCallStatus callStatus;
92
+ } UniffiForeignFutureStructI8;
93
+
94
+ #endif
95
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
96
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
97
+ typedef void (*UniffiForeignFutureCompleteI8)(uint64_t, UniffiForeignFutureStructI8
98
+ );
99
+
100
+ #endif
101
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U16
102
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U16
103
+ typedef struct UniffiForeignFutureStructU16 {
104
+ uint16_t returnValue;
105
+ RustCallStatus callStatus;
106
+ } UniffiForeignFutureStructU16;
107
+
108
+ #endif
109
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
110
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
111
+ typedef void (*UniffiForeignFutureCompleteU16)(uint64_t, UniffiForeignFutureStructU16
112
+ );
113
+
114
+ #endif
115
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I16
116
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I16
117
+ typedef struct UniffiForeignFutureStructI16 {
118
+ int16_t returnValue;
119
+ RustCallStatus callStatus;
120
+ } UniffiForeignFutureStructI16;
121
+
122
+ #endif
123
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
124
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
125
+ typedef void (*UniffiForeignFutureCompleteI16)(uint64_t, UniffiForeignFutureStructI16
126
+ );
127
+
128
+ #endif
129
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U32
130
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U32
131
+ typedef struct UniffiForeignFutureStructU32 {
132
+ uint32_t returnValue;
133
+ RustCallStatus callStatus;
134
+ } UniffiForeignFutureStructU32;
135
+
136
+ #endif
137
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
138
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
139
+ typedef void (*UniffiForeignFutureCompleteU32)(uint64_t, UniffiForeignFutureStructU32
140
+ );
141
+
142
+ #endif
143
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I32
144
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I32
145
+ typedef struct UniffiForeignFutureStructI32 {
146
+ int32_t returnValue;
147
+ RustCallStatus callStatus;
148
+ } UniffiForeignFutureStructI32;
149
+
150
+ #endif
151
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
152
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
153
+ typedef void (*UniffiForeignFutureCompleteI32)(uint64_t, UniffiForeignFutureStructI32
154
+ );
155
+
156
+ #endif
157
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U64
158
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U64
159
+ typedef struct UniffiForeignFutureStructU64 {
160
+ uint64_t returnValue;
161
+ RustCallStatus callStatus;
162
+ } UniffiForeignFutureStructU64;
163
+
164
+ #endif
165
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
166
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
167
+ typedef void (*UniffiForeignFutureCompleteU64)(uint64_t, UniffiForeignFutureStructU64
168
+ );
169
+
170
+ #endif
171
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I64
172
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I64
173
+ typedef struct UniffiForeignFutureStructI64 {
174
+ int64_t returnValue;
175
+ RustCallStatus callStatus;
176
+ } UniffiForeignFutureStructI64;
177
+
178
+ #endif
179
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
180
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
181
+ typedef void (*UniffiForeignFutureCompleteI64)(uint64_t, UniffiForeignFutureStructI64
182
+ );
183
+
184
+ #endif
185
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F32
186
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F32
187
+ typedef struct UniffiForeignFutureStructF32 {
188
+ float returnValue;
189
+ RustCallStatus callStatus;
190
+ } UniffiForeignFutureStructF32;
191
+
192
+ #endif
193
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
194
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
195
+ typedef void (*UniffiForeignFutureCompleteF32)(uint64_t, UniffiForeignFutureStructF32
196
+ );
197
+
198
+ #endif
199
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F64
200
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F64
201
+ typedef struct UniffiForeignFutureStructF64 {
202
+ double returnValue;
203
+ RustCallStatus callStatus;
204
+ } UniffiForeignFutureStructF64;
205
+
206
+ #endif
207
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
208
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
209
+ typedef void (*UniffiForeignFutureCompleteF64)(uint64_t, UniffiForeignFutureStructF64
210
+ );
211
+
212
+ #endif
213
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_POINTER
214
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_POINTER
215
+ typedef struct UniffiForeignFutureStructPointer {
216
+ void*_Nonnull returnValue;
217
+ RustCallStatus callStatus;
218
+ } UniffiForeignFutureStructPointer;
219
+
220
+ #endif
221
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_POINTER
222
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_POINTER
223
+ typedef void (*UniffiForeignFutureCompletePointer)(uint64_t, UniffiForeignFutureStructPointer
224
+ );
225
+
226
+ #endif
227
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_RUST_BUFFER
228
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_RUST_BUFFER
229
+ typedef struct UniffiForeignFutureStructRustBuffer {
230
+ RustBuffer returnValue;
231
+ RustCallStatus callStatus;
232
+ } UniffiForeignFutureStructRustBuffer;
233
+
234
+ #endif
235
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
236
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
237
+ typedef void (*UniffiForeignFutureCompleteRustBuffer)(uint64_t, UniffiForeignFutureStructRustBuffer
238
+ );
239
+
240
+ #endif
241
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_VOID
242
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_VOID
243
+ typedef struct UniffiForeignFutureStructVoid {
244
+ RustCallStatus callStatus;
245
+ } UniffiForeignFutureStructVoid;
246
+
247
+ #endif
248
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
249
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
250
+ typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStructVoid
251
+ );
252
+
253
+ #endif
254
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_EDITOR_HIGHLIGHTING_FN_FUNC_HIGHLIGHT_CODE
255
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_EDITOR_HIGHLIGHTING_FN_FUNC_HIGHLIGHT_CODE
256
+ RustBuffer uniffi_native_editor_highlighting_fn_func_highlight_code(RustBuffer text, RustBuffer language, RustBuffer theme, RustCallStatus *_Nonnull out_status
257
+ );
258
+ #endif
259
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUSTBUFFER_ALLOC
260
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUSTBUFFER_ALLOC
261
+ RustBuffer ffi_native_editor_highlighting_rustbuffer_alloc(uint64_t size, RustCallStatus *_Nonnull out_status
262
+ );
263
+ #endif
264
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUSTBUFFER_FROM_BYTES
265
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUSTBUFFER_FROM_BYTES
266
+ RustBuffer ffi_native_editor_highlighting_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
267
+ );
268
+ #endif
269
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUSTBUFFER_FREE
270
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUSTBUFFER_FREE
271
+ void ffi_native_editor_highlighting_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
272
+ );
273
+ #endif
274
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUSTBUFFER_RESERVE
275
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUSTBUFFER_RESERVE
276
+ RustBuffer ffi_native_editor_highlighting_rustbuffer_reserve(RustBuffer buf, uint64_t additional, RustCallStatus *_Nonnull out_status
277
+ );
278
+ #endif
279
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_U8
280
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_U8
281
+ void ffi_native_editor_highlighting_rust_future_poll_u8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
282
+ );
283
+ #endif
284
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_U8
285
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_U8
286
+ void ffi_native_editor_highlighting_rust_future_cancel_u8(uint64_t handle
287
+ );
288
+ #endif
289
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_U8
290
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_U8
291
+ void ffi_native_editor_highlighting_rust_future_free_u8(uint64_t handle
292
+ );
293
+ #endif
294
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_U8
295
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_U8
296
+ uint8_t ffi_native_editor_highlighting_rust_future_complete_u8(uint64_t handle, RustCallStatus *_Nonnull out_status
297
+ );
298
+ #endif
299
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_I8
300
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_I8
301
+ void ffi_native_editor_highlighting_rust_future_poll_i8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
302
+ );
303
+ #endif
304
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_I8
305
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_I8
306
+ void ffi_native_editor_highlighting_rust_future_cancel_i8(uint64_t handle
307
+ );
308
+ #endif
309
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_I8
310
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_I8
311
+ void ffi_native_editor_highlighting_rust_future_free_i8(uint64_t handle
312
+ );
313
+ #endif
314
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_I8
315
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_I8
316
+ int8_t ffi_native_editor_highlighting_rust_future_complete_i8(uint64_t handle, RustCallStatus *_Nonnull out_status
317
+ );
318
+ #endif
319
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_U16
320
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_U16
321
+ void ffi_native_editor_highlighting_rust_future_poll_u16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
322
+ );
323
+ #endif
324
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_U16
325
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_U16
326
+ void ffi_native_editor_highlighting_rust_future_cancel_u16(uint64_t handle
327
+ );
328
+ #endif
329
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_U16
330
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_U16
331
+ void ffi_native_editor_highlighting_rust_future_free_u16(uint64_t handle
332
+ );
333
+ #endif
334
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_U16
335
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_U16
336
+ uint16_t ffi_native_editor_highlighting_rust_future_complete_u16(uint64_t handle, RustCallStatus *_Nonnull out_status
337
+ );
338
+ #endif
339
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_I16
340
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_I16
341
+ void ffi_native_editor_highlighting_rust_future_poll_i16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
342
+ );
343
+ #endif
344
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_I16
345
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_I16
346
+ void ffi_native_editor_highlighting_rust_future_cancel_i16(uint64_t handle
347
+ );
348
+ #endif
349
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_I16
350
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_I16
351
+ void ffi_native_editor_highlighting_rust_future_free_i16(uint64_t handle
352
+ );
353
+ #endif
354
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_I16
355
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_I16
356
+ int16_t ffi_native_editor_highlighting_rust_future_complete_i16(uint64_t handle, RustCallStatus *_Nonnull out_status
357
+ );
358
+ #endif
359
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_U32
360
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_U32
361
+ void ffi_native_editor_highlighting_rust_future_poll_u32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
362
+ );
363
+ #endif
364
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_U32
365
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_U32
366
+ void ffi_native_editor_highlighting_rust_future_cancel_u32(uint64_t handle
367
+ );
368
+ #endif
369
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_U32
370
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_U32
371
+ void ffi_native_editor_highlighting_rust_future_free_u32(uint64_t handle
372
+ );
373
+ #endif
374
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_U32
375
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_U32
376
+ uint32_t ffi_native_editor_highlighting_rust_future_complete_u32(uint64_t handle, RustCallStatus *_Nonnull out_status
377
+ );
378
+ #endif
379
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_I32
380
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_I32
381
+ void ffi_native_editor_highlighting_rust_future_poll_i32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
382
+ );
383
+ #endif
384
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_I32
385
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_I32
386
+ void ffi_native_editor_highlighting_rust_future_cancel_i32(uint64_t handle
387
+ );
388
+ #endif
389
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_I32
390
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_I32
391
+ void ffi_native_editor_highlighting_rust_future_free_i32(uint64_t handle
392
+ );
393
+ #endif
394
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_I32
395
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_I32
396
+ int32_t ffi_native_editor_highlighting_rust_future_complete_i32(uint64_t handle, RustCallStatus *_Nonnull out_status
397
+ );
398
+ #endif
399
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_U64
400
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_U64
401
+ void ffi_native_editor_highlighting_rust_future_poll_u64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
402
+ );
403
+ #endif
404
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_U64
405
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_U64
406
+ void ffi_native_editor_highlighting_rust_future_cancel_u64(uint64_t handle
407
+ );
408
+ #endif
409
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_U64
410
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_U64
411
+ void ffi_native_editor_highlighting_rust_future_free_u64(uint64_t handle
412
+ );
413
+ #endif
414
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_U64
415
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_U64
416
+ uint64_t ffi_native_editor_highlighting_rust_future_complete_u64(uint64_t handle, RustCallStatus *_Nonnull out_status
417
+ );
418
+ #endif
419
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_I64
420
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_I64
421
+ void ffi_native_editor_highlighting_rust_future_poll_i64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
422
+ );
423
+ #endif
424
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_I64
425
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_I64
426
+ void ffi_native_editor_highlighting_rust_future_cancel_i64(uint64_t handle
427
+ );
428
+ #endif
429
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_I64
430
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_I64
431
+ void ffi_native_editor_highlighting_rust_future_free_i64(uint64_t handle
432
+ );
433
+ #endif
434
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_I64
435
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_I64
436
+ int64_t ffi_native_editor_highlighting_rust_future_complete_i64(uint64_t handle, RustCallStatus *_Nonnull out_status
437
+ );
438
+ #endif
439
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_F32
440
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_F32
441
+ void ffi_native_editor_highlighting_rust_future_poll_f32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
442
+ );
443
+ #endif
444
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_F32
445
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_F32
446
+ void ffi_native_editor_highlighting_rust_future_cancel_f32(uint64_t handle
447
+ );
448
+ #endif
449
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_F32
450
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_F32
451
+ void ffi_native_editor_highlighting_rust_future_free_f32(uint64_t handle
452
+ );
453
+ #endif
454
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_F32
455
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_F32
456
+ float ffi_native_editor_highlighting_rust_future_complete_f32(uint64_t handle, RustCallStatus *_Nonnull out_status
457
+ );
458
+ #endif
459
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_F64
460
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_F64
461
+ void ffi_native_editor_highlighting_rust_future_poll_f64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
462
+ );
463
+ #endif
464
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_F64
465
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_F64
466
+ void ffi_native_editor_highlighting_rust_future_cancel_f64(uint64_t handle
467
+ );
468
+ #endif
469
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_F64
470
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_F64
471
+ void ffi_native_editor_highlighting_rust_future_free_f64(uint64_t handle
472
+ );
473
+ #endif
474
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_F64
475
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_F64
476
+ double ffi_native_editor_highlighting_rust_future_complete_f64(uint64_t handle, RustCallStatus *_Nonnull out_status
477
+ );
478
+ #endif
479
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_POINTER
480
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_POINTER
481
+ void ffi_native_editor_highlighting_rust_future_poll_pointer(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
482
+ );
483
+ #endif
484
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_POINTER
485
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_POINTER
486
+ void ffi_native_editor_highlighting_rust_future_cancel_pointer(uint64_t handle
487
+ );
488
+ #endif
489
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_POINTER
490
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_POINTER
491
+ void ffi_native_editor_highlighting_rust_future_free_pointer(uint64_t handle
492
+ );
493
+ #endif
494
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_POINTER
495
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_POINTER
496
+ void*_Nonnull ffi_native_editor_highlighting_rust_future_complete_pointer(uint64_t handle, RustCallStatus *_Nonnull out_status
497
+ );
498
+ #endif
499
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_RUST_BUFFER
500
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_RUST_BUFFER
501
+ void ffi_native_editor_highlighting_rust_future_poll_rust_buffer(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
502
+ );
503
+ #endif
504
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_RUST_BUFFER
505
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_RUST_BUFFER
506
+ void ffi_native_editor_highlighting_rust_future_cancel_rust_buffer(uint64_t handle
507
+ );
508
+ #endif
509
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_RUST_BUFFER
510
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_RUST_BUFFER
511
+ void ffi_native_editor_highlighting_rust_future_free_rust_buffer(uint64_t handle
512
+ );
513
+ #endif
514
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_RUST_BUFFER
515
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_RUST_BUFFER
516
+ RustBuffer ffi_native_editor_highlighting_rust_future_complete_rust_buffer(uint64_t handle, RustCallStatus *_Nonnull out_status
517
+ );
518
+ #endif
519
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_VOID
520
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_POLL_VOID
521
+ void ffi_native_editor_highlighting_rust_future_poll_void(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
522
+ );
523
+ #endif
524
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_VOID
525
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_CANCEL_VOID
526
+ void ffi_native_editor_highlighting_rust_future_cancel_void(uint64_t handle
527
+ );
528
+ #endif
529
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_VOID
530
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_FREE_VOID
531
+ void ffi_native_editor_highlighting_rust_future_free_void(uint64_t handle
532
+ );
533
+ #endif
534
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_VOID
535
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_RUST_FUTURE_COMPLETE_VOID
536
+ void ffi_native_editor_highlighting_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
537
+ );
538
+ #endif
539
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_EDITOR_HIGHLIGHTING_CHECKSUM_FUNC_HIGHLIGHT_CODE
540
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_EDITOR_HIGHLIGHTING_CHECKSUM_FUNC_HIGHLIGHT_CODE
541
+ uint16_t uniffi_native_editor_highlighting_checksum_func_highlight_code(void
542
+
543
+ );
544
+ #endif
545
+ #ifndef UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_UNIFFI_CONTRACT_VERSION
546
+ #define UNIFFI_FFIDEF_FFI_NATIVE_EDITOR_HIGHLIGHTING_UNIFFI_CONTRACT_VERSION
547
+ uint32_t ffi_native_editor_highlighting_uniffi_contract_version(void
548
+
549
+ );
550
+ #endif
551
+
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@apollohg/react-native-rich-text-editor-code-highlighting",
3
+ "version": "2.0.0",
4
+ "description": "Optional native syntax highlighting for @apollohg/react-native-rich-text-editor",
5
+ "license": "Apache-2.0",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "react-native": "src/index.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "react-native": "./src/index.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "src",
20
+ "ios",
21
+ "android",
22
+ "!android/build",
23
+ "expo-module.config.json",
24
+ "NativeEditorCodeHighlighting.podspec",
25
+ "README.md",
26
+ "LICENSE",
27
+ "THIRD_PARTY_NOTICES.md",
28
+ "RUST-STANDARD-LIBRARY-NOTICES.html",
29
+ "scripts/verify-package.mjs"
30
+ ],
31
+ "peerDependencies": {
32
+ "@apollohg/react-native-rich-text-editor": "2.0.0",
33
+ "expo": ">=52.0.0"
34
+ },
35
+ "scripts": {
36
+ "build": "tsc -p tsconfig.json",
37
+ "test:rust": "cargo test --manifest-path rust/Cargo.toml --release --locked",
38
+ "build:native": "bash scripts/build-native.sh",
39
+ "prepack": "node scripts/verify-package.mjs"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git+https://github.com/apollohg/react-native-rich-text-editor.git",
47
+ "directory": "packages/code-highlighting"
48
+ }
49
+ }