@exodus/react-native-webview 13.16.0-exodus.3 → 13.16.0-exodus.5
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/android/src/main/java/com/reactnativecommunity/webview/RNCWebChromeClient.java +15 -18
- package/android/src/main/java/com/reactnativecommunity/webview/RNCWebView.java +0 -7
- package/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewClient.java +0 -21
- package/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManagerImpl.kt +5 -50
- package/android/src/newarch/com/reactnativecommunity/webview/RNCWebViewManager.java +0 -58
- package/android/src/oldarch/com/reactnativecommunity/webview/RNCWebViewManager.java +0 -40
- package/apple/RNCWebView.mm +0 -39
- package/apple/RNCWebViewDecisionManager.m +17 -0
- package/apple/RNCWebViewImpl.h +0 -10
- package/apple/RNCWebViewImpl.m +24 -72
- package/apple/RNCWebViewManager.mm +0 -11
- package/lib/RNCWebViewNativeComponent.d.ts +0 -26
- package/lib/RNCWebViewNativeComponent.js +1 -1
- package/lib/WebView.android.js +1 -1
- package/lib/WebView.d.ts +2 -2
- package/lib/WebView.ios.js +1 -1
- package/lib/WebView.js +1 -1
- package/lib/WebViewShared.d.ts +5 -5
- package/lib/WebViewShared.js +1 -1
- package/lib/WebViewTypes.d.ts +5 -358
- package/lib/WebViewTypes.js +1 -1
- package/package.json +6 -12
- package/react-native-webview.podspec +1 -1
- package/src/RNCWebViewNativeComponent.ts +0 -37
- package/src/WebView.android.tsx +293 -284
- package/src/WebView.ios.tsx +223 -256
- package/src/WebView.tsx +2 -8
- package/src/WebViewShared.tsx +2 -11
- package/src/WebViewTypes.ts +2 -396
- package/android/src/main/java/com/reactnativecommunity/webview/events/TopHttpErrorEvent.kt +0 -25
- package/lib/WebView.macos.d.ts +0 -6
- package/lib/WebView.macos.js +0 -1
- package/lib/WebView.windows.d.ts +0 -17
- package/lib/WebView.windows.js +0 -1
- package/lib/WebViewNativeComponent.windows.d.ts +0 -3
- package/lib/WebViewNativeComponent.windows.js +0 -1
- package/src/WebView.macos.tsx +0 -252
- package/src/WebView.windows.tsx +0 -217
- package/src/WebViewNativeComponent.macos.ts +0 -7
- package/src/WebViewNativeComponent.windows.ts +0 -8
- package/src/__tests__/WebViewShared-test.js +0 -323
- package/src/__tests__/__snapshots__/WebViewShared-test.js.snap +0 -8
- package/src/__tests__/validation-test.js +0 -38
|
@@ -33,17 +33,6 @@ export type WebViewMessageEvent = Readonly<{
|
|
|
33
33
|
export type WebViewOpenWindowEvent = Readonly<{
|
|
34
34
|
targetUrl: string;
|
|
35
35
|
}>;
|
|
36
|
-
export type WebViewHttpErrorEvent = Readonly<{
|
|
37
|
-
url: string;
|
|
38
|
-
loading: boolean;
|
|
39
|
-
title: string;
|
|
40
|
-
canGoBack: boolean;
|
|
41
|
-
canGoForward: boolean;
|
|
42
|
-
lockIdentifier: Double;
|
|
43
|
-
description: string;
|
|
44
|
-
statusCode: Int32;
|
|
45
|
-
}>;
|
|
46
|
-
|
|
47
36
|
export type WebViewErrorEvent = Readonly<{
|
|
48
37
|
url: string;
|
|
49
38
|
loading: boolean;
|
|
@@ -136,15 +125,10 @@ type WebViewRenderProcessGoneEvent = Readonly<{
|
|
|
136
125
|
didCrash: boolean;
|
|
137
126
|
}>;
|
|
138
127
|
|
|
139
|
-
type WebViewDownloadEvent = Readonly<{
|
|
140
|
-
downloadUrl: string;
|
|
141
|
-
}>;
|
|
142
|
-
|
|
143
128
|
// type MenuItem = Readonly<{label: string, key: string}>;
|
|
144
129
|
|
|
145
130
|
export interface NativeProps extends ViewProps {
|
|
146
131
|
// Android only
|
|
147
|
-
allowFileAccess?: boolean;
|
|
148
132
|
allowsProtectedMedia?: boolean;
|
|
149
133
|
allowsFullscreenVideo?: boolean;
|
|
150
134
|
androidLayerType?: WithDefault<'none' | 'software' | 'hardware', 'none'>;
|
|
@@ -179,11 +163,9 @@ export interface NativeProps extends ViewProps {
|
|
|
179
163
|
// !Android only
|
|
180
164
|
|
|
181
165
|
// iOS only
|
|
182
|
-
allowingReadAccessToURL?: string;
|
|
183
166
|
allowsBackForwardNavigationGestures?: boolean;
|
|
184
167
|
allowsInlineMediaPlayback?: boolean;
|
|
185
168
|
allowsPictureInPictureMediaPlayback?: boolean;
|
|
186
|
-
allowsAirPlayForMediaPlayback?: boolean;
|
|
187
169
|
allowsLinkPreview?: WithDefault<boolean, true>;
|
|
188
170
|
automaticallyAdjustContentInsets?: WithDefault<boolean, true>;
|
|
189
171
|
autoManageStatusBarEnabled?: WithDefault<boolean, true>;
|
|
@@ -239,18 +221,11 @@ export interface NativeProps extends ViewProps {
|
|
|
239
221
|
useSharedProcessPool?: WithDefault<boolean, true>;
|
|
240
222
|
onContentProcessDidTerminate?: DirectEventHandler<WebViewNativeEvent>;
|
|
241
223
|
onCustomMenuSelection?: DirectEventHandler<WebViewCustomMenuSelectionEvent>;
|
|
242
|
-
onFileDownload?: DirectEventHandler<WebViewDownloadEvent>;
|
|
243
|
-
|
|
244
224
|
menuItems?: ReadonlyArray<Readonly<{ label: string; key: string }>>;
|
|
245
225
|
suppressMenuItems?: Readonly<string>[];
|
|
246
|
-
// Workaround to watch if listener if defined
|
|
247
|
-
hasOnFileDownload?: boolean;
|
|
248
226
|
fraudulentWebsiteWarningEnabled?: WithDefault<boolean, true>;
|
|
249
227
|
// !iOS only
|
|
250
228
|
|
|
251
|
-
allowFileAccessFromFileURLs?: boolean;
|
|
252
|
-
allowUniversalAccessFromFileURLs?: boolean;
|
|
253
|
-
applicationNameForUserAgent?: string;
|
|
254
229
|
basicAuthCredential?: Readonly<{
|
|
255
230
|
username: string;
|
|
256
231
|
password: string;
|
|
@@ -259,12 +234,6 @@ export interface NativeProps extends ViewProps {
|
|
|
259
234
|
incognito?: boolean;
|
|
260
235
|
injectedJavaScript?: string;
|
|
261
236
|
injectedJavaScriptBeforeContentLoaded?: string;
|
|
262
|
-
injectedJavaScriptForMainFrameOnly?: WithDefault<boolean, true>;
|
|
263
|
-
injectedJavaScriptBeforeContentLoadedForMainFrameOnly?: WithDefault<
|
|
264
|
-
boolean,
|
|
265
|
-
true
|
|
266
|
-
>;
|
|
267
|
-
javaScriptCanOpenWindowsAutomatically?: boolean;
|
|
268
237
|
javaScriptEnabled?: WithDefault<boolean, true>;
|
|
269
238
|
webviewDebuggingEnabled?: boolean;
|
|
270
239
|
mediaPlaybackRequiresUserAction?: WithDefault<boolean, true>;
|
|
@@ -274,7 +243,6 @@ export interface NativeProps extends ViewProps {
|
|
|
274
243
|
onLoadingFinish: DirectEventHandler<WebViewNavigationEvent>;
|
|
275
244
|
onLoadingProgress: DirectEventHandler<WebViewNativeProgressEvent>;
|
|
276
245
|
onLoadingStart: DirectEventHandler<WebViewNavigationEvent>;
|
|
277
|
-
onHttpError: DirectEventHandler<WebViewHttpErrorEvent>;
|
|
278
246
|
onMessage: DirectEventHandler<WebViewMessageEvent>;
|
|
279
247
|
onOpenWindow?: DirectEventHandler<WebViewOpenWindowEvent>;
|
|
280
248
|
hasOnOpenWindowEvent?: boolean;
|
|
@@ -302,10 +270,6 @@ export interface NativeCommands {
|
|
|
302
270
|
goForward: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
|
|
303
271
|
reload: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
|
|
304
272
|
stopLoading: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
|
|
305
|
-
injectJavaScript: (
|
|
306
|
-
viewRef: React.ElementRef<HostComponent<NativeProps>>,
|
|
307
|
-
javascript: string
|
|
308
|
-
) => void;
|
|
309
273
|
requestFocus: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
|
|
310
274
|
postMessage: (
|
|
311
275
|
viewRef: React.ElementRef<HostComponent<NativeProps>>,
|
|
@@ -333,7 +297,6 @@ export const Commands = codegenNativeCommands<NativeCommands>({
|
|
|
333
297
|
'goForward',
|
|
334
298
|
'reload',
|
|
335
299
|
'stopLoading',
|
|
336
|
-
'injectJavaScript',
|
|
337
300
|
'requestFocus',
|
|
338
301
|
'postMessage',
|
|
339
302
|
'loadUrl',
|