@tamagui/image 2.0.0-rc.29 → 2.0.0-rc.30

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/image",
3
- "version": "2.0.0-rc.29",
3
+ "version": "2.0.0-rc.30",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -36,12 +36,12 @@
36
36
  "clean:build": "tamagui-build clean:build"
37
37
  },
38
38
  "dependencies": {
39
- "@tamagui/constants": "2.0.0-rc.29",
40
- "@tamagui/core": "2.0.0-rc.29",
41
- "@tamagui/web": "2.0.0-rc.29"
39
+ "@tamagui/constants": "2.0.0-rc.30",
40
+ "@tamagui/core": "2.0.0-rc.30",
41
+ "@tamagui/web": "2.0.0-rc.30"
42
42
  },
43
43
  "devDependencies": {
44
- "@tamagui/build": "2.0.0-rc.29",
44
+ "@tamagui/build": "2.0.0-rc.30",
45
45
  "react": ">=19",
46
46
  "react-native": "0.83.2"
47
47
  },
@@ -33,7 +33,7 @@ export type CreateImageOptions<C extends ComponentType<any>> = {
33
33
  * Useful for expo-image which has a different source format.
34
34
  */
35
35
  transformSource?: (props: {
36
- src?: string
36
+ src?: string | number
37
37
  source?: any
38
38
  width?: any
39
39
  height?: any
@@ -56,7 +56,7 @@ const defaultObjectFitMap = (objectFit: string): ImageResizeMode => {
56
56
  }
57
57
 
58
58
  const defaultTransformSource = (props: {
59
- src?: string
59
+ src?: string | number
60
60
  source?: any
61
61
  width?: any
62
62
  height?: any
package/src/types.ts CHANGED
@@ -16,7 +16,7 @@ export type ImageProps = ViewProps &
16
16
  * The image source URL or require() result.
17
17
  * Preferred over `source` for better web alignment.
18
18
  */
19
- src?: string
19
+ src?: string | number
20
20
  /**
21
21
  * @deprecated
22
22
  * use src instead
@@ -7,7 +7,7 @@ export declare const Image: import("react").FC<Partial<import("./types").ImagePr
7
7
  abortPrefetch: typeof RNImage.abortPrefetch | undefined;
8
8
  queryCache: typeof RNImage.queryCache | undefined;
9
9
  } & import("react").FC<import("@tamagui/web").StackNonStyleProps & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & Omit<import("react-native").ImageProps, `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@tamagui/web").StackStyleBase | keyof import("@tamagui/web").StackNonStyleProps | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | "source" | "resizeMode"> & {
10
- src?: string;
10
+ src?: string | number;
11
11
  source?: import("react-native").ImageSourcePropType;
12
12
  resizeMode?: import("react-native").ImageResizeMode;
13
13
  objectFit?: React.CSSProperties["objectFit"];
@@ -30,7 +30,7 @@ export type CreateImageOptions<C extends ComponentType<any>> = {
30
30
  * Useful for expo-image which has a different source format.
31
31
  */
32
32
  transformSource?: (props: {
33
- src?: string;
33
+ src?: string | number;
34
34
  source?: any;
35
35
  width?: any;
36
36
  height?: any;
@@ -67,7 +67,7 @@ export declare function createImage<C extends ComponentType<any>>(options: Creat
67
67
  abortPrefetch: typeof import("react-native").Image.abortPrefetch | undefined;
68
68
  queryCache: typeof import("react-native").Image.queryCache | undefined;
69
69
  } & import("react").FC<import("@tamagui/web").StackNonStyleProps & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & Omit<import("react-native").ImageProps, `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@tamagui/web").StackStyleBase | keyof import("@tamagui/web").StackNonStyleProps | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | "source" | "resizeMode"> & {
70
- src?: string;
70
+ src?: string | number;
71
71
  source?: import("react-native").ImageSourcePropType;
72
72
  resizeMode?: ImageResizeMode;
73
73
  objectFit?: React.CSSProperties["objectFit"];
@@ -1 +1 @@
1
- {"version":3,"file":"createImage.d.ts","sourceRoot":"","sources":["../src/createImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,SAAS,CAAA;AAEpD,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AAE/D,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,IAAI;IAC7D;;;OAGG;IACH,SAAS,EAAE,CAAC,CAAA;IACZ;;;OAGG;IACH,wBAAwB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,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AE;QACxB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;QACrB,MAAM,CAAC,EAAE,GAAG,CAAA;QACZ,KAAK,CAAC,EAAE,GAAG,CAAA;QACX,MAAM,CAAC,EAAE,GAAG,CAAA;KACb,KAAK,GAAG,CAAA;CACV,CAAA;AAiCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,EACtD,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC;;;;;;;;;;;;;2zKA0I/B"}
package/types/types.d.ts CHANGED
@@ -7,7 +7,7 @@ export type ImageProps = ViewProps & Omit<RNImageProps, KeyofViewProps | 'source
7
7
  * The image source URL or require() result.
8
8
  * Preferred over `source` for better web alignment.
9
9
  */
10
- src?: string;
10
+ src?: string | number;
11
11
  /**
12
12
  * @deprecated
13
13
  * use src instead
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,KAAK,IAAI,OAAO,EAChB,UAAU,IAAI,YAAY,EAC3B,MAAM,cAAc,CAAA;AAErB,KAAK,WAAW,GAAG,OAAO,OAAO,CAAA;AAEjC,KAAK,cAAc,GAAG,MAAM,SAAS,CAAA;AAErC,MAAM,MAAM,UAAU,GAAG,SAAS,GAChC,IAAI,CAAC,YAAY,EAAE,cAAc,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG;IACvE;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAA;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,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