@momo-kits/webview 0.0.65-beta → 0.0.65-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/index.d.ts +1 -46
  2. package/index.js +0 -2
  3. package/lib/WebView.android.d.ts +4 -72
  4. package/lib/WebView.android.d.ts.map +1 -1
  5. package/lib/WebView.android.js +101 -307
  6. package/lib/WebView.d.ts +2 -2
  7. package/lib/WebView.d.ts.map +1 -1
  8. package/lib/WebView.ios.d.ts +4 -80
  9. package/lib/WebView.ios.d.ts.map +1 -1
  10. package/lib/WebView.ios.js +86 -221
  11. package/lib/WebView.js +7 -12
  12. package/lib/WebView.macos.d.ts +4 -80
  13. package/lib/WebView.macos.d.ts.map +1 -1
  14. package/lib/WebView.macos.js +83 -219
  15. package/lib/WebView.styles.js +0 -2
  16. package/lib/WebView.windows.d.ts +5 -26
  17. package/lib/WebView.windows.d.ts.map +1 -1
  18. package/lib/WebView.windows.js +114 -161
  19. package/lib/WebViewNativeComponent.android.d.ts +4 -0
  20. package/lib/WebViewNativeComponent.android.d.ts.map +1 -0
  21. package/lib/WebViewNativeComponent.android.js +3 -0
  22. package/lib/WebViewNativeComponent.ios.d.ts +4 -0
  23. package/lib/WebViewNativeComponent.ios.d.ts.map +1 -0
  24. package/lib/WebViewNativeComponent.ios.js +3 -0
  25. package/lib/WebViewNativeComponent.macos.d.ts +4 -0
  26. package/lib/WebViewNativeComponent.macos.d.ts.map +1 -0
  27. package/lib/WebViewNativeComponent.macos.js +3 -0
  28. package/lib/WebViewNativeComponent.windows.d.ts +4 -0
  29. package/lib/WebViewNativeComponent.windows.d.ts.map +1 -0
  30. package/lib/WebViewNativeComponent.windows.js +3 -0
  31. package/lib/WebViewShared.d.ts +32 -2
  32. package/lib/WebViewShared.d.ts.map +1 -1
  33. package/lib/WebViewShared.js +99 -16
  34. package/lib/WebViewTypes.d.ts +242 -14
  35. package/lib/WebViewTypes.d.ts.map +1 -1
  36. package/lib/WebViewTypes.js +4 -3
  37. package/lib/index.d.ts.map +1 -0
  38. package/package.json +15 -15
  39. package/publish.sh +2 -2
@@ -1,18 +1,3 @@
1
- /* eslint-disable */
2
-
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -60,213 +45,92 @@ var __rest = (this && this.__rest) || function (s, e) {
60
45
  }
61
46
  return t;
62
47
  };
63
- import React from 'react';
64
- import { UIManager as NotTypedUIManager, View, requireNativeComponent, NativeModules, Image, findNodeHandle, } from 'react-native';
48
+ import React, { forwardRef, useCallback, useImperativeHandle, useRef } from 'react';
49
+ import { Image, View, NativeModules, } from 'react-native';
65
50
  import invariant from 'invariant';
66
- import { defaultOriginWhitelist, createOnShouldStartLoadWithRequest, defaultRenderError, defaultRenderLoading, } from './WebViewShared';
51
+ // @ts-expect-error react-native doesn't have this type
52
+ import codegenNativeCommandsUntyped from 'react-native/Libraries/Utilities/codegenNativeCommands';
53
+ import RNCWebView from "./WebViewNativeComponent.macos";
54
+ import { defaultOriginWhitelist, defaultRenderError, defaultRenderLoading, useWebWiewLogic, } from './WebViewShared';
67
55
  import styles from './WebView.styles';
68
- var UIManager = NotTypedUIManager;
56
+ var codegenNativeCommands = codegenNativeCommandsUntyped;
57
+ var Commands = codegenNativeCommands({
58
+ supportedCommands: ['goBack', 'goForward', 'reload', 'stopLoading', 'injectJavaScript', 'requestFocus', 'postMessage', 'loadUrl']
59
+ });
69
60
  var resolveAssetSource = Image.resolveAssetSource;
70
61
  var RNCWebViewManager = NativeModules.RNCWebViewManager;
71
- var RNCWebView = requireNativeComponent('RNCWebView');
72
- var WebView = /** @class */ (function (_super) {
73
- __extends(WebView, _super);
74
- function WebView() {
75
- var _this = _super !== null && _super.apply(this, arguments) || this;
76
- _this.state = {
77
- viewState: _this.props.startInLoadingState ? 'LOADING' : 'IDLE',
78
- lastErrorEvent: null
79
- };
80
- _this.webViewRef = React.createRef();
81
- // eslint-disable-next-line react/sort-comp
82
- _this.getCommands = function () { return UIManager.getViewManagerConfig('RNCWebView').Commands; };
83
- /**
84
- * Go forward one page in the web view's history.
85
- */
86
- _this.goForward = function () {
87
- UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().goForward, undefined);
88
- };
89
- /**
90
- * Go back one page in the web view's history.
91
- */
92
- _this.goBack = function () {
93
- UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().goBack, undefined);
94
- };
95
- /**
96
- * Reloads the current page.
97
- */
98
- _this.reload = function () {
99
- _this.setState({ viewState: 'LOADING' });
100
- UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().reload, undefined);
101
- };
102
- /**
103
- * Stop loading the current page.
104
- */
105
- _this.stopLoading = function () {
106
- UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().stopLoading, undefined);
107
- };
108
- /**
109
- * Request focus on WebView rendered page.
110
- */
111
- _this.requestFocus = function () {
112
- UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().requestFocus, undefined);
113
- };
114
- /**
115
- * Posts a message to the web view, which will emit a `message` event.
116
- * Accepts one argument, `data`, which must be a string.
117
- *
118
- * In your webview, you'll need to something like the following.
119
- *
120
- * ```js
121
- * document.addEventListener('message', e => { document.title = e.data; });
122
- * ```
123
- */
124
- _this.postMessage = function (data) {
125
- UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().postMessage, [String(data)]);
126
- };
127
- /**
128
- * Injects a javascript string into the referenced WebView. Deliberately does not
129
- * return a response because using eval() to return a response breaks this method
130
- * on pages with a Content Security Policy that disallows eval(). If you need that
131
- * functionality, look into postMessage/onMessage.
132
- */
133
- _this.injectJavaScript = function (data) {
134
- UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().injectJavaScript, [data]);
135
- };
136
- /**
137
- * We return an event with a bunch of fields including:
138
- * url, title, loading, canGoBack, canGoForward
139
- */
140
- _this.updateNavigationState = function (event) {
141
- if (_this.props.onNavigationStateChange) {
142
- _this.props.onNavigationStateChange(event.nativeEvent);
143
- }
144
- };
145
- /**
146
- * Returns the native `WebView` node.
147
- */
148
- _this.getWebViewHandle = function () {
149
- var nodeHandle = findNodeHandle(_this.webViewRef.current);
150
- invariant(nodeHandle != null, 'nodeHandle expected to be non-null');
151
- return nodeHandle;
152
- };
153
- _this.onLoadingStart = function (event) {
154
- var onLoadStart = _this.props.onLoadStart;
155
- if (onLoadStart) {
156
- onLoadStart(event);
157
- }
158
- _this.updateNavigationState(event);
159
- };
160
- _this.onLoadingError = function (event) {
161
- event.persist(); // persist this event because we need to store it
162
- var _a = _this.props, onError = _a.onError, onLoadEnd = _a.onLoadEnd;
163
- if (onLoadEnd) {
164
- onLoadEnd(event);
165
- }
166
- if (onError) {
167
- onError(event);
168
- }
169
- console.warn('Encountered an error loading page', event.nativeEvent);
170
- _this.setState({
171
- lastErrorEvent: event.nativeEvent,
172
- viewState: 'ERROR'
173
- });
174
- };
175
- _this.onHttpError = function (event) {
176
- var onHttpError = _this.props.onHttpError;
177
- if (onHttpError) {
178
- onHttpError(event);
179
- }
180
- };
181
- _this.onLoadingFinish = function (event) {
182
- var _a = _this.props, onLoad = _a.onLoad, onLoadEnd = _a.onLoadEnd;
183
- if (onLoad) {
184
- onLoad(event);
185
- }
186
- if (onLoadEnd) {
187
- onLoadEnd(event);
188
- }
189
- _this.setState({
190
- viewState: 'IDLE'
191
- });
192
- _this.updateNavigationState(event);
193
- };
194
- _this.onMessage = function (event) {
195
- var onMessage = _this.props.onMessage;
196
- if (onMessage) {
197
- onMessage(event);
198
- }
199
- };
200
- _this.onLoadingProgress = function (event) {
201
- var onLoadProgress = _this.props.onLoadProgress;
202
- if (onLoadProgress) {
203
- onLoadProgress(event);
204
- }
205
- };
206
- _this.onShouldStartLoadWithRequestCallback = function (shouldStart, _url, lockIdentifier) {
207
- var viewManager = (_this.props.nativeConfig && _this.props.nativeConfig.viewManager)
208
- || RNCWebViewManager;
209
- viewManager.startLoadWithResult(!!shouldStart, lockIdentifier);
210
- };
211
- _this.onContentProcessDidTerminate = function (event) {
212
- var onContentProcessDidTerminate = _this.props.onContentProcessDidTerminate;
213
- if (onContentProcessDidTerminate) {
214
- onContentProcessDidTerminate(event);
215
- }
216
- };
217
- return _this;
62
+ var useWarnIfChanges = function (value, name) {
63
+ var ref = useRef(value);
64
+ if (ref.current !== value) {
65
+ console.warn("Changes to property ".concat(name, " do nothing after the initial render."));
66
+ ref.current = value;
218
67
  }
219
- WebView.prototype.componentDidUpdate = function (prevProps) {
220
- this.showRedboxOnPropChanges(prevProps, 'allowsInlineMediaPlayback');
221
- this.showRedboxOnPropChanges(prevProps, 'incognito');
222
- this.showRedboxOnPropChanges(prevProps, 'mediaPlaybackRequiresUserAction');
223
- };
224
- WebView.prototype.showRedboxOnPropChanges = function (prevProps, propName) {
225
- if (this.props[propName] !== prevProps[propName]) {
226
- console.error("Changes to property " + propName + " do nothing after the initial render.");
227
- }
228
- };
229
- WebView.prototype.render = function () {
230
- 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"]);
231
- var otherView = null;
232
- if (this.state.viewState === 'LOADING') {
233
- otherView = (renderLoading || defaultRenderLoading)();
234
- }
235
- else if (this.state.viewState === 'ERROR') {
236
- var errorEvent = this.state.lastErrorEvent;
237
- invariant(errorEvent != null, 'lastErrorEvent expected to be non-null');
238
- otherView = (renderError || defaultRenderError)(errorEvent.domain, errorEvent.code, errorEvent.description);
239
- }
240
- else if (this.state.viewState !== 'IDLE') {
241
- console.error("RNCWebView invalid state encountered: " + this.state.viewState);
242
- }
243
- var webViewStyles = [styles.container, styles.webView, style];
244
- var webViewContainerStyle = [styles.container, containerStyle];
245
- var onShouldStartLoadWithRequest = createOnShouldStartLoadWithRequest(this.onShouldStartLoadWithRequestCallback,
246
- // casting cause it's in the default props
247
- originWhitelist, onShouldStartLoadWithRequestProp);
248
- var NativeWebView = nativeConfig.component
249
- || RNCWebView;
250
- var webView = (<NativeWebView 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} onContentProcessDidTerminate={this.onContentProcessDidTerminate} ref={this.webViewRef}
251
- // TODO: find a better way to type this.
252
- source={resolveAssetSource(this.props.source)} style={webViewStyles} {...nativeConfig.props}/>);
253
- return (<View style={webViewContainerStyle}>
254
- {webView}
255
- {otherView}
256
- </View>);
257
- };
258
- WebView.defaultProps = {
259
- javaScriptEnabled: true,
260
- cacheEnabled: true,
261
- originWhitelist: defaultOriginWhitelist,
262
- useSharedProcessPool: true
263
- };
264
- WebView.isFileUploadSupported = function () { return __awaiter(void 0, void 0, void 0, function () {
265
- return __generator(this, function (_a) {
266
- // no native implementation for macOS, depends only on permissions
267
- return [2 /*return*/, true];
268
- });
269
- }); };
270
- return WebView;
271
- }(React.Component));
68
+ };
69
+ var WebViewComponent = forwardRef(function (_a, ref) {
70
+ var _b = _a.javaScriptEnabled, javaScriptEnabled = _b === void 0 ? true : _b, _c = _a.cacheEnabled, cacheEnabled = _c === void 0 ? true : _c, _d = _a.originWhitelist, originWhitelist = _d === void 0 ? defaultOriginWhitelist : _d, _e = _a.useSharedProcessPool, useSharedProcessPool = _e === void 0 ? true : _e, injectedJavaScript = _a.injectedJavaScript, injectedJavaScriptBeforeContentLoaded = _a.injectedJavaScriptBeforeContentLoaded, startInLoadingState = _a.startInLoadingState, onNavigationStateChange = _a.onNavigationStateChange, onLoadStart = _a.onLoadStart, onError = _a.onError, onLoad = _a.onLoad, onLoadEnd = _a.onLoadEnd, onLoadProgress = _a.onLoadProgress, onHttpErrorProp = _a.onHttpError, onMessageProp = _a.onMessage, renderLoading = _a.renderLoading, renderError = _a.renderError, style = _a.style, containerStyle = _a.containerStyle, source = _a.source, nativeConfig = _a.nativeConfig, allowsInlineMediaPlayback = _a.allowsInlineMediaPlayback, allowsAirPlayForMediaPlayback = _a.allowsAirPlayForMediaPlayback, mediaPlaybackRequiresUserAction = _a.mediaPlaybackRequiresUserAction, incognito = _a.incognito, onShouldStartLoadWithRequestProp = _a.onShouldStartLoadWithRequest, otherProps = __rest(_a, ["javaScriptEnabled", "cacheEnabled", "originWhitelist", "useSharedProcessPool", "injectedJavaScript", "injectedJavaScriptBeforeContentLoaded", "startInLoadingState", "onNavigationStateChange", "onLoadStart", "onError", "onLoad", "onLoadEnd", "onLoadProgress", "onHttpError", "onMessage", "renderLoading", "renderError", "style", "containerStyle", "source", "nativeConfig", "allowsInlineMediaPlayback", "allowsAirPlayForMediaPlayback", "mediaPlaybackRequiresUserAction", "incognito", "onShouldStartLoadWithRequest"]);
71
+ var webViewRef = useRef(null);
72
+ var onShouldStartLoadWithRequestCallback = useCallback(function (shouldStart, _url, lockIdentifier) {
73
+ if (lockIdentifier === void 0) { lockIdentifier = 0; }
74
+ var viewManager = (nativeConfig === null || nativeConfig === void 0 ? void 0 : nativeConfig.viewManager)
75
+ || RNCWebViewManager;
76
+ viewManager.startLoadWithResult(!!shouldStart, lockIdentifier);
77
+ }, [nativeConfig === null || nativeConfig === void 0 ? void 0 : nativeConfig.viewManager]);
78
+ var _f = useWebWiewLogic({
79
+ onNavigationStateChange: onNavigationStateChange,
80
+ onLoad: onLoad,
81
+ onError: onError,
82
+ onHttpErrorProp: onHttpErrorProp,
83
+ onLoadEnd: onLoadEnd,
84
+ onLoadProgress: onLoadProgress,
85
+ onLoadStart: onLoadStart,
86
+ onMessageProp: onMessageProp,
87
+ startInLoadingState: startInLoadingState,
88
+ originWhitelist: originWhitelist,
89
+ onShouldStartLoadWithRequestProp: onShouldStartLoadWithRequestProp,
90
+ onShouldStartLoadWithRequestCallback: onShouldStartLoadWithRequestCallback
91
+ }), onLoadingStart = _f.onLoadingStart, onShouldStartLoadWithRequest = _f.onShouldStartLoadWithRequest, onMessage = _f.onMessage, viewState = _f.viewState, setViewState = _f.setViewState, lastErrorEvent = _f.lastErrorEvent, onHttpError = _f.onHttpError, onLoadingError = _f.onLoadingError, onLoadingFinish = _f.onLoadingFinish, onLoadingProgress = _f.onLoadingProgress, onContentProcessDidTerminate = _f.onContentProcessDidTerminate;
92
+ useImperativeHandle(ref, function () { return ({
93
+ goForward: function () { return Commands.goForward(webViewRef.current); },
94
+ goBack: function () { return Commands.goBack(webViewRef.current); },
95
+ reload: function () {
96
+ setViewState('LOADING');
97
+ Commands.reload(webViewRef.current);
98
+ },
99
+ stopLoading: function () { return Commands.stopLoading(webViewRef.current); },
100
+ postMessage: function (data) { return Commands.postMessage(webViewRef.current, data); },
101
+ injectJavaScript: function (data) { return Commands.injectJavaScript(webViewRef.current, data); },
102
+ requestFocus: function () { return Commands.requestFocus(webViewRef.current); }
103
+ }); }, [setViewState, webViewRef]);
104
+ useWarnIfChanges(allowsInlineMediaPlayback, 'allowsInlineMediaPlayback');
105
+ useWarnIfChanges(allowsAirPlayForMediaPlayback, 'allowsAirPlayForMediaPlayback');
106
+ useWarnIfChanges(incognito, 'incognito');
107
+ useWarnIfChanges(mediaPlaybackRequiresUserAction, 'mediaPlaybackRequiresUserAction');
108
+ var otherView = null;
109
+ if (viewState === 'LOADING') {
110
+ otherView = (renderLoading || defaultRenderLoading)();
111
+ }
112
+ else if (viewState === 'ERROR') {
113
+ invariant(lastErrorEvent != null, 'lastErrorEvent expected to be non-null');
114
+ otherView = (renderError || defaultRenderError)(lastErrorEvent.domain, lastErrorEvent.code, lastErrorEvent.description);
115
+ }
116
+ else if (viewState !== 'IDLE') {
117
+ console.error("RNCWebView invalid state encountered: ".concat(viewState));
118
+ }
119
+ var webViewStyles = [styles.container, styles.webView, style];
120
+ var webViewContainerStyle = [styles.container, containerStyle];
121
+ var NativeWebView = (nativeConfig === null || nativeConfig === void 0 ? void 0 : nativeConfig.component)
122
+ || RNCWebView;
123
+ var webView = (<NativeWebView key="webViewKey" {...otherProps} javaScriptEnabled={javaScriptEnabled} cacheEnabled={cacheEnabled} useSharedProcessPool={useSharedProcessPool} messagingEnabled={typeof onMessageProp === 'function'} onLoadingError={onLoadingError} onLoadingFinish={onLoadingFinish} onLoadingProgress={onLoadingProgress} onLoadingStart={onLoadingStart} onHttpError={onHttpError} onMessage={onMessage} onShouldStartLoadWithRequest={onShouldStartLoadWithRequest} onContentProcessDidTerminate={onContentProcessDidTerminate} injectedJavaScript={injectedJavaScript} injectedJavaScriptBeforeContentLoaded={injectedJavaScriptBeforeContentLoaded} allowsAirPlayForMediaPlayback={allowsAirPlayForMediaPlayback} allowsInlineMediaPlayback={allowsInlineMediaPlayback} incognito={incognito} mediaPlaybackRequiresUserAction={mediaPlaybackRequiresUserAction} ref={webViewRef}
124
+ // TODO: find a better way to type this.
125
+ source={resolveAssetSource(source)} style={webViewStyles} {...nativeConfig === null || nativeConfig === void 0 ? void 0 : nativeConfig.props}/>);
126
+ return (<View style={webViewContainerStyle}>
127
+ {webView}
128
+ {otherView}
129
+ </View>);
130
+ });
131
+ // no native implementation for macOS, depends only on permissions
132
+ var isFileUploadSupported = function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
133
+ return [2 /*return*/, true];
134
+ }); }); };
135
+ var WebView = Object.assign(WebViewComponent, { isFileUploadSupported: isFileUploadSupported });
272
136
  export default WebView;
@@ -1,5 +1,3 @@
1
- /* eslint-disable */
2
-
3
1
  import { StyleSheet } from 'react-native';
4
2
  var styles = StyleSheet.create({
5
3
  container: {
@@ -10,30 +10,9 @@
10
10
  * Licensed under the MIT License.
11
11
  */
12
12
  import React from 'react';
13
- import { NativeWebViewWindows, WebViewSharedProps, WebViewProgressEvent, WebViewNavigationEvent, WebViewErrorEvent, WebViewHttpErrorEvent, WebViewMessageEvent, State } from './WebViewTypes';
14
- export default class WebView extends React.Component<WebViewSharedProps, State> {
15
- static defaultProps: {
16
- javaScriptEnabled: boolean;
17
- };
18
- state: State;
19
- webViewRef: React.RefObject<NativeWebViewWindows>;
20
- goForward: () => void;
21
- goBack: () => void;
22
- reload: () => void;
23
- injectJavaScript: (data: string) => void;
24
- postMessage: (data: string) => void;
25
- /**
26
- * We return an event with a bunch of fields including:
27
- * url, title, loading, canGoBack, canGoForward
28
- */
29
- updateNavigationState: (event: WebViewNavigationEvent) => void;
30
- getWebViewHandle: () => number | null;
31
- onLoadingStart: (event: WebViewNavigationEvent) => void;
32
- onLoadingProgress: (event: WebViewProgressEvent) => void;
33
- onLoadingError: (event: WebViewErrorEvent) => void;
34
- onLoadingFinish: (event: WebViewNavigationEvent) => void;
35
- onMessage: (event: WebViewMessageEvent) => void;
36
- onHttpError: (event: WebViewHttpErrorEvent) => void;
37
- render(): JSX.Element;
38
- }
13
+ import { WindowsWebViewProps } from './WebViewTypes';
14
+ declare const WebView: React.ForwardRefExoticComponent<WindowsWebViewProps & React.RefAttributes<{}>> & {
15
+ isFileUploadSupported: () => Promise<boolean>;
16
+ };
17
+ export default WebView;
39
18
  //# sourceMappingURL=WebView.windows.d.ts.map
@@ -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;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,yBAMf;IAED,WAAW,yBAMT;IAEF;;;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"}
1
+ {"version":3,"file":"WebView.windows.d.ts","sourceRoot":"","sources":["../src/WebView.windows.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAA+D,MAAM,OAAO,CAAC;AAYpF,OAAO,EAEL,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AAiIxB,QAAA,MAAM,OAAO;iCAHsB,QAAQ,OAAO,CAAC;CAGqB,CAAC;AAEzE,eAAe,OAAO,CAAC"}