@hanzogui/image 3.0.2 → 7.3.0

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 (58) hide show
  1. package/LICENSE +40 -19
  2. package/dist/cjs/Image.cjs +43 -41
  3. package/dist/cjs/Image.native.js +17 -15
  4. package/dist/cjs/Image.native.js.map +1 -1
  5. package/dist/cjs/createImage.cjs +123 -94
  6. package/dist/cjs/createImage.native.js +128 -101
  7. package/dist/cjs/createImage.native.js.map +1 -1
  8. package/dist/cjs/index.cjs +7 -5
  9. package/dist/cjs/index.native.js +7 -5
  10. package/dist/cjs/index.native.js.map +1 -1
  11. package/dist/cjs/types.cjs +7 -5
  12. package/dist/cjs/types.native.js +7 -5
  13. package/dist/cjs/types.native.js.map +1 -1
  14. package/dist/cjs/v1/Image.cjs +65 -50
  15. package/dist/cjs/v1/Image.native.js +92 -74
  16. package/dist/cjs/v1/Image.native.js.map +1 -1
  17. package/dist/cjs/v1/index.cjs +7 -5
  18. package/dist/cjs/v1/index.native.js +7 -5
  19. package/dist/cjs/v1/index.native.js.map +1 -1
  20. package/dist/esm/Image.mjs +28 -28
  21. package/dist/esm/Image.mjs.map +1 -1
  22. package/dist/esm/createImage.mjs +109 -82
  23. package/dist/esm/createImage.mjs.map +1 -1
  24. package/dist/esm/createImage.native.js +113 -88
  25. package/dist/esm/createImage.native.js.map +1 -1
  26. package/dist/esm/v1/Image.mjs +34 -21
  27. package/dist/esm/v1/Image.mjs.map +1 -1
  28. package/dist/esm/v1/Image.native.js +62 -46
  29. package/dist/esm/v1/Image.native.js.map +1 -1
  30. package/dist/jsx/Image.mjs +28 -28
  31. package/dist/jsx/Image.mjs.map +1 -1
  32. package/dist/jsx/Image.native.js +17 -15
  33. package/dist/jsx/Image.native.js.map +1 -1
  34. package/dist/jsx/createImage.mjs +109 -82
  35. package/dist/jsx/createImage.mjs.map +1 -1
  36. package/dist/jsx/createImage.native.js +128 -101
  37. package/dist/jsx/createImage.native.js.map +1 -1
  38. package/dist/jsx/index.native.js +7 -5
  39. package/dist/jsx/types.native.js +7 -5
  40. package/dist/jsx/v1/Image.mjs +34 -21
  41. package/dist/jsx/v1/Image.mjs.map +1 -1
  42. package/dist/jsx/v1/Image.native.js +92 -74
  43. package/dist/jsx/v1/Image.native.js.map +1 -1
  44. package/dist/jsx/v1/index.native.js +7 -5
  45. package/package.json +13 -10
  46. package/src/createImage.tsx +11 -2
  47. package/src/v1/Image.tsx +2 -2
  48. package/types/Image.d.ts.map +1 -0
  49. package/types/Image.native.d.ts +2 -2
  50. package/types/Image.native.d.ts.map +1 -0
  51. package/types/createImage.d.ts +3 -3
  52. package/types/createImage.d.ts.map +1 -0
  53. package/types/index.d.ts.map +1 -0
  54. package/types/types.d.ts +1 -1
  55. package/types/types.d.ts.map +1 -0
  56. package/types/v1/Image.d.ts +2 -2
  57. package/types/v1/Image.d.ts.map +1 -0
  58. package/types/v1/index.d.ts.map +1 -0
package/LICENSE CHANGED
@@ -1,21 +1,42 @@
1
- MIT License
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026-present, Hanzo AI, Inc.
4
+
5
+ Portions of this software are derived from upstream code originally licensed under
6
+ the MIT License, with the following copyright notices retained per its terms:
2
7
 
3
8
  Copyright (c) 2020 Nate Wienert
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
9
+ Copyright (c) 2015-present, Nicolas Gallagher.
10
+ Copyright (c) 2015-present, Facebook, Inc.
11
+ Copyright (c) 2021 Radix
12
+ Copyright (c) 2017 Carmelo Pullara
13
+ Copyright (c) 2018 Framer B.V.
14
+ Copyright (c) 2022 WorkOS
15
+
16
+ All rights reserved.
17
+
18
+ Redistribution and use in source and binary forms, with or without
19
+ modification, are permitted provided that the following conditions are met:
20
+
21
+ 1. Redistributions of source code must retain the above copyright notice, this
22
+ list of conditions and the following disclaimer.
23
+
24
+ 2. Redistributions in binary form must reproduce the above copyright notice,
25
+ this list of conditions and the following disclaimer in the documentation
26
+ and/or other materials provided with the distribution.
27
+
28
+ 3. Neither the name of the copyright holder nor the names of its contributors
29
+ may be used to endorse or promote products derived from this software
30
+ without specific prior written permission.
31
+
32
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
35
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
36
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
37
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
39
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
40
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42
+ POSSIBILITY OF SUCH DAMAGE.
@@ -3,57 +3,59 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var Image_exports = {};
22
24
  __export(Image_exports, {
23
25
  Image: () => Image
24
26
  });
25
27
  module.exports = __toCommonJS(Image_exports);
26
- var import_gui_web = require("@hanzogui/web"),
27
- import_jsx_runtime = require("react/jsx-runtime");
28
- const StyledImage = (0, import_gui_web.styled)(import_gui_web.View, {
29
- name: "Image",
30
- render: "img"
31
- }),
32
- Image = StyledImage.styleable((inProps, ref) => {
33
- const {
34
- // exclude native only props
35
- blurRadius,
36
- capInsets,
37
- defaultSource,
38
- fadeDuration,
39
- loadingIndicatorSource,
40
- onLoadEnd,
41
- onPartialLoad,
42
- progressiveRenderingEnabled,
43
- resizeMethod,
44
- tintColor,
45
- ...rest
46
- } = inProps;
47
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(StyledImage, {
48
- ref,
49
- ...rest
50
- });
51
- }, {
52
- staticConfig: {
53
- memo: !0
54
- }
55
- }),
56
- func = () => {};
28
+ var import_web = require("@hanzogui/web");
29
+ var import_jsx_runtime = require("react/jsx-runtime");
30
+ const StyledImage = (0, import_web.styled)(import_web.View, {
31
+ name: "Image",
32
+ render: "img"
33
+ });
34
+ const Image = StyledImage.styleable((inProps, ref) => {
35
+ const {
36
+ // exclude native only props
37
+ blurRadius,
38
+ capInsets,
39
+ defaultSource,
40
+ fadeDuration,
41
+ loadingIndicatorSource,
42
+ onLoadEnd,
43
+ onPartialLoad,
44
+ progressiveRenderingEnabled,
45
+ resizeMethod,
46
+ tintColor,
47
+ ...rest
48
+ } = inProps;
49
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(StyledImage, {
50
+ ref,
51
+ ...rest
52
+ });
53
+ }, {
54
+ staticConfig: {
55
+ memo: true
56
+ }
57
+ });
58
+ const func = () => {};
57
59
  Image.getSize = func;
58
60
  Image.getSizeWithHeaders = func;
59
61
  Image.prefetch = func;
@@ -5,29 +5,31 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var Image_native_exports = {};
24
26
  __export(Image_native_exports, {
25
27
  Image: () => Image
26
28
  });
27
29
  module.exports = __toCommonJS(Image_native_exports);
28
- var import_react_native = require("react-native"),
29
- import_createImage = require("./createImage.native.js"),
30
- Image = (0, import_createImage.createImage)({
31
- Component: import_react_native.Image
32
- });
30
+ var import_react_native = require("react-native");
31
+ var import_createImage = require("./createImage.native.js");
32
+ var Image = (0, import_createImage.createImage)({
33
+ Component: import_react_native.Image
34
+ });
33
35
  //# sourceMappingURL=Image.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Image_native_exports","__export","Image","module","exports","__toCommonJS","import_react_native","require","import_createImage","createImage","Component"],"sources":["../../src/Image.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,oBAAA;AAAA,IAAAM,mBAAA,GAAiCC,OAAA;EACjCC,kBAAA,GAA4BD,OAAA;EACjBL,KAAA,OAAQM,kBAAA,CAAAC,WAAA,EAAY;IAC3BC,SAAA,EAAWJ,mBAAA,CAAAJ;EACf,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Image_native_exports","__export","Image","module","exports","__toCommonJS","import_react_native","require","import_createImage","createImage","Component"],"sources":["../../src/Image.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,oBAAA;AAAA,IAAAM,mBAAA,GAAiCC,OAAA;AACjC,IAAAC,kBAAA,GAA4BD,OAAA;AACrB,IAAIL,KAAA,OAAQM,kBAAA,CAAAC,WAAA,EAAY;EAC3BC,SAAA,EAAWJ,mBAAA,CAAAJ;AACf,CAAC","ignoreList":[]}
@@ -3,109 +3,127 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var createImage_exports = {};
22
24
  __export(createImage_exports, {
23
25
  createImage: () => createImage
24
26
  });
25
27
  module.exports = __toCommonJS(createImage_exports);
26
- var import_gui_web = require("@hanzogui/web"),
27
- import_jsx_runtime = require("react/jsx-runtime");
28
+ var import_web = require("@hanzogui/web");
29
+ var import_jsx_runtime = require("react/jsx-runtime");
28
30
  const defaultObjectFitMap = objectFit => {
29
- switch (objectFit) {
30
- case "fill":
31
- return "stretch";
32
- case "none":
33
- return "center";
34
- case "scale-down":
35
- return "contain";
36
- case "contain":
37
- return "contain";
38
- default:
39
- return "cover";
40
- }
41
- },
42
- defaultTransformSource = props => {
31
+ switch (objectFit) {
32
+ case "fill":
33
+ return "stretch";
34
+ case "none":
35
+ return "center";
36
+ case "scale-down":
37
+ return "contain";
38
+ case "contain":
39
+ return "contain";
40
+ default:
41
+ return "cover";
42
+ }
43
+ };
44
+ const defaultTransformSource = props => {
45
+ const {
46
+ src,
47
+ source,
48
+ width,
49
+ height
50
+ } = props;
51
+ if (source) return source;
52
+ if (src && typeof src !== "string") return src;
53
+ return {
54
+ uri: src,
55
+ width,
56
+ height
57
+ };
58
+ };
59
+ function createImage(options) {
60
+ const {
61
+ Component,
62
+ mapObjectFitToResizeMode = defaultObjectFitMap,
63
+ resizeModePropName = "resizeMode",
64
+ objectPositionPropName,
65
+ transformSource = defaultTransformSource
66
+ } = options;
67
+ const inlinePropsSet = /* @__PURE__ */new Set(["source", "placeholder", "transition", "contentFit", "contentPosition", "cachePolicy", "recyclingKey", "allowDownscaling", "autoplay", "blurRadius", "priority", "placeholderContentFit", "responsivePolicy", "onLoadStart", "onProgress", "onLoadEnd"]);
68
+ const StyledImage = (0, import_web.styled)(Component, {
69
+ name: "Image"
70
+ }, {
71
+ inlineProps: inlinePropsSet
72
+ });
73
+ const ImageComponent = StyledImage.styleable((incomingProps, ref) => {
74
+ const props = incomingProps;
43
75
  const {
44
76
  src,
45
- source,
46
77
  width,
47
- height
78
+ height,
79
+ borderRadius,
80
+ objectFit,
81
+ objectPosition,
82
+ // web only props - filter out on native
83
+ decoding,
84
+ elementTiming,
85
+ fetchpriority,
86
+ isMap,
87
+ loading,
88
+ sizes,
89
+ useMap,
90
+ onLoad,
91
+ onError,
92
+ ...rest
48
93
  } = props;
49
- return source || (src && typeof src != "string" ? src : {
50
- uri: src,
51
- width,
52
- height
94
+ const resolvedWidth = typeof width === "string" && width[0] === "$" ? (0, import_web.getTokenValue)(width, "size") : width;
95
+ const resolvedHeight = typeof height === "string" && height[0] === "$" ? (0, import_web.getTokenValue)(height, "size") : height;
96
+ const finalSource = transformSource({
97
+ src,
98
+ width: resolvedWidth,
99
+ height: resolvedHeight
53
100
  });
54
- };
55
- function createImage(options) {
56
- const {
57
- Component,
58
- mapObjectFitToResizeMode = defaultObjectFitMap,
59
- resizeModePropName = "resizeMode",
60
- objectPositionPropName,
61
- transformSource = defaultTransformSource
62
- } = options,
63
- ImageComponent = (0, import_gui_web.styled)(Component, {
64
- name: "Image"
65
- }, {
66
- inlineProps: /* @__PURE__ */new Set(["source", "placeholder", "transition", "contentFit", "contentPosition", "cachePolicy", "recyclingKey", "allowDownscaling", "autoplay", "blurRadius", "priority", "placeholderContentFit", "responsivePolicy", "onLoadStart", "onProgress", "onLoadEnd"])
67
- }).styleable((incomingProps, ref) => {
68
- const props = incomingProps,
69
- {
70
- src,
71
- width,
72
- height,
73
- objectFit,
74
- objectPosition,
75
- // web only props - filter out on native
76
- decoding,
77
- elementTiming,
78
- fetchpriority,
79
- isMap,
80
- loading,
81
- sizes,
82
- useMap,
83
- onLoad,
84
- onError,
85
- ...rest
86
- } = props,
87
- resolvedWidth = typeof width == "string" && width[0] === "$" ? (0, import_gui_web.getTokenValue)(width) : width,
88
- resolvedHeight = typeof height == "string" && height[0] === "$" ? (0, import_gui_web.getTokenValue)(height) : height,
89
- finalSource = transformSource({
90
- src,
91
- width: resolvedWidth,
92
- height: resolvedHeight
101
+ const incomingStyle = Array.isArray(rest.style) ? Object.assign({}, ...rest.style.flat()) : rest.style;
102
+ const resolvedBorderRadius = typeof borderRadius === "string" && borderRadius[0] === "$" ? (0, import_web.getTokenValue)(borderRadius, "radius") : borderRadius;
103
+ const finalProps = {
104
+ ...rest,
105
+ source: finalSource,
106
+ style: {
107
+ ...incomingStyle,
108
+ ...(resolvedBorderRadius !== void 0 && {
109
+ borderRadius: resolvedBorderRadius
93
110
  }),
94
- incomingStyle = Array.isArray(rest.style) ? Object.assign({}, ...rest.style.flat()) : rest.style,
95
- finalProps = {
96
- ...rest,
97
- source: finalSource,
98
- style: {
99
- ...incomingStyle,
100
- ...(resolvedWidth !== void 0 && {
101
- width: resolvedWidth
102
- }),
103
- ...(resolvedHeight !== void 0 && {
104
- height: resolvedHeight
105
- })
106
- }
107
- };
108
- return objectFit && (finalProps[resizeModePropName] = mapObjectFitToResizeMode(objectFit)), objectPositionPropName && objectPosition && (finalProps[objectPositionPropName] = objectPosition), onLoad && (finalProps.onLoad = e => {
111
+ ...(resolvedWidth !== void 0 && {
112
+ width: resolvedWidth
113
+ }),
114
+ ...(resolvedHeight !== void 0 && {
115
+ height: resolvedHeight
116
+ })
117
+ }
118
+ };
119
+ if (objectFit) {
120
+ finalProps[resizeModePropName] = mapObjectFitToResizeMode(objectFit);
121
+ }
122
+ if (objectPositionPropName && objectPosition) {
123
+ finalProps[objectPositionPropName] = objectPosition;
124
+ }
125
+ if (onLoad) {
126
+ finalProps.onLoad = e => {
109
127
  const source = e?.nativeEvent?.source || e?.source || {};
110
128
  onLoad({
111
129
  target: {
@@ -114,15 +132,26 @@ function createImage(options) {
114
132
  },
115
133
  type: "load"
116
134
  });
117
- }), onError && (finalProps.onError = () => {
135
+ };
136
+ }
137
+ if (onError) {
138
+ finalProps.onError = () => {
118
139
  onError({
119
140
  type: "error"
120
141
  });
121
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(Component, {
122
- ref,
123
- ...finalProps
124
- });
125
- }),
126
- comp = Component;
127
- return ImageComponent.getSize = comp.getSize || (() => {}), ImageComponent.getSizeWithHeaders = comp.getSizeWithHeaders || (() => {}), ImageComponent.prefetch = comp.prefetch || (() => {}), ImageComponent.prefetchWithMetadata = comp.prefetchWithMetadata || (() => {}), ImageComponent.abortPrefetch = comp.abortPrefetch || (() => {}), ImageComponent.queryCache = comp.queryCache || (() => {}), ImageComponent;
142
+ };
143
+ }
144
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Component, {
145
+ ref,
146
+ ...finalProps
147
+ });
148
+ });
149
+ const comp = Component;
150
+ ImageComponent.getSize = comp.getSize || (() => {});
151
+ ImageComponent.getSizeWithHeaders = comp.getSizeWithHeaders || (() => {});
152
+ ImageComponent.prefetch = comp.prefetch || (() => {});
153
+ ImageComponent.prefetchWithMetadata = comp.prefetchWithMetadata || (() => {});
154
+ ImageComponent.abortPrefetch = comp.abortPrefetch || (() => {});
155
+ ImageComponent.queryCache = comp.queryCache || (() => {});
156
+ return ImageComponent;
128
157
  }