@onekeyfe/onekey-cross-webview 2.1.16 → 2.1.17

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.
@@ -7,5 +7,5 @@ export declare function waitForDataLoaded({ data, wait, logName, timeout, }: {
7
7
  logName: string;
8
8
  timeout?: number;
9
9
  }): Promise<void>;
10
- declare const DesktopWebView: React.ForwardRefExoticComponent<Pick<React.ClassAttributes<HTMLWebViewElement> & React.WebViewHTMLAttributes<HTMLWebViewElement> & InpageProviderWebViewProps, "slot" | "style" | "title" | "src" | "receiveHandler" | "onSrcChange" | "key" | "allowFullScreen" | "allowpopups" | "autoFocus" | "autosize" | "blinkfeatures" | "disableblinkfeatures" | "disableguestresize" | "disablewebsecurity" | "guestinstance" | "httpreferrer" | "nodeintegration" | "partition" | "plugins" | "preload" | "useragent" | "webpreferences" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<unknown>>;
10
+ declare const DesktopWebView: React.ForwardRefExoticComponent<Pick<React.ClassAttributes<HTMLWebViewElement> & React.WebViewHTMLAttributes<HTMLWebViewElement> & InpageProviderWebViewProps, "slot" | "style" | "title" | "children" | "src" | "receiveHandler" | "onSrcChange" | "key" | "allowFullScreen" | "allowpopups" | "autoFocus" | "autosize" | "blinkfeatures" | "disableblinkfeatures" | "disableguestresize" | "disablewebsecurity" | "guestinstance" | "httpreferrer" | "nodeintegration" | "partition" | "plugins" | "preload" | "useragent" | "webpreferences" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<unknown>>;
11
11
  export { DesktopWebView };
@@ -54,8 +54,8 @@ export function waitAsync(timeout) {
54
54
  setTimeout(resolve, timeout);
55
55
  });
56
56
  }
57
- export function waitForDataLoaded({ data, wait = 600, logName, timeout = 0, }) {
58
- return __awaiter(this, void 0, void 0, function* () {
57
+ export function waitForDataLoaded(_a) {
58
+ return __awaiter(this, arguments, void 0, function* ({ data, wait = 600, logName, timeout = 0, }) {
59
59
  return new Promise((resolve, reject) => {
60
60
  void (() => __awaiter(this, void 0, void 0, function* () {
61
61
  let timeoutReject = false;
@@ -6,6 +6,6 @@ export type NativeWebViewProps = WebViewProps & InpageProviderWebViewProps & {
6
6
  style?: ViewStyle;
7
7
  };
8
8
  declare const NativeWebView: React.ForwardRefExoticComponent<Pick<import("react-native-webview/lib/WebViewTypes").IOSWebViewProps & import("react-native-webview/lib/WebViewTypes").AndroidWebViewProps & InpageProviderWebViewProps & {
9
- style?: ViewStyle | undefined;
10
- }, "source" | "style" | "src" | "receiveHandler" | "onSrcChange" | "children" | "onLoad" | "onError" | "onLoadStart" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "onScroll" | "onLoadProgress" | "injectedJavaScriptBeforeContentLoaded" | "onMessage" | "incognito" | "bounces" | "decelerationRate" | "scrollEnabled" | "pagingEnabled" | "automaticallyAdjustContentInsets" | "automaticallyAdjustsScrollIndicatorInsets" | "contentInsetAdjustmentBehavior" | "contentInset" | "contentMode" | "dataDetectorTypes" | "allowsInlineMediaPlayback" | "hideKeyboardAccessoryView" | "allowsBackForwardNavigationGestures" | "useSharedProcessPool" | "userAgent" | "allowsLinkPreview" | "sharedCookiesEnabled" | "ignoreSilentHardwareSwitch" | "autoManageStatusBarEnabled" | "directionalLockEnabled" | "keyboardDisplayRequiresUserAction" | "allowingReadAccessToURL" | "allowFileAccessFromFileURLs" | "allowUniversalAccessFromFileURLs" | "onContentProcessDidTerminate" | "injectedJavaScriptForMainFrameOnly" | "injectedJavaScriptBeforeContentLoadedForMainFrameOnly" | "pullToRefreshEnabled" | "onFileDownload" | "limitsNavigationsToAppBoundDomains" | "textInteractionEnabled" | "mediaCapturePermissionGrantType" | "enableApplePay" | "menuItems" | "onCustomMenuSelection" | "javaScriptEnabled" | "javaScriptCanOpenWindowsAutomatically" | "containerStyle" | "renderError" | "renderLoading" | "onLoadEnd" | "onHttpError" | "onNavigationStateChange" | "startInLoadingState" | "injectedJavaScript" | "showsHorizontalScrollIndicator" | "showsVerticalScrollIndicator" | "mediaPlaybackRequiresUserAction" | "originWhitelist" | "onShouldStartLoadWithRequest" | "nativeConfig" | "cacheEnabled" | "applicationNameForUserAgent" | "basicAuthCredential" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "onContentSizeChange" | "onRenderProcessGone" | "cacheMode" | "overScrollMode" | "scalesPageToFit" | "geolocationEnabled" | "allowFileAccess" | "saveFormDataDisabled" | "setSupportMultipleWindows" | "urlPrefixesForDefaultIntent" | "androidHardwareAccelerationDisabled" | "androidLayerType" | "thirdPartyCookiesEnabled" | "domStorageEnabled" | "textZoom" | "mixedContentMode" | "allowsFullscreenVideo" | "forceDarkOn" | "setBuiltInZoomControls" | "setDisplayZoomControls" | "nestedScrollEnabled" | "minimumFontSize"> & React.RefAttributes<unknown>>;
9
+ style?: ViewStyle;
10
+ }, "source" | "style" | "children" | "src" | "receiveHandler" | "onSrcChange" | "onLoad" | "onError" | "onLoadStart" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "onScroll" | "onLoadProgress" | "injectedJavaScriptBeforeContentLoaded" | "onMessage" | "incognito" | "bounces" | "decelerationRate" | "scrollEnabled" | "pagingEnabled" | "automaticallyAdjustContentInsets" | "automaticallyAdjustsScrollIndicatorInsets" | "contentInsetAdjustmentBehavior" | "contentInset" | "contentMode" | "dataDetectorTypes" | "allowsInlineMediaPlayback" | "hideKeyboardAccessoryView" | "allowsBackForwardNavigationGestures" | "useSharedProcessPool" | "userAgent" | "allowsLinkPreview" | "sharedCookiesEnabled" | "ignoreSilentHardwareSwitch" | "autoManageStatusBarEnabled" | "directionalLockEnabled" | "keyboardDisplayRequiresUserAction" | "allowingReadAccessToURL" | "allowFileAccessFromFileURLs" | "allowUniversalAccessFromFileURLs" | "onContentProcessDidTerminate" | "injectedJavaScriptForMainFrameOnly" | "injectedJavaScriptBeforeContentLoadedForMainFrameOnly" | "pullToRefreshEnabled" | "onFileDownload" | "limitsNavigationsToAppBoundDomains" | "textInteractionEnabled" | "mediaCapturePermissionGrantType" | "enableApplePay" | "menuItems" | "onCustomMenuSelection" | "javaScriptEnabled" | "javaScriptCanOpenWindowsAutomatically" | "containerStyle" | "renderError" | "renderLoading" | "onLoadEnd" | "onHttpError" | "onNavigationStateChange" | "startInLoadingState" | "injectedJavaScript" | "showsHorizontalScrollIndicator" | "showsVerticalScrollIndicator" | "mediaPlaybackRequiresUserAction" | "originWhitelist" | "onShouldStartLoadWithRequest" | "nativeConfig" | "cacheEnabled" | "applicationNameForUserAgent" | "basicAuthCredential" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "onContentSizeChange" | "onRenderProcessGone" | "cacheMode" | "overScrollMode" | "scalesPageToFit" | "geolocationEnabled" | "allowFileAccess" | "saveFormDataDisabled" | "setSupportMultipleWindows" | "urlPrefixesForDefaultIntent" | "androidHardwareAccelerationDisabled" | "androidLayerType" | "thirdPartyCookiesEnabled" | "domStorageEnabled" | "textZoom" | "mixedContentMode" | "allowsFullscreenVideo" | "forceDarkOn" | "setBuiltInZoomControls" | "setDisplayZoomControls" | "nestedScrollEnabled" | "minimumFontSize"> & React.RefAttributes<unknown>>;
11
11
  export { NativeWebView };
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -46,7 +56,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
46
56
  return (mod && mod.__esModule) ? mod : { "default": mod };
47
57
  };
48
58
  Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.DesktopWebView = exports.waitForDataLoaded = exports.waitAsync = void 0;
59
+ exports.DesktopWebView = void 0;
60
+ exports.waitAsync = waitAsync;
61
+ exports.waitForDataLoaded = waitForDataLoaded;
50
62
  /* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-explicit-any */
51
63
  const react_1 = __importStar(require("react"));
52
64
  const cross_inpage_provider_core_1 = require("@onekeyfe/cross-inpage-provider-core");
@@ -83,9 +95,8 @@ function waitAsync(timeout) {
83
95
  setTimeout(resolve, timeout);
84
96
  });
85
97
  }
86
- exports.waitAsync = waitAsync;
87
- function waitForDataLoaded({ data, wait = 600, logName, timeout = 0, }) {
88
- return __awaiter(this, void 0, void 0, function* () {
98
+ function waitForDataLoaded(_a) {
99
+ return __awaiter(this, arguments, void 0, function* ({ data, wait = 600, logName, timeout = 0, }) {
89
100
  return new Promise((resolve, reject) => {
90
101
  void (() => __awaiter(this, void 0, void 0, function* () {
91
102
  let timeoutReject = false;
@@ -137,7 +148,6 @@ function waitForDataLoaded({ data, wait = 600, logName, timeout = 0, }) {
137
148
  });
138
149
  });
139
150
  }
140
- exports.waitForDataLoaded = waitForDataLoaded;
141
151
  const DesktopWebView = (0, react_1.forwardRef)((_a, ref) => {
142
152
  var { src, style, receiveHandler, onSrcChange } = _a, props = __rest(_a, ["src", "style", "receiveHandler", "onSrcChange"]);
143
153
  const [isWebviewReady, setIsWebviewReady] = (0, react_1.useState)(false);
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __rest = (this && this.__rest) || function (s, e) {
26
36
  var t = {};
27
37
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useIsIpcReady = void 0;
3
+ exports.useIsIpcReady = useIsIpcReady;
4
4
  const react_1 = require("react");
5
5
  function useIsIpcReady() {
6
6
  const [isIpcReady, setIsIpcReady] = (0, react_1.useState)(false);
@@ -30,4 +30,3 @@ function useIsIpcReady() {
30
30
  }, [isIpcReady]);
31
31
  return isIpcReady;
32
32
  }
33
- exports.useIsIpcReady = useIsIpcReady;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useWebViewBridge = void 0;
3
+ exports.useWebViewBridge = useWebViewBridge;
4
4
  const react_1 = require("react");
5
5
  function useWebViewBridge() {
6
6
  const webviewRef = (0, react_1.useRef)(null);
@@ -22,4 +22,3 @@ function useWebViewBridge() {
22
22
  setWebViewRef,
23
23
  };
24
24
  }
25
- exports.useWebViewBridge = useWebViewBridge;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WebView as ReactNativeWebView } from 'react-native-webview';
3
2
  import { JsBridgeBase } from '@onekeyfe/cross-inpage-provider-core';
4
3
  import { IElectronWebView } from '@onekeyfe/cross-inpage-provider-types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/onekey-cross-webview",
3
- "version": "2.1.16",
3
+ "version": "2.1.17",
4
4
  "keywords": [
5
5
  "cross-inpage-provider"
6
6
  ],
@@ -36,8 +36,8 @@
36
36
  "react-native-webview": "^11.17.2"
37
37
  },
38
38
  "dependencies": {
39
- "@onekeyfe/cross-inpage-provider-core": "2.1.16",
40
- "@onekeyfe/cross-inpage-provider-types": "2.1.16"
39
+ "@onekeyfe/cross-inpage-provider-core": "2.1.17",
40
+ "@onekeyfe/cross-inpage-provider-types": "2.1.17"
41
41
  },
42
- "gitHead": "08f1d2c6c5b6556f50ac7003daab69cd50d84728"
42
+ "gitHead": "6b9e350734a850a60dbf9fa4406190900f8f13f2"
43
43
  }