@react-native-ohos/react-native-webview 13.16.2-beta.2 → 13.16.2-beta.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +132 -0
  2. package/LICENSE +20 -20
  3. package/README.OpenSource +10 -10
  4. package/README.md +396 -13
  5. package/harmony/rn_webview/.gitignore +6 -0
  6. package/harmony/rn_webview/BuildProfile.ets +17 -0
  7. package/harmony/rn_webview/OAT.xml +44 -44
  8. package/harmony/rn_webview/build-profile.json5 +28 -28
  9. package/harmony/rn_webview/index.ets +12 -12
  10. package/harmony/rn_webview/oh-package-lock.json5 +29 -0
  11. package/harmony/rn_webview/oh-package.json5 +13 -13
  12. package/harmony/rn_webview/src/main/cpp/CMakeLists.txt +9 -9
  13. package/harmony/rn_webview/src/main/cpp/WebViewPackage.h +16 -16
  14. package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/BaseReactNativeWebviewPackage.h +96 -96
  15. package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/components/RNCWebViewJSIBinder.h +121 -120
  16. package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/turbo_modules/RNCWebView.cpp +18 -18
  17. package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/turbo_modules/RNCWebView.h +16 -16
  18. package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/turbo_modules/RNCWebViewModule.cpp +17 -17
  19. package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/turbo_modules/RNCWebViewModule.h +16 -16
  20. package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/ComponentDescriptors.h +24 -24
  21. package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/EventEmitters.cpp +258 -258
  22. package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/EventEmitters.h +277 -277
  23. package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/Props.cpp +104 -103
  24. package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/Props.h +510 -509
  25. package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/ShadowNodes.cpp +17 -17
  26. package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/ShadowNodes.h +32 -32
  27. package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/States.cpp +16 -16
  28. package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/States.h +28 -28
  29. package/harmony/rn_webview/src/main/ets/CutomReference.ts +29 -29
  30. package/harmony/rn_webview/src/main/ets/Logger.ts +43 -43
  31. package/harmony/rn_webview/src/main/ets/Magic.ets +199 -198
  32. package/harmony/rn_webview/src/main/ets/RNCWebView.ets +824 -818
  33. package/harmony/rn_webview/src/main/ets/RNCWebViewPackage.ets +37 -37
  34. package/harmony/rn_webview/src/main/ets/ShouldRequestUrl.ts +47 -47
  35. package/harmony/rn_webview/src/main/ets/WebViewBaseOperate.ets +514 -514
  36. package/harmony/rn_webview/src/main/ets/WebViewTurboModule.ets +62 -62
  37. package/harmony/rn_webview/src/main/ets/generated/components/RNCWebView.ts +529 -525
  38. package/harmony/rn_webview/src/main/ets/generated/components/ts.ts +5 -5
  39. package/harmony/rn_webview/src/main/ets/generated/index.ets +5 -5
  40. package/harmony/rn_webview/src/main/ets/generated/ts.ts +6 -6
  41. package/harmony/rn_webview/src/main/ets/generated/turboModules/RNCWebView.ts +18 -18
  42. package/harmony/rn_webview/src/main/ets/generated/turboModules/RNCWebViewModule.ts +16 -16
  43. package/harmony/rn_webview/src/main/ets/generated/turboModules/ts.ts +6 -6
  44. package/harmony/rn_webview/src/main/module.json5 +10 -10
  45. package/harmony/rn_webview/src/main/resources/base/element/string.json +39 -39
  46. package/harmony/rn_webview/src/main/resources/en_US/element/string.json +39 -39
  47. package/harmony/rn_webview/src/main/resources/zh_CN/element/string.json +39 -39
  48. package/harmony/rn_webview/src/test/List.test.ets +4 -4
  49. package/harmony/rn_webview/src/test/LocalUnit.test.ets +32 -32
  50. package/harmony/rn_webview/ts.ets +8 -8
  51. package/harmony/rn_webview.har +0 -0
  52. package/lib/NativeRNCWebView.d.ts +10 -0
  53. package/lib/NativeRNCWebView.d.ts.map +1 -0
  54. package/lib/NativeRNCWebView.js +1 -0
  55. package/lib/NativeRNCWebViewModule.d.ts +9 -0
  56. package/lib/NativeRNCWebViewModule.d.ts.map +1 -0
  57. package/lib/NativeRNCWebViewModule.js +1 -0
  58. package/lib/RNCWebViewNativeComponent.d.ts +250 -0
  59. package/lib/RNCWebViewNativeComponent.d.ts.map +1 -0
  60. package/lib/RNCWebViewNativeComponent.js +1 -0
  61. package/lib/WebView.d.ts +4 -0
  62. package/lib/WebView.d.ts.map +1 -0
  63. package/lib/WebView.harmony.d.ts +16 -0
  64. package/lib/WebView.harmony.d.ts.map +1 -0
  65. package/lib/WebView.harmony.js +1 -0
  66. package/lib/WebView.js +1 -0
  67. package/lib/codegenUtils.d.ts +3 -0
  68. package/lib/codegenUtils.d.ts.map +1 -0
  69. package/lib/codegenUtils.js +0 -0
  70. package/lib/index.d.ts +4 -0
  71. package/lib/index.d.ts.map +1 -0
  72. package/lib/index.js +1 -0
  73. package/package.json +101 -101
  74. package/src/NativeRNCWebView.ts +21 -21
  75. package/src/NativeRNCWebViewModule.ts +19 -19
  76. package/src/RNCWebViewNativeComponent.ts +356 -355
  77. package/src/WebView.harmony.tsx +348 -346
  78. package/src/WebView.tsx +10 -10
  79. package/src/codegenUtils.ts +10 -10
  80. package/src/index.ts +10 -10
@@ -0,0 +1,250 @@
1
+ /// <reference types="react" />
2
+ import type { HostComponent, ViewProps } from 'react-native';
3
+ import { DirectEventHandler, Double, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
4
+ export type WebViewNativeEvent = Readonly<{
5
+ url: string;
6
+ loading: boolean;
7
+ title: string;
8
+ canGoBack: boolean;
9
+ canGoForward: boolean;
10
+ lockIdentifier: Double;
11
+ }>;
12
+ export type WebViewCustomMenuSelectionEvent = Readonly<{
13
+ label: string;
14
+ key: string;
15
+ selectedText: string;
16
+ }>;
17
+ export type WebViewMessageEvent = Readonly<{
18
+ url: string;
19
+ loading: boolean;
20
+ title: string;
21
+ canGoBack: boolean;
22
+ canGoForward: boolean;
23
+ lockIdentifier: Double;
24
+ data: string;
25
+ }>;
26
+ export type WebViewOpenWindowEvent = Readonly<{
27
+ targetUrl: string;
28
+ }>;
29
+ export type WebViewHttpErrorEvent = Readonly<{
30
+ url: string;
31
+ loading: boolean;
32
+ title: string;
33
+ canGoBack: boolean;
34
+ canGoForward: boolean;
35
+ lockIdentifier: Double;
36
+ description: string;
37
+ statusCode: Int32;
38
+ }>;
39
+ export type WebViewErrorEvent = Readonly<{
40
+ url: string;
41
+ loading: boolean;
42
+ title: string;
43
+ canGoBack: boolean;
44
+ canGoForward: boolean;
45
+ lockIdentifier: Double;
46
+ domain?: string;
47
+ code: Int32;
48
+ description: string;
49
+ }>;
50
+ export type WebViewNativeProgressEvent = Readonly<{
51
+ url: string;
52
+ loading: boolean;
53
+ title: string;
54
+ canGoBack: boolean;
55
+ canGoForward: boolean;
56
+ lockIdentifier: Double;
57
+ progress: Double;
58
+ }>;
59
+ export type WebViewNavigationEvent = Readonly<{
60
+ url: string;
61
+ loading: boolean;
62
+ title: string;
63
+ canGoBack: boolean;
64
+ canGoForward: boolean;
65
+ lockIdentifier: Double;
66
+ navigationType: 'click' | 'formsubmit' | 'backforward' | 'reload' | 'formresubmit' | 'other';
67
+ mainDocumentURL?: string;
68
+ }>;
69
+ export type ShouldStartLoadRequestEvent = Readonly<{
70
+ url: string;
71
+ loading: boolean;
72
+ title: string;
73
+ canGoBack: boolean;
74
+ canGoForward: boolean;
75
+ lockIdentifier: Double;
76
+ navigationType: 'click' | 'formsubmit' | 'backforward' | 'reload' | 'formresubmit' | 'other';
77
+ mainDocumentURL?: string;
78
+ isTopFrame: boolean;
79
+ }>;
80
+ type ScrollEvent = Readonly<{
81
+ contentInset: {
82
+ bottom: Double;
83
+ left: Double;
84
+ right: Double;
85
+ top: Double;
86
+ };
87
+ contentOffset: {
88
+ y: Double;
89
+ x: Double;
90
+ };
91
+ contentSize: {
92
+ height: Double;
93
+ width: Double;
94
+ };
95
+ layoutMeasurement: {
96
+ height: Double;
97
+ width: Double;
98
+ };
99
+ targetContentOffset?: {
100
+ y: Double;
101
+ x: Double;
102
+ };
103
+ velocity?: {
104
+ y: Double;
105
+ x: Double;
106
+ };
107
+ zoomScale?: Double;
108
+ responderIgnoreScroll?: boolean;
109
+ }>;
110
+ type WebViewRenderProcessGoneEvent = Readonly<{
111
+ didCrash: boolean;
112
+ }>;
113
+ type WebViewDownloadEvent = Readonly<{
114
+ downloadUrl: string;
115
+ }>;
116
+ export interface NativeProps extends ViewProps {
117
+ allowFileAccess?: boolean;
118
+ allowsProtectedMedia?: boolean;
119
+ allowsFullscreenVideo?: boolean;
120
+ androidLayerType?: WithDefault<'none' | 'software' | 'hardware', 'none'>;
121
+ cacheMode?: WithDefault<'LOAD_DEFAULT' | 'LOAD_CACHE_ELSE_NETWORK' | 'LOAD_NO_CACHE' | 'LOAD_CACHE_ONLY', 'LOAD_DEFAULT'>;
122
+ domStorageEnabled?: boolean;
123
+ downloadingMessage?: string;
124
+ forceDarkOn?: boolean;
125
+ geolocationEnabled?: boolean;
126
+ lackPermissionToDownloadMessage?: string;
127
+ messagingModuleName: string;
128
+ minimumFontSize?: Int32;
129
+ mixedContentMode?: WithDefault<'never' | 'always' | 'compatibility', 'never'>;
130
+ nestedScrollEnabled?: boolean;
131
+ onContentSizeChange?: DirectEventHandler<WebViewNativeEvent>;
132
+ onRenderProcessGone?: DirectEventHandler<WebViewRenderProcessGoneEvent>;
133
+ overScrollMode?: string;
134
+ saveFormDataDisabled?: boolean;
135
+ scalesPageToFit?: WithDefault<boolean, true>;
136
+ setBuiltInZoomControls?: WithDefault<boolean, true>;
137
+ setDisplayZoomControls?: boolean;
138
+ setSupportMultipleWindows?: WithDefault<boolean, true>;
139
+ textZoom?: Int32;
140
+ thirdPartyCookiesEnabled?: WithDefault<boolean, true>;
141
+ hasOnScroll?: boolean;
142
+ injectedJavaScriptObject?: string;
143
+ paymentRequestEnabled?: boolean;
144
+ allowingReadAccessToURL?: string;
145
+ allowsBackForwardNavigationGestures?: boolean;
146
+ allowsInlineMediaPlayback?: boolean;
147
+ allowsPictureInPictureMediaPlayback?: boolean;
148
+ allowsAirPlayForMediaPlayback?: boolean;
149
+ allowsLinkPreview?: WithDefault<boolean, true>;
150
+ automaticallyAdjustContentInsets?: WithDefault<boolean, true>;
151
+ ignoreSilentHardwareSwitch?: boolean;
152
+ autoManageStatusBarEnabled?: WithDefault<boolean, true>;
153
+ bounces?: WithDefault<boolean, true>;
154
+ contentInset?: Readonly<{
155
+ top?: Double;
156
+ left?: Double;
157
+ bottom?: Double;
158
+ right?: Double;
159
+ }>;
160
+ contentInsetAdjustmentBehavior?: WithDefault<'never' | 'automatic' | 'scrollableAxes' | 'always', 'never'>;
161
+ contentMode?: WithDefault<'recommended' | 'mobile' | 'desktop', 'recommended'>;
162
+ dataDetectorTypes?: WithDefault<ReadonlyArray<'address' | 'link' | 'calendarEvent' | 'trackingNumber' | 'flightNumber' | 'lookupSuggestion' | 'phoneNumber' | 'all' | 'none'>, 'phoneNumber'>;
163
+ decelerationRate?: Double;
164
+ directionalLockEnabled?: WithDefault<boolean, true>;
165
+ enableApplePay?: boolean;
166
+ hideKeyboardAccessoryView?: boolean;
167
+ keyboardDisplayRequiresUserAction?: WithDefault<boolean, true>;
168
+ limitsNavigationsToAppBoundDomains?: boolean;
169
+ mediaCapturePermissionGrantType?: WithDefault<'prompt' | 'grant' | 'deny' | 'grantIfSameHostElsePrompt' | 'grantIfSameHostElseDeny', 'prompt'>;
170
+ pagingEnabled?: boolean;
171
+ pullToRefreshEnabled?: boolean;
172
+ refreshControlLightMode?: boolean;
173
+ scrollEnabled?: WithDefault<boolean, true>;
174
+ sharedCookiesEnabled?: boolean;
175
+ textInteractionEnabled?: WithDefault<boolean, true>;
176
+ useSharedProcessPool?: WithDefault<boolean, true>;
177
+ onContentProcessDidTerminate?: DirectEventHandler<WebViewNativeEvent>;
178
+ onCustomMenuSelection?: DirectEventHandler<WebViewCustomMenuSelectionEvent>;
179
+ onFileDownload?: DirectEventHandler<WebViewDownloadEvent>;
180
+ menuItems?: ReadonlyArray<Readonly<{
181
+ label: string;
182
+ key: string;
183
+ }>>;
184
+ suppressMenuItems?: Readonly<string>[];
185
+ hasOnFileDownload?: boolean;
186
+ fraudulentWebsiteWarningEnabled?: WithDefault<boolean, true>;
187
+ allowFileAccessFromFileURLs?: boolean;
188
+ allowUniversalAccessFromFileURLs?: boolean;
189
+ applicationNameForUserAgent?: string;
190
+ basicAuthCredential?: Readonly<{
191
+ username: string;
192
+ password: string;
193
+ }>;
194
+ cacheEnabled?: WithDefault<boolean, true>;
195
+ incognito?: boolean;
196
+ injectedJavaScript?: string;
197
+ injectedJavaScriptBeforeContentLoaded?: string;
198
+ injectedJavaScriptForMainFrameOnly?: WithDefault<boolean, true>;
199
+ injectedJavaScriptBeforeContentLoadedForMainFrameOnly?: WithDefault<boolean, true>;
200
+ javaScriptCanOpenWindowsAutomatically?: boolean;
201
+ javaScriptEnabled?: WithDefault<boolean, true>;
202
+ webviewDebuggingEnabled?: boolean;
203
+ mediaPlaybackRequiresUserAction?: WithDefault<boolean, true>;
204
+ messagingEnabled: boolean;
205
+ shouldStartLoadWithRequestEnabled: boolean;
206
+ onLoadingError: DirectEventHandler<WebViewErrorEvent>;
207
+ onLoadingSubResourceError: DirectEventHandler<WebViewErrorEvent>;
208
+ onLoadingFinish: DirectEventHandler<WebViewNavigationEvent>;
209
+ onLoadingProgress: DirectEventHandler<WebViewNativeProgressEvent>;
210
+ onLoadingStart: DirectEventHandler<WebViewNavigationEvent>;
211
+ onHttpError: DirectEventHandler<WebViewHttpErrorEvent>;
212
+ onMessage: DirectEventHandler<WebViewMessageEvent>;
213
+ onOpenWindow?: DirectEventHandler<WebViewOpenWindowEvent>;
214
+ hasOnOpenWindowEvent?: boolean;
215
+ onScroll?: DirectEventHandler<ScrollEvent>;
216
+ onShouldStartLoadWithRequest: DirectEventHandler<ShouldStartLoadRequestEvent>;
217
+ showsHorizontalScrollIndicator?: WithDefault<boolean, true>;
218
+ showsVerticalScrollIndicator?: WithDefault<boolean, true>;
219
+ indicatorStyle?: WithDefault<'default' | 'black' | 'white', 'default'>;
220
+ newSource: Readonly<{
221
+ uri?: string;
222
+ method?: string;
223
+ body?: string;
224
+ headers?: ReadonlyArray<Readonly<{
225
+ name: string;
226
+ value: string;
227
+ }>>;
228
+ html?: string;
229
+ baseUrl?: string;
230
+ }>;
231
+ userAgent?: string;
232
+ renderMode?: WithDefault<'SYNC_RENDER' | 'ASYNC_RENDER', 'SYNC_RENDER'>;
233
+ }
234
+ export interface NativeCommands {
235
+ goBack: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
236
+ goForward: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
237
+ reload: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
238
+ stopLoading: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
239
+ injectJavaScript: (viewRef: React.ElementRef<HostComponent<NativeProps>>, javascript: string) => void;
240
+ requestFocus: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
241
+ postMessage: (viewRef: React.ElementRef<HostComponent<NativeProps>>, data: string) => void;
242
+ loadUrl: (viewRef: React.ElementRef<HostComponent<NativeProps>>, url: string) => void;
243
+ clearFormData: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
244
+ clearCache: (viewRef: React.ElementRef<HostComponent<NativeProps>>, includeDiskFiles: boolean) => void;
245
+ clearHistory: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
246
+ }
247
+ export declare const Commands: NativeCommands;
248
+ declare const _default: HostComponent<NativeProps>;
249
+ export default _default;
250
+ //# sourceMappingURL=RNCWebViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNCWebViewNativeComponent.d.ts","sourceRoot":"","sources":["../src/RNCWebViewNativeComponent.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EACL,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,WAAW,EACZ,MAAM,2CAA2C,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,QAAQ,CAAC;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAA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AC;IACxE,WAAW,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;IAC7E,gBAAgB,EAAE,CAChB,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,EACrD,UAAU,EAAE,MAAM,KACf,IAAI,CAAC;IACV,YAAY,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;IAC9E,WAAW,EAAE,CACX,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,EACrD,IAAI,EAAE,MAAM,KACT,IAAI,CAAC;IAEV,OAAO,EAAE,CACP,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,EACrD,GAAG,EAAE,MAAM,KACR,IAAI,CAAC;IACV,aAAa,EAAE,CACb,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAClD,IAAI,CAAC;IACV,UAAU,EAAE,CACV,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,EACrD,gBAAgB,EAAE,OAAO,KACtB,IAAI,CAAC;IACV,YAAY,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;CAE/E;AAED,eAAO,MAAM,QAAQ,gBAcnB,CAAC;;AAEH,wBAEgC"}
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.Commands=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var Commands=exports.Commands=(0,_codegenNativeCommands.default)({supportedCommands:['goBack','goForward','reload','stopLoading','injectJavaScript','requestFocus','postMessage','loadUrl','clearFormData','clearCache','clearHistory']});var _default=exports.default=(0,_codegenNativeComponent.default)('RNCWebView');
@@ -0,0 +1,4 @@
1
+ import { WebView } from 'react-native-webview';
2
+ export { WebView };
3
+ export default WebView;
4
+ //# sourceMappingURL=WebView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebView.d.ts","sourceRoot":"","sources":["../src/WebView.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,eAAe,OAAO,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { IOSWebViewProps } from 'react-native-webview/src/WebViewTypes';
3
+ declare const WebView: React.ForwardRefExoticComponent<IOSWebViewProps & {
4
+ onLoadSubResourceError: () => void;
5
+ scalesPageToFit: boolean;
6
+ minimumFontSize: number;
7
+ thirdPartyCookiesEnabled: boolean;
8
+ geolocationEnabled: boolean;
9
+ paymentRequestEnabled?: boolean | undefined;
10
+ allowsPictureInPictureMediaPlayback?: boolean | undefined;
11
+ refreshControlLightMode?: boolean | undefined;
12
+ } & React.RefAttributes<{}>> & {
13
+ isFileUploadSupported: () => Promise<boolean>;
14
+ };
15
+ export default WebView;
16
+ //# sourceMappingURL=WebView.harmony.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebView.harmony.d.ts","sourceRoot":"","sources":["../src/WebView.harmony.tsx"],"names":[],"mappings":"AAMA,OAAO,KAKN,MAAM,OAAO,CAAC;AAaf,OAAO,EACL,eAAe,EAGhB,MAAM,uCAAuC,CAAC;AA8T/C,QAAA,MAAM,OAAO;4BApSqE,MAAI,IAAI;qBAAmB,OAAO;qBAAmB,MAAM;8BAA4B,OAAO;wBAAsB,OAAO;;;;;iCAkS1K,QAAQ,OAAO,CAAC;CAEuB,CAAC;AAE3E,eAAe,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _invariant=_interopRequireDefault(require("invariant"));var _RNCWebViewNativeComponent=_interopRequireWildcard(require("./RNCWebViewNativeComponent"));var _NativeRNCWebViewModule=_interopRequireDefault(require("./NativeRNCWebViewModule"));var _WebViewShared=require("react-native-webview/src/WebViewShared");var _WebView=_interopRequireDefault(require("react-native-webview/src/WebView.styles"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["fraudulentWebsiteWarningEnabled","javaScriptEnabled","cacheEnabled","originWhitelist","applicationNameForUserAgent","ignoreSilentHardwareSwitch","minimumFontSize","useSharedProcessPool","textInteractionEnabled","injectedJavaScript","injectedJavaScriptBeforeContentLoaded","injectedJavaScriptObject","menuItems","injectedJavaScriptForMainFrameOnly","injectedJavaScriptBeforeContentLoadedForMainFrameOnly","thirdPartyCookiesEnabled","geolocationEnabled","webviewDebuggingEnabled","paymentRequestEnabled","startInLoadingState","onLoadSubResourceError","onNavigationStateChange","onLoadStart","onCustomMenuSelection","onError","onLoad","onLoadEnd","onLoadProgress","onScroll","onContentProcessDidTerminate","onFileDownload","onHttpError","onMessage","onOpenWindow","renderLoading","renderError","style","containerStyle","source","nativeConfig","allowsInlineMediaPlayback","allowsPictureInPictureMediaPlayback","allowsAirPlayForMediaPlayback","mediaPlaybackRequiresUserAction","dataDetectorTypes","incognito","decelerationRate","onShouldStartLoadWithRequest","onStartShouldSetResponder","onMoveShouldSetResponderCapture","pullToRefreshEnabled","refreshControlLightMode","onResponderMove"];var _this=this,_jsxFileName="/devcloud/slavespace/usr1/71f1857ecda848c19fdf0a5bb24e22df/harmony_code/codearts_workspace/rntpc_react-native-webview/src/WebView.harmony.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var resolveAssetSource=_reactNative.Image.resolveAssetSource;var processDecelerationRate=function processDecelerationRate(decelerationRate){var newDecelerationRate=decelerationRate;if(newDecelerationRate==='normal'){newDecelerationRate=0.998;}else if(newDecelerationRate==='fast'){newDecelerationRate=0.99;}return newDecelerationRate;};var useWarnIfChanges=function useWarnIfChanges(value,name){var ref=(0,_react.useRef)(value);if(ref.current!==value){console.warn("Changes to property "+name+" do nothing after the initial render.");ref.current=value;}};var WebViewComponent=(0,_react.forwardRef)(function(_ref,ref){var _otherProps$scrollEna,_otherProps$scalesPag;var _ref$fraudulentWebsit=_ref.fraudulentWebsiteWarningEnabled,fraudulentWebsiteWarningEnabled=_ref$fraudulentWebsit===void 0?true:_ref$fraudulentWebsit,_ref$javaScriptEnable=_ref.javaScriptEnabled,javaScriptEnabled=_ref$javaScriptEnable===void 0?true:_ref$javaScriptEnable,_ref$cacheEnabled=_ref.cacheEnabled,cacheEnabled=_ref$cacheEnabled===void 0?true:_ref$cacheEnabled,_ref$originWhitelist=_ref.originWhitelist,originWhitelist=_ref$originWhitelist===void 0?_WebViewShared.defaultOriginWhitelist:_ref$originWhitelist,applicationNameForUserAgent=_ref.applicationNameForUserAgent,ignoreSilentHardwareSwitch=_ref.ignoreSilentHardwareSwitch,minimumFontSize=_ref.minimumFontSize,_ref$useSharedProcess=_ref.useSharedProcessPool,useSharedProcessPool=_ref$useSharedProcess===void 0?true:_ref$useSharedProcess,_ref$textInteractionE=_ref.textInteractionEnabled,textInteractionEnabled=_ref$textInteractionE===void 0?true:_ref$textInteractionE,injectedJavaScript=_ref.injectedJavaScript,injectedJavaScriptBeforeContentLoaded=_ref.injectedJavaScriptBeforeContentLoaded,injectedJavaScriptObject=_ref.injectedJavaScriptObject,menuItems=_ref.menuItems,_ref$injectedJavaScri=_ref.injectedJavaScriptForMainFrameOnly,injectedJavaScriptForMainFrameOnly=_ref$injectedJavaScri===void 0?true:_ref$injectedJavaScri,_ref$injectedJavaScri2=_ref.injectedJavaScriptBeforeContentLoadedForMainFrameOnly,injectedJavaScriptBeforeContentLoadedForMainFrameOnly=_ref$injectedJavaScri2===void 0?true:_ref$injectedJavaScri2,_ref$thirdPartyCookie=_ref.thirdPartyCookiesEnabled,thirdPartyCookiesEnabled=_ref$thirdPartyCookie===void 0?false:_ref$thirdPartyCookie,_ref$geolocationEnabl=_ref.geolocationEnabled,geolocationEnabled=_ref$geolocationEnabl===void 0?false:_ref$geolocationEnabl,_ref$webviewDebugging=_ref.webviewDebuggingEnabled,webviewDebuggingEnabled=_ref$webviewDebugging===void 0?false:_ref$webviewDebugging,_ref$paymentRequestEn=_ref.paymentRequestEnabled,paymentRequestEnabled=_ref$paymentRequestEn===void 0?false:_ref$paymentRequestEn,startInLoadingState=_ref.startInLoadingState,onLoadSubResourceError=_ref.onLoadSubResourceError,onNavigationStateChange=_ref.onNavigationStateChange,onLoadStart=_ref.onLoadStart,onCustomMenuSelection=_ref.onCustomMenuSelection,onError=_ref.onError,onLoad=_ref.onLoad,onLoadEnd=_ref.onLoadEnd,onLoadProgress=_ref.onLoadProgress,onScroll=_ref.onScroll,onContentProcessDidTerminateProp=_ref.onContentProcessDidTerminate,onFileDownload=_ref.onFileDownload,onHttpErrorProp=_ref.onHttpError,onMessageProp=_ref.onMessage,onOpenWindowProp=_ref.onOpenWindow,renderLoading=_ref.renderLoading,renderError=_ref.renderError,style=_ref.style,containerStyle=_ref.containerStyle,source=_ref.source,nativeConfig=_ref.nativeConfig,allowsInlineMediaPlayback=_ref.allowsInlineMediaPlayback,allowsPictureInPictureMediaPlayback=_ref.allowsPictureInPictureMediaPlayback,allowsAirPlayForMediaPlayback=_ref.allowsAirPlayForMediaPlayback,_ref$mediaPlaybackReq=_ref.mediaPlaybackRequiresUserAction,mediaPlaybackRequiresUserAction=_ref$mediaPlaybackReq===void 0?true:_ref$mediaPlaybackReq,dataDetectorTypes=_ref.dataDetectorTypes,incognito=_ref.incognito,decelerationRateProp=_ref.decelerationRate,onShouldStartLoadWithRequestProp=_ref.onShouldStartLoadWithRequest,_onStartShouldSetResponder=_ref.onStartShouldSetResponder,_onMoveShouldSetResponderCapture=_ref.onMoveShouldSetResponderCapture,_ref$pullToRefreshEna=_ref.pullToRefreshEnabled,pullToRefreshEnabled=_ref$pullToRefreshEna===void 0?false:_ref$pullToRefreshEna,_ref$refreshControlLi=_ref.refreshControlLightMode,refreshControlLightMode=_ref$refreshControlLi===void 0?false:_ref$refreshControlLi,_onResponderMove=_ref.onResponderMove,otherProps=(0,_objectWithoutProperties2.default)(_ref,_excluded);var webViewRef=(0,_react.useRef)(null);var onShouldStartLoadWithRequestCallback=(0,_react.useCallback)(function(shouldStart,_url){var lockIdentifier=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;_NativeRNCWebViewModule.default.shouldStartLoadWithLockIdentifier(shouldStart,lockIdentifier);},[]);var _useWebViewLogic=(0,_WebViewShared.useWebViewLogic)({onNavigationStateChange:onNavigationStateChange,onLoad:onLoad,onError:onError,onLoadSubResourceError:onLoadSubResourceError,onHttpErrorProp:onHttpErrorProp,onLoadEnd:onLoadEnd,onLoadProgress:onLoadProgress,onScroll:onScroll,onLoadStart:onLoadStart,onMessageProp:onMessageProp,onOpenWindowProp:onOpenWindowProp,startInLoadingState:startInLoadingState,originWhitelist:originWhitelist,ignoreSilentHardwareSwitch:ignoreSilentHardwareSwitch,allowsPictureInPictureMediaPlayback:allowsPictureInPictureMediaPlayback,minimumFontSize:minimumFontSize,onShouldStartLoadWithRequestProp:onShouldStartLoadWithRequestProp,onShouldStartLoadWithRequestCallback:onShouldStartLoadWithRequestCallback,onContentProcessDidTerminateProp:onContentProcessDidTerminateProp}),onLoadingStart=_useWebViewLogic.onLoadingStart,onShouldStartLoadWithRequest=_useWebViewLogic.onShouldStartLoadWithRequest,onMessage=_useWebViewLogic.onMessage,viewState=_useWebViewLogic.viewState,setViewState=_useWebViewLogic.setViewState,lastErrorEvent=_useWebViewLogic.lastErrorEvent,onHttpError=_useWebViewLogic.onHttpError,onLoadingError=_useWebViewLogic.onLoadingError,onLoadingSubResourceError=_useWebViewLogic.onLoadingSubResourceError,onLoadingFinish=_useWebViewLogic.onLoadingFinish,onLoadingProgress=_useWebViewLogic.onLoadingProgress,onOpenWindow=_useWebViewLogic.onOpenWindow,onContentProcessDidTerminate=_useWebViewLogic.onContentProcessDidTerminate;(0,_react.useImperativeHandle)(ref,function(){return{goForward:function goForward(){return webViewRef.current&&_RNCWebViewNativeComponent.Commands.goForward(webViewRef.current);},goBack:function goBack(){return webViewRef.current&&_RNCWebViewNativeComponent.Commands.goBack(webViewRef.current);},reload:function reload(){setViewState('LOADING');if(webViewRef.current){_RNCWebViewNativeComponent.Commands.reload(webViewRef.current);}},stopLoading:function stopLoading(){return webViewRef.current&&_RNCWebViewNativeComponent.Commands.stopLoading(webViewRef.current);},postMessage:function postMessage(data){return webViewRef.current&&_RNCWebViewNativeComponent.Commands.postMessage(webViewRef.current,data);},injectJavaScript:function injectJavaScript(data){return webViewRef.current&&_RNCWebViewNativeComponent.Commands.injectJavaScript(webViewRef.current,data);},requestFocus:function requestFocus(){return webViewRef.current&&_RNCWebViewNativeComponent.Commands.requestFocus(webViewRef.current);},clearCache:function clearCache(includeDiskFiles){return webViewRef.current&&_RNCWebViewNativeComponent.Commands.clearCache(webViewRef.current,includeDiskFiles);},clearHistory:function clearHistory(){return webViewRef.current&&_RNCWebViewNativeComponent.Commands.clearHistory(webViewRef.current);},loadUrl:function loadUrl(data){return webViewRef.current&&_RNCWebViewNativeComponent.Commands.loadUrl(webViewRef.current,data);}};},[setViewState,webViewRef]);useWarnIfChanges(allowsInlineMediaPlayback,'allowsInlineMediaPlayback');useWarnIfChanges(allowsPictureInPictureMediaPlayback,'allowsPictureInPictureMediaPlayback');useWarnIfChanges(allowsAirPlayForMediaPlayback,'allowsAirPlayForMediaPlayback');useWarnIfChanges(incognito,'incognito');useWarnIfChanges(mediaPlaybackRequiresUserAction,'mediaPlaybackRequiresUserAction');useWarnIfChanges(dataDetectorTypes,'dataDetectorTypes');var otherView=null;if(viewState==='LOADING'){otherView=(renderLoading||_WebViewShared.defaultRenderLoading)();}else if(viewState==='ERROR'){var _lastErrorEvent$code,_lastErrorEvent$descr;(0,_invariant.default)(lastErrorEvent!=null,'lastErrorEvent expected to be non-null');otherView=(renderError||_WebViewShared.defaultRenderError)(lastErrorEvent==null?void 0:lastErrorEvent.domain,(_lastErrorEvent$code=lastErrorEvent==null?void 0:lastErrorEvent.code)!=null?_lastErrorEvent$code:0,(_lastErrorEvent$descr=lastErrorEvent==null?void 0:lastErrorEvent.description)!=null?_lastErrorEvent$descr:'');}else if(viewState!=='IDLE'){console.error("RNCWebView invalid state encountered: "+viewState);}var webViewStyles=[_WebView.default.container,_WebView.default.webView,style];var webViewContainerStyle=[_WebView.default.container,containerStyle];var decelerationRate=processDecelerationRate(decelerationRateProp);var NativeWebView=(nativeConfig==null?void 0:nativeConfig.component)||_RNCWebViewNativeComponent.default;var sourceResolved=resolveAssetSource(source);var newSource=typeof sourceResolved==='object'?Object.entries(sourceResolved).reduce(function(prev,_ref2){var _ref3=(0,_slicedToArray2.default)(_ref2,2),currKey=_ref3[0],currValue=_ref3[1];return Object.assign({},prev,(0,_defineProperty2.default)({},currKey,currKey==='headers'&&currValue&&typeof currValue==='object'?Object.entries(currValue).map(function(_ref4){var _ref5=(0,_slicedToArray2.default)(_ref4,2),key=_ref5[0],value=_ref5[1];return{name:key,value:value};}):currValue));},{}):sourceResolved;var webView=(0,_jsxRuntime.jsx)(NativeWebView,Object.assign({},otherProps,{scrollEnabled:(_otherProps$scrollEna=otherProps.scrollEnabled)!=null?_otherProps$scrollEna:true,ignoreSilentHardwareSwitch:ignoreSilentHardwareSwitch,minimumFontSize:minimumFontSize,scalesPageToFit:(_otherProps$scalesPag=otherProps.scalesPageToFit)!=null?_otherProps$scalesPag:true,fraudulentWebsiteWarningEnabled:fraudulentWebsiteWarningEnabled,javaScriptEnabled:javaScriptEnabled,onCustomMenuSelection:onCustomMenuSelection,applicationNameForUserAgent:applicationNameForUserAgent,cacheEnabled:cacheEnabled,useSharedProcessPool:useSharedProcessPool,textInteractionEnabled:textInteractionEnabled,geolocationEnabled:geolocationEnabled,decelerationRate:decelerationRate,messagingEnabled:typeof onMessageProp==='function',messagingModuleName:"",onLoadingError:onLoadingError,onLoadingSubResourceError:onLoadingSubResourceError,onLoadingFinish:onLoadingFinish,onLoadingProgress:onLoadingProgress,onScroll:onScroll,onFileDownload:onFileDownload,onLoadingStart:onLoadingStart,onHttpError:onHttpError,onMessage:onMessage,onOpenWindow:onOpenWindowProp&&onOpenWindow,hasOnOpenWindowEvent:onOpenWindowProp!==undefined,onShouldStartLoadWithRequest:onShouldStartLoadWithRequest,onContentProcessDidTerminate:onContentProcessDidTerminate,thirdPartyCookiesEnabled:thirdPartyCookiesEnabled,pullToRefreshEnabled:pullToRefreshEnabled,refreshControlLightMode:refreshControlLightMode,injectedJavaScript:injectedJavaScript,injectedJavaScriptBeforeContentLoaded:injectedJavaScriptBeforeContentLoaded,injectedJavaScriptForMainFrameOnly:injectedJavaScriptForMainFrameOnly,injectedJavaScriptBeforeContentLoadedForMainFrameOnly:injectedJavaScriptBeforeContentLoadedForMainFrameOnly,injectedJavaScriptObject:JSON.stringify(injectedJavaScriptObject),dataDetectorTypes:!dataDetectorTypes||Array.isArray(dataDetectorTypes)?dataDetectorTypes:[dataDetectorTypes],allowsAirPlayForMediaPlayback:allowsAirPlayForMediaPlayback,allowsPictureInPictureMediaPlayback:allowsPictureInPictureMediaPlayback,allowsInlineMediaPlayback:allowsInlineMediaPlayback,incognito:incognito,mediaPlaybackRequiresUserAction:mediaPlaybackRequiresUserAction,menuItems:menuItems,newSource:newSource,style:webViewStyles,webviewDebuggingEnabled:webviewDebuggingEnabled,paymentRequestEnabled:paymentRequestEnabled,hasOnFileDownload:!!onFileDownload,ref:webViewRef,source:sourceResolved},nativeConfig==null?void 0:nativeConfig.props),"webViewKey");return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:webViewContainerStyle,onStartShouldSetResponder:function onStartShouldSetResponder(e){return _onStartShouldSetResponder?_onStartShouldSetResponder(e):false;},onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(e){return _onMoveShouldSetResponderCapture?_onMoveShouldSetResponderCapture(e):false;},onResponderMove:function onResponderMove(e){return _onResponderMove?_onResponderMove(e):null;},children:[webView,otherView]});});var isFileUploadSupported=function(){var _ref6=(0,_asyncToGenerator2.default)(function*(){return true;});return function isFileUploadSupported(){return _ref6.apply(this,arguments);};}();var WebView=Object.assign(WebViewComponent,{isFileUploadSupported:isFileUploadSupported});var _default=exports.default=WebView;
package/lib/WebView.js ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"WebView",{enumerable:true,get:function get(){return _reactNativeWebview.WebView;}});exports.default=void 0;var _reactNativeWebview=require("react-native-webview");var _default=exports.default=_reactNativeWebview.WebView;
@@ -0,0 +1,3 @@
1
+ export type UnsafeMixed<T> = T;
2
+ export type OptionalProp<T> = UnsafeMixed<T>;
3
+ //# sourceMappingURL=codegenUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegenUtils.d.ts","sourceRoot":"","sources":["../src/codegenUtils.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC;AAI/B,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC"}
File without changes
package/lib/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import WebView from './WebView';
2
+ export { WebView };
3
+ export default WebView;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,eAAe,OAAO,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"WebView",{enumerable:true,get:function get(){return _WebView.default;}});exports.default=void 0;var _WebView=_interopRequireDefault(require("./WebView"));var _default=exports.default=_WebView.default;
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
- {
2
- "name": "@react-native-ohos/react-native-webview",
3
- "description": "React Native WebView component for harmony",
4
- "react-native": "src/index",
5
- "source": "src/index",
6
- "typings": "index.d.ts",
7
- "author": "Jamon Holmgren <jamon@infinite.red>",
8
- "contributors": [
9
- "Thibault Malbranche <malbranche.thibault@gmail.com>"
10
- ],
11
- "license": "MIT",
12
- "version": "13.16.2-beta.2",
13
- "homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-webview/tree/br_rnoh0.77#readme",
14
- "scripts": {
15
- "pack": "tsc --noEmit false --emitDeclarationOnly --declaration --rootDir src --outDir lib && babel --extensions \".ts,.tsx\" --out-dir lib src && npm pack --ignore-scripts",
16
- "macos": "react-native run-macos --scheme WebviewExample --project-path example/macos",
17
- "start": "react-native start",
18
- "windows": "install-windows-test-app --project-directory example/windows && react-native run-windows --root example --arch x64",
19
- "ci": "CI=true && yarn lint",
20
- "ci:publish": "yarn semantic-release",
21
- "lint": "yarn tsc --noEmit && yarn eslint ./src --ext .ts,.tsx,.js,.jsx",
22
- "build": "babel --extensions \".ts,.tsx\" --out-dir lib src",
23
- "prepare:types": "tsc --noEmit false --emitDeclarationOnly --declaration --rootDir src --outDir lib",
24
- "prepare": "yarn prepare:types && yarn build",
25
- "appium": "appium",
26
- "test:windows": "yarn jest --setupFiles=./jest-setups/jest.setup.js",
27
- "add:macos": "yarn add react-native-macos@0.73.17",
28
- "codegen-lib": "react-native codegen-lib-harmony --no-safety-check --npm-package-name react-native-webview --cpp-output-path ./harmony/rn_webview/src/main/cpp/generated --ets-output-path ./harmony/rn_webview/src/main/ets/generated --turbo-modules-spec-paths ./src --arkts-components-spec-paths ./src"
29
- },
30
- "rn-docs": {
31
- "title": "Webview",
32
- "type": "Component"
33
- },
34
- "peerDependencies": {
35
- "react": "*",
36
- "react-native": "*"
37
- },
38
- "dependencies": {
39
- "escape-string-regexp": "^4.0.0",
40
- "invariant": "2.2.4",
41
- "react-native-webview": "13.16.0"
42
- },
43
- "devDependencies": {
44
- "@babel/cli": "^7.20.0",
45
- "@babel/core": "^7.20.0",
46
- "@babel/runtime": "^7.20.0",
47
- "@callstack/react-native-visionos": "0.73.8",
48
- "@react-native/babel-preset": "0.73.21",
49
- "@react-native/eslint-config": "0.73.2",
50
- "@react-native/metro-config": "0.73.5",
51
- "@react-native/typescript-config": "0.73.1",
52
- "@react-native-oh/react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@0.82.30",
53
- "@rnx-kit/metro-config": "1.3.15",
54
- "@semantic-release/git": "7.0.16",
55
- "@types/invariant": "^2.2.30",
56
- "@types/jest": "^29.5.12",
57
- "@types/react": "18.2.61",
58
- "@types/selenium-webdriver": "4.0.9",
59
- "@types/minimatch": "^5.1.2",
60
- "appium": "1.17.0",
61
- "eslint": "8.57.0",
62
- "jest": "^29.6.3",
63
- "metro-react-native-babel-preset": "0.73.7",
64
- "prettier": "2.8.8",
65
- "react": "18.3.1",
66
- "react-native": "0.77.1",
67
- "react-native-macos": "0.73.17",
68
- "react-native-test-app": "3.7.2",
69
- "react-native-windows": "0.73.8",
70
- "selenium-appium": "1.0.2",
71
- "selenium-webdriver": "4.0.0-alpha.7",
72
- "semantic-release": "15.13.24",
73
- "typescript": "5.1.3",
74
- "winappdriver": "^0.0.7"
75
- },
76
- "repository": {
77
- "type": "git",
78
- "url": "https://gitcode.com/openharmony-sig/rntpc_react-native-webview.git"
79
- },
80
- "files": [
81
- "src",
82
- "lib",
83
- "harmony",
84
- "react-native-webview.podspec",
85
- "!**/__tests__",
86
- "!**/__fixtures__",
87
- "!**/__mocks__"
88
- ],
89
- "keywords": [
90
- "react-native",
91
- "harmony"
92
- ],
93
- "publishConfig": {
94
- "registry": "https://registry.npmjs.org/",
95
- "access": "public"
96
- },
97
- "harmony": {
98
- "alias": "react-native-webview"
99
- },
100
- "packageManager": "yarn@1.22.19"
101
- }
1
+ {
2
+ "name": "@react-native-ohos/react-native-webview",
3
+ "description": "React Native WebView component for harmony",
4
+ "react-native": "src/index",
5
+ "source": "src/index",
6
+ "typings": "index.d.ts",
7
+ "author": "Jamon Holmgren <jamon@infinite.red>",
8
+ "contributors": [
9
+ "Thibault Malbranche <malbranche.thibault@gmail.com>"
10
+ ],
11
+ "license": "MIT",
12
+ "version": "13.16.2-beta.5",
13
+ "homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-webview/tree/br_rnoh0.77#readme",
14
+ "scripts": {
15
+ "pack": "tsc --noEmit false --emitDeclarationOnly --declaration --rootDir src --outDir lib && babel --extensions \".ts,.tsx\" --out-dir lib src && npm pack --ignore-scripts",
16
+ "macos": "react-native run-macos --scheme WebviewExample --project-path example/macos",
17
+ "start": "react-native start",
18
+ "windows": "install-windows-test-app --project-directory example/windows && react-native run-windows --root example --arch x64",
19
+ "ci": "CI=true && yarn lint",
20
+ "ci:publish": "yarn semantic-release",
21
+ "lint": "yarn tsc --noEmit && yarn eslint ./src --ext .ts,.tsx,.js,.jsx",
22
+ "build": "babel --extensions \".ts,.tsx\" --out-dir lib src",
23
+ "prepare:types": "tsc --noEmit false --emitDeclarationOnly --declaration --rootDir src --outDir lib",
24
+ "prepare": "yarn prepare:types && yarn build",
25
+ "appium": "appium",
26
+ "test:windows": "yarn jest --setupFiles=./jest-setups/jest.setup.js",
27
+ "add:macos": "yarn add react-native-macos@0.73.17",
28
+ "codegen-lib": "react-native codegen-lib-harmony --no-safety-check --npm-package-name react-native-webview --cpp-output-path ./harmony/rn_webview/src/main/cpp/generated --ets-output-path ./harmony/rn_webview/src/main/ets/generated --turbo-modules-spec-paths ./src --arkts-components-spec-paths ./src"
29
+ },
30
+ "rn-docs": {
31
+ "title": "Webview",
32
+ "type": "Component"
33
+ },
34
+ "peerDependencies": {
35
+ "react": "*",
36
+ "react-native": "*"
37
+ },
38
+ "dependencies": {
39
+ "escape-string-regexp": "^4.0.0",
40
+ "invariant": "2.2.4",
41
+ "react-native-webview": "13.16.0"
42
+ },
43
+ "devDependencies": {
44
+ "@babel/cli": "^7.20.0",
45
+ "@babel/core": "^7.20.0",
46
+ "@babel/runtime": "^7.20.0",
47
+ "@callstack/react-native-visionos": "0.73.8",
48
+ "@react-native/babel-preset": "0.73.21",
49
+ "@react-native/eslint-config": "0.73.2",
50
+ "@react-native/metro-config": "0.73.5",
51
+ "@react-native/typescript-config": "0.73.1",
52
+ "@react-native-oh/react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@0.82.30",
53
+ "@rnx-kit/metro-config": "1.3.15",
54
+ "@semantic-release/git": "7.0.16",
55
+ "@types/invariant": "^2.2.30",
56
+ "@types/jest": "^29.5.12",
57
+ "@types/react": "18.2.61",
58
+ "@types/selenium-webdriver": "4.0.9",
59
+ "@types/minimatch": "^5.1.2",
60
+ "appium": "1.17.0",
61
+ "eslint": "8.57.0",
62
+ "jest": "^29.6.3",
63
+ "metro-react-native-babel-preset": "0.73.7",
64
+ "prettier": "2.8.8",
65
+ "react": "18.3.1",
66
+ "react-native": "0.77.1",
67
+ "react-native-macos": "0.73.17",
68
+ "react-native-test-app": "3.7.2",
69
+ "react-native-windows": "0.73.8",
70
+ "selenium-appium": "1.0.2",
71
+ "selenium-webdriver": "4.0.0-alpha.7",
72
+ "semantic-release": "15.13.24",
73
+ "typescript": "5.1.3",
74
+ "winappdriver": "^0.0.7"
75
+ },
76
+ "repository": {
77
+ "type": "git",
78
+ "url": "https://gitcode.com/openharmony-sig/rntpc_react-native-webview.git"
79
+ },
80
+ "files": [
81
+ "src",
82
+ "lib",
83
+ "harmony",
84
+ "react-native-webview.podspec",
85
+ "!**/__tests__",
86
+ "!**/__fixtures__",
87
+ "!**/__mocks__"
88
+ ],
89
+ "keywords": [
90
+ "react-native",
91
+ "harmony"
92
+ ],
93
+ "publishConfig": {
94
+ "registry": "https://registry.npmjs.org/",
95
+ "access": "public"
96
+ },
97
+ "harmony": {
98
+ "alias": "react-native-webview"
99
+ },
100
+ "packageManager": "yarn@1.22.19"
101
+ }
@@ -1,22 +1,22 @@
1
- /*
2
- * Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
3
- * Use of this source code is governed by a MIT license that can be
4
- * found in the LICENSE file.
5
- */
6
-
7
- import type { TurboModule } from 'react-native';
8
- import { TurboModuleRegistry } from 'react-native';
9
- import { Double } from 'react-native/Libraries/Types/CodegenTypes';
10
-
11
- export interface Spec extends TurboModule {
12
- readonly getConstants: () => {};
13
-
14
- // your module methods go here, for example:
15
- isFileUploadSupported(): Promise<boolean>;
16
- shouldStartLoadWithLockIdentifier(
17
- shouldStart: boolean,
18
- lockIdentifier: Double
19
- ): void;
20
- }
21
-
1
+ /*
2
+ * Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
3
+ * Use of this source code is governed by a MIT license that can be
4
+ * found in the LICENSE file.
5
+ */
6
+
7
+ import type { TurboModule } from 'react-native';
8
+ import { TurboModuleRegistry } from 'react-native';
9
+ import { Double } from 'react-native/Libraries/Types/CodegenTypes';
10
+
11
+ export interface Spec extends TurboModule {
12
+ readonly getConstants: () => {};
13
+
14
+ // your module methods go here, for example:
15
+ isFileUploadSupported(): Promise<boolean>;
16
+ shouldStartLoadWithLockIdentifier(
17
+ shouldStart: boolean,
18
+ lockIdentifier: Double
19
+ ): void;
20
+ }
21
+
22
22
  export default TurboModuleRegistry.getEnforcing<Spec>('RNCWebView');