react-native-webview-bootpay 11.18.11 → 11.18.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -83
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +5 -3
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +2 -4
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -2
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +8 -72
- package/android/build/intermediates/compiled_local_resources/debug/out/xml_file_provider_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +1 -1
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +1 -1
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +1 -1
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +2 -2
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +1 -1
- package/android/build/intermediates/javac/debug/classes/kr/co/bootpay/webview/BPCWebChromeClient.class +0 -0
- package/android/build/intermediates/javac/debug/classes/kr/co/bootpay/webview/BPCWebView.class +0 -0
- package/android/build/intermediates/javac/debug/classes/kr/co/bootpay/webview/BPCWebViewClient.class +0 -0
- package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +200 -198
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +3 -5
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +8 -66
- package/android/build/kotlin/compileDebugKotlin/build-history.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/{lookups/id-to-file.tab.keystream → jvm/kotlin/java-sources-proto-map.tab} +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/{subtypes.tab_i → java-sources-proto-map.tab_i} +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/last-build.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +128 -116
- package/android/build/tmp/kotlin-classes/debug/META-INF/rnWebView_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/BPCWebViewPackage.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopHttpErrorEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopHttpErrorEvent.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingErrorEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingErrorEvent.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingFinishEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingFinishEvent.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingProgressEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingProgressEvent.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingStartEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopLoadingStartEvent.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopMessageEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopMessageEvent.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopRenderProcessGoneEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopRenderProcessGoneEvent.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopShouldStartLoadWithRequestEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kr/co/bootpay/webview/events/TopShouldStartLoadWithRequestEvent.class +0 -0
- package/apple/BPCWebView.h +0 -19
- package/apple/BPCWebView.m +104 -284
- package/apple/BPCWebViewManager.h +0 -2
- package/apple/BPCWebViewManager.m +1 -25
- package/index.d.ts +5 -5
- package/ios/.DS_Store +0 -0
- package/ios/RNCWebView.xcodeproj/project.pbxproj +18 -18
- package/ios/RNCWebView.xcodeproj/project.xcworkspace/xcuserdata/bootpay.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/lib/WebView.android.d.ts +0 -3
- package/lib/WebView.android.d.ts.map +1 -1
- package/lib/WebView.android.js +4 -11
- package/lib/WebView.d.ts +2 -2
- package/lib/WebView.d.ts.map +1 -1
- package/lib/WebView.ios.d.ts +0 -1
- package/lib/WebView.ios.d.ts.map +1 -1
- package/lib/WebView.ios.js +7 -12
- package/lib/WebView.macos.d.ts.map +1 -1
- package/lib/WebView.macos.js +6 -10
- package/lib/WebView.windows.d.ts +2 -4
- package/lib/WebView.windows.d.ts.map +1 -1
- package/lib/WebView.windows.js +12 -18
- package/lib/WebViewShared.d.ts +0 -1
- package/lib/WebViewShared.d.ts.map +1 -1
- package/lib/WebViewTypes.d.ts +2 -113
- package/lib/WebViewTypes.d.ts.map +1 -1
- package/package.json +9 -10
- package/react-native-webview-bootpay.podspec +3 -1
- package/react-native.config.js +61 -47
- package/windows/ReactNativeWebView/ReactNativeWebView.vcxproj +20 -37
- package/windows/ReactNativeWebView/ReactPackageProvider.cpp +1 -5
- package/windows/ReactNativeWebView/ReactWebView.cpp +6 -2
- package/windows/ReactNativeWebView/ReactWebView.h +2 -3
- package/windows/ReactNativeWebView/ReactWebView.idl +1 -13
- package/windows/ReactNativeWebView/ReactWebViewManager.cpp +31 -36
- package/windows/ReactNativeWebView/packages.config +0 -2
- package/windows/ReactNativeWebView/pch.h +0 -6
- package/windows/ReactNativeWebView.sln +119 -81
- package/windows/WebViewBridgeComponent/PropertySheet.props +16 -0
- package/windows/{ReactNativeWebView → WebViewBridgeComponent}/WebBridge.cpp +1 -1
- package/windows/{ReactNativeWebView → WebViewBridgeComponent}/WebBridge.h +2 -2
- package/windows/{ReactNativeWebView → WebViewBridgeComponent}/WebBridge.idl +1 -1
- package/windows/WebViewBridgeComponent/WebViewBridgeComponent.def +3 -0
- package/windows/WebViewBridgeComponent/WebViewBridgeComponent.vcxproj +160 -0
- package/windows/WebViewBridgeComponent/WebViewBridgeComponent.vcxproj.filters +33 -0
- package/windows/WebViewBridgeComponent/packages.config +4 -0
- package/windows/WebViewBridgeComponent/pch.cpp +1 -0
- package/windows/WebViewBridgeComponent/pch.h +4 -0
- package/windows/WebViewBridgeComponent/readme.txt +23 -0
- package/android/build/.transforms/4e87ba7f47baac309fba5367e008cf44/results.bin +0 -1
- package/android/build/.transforms/4e87ba7f47baac309fba5367e008cf44/transformed/classes/classes.dex +0 -0
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -100
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/counters.tab +0 -2
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-webview-bootpay_debug.kotlin_module +0 -0
- package/lib/WebViewNativeComponent.android.d.ts +0 -4
- package/lib/WebViewNativeComponent.android.d.ts.map +0 -1
- package/lib/WebViewNativeComponent.android.js +0 -3
- package/lib/WebViewNativeComponent.ios.d.ts +0 -4
- package/lib/WebViewNativeComponent.ios.d.ts.map +0 -1
- package/lib/WebViewNativeComponent.ios.js +0 -3
- package/lib/WebViewNativeComponent.macos.d.ts +0 -4
- package/lib/WebViewNativeComponent.macos.d.ts.map +0 -1
- package/lib/WebViewNativeComponent.macos.js +0 -3
- package/lib/WebViewNativeComponent.windows.d.ts +0 -4
- package/lib/WebViewNativeComponent.windows.d.ts.map +0 -1
- package/lib/WebViewNativeComponent.windows.js +0 -3
- package/lib/index.d.ts +0 -4
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -3
- package/windows/ExperimentalFeatures.props +0 -12
- package/windows/ReactNativeWebView/ReactWebView2.cpp +0 -119
- package/windows/ReactNativeWebView/ReactWebView2.h +0 -43
- package/windows/ReactNativeWebView/ReactWebView2Manager.cpp +0 -147
- package/windows/ReactNativeWebView/ReactWebView2Manager.h +0 -54
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
87E9DB66268011BB00E2AF9E /* BPCWebViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 87E9DB63268011BB00E2AF9E /* BPCWebViewManager.m */; };
|
|
11
|
+
87E9DB67268011BB00E2AF9E /* BPCWKProcessPoolManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 87E9DB64268011BB00E2AF9E /* BPCWKProcessPoolManager.m */; };
|
|
12
|
+
87E9DB68268011BB00E2AF9E /* BPCWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 87E9DB65268011BB00E2AF9E /* BPCWebView.m */; };
|
|
13
13
|
/* End PBXBuildFile section */
|
|
14
14
|
|
|
15
15
|
/* Begin PBXCopyFilesBuildPhase section */
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
|
|
27
27
|
/* Begin PBXFileReference section */
|
|
28
28
|
134814201AA4EA6300B7C361 /* libRNCWebView.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNCWebView.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
87E9DB60268011BB00E2AF9E /* BPCWebViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BPCWebViewManager.h; path = ../apple/BPCWebViewManager.h; sourceTree = "<group>"; };
|
|
30
|
+
87E9DB61268011BB00E2AF9E /* BPCWKProcessPoolManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BPCWKProcessPoolManager.h; path = ../apple/BPCWKProcessPoolManager.h; sourceTree = "<group>"; };
|
|
31
|
+
87E9DB62268011BB00E2AF9E /* BPCWebView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BPCWebView.h; path = ../apple/BPCWebView.h; sourceTree = "<group>"; };
|
|
32
|
+
87E9DB63268011BB00E2AF9E /* BPCWebViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BPCWebViewManager.m; path = ../apple/BPCWebViewManager.m; sourceTree = "<group>"; };
|
|
33
|
+
87E9DB64268011BB00E2AF9E /* BPCWKProcessPoolManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BPCWKProcessPoolManager.m; path = ../apple/BPCWKProcessPoolManager.m; sourceTree = "<group>"; };
|
|
34
|
+
87E9DB65268011BB00E2AF9E /* BPCWebView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BPCWebView.m; path = ../apple/BPCWebView.m; sourceTree = "<group>"; };
|
|
35
35
|
/* End PBXFileReference section */
|
|
36
36
|
|
|
37
37
|
/* Begin PBXFrameworksBuildPhase section */
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
58B511D21A9E6C8500147676 = {
|
|
57
57
|
isa = PBXGroup;
|
|
58
58
|
children = (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
87E9DB62268011BB00E2AF9E /* BPCWebView.h */,
|
|
60
|
+
87E9DB65268011BB00E2AF9E /* BPCWebView.m */,
|
|
61
|
+
87E9DB60268011BB00E2AF9E /* BPCWebViewManager.h */,
|
|
62
|
+
87E9DB63268011BB00E2AF9E /* BPCWebViewManager.m */,
|
|
63
|
+
87E9DB61268011BB00E2AF9E /* BPCWKProcessPoolManager.h */,
|
|
64
|
+
87E9DB64268011BB00E2AF9E /* BPCWKProcessPoolManager.m */,
|
|
65
65
|
134814211AA4EA7D00B7C361 /* Products */,
|
|
66
66
|
);
|
|
67
67
|
sourceTree = "<group>";
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
isa = PBXSourcesBuildPhase;
|
|
123
123
|
buildActionMask = 2147483647;
|
|
124
124
|
files = (
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
87E9DB68268011BB00E2AF9E /* BPCWebView.m in Sources */,
|
|
126
|
+
87E9DB66268011BB00E2AF9E /* BPCWebViewManager.m in Sources */,
|
|
127
|
+
87E9DB67268011BB00E2AF9E /* BPCWKProcessPoolManager.m in Sources */,
|
|
128
128
|
);
|
|
129
129
|
runOnlyForDeploymentPostprocessing = 0;
|
|
130
130
|
};
|
|
Binary file
|
package/lib/WebView.android.d.ts
CHANGED
|
@@ -18,9 +18,6 @@ declare class WebView extends React.Component<AndroidWebViewProps, State> {
|
|
|
18
18
|
androidLayerType: string;
|
|
19
19
|
originWhitelist: string[];
|
|
20
20
|
setSupportMultipleWindows: boolean;
|
|
21
|
-
setBuiltInZoomControls: boolean;
|
|
22
|
-
setDisplayZoomControls: boolean;
|
|
23
|
-
nestedScrollEnabled: boolean;
|
|
24
21
|
};
|
|
25
22
|
static isFileUploadSupported: () => Promise<any>;
|
|
26
23
|
startUrl: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebView.android.d.ts","sourceRoot":"","sources":["../src/WebView.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,EAEL,kCAAkC,EAGnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,6BAA6B,EAC7B,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,EAEN,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"WebView.android.d.ts","sourceRoot":"","sources":["../src/WebView.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,EAEL,kCAAkC,EAGnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,6BAA6B,EAC7B,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,EAEN,MAAM,gBAAgB,CAAC;AAgBxB;;GAEG;AACH,cAAM,OAAQ,SAAQ,KAAK,CAAC,SAAS,CAAC,mBAAmB,EAAE,KAAK,CAAC;IAC/D,MAAM,CAAC,YAAY;;;;;;;;;;;;;MAajB;IAEF,MAAM,CAAC,qBAAqB,qBAG1B;IAEF,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B,KAAK,EAAE,KAAK,CAGV;IAEF,4BAA4B,EAAE,UAAU,CAAC,OAAO,kCAAkC,CAAC,GAAG,IAAI,CAAQ;IAElG,UAAU,wCAA2C;IAErD,mBAAmB,SAA0C;IAE7D,iBAAiB,aAEf;IAEF,WAAW;;;;;;;;;;;;MAA+D;IAE1E,SAAS,aAMP;IAEF,MAAM,aAMJ;IAEF,MAAM,aASJ;IAEF,WAAW,aAMT;IAEF,YAAY,aAMV;IAEF,WAAW,SAAU,MAAM,UAMzB;IAEF,aAAa,aAMZ;IAED,UAAU,qBAAsB,OAAO,UAMrC;IAEF,YAAY,aAMV;IAEF;;;;;OAKG;IACH,gBAAgB,SAAU,MAAM,UAM9B;IAEF;;;OAGG;IACH,qBAAqB,0CAInB;IAEF;;OAEG;IACH,gBAAgB,eAId;IAEF,cAAc,0CAQZ;IAEF,cAAc,qCAeZ;IAEF,WAAW,yCAKV;IAED,mBAAmB,iDAKlB;IAED,eAAe,0CAeb;IAEF,SAAS,uCAKP;IAEF,iBAAiB,wCAcf;IAEF,oCAAoC,gBACrB,OAAO,OACf,MAAM,+CAYX;IAEF,MAAM;CAoFP;AAED,eAAe,OAAO,CAAC"}
|
package/lib/WebView.android.js
CHANGED
|
@@ -61,13 +61,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
61
61
|
return t;
|
|
62
62
|
};
|
|
63
63
|
import React from 'react';
|
|
64
|
-
import { Image, UIManager as NotTypedUIManager, View, NativeModules, findNodeHandle, } from 'react-native';
|
|
64
|
+
import { Image, requireNativeComponent, UIManager as NotTypedUIManager, View, NativeModules, findNodeHandle, } from 'react-native';
|
|
65
65
|
import BatchedBridge from 'react-native/Libraries/BatchedBridge/BatchedBridge';
|
|
66
66
|
import invariant from 'invariant';
|
|
67
|
-
import BPCWebView from "./WebViewNativeComponent.android";
|
|
68
67
|
import { defaultOriginWhitelist, createOnShouldStartLoadWithRequest, defaultRenderError, defaultRenderLoading, } from './WebViewShared';
|
|
69
68
|
import styles from './WebView.styles';
|
|
70
69
|
var UIManager = NotTypedUIManager;
|
|
70
|
+
var BPCWebView = requireNativeComponent('BPCWebView');
|
|
71
71
|
var resolveAssetSource = Image.resolveAssetSource;
|
|
72
72
|
/**
|
|
73
73
|
* A simple counter to uniquely identify WebView instances. Do not use this for anything else.
|
|
@@ -163,14 +163,10 @@ var WebView = /** @class */ (function (_super) {
|
|
|
163
163
|
if (onError) {
|
|
164
164
|
onError(event);
|
|
165
165
|
}
|
|
166
|
-
else {
|
|
167
|
-
console.warn('Encountered an error loading page', event.nativeEvent);
|
|
168
|
-
}
|
|
169
166
|
if (onLoadEnd) {
|
|
170
167
|
onLoadEnd(event);
|
|
171
168
|
}
|
|
172
|
-
|
|
173
|
-
return;
|
|
169
|
+
console.warn('Encountered an error loading page', event.nativeEvent);
|
|
174
170
|
_this.setState({
|
|
175
171
|
lastErrorEvent: event.nativeEvent,
|
|
176
172
|
viewState: 'ERROR'
|
|
@@ -285,10 +281,7 @@ var WebView = /** @class */ (function (_super) {
|
|
|
285
281
|
androidHardwareAccelerationDisabled: false,
|
|
286
282
|
androidLayerType: 'none',
|
|
287
283
|
originWhitelist: defaultOriginWhitelist,
|
|
288
|
-
setSupportMultipleWindows: true
|
|
289
|
-
setBuiltInZoomControls: true,
|
|
290
|
-
setDisplayZoomControls: false,
|
|
291
|
-
nestedScrollEnabled: false
|
|
284
|
+
setSupportMultipleWindows: true
|
|
292
285
|
};
|
|
293
286
|
WebView.isFileUploadSupported = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
294
287
|
return __generator(_a, function (_b) {
|
package/lib/WebView.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IOSWebViewProps, AndroidWebViewProps
|
|
3
|
-
export declare type WebViewProps = IOSWebViewProps & AndroidWebViewProps
|
|
2
|
+
import { IOSWebViewProps, AndroidWebViewProps } from './WebViewTypes';
|
|
3
|
+
export declare type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
|
|
4
4
|
declare const WebView: React.FunctionComponent<WebViewProps>;
|
|
5
5
|
export { WebView };
|
|
6
6
|
export default WebView;
|
package/lib/WebView.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebView.d.ts","sourceRoot":"","sources":["../src/WebView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"WebView.d.ts","sourceRoot":"","sources":["../src/WebView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,oBAAY,YAAY,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAMjE,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAMlD,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,eAAe,OAAO,CAAC"}
|
package/lib/WebView.ios.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ declare class WebView extends React.Component<IOSWebViewProps, State> {
|
|
|
6
6
|
cacheEnabled: boolean;
|
|
7
7
|
originWhitelist: string[];
|
|
8
8
|
useSharedProcessPool: boolean;
|
|
9
|
-
textInteractionEnabled: boolean;
|
|
10
9
|
};
|
|
11
10
|
static isFileUploadSupported: () => Promise<boolean>;
|
|
12
11
|
state: State;
|
package/lib/WebView.ios.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebView.ios.d.ts","sourceRoot":"","sources":["../src/WebView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EAEf,gBAAgB,EAEhB,KAAK,EAEN,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"WebView.ios.d.ts","sourceRoot":"","sources":["../src/WebView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EAEf,gBAAgB,EAEhB,KAAK,EAEN,MAAM,gBAAgB,CAAC;AAyBxB,cAAM,OAAQ,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,EAAE,KAAK,CAAC;IAC3D,MAAM,CAAC,YAAY;;;;;MAKjB;IAEF,MAAM,CAAC,qBAAqB,yBAG1B;IAEF,KAAK,EAAE,KAAK,CAGV;IAEF,UAAU,oCAAuC;IAGjD,WAAW;;;;;;;;;MAA+D;IAE1E;;OAEG;IACH,SAAS,aAMP;IAEF;;OAEG;IACH,MAAM,aAMJ;IAEF;;OAEG;IACH,MAAM,aAOJ;IAEF;;OAEG;IACH,WAAW,aAMT;IAEF;;OAEG;IACH,YAAY,aAMV;IAEF;;;;;;;;;OASG;IACH,WAAW,SAAU,MAAM,UAMzB;IAEF;;;;;OAKG;IACH,gBAAgB,SAAU,MAAM,UAM9B;IAEF;;;OAGG;IACH,qBAAqB,0CAInB;IAEF;;OAEG;IACH,gBAAgB,eAId;IAEF,cAAc,0CAMZ;IAEF,cAAc,qCAeZ;IAEF,WAAW,yCAKV;IAED,eAAe,0CAYb;IAEF,SAAS,uCAKP;IAEF,iBAAiB,wCAKf;IAEF,oCAAoC,gBACrB,OAAO,QACd,MAAM,kBACI,MAAM,UAOtB;IAEF,4BAA4B,0CAK1B;IAEF,kBAAkB,CAAC,SAAS,EAAE,eAAe;IAO7C,uBAAuB,CACrB,SAAS,EAAE,eAAe,EAC1B,QAAQ,EAAE,MAAM,eAAe;IASjC,MAAM;CAqFP;AAED,eAAe,OAAO,CAAC"}
|
package/lib/WebView.ios.js
CHANGED
|
@@ -61,9 +61,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
61
61
|
return t;
|
|
62
62
|
};
|
|
63
63
|
import React from 'react';
|
|
64
|
-
import { UIManager as NotTypedUIManager, View, NativeModules, Image, findNodeHandle, } from 'react-native';
|
|
64
|
+
import { UIManager as NotTypedUIManager, View, requireNativeComponent, NativeModules, Image, findNodeHandle, } from 'react-native';
|
|
65
65
|
import invariant from 'invariant';
|
|
66
|
-
import BPCWebView from "./WebViewNativeComponent.ios";
|
|
67
66
|
import { defaultOriginWhitelist, createOnShouldStartLoadWithRequest, defaultRenderError, defaultRenderLoading, } from './WebViewShared';
|
|
68
67
|
import styles from './WebView.styles';
|
|
69
68
|
var UIManager = NotTypedUIManager;
|
|
@@ -79,6 +78,7 @@ var processDecelerationRate = function (decelerationRate) {
|
|
|
79
78
|
return newDecelerationRate;
|
|
80
79
|
};
|
|
81
80
|
var BPCWebViewManager = NativeModules.BPCWebViewManager;
|
|
81
|
+
var BPCWebView = requireNativeComponent('BPCWebView');
|
|
82
82
|
var WebView = /** @class */ (function (_super) {
|
|
83
83
|
__extends(WebView, _super);
|
|
84
84
|
function WebView() {
|
|
@@ -170,17 +170,13 @@ var WebView = /** @class */ (function (_super) {
|
|
|
170
170
|
_this.onLoadingError = function (event) {
|
|
171
171
|
event.persist(); // persist this event because we need to store it
|
|
172
172
|
var _b = _this.props, onError = _b.onError, onLoadEnd = _b.onLoadEnd;
|
|
173
|
-
if (onError) {
|
|
174
|
-
onError(event);
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
console.warn('Encountered an error loading page', event.nativeEvent);
|
|
178
|
-
}
|
|
179
173
|
if (onLoadEnd) {
|
|
180
174
|
onLoadEnd(event);
|
|
181
175
|
}
|
|
182
|
-
if (
|
|
183
|
-
|
|
176
|
+
if (onError) {
|
|
177
|
+
onError(event);
|
|
178
|
+
}
|
|
179
|
+
console.warn('Encountered an error loading page', event.nativeEvent);
|
|
184
180
|
_this.setState({
|
|
185
181
|
lastErrorEvent: event.nativeEvent,
|
|
186
182
|
viewState: 'ERROR'
|
|
@@ -277,8 +273,7 @@ var WebView = /** @class */ (function (_super) {
|
|
|
277
273
|
javaScriptEnabled: true,
|
|
278
274
|
cacheEnabled: true,
|
|
279
275
|
originWhitelist: defaultOriginWhitelist,
|
|
280
|
-
useSharedProcessPool: true
|
|
281
|
-
textInteractionEnabled: true
|
|
276
|
+
useSharedProcessPool: true
|
|
282
277
|
};
|
|
283
278
|
WebView.isFileUploadSupported = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
284
279
|
return __generator(_a, function (_b) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebView.macos.d.ts","sourceRoot":"","sources":["../src/WebView.macos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAElB,KAAK,EAEN,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"WebView.macos.d.ts","sourceRoot":"","sources":["../src/WebView.macos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAElB,KAAK,EAEN,MAAM,gBAAgB,CAAC;AAcxB,cAAM,OAAQ,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,EAAE,KAAK,CAAC;IAC7D,MAAM,CAAC,YAAY;;;;;MAKjB;IAEF,MAAM,CAAC,qBAAqB,yBAG1B;IAEF,KAAK,EAAE,KAAK,CAGV;IAEF,UAAU,sCAAyC;IAGnD,WAAW;;;;;;;;;MAA+D;IAE1E;;OAEG;IACH,SAAS,aAMP;IAEF;;OAEG;IACH,MAAM,aAMJ;IAEF;;OAEG;IACH,MAAM,aAOJ;IAEF;;OAEG;IACH,WAAW,aAMT;IAEF;;OAEG;IACH,YAAY,aAMV;IAEF;;;;;;;;;OASG;IACH,WAAW,SAAU,MAAM,UAMzB;IAEF;;;;;OAKG;IACH,gBAAgB,SAAU,MAAM,UAM9B;IAEF;;;OAGG;IACH,qBAAqB,0CAInB;IAEF;;OAEG;IACH,gBAAgB,eAId;IAEF,cAAc,0CAMZ;IAEF,cAAc,qCAeZ;IAEF,WAAW,yCAKV;IAED,eAAe,0CAYb;IAEF,SAAS,uCAKP;IAEF,iBAAiB,wCAKf;IAEF,oCAAoC,gBACrB,OAAO,QACd,MAAM,kBACI,MAAM,UAOtB;IAEF,4BAA4B,0CAK1B;IAEF,kBAAkB,CAAC,SAAS,EAAE,iBAAiB;IAM/C,uBAAuB,CACrB,SAAS,EAAE,iBAAiB,EAC5B,QAAQ,EAAE,MAAM,iBAAiB;IASnC,MAAM;CA0EP;AAED,eAAe,OAAO,CAAC"}
|
package/lib/WebView.macos.js
CHANGED
|
@@ -61,14 +61,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
61
61
|
return t;
|
|
62
62
|
};
|
|
63
63
|
import React from 'react';
|
|
64
|
-
import { UIManager as NotTypedUIManager, View, NativeModules, Image, findNodeHandle, } from 'react-native';
|
|
64
|
+
import { UIManager as NotTypedUIManager, View, requireNativeComponent, NativeModules, Image, findNodeHandle, } from 'react-native';
|
|
65
65
|
import invariant from 'invariant';
|
|
66
|
-
import BPCWebView from "./WebViewNativeComponent.ios";
|
|
67
66
|
import { defaultOriginWhitelist, createOnShouldStartLoadWithRequest, defaultRenderError, defaultRenderLoading, } from './WebViewShared';
|
|
68
67
|
import styles from './WebView.styles';
|
|
69
68
|
var UIManager = NotTypedUIManager;
|
|
70
69
|
var resolveAssetSource = Image.resolveAssetSource;
|
|
71
70
|
var BPCWebViewManager = NativeModules.BPCWebViewManager;
|
|
71
|
+
var BPCWebView = requireNativeComponent('BPCWebView');
|
|
72
72
|
var WebView = /** @class */ (function (_super) {
|
|
73
73
|
__extends(WebView, _super);
|
|
74
74
|
function WebView() {
|
|
@@ -160,17 +160,13 @@ var WebView = /** @class */ (function (_super) {
|
|
|
160
160
|
_this.onLoadingError = function (event) {
|
|
161
161
|
event.persist(); // persist this event because we need to store it
|
|
162
162
|
var _b = _this.props, onError = _b.onError, onLoadEnd = _b.onLoadEnd;
|
|
163
|
-
if (onError) {
|
|
164
|
-
onError(event);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
console.warn('Encountered an error loading page', event.nativeEvent);
|
|
168
|
-
}
|
|
169
163
|
if (onLoadEnd) {
|
|
170
164
|
onLoadEnd(event);
|
|
171
165
|
}
|
|
172
|
-
if (
|
|
173
|
-
|
|
166
|
+
if (onError) {
|
|
167
|
+
onError(event);
|
|
168
|
+
}
|
|
169
|
+
console.warn('Encountered an error loading page', event.nativeEvent);
|
|
174
170
|
_this.setState({
|
|
175
171
|
lastErrorEvent: event.nativeEvent,
|
|
176
172
|
viewState: 'ERROR'
|
package/lib/WebView.windows.d.ts
CHANGED
|
@@ -10,15 +10,13 @@
|
|
|
10
10
|
* Licensed under the MIT License.
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { NativeWebViewWindows,
|
|
14
|
-
export default class WebView extends React.Component<
|
|
13
|
+
import { NativeWebViewWindows, WebViewSharedProps, WebViewProgressEvent, WebViewNavigationEvent, WebViewErrorEvent, WebViewHttpErrorEvent, WebViewMessageEvent, State } from './WebViewTypes';
|
|
14
|
+
export default class WebView extends React.Component<WebViewSharedProps, State> {
|
|
15
15
|
static defaultProps: {
|
|
16
16
|
javaScriptEnabled: boolean;
|
|
17
17
|
};
|
|
18
18
|
state: State;
|
|
19
19
|
webViewRef: React.RefObject<NativeWebViewWindows>;
|
|
20
|
-
RnwVersionSupportsWebView2: boolean;
|
|
21
|
-
RCTWebViewString: string;
|
|
22
20
|
goForward: () => void;
|
|
23
21
|
goBack: () => void;
|
|
24
22
|
reload: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebView.windows.d.ts","sourceRoot":"","sources":["../src/WebView.windows.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WebView.windows.d.ts","sourceRoot":"","sources":["../src/WebView.windows.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EAEnB,KAAK,EACN,MAAM,gBAAgB,CAAC;AA0BxB,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,KAAK,CAAC,SAAS,CAAC,kBAAkB,EAAE,KAAK,CAAC;IAE7E,MAAM,CAAC,YAAY;;MAEjB;IAEF,KAAK,EAAE,KAAK,CAGX;IAED,UAAU,wCAA2C;IAErD,SAAS,aAMR;IAED,MAAM,aAML;IAED,MAAM,aAML;IAED,gBAAgB,SAAU,MAAM,UAM/B;IAED,WAAW,SAAU,MAAM,UAOzB;IAEF,sBAAsB,YAAa,MAAM,YAIxC;IAID;;;OAGG;IACH,qBAAqB,0CAIpB;IAED,gBAAgB,sBAGf;IAED,cAAc,0CAMb;IAED,iBAAiB,wCAKf;IAEF,cAAc,qCAcb;IAED,eAAe,0CAYd;IAED,SAAS,uCAKR;IAED,WAAW,yCAKV;IAED,MAAM;CA6EP"}
|
package/lib/WebView.windows.js
CHANGED
|
@@ -36,12 +36,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
36
36
|
return t;
|
|
37
37
|
};
|
|
38
38
|
import React from 'react';
|
|
39
|
-
import { UIManager as NotTypedUIManager, View, StyleSheet, Image, findNodeHandle, } from 'react-native';
|
|
40
|
-
import {
|
|
41
|
-
import { createOnShouldStartLoadWithRequest } from './WebViewShared';
|
|
42
|
-
var version = require('react-native/Libraries/Core/ReactNativeVersion').version;
|
|
39
|
+
import { UIManager as NotTypedUIManager, View, requireNativeComponent, StyleSheet, Image, findNodeHandle, } from 'react-native';
|
|
40
|
+
import { createOnShouldStartLoadWithRequest, } from './WebViewShared';
|
|
43
41
|
var UIManager = NotTypedUIManager;
|
|
44
42
|
var resolveAssetSource = Image.resolveAssetSource;
|
|
43
|
+
var RCTWebView = requireNativeComponent('BPCWebView');
|
|
45
44
|
var styles = StyleSheet.create({
|
|
46
45
|
container: {
|
|
47
46
|
flex: 1
|
|
@@ -68,23 +67,21 @@ var WebView = /** @class */ (function (_super) {
|
|
|
68
67
|
lastErrorEvent: null
|
|
69
68
|
};
|
|
70
69
|
_this.webViewRef = React.createRef();
|
|
71
|
-
_this.RnwVersionSupportsWebView2 = (version.major > 1 || version.minor >= 68);
|
|
72
|
-
_this.RCTWebViewString = (_this.RnwVersionSupportsWebView2 && _this.props.useWebView2) ? 'RCTWebView2' : 'RCTWebView';
|
|
73
70
|
_this.goForward = function () {
|
|
74
|
-
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig(
|
|
71
|
+
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig('RCTWebView').Commands.goForward, undefined);
|
|
75
72
|
};
|
|
76
73
|
_this.goBack = function () {
|
|
77
|
-
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig(
|
|
74
|
+
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig('RCTWebView').Commands.goBack, undefined);
|
|
78
75
|
};
|
|
79
76
|
_this.reload = function () {
|
|
80
|
-
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig(
|
|
77
|
+
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig('RCTWebView').Commands.reload, undefined);
|
|
81
78
|
};
|
|
82
79
|
_this.injectJavaScript = function (data) {
|
|
83
|
-
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig(
|
|
80
|
+
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig('RCTWebView').Commands.injectJavaScript, [data]);
|
|
84
81
|
};
|
|
85
82
|
_this.postMessage = function (data) {
|
|
86
83
|
var message = _this.getInjectableJSMessage(data);
|
|
87
|
-
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig(
|
|
84
|
+
UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.getViewManagerConfig('RCTWebView').Commands.injectJavaScript, [message]);
|
|
88
85
|
};
|
|
89
86
|
_this.getInjectableJSMessage = function (message) {
|
|
90
87
|
return "(function() {window.dispatchEvent(new MessageEvent('message', {data: ".concat(JSON.stringify(message), "}));})();");
|
|
@@ -121,14 +118,10 @@ var WebView = /** @class */ (function (_super) {
|
|
|
121
118
|
if (onError) {
|
|
122
119
|
onError(event);
|
|
123
120
|
}
|
|
124
|
-
else {
|
|
125
|
-
console.warn('Encountered an error loading page', event.nativeEvent);
|
|
126
|
-
}
|
|
127
121
|
if (onLoadEnd) {
|
|
128
122
|
onLoadEnd(event);
|
|
129
123
|
}
|
|
130
|
-
|
|
131
|
-
return;
|
|
124
|
+
console.error('Encountered an error loading page', event.nativeEvent);
|
|
132
125
|
_this.setState({
|
|
133
126
|
lastErrorEvent: event.nativeEvent,
|
|
134
127
|
viewState: 'ERROR'
|
|
@@ -162,7 +155,7 @@ var WebView = /** @class */ (function (_super) {
|
|
|
162
155
|
return _this;
|
|
163
156
|
}
|
|
164
157
|
WebView.prototype.render = function () {
|
|
165
|
-
var _a = this.props, _b = _a.nativeConfig, nativeConfig = _b === void 0 ? {} : _b, onMessage = _a.onMessage, onShouldStartLoadWithRequestProp = _a.onShouldStartLoadWithRequest, originWhitelist = _a.originWhitelist, renderError = _a.renderError, renderLoading = _a.renderLoading, style = _a.style, containerStyle = _a.containerStyle,
|
|
158
|
+
var _a = this.props, _b = _a.nativeConfig, nativeConfig = _b === void 0 ? {} : _b, onMessage = _a.onMessage, onShouldStartLoadWithRequestProp = _a.onShouldStartLoadWithRequest, originWhitelist = _a.originWhitelist, renderError = _a.renderError, renderLoading = _a.renderLoading, style = _a.style, containerStyle = _a.containerStyle, otherProps = __rest(_a, ["nativeConfig", "onMessage", "onShouldStartLoadWithRequest", "originWhitelist", "renderError", "renderLoading", "style", "containerStyle"]);
|
|
166
159
|
var otherView = null;
|
|
167
160
|
if (this.state.viewState === 'LOADING') {
|
|
168
161
|
otherView = this.props.renderLoading && this.props.renderLoading();
|
|
@@ -184,7 +177,8 @@ var WebView = /** @class */ (function (_super) {
|
|
|
184
177
|
var onShouldStartLoadWithRequest = createOnShouldStartLoadWithRequest(function () { },
|
|
185
178
|
// casting cause it's in the default props
|
|
186
179
|
originWhitelist, onShouldStartLoadWithRequestProp);
|
|
187
|
-
var NativeWebView =
|
|
180
|
+
var NativeWebView = nativeConfig.component
|
|
181
|
+
|| RCTWebView;
|
|
188
182
|
var webView = (<NativeWebView ref={this.webViewRef} key="webViewKey" {...otherProps} messagingEnabled={typeof onMessage === 'function'} onLoadingError={this.onLoadingError} onLoadingFinish={this.onLoadingFinish} onLoadingProgress={this.onLoadingProgress} onLoadingStart={this.onLoadingStart} onHttpError={this.onHttpError} onMessage={this.onMessage} onScroll={this.props.onScroll} onShouldStartLoadWithRequest={onShouldStartLoadWithRequest} source={resolveAssetSource(this.props.source)} style={webViewStyles} {...nativeConfig.props}/>);
|
|
189
183
|
return (<View style={styles.container}>
|
|
190
184
|
{webView}
|
package/lib/WebViewShared.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { OnShouldStartLoadWithRequest, ShouldStartLoadRequestEvent } from './WebViewTypes';
|
|
3
2
|
declare const defaultOriginWhitelist: string[];
|
|
4
3
|
declare const createOnShouldStartLoadWithRequest: (loadRequest: (shouldStart: boolean, url: string, lockIdentifier: number) => void, originWhitelist: readonly string[], onShouldStartLoadWithRequest?: OnShouldStartLoadWithRequest | undefined) => ({ nativeEvent }: ShouldStartLoadRequestEvent) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebViewShared.d.ts","sourceRoot":"","sources":["../src/WebViewShared.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WebViewShared.d.ts","sourceRoot":"","sources":["../src/WebViewShared.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AAGxB,QAAA,MAAM,sBAAsB,UAA4B,CAAC;AAuBzD,QAAA,MAAM,kCAAkC,8BAEvB,OAAO,OACf,MAAM,kBACK,MAAM,KACnB,IAAI,mBACQ,SAAS,MAAM,EAAE,oIAwBnC,CAAC;AAEF,QAAA,MAAM,oBAAoB,mBAIzB,CAAC;AACF,QAAA,MAAM,kBAAkB,gBACT,MAAM,GAAG,SAAS,aACpB,MAAM,aACN,MAAM,gBAQlB,CAAC;AAEF,OAAO,EACL,sBAAsB,EACtB,kCAAkC,EAClC,oBAAoB,EACpB,kBAAkB,GACnB,CAAC"}
|
package/lib/WebViewTypes.d.ts
CHANGED
|
@@ -140,17 +140,6 @@ export interface WebViewSourceHtml {
|
|
|
140
140
|
*/
|
|
141
141
|
baseUrl?: string;
|
|
142
142
|
}
|
|
143
|
-
export interface WebViewCustomMenuItems {
|
|
144
|
-
/**
|
|
145
|
-
* The unique key that will be added as a selector on the webview
|
|
146
|
-
* Returned by the `onCustomMenuSelection` callback
|
|
147
|
-
*/
|
|
148
|
-
key: string;
|
|
149
|
-
/**
|
|
150
|
-
* The label to appear on the UI Menu when selecting text
|
|
151
|
-
*/
|
|
152
|
-
label: string;
|
|
153
|
-
}
|
|
154
143
|
export declare type WebViewSource = WebViewSourceUri | WebViewSourceHtml;
|
|
155
144
|
export interface ViewManager {
|
|
156
145
|
startLoadWithResult: Function;
|
|
@@ -172,16 +161,6 @@ export interface WebViewNativeConfig {
|
|
|
172
161
|
viewManager?: ViewManager;
|
|
173
162
|
}
|
|
174
163
|
export declare type OnShouldStartLoadWithRequest = (event: ShouldStartLoadRequest) => boolean;
|
|
175
|
-
export interface BasicAuthCredential {
|
|
176
|
-
/**
|
|
177
|
-
* A username used for basic authentication.
|
|
178
|
-
*/
|
|
179
|
-
username: string;
|
|
180
|
-
/**
|
|
181
|
-
* A password used for basic authentication.
|
|
182
|
-
*/
|
|
183
|
-
password: string;
|
|
184
|
-
}
|
|
185
164
|
export interface CommonNativeWebViewProps extends ViewProps {
|
|
186
165
|
cacheEnabled?: boolean;
|
|
187
166
|
incognito?: boolean;
|
|
@@ -208,7 +187,6 @@ export interface CommonNativeWebViewProps extends ViewProps {
|
|
|
208
187
|
* Append to the existing user-agent. Overridden if `userAgent` is set.
|
|
209
188
|
*/
|
|
210
189
|
applicationNameForUserAgent?: string;
|
|
211
|
-
basicAuthCredential?: BasicAuthCredential;
|
|
212
190
|
}
|
|
213
191
|
export interface AndroidNativeWebViewProps extends CommonNativeWebViewProps {
|
|
214
192
|
cacheMode?: CacheMode;
|
|
@@ -230,15 +208,9 @@ export interface AndroidNativeWebViewProps extends CommonNativeWebViewProps {
|
|
|
230
208
|
textZoom?: number;
|
|
231
209
|
thirdPartyCookiesEnabled?: boolean;
|
|
232
210
|
messagingModuleName?: string;
|
|
233
|
-
setBuiltInZoomControls?: boolean;
|
|
234
|
-
setDisplayZoomControls?: boolean;
|
|
235
|
-
nestedScrollEnabled?: boolean;
|
|
236
211
|
readonly urlPrefixesForDefaultIntent?: string[];
|
|
237
|
-
forceDarkOn?: boolean;
|
|
238
|
-
minimumFontSize?: number;
|
|
239
212
|
}
|
|
240
213
|
export declare type ContentInsetAdjustmentBehavior = 'automatic' | 'scrollableAxes' | 'never' | 'always';
|
|
241
|
-
export declare type MediaCapturePermissionGrantType = 'grantIfSameHostElsePrompt' | 'grantIfSameHostElseDeny' | 'deny' | 'grant' | 'prompt';
|
|
242
214
|
export declare type ContentMode = 'recommended' | 'mobile' | 'desktop';
|
|
243
215
|
export interface IOSNativeWebViewProps extends CommonNativeWebViewProps {
|
|
244
216
|
allowingReadAccessToURL?: string;
|
|
@@ -265,8 +237,6 @@ export interface IOSNativeWebViewProps extends CommonNativeWebViewProps {
|
|
|
265
237
|
injectedJavaScriptBeforeContentLoadedForMainFrameOnly?: boolean;
|
|
266
238
|
onFileDownload?: (event: FileDownloadEvent) => void;
|
|
267
239
|
limitsNavigationsToAppBoundDomains?: boolean;
|
|
268
|
-
textInteractionEnabled?: boolean;
|
|
269
|
-
mediaCapturePermissionGrantType?: MediaCapturePermissionGrantType;
|
|
270
240
|
}
|
|
271
241
|
export interface MacOSNativeWebViewProps extends CommonNativeWebViewProps {
|
|
272
242
|
allowingReadAccessToURL?: string;
|
|
@@ -289,9 +259,6 @@ export interface MacOSNativeWebViewProps extends CommonNativeWebViewProps {
|
|
|
289
259
|
export interface WindowsNativeWebViewProps extends CommonNativeWebViewProps {
|
|
290
260
|
testID?: string;
|
|
291
261
|
}
|
|
292
|
-
export interface WindowsWebViewProps extends WebViewSharedProps {
|
|
293
|
-
useWebView2?: boolean;
|
|
294
|
-
}
|
|
295
262
|
export interface IOSWebViewProps extends WebViewSharedProps {
|
|
296
263
|
/**
|
|
297
264
|
* Does not store any data within the lifetime of the WebView.
|
|
@@ -434,12 +401,6 @@ export interface IOSWebViewProps extends WebViewSharedProps {
|
|
|
434
401
|
* @platform ios
|
|
435
402
|
*/
|
|
436
403
|
sharedCookiesEnabled?: boolean;
|
|
437
|
-
/**
|
|
438
|
-
* When set to true the hardware silent switch is ignored.
|
|
439
|
-
* The default value is `false`.
|
|
440
|
-
* @platform ios
|
|
441
|
-
*/
|
|
442
|
-
ignoreSilentHardwareSwitch?: boolean;
|
|
443
404
|
/**
|
|
444
405
|
* Set true if StatusBar should be light when user watch video fullscreen.
|
|
445
406
|
* The default value is `true`.
|
|
@@ -540,20 +501,6 @@ export interface IOSWebViewProps extends WebViewSharedProps {
|
|
|
540
501
|
* @platform ios
|
|
541
502
|
*/
|
|
542
503
|
limitsNavigationsToAppBoundDomains?: boolean;
|
|
543
|
-
/**
|
|
544
|
-
* If false indicates to WebKit that a WKWebView will not interact with text, thus
|
|
545
|
-
* not showing a text selection loop. Only applicable for iOS 14.5 or greater.
|
|
546
|
-
*
|
|
547
|
-
* Defaults to true.
|
|
548
|
-
* @platform ios
|
|
549
|
-
*/
|
|
550
|
-
textInteractionEnabled?: boolean;
|
|
551
|
-
/**
|
|
552
|
-
* This property specifies how to handle media capture permission requests.
|
|
553
|
-
* Defaults to `prompt`, resulting in the user being prompted repeatedly.
|
|
554
|
-
* Available on iOS 15 and later.
|
|
555
|
-
*/
|
|
556
|
-
mediaCapturePermissionGrantType?: MediaCapturePermissionGrantType;
|
|
557
504
|
/**
|
|
558
505
|
* A Boolean value which, when set to `true`, WebView will be rendered with Apple Pay support.
|
|
559
506
|
* Once set, websites will be able to invoke apple pay from React Native Webview.
|
|
@@ -568,18 +515,6 @@ export interface IOSWebViewProps extends WebViewSharedProps {
|
|
|
568
515
|
* The default value is false.
|
|
569
516
|
*/
|
|
570
517
|
enableApplePay?: boolean;
|
|
571
|
-
/**
|
|
572
|
-
* An array of objects which will be added to the UIMenu controller when selecting text.
|
|
573
|
-
* These will appear after a long press to select text.
|
|
574
|
-
*/
|
|
575
|
-
menuItems?: WebViewCustomMenuItems[];
|
|
576
|
-
/**
|
|
577
|
-
* The function fired when selecting a custom menu item created by `menuItems`.
|
|
578
|
-
* It passes a WebViewEvent with a `nativeEvent`, where custom keys are passed:
|
|
579
|
-
* `customMenuKey`: the string of the menu item
|
|
580
|
-
* `selectedText`: the text selected on the document
|
|
581
|
-
*/
|
|
582
|
-
onCustomMenuSelection?: (event: WebViewEvent) => void;
|
|
583
518
|
}
|
|
584
519
|
export interface MacOSWebViewProps extends WebViewSharedProps {
|
|
585
520
|
/**
|
|
@@ -852,48 +787,6 @@ export interface AndroidWebViewProps extends WebViewSharedProps {
|
|
|
852
787
|
* Sets ability to open fullscreen videos on Android devices.
|
|
853
788
|
*/
|
|
854
789
|
allowsFullscreenVideo?: boolean;
|
|
855
|
-
/**
|
|
856
|
-
* Configuring Dark Theme
|
|
857
|
-
*
|
|
858
|
-
* *NOTE* : The force dark setting is not persistent. You must call the static method every time your app process is started.
|
|
859
|
-
*
|
|
860
|
-
* *NOTE* : The change from day<->night mode is a configuration change so by default the activity will be restarted
|
|
861
|
-
* and pickup the new values to apply the theme.
|
|
862
|
-
* Take care when overriding this default behavior to ensure this method is still called when changes are made.
|
|
863
|
-
*
|
|
864
|
-
* @platform android
|
|
865
|
-
*/
|
|
866
|
-
forceDarkOn?: boolean;
|
|
867
|
-
/**
|
|
868
|
-
* Boolean value to control whether pinch zoom is enabled. Used only in Android.
|
|
869
|
-
* Default to true
|
|
870
|
-
*
|
|
871
|
-
* @platform android
|
|
872
|
-
*/
|
|
873
|
-
setBuiltInZoomControls?: boolean;
|
|
874
|
-
/**
|
|
875
|
-
* Boolean value to control whether built-in zooms controls are displayed. Used only in Android.
|
|
876
|
-
* Default to false
|
|
877
|
-
* Controls will always be hidden if setBuiltInZoomControls is set to `false`
|
|
878
|
-
*
|
|
879
|
-
* @platform android
|
|
880
|
-
*/
|
|
881
|
-
setDisplayZoomControls?: boolean;
|
|
882
|
-
/**
|
|
883
|
-
* Allows to scroll inside the webview when used inside a scrollview.
|
|
884
|
-
* Behaviour already existing on iOS.
|
|
885
|
-
* Default to false
|
|
886
|
-
*
|
|
887
|
-
* @platform android
|
|
888
|
-
*/
|
|
889
|
-
nestedScrollEnabled?: boolean;
|
|
890
|
-
/**
|
|
891
|
-
* Sets the minimum font size.
|
|
892
|
-
* A non-negative integer between 1 and 72. Any number outside the specified range will be pinned.
|
|
893
|
-
* Default is 8.
|
|
894
|
-
* @platform android
|
|
895
|
-
*/
|
|
896
|
-
minimumFontSize?: number;
|
|
897
790
|
}
|
|
898
791
|
export interface WebViewSharedProps extends ViewProps {
|
|
899
792
|
/**
|
|
@@ -953,10 +846,10 @@ export interface WebViewSharedProps extends ViewProps {
|
|
|
953
846
|
*/
|
|
954
847
|
onNavigationStateChange?: (event: WebViewNavigation) => void;
|
|
955
848
|
/**
|
|
956
|
-
* Function that is invoked when the webview calls `window.
|
|
849
|
+
* Function that is invoked when the webview calls `window.BootpayRNWebView.postMessage`.
|
|
957
850
|
* Setting this property will inject this global into your webview.
|
|
958
851
|
*
|
|
959
|
-
* `window.
|
|
852
|
+
* `window.BootpayRNWebView.postMessage` accepts one argument, `data`, which will be
|
|
960
853
|
* available on the event object, `event.nativeEvent.data`. `data` must be a string.
|
|
961
854
|
*/
|
|
962
855
|
onMessage?: (event: WebViewMessageEvent) => void;
|
|
@@ -1031,10 +924,6 @@ export interface WebViewSharedProps extends ViewProps {
|
|
|
1031
924
|
* Append to the existing user-agent. Overridden if `userAgent` is set.
|
|
1032
925
|
*/
|
|
1033
926
|
applicationNameForUserAgent?: string;
|
|
1034
|
-
/**
|
|
1035
|
-
* An object that specifies the credentials of a user to be used for basic authentication.
|
|
1036
|
-
*/
|
|
1037
|
-
basicAuthCredential?: BasicAuthCredential;
|
|
1038
927
|
}
|
|
1039
928
|
export {};
|
|
1040
929
|
//# sourceMappingURL=WebViewTypes.d.ts.map
|