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

View File

@@ -0,0 +1,37 @@
import React from 'react';
import { ImageTransition } from '../Image.types';
type Callbacks = {
onReady?: (() => void) | null;
onAnimationFinished?: (() => void) | null;
onMount?: (() => void) | null;
onError?: (() => void) | null;
};
export type AnimationManagerNode = [
key: string,
renderFunction: (renderProps: NonNullable<Callbacks>) => (className: string, style: React.CSSProperties) => React.ReactElement
];
export declare function getAnimatorFromTransition(transition: ImageTransition | null | undefined): {
startingClass: string;
animateInClass: string;
animateOutClass: string;
containerClass: string;
timingFunction: string;
animationClass: string;
duration: number;
} | {
startingClass: string;
animateInClass: string;
animateOutClass: string;
containerClass: string;
timingFunction: "ease-in-out" | "ease-in" | "ease-out" | "linear" | null;
animationClass: "cross-dissolve" | "flip-from-top" | "flip-from-right" | "flip-from-bottom" | "flip-from-left" | "curl-up" | "curl-down" | "sf:replace" | "sf:down-up" | "sf:up-up" | "sf:off-up";
duration: number;
} | null;
export default function AnimationManager({ children: renderFunction, initial, transition, recyclingKey, }: {
children: AnimationManagerNode;
initial: AnimationManagerNode | null;
transition: ImageTransition | null | undefined;
recyclingKey?: string | null | undefined;
}): React.JSX.Element;
export {};
//# sourceMappingURL=AnimationManager.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"AnimationManager.d.ts","sourceRoot":"","sources":["../../src/web/AnimationManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,KAAK,SAAS,GAAG;IACf,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9B,mBAAmB,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM;IACX,cAAc,EAAE,CACd,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,KAChC,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,KAAK,CAAC,YAAY;CAC3E,CAAC;AAgDF,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;;;SA+BvF;AAUD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,QAAQ,EAAE,cAAc,EACxB,OAAO,EACP,UAAU,EACV,YAAY,GACb,EAAE;IACD,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,qBAmHA"}

13
node_modules/expo-image/build/web/ColorTintFilter.d.ts generated vendored Normal file
View File

@@ -0,0 +1,13 @@
import React from 'react';
export declare function getTintColorStyle(tintId: string, tintColor?: string | null): {
filter?: undefined;
} | {
filter: string;
};
type TintColorFilterProps = {
id: string;
tintColor?: string | null;
};
export default function TintColorFilter({ id, tintColor }: TintColorFilterProps): React.JSX.Element | null;
export {};
//# sourceMappingURL=ColorTintFilter.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ColorTintFilter.d.ts","sourceRoot":"","sources":["../../src/web/ColorTintFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;;;;EAO1E;AAED,KAAK,oBAAoB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAEtE,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,oBAAoB,4BAc9E"}

13
node_modules/expo-image/build/web/ImageRef.d.ts generated vendored Normal file
View File

@@ -0,0 +1,13 @@
import { SharedRef } from 'expo';
import { ImageRef } from '../Image.types';
export default class ImageRefWeb extends SharedRef<'image'> implements ImageRef {
nativeRefType: string;
uri: string | null;
width: number;
height: number;
mediaType: string | null;
scale: number;
isAnimated: boolean;
static init(uri: string, width: number, height: number, mediaType: string | null): ImageRefWeb;
}
//# sourceMappingURL=ImageRef.d.ts.map

1
node_modules/expo-image/build/web/ImageRef.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"ImageRef.d.ts","sourceRoot":"","sources":["../../src/web/ImageRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS,CAAC,OAAO,CAAE,YAAW,QAAQ;IACpE,aAAa,SAAW;IAEjC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC1B,KAAK,EAAE,MAAM,CAAK;IAClB,MAAM,EAAE,MAAM,CAAK;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IAChC,KAAK,EAAE,MAAM,CAAK;IAClB,UAAU,EAAE,OAAO,CAAS;IAE5B,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,WAAW;CAS/F"}

5
node_modules/expo-image/build/web/ImageWrapper.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import React from 'react';
import { ImageWrapperProps } from './ImageWrapper.types';
declare const ImageWrapper: React.ForwardRefExoticComponent<ImageWrapperProps & React.RefAttributes<HTMLImageElement>>;
export default ImageWrapper;
//# sourceMappingURL=ImageWrapper.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ImageWrapper.d.ts","sourceRoot":"","sources":["../../src/web/ImageWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAqBzD,QAAA,MAAM,YAAY,4FAuEjB,CAAC;AAEF,eAAe,YAAY,CAAC"}

View File

@@ -0,0 +1,33 @@
import { CSSProperties, SyntheticEvent } from 'react';
import { SrcSetSource } from './useSourceSelection';
import { ImageContentPositionObject, ImageProps, ImageSource } from '../Image.types';
export type OnErrorEvent = (({ source }: {
source: ImageSource | null;
}) => void) | undefined | null;
export type OnLoadEvent = ((event: SyntheticEvent<HTMLImageElement, Event>) => void) | undefined | null;
export type OnTransitionEndEvent = (() => void) | undefined | null;
export type OnMountEvent = (() => void) | undefined | null;
export type OnDisplayEvent = (() => void) | undefined | null;
export type ImageWrapperEvents = {
onLoad?: OnLoadEvent[];
onError?: OnErrorEvent[];
onTransitionEnd?: OnTransitionEndEvent[];
onMount?: OnMountEvent[];
onDisplay?: OnDisplayEvent[];
};
export type ImageWrapperProps = {
source?: ImageSource | SrcSetSource | null;
events?: ImageWrapperEvents;
contentPosition?: ImageContentPositionObject;
hashPlaceholderContentPosition?: ImageContentPositionObject;
priority?: string | null;
loading?: ImageProps['loading'];
style: CSSProperties;
tintColor?: string | null;
hashPlaceholderStyle?: CSSProperties;
className?: string;
accessibilityLabel?: string;
cachePolicy?: ImageProps['cachePolicy'];
draggable?: boolean;
};
//# sourceMappingURL=ImageWrapper.types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ImageWrapper.types.d.ts","source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7C,8BAA8B,CAAC,EAAE,0BAA0B,CAAC;IAC5D,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,aAAa,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}

View File

@@ -0,0 +1,9 @@
import type { SyntheticEvent } from 'react';
import type { ImageWrapperEvents } from './ImageWrapper.types';
import type { ImageSource } from '../Image.types';
export declare function getImageWrapperEventHandler(events: ImageWrapperEvents | undefined, source: ImageSource): {
onLoad: (event: SyntheticEvent<HTMLImageElement, Event>) => void;
onTransitionEnd: () => void | undefined;
onError: () => void;
};
//# sourceMappingURL=getImageWrapperEventHandler.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"getImageWrapperEventHandler.d.ts","sourceRoot":"","sources":["../../src/web/getImageWrapperEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,kBAAkB,GAAG,SAAS,EACtC,MAAM,EAAE,WAAW;oBAGD,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC;;;EAmB1D"}

16
node_modules/expo-image/build/web/hooks.d.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
import { OnErrorEvent } from './ImageWrapper.types';
import { ImageNativeProps, ImageSource } from '../Image.types';
export declare function useThumbhash(source: ImageSource | null | undefined): readonly [{
uri: string;
} | null, boolean];
export declare function useImageHashes(source: ImageSource | null | undefined): {
resolvedSource: ImageSource | null | undefined;
isImageHash: boolean;
} | {
resolvedSource: {
uri: string;
} | null;
isImageHash: boolean;
};
export declare function useHeaders(source: ImageSource | null | undefined, cachePolicy: ImageNativeProps['cachePolicy'], onError?: OnErrorEvent[]): ImageSource | null | undefined;
//# sourceMappingURL=hooks.d.ts.map

1
node_modules/expo-image/build/web/hooks.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/web/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK/D,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS;;mBAQlE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS;;;;;;;;EAepE;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,EACtC,WAAW,EAAE,gBAAgB,CAAC,aAAa,CAAC,EAC5C,OAAO,CAAC,EAAE,YAAY,EAAE,GACvB,WAAW,GAAG,IAAI,GAAG,SAAS,CAoChC"}

2
node_modules/expo-image/build/web/imageStyles.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export default function loadStyle(): void;
//# sourceMappingURL=imageStyles.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"imageStyles.d.ts","sourceRoot":"","sources":["../../src/web/imageStyles.tsx"],"names":[],"mappings":"AAgIA,MAAM,CAAC,OAAO,UAAU,SAAS,SAOhC"}

11
node_modules/expo-image/build/web/positioning.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import { ImageContentPositionObject } from '../Image.types';
export declare function ensureValueIsWebUnits(value: string | number): string;
export declare const absoluteFilledPosition: {
readonly width: "100%";
readonly height: "100%";
readonly position: "absolute";
readonly left: 0;
readonly top: 0;
};
export declare function getObjectPositionFromContentPositionObject(contentPosition?: ImageContentPositionObject): string;
//# sourceMappingURL=positioning.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"positioning.d.ts","sourceRoot":"","sources":["../../src/web/positioning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAA6B,MAAM,gBAAgB,CAAC;AAEvF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,UAM3D;AAID,eAAO,MAAM,sBAAsB;;;;;;CAMzB,CAAC;AAEX,wBAAgB,0CAA0C,CACxD,eAAe,CAAC,EAAE,0BAA0B,GAC3C,MAAM,CAyBR"}

View File

@@ -0,0 +1,11 @@
import type { SharedRefType } from 'expo';
import React from 'react';
import { ImageProps, ImageSource } from '../Image.types';
export interface SrcSetSource extends ImageSource {
srcset: string;
sizes: string;
uri: string;
type: 'srcset';
}
export default function useSourceSelection(sources: ImageSource[] | SharedRefType<'image'> | undefined, responsivePolicy: ImageProps['responsivePolicy'], containerRef: React.RefObject<HTMLDivElement | null>, measurementCallback?: ((target: HTMLElement, size: DOMRect) => void) | null): ImageSource | SrcSetSource | SharedRefType<'image'> | null;
//# sourceMappingURL=useSourceSelection.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"useSourceSelection.d.ts","sourceRoot":"","sources":["../../src/web/useSourceSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAqCzD,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;CAChB;AAmDD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,OAAO,EAAE,WAAW,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,SAAS,EAC3D,gBAAgB,EAAE,UAAU,CAAC,kBAAkB,CAAY,EAC3D,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EACpD,mBAAmB,GAAE,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,IAAW,GAChF,WAAW,GAAG,YAAY,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,IAAI,CA+B5D"}