first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

5
node_modules/@expo/dom-webview/build/DomWebView.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import * as React from 'react';
import type { DomWebViewProps, DomWebViewRef } from './DomWebView.types';
declare const WebView: React.ForwardRefExoticComponent<DomWebViewProps & React.RefAttributes<DomWebViewRef>>;
export default WebView;
//# sourceMappingURL=DomWebView.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DomWebView.d.ts","sourceRoot":"","sources":["../src/DomWebView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AASzE,QAAA,MAAM,OAAO,uFAwBZ,CAAC;AAEF,eAAe,OAAO,CAAC"}

View File

@@ -0,0 +1,157 @@
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
export interface DomWebViewProps extends ViewProps, AndroidProps, IosScrollViewProps, UnsupportedWebViewProps {
/**
* Loads static html or a uri (with optional headers) in the WebView.
*/
source: DomWebViewSource;
/**
* Stylesheet object to set the style of the container view.
*/
containerStyle?: StyleProp<ViewStyle>;
/**
* Set this to provide JavaScript that will be injected into the web page
* once the webview is initialized but before the view loads any content.
*/
injectedJavaScriptBeforeContentLoaded?: string;
/**
* Enables WebView remote debugging using Chrome (Android) or Safari (iOS).
*/
webviewDebuggingEnabled?: boolean;
/**
* Function that is invoked when the webview calls `window.ReactNativeWebView.postMessage`.
* Setting this property will inject this global into your webview.
*
* `window.ReactNativeWebView.postMessage` accepts one argument, `data`, which will be
* available on the event object, `event.nativeEvent.data`. `data` must be a string.
*/
onMessage?: (event: {
nativeEvent: MessageEventData;
}) => void;
/**
* Boolean value that determines whether a horizontal scroll indicator is
* shown in the `WebView`. The default value is `true`.
*/
showsHorizontalScrollIndicator?: boolean;
/**
* Boolean value that determines whether a vertical scroll indicator is
* shown in the `WebView`. The default value is `true`.
*/
showsVerticalScrollIndicator?: boolean;
}
interface IosScrollViewProps {
/**
* Boolean value that determines whether the web view bounces
* when it reaches the edge of the content. The default value is `true`.
* @platform ios
*/
bounces?: boolean;
/**
* A floating-point number that determines how quickly the scroll view
* decelerates after the user lifts their finger. You may also use the
* string shortcuts `"normal"` and `"fast"` which match the underlying iOS
* settings for `UIScrollViewDecelerationRateNormal` and
* `UIScrollViewDecelerationRateFast` respectively:
*
* - normal: 0.998
* - fast: 0.99 (the default for iOS web view)
* @platform ios
*/
decelerationRate?: 'normal' | 'fast' | number;
/**
* Boolean value that determines whether scrolling is enabled in the
* `WebView`. The default value is `true`.
* @platform ios
*/
scrollEnabled?: boolean;
/**
* If the value of this property is true, the scroll view stops on multiples
* of the scroll views bounds when the user scrolls.
* The default value is false.
* @platform ios
*/
pagingEnabled?: boolean;
/**
* Controls whether to adjust the scroll indicator inset for web views that are
* placed behind a navigation bar, tab bar, or toolbar. The default value
* is `false`. (iOS 13+)
* @platform ios
*/
automaticallyAdjustsScrollIndicatorInsets?: boolean;
/**
* The amount by which the web view content is inset from the edges of
* the scroll view. Defaults to {top: 0, left: 0, bottom: 0, right: 0}.
* @platform ios
*/
contentInset?: ContentInsetProp;
/**
* This property specifies how the safe area insets are used to modify the
* content area of the scroll view. The default value of this property is
* "never". Available on iOS 11 and later.
*/
contentInsetAdjustmentBehavior?: 'automatic' | 'scrollableAxes' | 'never' | 'always';
/**
* A Boolean value that determines whether scrolling is disabled in a particular direction.
* The default value is `true`.
* @platform ios
*/
directionalLockEnabled?: boolean;
}
interface AndroidProps {
/**
* Allows to scroll inside the webview when used inside a scrollview.
* Behaviour already existing on iOS.
*
* @platform android
* @default true
*/
nestedScrollEnabled?: boolean;
}
/**
* Unsupported RNC WebView props that to suppress TypeScript errors.
*/
interface UnsupportedWebViewProps {
originWhitelist?: string[];
allowFileAccess?: boolean;
allowFileAccessFromFileURLs?: boolean;
allowsAirPlayForMediaPlayback?: boolean;
allowsFullscreenVideo?: boolean;
automaticallyAdjustContentInsets?: boolean;
}
export type DomWebViewRef = {
/**
* Scrolls to a given x, y offset, either immediately or with a smooth animation.
* Syntax:
*
* scrollTo(options: {x: number = 0; y: number = 0; animated: boolean = true})
*/
scrollTo({ x, y, animated, }: {
x?: number | undefined;
y?: number | undefined;
animated?: boolean | undefined;
}): void;
/**
* Injects a JavaScript string into the `WebView` and executes it.
*/
injectJavaScript: (script: string) => void;
};
export interface DomWebViewSource {
/**
* The URI to load in the `WebView`. Can be a local or remote file.
*/
uri: string;
}
export interface ContentInsetProp {
top?: number;
left?: number;
bottom?: number;
right?: number;
}
interface BaseEventData {
url: string;
title: string;
}
interface MessageEventData extends BaseEventData {
data: string;
}
export {};
//# sourceMappingURL=DomWebView.types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DomWebView.types.d.ts","sourceRoot":"","sources":["../src/DomWebView.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,WAAW,eACf,SAAQ,SAAS,EACf,YAAY,EACZ,kBAAkB,EAClB,uBAAuB;IACzB;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC;;;OAGG;IACH,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAE/C;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,gBAAgB,CAAA;KAAE,KAAK,IAAI,CAAC;IAE/D;;;OAGG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC;;;OAGG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,UAAU,kBAAkB;IAC1B;;;;OAI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IAC/B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,gBAAiB,SAAQ,aAAa;IAC9C,IAAI,EAAE,MAAM,CAAC;CACd"}

View File

@@ -0,0 +1,5 @@
import * as React from 'react';
import { DomWebViewProps } from './DomWebView.types';
declare const WebView: React.ForwardRefExoticComponent<DomWebViewProps & React.RefAttributes<object>>;
export default WebView;
//# sourceMappingURL=DomWebView.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DomWebView.web.d.ts","sourceRoot":"","sources":["../src/DomWebView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,QAAA,MAAM,OAAO,gFAeZ,CAAC;AAEF,eAAe,OAAO,CAAC"}

View File

@@ -0,0 +1,2 @@
export declare function evalJsForWebViewAsync(webViewId: number, source: string): void;
//# sourceMappingURL=DomWebViewModule.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DomWebViewModule.d.ts","sourceRoot":"","sources":["../src/DomWebViewModule.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAE7E"}

View File

@@ -0,0 +1,3 @@
declare const _default: any;
export default _default;
//# sourceMappingURL=ExpoDomWebViewModule.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ExpoDomWebViewModule.d.ts","sourceRoot":"","sources":["../src/ExpoDomWebViewModule.ts"],"names":[],"mappings":";AAEA,wBAA2D"}

View File

@@ -0,0 +1,3 @@
declare const _default: {};
export default _default;
//# sourceMappingURL=ExpoDomWebViewModule.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ExpoDomWebViewModule.web.d.ts","sourceRoot":"","sources":["../src/ExpoDomWebViewModule.web.ts"],"names":[],"mappings":";AAAA,wBAAkB"}

5
node_modules/@expo/dom-webview/build/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import DomWebView from './DomWebView';
export { DomWebView as WebView };
export { DomWebView };
export type { DomWebViewProps, DomWebViewRef } from './DomWebView.types';
//# sourceMappingURL=index.d.ts.map

1
node_modules/@expo/dom-webview/build/index.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}

10
node_modules/@expo/dom-webview/build/styles.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
export declare const webviewStyles: {
container: {
flex: number;
overflow: "hidden";
};
webView: {
backgroundColor: string;
};
};
//# sourceMappingURL=styles.d.ts.map

1
node_modules/@expo/dom-webview/build/styles.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;CAQxB,CAAC"}