react-native-readium 4.0.2 → 5.0.0-rc.1
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 +227 -31
- package/android/.cxx/Debug/1o6u5d69/arm64-v8a/metadata_generation_command.txt +20 -0
- package/android/.cxx/Debug/1o6u5d69/arm64-v8a/prefab_config.json +9 -0
- package/android/.cxx/Debug/1o6u5d69/hash_key.txt +27 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.cmake/api/v1/reply/cache-v2-d1c3348b32c30ac6a032.json +1383 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.cmake/api/v1/reply/cmakeFiles-v1-556430fba24741f19697.json +207 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-1ced52b45c1052bc37ec.json +60 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +14 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.cmake/api/v1/reply/index-2026-02-11T21-48-38-0164.json +92 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.cmake/api/v1/reply/target-NitroReadium-Debug-1a98e1c85aa4f0067ac7.json +310 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.ninja_deps +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/.ninja_log +16 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeCache.txt +413 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +72 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +83 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +15 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +803 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +791 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/CMakeOutput.log +262 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/NitroReadiumOnLoad.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/c++/JHybridReadiumViewSpec.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/c++/views/JHybridReadiumViewStateUpdater.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/shared/c++/HybridReadiumViewSpec.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/shared/c++/views/HybridReadiumViewComponent.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/NitroReadium.dir/src/main/cpp/cpp-adapter.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/TargetDirectories.txt +3 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/cmake.check_cache +1 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/CMakeFiles/rules.ninja +64 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/additional_project_files.txt +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/android_gradle_build.json +48 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/android_gradle_build_mini.json +37 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/build.ninja +193 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/build_file_index.txt +6 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/cmake_install.cmake +54 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/compile_commands.json +32 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/compile_commands.json.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/configure_fingerprint.bin +41 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/metadata_generation_command.txt +21 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/prefab_config.json +9 -0
- package/android/.cxx/Debug/705z3vy2/arm64-v8a/symbol_folder_index.txt +1 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.cmake/api/v1/reply/cache-v2-029ee0d18a16b9900504.json +1383 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.cmake/api/v1/reply/cmakeFiles-v1-0ec9478532515d6deeb0.json +207 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.cmake/api/v1/reply/codemodel-v2-00f0c7708253709bbb50.json +60 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +14 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.cmake/api/v1/reply/index-2026-02-11T21-48-44-0722.json +92 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.cmake/api/v1/reply/target-NitroReadium-Debug-a00931bf570afa83f011.json +310 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.ninja_deps +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/.ninja_log +16 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeCache.txt +413 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +72 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +83 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +15 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +803 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +791 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/CMakeOutput.log +266 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/NitroReadiumOnLoad.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/c++/JHybridReadiumViewSpec.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/c++/views/JHybridReadiumViewStateUpdater.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/shared/c++/HybridReadiumViewSpec.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/shared/c++/views/HybridReadiumViewComponent.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/NitroReadium.dir/src/main/cpp/cpp-adapter.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/TargetDirectories.txt +3 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/cmake.check_cache +1 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/CMakeFiles/rules.ninja +64 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/additional_project_files.txt +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/android_gradle_build.json +48 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/android_gradle_build_mini.json +37 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/build.ninja +193 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/build_file_index.txt +6 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/cmake_install.cmake +54 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/compile_commands.json +32 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/compile_commands.json.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/configure_fingerprint.bin +41 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/metadata_generation_command.txt +21 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/prefab_config.json +9 -0
- package/android/.cxx/Debug/705z3vy2/armeabi-v7a/symbol_folder_index.txt +1 -0
- package/android/.cxx/Debug/705z3vy2/hash_key.txt +28 -0
- package/android/.cxx/Debug/705z3vy2/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/ReactAndroid/ReactAndroidConfig.cmake +27 -0
- package/android/.cxx/Debug/705z3vy2/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/fbjni/fbjniConfig.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/fbjni/fbjniConfigVersion.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/arm64-v8a/prefab/lib/aarch64-linux-android/cmake/react-native-nitro-modules/react-native-nitro-modulesConfig.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/ReactAndroid/ReactAndroidConfig.cmake +27 -0
- package/android/.cxx/Debug/705z3vy2/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/fbjni/fbjniConfig.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/fbjni/fbjniConfigVersion.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/armeabi-v7a/prefab/lib/arm-linux-androideabi/cmake/react-native-nitro-modules/react-native-nitro-modulesConfig.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86/prefab/lib/i686-linux-android/cmake/ReactAndroid/ReactAndroidConfig.cmake +27 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86/prefab/lib/i686-linux-android/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86/prefab/lib/i686-linux-android/cmake/fbjni/fbjniConfig.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86/prefab/lib/i686-linux-android/cmake/fbjni/fbjniConfigVersion.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86/prefab/lib/i686-linux-android/cmake/react-native-nitro-modules/react-native-nitro-modulesConfig.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/ReactAndroid/ReactAndroidConfig.cmake +27 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/ReactAndroid/ReactAndroidConfigVersion.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/fbjni/fbjniConfig.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/fbjni/fbjniConfigVersion.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/prefab/x86_64/prefab/lib/x86_64-linux-android/cmake/react-native-nitro-modules/react-native-nitro-modulesConfig.cmake +9 -0
- package/android/.cxx/Debug/705z3vy2/x86/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/.cmake/api/v1/reply/cache-v2-a4f471a31e824ae32ba5.json +1383 -0
- package/android/.cxx/Debug/705z3vy2/x86/.cmake/api/v1/reply/cmakeFiles-v1-f73d504308ce3a4e5765.json +207 -0
- package/android/.cxx/Debug/705z3vy2/x86/.cmake/api/v1/reply/codemodel-v2-00f85d43d057b2ba79db.json +60 -0
- package/android/.cxx/Debug/705z3vy2/x86/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +14 -0
- package/android/.cxx/Debug/705z3vy2/x86/.cmake/api/v1/reply/index-2026-02-11T21-48-50-0628.json +92 -0
- package/android/.cxx/Debug/705z3vy2/x86/.cmake/api/v1/reply/target-NitroReadium-Debug-98c8a7d46de91d0d2e7e.json +310 -0
- package/android/.cxx/Debug/705z3vy2/x86/.ninja_deps +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/.ninja_log +16 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeCache.txt +413 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +72 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +83 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +15 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +803 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +791 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/CMakeOutput.log +256 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/NitroReadiumOnLoad.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/c++/JHybridReadiumViewSpec.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/c++/views/JHybridReadiumViewStateUpdater.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/shared/c++/HybridReadiumViewSpec.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/shared/c++/views/HybridReadiumViewComponent.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/NitroReadium.dir/src/main/cpp/cpp-adapter.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/TargetDirectories.txt +3 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/cmake.check_cache +1 -0
- package/android/.cxx/Debug/705z3vy2/x86/CMakeFiles/rules.ninja +64 -0
- package/android/.cxx/Debug/705z3vy2/x86/additional_project_files.txt +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/android_gradle_build.json +48 -0
- package/android/.cxx/Debug/705z3vy2/x86/android_gradle_build_mini.json +37 -0
- package/android/.cxx/Debug/705z3vy2/x86/build.ninja +193 -0
- package/android/.cxx/Debug/705z3vy2/x86/build_file_index.txt +6 -0
- package/android/.cxx/Debug/705z3vy2/x86/cmake_install.cmake +54 -0
- package/android/.cxx/Debug/705z3vy2/x86/compile_commands.json +32 -0
- package/android/.cxx/Debug/705z3vy2/x86/compile_commands.json.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/x86/configure_fingerprint.bin +41 -0
- package/android/.cxx/Debug/705z3vy2/x86/metadata_generation_command.txt +21 -0
- package/android/.cxx/Debug/705z3vy2/x86/prefab_config.json +9 -0
- package/android/.cxx/Debug/705z3vy2/x86/symbol_folder_index.txt +1 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.cmake/api/v1/query/client-agp/cache-v2 +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.cmake/api/v1/query/client-agp/cmakeFiles-v1 +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.cmake/api/v1/query/client-agp/codemodel-v2 +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.cmake/api/v1/reply/cache-v2-691c4c7ce8ee23d9eb36.json +1383 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.cmake/api/v1/reply/cmakeFiles-v1-5d2071095d60cec89732.json +207 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.cmake/api/v1/reply/codemodel-v2-141850c8d8ba3993f9ba.json +60 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +14 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.cmake/api/v1/reply/index-2026-02-11T21-48-56-0488.json +92 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.cmake/api/v1/reply/target-NitroReadium-Debug-fc544bc0688ecafa85a0.json +310 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.ninja_deps +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/.ninja_log +16 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeCache.txt +413 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake +72 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake +83 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake +15 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c +803 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp +791 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/CMakeOutput.log +256 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/NitroReadiumOnLoad.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/c++/JHybridReadiumViewSpec.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/android/c++/views/JHybridReadiumViewStateUpdater.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/shared/c++/HybridReadiumViewSpec.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/NitroReadium.dir/Users/jspizziri/Documents/Projects/readium/react-native-readium/nitrogen/generated/shared/c++/views/HybridReadiumViewComponent.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/NitroReadium.dir/src/main/cpp/cpp-adapter.cpp.o +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/TargetDirectories.txt +3 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/cmake.check_cache +1 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/CMakeFiles/rules.ninja +64 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/additional_project_files.txt +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/android_gradle_build.json +48 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/android_gradle_build_mini.json +37 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/build.ninja +193 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/build_file_index.txt +6 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/cmake_install.cmake +54 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/compile_commands.json +32 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/compile_commands.json.bin +0 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/configure_fingerprint.bin +41 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/metadata_generation_command.txt +21 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/prefab_config.json +9 -0
- package/android/.cxx/Debug/705z3vy2/x86_64/symbol_folder_index.txt +1 -0
- package/android/.cxx/tools/debug/arm64-v8a/compile_commands.json +32 -0
- package/android/.cxx/tools/debug/armeabi-v7a/compile_commands.json +32 -0
- package/android/.cxx/tools/debug/x86/compile_commands.json +32 -0
- package/android/.cxx/tools/debug/x86_64/compile_commands.json +32 -0
- package/android/CMakeLists.txt +12 -0
- package/android/build.gradle +55 -30
- package/android/gradle.properties +3 -3
- package/android/src/main/cpp/cpp-adapter.cpp +6 -0
- package/android/src/main/java/com/reactnativereadium/HybridReadiumView.kt +593 -0
- package/android/src/main/java/com/reactnativereadium/ReadiumPackage.kt +9 -2
- package/android/src/main/java/com/reactnativereadium/reader/BaseReaderFragment.kt +214 -6
- package/android/src/main/java/com/reactnativereadium/reader/EpubReaderFragment.kt +143 -70
- package/android/src/main/java/com/reactnativereadium/reader/PositionLabelManager.kt +132 -0
- package/android/src/main/java/com/reactnativereadium/reader/ReaderService.kt +64 -65
- package/android/src/main/java/com/reactnativereadium/reader/ReaderViewModel.kt +23 -84
- package/android/src/main/java/com/reactnativereadium/reader/VisualReaderFragment.kt +32 -2
- package/android/src/main/java/com/reactnativereadium/utils/DecorationSerializer.kt +175 -0
- package/android/src/main/java/com/reactnativereadium/utils/EventChannel.kt +0 -9
- package/android/src/main/java/com/reactnativereadium/utils/FragmentFactory.kt +2 -3
- package/android/src/main/java/com/reactnativereadium/utils/JsonExtensions.kt +61 -0
- package/android/src/main/java/com/reactnativereadium/utils/LocationNormalizer.kt +47 -0
- package/android/src/main/java/com/reactnativereadium/utils/MetadataNormalizer.kt +183 -0
- package/android/src/main/java/com/reactnativereadium/utils/NormalizedMetadata.kt +179 -0
- package/android/src/main/java/com/reactnativereadium/utils/extensions/InputStream.kt +0 -9
- package/ios/App/AppModule.swift +3 -9
- package/ios/Common/Toolkit/Extensions/{Locator.swift → Locator+Codable.swift} +2 -2
- package/ios/DecorationData.swift +316 -0
- package/ios/HybridReadiumView.swift +498 -0
- package/ios/Reader/Common/ReaderViewController.swift +121 -53
- package/ios/Reader/EPUB/AssociatedColors.swift +1 -1
- package/ios/Reader/EPUB/EPUBHTTPServer.swift +13 -0
- package/ios/Reader/EPUB/EPUBModule.swift +6 -5
- package/ios/Reader/EPUB/EPUBViewController.swift +88 -15
- package/ios/Reader/EPUB/SelectionActionHandler.h +25 -0
- package/ios/Reader/EPUB/SelectionActionHandler.m +56 -0
- package/ios/Reader/ReaderFormatModule.swift +4 -4
- package/ios/Reader/ReaderModule.swift +7 -5
- package/ios/Reader/ReaderService.swift +75 -67
- package/lib/nitrogen/generated/shared/json/ReadiumViewConfig.json +19 -0
- package/lib/src/components/NitroReadiumView.d.ts +2 -0
- package/lib/src/components/NitroReadiumView.js +3 -0
- package/lib/src/components/ReadiumView.d.ts +3 -5
- package/lib/src/components/ReadiumView.js +15 -40
- package/lib/src/components/ReadiumView.types.d.ts +18 -0
- package/lib/src/components/ReadiumView.web.d.ts +12 -5
- package/lib/src/components/ReadiumView.web.js +112 -21
- package/lib/src/index.d.ts +0 -1
- package/lib/src/index.js +0 -1
- package/lib/src/interfaces/Decoration.d.ts +8 -0
- package/lib/src/interfaces/Decoration.js +1 -0
- package/lib/src/interfaces/File.d.ts +5 -12
- package/lib/src/interfaces/Link.d.ts +3 -13
- package/lib/src/interfaces/Locator.d.ts +1 -14
- package/lib/src/interfaces/Preferences.d.ts +5 -19
- package/lib/src/interfaces/PublicationMetadata.d.ts +13 -0
- package/lib/src/interfaces/PublicationMetadata.js +1 -0
- package/lib/src/interfaces/PublicationReady.d.ts +1 -0
- package/lib/src/interfaces/PublicationReady.js +1 -0
- package/lib/src/interfaces/Selection.d.ts +1 -0
- package/lib/src/interfaces/Selection.js +1 -0
- package/lib/src/interfaces/SelectionAction.d.ts +1 -0
- package/lib/src/interfaces/SelectionAction.js +1 -0
- package/lib/src/interfaces/index.d.ts +6 -1
- package/lib/src/interfaces/index.js +5 -1
- package/lib/src/specs/ReadiumView.nitro.d.ts +199 -0
- package/lib/src/specs/ReadiumView.nitro.js +1 -0
- package/lib/src/utils/index.d.ts +0 -6
- package/lib/src/utils/index.js +0 -6
- package/lib/web/hooks/index.d.ts +4 -2
- package/lib/web/hooks/index.js +4 -2
- package/lib/web/hooks/useDecorationsObserver.d.ts +6 -0
- package/lib/web/hooks/useDecorationsObserver.js +96 -0
- package/lib/web/hooks/useLocationObserver.d.ts +2 -1
- package/lib/web/hooks/useLocationObserver.js +18 -11
- package/lib/web/hooks/useNavigator.d.ts +12 -0
- package/lib/web/hooks/useNavigator.js +92 -0
- package/lib/web/hooks/usePositionLabel.d.ts +9 -0
- package/lib/web/hooks/usePositionLabel.js +33 -0
- package/lib/web/hooks/usePreferencesObserver.d.ts +2 -0
- package/lib/web/hooks/usePreferencesObserver.js +54 -0
- package/lib/web/utils/locationNormalizer.d.ts +28 -0
- package/lib/web/utils/locationNormalizer.js +49 -0
- package/lib/web/utils/manifestFetcher.d.ts +8 -0
- package/lib/web/utils/manifestFetcher.js +28 -0
- package/lib/web/utils/manifestNormalizer.d.ts +8 -0
- package/lib/web/utils/manifestNormalizer.js +70 -0
- package/lib/web/utils/metadataNormalizer.d.ts +53 -0
- package/lib/web/utils/metadataNormalizer.js +220 -0
- package/lib/web/utils/navigatorListeners.d.ts +6 -0
- package/lib/web/utils/navigatorListeners.js +50 -0
- package/lib/web/utils/publicationUtils.d.ts +15 -0
- package/lib/web/utils/publicationUtils.js +39 -0
- package/nitro.json +16 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/NitroReadium+autolinking.cmake +83 -0
- package/nitrogen/generated/android/NitroReadium+autolinking.gradle +27 -0
- package/nitrogen/generated/android/NitroReadiumOnLoad.cpp +56 -0
- package/nitrogen/generated/android/NitroReadiumOnLoad.hpp +25 -0
- package/nitrogen/generated/android/c++/JAccessibility.hpp +175 -0
- package/nitrogen/generated/android/c++/JAccessibilityCertification.hpp +66 -0
- package/nitrogen/generated/android/c++/JBelongsTo.hpp +101 -0
- package/nitrogen/generated/android/c++/JContributor.hpp +74 -0
- package/nitrogen/generated/android/c++/JDecoration.hpp +92 -0
- package/nitrogen/generated/android/c++/JDecorationActivatedEvent.hpp +85 -0
- package/nitrogen/generated/android/c++/JDecorationGroup.hpp +92 -0
- package/nitrogen/generated/android/c++/JDecorationStyle.hpp +86 -0
- package/nitrogen/generated/android/c++/JFunc_void_DecorationActivatedEvent.hpp +94 -0
- package/nitrogen/generated/android/c++/JFunc_void_Locator.hpp +83 -0
- package/nitrogen/generated/android/c++/JFunc_void_PublicationReadyEvent.hpp +102 -0
- package/nitrogen/generated/android/c++/JFunc_void_SelectionActionEvent.hpp +85 -0
- package/nitrogen/generated/android/c++/JFunc_void_SelectionEvent.hpp +85 -0
- package/nitrogen/generated/android/c++/JHybridReadiumViewSpec.cpp +328 -0
- package/nitrogen/generated/android/c++/JHybridReadiumViewSpec.hpp +86 -0
- package/nitrogen/generated/android/c++/JLink.hpp +131 -0
- package/nitrogen/generated/android/c++/JLocator.hpp +82 -0
- package/nitrogen/generated/android/c++/JLocatorLocations.hpp +65 -0
- package/nitrogen/generated/android/c++/JLocatorText.hpp +66 -0
- package/nitrogen/generated/android/c++/JPoint.hpp +61 -0
- package/nitrogen/generated/android/c++/JPreferences.hpp +158 -0
- package/nitrogen/generated/android/c++/JPublicationMetadata.hpp +449 -0
- package/nitrogen/generated/android/c++/JPublicationReadyEvent.hpp +125 -0
- package/nitrogen/generated/android/c++/JReadiumFile.hpp +68 -0
- package/nitrogen/generated/android/c++/JRect.hpp +69 -0
- package/nitrogen/generated/android/c++/JSelectionAction.hpp +61 -0
- package/nitrogen/generated/android/c++/JSelectionActionEvent.hpp +72 -0
- package/nitrogen/generated/android/c++/JSelectionEvent.hpp +68 -0
- package/nitrogen/generated/android/c++/JSeriesInfo.hpp +62 -0
- package/nitrogen/generated/android/c++/JSubject.hpp +70 -0
- package/nitrogen/generated/android/c++/views/JHybridReadiumViewStateUpdater.cpp +93 -0
- package/nitrogen/generated/android/c++/views/JHybridReadiumViewStateUpdater.hpp +49 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Accessibility.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/AccessibilityCertification.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/BelongsTo.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Contributor.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Decoration.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/DecorationActivatedEvent.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/DecorationGroup.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/DecorationStyle.kt +59 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Func_void_DecorationActivatedEvent.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Func_void_Locator.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Func_void_PublicationReadyEvent.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Func_void_SelectionActionEvent.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Func_void_SelectionEvent.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/HybridReadiumViewSpec.kt +159 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Link.kt +65 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Locator.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/LocatorLocations.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/LocatorText.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/NitroReadiumOnLoad.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Point.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Preferences.kt +113 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/PublicationMetadata.kt +119 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/PublicationReadyEvent.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/ReadiumFile.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Rect.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/SelectionAction.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/SelectionActionEvent.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/SelectionEvent.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/SeriesInfo.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/Subject.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/views/HybridReadiumViewManager.kt +70 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativereadium/views/HybridReadiumViewStateUpdater.kt +23 -0
- package/nitrogen/generated/ios/NitroReadium+autolinking.rb +60 -0
- package/nitrogen/generated/ios/NitroReadium-Swift-Cxx-Bridge.cpp +73 -0
- package/nitrogen/generated/ios/NitroReadium-Swift-Cxx-Bridge.hpp +641 -0
- package/nitrogen/generated/ios/NitroReadium-Swift-Cxx-Umbrella.hpp +117 -0
- package/nitrogen/generated/ios/NitroReadiumAutolinking.mm +33 -0
- package/nitrogen/generated/ios/NitroReadiumAutolinking.swift +26 -0
- package/nitrogen/generated/ios/c++/HybridReadiumViewSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridReadiumViewSpecSwift.hpp +226 -0
- package/nitrogen/generated/ios/c++/views/HybridReadiumViewComponent.mm +152 -0
- package/nitrogen/generated/ios/swift/Accessibility.swift +173 -0
- package/nitrogen/generated/ios/swift/AccessibilityCertification.swift +78 -0
- package/nitrogen/generated/ios/swift/BelongsTo.swift +72 -0
- package/nitrogen/generated/ios/swift/Contributor.swift +94 -0
- package/nitrogen/generated/ios/swift/Decoration.swift +71 -0
- package/nitrogen/generated/ios/swift/DecorationActivatedEvent.swift +56 -0
- package/nitrogen/generated/ios/swift/DecorationGroup.swift +40 -0
- package/nitrogen/generated/ios/swift/DecorationStyle.swift +155 -0
- package/nitrogen/generated/ios/swift/Func_void_DecorationActivatedEvent.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_Locator.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_PublicationReadyEvent.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_SelectionActionEvent.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_SelectionEvent.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridReadiumViewSpec.swift +65 -0
- package/nitrogen/generated/ios/swift/HybridReadiumViewSpec_cxx.swift +363 -0
- package/nitrogen/generated/ios/swift/Link.swift +162 -0
- package/nitrogen/generated/ios/swift/Locator.swift +85 -0
- package/nitrogen/generated/ios/swift/LocatorLocations.swift +51 -0
- package/nitrogen/generated/ios/swift/LocatorText.swift +78 -0
- package/nitrogen/generated/ios/swift/Point.swift +34 -0
- package/nitrogen/generated/ios/swift/Preferences.swift +429 -0
- package/nitrogen/generated/ios/swift/PublicationMetadata.swift +577 -0
- package/nitrogen/generated/ios/swift/PublicationReadyEvent.swift +51 -0
- package/nitrogen/generated/ios/swift/ReadiumFile.swift +40 -0
- package/nitrogen/generated/ios/swift/Rect.swift +44 -0
- package/nitrogen/generated/ios/swift/SelectionAction.swift +34 -0
- package/nitrogen/generated/ios/swift/SelectionActionEvent.swift +39 -0
- package/nitrogen/generated/ios/swift/SelectionEvent.swift +53 -0
- package/nitrogen/generated/ios/swift/SeriesInfo.swift +40 -0
- package/nitrogen/generated/ios/swift/Subject.swift +83 -0
- package/nitrogen/generated/shared/c++/Accessibility.hpp +111 -0
- package/nitrogen/generated/shared/c++/AccessibilityCertification.hpp +92 -0
- package/nitrogen/generated/shared/c++/BelongsTo.hpp +90 -0
- package/nitrogen/generated/shared/c++/Contributor.hpp +100 -0
- package/nitrogen/generated/shared/c++/Decoration.hpp +102 -0
- package/nitrogen/generated/shared/c++/DecorationActivatedEvent.hpp +104 -0
- package/nitrogen/generated/shared/c++/DecorationGroup.hpp +90 -0
- package/nitrogen/generated/shared/c++/DecorationStyle.hpp +112 -0
- package/nitrogen/generated/shared/c++/HybridReadiumViewSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridReadiumViewSpec.hpp +110 -0
- package/nitrogen/generated/shared/c++/Link.hpp +121 -0
- package/nitrogen/generated/shared/c++/Locator.hpp +109 -0
- package/nitrogen/generated/shared/c++/LocatorLocations.hpp +91 -0
- package/nitrogen/generated/shared/c++/LocatorText.hpp +92 -0
- package/nitrogen/generated/shared/c++/Point.hpp +87 -0
- package/nitrogen/generated/shared/c++/Preferences.hpp +184 -0
- package/nitrogen/generated/shared/c++/PublicationMetadata.hpp +204 -0
- package/nitrogen/generated/shared/c++/PublicationReadyEvent.hpp +99 -0
- package/nitrogen/generated/shared/c++/ReadiumFile.hpp +90 -0
- package/nitrogen/generated/shared/c++/Rect.hpp +95 -0
- package/nitrogen/generated/shared/c++/SelectionAction.hpp +87 -0
- package/nitrogen/generated/shared/c++/SelectionActionEvent.hpp +93 -0
- package/nitrogen/generated/shared/c++/SelectionEvent.hpp +90 -0
- package/nitrogen/generated/shared/c++/SeriesInfo.hpp +88 -0
- package/nitrogen/generated/shared/c++/Subject.hpp +96 -0
- package/nitrogen/generated/shared/c++/views/HybridReadiumViewComponent.cpp +182 -0
- package/nitrogen/generated/shared/c++/views/HybridReadiumViewComponent.hpp +129 -0
- package/nitrogen/generated/shared/json/ReadiumViewConfig.json +19 -0
- package/package.json +48 -17
- package/react-native-readium.podspec +29 -8
- package/src/components/NitroReadiumView.tsx +9 -0
- package/src/components/ReadiumView.tsx +38 -68
- package/src/components/ReadiumView.types.ts +30 -0
- package/src/components/ReadiumView.web.tsx +149 -37
- package/src/index.tsx +0 -1
- package/src/interfaces/Decoration.ts +15 -0
- package/src/interfaces/File.ts +5 -13
- package/src/interfaces/Link.ts +4 -13
- package/src/interfaces/Locator.ts +5 -14
- package/src/interfaces/Preferences.ts +16 -19
- package/src/interfaces/PublicationMetadata.ts +23 -0
- package/src/interfaces/PublicationReady.ts +1 -0
- package/src/interfaces/Selection.ts +1 -0
- package/src/interfaces/SelectionAction.ts +4 -0
- package/src/interfaces/index.ts +6 -1
- package/src/specs/ReadiumView.nitro.ts +249 -0
- package/src/utils/index.ts +0 -6
- package/web/hooks/index.ts +4 -2
- package/web/hooks/useDecorationsObserver.ts +116 -0
- package/web/hooks/useLocationObserver.ts +24 -11
- package/web/hooks/useNavigator.ts +152 -0
- package/web/hooks/usePositionLabel.ts +51 -0
- package/web/hooks/usePreferencesObserver.ts +69 -0
- package/web/utils/locationNormalizer.ts +58 -0
- package/web/utils/manifestFetcher.ts +38 -0
- package/web/utils/manifestNormalizer.ts +74 -0
- package/web/utils/metadataNormalizer.ts +238 -0
- package/web/utils/navigatorListeners.ts +60 -0
- package/web/utils/publicationUtils.ts +47 -0
- package/android/src/main/java/com/reactnativereadium/ReadiumView.kt +0 -109
- package/android/src/main/java/com/reactnativereadium/ReadiumViewManager.kt +0 -149
- package/android/src/main/java/com/reactnativereadium/search/SearchFragment.kt +0 -100
- package/android/src/main/java/com/reactnativereadium/search/SearchPagingSource.kt +0 -44
- package/android/src/main/java/com/reactnativereadium/search/SearchResultAdapter.kt +0 -68
- package/android/src/main/java/com/reactnativereadium/utils/Dimensions.kt +0 -6
- package/android/src/main/java/com/reactnativereadium/utils/R2DispatcherActivity.kt +0 -45
- package/android/src/main/java/com/reactnativereadium/utils/SectionDecoration.kt +0 -98
- package/android/src/main/java/com/reactnativereadium/utils/SingleClickListener.kt +0 -32
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Bitmap.kt +0 -23
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Context.kt +0 -16
- package/android/src/main/java/com/reactnativereadium/utils/extensions/File.kt +0 -22
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Link.kt +0 -6
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Metadata.kt +0 -6
- package/android/src/main/java/com/reactnativereadium/utils/extensions/URL.kt +0 -29
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Uri.kt +0 -17
- package/android/src/main/res/layout/fragment_search.xml +0 -39
- package/android/src/main/res/layout/item_recycle_search.xml +0 -14
- package/ios/Common/EPUBPreferences.swift +0 -8
- package/ios/Common/Paths.swift +0 -52
- package/ios/Common/Publication.swift +0 -15
- package/ios/Common/Toolkit/Extensions/HTTPClient.swift +0 -65
- package/ios/Common/Toolkit/Extensions/UIImage.swift +0 -12
- package/ios/Common/Toolkit/Extensions/UIViewController.swift +0 -19
- package/ios/Common/Toolkit/ScreenOrientation.swift +0 -13
- package/ios/Data/Bookmark.swift +0 -23
- package/ios/Readium-Bridging-Header.h +0 -2
- package/ios/ReadiumView.swift +0 -165
- package/ios/ReadiumViewManager.m +0 -11
- package/ios/ReadiumViewManager.swift +0 -9
- package/lib/src/components/BaseReadiumView.d.ts +0 -2
- package/lib/src/components/BaseReadiumView.js +0 -7
- package/lib/src/components/BaseReadiumView.web.d.ts +0 -1
- package/lib/src/components/BaseReadiumView.web.js +0 -1
- package/lib/src/enums/Appearance.d.ts +0 -11
- package/lib/src/enums/Appearance.js +0 -13
- package/lib/src/enums/ColumnCount.d.ts +0 -5
- package/lib/src/enums/ColumnCount.js +0 -7
- package/lib/src/enums/FontFamily.d.ts +0 -10
- package/lib/src/enums/FontFamily.js +0 -12
- package/lib/src/enums/TextAlignment.d.ts +0 -4
- package/lib/src/enums/TextAlignment.js +0 -6
- package/lib/src/enums/index.d.ts +0 -4
- package/lib/src/enums/index.js +0 -4
- package/lib/src/interfaces/BaseReadiumViewProps.d.ts +0 -15
- package/lib/src/utils/COMPONENT_NAME.d.ts +0 -1
- package/lib/src/utils/COMPONENT_NAME.js +0 -1
- package/lib/src/utils/LINKING_ERROR.d.ts +0 -1
- package/lib/src/utils/LINKING_ERROR.js +0 -5
- package/lib/src/utils/clamp.d.ts +0 -1
- package/lib/src/utils/clamp.js +0 -7
- package/lib/src/utils/createFragment.d.ts +0 -1
- package/lib/src/utils/createFragment.js +0 -10
- package/lib/src/utils/getWidthOrHeightValue.d.ts +0 -1
- package/lib/src/utils/getWidthOrHeightValue.js +0 -6
- package/lib/src/utils/indexOfObjectValue.d.ts +0 -1
- package/lib/src/utils/indexOfObjectValue.js +0 -3
- package/lib/web/hooks/useReaderRef.d.ts +0 -3
- package/lib/web/hooks/useReaderRef.js +0 -85
- package/lib/web/hooks/useSettingsObserver.d.ts +0 -2
- package/lib/web/hooks/useSettingsObserver.js +0 -44
- package/src/components/BaseReadiumView.tsx +0 -11
- package/src/components/BaseReadiumView.web.tsx +0 -1
- package/src/enums/Appearance.ts +0 -14
- package/src/enums/ColumnCount.ts +0 -6
- package/src/enums/FontFamily.ts +0 -11
- package/src/enums/TextAlignment.ts +0 -5
- package/src/enums/index.ts +0 -4
- package/src/interfaces/BaseReadiumViewProps.ts +0 -16
- package/src/utils/COMPONENT_NAME.ts +0 -1
- package/src/utils/LINKING_ERROR.ts +0 -7
- package/src/utils/clamp.ts +0 -5
- package/src/utils/createFragment.ts +0 -15
- package/src/utils/getWidthOrHeightValue.ts +0 -7
- package/src/utils/indexOfObjectValue.ts +0 -3
- package/web/hooks/useReaderRef.ts +0 -109
- package/web/hooks/useSettingsObserver.ts +0 -61
- /package/lib/src/{interfaces/BaseReadiumViewProps.js → components/ReadiumView.types.js} +0 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NitroReadium-Swift-Cxx-Umbrella.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
// Forward declarations of C++ defined types
|
|
11
|
+
// Forward declaration of `AccessibilityCertification` to properly resolve imports.
|
|
12
|
+
namespace margelo::nitro::readium { struct AccessibilityCertification; }
|
|
13
|
+
// Forward declaration of `Accessibility` to properly resolve imports.
|
|
14
|
+
namespace margelo::nitro::readium { struct Accessibility; }
|
|
15
|
+
// Forward declaration of `BelongsTo` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::readium { struct BelongsTo; }
|
|
17
|
+
// Forward declaration of `Contributor` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::readium { struct Contributor; }
|
|
19
|
+
// Forward declaration of `DecorationActivatedEvent` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::readium { struct DecorationActivatedEvent; }
|
|
21
|
+
// Forward declaration of `DecorationGroup` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::readium { struct DecorationGroup; }
|
|
23
|
+
// Forward declaration of `DecorationStyle` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::readium { struct DecorationStyle; }
|
|
25
|
+
// Forward declaration of `Decoration` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::readium { struct Decoration; }
|
|
27
|
+
// Forward declaration of `HybridReadiumViewSpec` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::readium { class HybridReadiumViewSpec; }
|
|
29
|
+
// Forward declaration of `Link` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::readium { struct Link; }
|
|
31
|
+
// Forward declaration of `LocatorLocations` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::readium { struct LocatorLocations; }
|
|
33
|
+
// Forward declaration of `LocatorText` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::readium { struct LocatorText; }
|
|
35
|
+
// Forward declaration of `Locator` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::readium { struct Locator; }
|
|
37
|
+
// Forward declaration of `Point` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::readium { struct Point; }
|
|
39
|
+
// Forward declaration of `Preferences` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::readium { struct Preferences; }
|
|
41
|
+
// Forward declaration of `PublicationMetadata` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::readium { struct PublicationMetadata; }
|
|
43
|
+
// Forward declaration of `PublicationReadyEvent` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::readium { struct PublicationReadyEvent; }
|
|
45
|
+
// Forward declaration of `ReadiumFile` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::readium { struct ReadiumFile; }
|
|
47
|
+
// Forward declaration of `Rect` to properly resolve imports.
|
|
48
|
+
namespace margelo::nitro::readium { struct Rect; }
|
|
49
|
+
// Forward declaration of `SelectionActionEvent` to properly resolve imports.
|
|
50
|
+
namespace margelo::nitro::readium { struct SelectionActionEvent; }
|
|
51
|
+
// Forward declaration of `SelectionAction` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::readium { struct SelectionAction; }
|
|
53
|
+
// Forward declaration of `SelectionEvent` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::readium { struct SelectionEvent; }
|
|
55
|
+
// Forward declaration of `SeriesInfo` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::readium { struct SeriesInfo; }
|
|
57
|
+
// Forward declaration of `Subject` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::readium { struct Subject; }
|
|
59
|
+
|
|
60
|
+
// Include C++ defined types
|
|
61
|
+
#include "Accessibility.hpp"
|
|
62
|
+
#include "AccessibilityCertification.hpp"
|
|
63
|
+
#include "BelongsTo.hpp"
|
|
64
|
+
#include "Contributor.hpp"
|
|
65
|
+
#include "Decoration.hpp"
|
|
66
|
+
#include "DecorationActivatedEvent.hpp"
|
|
67
|
+
#include "DecorationGroup.hpp"
|
|
68
|
+
#include "DecorationStyle.hpp"
|
|
69
|
+
#include "HybridReadiumViewSpec.hpp"
|
|
70
|
+
#include "Link.hpp"
|
|
71
|
+
#include "Locator.hpp"
|
|
72
|
+
#include "LocatorLocations.hpp"
|
|
73
|
+
#include "LocatorText.hpp"
|
|
74
|
+
#include "Point.hpp"
|
|
75
|
+
#include "Preferences.hpp"
|
|
76
|
+
#include "PublicationMetadata.hpp"
|
|
77
|
+
#include "PublicationReadyEvent.hpp"
|
|
78
|
+
#include "ReadiumFile.hpp"
|
|
79
|
+
#include "Rect.hpp"
|
|
80
|
+
#include "SelectionAction.hpp"
|
|
81
|
+
#include "SelectionActionEvent.hpp"
|
|
82
|
+
#include "SelectionEvent.hpp"
|
|
83
|
+
#include "SeriesInfo.hpp"
|
|
84
|
+
#include "Subject.hpp"
|
|
85
|
+
#include <NitroModules/Result.hpp>
|
|
86
|
+
#include <exception>
|
|
87
|
+
#include <functional>
|
|
88
|
+
#include <memory>
|
|
89
|
+
#include <optional>
|
|
90
|
+
#include <string>
|
|
91
|
+
#include <unordered_map>
|
|
92
|
+
#include <vector>
|
|
93
|
+
|
|
94
|
+
// C++ helpers for Swift
|
|
95
|
+
#include "NitroReadium-Swift-Cxx-Bridge.hpp"
|
|
96
|
+
|
|
97
|
+
// Common C++ types used in Swift
|
|
98
|
+
#include <NitroModules/ArrayBufferHolder.hpp>
|
|
99
|
+
#include <NitroModules/AnyMapUtils.hpp>
|
|
100
|
+
#include <NitroModules/RuntimeError.hpp>
|
|
101
|
+
#include <NitroModules/DateToChronoDate.hpp>
|
|
102
|
+
|
|
103
|
+
// Forward declarations of Swift defined types
|
|
104
|
+
// Forward declaration of `HybridReadiumViewSpec_cxx` to properly resolve imports.
|
|
105
|
+
namespace NitroReadium { class HybridReadiumViewSpec_cxx; }
|
|
106
|
+
|
|
107
|
+
// Include Swift defined types
|
|
108
|
+
#if __has_include("NitroReadium-Swift.h")
|
|
109
|
+
// This header is generated by Xcode/Swift on every app build.
|
|
110
|
+
// If it cannot be found, make sure the Swift module's name (= podspec name) is actually "NitroReadium".
|
|
111
|
+
#include "NitroReadium-Swift.h"
|
|
112
|
+
// Same as above, but used when building with frameworks (`use_frameworks`)
|
|
113
|
+
#elif __has_include(<NitroReadium/NitroReadium-Swift.h>)
|
|
114
|
+
#include <NitroReadium/NitroReadium-Swift.h>
|
|
115
|
+
#else
|
|
116
|
+
#error NitroReadium's autogenerated Swift header cannot be found! Make sure the Swift module's name (= podspec name) is actually "NitroReadium", and try building the app first.
|
|
117
|
+
#endif
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NitroReadiumAutolinking.mm
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <NitroModules/HybridObjectRegistry.hpp>
|
|
10
|
+
#import "NitroReadium-Swift-Cxx-Umbrella.hpp"
|
|
11
|
+
#import <type_traits>
|
|
12
|
+
|
|
13
|
+
#include "HybridReadiumViewSpecSwift.hpp"
|
|
14
|
+
|
|
15
|
+
@interface NitroReadiumAutolinking : NSObject
|
|
16
|
+
@end
|
|
17
|
+
|
|
18
|
+
@implementation NitroReadiumAutolinking
|
|
19
|
+
|
|
20
|
+
+ (void) load {
|
|
21
|
+
using namespace margelo::nitro;
|
|
22
|
+
using namespace margelo::nitro::readium;
|
|
23
|
+
|
|
24
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
25
|
+
"ReadiumView",
|
|
26
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
27
|
+
std::shared_ptr<HybridReadiumViewSpec> hybridObject = NitroReadium::NitroReadiumAutolinking::createReadiumView();
|
|
28
|
+
return hybridObject;
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NitroReadiumAutolinking.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
// TODO: Use empty enums once Swift supports exporting them as namespaces
|
|
11
|
+
// See: https://github.com/swiftlang/swift/pull/83616
|
|
12
|
+
public final class NitroReadiumAutolinking {
|
|
13
|
+
public typealias bridge = margelo.nitro.readium.bridge.swift
|
|
14
|
+
|
|
15
|
+
public static func createReadiumView() -> bridge.std__shared_ptr_HybridReadiumViewSpec_ {
|
|
16
|
+
let hybridObject = HybridReadiumView()
|
|
17
|
+
return { () -> bridge.std__shared_ptr_HybridReadiumViewSpec_ in
|
|
18
|
+
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
19
|
+
return __cxxWrapped.getCxxPart()
|
|
20
|
+
}()
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public static func isReadiumViewRecyclable() -> Bool {
|
|
24
|
+
return HybridReadiumView.self is any RecyclableView.Type
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridReadiumViewSpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridReadiumViewSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::readium {
|
|
11
|
+
} // namespace margelo::nitro::readium
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridReadiumViewSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridReadiumViewSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridReadiumViewSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace NitroReadium { class HybridReadiumViewSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `ReadiumFile` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::readium { struct ReadiumFile; }
|
|
17
|
+
// Forward declaration of `Locator` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::readium { struct Locator; }
|
|
19
|
+
// Forward declaration of `LocatorLocations` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::readium { struct LocatorLocations; }
|
|
21
|
+
// Forward declaration of `LocatorText` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::readium { struct LocatorText; }
|
|
23
|
+
// Forward declaration of `Preferences` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::readium { struct Preferences; }
|
|
25
|
+
// Forward declaration of `DecorationGroup` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::readium { struct DecorationGroup; }
|
|
27
|
+
// Forward declaration of `Decoration` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::readium { struct Decoration; }
|
|
29
|
+
// Forward declaration of `DecorationStyle` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::readium { struct DecorationStyle; }
|
|
31
|
+
// Forward declaration of `SelectionAction` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::readium { struct SelectionAction; }
|
|
33
|
+
// Forward declaration of `PublicationReadyEvent` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::readium { struct PublicationReadyEvent; }
|
|
35
|
+
// Forward declaration of `Link` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::readium { struct Link; }
|
|
37
|
+
// Forward declaration of `PublicationMetadata` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::readium { struct PublicationMetadata; }
|
|
39
|
+
// Forward declaration of `Accessibility` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::readium { struct Accessibility; }
|
|
41
|
+
// Forward declaration of `AccessibilityCertification` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::readium { struct AccessibilityCertification; }
|
|
43
|
+
// Forward declaration of `Contributor` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::readium { struct Contributor; }
|
|
45
|
+
// Forward declaration of `Subject` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::readium { struct Subject; }
|
|
47
|
+
// Forward declaration of `BelongsTo` to properly resolve imports.
|
|
48
|
+
namespace margelo::nitro::readium { struct BelongsTo; }
|
|
49
|
+
// Forward declaration of `SeriesInfo` to properly resolve imports.
|
|
50
|
+
namespace margelo::nitro::readium { struct SeriesInfo; }
|
|
51
|
+
// Forward declaration of `DecorationActivatedEvent` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::readium { struct DecorationActivatedEvent; }
|
|
53
|
+
// Forward declaration of `Rect` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::readium { struct Rect; }
|
|
55
|
+
// Forward declaration of `Point` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::readium { struct Point; }
|
|
57
|
+
// Forward declaration of `SelectionEvent` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::readium { struct SelectionEvent; }
|
|
59
|
+
// Forward declaration of `SelectionActionEvent` to properly resolve imports.
|
|
60
|
+
namespace margelo::nitro::readium { struct SelectionActionEvent; }
|
|
61
|
+
|
|
62
|
+
#include "ReadiumFile.hpp"
|
|
63
|
+
#include <string>
|
|
64
|
+
#include "Locator.hpp"
|
|
65
|
+
#include <optional>
|
|
66
|
+
#include "LocatorLocations.hpp"
|
|
67
|
+
#include "LocatorText.hpp"
|
|
68
|
+
#include "Preferences.hpp"
|
|
69
|
+
#include "DecorationGroup.hpp"
|
|
70
|
+
#include <vector>
|
|
71
|
+
#include "Decoration.hpp"
|
|
72
|
+
#include "DecorationStyle.hpp"
|
|
73
|
+
#include <unordered_map>
|
|
74
|
+
#include "SelectionAction.hpp"
|
|
75
|
+
#include <functional>
|
|
76
|
+
#include "PublicationReadyEvent.hpp"
|
|
77
|
+
#include "Link.hpp"
|
|
78
|
+
#include "PublicationMetadata.hpp"
|
|
79
|
+
#include "Accessibility.hpp"
|
|
80
|
+
#include "AccessibilityCertification.hpp"
|
|
81
|
+
#include "Contributor.hpp"
|
|
82
|
+
#include "Subject.hpp"
|
|
83
|
+
#include "BelongsTo.hpp"
|
|
84
|
+
#include "SeriesInfo.hpp"
|
|
85
|
+
#include "DecorationActivatedEvent.hpp"
|
|
86
|
+
#include "Rect.hpp"
|
|
87
|
+
#include "Point.hpp"
|
|
88
|
+
#include "SelectionEvent.hpp"
|
|
89
|
+
#include "SelectionActionEvent.hpp"
|
|
90
|
+
|
|
91
|
+
#include "NitroReadium-Swift-Cxx-Umbrella.hpp"
|
|
92
|
+
|
|
93
|
+
namespace margelo::nitro::readium {
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The C++ part of HybridReadiumViewSpec_cxx.swift.
|
|
97
|
+
*
|
|
98
|
+
* HybridReadiumViewSpecSwift (C++) accesses HybridReadiumViewSpec_cxx (Swift), and might
|
|
99
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
100
|
+
*
|
|
101
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
102
|
+
* the future, HybridReadiumViewSpec_cxx can directly inherit from the C++ class HybridReadiumViewSpec
|
|
103
|
+
* to simplify the whole structure and memory management.
|
|
104
|
+
*/
|
|
105
|
+
class HybridReadiumViewSpecSwift: public virtual HybridReadiumViewSpec {
|
|
106
|
+
public:
|
|
107
|
+
// Constructor from a Swift instance
|
|
108
|
+
explicit HybridReadiumViewSpecSwift(const NitroReadium::HybridReadiumViewSpec_cxx& swiftPart):
|
|
109
|
+
HybridObject(HybridReadiumViewSpec::TAG),
|
|
110
|
+
_swiftPart(swiftPart) { }
|
|
111
|
+
|
|
112
|
+
public:
|
|
113
|
+
// Get the Swift part
|
|
114
|
+
inline NitroReadium::HybridReadiumViewSpec_cxx& getSwiftPart() noexcept {
|
|
115
|
+
return _swiftPart;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
public:
|
|
119
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
120
|
+
return _swiftPart.getMemorySize();
|
|
121
|
+
}
|
|
122
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
123
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridReadiumViewSpecSwift>(other)) {
|
|
124
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
125
|
+
}
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
void dispose() noexcept override {
|
|
129
|
+
_swiftPart.dispose();
|
|
130
|
+
}
|
|
131
|
+
std::string toString() override {
|
|
132
|
+
return _swiftPart.toString();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
public:
|
|
136
|
+
// Properties
|
|
137
|
+
inline ReadiumFile getFile() noexcept override {
|
|
138
|
+
return _swiftPart.getFile();
|
|
139
|
+
}
|
|
140
|
+
inline void setFile(const ReadiumFile& file) noexcept override {
|
|
141
|
+
_swiftPart.setFile(std::forward<decltype(file)>(file));
|
|
142
|
+
}
|
|
143
|
+
inline std::optional<Locator> getLocation() noexcept override {
|
|
144
|
+
auto __result = _swiftPart.getLocation();
|
|
145
|
+
return __result;
|
|
146
|
+
}
|
|
147
|
+
inline void setLocation(const std::optional<Locator>& location) noexcept override {
|
|
148
|
+
_swiftPart.setLocation(location);
|
|
149
|
+
}
|
|
150
|
+
inline std::optional<Preferences> getPreferences() noexcept override {
|
|
151
|
+
auto __result = _swiftPart.getPreferences();
|
|
152
|
+
return __result;
|
|
153
|
+
}
|
|
154
|
+
inline void setPreferences(const std::optional<Preferences>& preferences) noexcept override {
|
|
155
|
+
_swiftPart.setPreferences(preferences);
|
|
156
|
+
}
|
|
157
|
+
inline std::optional<std::vector<DecorationGroup>> getDecorations() noexcept override {
|
|
158
|
+
auto __result = _swiftPart.getDecorations();
|
|
159
|
+
return __result;
|
|
160
|
+
}
|
|
161
|
+
inline void setDecorations(const std::optional<std::vector<DecorationGroup>>& decorations) noexcept override {
|
|
162
|
+
_swiftPart.setDecorations(decorations);
|
|
163
|
+
}
|
|
164
|
+
inline std::optional<std::vector<SelectionAction>> getSelectionActions() noexcept override {
|
|
165
|
+
auto __result = _swiftPart.getSelectionActions();
|
|
166
|
+
return __result;
|
|
167
|
+
}
|
|
168
|
+
inline void setSelectionActions(const std::optional<std::vector<SelectionAction>>& selectionActions) noexcept override {
|
|
169
|
+
_swiftPart.setSelectionActions(selectionActions);
|
|
170
|
+
}
|
|
171
|
+
inline std::function<void(const Locator& /* locator */)> getOnLocationChange() noexcept override {
|
|
172
|
+
auto __result = _swiftPart.getOnLocationChange();
|
|
173
|
+
return __result;
|
|
174
|
+
}
|
|
175
|
+
inline void setOnLocationChange(const std::function<void(const Locator& /* locator */)>& onLocationChange) noexcept override {
|
|
176
|
+
_swiftPart.setOnLocationChange(onLocationChange);
|
|
177
|
+
}
|
|
178
|
+
inline std::function<void(const PublicationReadyEvent& /* event */)> getOnPublicationReady() noexcept override {
|
|
179
|
+
auto __result = _swiftPart.getOnPublicationReady();
|
|
180
|
+
return __result;
|
|
181
|
+
}
|
|
182
|
+
inline void setOnPublicationReady(const std::function<void(const PublicationReadyEvent& /* event */)>& onPublicationReady) noexcept override {
|
|
183
|
+
_swiftPart.setOnPublicationReady(onPublicationReady);
|
|
184
|
+
}
|
|
185
|
+
inline std::function<void(const DecorationActivatedEvent& /* event */)> getOnDecorationActivated() noexcept override {
|
|
186
|
+
auto __result = _swiftPart.getOnDecorationActivated();
|
|
187
|
+
return __result;
|
|
188
|
+
}
|
|
189
|
+
inline void setOnDecorationActivated(const std::function<void(const DecorationActivatedEvent& /* event */)>& onDecorationActivated) noexcept override {
|
|
190
|
+
_swiftPart.setOnDecorationActivated(onDecorationActivated);
|
|
191
|
+
}
|
|
192
|
+
inline std::function<void(const SelectionEvent& /* event */)> getOnSelectionChange() noexcept override {
|
|
193
|
+
auto __result = _swiftPart.getOnSelectionChange();
|
|
194
|
+
return __result;
|
|
195
|
+
}
|
|
196
|
+
inline void setOnSelectionChange(const std::function<void(const SelectionEvent& /* event */)>& onSelectionChange) noexcept override {
|
|
197
|
+
_swiftPart.setOnSelectionChange(onSelectionChange);
|
|
198
|
+
}
|
|
199
|
+
inline std::function<void(const SelectionActionEvent& /* event */)> getOnSelectionAction() noexcept override {
|
|
200
|
+
auto __result = _swiftPart.getOnSelectionAction();
|
|
201
|
+
return __result;
|
|
202
|
+
}
|
|
203
|
+
inline void setOnSelectionAction(const std::function<void(const SelectionActionEvent& /* event */)>& onSelectionAction) noexcept override {
|
|
204
|
+
_swiftPart.setOnSelectionAction(onSelectionAction);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
public:
|
|
208
|
+
// Methods
|
|
209
|
+
inline void goForward() override {
|
|
210
|
+
auto __result = _swiftPart.goForward();
|
|
211
|
+
if (__result.hasError()) [[unlikely]] {
|
|
212
|
+
std::rethrow_exception(__result.error());
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
inline void goBackward() override {
|
|
216
|
+
auto __result = _swiftPart.goBackward();
|
|
217
|
+
if (__result.hasError()) [[unlikely]] {
|
|
218
|
+
std::rethrow_exception(__result.error());
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
private:
|
|
223
|
+
NitroReadium::HybridReadiumViewSpec_cxx _swiftPart;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
} // namespace margelo::nitro::readium
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridReadiumViewComponent.mm
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#import "HybridReadiumViewComponent.hpp"
|
|
9
|
+
#import <memory>
|
|
10
|
+
#import <react/renderer/componentregistry/ComponentDescriptorProvider.h>
|
|
11
|
+
#import <React/RCTViewComponentView.h>
|
|
12
|
+
#import <React/RCTComponentViewFactory.h>
|
|
13
|
+
#import <React/UIView+ComponentViewProtocol.h>
|
|
14
|
+
#import <NitroModules/NitroDefines.hpp>
|
|
15
|
+
#import <UIKit/UIKit.h>
|
|
16
|
+
|
|
17
|
+
#import "HybridReadiumViewSpecSwift.hpp"
|
|
18
|
+
#import "NitroReadium-Swift-Cxx-Umbrella.hpp"
|
|
19
|
+
|
|
20
|
+
using namespace facebook;
|
|
21
|
+
using namespace margelo::nitro::readium;
|
|
22
|
+
using namespace margelo::nitro::readium::views;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Represents the React Native View holder for the Nitro "ReadiumView" HybridView.
|
|
26
|
+
*/
|
|
27
|
+
@interface HybridReadiumViewComponent: RCTViewComponentView
|
|
28
|
+
+ (BOOL)shouldBeRecycled;
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
@implementation HybridReadiumViewComponent {
|
|
32
|
+
std::shared_ptr<HybridReadiumViewSpecSwift> _hybridView;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
+ (void) load {
|
|
36
|
+
[super load];
|
|
37
|
+
[RCTComponentViewFactory.currentComponentViewFactory registerComponentViewClass:[HybridReadiumViewComponent class]];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
+ (react::ComponentDescriptorProvider) componentDescriptorProvider {
|
|
41
|
+
return react::concreteComponentDescriptorProvider<HybridReadiumViewComponentDescriptor>();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
- (instancetype) init {
|
|
45
|
+
if (self = [super init]) {
|
|
46
|
+
std::shared_ptr<HybridReadiumViewSpec> hybridView = NitroReadium::NitroReadiumAutolinking::createReadiumView();
|
|
47
|
+
_hybridView = std::dynamic_pointer_cast<HybridReadiumViewSpecSwift>(hybridView);
|
|
48
|
+
[self updateView];
|
|
49
|
+
}
|
|
50
|
+
return self;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
- (void) updateView {
|
|
54
|
+
// 1. Get Swift part
|
|
55
|
+
NitroReadium::HybridReadiumViewSpec_cxx& swiftPart = _hybridView->getSwiftPart();
|
|
56
|
+
|
|
57
|
+
// 2. Get UIView*
|
|
58
|
+
void* viewUnsafe = swiftPart.getView();
|
|
59
|
+
UIView* view = (__bridge_transfer UIView*) viewUnsafe;
|
|
60
|
+
|
|
61
|
+
// 3. Update RCTViewComponentView's [contentView]
|
|
62
|
+
[self setContentView:view];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
- (void) updateProps:(const std::shared_ptr<const react::Props>&)props
|
|
66
|
+
oldProps:(const std::shared_ptr<const react::Props>&)oldProps {
|
|
67
|
+
// 1. Downcast props
|
|
68
|
+
const auto& newViewPropsConst = *std::static_pointer_cast<HybridReadiumViewProps const>(props);
|
|
69
|
+
auto& newViewProps = const_cast<HybridReadiumViewProps&>(newViewPropsConst);
|
|
70
|
+
NitroReadium::HybridReadiumViewSpec_cxx& swiftPart = _hybridView->getSwiftPart();
|
|
71
|
+
|
|
72
|
+
// 2. Update each prop individually
|
|
73
|
+
swiftPart.beforeUpdate();
|
|
74
|
+
|
|
75
|
+
// file: struct
|
|
76
|
+
if (newViewProps.file.isDirty) {
|
|
77
|
+
swiftPart.setFile(newViewProps.file.value);
|
|
78
|
+
newViewProps.file.isDirty = false;
|
|
79
|
+
}
|
|
80
|
+
// location: optional
|
|
81
|
+
if (newViewProps.location.isDirty) {
|
|
82
|
+
swiftPart.setLocation(newViewProps.location.value);
|
|
83
|
+
newViewProps.location.isDirty = false;
|
|
84
|
+
}
|
|
85
|
+
// preferences: optional
|
|
86
|
+
if (newViewProps.preferences.isDirty) {
|
|
87
|
+
swiftPart.setPreferences(newViewProps.preferences.value);
|
|
88
|
+
newViewProps.preferences.isDirty = false;
|
|
89
|
+
}
|
|
90
|
+
// decorations: optional
|
|
91
|
+
if (newViewProps.decorations.isDirty) {
|
|
92
|
+
swiftPart.setDecorations(newViewProps.decorations.value);
|
|
93
|
+
newViewProps.decorations.isDirty = false;
|
|
94
|
+
}
|
|
95
|
+
// selectionActions: optional
|
|
96
|
+
if (newViewProps.selectionActions.isDirty) {
|
|
97
|
+
swiftPart.setSelectionActions(newViewProps.selectionActions.value);
|
|
98
|
+
newViewProps.selectionActions.isDirty = false;
|
|
99
|
+
}
|
|
100
|
+
// onLocationChange: function
|
|
101
|
+
if (newViewProps.onLocationChange.isDirty) {
|
|
102
|
+
swiftPart.setOnLocationChange(newViewProps.onLocationChange.value);
|
|
103
|
+
newViewProps.onLocationChange.isDirty = false;
|
|
104
|
+
}
|
|
105
|
+
// onPublicationReady: function
|
|
106
|
+
if (newViewProps.onPublicationReady.isDirty) {
|
|
107
|
+
swiftPart.setOnPublicationReady(newViewProps.onPublicationReady.value);
|
|
108
|
+
newViewProps.onPublicationReady.isDirty = false;
|
|
109
|
+
}
|
|
110
|
+
// onDecorationActivated: function
|
|
111
|
+
if (newViewProps.onDecorationActivated.isDirty) {
|
|
112
|
+
swiftPart.setOnDecorationActivated(newViewProps.onDecorationActivated.value);
|
|
113
|
+
newViewProps.onDecorationActivated.isDirty = false;
|
|
114
|
+
}
|
|
115
|
+
// onSelectionChange: function
|
|
116
|
+
if (newViewProps.onSelectionChange.isDirty) {
|
|
117
|
+
swiftPart.setOnSelectionChange(newViewProps.onSelectionChange.value);
|
|
118
|
+
newViewProps.onSelectionChange.isDirty = false;
|
|
119
|
+
}
|
|
120
|
+
// onSelectionAction: function
|
|
121
|
+
if (newViewProps.onSelectionAction.isDirty) {
|
|
122
|
+
swiftPart.setOnSelectionAction(newViewProps.onSelectionAction.value);
|
|
123
|
+
newViewProps.onSelectionAction.isDirty = false;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
swiftPart.afterUpdate();
|
|
127
|
+
|
|
128
|
+
// 3. Update hybridRef if it changed
|
|
129
|
+
if (newViewProps.hybridRef.isDirty) {
|
|
130
|
+
// hybridRef changed - call it with new this
|
|
131
|
+
const auto& maybeFunc = newViewProps.hybridRef.value;
|
|
132
|
+
if (maybeFunc.has_value()) {
|
|
133
|
+
maybeFunc.value()(_hybridView);
|
|
134
|
+
}
|
|
135
|
+
newViewProps.hybridRef.isDirty = false;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// 4. Continue in base class
|
|
139
|
+
[super updateProps:props oldProps:oldProps];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
+ (BOOL)shouldBeRecycled {
|
|
143
|
+
return NitroReadium::NitroReadiumAutolinking::isReadiumViewRecyclable();
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
- (void)prepareForRecycle {
|
|
147
|
+
[super prepareForRecycle];
|
|
148
|
+
NitroReadium::HybridReadiumViewSpec_cxx& swiftPart = _hybridView->getSwiftPart();
|
|
149
|
+
swiftPart.maybePrepareForRecycle();
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@end
|