react-native-minimal-webview 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/expo/modules/minimalwebview/Hooks.kt +19 -32
- package/android/src/main/java/expo/modules/minimalwebview/MinimalWebView.kt +55 -26
- package/android/src/main/java/expo/modules/minimalwebview/MinimalWebViewClients.kt +3 -3
- package/android/src/main/java/expo/modules/minimalwebview/MinimalWebViewModule.kt +2 -1
- package/android/src/main/java/expo/modules/minimalwebview/MinimalWebViewNavigation.kt +8 -8
- package/android/src/main/java/expo/modules/minimalwebview/MinimalWebViewScripts.kt +5 -7
- package/android/src/main/java/expo/modules/minimalwebview/PlatformSettings.kt +32 -44
- package/android/src/main/java/expo/modules/minimalwebview/PullToRefresh.kt +2 -2
- package/android/src/main/java/expo/modules/minimalwebview/requests/Downloads.kt +7 -8
- package/android/src/main/java/expo/modules/minimalwebview/requests/FullscreenVideo.kt +2 -2
- package/android/src/main/java/expo/modules/minimalwebview/requests/Permissions.kt +4 -5
- package/build/WebView.d.ts +1 -9
- package/build/WebView.d.ts.map +1 -1
- package/build/WebView.js +37 -107
- package/build/WebView.js.map +1 -1
- package/build/bridge/createBridge.d.ts +19 -13
- package/build/bridge/createBridge.d.ts.map +1 -1
- package/build/bridge/createBridge.js +33 -45
- package/build/bridge/createBridge.js.map +1 -1
- package/build/bridge/endpoint.d.ts +3 -8
- package/build/bridge/endpoint.d.ts.map +1 -1
- package/build/bridge/endpoint.js +2 -3
- package/build/bridge/endpoint.js.map +1 -1
- package/build/bridge/origins.d.ts +5 -2
- package/build/bridge/origins.d.ts.map +1 -1
- package/build/bridge/origins.js +15 -4
- package/build/bridge/origins.js.map +1 -1
- package/build/bridge/pageClient.generated.d.ts +1 -1
- package/build/bridge/pageClient.generated.d.ts.map +1 -1
- package/build/bridge/pageClient.generated.js +1 -1
- package/build/bridge/pageClient.generated.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/{defaultNavigationRules.d.ts → navigationRules.d.ts} +10 -1
- package/build/navigationRules.d.ts.map +1 -0
- package/build/navigationRules.js +93 -0
- package/build/navigationRules.js.map +1 -0
- package/build/refStore.d.ts.map +1 -1
- package/build/refStore.js +13 -19
- package/build/refStore.js.map +1 -1
- package/build/types.d.ts +55 -35
- package/build/types.d.ts.map +1 -1
- package/ios/DelegateProxy.swift +32 -30
- package/ios/DocumentEnd.swift +1 -2
- package/ios/Hooks.swift +28 -28
- package/ios/Loads.swift +5 -4
- package/ios/MRWInvoke.h +10 -9
- package/ios/MRWInvoke.m +39 -24
- package/ios/MinimalWebView+Navigation.swift +18 -16
- package/ios/MinimalWebView+Scripts.swift +0 -8
- package/ios/MinimalWebView.podspec +0 -1
- package/ios/MinimalWebView.swift +77 -35
- package/ios/MinimalWebViewModule.swift +1 -0
- package/ios/NavigationRules.swift +15 -15
- package/ios/OriginRules.swift +6 -0
- package/ios/PlatformSettings.swift +3 -22
- package/ios/Recovery.swift +6 -5
- package/ios/SharedCookies.swift +1 -2
- package/package.json +7 -3
- package/src/WebView.tsx +50 -123
- package/src/bridge/createBridge.ts +48 -56
- package/src/bridge/endpoint.ts +6 -9
- package/src/bridge/origins.ts +18 -6
- package/src/bridge/pageClient.generated.ts +1 -1
- package/src/bridge/pageClient.ts +3 -7
- package/src/bridge/protocol.ts +1 -1
- package/src/index.ts +1 -1
- package/src/navigationRules.ts +111 -0
- package/src/refStore.ts +15 -21
- package/src/types.ts +56 -35
- package/build/defaultNavigationRules.d.ts.map +0 -1
- package/build/defaultNavigationRules.js +0 -22
- package/build/defaultNavigationRules.js.map +0 -1
- package/ios/MRWExceptions.h +0 -9
- package/ios/MRWExceptions.m +0 -10
- package/src/defaultNavigationRules.ts +0 -24
package/build/types.d.ts
CHANGED
|
@@ -27,8 +27,6 @@ export type WebViewSource = {
|
|
|
27
27
|
*
|
|
28
28
|
* Its `Content-Type` is `application/x-www-form-urlencoded` unless iOS `headers` set one; Android ignores
|
|
29
29
|
* `headers` for a POST.
|
|
30
|
-
*
|
|
31
|
-
* `reload()` sends the POST again; {@link ProcessGoneEvent.recovered | crash recovery} doesn't.
|
|
32
30
|
*/
|
|
33
31
|
body?: string;
|
|
34
32
|
/**
|
|
@@ -197,7 +195,8 @@ export type NavigationState = {
|
|
|
197
195
|
* - `failed`: a network or SSL error, or a renderer crash, cut it off.
|
|
198
196
|
* - `cancelled`: it never showed a page (a stop before the response, a download, a 204, a redirect the rules blocked,
|
|
199
197
|
* a load a newer one replaced); a stop after the page arrived is `cancelled` on iOS but `finished` on Android, and
|
|
200
|
-
* a 204 is `finished` on iOS 17.
|
|
198
|
+
* a 204 is `finished` on iOS 17. On iOS a load replaced before it commits doesn't end: `loading` stays true and
|
|
199
|
+
* the newer load's outcome ends both.
|
|
201
200
|
*
|
|
202
201
|
* On Android with an Android System WebView older than 146, a load that never commits changes nothing here.
|
|
203
202
|
*/
|
|
@@ -233,20 +232,21 @@ export type ProcessGoneEvent = {
|
|
|
233
232
|
*/
|
|
234
233
|
cause: 'crash' | 'memory' | 'unknown';
|
|
235
234
|
/**
|
|
236
|
-
* Whether the core reloads the page after the crash.
|
|
235
|
+
* Whether the core reloads the page after the crash. The reload waits until the view is in a visible window and
|
|
236
|
+
* the app is not in the background; a `load()`, `reload()` or new `source` meanwhile loads instead.
|
|
237
237
|
*
|
|
238
238
|
* - iOS: in place.
|
|
239
|
-
* - Android: in a new WebView
|
|
240
|
-
*
|
|
239
|
+
* - Android: in a new WebView. The history is restored unless the `source` page was on screen. The props are
|
|
240
|
+
* applied again, but not what `call` set.
|
|
241
241
|
*
|
|
242
242
|
* It is false when:
|
|
243
243
|
*
|
|
244
244
|
* - a POST `source` is on screen: as in a browser, it isn't sent again unasked;
|
|
245
245
|
* - more than 3 crashes happened in 60 s (counted for the whole app on Android), until the next
|
|
246
|
-
* {@link WebViewRef.reload | reload()} (on iOS also a `source` change).
|
|
246
|
+
* {@link WebViewRef.reload | reload()} or {@link WebViewRef.load | load()} (on iOS also a `source` change).
|
|
247
247
|
*
|
|
248
|
-
* While false the view is blank. Leave `reload()` to the user, as a retry button: called from
|
|
249
|
-
* sends the POST again,
|
|
248
|
+
* While false the view is blank. Leave `reload()` and `load()` to the user, as a retry button: called from
|
|
249
|
+
* `onProcessGone`, `reload()` sends the POST again, and either starts the crash loop over.
|
|
250
250
|
* @see [Loading and error screens example](https://rasmuskard.github.io/react-native-minimal-webview/guides/examples/#loading-and-error-screens)
|
|
251
251
|
*/
|
|
252
252
|
recovered: boolean;
|
|
@@ -308,8 +308,6 @@ export type BridgeHandler<Params = unknown, Result = unknown> = (params: Params,
|
|
|
308
308
|
* - `params` or a payload is required where its type doesn't allow `undefined`.
|
|
309
309
|
* - A method's `params` and `result` are left out when it has none.
|
|
310
310
|
* - Every key is required: `{}` for a side that handles nothing.
|
|
311
|
-
* - The method and event maps are `type`s or written inline, not `interfaces`: an interface has no index signature, so
|
|
312
|
-
* it doesn't satisfy `Record`.
|
|
313
311
|
*
|
|
314
312
|
* Params, results and payloads cross as JSON: a `Date` arrives as its ISO string, a `Map` or `Set` as `{}`, `NaN`
|
|
315
313
|
* as `null`, and `undefined` properties and functions are left out. A handler's result that JSON can't encode (a
|
|
@@ -331,6 +329,15 @@ export type BridgeSchema = {
|
|
|
331
329
|
/** The events, by name and payload, that either side emits and the other listens to. */
|
|
332
330
|
events: Record<string, unknown>;
|
|
333
331
|
};
|
|
332
|
+
/**
|
|
333
|
+
* The constraint on a schema type `S`: a {@link BridgeSchema} keyed by `S`'s own names, so an `interface` satisfies it.
|
|
334
|
+
* @group Bridge
|
|
335
|
+
*/
|
|
336
|
+
export type SchemaOf<S> = {
|
|
337
|
+
[Side in keyof BridgeSchema]: {
|
|
338
|
+
[K in keyof S[Side & keyof S]]: BridgeSchema[Side][string];
|
|
339
|
+
};
|
|
340
|
+
};
|
|
334
341
|
type ParamsOf<Method> = 'params' extends keyof Method ? Method['params' & keyof Method] : undefined;
|
|
335
342
|
type ResultOf<Method> = 'result' extends keyof Method ? Method['result' & keyof Method] : unknown;
|
|
336
343
|
type CallArgs<Method> = undefined extends ParamsOf<Method> ? [params?: ParamsOf<Method>, options?: {
|
|
@@ -354,13 +361,13 @@ type PayloadArg<Payload> = undefined extends Payload ? [payload?: Payload] : [pa
|
|
|
354
361
|
* latest 1000 are kept: an older call rejects with `unavailable`.
|
|
355
362
|
*
|
|
356
363
|
* The page's own calls don't wait: one made before React Native has registered its method rejects with `not_found`.
|
|
357
|
-
* Unmounting rejects the calls
|
|
364
|
+
* Unmounting rejects the calls the page got with `navigated`, and the queued ones with `unavailable`.
|
|
358
365
|
*
|
|
359
366
|
* The page's `window.nativeBridge` has the same four methods, from its side: {@link PageBridge}.
|
|
360
367
|
* @see [Bridge example](https://rasmuskard.github.io/react-native-minimal-webview/guides/examples/#the-bridge)
|
|
361
368
|
* @group Bridge
|
|
362
369
|
*/
|
|
363
|
-
export type Bridge<Schema extends
|
|
370
|
+
export type Bridge<Schema extends SchemaOf<Schema> = BridgeSchema> = {
|
|
364
371
|
/**
|
|
365
372
|
* Answers `nativeBridge.call(method, params)` from the page, for a method of the schema's `reactNative`.
|
|
366
373
|
*
|
|
@@ -402,7 +409,7 @@ export type Bridge<Schema extends BridgeSchema = BridgeSchema> = {
|
|
|
402
409
|
* @see [In the page example](https://rasmuskard.github.io/react-native-minimal-webview/guides/examples/#in-the-page)
|
|
403
410
|
* @group Bridge
|
|
404
411
|
*/
|
|
405
|
-
export type PageBridge<Schema extends
|
|
412
|
+
export type PageBridge<Schema extends SchemaOf<Schema> = BridgeSchema> = {
|
|
406
413
|
/**
|
|
407
414
|
* Answers `bridge.call(method, params)` from React Native, for a method of the schema's `page`.
|
|
408
415
|
*
|
|
@@ -456,7 +463,6 @@ export type BridgeOptions = {
|
|
|
456
463
|
export type FileRequest = {
|
|
457
464
|
/** Its `accept` list, lowercased and without invalid entries: MIME types and extensions (`.pdf`). */
|
|
458
465
|
accept: string[];
|
|
459
|
-
/** Its `multiple` attribute. */
|
|
460
466
|
multiple: boolean;
|
|
461
467
|
/** Its `capture` attribute: the page wants the camera. */
|
|
462
468
|
capture: boolean;
|
|
@@ -493,7 +499,8 @@ export type Download = {
|
|
|
493
499
|
uri: string;
|
|
494
500
|
/**
|
|
495
501
|
* A plain file name without a path. The page chose it, like the content and `mimeType`, so don't open the file as
|
|
496
|
-
* trusted.
|
|
502
|
+
* trusted. On Android a `data:` or `blob:` link's name is guessed instead: WebView doesn't pass its `download`
|
|
503
|
+
* attribute.
|
|
497
504
|
*/
|
|
498
505
|
filename: string;
|
|
499
506
|
mimeType: string;
|
|
@@ -511,7 +518,6 @@ export type Download = {
|
|
|
511
518
|
* @group Page requests
|
|
512
519
|
*/
|
|
513
520
|
export type DownloadFailure = {
|
|
514
|
-
/** Tells it from a {@link Download}. */
|
|
515
521
|
ok: false;
|
|
516
522
|
kind: 'network' | 'data';
|
|
517
523
|
/** Empty on iOS when the download failed before its response came. */
|
|
@@ -674,13 +680,11 @@ export type AndroidSettings = {
|
|
|
674
680
|
/**
|
|
675
681
|
* An event a native hook sent with `emit` or `ask`.
|
|
676
682
|
* @typeParam N - The event's name, to type one hook's events.
|
|
677
|
-
* @typeParam P - Its payload.
|
|
678
683
|
* @group Native hooks
|
|
679
684
|
*/
|
|
680
685
|
export type HookEvent<N extends string = string, P = Record<string, unknown>> = {
|
|
681
686
|
/** The name the hook sent it with, such as `pageLoaded`. */
|
|
682
687
|
name: N;
|
|
683
|
-
/** What the hook sent with it. */
|
|
684
688
|
payload: P;
|
|
685
689
|
};
|
|
686
690
|
/**
|
|
@@ -820,7 +824,9 @@ export interface WebViewProps extends Omit<ViewProps, 'children'> {
|
|
|
820
824
|
* it, those keys apply; unset, they are the platform's own user agent.
|
|
821
825
|
*
|
|
822
826
|
* To append to the default one instead, set `ios.configuration.applicationNameForUserAgent` and, on Android,
|
|
823
|
-
* `android.settings.userAgentString` to `AndroidWebView.defaultUserAgent` plus your suffix.
|
|
827
|
+
* `android.settings.userAgentString` to `AndroidWebView.defaultUserAgent` plus your suffix. A change to
|
|
828
|
+
* {@link IOSSettings.configuration | ios.configuration} recreates the WebView: for a suffix that changes, read
|
|
829
|
+
* `navigator.userAgent` once with {@link WebViewRef.evaluate | evaluate()} and set `userAgent` to it plus the suffix.
|
|
824
830
|
*
|
|
825
831
|
* A change applies from the next navigation.
|
|
826
832
|
*/
|
|
@@ -843,8 +849,8 @@ export interface WebViewProps extends Omit<ViewProps, 'children'> {
|
|
|
843
849
|
*
|
|
844
850
|
* These skip the rules:
|
|
845
851
|
*
|
|
846
|
-
* - the `source` load, reloads and back/forward; a redirect of the `source` load
|
|
847
|
-
* does a redirect of a reload or back/forward;
|
|
852
|
+
* - the `source` load, {@link WebViewRef.load | load}, reloads and back/forward; a redirect of the `source` load or
|
|
853
|
+
* a `load` goes to the rules, and on Android so does a redirect of a reload or back/forward;
|
|
848
854
|
* - a form POST, on either platform, an iframe's to the main frame (`target=_top`) included: it loads in place; one
|
|
849
855
|
* to a new window loads in place on iOS and isn't shown on Android (the request may still reach the server);
|
|
850
856
|
* - `about:`, `data:` and `javascript:`, which load in place, except as a new window
|
|
@@ -915,7 +921,7 @@ export interface WebViewProps extends Omit<ViewProps, 'children'> {
|
|
|
915
921
|
* Pull down at the top of the page to reload: `UIRefreshControl` on iOS, `SwipeRefreshLayout` on Android, where a
|
|
916
922
|
* pull inside a scrolled inner scroller (`overflow: auto` or `scroll`) scrolls it instead.
|
|
917
923
|
*
|
|
918
|
-
* It reloads as {@link WebViewRef.reload | reload()} does,
|
|
924
|
+
* It reloads as {@link WebViewRef.reload | reload()} does, but leaves the
|
|
919
925
|
* {@link ProcessGoneEvent.recovered | crash recovery} limit in place. A change applies at once.
|
|
920
926
|
* @default `false`
|
|
921
927
|
*/
|
|
@@ -923,7 +929,8 @@ export interface WebViewProps extends Omit<ViewProps, 'children'> {
|
|
|
923
929
|
/**
|
|
924
930
|
* Syncs cookies between `HTTPCookieStorage`, which holds the cookies of native requests, and the WebView:
|
|
925
931
|
*
|
|
926
|
-
* - `HTTPCookieStorage` into the WebView before each `source` load, which
|
|
932
|
+
* - `HTTPCookieStorage` into the WebView before each `source` load and {@link WebViewRef.load | load}, which wait
|
|
933
|
+
* for it;
|
|
927
934
|
* - the WebView into `HTTPCookieStorage` on every cookie change, deletions included, as it happens.
|
|
928
935
|
*
|
|
929
936
|
* Android needs nothing: `CookieManager` is shared app-wide, and flushed when the app goes to the background. A
|
|
@@ -998,7 +1005,8 @@ export interface WebViewProps extends Omit<ViewProps, 'children'> {
|
|
|
998
1005
|
/**
|
|
999
1006
|
* Every navigation the rules, or their defaults, decided.
|
|
1000
1007
|
*
|
|
1001
|
-
* Not reported: the `source` load, reloads, back/forward, a form POST, and a
|
|
1008
|
+
* Not reported: the `source` load, {@link WebViewRef.load | load}, reloads, back/forward, a form POST, and a
|
|
1009
|
+
* navigation a native hook decides.
|
|
1002
1010
|
* @see [Navigation rules example](https://rasmuskard.github.io/react-native-minimal-webview/guides/examples/#navigation-rules)
|
|
1003
1011
|
*/
|
|
1004
1012
|
onNavigation?: (event: NavigationEvent) => void;
|
|
@@ -1025,12 +1033,7 @@ export interface WebViewProps extends Omit<ViewProps, 'children'> {
|
|
|
1025
1033
|
* Android's WebViews share one renderer, so each of them reports its death.
|
|
1026
1034
|
*/
|
|
1027
1035
|
onProcessGone?: (event: ProcessGoneEvent) => void;
|
|
1028
|
-
/**
|
|
1029
|
-
* `loading` went true.
|
|
1030
|
-
*
|
|
1031
|
-
* On Android with an Android System WebView older than 146, that is when the page commits (its response arrives),
|
|
1032
|
-
* not when the load starts, and a load that never commits fires neither this nor `onLoadEnd`.
|
|
1033
|
-
*/
|
|
1036
|
+
/** {@link NavigationState.loading | loading} went true. */
|
|
1034
1037
|
onLoadStart?: (state: NavigationState) => void;
|
|
1035
1038
|
/** `loading` went false: `state.outcome` says how the load ended. */
|
|
1036
1039
|
onLoadEnd?: (state: NavigationState) => void;
|
|
@@ -1049,9 +1052,10 @@ export interface WebViewProps extends Omit<ViewProps, 'children'> {
|
|
|
1049
1052
|
* return a promise:
|
|
1050
1053
|
*
|
|
1051
1054
|
* - After an unmount: the navigation methods do nothing and the four promise methods reject with `unavailable`.
|
|
1052
|
-
* - Pending when the WebView unmounts: the four reject with `navigated
|
|
1053
|
-
* - Just mounted: the four wait up to about a second for the view (on Android, a call from the parent's
|
|
1054
|
-
* can come before the view exists), then reject with `unavailable
|
|
1055
|
+
* - Pending when the WebView unmounts: the four reject with `navigated`, and a waiting `load` does nothing.
|
|
1056
|
+
* - Just mounted: the four and `load` wait up to about a second for the view (on Android, a call from the parent's
|
|
1057
|
+
* first effect can come before the view exists), then the four reject with `unavailable` and `load` does nothing. In
|
|
1058
|
+
* the background they don't wait.
|
|
1055
1059
|
* @sortStrategy source-order
|
|
1056
1060
|
* @group WebView
|
|
1057
1061
|
*/
|
|
@@ -1065,6 +1069,22 @@ export type WebViewRef = {
|
|
|
1065
1069
|
goBack(): void;
|
|
1066
1070
|
/** Goes forward one page; does nothing unless `canGoForward`. */
|
|
1067
1071
|
goForward(): void;
|
|
1072
|
+
/**
|
|
1073
|
+
* Loads `url` in place, as a navigation the app started, in a new history entry; the page on screen loads again in
|
|
1074
|
+
* its own. It leaves `source` as it is: a re-render with the same `source` still loads nothing. Together with a
|
|
1075
|
+
* `source` change, which of the two ends on screen depends on the platform and on timing: do one or the other.
|
|
1076
|
+
*
|
|
1077
|
+
* It starts the {@link ProcessGoneEvent.recovered | crash recovery} limit over. A `javascript:` URL loads nothing
|
|
1078
|
+
* (in development, with a warning): run a script with {@link WebViewRef.evaluate | evaluate}. Any other URL goes to
|
|
1079
|
+
* the platform, and one it can't load, such as an unknown scheme, ends with `outcome` `failed`; on iOS a string that
|
|
1080
|
+
* isn't a URL loads nothing, with a warning.
|
|
1081
|
+
*
|
|
1082
|
+
* A `file://` URL:
|
|
1083
|
+
*
|
|
1084
|
+
* - iOS: reads only within its directory.
|
|
1085
|
+
* - Android: needs `android.settings.allowFileAccess`, which lets a `file:` page read any file the app can.
|
|
1086
|
+
*/
|
|
1087
|
+
load(url: string): void;
|
|
1068
1088
|
/**
|
|
1069
1089
|
* Reloads the page; after a failed load, retries it (the `source` again, with its headers, when that failed), and
|
|
1070
1090
|
* loads the `source` when nothing is loaded.
|
|
@@ -1072,7 +1092,7 @@ export type WebViewRef = {
|
|
|
1072
1092
|
* Sends a POST `source` again, and lifts the limit on {@link ProcessGoneEvent.recovered | crash recovery}.
|
|
1073
1093
|
*/
|
|
1074
1094
|
reload(): void;
|
|
1075
|
-
/** Stops the load
|
|
1095
|
+
/** Stops the load; its {@link NavigationState.outcome | outcome} says how the load ended. */
|
|
1076
1096
|
stopLoading(): void;
|
|
1077
1097
|
/**
|
|
1078
1098
|
* Runs an expression (not statements) in the page's main frame and awaits it.
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,KAAK,EACV,kBAAkB,EAClB,OAAO,EACP,MAAM,EACN,MAAM,EACN,cAAc,EACd,YAAY,EACb,MAAM,sBAAsB,CAAC;AAE9B;;;;GAIG;AACH,MAAM,MAAM,aAAa,GACrB;IACE;;;;;;;OAOG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GACD;IAC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E,UAAU,GAAG,IAAI,CAAC;IACpC,kEAAkE;IAClE,QAAQ,IAAI,eAAe,CAAC;IAC5B;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CAC7C,CAAC"}
|
package/ios/DelegateProxy.swift
CHANGED
|
@@ -37,7 +37,7 @@ final class DelegateProxy: NSObject, WKNavigationDelegate, WKUIDelegate {
|
|
|
37
37
|
|
|
38
38
|
override func forwardingTarget(for aSelector: Selector!) -> Any? {
|
|
39
39
|
let hook = delegates(for: aSelector).first { $0.responds(to: aSelector) }
|
|
40
|
-
if Self.decisions.contains(aSelector), let hook { return hook }
|
|
40
|
+
if Self.decisions.contains(where: { $0.selector == aSelector }), let hook { return hook }
|
|
41
41
|
if let core, core.responds(to: aSelector) { return core }
|
|
42
42
|
return hook ?? super.forwardingTarget(for: aSelector)
|
|
43
43
|
}
|
|
@@ -108,39 +108,41 @@ final class DelegateProxy: NSObject, WKNavigationDelegate, WKUIDelegate {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
/// The
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
111
|
+
/// The warnings about the decisions the hook delegates take that this proxy hasn't given yet: one for a decision
|
|
112
|
+
/// more than one of them implements, as only the first one gets it, and one for a decision the core makes from the
|
|
113
|
+
/// app's props or their defaults, naming what stops applying.
|
|
114
|
+
func newWarnings() -> [String] {
|
|
115
|
+
Self.decisions.flatMap { decision, lost in
|
|
116
|
+
let name = NSStringFromSelector(decision)
|
|
117
|
+
let takers = takers(of: decision).count
|
|
118
|
+
return [
|
|
119
|
+
takers > 1 ? "\(name): more than one hook delegate implements it; only the first one gets it" : nil,
|
|
120
|
+
takers > 0 ? lost.map { "\(name): a hook delegate takes it, so \($0)" } : nil
|
|
121
|
+
].compactMap { $0 }.filter { warned.insert($0).inserted }
|
|
122
|
+
}
|
|
120
123
|
}
|
|
121
124
|
|
|
122
|
-
private
|
|
123
|
-
private static let newWindow =
|
|
124
|
-
NSSelectorFromString("webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:")
|
|
125
|
-
private static let mediaCapture =
|
|
126
|
-
NSSelectorFromString("webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:")
|
|
125
|
+
private var warned: Set<String> = []
|
|
127
126
|
|
|
128
|
-
|
|
127
|
+
/// The decision callbacks: a hook delegate that implements one owns it, and `lost` is what stops applying when the
|
|
128
|
+
/// core makes it from the props. WebKit never asks for the plain action policy, as the proxy answers the other variant.
|
|
129
|
+
private static let decisions: [(selector: Selector, lost: String?)] = [
|
|
129
130
|
(actionPolicy, "navigationRules, their defaults and onNavigationRequest don't apply to navigations"),
|
|
130
|
-
(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
NSSelectorFromString("webView:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
131
|
+
(
|
|
132
|
+
NSSelectorFromString("webView:decidePolicyForNavigationResponse:decisionHandler:"),
|
|
133
|
+
"onDownload, opening downloads externally and onError's http errors don't apply"
|
|
134
|
+
),
|
|
135
|
+
(
|
|
136
|
+
NSSelectorFromString("webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:"),
|
|
137
|
+
"navigationRules, their defaults and onNavigationRequest don't apply to new windows"
|
|
138
|
+
),
|
|
139
|
+
(NSSelectorFromString("webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:"), nil),
|
|
140
|
+
(NSSelectorFromString("webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:"), nil),
|
|
141
|
+
(NSSelectorFromString("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:"), nil),
|
|
142
|
+
(
|
|
143
|
+
NSSelectorFromString("webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:"),
|
|
144
|
+
"onPermissionRequest and the core's subframe deny don't apply"
|
|
145
|
+
)
|
|
144
146
|
]
|
|
145
147
|
}
|
|
146
148
|
|
package/ios/DocumentEnd.swift
CHANGED
|
@@ -14,8 +14,7 @@ public enum DocumentEnd {
|
|
|
14
14
|
case committed
|
|
15
15
|
/// The renderer (WebKit's web content process) died.
|
|
16
16
|
///
|
|
17
|
-
/// The WKWebView stays and reloads, unless `ProcessGoneEvent.recovered` in JS is false
|
|
18
|
-
/// or crash recovery's limit). Nothing attaches again: the hooks' contexts, handlers and delegates stay.
|
|
17
|
+
/// The WKWebView stays and reloads, unless `ProcessGoneEvent.recovered` in JS is false. Nothing attaches again: the hooks' contexts, handlers and delegates stay.
|
|
19
18
|
case crashed
|
|
20
19
|
/// The view is closing; the hooks' ``WebViewContext/onDestroyed(_:)`` handlers run after it.
|
|
21
20
|
case closing
|
package/ios/Hooks.swift
CHANGED
|
@@ -15,8 +15,6 @@ import WebKit
|
|
|
15
15
|
public enum MinimalWebViewHooks {
|
|
16
16
|
struct Hook {
|
|
17
17
|
let key: String
|
|
18
|
-
/// Where it was registered, `#fileID:#line`: the same place again is a JS reload, not a second hook.
|
|
19
|
-
let site: String
|
|
20
18
|
let webViewClass: WKWebView.Type?
|
|
21
19
|
let configure: ((WKWebViewConfiguration, WebViewContext) -> Void)?
|
|
22
20
|
let attach: (WKWebView, WebViewContext) -> Void
|
|
@@ -28,12 +26,8 @@ public enum MinimalWebViewHooks {
|
|
|
28
26
|
///
|
|
29
27
|
/// Call it from your module's `OnCreate`, before the first WebView.
|
|
30
28
|
///
|
|
31
|
-
/// A
|
|
32
|
-
/// is logged and not registered.
|
|
33
|
-
///
|
|
34
|
-
/// The same call running again replaces its hook: a JS reload creates the modules anew and runs their `OnCreate`
|
|
35
|
-
/// again. A helper that calls `register` for other code is one call site, so a second hook through it replaces the
|
|
36
|
-
/// first silently, unless the helper passes its caller's `file` and `line` on.
|
|
29
|
+
/// A hook under a key that is taken already replaces that hook in its place, with a warning, so a key collision
|
|
30
|
+
/// doesn't stop the app. A hook under `core` is logged and not registered.
|
|
37
31
|
///
|
|
38
32
|
/// Hooks are configured and attached in registration order, which across packages is autolinking's: packages sorted
|
|
39
33
|
/// by name. A hook whose key turns on after the WebView was created attaches after the hooks attached already.
|
|
@@ -55,27 +49,35 @@ public enum MinimalWebViewHooks {
|
|
|
55
49
|
/// - attach: Runs once the WKWebView exists and its settings are applied, so what it sets wins over them. Register
|
|
56
50
|
/// what to run when the view goes away with ``WebViewContext/onDestroyed(_:)``. A renderer crash
|
|
57
51
|
/// reloads the same WKWebView, so nothing attaches again (see ``DocumentEnd/crashed``).
|
|
58
|
-
/// - file: With `line`, the call site that tells a reload from a second hook; leave both to their defaults.
|
|
59
|
-
/// - line: The call site's line, with `file`.
|
|
60
52
|
public static func register(
|
|
61
53
|
_ key: String,
|
|
62
54
|
webViewClass: WKWebView.Type? = nil,
|
|
63
55
|
configure: ((WKWebViewConfiguration, WebViewContext) -> Void)? = nil,
|
|
64
|
-
attach: @escaping (WKWebView, WebViewContext) -> Void
|
|
65
|
-
file: String = #fileID,
|
|
66
|
-
line: Int = #line
|
|
56
|
+
attach: @escaping (WKWebView, WebViewContext) -> Void
|
|
67
57
|
) {
|
|
68
58
|
guard key != "core" else { return NSLog("[react-native-minimal-webview] the hook key `core` is reserved: the hook is not registered") }
|
|
69
|
-
let hook = Hook(key: key,
|
|
59
|
+
let hook = Hook(key: key, webViewClass: webViewClass, configure: configure, attach: attach)
|
|
70
60
|
guard let index = hooks.firstIndex(where: { $0.key == key }) else { return hooks.append(hook) }
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
61
|
+
NSLog(
|
|
62
|
+
"%@",
|
|
63
|
+
"[react-native-minimal-webview] a hook under `\(key)` replaces the one registered before: a JS reload registers "
|
|
64
|
+
+ "every hook again; otherwise two hooks share the key and the last one wins, so prefix yours with your package's name"
|
|
65
|
+
)
|
|
77
66
|
hooks[index] = hook
|
|
78
67
|
}
|
|
68
|
+
|
|
69
|
+
/// Deprecated: `file` and `line` do nothing. Use ``register(_:webViewClass:configure:attach:)``.
|
|
70
|
+
@available(*, deprecated, message: "file: and line: do nothing; drop them")
|
|
71
|
+
public static func register(
|
|
72
|
+
_ key: String,
|
|
73
|
+
webViewClass: WKWebView.Type? = nil,
|
|
74
|
+
configure: ((WKWebViewConfiguration, WebViewContext) -> Void)? = nil,
|
|
75
|
+
attach: @escaping (WKWebView, WebViewContext) -> Void,
|
|
76
|
+
file: String = #fileID,
|
|
77
|
+
line: Int = #line
|
|
78
|
+
) {
|
|
79
|
+
register(key, webViewClass: webViewClass, configure: configure, attach: attach)
|
|
80
|
+
}
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
/// One WebView as one hook sees it, for the life of the WKWebView.
|
|
@@ -87,8 +89,7 @@ public enum MinimalWebViewHooks {
|
|
|
87
89
|
///
|
|
88
90
|
/// A hook is on while its extension's `options` are not null or false;
|
|
89
91
|
/// [`HookExtension.options`](https://rasmuskard.github.io/react-native-minimal-webview/typescript/react-native-minimal-webview/type-aliases/HookExtension/#options)
|
|
90
|
-
/// says what off means.
|
|
91
|
-
/// it turns on.
|
|
92
|
+
/// says what off means.
|
|
92
93
|
///
|
|
93
94
|
/// Values from JS arrive as Foundation's JSON types: a number as `NSNumber`, an object as `NSDictionary`, an array as
|
|
94
95
|
/// `NSArray`. In an ask's answer and a ``handle(_:_:)`` handler's arguments, null is nil at the top level and `NSNull`
|
|
@@ -148,7 +149,7 @@ public protocol WebViewContext: AnyObject {
|
|
|
148
149
|
/// Style it (`tintColor`), but leave its actions and where it is shown to the core.
|
|
149
150
|
var refreshControl: UIRefreshControl? { get }
|
|
150
151
|
/// Sends an event to JS: the extension with the hook's key gets `{ name, payload }` in its `onEvent`. It is dropped
|
|
151
|
-
/// while the hook is off
|
|
152
|
+
/// while the hook is off.
|
|
152
153
|
func emit(_ name: String, _ payload: [String: Any])
|
|
153
154
|
/// Sends the event as ``emit(_:_:)`` does, and calls `onAnswer` with the extension's `onEvent` return value, a
|
|
154
155
|
/// promise awaited.
|
|
@@ -158,9 +159,9 @@ public protocol WebViewContext: AnyObject {
|
|
|
158
159
|
/// An ask made before the first commit (in `attach`, or after a crash) belongs to the Document that commit opens.
|
|
159
160
|
func ask(_ name: String, _ payload: [String: Any], _ onAnswer: @escaping (Any?) -> Void)
|
|
160
161
|
/// Runs `handler` at once with this hook's extension's `options`, then with the new ones each time they change,
|
|
161
|
-
/// live; nil while the hook is off.
|
|
162
|
+
/// live; nil while the hook is off, so it can undo what it set up.
|
|
162
163
|
///
|
|
163
|
-
/// A change from one off value to another doesn't run it
|
|
164
|
+
/// A change from one off value to another doesn't run it.
|
|
164
165
|
func onOptions(_ handler: @escaping (_ options: Any?) -> Void)
|
|
165
166
|
/// Runs `handler` at each end of the Document (see ``DocumentEnd``), after the core's own resets: per-page
|
|
166
167
|
/// state belongs here.
|
|
@@ -196,9 +197,8 @@ public final class HookReply {
|
|
|
196
197
|
self.reject = reject
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
/// Resolves the JS call with `value`, converted as `ref.call`'s results are
|
|
200
|
-
///
|
|
201
|
-
/// number rejects the call with `native_error` instead.
|
|
200
|
+
/// Resolves the JS call with `value`, converted as [`ref.call`'s results](https://rasmuskard.github.io/react-native-minimal-webview/typescript/react-native-minimal-webview/type-aliases/WebViewRef/#call) are;
|
|
201
|
+
/// a non-finite number rejects the call with `native_error` instead.
|
|
202
202
|
public func callAsFunction(_ value: Any?) {
|
|
203
203
|
if first() { resolve(value) }
|
|
204
204
|
}
|
package/ios/Loads.swift
CHANGED
|
@@ -3,14 +3,15 @@ import Foundation
|
|
|
3
3
|
/// The main-frame loads' choices that need no WebView.
|
|
4
4
|
enum Loads {
|
|
5
5
|
/// Whether `a` and `b` are the same URL as WebKit reports one: with the scheme and host lowercase, the scheme's
|
|
6
|
-
/// default port dropped and an empty path `/`. The rest (userinfo, path, query, fragment) compares exactly. It picks
|
|
7
|
-
/// out our own loads (`
|
|
6
|
+
/// default port dropped, dot segments removed and an empty path `/`. The rest (userinfo, path, query, fragment) compares exactly. It picks
|
|
7
|
+
/// out our own loads (`ownLoads`), which skip the navigation rules: WebKit reports the load of a `source.uri`
|
|
8
8
|
/// of `https://Example.com:443` as `https://example.com/`.
|
|
9
9
|
static func sameURL(_ a: URL, _ b: URL) -> Bool {
|
|
10
|
-
canonical(a) == canonical(b)
|
|
10
|
+
canonical(a.standardized) == canonical(b.standardized)
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/// `url` in the form `sameURL` compares, dot segments aside (Recovery compares them as Android does).
|
|
14
|
+
static func canonical(_ url: URL) -> String {
|
|
14
15
|
guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return url.absoluteString }
|
|
15
16
|
components.scheme = components.scheme?.lowercased()
|
|
16
17
|
if let host = components.encodedHost, host != host.lowercased() { components.encodedHost = host.lowercased() }
|
package/ios/MRWInvoke.h
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
NS_ASSUME_NONNULL_BEGIN
|
|
4
4
|
|
|
5
|
+
/// Runs `block` and returns the Objective-C exception it raised as `name: reason`, or nil. Swift can't catch those;
|
|
6
|
+
/// Key-Value Coding raises one for an unknown key or a value a setter rejects.
|
|
7
|
+
FOUNDATION_EXPORT NSString *_Nullable MRWCatchException(void (NS_NOESCAPE ^block)(void)) NS_REFINED_FOR_SWIFT;
|
|
8
|
+
|
|
5
9
|
/// Calls `selector` on `target` with the JSON `args` and resolves with the result as `MRWJsonable` makes it, or with
|
|
6
10
|
/// why it couldn't.
|
|
7
11
|
///
|
|
8
|
-
/// `args` are set by the method signature's type encodings
|
|
9
|
-
/// - booleans, numbers and strings as themselves, and nil from null;
|
|
10
|
-
/// - the four structs (UIEdgeInsets, CGPoint, CGSize, CGRect) from objects;
|
|
11
|
-
/// - `{ set: [] }`, `{ date: seconds }`, `{ data: base64 }` and `{ cookie: properties }` for an NSSet, NSDate, NSData
|
|
12
|
-
/// or NSHTTPCookie;
|
|
13
|
-
/// - any other object as is.
|
|
12
|
+
/// `args` are set by the method signature's type encodings, in the forms WebViewRef.call's @param lists.
|
|
14
13
|
///
|
|
15
14
|
/// A selector whose last argument is a block gets the shape `completion` names, and the block resolves, with the
|
|
16
15
|
/// error's description as the error:
|
|
@@ -30,9 +29,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
30
29
|
FOUNDATION_EXPORT void MRWInvoke(id target, SEL selector, NSArray *args, NSString *_Nullable completion,
|
|
31
30
|
void (^resolve)(id _Nullable result, NSString *_Nullable error)) NS_REFINED_FOR_SWIFT;
|
|
32
31
|
|
|
33
|
-
/// `value` as JSON
|
|
34
|
-
/// base64, the four struct NSValues (UIEdgeInsets, CGPoint, CGSize, CGRect) as objects, an NSHTTPCookie as its
|
|
35
|
-
/// `properties`, lists, sets and dictionaries of them; anything else, and nil, is null.
|
|
32
|
+
/// `value` as JSON, in the forms WebViewRef.call's @returns lists; anything else, and nil, is null.
|
|
36
33
|
FOUNDATION_EXPORT id MRWJsonable(id _Nullable value) NS_REFINED_FOR_SWIFT;
|
|
37
34
|
|
|
35
|
+
/// `json` as the struct the type encoding `type` names, in the forms WebViewRef.call's @param lists; nil for another
|
|
36
|
+
/// type or a value that doesn't fit.
|
|
37
|
+
FOUNDATION_EXPORT NSValue *_Nullable MRWStructValue(const char *type, id json) NS_REFINED_FOR_SWIFT;
|
|
38
|
+
|
|
38
39
|
NS_ASSUME_NONNULL_END
|