@tamagui/image 1.110.4 → 1.111.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.
- package/dist/cjs/Image.native.js +26 -254
- package/dist/cjs/Image.native.js.map +2 -2
- package/dist/esm/Image.native.js +25 -252
- package/dist/esm/Image.native.js.map +2 -2
- package/dist/esm/Image.native.mjs +63 -0
- package/dist/esm/Image.native.mjs.map +1 -0
- package/dist/esm/index.native.mjs +2 -0
- package/dist/esm/index.native.mjs.map +1 -0
- package/dist/jsx/Image.native.js +25 -252
- package/dist/jsx/Image.native.js.map +2 -2
- package/package.json +4 -4
package/dist/cjs/Image.native.js
CHANGED
|
@@ -26,278 +26,50 @@ __export(Image_exports, {
|
|
|
26
26
|
Image: () => Image
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(Image_exports);
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_react_native = require("react-native")
|
|
30
|
-
function _array_like_to_array(arr, len) {
|
|
31
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
32
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
33
|
-
return arr2;
|
|
34
|
-
}
|
|
35
|
-
function _array_with_holes(arr) {
|
|
36
|
-
if (Array.isArray(arr)) return arr;
|
|
37
|
-
}
|
|
38
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
39
|
-
try {
|
|
40
|
-
var info = gen[key](arg), value = info.value;
|
|
41
|
-
} catch (error) {
|
|
42
|
-
reject(error);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
|
|
46
|
-
}
|
|
47
|
-
function _async_to_generator(fn) {
|
|
48
|
-
return function() {
|
|
49
|
-
var self = this, args = arguments;
|
|
50
|
-
return new Promise(function(resolve, reject) {
|
|
51
|
-
var gen = fn.apply(self, args);
|
|
52
|
-
function _next(value) {
|
|
53
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
54
|
-
}
|
|
55
|
-
function _throw(err) {
|
|
56
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
57
|
-
}
|
|
58
|
-
_next(void 0);
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function _define_property(obj, key, value) {
|
|
63
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
64
|
-
value,
|
|
65
|
-
enumerable: !0,
|
|
66
|
-
configurable: !0,
|
|
67
|
-
writable: !0
|
|
68
|
-
}) : obj[key] = value, obj;
|
|
69
|
-
}
|
|
70
|
-
function _iterable_to_array_limit(arr, i) {
|
|
71
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
72
|
-
if (_i != null) {
|
|
73
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
74
|
-
try {
|
|
75
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
76
|
-
;
|
|
77
|
-
} catch (err) {
|
|
78
|
-
_d = !0, _e = err;
|
|
79
|
-
} finally {
|
|
80
|
-
try {
|
|
81
|
-
!_n && _i.return != null && _i.return();
|
|
82
|
-
} finally {
|
|
83
|
-
if (_d) throw _e;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return _arr;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function _non_iterable_rest() {
|
|
90
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
91
|
-
}
|
|
92
|
-
function _object_spread(target) {
|
|
93
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
94
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
95
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
96
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
97
|
-
}))), ownKeys.forEach(function(key) {
|
|
98
|
-
_define_property(target, key, source[key]);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
return target;
|
|
102
|
-
}
|
|
103
|
-
function _object_without_properties(source, excluded) {
|
|
104
|
-
if (source == null) return {};
|
|
105
|
-
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
106
|
-
if (Object.getOwnPropertySymbols) {
|
|
107
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
108
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
109
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
110
|
-
}
|
|
111
|
-
return target;
|
|
112
|
-
}
|
|
113
|
-
function _object_without_properties_loose(source, excluded) {
|
|
114
|
-
if (source == null) return {};
|
|
115
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
116
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
117
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
118
|
-
return target;
|
|
119
|
-
}
|
|
120
|
-
function _sliced_to_array(arr, i) {
|
|
121
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
122
|
-
}
|
|
123
|
-
function _type_of(obj) {
|
|
124
|
-
"@swc/helpers - typeof";
|
|
125
|
-
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
126
|
-
}
|
|
127
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
128
|
-
if (o) {
|
|
129
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
130
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
131
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
132
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
function _ts_generator(thisArg, body) {
|
|
136
|
-
var f, y, t, g, _ = {
|
|
137
|
-
label: 0,
|
|
138
|
-
sent: function() {
|
|
139
|
-
if (t[0] & 1) throw t[1];
|
|
140
|
-
return t[1];
|
|
141
|
-
},
|
|
142
|
-
trys: [],
|
|
143
|
-
ops: []
|
|
144
|
-
};
|
|
145
|
-
return g = {
|
|
146
|
-
next: verb(0),
|
|
147
|
-
throw: verb(1),
|
|
148
|
-
return: verb(2)
|
|
149
|
-
}, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
|
|
150
|
-
return this;
|
|
151
|
-
}), g;
|
|
152
|
-
function verb(n) {
|
|
153
|
-
return function(v) {
|
|
154
|
-
return step([
|
|
155
|
-
n,
|
|
156
|
-
v
|
|
157
|
-
]);
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
function step(op) {
|
|
161
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
162
|
-
for (; _; ) try {
|
|
163
|
-
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
164
|
-
switch (y = 0, t && (op = [
|
|
165
|
-
op[0] & 2,
|
|
166
|
-
t.value
|
|
167
|
-
]), op[0]) {
|
|
168
|
-
case 0:
|
|
169
|
-
case 1:
|
|
170
|
-
t = op;
|
|
171
|
-
break;
|
|
172
|
-
case 4:
|
|
173
|
-
return _.label++, {
|
|
174
|
-
value: op[1],
|
|
175
|
-
done: !1
|
|
176
|
-
};
|
|
177
|
-
case 5:
|
|
178
|
-
_.label++, y = op[1], op = [
|
|
179
|
-
0
|
|
180
|
-
];
|
|
181
|
-
continue;
|
|
182
|
-
case 7:
|
|
183
|
-
op = _.ops.pop(), _.trys.pop();
|
|
184
|
-
continue;
|
|
185
|
-
default:
|
|
186
|
-
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
187
|
-
_ = 0;
|
|
188
|
-
continue;
|
|
189
|
-
}
|
|
190
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
191
|
-
_.label = op[1];
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
195
|
-
_.label = t[1], t = op;
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
if (t && _.label < t[2]) {
|
|
199
|
-
_.label = t[2], _.ops.push(op);
|
|
200
|
-
break;
|
|
201
|
-
}
|
|
202
|
-
t[2] && _.ops.pop(), _.trys.pop();
|
|
203
|
-
continue;
|
|
204
|
-
}
|
|
205
|
-
op = body.call(thisArg, _);
|
|
206
|
-
} catch (e) {
|
|
207
|
-
op = [
|
|
208
|
-
6,
|
|
209
|
-
e
|
|
210
|
-
], y = 0;
|
|
211
|
-
} finally {
|
|
212
|
-
f = t = 0;
|
|
213
|
-
}
|
|
214
|
-
if (op[0] & 5) throw op[1];
|
|
215
|
-
return {
|
|
216
|
-
value: op[0] ? op[1] : void 0,
|
|
217
|
-
done: !0
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
var StyledImage = (0, import_core.styled)(import_react_native.Image, {
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_react_native = require("react-native"), StyledImage = (0, import_core.styled)(import_react_native.Image, {
|
|
222
30
|
name: "Image"
|
|
223
31
|
}), hasWarned = !1, Image = StyledImage.styleable(function(inProps, ref) {
|
|
224
|
-
var
|
|
225
|
-
"src",
|
|
226
|
-
"source",
|
|
227
|
-
"objectFit"
|
|
228
|
-
]);
|
|
32
|
+
var [props, style] = (0, import_core.usePropsAndStyle)(inProps), { src, source, objectFit, ...rest } = props;
|
|
229
33
|
process.env.NODE_ENV === "development" && typeof src == "string" && (typeof props.width == "string" && props.width[0] !== "$" || typeof props.height == "string" && props.height[0] !== "$") && (hasWarned || (hasWarned = !0, console.warn('React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.')));
|
|
230
|
-
var finalSource = typeof src == "string" ?
|
|
231
|
-
uri: src
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
34
|
+
var finalSource = typeof src == "string" ? {
|
|
35
|
+
uri: src,
|
|
36
|
+
...import_constants.isWeb && {
|
|
37
|
+
width: props.width || (style == null ? void 0 : style.width),
|
|
38
|
+
height: props.height || (style == null ? void 0 : style.height)
|
|
39
|
+
}
|
|
40
|
+
} : source ?? src;
|
|
41
|
+
if (finalSource && typeof finalSource == "object") {
|
|
42
|
+
if (!Array.isArray(finalSource) && typeof finalSource.uri == "number" && (finalSource = finalSource.uri, source && typeof source == "object" && !Array.isArray(source))) {
|
|
238
43
|
var _style, _style1, _width;
|
|
239
44
|
(_width = (_style = style).width) !== null && _width !== void 0 || (_style.width = source.width);
|
|
240
45
|
var _height;
|
|
241
46
|
(_height = (_style1 = style).height) !== null && _height !== void 0 || (_style1.height = source.height);
|
|
242
47
|
}
|
|
243
48
|
process.env.NODE_ENV === "development" && process.env.TAMAGUI_IMAGE_CHECK_ERROR && import_react.default.useEffect(function() {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
4
|
|
256
|
-
];
|
|
257
|
-
_state.label = 1;
|
|
258
|
-
case 1:
|
|
259
|
-
return _state.trys.push([
|
|
260
|
-
1,
|
|
261
|
-
3,
|
|
262
|
-
,
|
|
263
|
-
4
|
|
264
|
-
]), [
|
|
265
|
-
4,
|
|
266
|
-
fetch(src).then(function(res) {
|
|
267
|
-
return res.text();
|
|
268
|
-
})
|
|
269
|
-
];
|
|
270
|
-
case 2:
|
|
271
|
-
return _state.sent(), [
|
|
272
|
-
3,
|
|
273
|
-
4
|
|
274
|
-
];
|
|
275
|
-
case 3:
|
|
276
|
-
return err = _state.sent(), console.error("Error loading image: ".concat(src), {
|
|
277
|
-
props
|
|
278
|
-
}), [
|
|
279
|
-
3,
|
|
280
|
-
4
|
|
281
|
-
];
|
|
282
|
-
case 4:
|
|
283
|
-
return [
|
|
284
|
-
2
|
|
285
|
-
];
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
}), _run.apply(this, arguments);
|
|
49
|
+
async function run() {
|
|
50
|
+
if (typeof src == "string")
|
|
51
|
+
try {
|
|
52
|
+
await fetch(src).then(function(res) {
|
|
53
|
+
return res.text();
|
|
54
|
+
});
|
|
55
|
+
} catch {
|
|
56
|
+
console.error(`Error loading image: ${src}`, {
|
|
57
|
+
props
|
|
58
|
+
});
|
|
59
|
+
}
|
|
289
60
|
}
|
|
290
61
|
run();
|
|
291
62
|
}, [
|
|
292
63
|
src
|
|
293
64
|
]), finalSource.default && (finalSource = finalSource.default);
|
|
294
65
|
}
|
|
295
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.Image,
|
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.Image, {
|
|
296
67
|
resizeMode: objectFit,
|
|
297
68
|
ref,
|
|
298
69
|
source: finalSource,
|
|
299
|
-
style
|
|
300
|
-
|
|
70
|
+
style,
|
|
71
|
+
...rest
|
|
72
|
+
});
|
|
301
73
|
});
|
|
302
74
|
Image.getSize = import_react_native.Image.getSize;
|
|
303
75
|
Image.getSizeWithHeaders = import_react_native.Image.getSizeWithHeaders;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/image/src/Image.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,2BAClB,mBAAsB,+BAQtB,cAAyC,0BAEzC,sBAAiC
|
|
5
|
-
"names": ["StyledImage", "styled", "RNImage", "name", "hasWarned", "Image", "styleable", "inProps", "ref", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,2BAClB,mBAAsB,+BAQtB,cAAyC,0BAEzC,sBAAiC,yBAE3BA,kBAAcC,oBAAOC,oBAAAA,OAAS;EAClCC,MAAM;AACR,CAAA,GAmCIC,YAAY,IAEHC,QAAQL,YAAYM,UAAsB,SAACC,SAASC,KAAAA;AAC/D,MAAM,CAACC,OAAOC,KAAAA,QAASC,8BAAiBJ,OAAAA,GAClC,EAAEK,KAAKC,QAAQC,WAAW,GAAGC,KAAAA,IAASN;AAE5C,EAAIO,QAAQC,IAAIC,aAAa,iBACvB,OAAON,OAAQ,aAEd,OAAOH,MAAMU,SAAU,YAAYV,MAAMU,MAAM,CAAA,MAAO,OACtD,OAAOV,MAAMW,UAAW,YAAYX,MAAMW,OAAO,CAAA,MAAO,SAEpDhB,cACHA,YAAY,IACZiB,QAAQC,KACN,4IAA4I;AAOtJ,MAAIC,cACF,OAAOX,OAAQ,WACX;IACEY,KAAKZ;IACL,GAAIa,0BAAS;MACXN,OAAOV,MAAMU,UAAST,SAAAA,OAAAA,SAAAA,MAAOS;MAC7BC,QAAQX,MAAMW,WAAUV,SAAAA,OAAAA,SAAAA,MAAOU;IACjC;EACF,IACAP,UAAUD;AAEhB,MAAIW,eAAe,OAAOA,eAAgB,UAAU;AAGhD,QAAI,CAACG,MAAMC,QAAQJ,WAAAA,KACb,OAAOA,YAAYC,OAAQ,aAC7BD,cAAcA,YAAYC,KACtBX,UAAU,OAAOA,UAAW,YAAY,CAACa,MAAMC,QAAQd,MAAAA,IAAS;UAElEH,QAEAA;AAFAA,OAAAA,UAAAA,SAAAA,OAAMS,WAAAA,QAAAA,WAAAA,WAANT,OAAMS,QAAUN,OAAOM;;AAEvBT,OAAAA,WAAAA,UAAAA,OAAMU,YAAAA,QAAAA,YAAAA,WAANV,QAAMU,SAAWP,OAAOO;IAC1B;AAKN,IAAIJ,QAAQC,IAAIC,aAAa,iBAAiBF,QAAQC,IAAIW,6BAExDC,aAAAA,QAAMC,UAAU,WAAA;AACd,qBAAeC,MAAAA;AACb,YAAI,OAAOnB,OAAQ;AACjB,cAAI;AACF,kBAAMoB,MAAMpB,GAAAA,EAAKqB,KAAK,SAACC,KAAAA;qBAAQA,IAAIC,KAAI;;UACzC,QAAc;AACZd,oBAAQe,MAAM,wBAAwBxB,GAAAA,IAAO;cAAEH;YAAM,CAAA;UACvD;MAEJ;AAEAsB,UAAAA;IACF,GAAG;MAACnB;KAAI,GAINW,YAAY,YACdA,cAAcA,YAAY;EAE9B;AAGA,SACE,uCAAAc,KAACnC,oBAAAA,OAAAA;IACCoC,YAAYxB;IACZN;IACAK,QAAQU;IACRb;IACC,GAAIK;;AAGX,CAAA;AAEAV,MAAMkC,UAAUrC,oBAAAA,MAAQqC;AACxBlC,MAAMmC,qBAAqBtC,oBAAAA,MAAQsC;AACnCnC,MAAMoC,WAAWvC,oBAAAA,MAAQuC;AACzBpC,MAAMqC,uBAAuBxC,oBAAAA,MAAQwC;AACrCrC,MAAMsC,gBAAgBzC,oBAAAA,MAAQyC;AAC9BtC,MAAMuC,aAAa1C,oBAAAA,MAAQ0C;",
|
|
5
|
+
"names": ["StyledImage", "styled", "RNImage", "name", "hasWarned", "Image", "styleable", "inProps", "ref", "props", "style", "usePropsAndStyle", "src", "source", "objectFit", "rest", "process", "env", "NODE_ENV", "width", "height", "console", "warn", "finalSource", "uri", "isWeb", "Array", "isArray", "TAMAGUI_IMAGE_CHECK_ERROR", "React", "useEffect", "run", "fetch", "then", "res", "text", "error", "_jsx", "resizeMode", "getSize", "getSizeWithHeaders", "prefetch", "prefetchWithMetadata", "abortPrefetch", "queryCache"]
|
|
6
6
|
}
|
package/dist/esm/Image.native.js
CHANGED
|
@@ -3,277 +3,50 @@ import React from "react";
|
|
|
3
3
|
import { isWeb } from "@tamagui/constants";
|
|
4
4
|
import { styled, usePropsAndStyle } from "@tamagui/core";
|
|
5
5
|
import { Image as RNImage } from "react-native";
|
|
6
|
-
function _array_like_to_array(arr, len) {
|
|
7
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
8
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
9
|
-
return arr2;
|
|
10
|
-
}
|
|
11
|
-
function _array_with_holes(arr) {
|
|
12
|
-
if (Array.isArray(arr)) return arr;
|
|
13
|
-
}
|
|
14
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
15
|
-
try {
|
|
16
|
-
var info = gen[key](arg), value = info.value;
|
|
17
|
-
} catch (error) {
|
|
18
|
-
reject(error);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
|
|
22
|
-
}
|
|
23
|
-
function _async_to_generator(fn) {
|
|
24
|
-
return function() {
|
|
25
|
-
var self = this, args = arguments;
|
|
26
|
-
return new Promise(function(resolve, reject) {
|
|
27
|
-
var gen = fn.apply(self, args);
|
|
28
|
-
function _next(value) {
|
|
29
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
30
|
-
}
|
|
31
|
-
function _throw(err) {
|
|
32
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
33
|
-
}
|
|
34
|
-
_next(void 0);
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function _define_property(obj, key, value) {
|
|
39
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
40
|
-
value,
|
|
41
|
-
enumerable: !0,
|
|
42
|
-
configurable: !0,
|
|
43
|
-
writable: !0
|
|
44
|
-
}) : obj[key] = value, obj;
|
|
45
|
-
}
|
|
46
|
-
function _iterable_to_array_limit(arr, i) {
|
|
47
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
48
|
-
if (_i != null) {
|
|
49
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
50
|
-
try {
|
|
51
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
52
|
-
;
|
|
53
|
-
} catch (err) {
|
|
54
|
-
_d = !0, _e = err;
|
|
55
|
-
} finally {
|
|
56
|
-
try {
|
|
57
|
-
!_n && _i.return != null && _i.return();
|
|
58
|
-
} finally {
|
|
59
|
-
if (_d) throw _e;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return _arr;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function _non_iterable_rest() {
|
|
66
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
67
|
-
}
|
|
68
|
-
function _object_spread(target) {
|
|
69
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
70
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
71
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
72
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
73
|
-
}))), ownKeys.forEach(function(key) {
|
|
74
|
-
_define_property(target, key, source[key]);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return target;
|
|
78
|
-
}
|
|
79
|
-
function _object_without_properties(source, excluded) {
|
|
80
|
-
if (source == null) return {};
|
|
81
|
-
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
82
|
-
if (Object.getOwnPropertySymbols) {
|
|
83
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
84
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
85
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
86
|
-
}
|
|
87
|
-
return target;
|
|
88
|
-
}
|
|
89
|
-
function _object_without_properties_loose(source, excluded) {
|
|
90
|
-
if (source == null) return {};
|
|
91
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
92
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
93
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
94
|
-
return target;
|
|
95
|
-
}
|
|
96
|
-
function _sliced_to_array(arr, i) {
|
|
97
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
98
|
-
}
|
|
99
|
-
function _type_of(obj) {
|
|
100
|
-
"@swc/helpers - typeof";
|
|
101
|
-
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
102
|
-
}
|
|
103
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
104
|
-
if (o) {
|
|
105
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
106
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
107
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
108
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function _ts_generator(thisArg, body) {
|
|
112
|
-
var f, y, t, g, _ = {
|
|
113
|
-
label: 0,
|
|
114
|
-
sent: function() {
|
|
115
|
-
if (t[0] & 1) throw t[1];
|
|
116
|
-
return t[1];
|
|
117
|
-
},
|
|
118
|
-
trys: [],
|
|
119
|
-
ops: []
|
|
120
|
-
};
|
|
121
|
-
return g = {
|
|
122
|
-
next: verb(0),
|
|
123
|
-
throw: verb(1),
|
|
124
|
-
return: verb(2)
|
|
125
|
-
}, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
|
|
126
|
-
return this;
|
|
127
|
-
}), g;
|
|
128
|
-
function verb(n) {
|
|
129
|
-
return function(v) {
|
|
130
|
-
return step([
|
|
131
|
-
n,
|
|
132
|
-
v
|
|
133
|
-
]);
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
function step(op) {
|
|
137
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
138
|
-
for (; _; ) try {
|
|
139
|
-
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
140
|
-
switch (y = 0, t && (op = [
|
|
141
|
-
op[0] & 2,
|
|
142
|
-
t.value
|
|
143
|
-
]), op[0]) {
|
|
144
|
-
case 0:
|
|
145
|
-
case 1:
|
|
146
|
-
t = op;
|
|
147
|
-
break;
|
|
148
|
-
case 4:
|
|
149
|
-
return _.label++, {
|
|
150
|
-
value: op[1],
|
|
151
|
-
done: !1
|
|
152
|
-
};
|
|
153
|
-
case 5:
|
|
154
|
-
_.label++, y = op[1], op = [
|
|
155
|
-
0
|
|
156
|
-
];
|
|
157
|
-
continue;
|
|
158
|
-
case 7:
|
|
159
|
-
op = _.ops.pop(), _.trys.pop();
|
|
160
|
-
continue;
|
|
161
|
-
default:
|
|
162
|
-
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
163
|
-
_ = 0;
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
167
|
-
_.label = op[1];
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
171
|
-
_.label = t[1], t = op;
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
if (t && _.label < t[2]) {
|
|
175
|
-
_.label = t[2], _.ops.push(op);
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
t[2] && _.ops.pop(), _.trys.pop();
|
|
179
|
-
continue;
|
|
180
|
-
}
|
|
181
|
-
op = body.call(thisArg, _);
|
|
182
|
-
} catch (e) {
|
|
183
|
-
op = [
|
|
184
|
-
6,
|
|
185
|
-
e
|
|
186
|
-
], y = 0;
|
|
187
|
-
} finally {
|
|
188
|
-
f = t = 0;
|
|
189
|
-
}
|
|
190
|
-
if (op[0] & 5) throw op[1];
|
|
191
|
-
return {
|
|
192
|
-
value: op[0] ? op[1] : void 0,
|
|
193
|
-
done: !0
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
6
|
var StyledImage = styled(RNImage, {
|
|
198
7
|
name: "Image"
|
|
199
8
|
}), hasWarned = !1, Image = StyledImage.styleable(function(inProps, ref) {
|
|
200
|
-
var
|
|
201
|
-
"src",
|
|
202
|
-
"source",
|
|
203
|
-
"objectFit"
|
|
204
|
-
]);
|
|
9
|
+
var [props, style] = usePropsAndStyle(inProps), { src, source, objectFit, ...rest } = props;
|
|
205
10
|
process.env.NODE_ENV === "development" && typeof src == "string" && (typeof props.width == "string" && props.width[0] !== "$" || typeof props.height == "string" && props.height[0] !== "$") && (hasWarned || (hasWarned = !0, console.warn('React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.')));
|
|
206
|
-
var finalSource = typeof src == "string" ?
|
|
207
|
-
uri: src
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
11
|
+
var finalSource = typeof src == "string" ? {
|
|
12
|
+
uri: src,
|
|
13
|
+
...isWeb && {
|
|
14
|
+
width: props.width || style?.width,
|
|
15
|
+
height: props.height || style?.height
|
|
16
|
+
}
|
|
17
|
+
} : source ?? src;
|
|
18
|
+
if (finalSource && typeof finalSource == "object") {
|
|
19
|
+
if (!Array.isArray(finalSource) && typeof finalSource.uri == "number" && (finalSource = finalSource.uri, source && typeof source == "object" && !Array.isArray(source))) {
|
|
214
20
|
var _style, _style1, _width;
|
|
215
21
|
(_width = (_style = style).width) !== null && _width !== void 0 || (_style.width = source.width);
|
|
216
22
|
var _height;
|
|
217
23
|
(_height = (_style1 = style).height) !== null && _height !== void 0 || (_style1.height = source.height);
|
|
218
24
|
}
|
|
219
25
|
process.env.NODE_ENV === "development" && process.env.TAMAGUI_IMAGE_CHECK_ERROR && React.useEffect(function() {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
4
|
|
232
|
-
];
|
|
233
|
-
_state.label = 1;
|
|
234
|
-
case 1:
|
|
235
|
-
return _state.trys.push([
|
|
236
|
-
1,
|
|
237
|
-
3,
|
|
238
|
-
,
|
|
239
|
-
4
|
|
240
|
-
]), [
|
|
241
|
-
4,
|
|
242
|
-
fetch(src).then(function(res) {
|
|
243
|
-
return res.text();
|
|
244
|
-
})
|
|
245
|
-
];
|
|
246
|
-
case 2:
|
|
247
|
-
return _state.sent(), [
|
|
248
|
-
3,
|
|
249
|
-
4
|
|
250
|
-
];
|
|
251
|
-
case 3:
|
|
252
|
-
return err = _state.sent(), console.error("Error loading image: ".concat(src), {
|
|
253
|
-
props
|
|
254
|
-
}), [
|
|
255
|
-
3,
|
|
256
|
-
4
|
|
257
|
-
];
|
|
258
|
-
case 4:
|
|
259
|
-
return [
|
|
260
|
-
2
|
|
261
|
-
];
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
}), _run.apply(this, arguments);
|
|
26
|
+
async function run() {
|
|
27
|
+
if (typeof src == "string")
|
|
28
|
+
try {
|
|
29
|
+
await fetch(src).then(function(res) {
|
|
30
|
+
return res.text();
|
|
31
|
+
});
|
|
32
|
+
} catch {
|
|
33
|
+
console.error(`Error loading image: ${src}`, {
|
|
34
|
+
props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
265
37
|
}
|
|
266
38
|
run();
|
|
267
39
|
}, [
|
|
268
40
|
src
|
|
269
41
|
]), finalSource.default && (finalSource = finalSource.default);
|
|
270
42
|
}
|
|
271
|
-
return /* @__PURE__ */ _jsx(RNImage,
|
|
43
|
+
return /* @__PURE__ */ _jsx(RNImage, {
|
|
272
44
|
resizeMode: objectFit,
|
|
273
45
|
ref,
|
|
274
46
|
source: finalSource,
|
|
275
|
-
style
|
|
276
|
-
|
|
47
|
+
style,
|
|
48
|
+
...rest
|
|
49
|
+
});
|
|
277
50
|
});
|
|
278
51
|
Image.getSize = RNImage.getSize;
|
|
279
52
|
Image.getSizeWithHeaders = RNImage.getSizeWithHeaders;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/image/src/Image.tsx"],
|
|
4
|
-
"mappings": ";AAAA,OAAOA,WAAW;AAClB,SAASC,aAAa;AAQtB,SAASC,QAAQC,wBAAwB;AAEzC,SAASC,SAASC,eAAe
|
|
5
|
-
"names": ["React", "isWeb", "styled", "usePropsAndStyle", "Image", "RNImage", "StyledImage", "name", "hasWarned", "styleable", "inProps", "ref", "props", "style", "src", "source", "objectFit", "rest", "process", "env", "NODE_ENV", "width", "height", "console", "warn", "finalSource", "uri", "Array", "isArray", "TAMAGUI_IMAGE_CHECK_ERROR", "useEffect", "run", "
|
|
4
|
+
"mappings": ";AAAA,OAAOA,WAAW;AAClB,SAASC,aAAa;AAQtB,SAASC,QAAQC,wBAAwB;AAEzC,SAASC,SAASC,eAAe;AAEjC,IAAMC,cAAcJ,OAAOG,SAAS;EAClCE,MAAM;AACR,CAAA,GAmCIC,YAAY,IAEHJ,QAAQE,YAAYG,UAAsB,SAACC,SAASC,KAAAA;AAC/D,MAAM,CAACC,OAAOC,KAAAA,IAASV,iBAAiBO,OAAAA,GAClC,EAAEI,KAAKC,QAAQC,WAAW,GAAGC,KAAAA,IAASL;AAE5C,EAAIM,QAAQC,IAAIC,aAAa,iBACvB,OAAON,OAAQ,aAEd,OAAOF,MAAMS,SAAU,YAAYT,MAAMS,MAAM,CAAA,MAAO,OACtD,OAAOT,MAAMU,UAAW,YAAYV,MAAMU,OAAO,CAAA,MAAO,SAEpDd,cACHA,YAAY,IACZe,QAAQC,KACN,4IAA4I;AAOtJ,MAAIC,cACF,OAAOX,OAAQ,WACX;IACEY,KAAKZ;IACL,GAAIb,SAAS;MACXoB,OAAOT,MAAMS,SAASR,OAAOQ;MAC7BC,QAAQV,MAAMU,UAAUT,OAAOS;IACjC;EACF,IACAP,UAAUD;AAEhB,MAAIW,eAAe,OAAOA,eAAgB,UAAU;AAGhD,QAAI,CAACE,MAAMC,QAAQH,WAAAA,KACb,OAAOA,YAAYC,OAAQ,aAC7BD,cAAcA,YAAYC,KACtBX,UAAU,OAAOA,UAAW,YAAY,CAACY,MAAMC,QAAQb,MAAAA,IAAS;UAElEF,QAEAA;AAFAA,OAAAA,UAAAA,SAAAA,OAAMQ,WAAAA,QAAAA,WAAAA,WAANR,OAAMQ,QAAUN,OAAOM;;AAEvBR,OAAAA,WAAAA,UAAAA,OAAMS,YAAAA,QAAAA,YAAAA,WAANT,QAAMS,SAAWP,OAAOO;IAC1B;AAKN,IAAIJ,QAAQC,IAAIC,aAAa,iBAAiBF,QAAQC,IAAIU,6BAExD7B,MAAM8B,UAAU,WAAA;AACd,qBAAeC,MAAAA;AACb,YAAI,OAAOjB,OAAQ;AACjB,cAAI;AACF,kBAAMkB,MAAMlB,GAAAA,EAAKmB,KAAK,SAACC,KAAAA;qBAAQA,IAAIC,KAAI;;UACzC,QAAc;AACZZ,oBAAQa,MAAM,wBAAwBtB,GAAAA,IAAO;cAAEF;YAAM,CAAA;UACvD;MAEJ;AAEAmB,UAAAA;IACF,GAAG;MAACjB;KAAI,GAINW,YAAY,YACdA,cAAcA,YAAY;EAE9B;AAGA,SACE,qBAACpB,SAAAA;IACCgC,YAAYrB;IACZL;IACAI,QAAQU;IACRZ;IACC,GAAII;;AAGX,CAAA;AAEAb,MAAMkC,UAAUjC,QAAQiC;AACxBlC,MAAMmC,qBAAqBlC,QAAQkC;AACnCnC,MAAMoC,WAAWnC,QAAQmC;AACzBpC,MAAMqC,uBAAuBpC,QAAQoC;AACrCrC,MAAMsC,gBAAgBrC,QAAQqC;AAC9BtC,MAAMuC,aAAatC,QAAQsC;",
|
|
5
|
+
"names": ["React", "isWeb", "styled", "usePropsAndStyle", "Image", "RNImage", "StyledImage", "name", "hasWarned", "styleable", "inProps", "ref", "props", "style", "src", "source", "objectFit", "rest", "process", "env", "NODE_ENV", "width", "height", "console", "warn", "finalSource", "uri", "Array", "isArray", "TAMAGUI_IMAGE_CHECK_ERROR", "useEffect", "run", "fetch", "then", "res", "text", "error", "resizeMode", "getSize", "getSizeWithHeaders", "prefetch", "prefetchWithMetadata", "abortPrefetch", "queryCache"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { isWeb } from "@tamagui/constants";
|
|
4
|
+
import { styled, usePropsAndStyle } from "@tamagui/core";
|
|
5
|
+
import { Image as RNImage } from "react-native";
|
|
6
|
+
var StyledImage = styled(RNImage, {
|
|
7
|
+
name: "Image"
|
|
8
|
+
}),
|
|
9
|
+
hasWarned = !1,
|
|
10
|
+
Image = StyledImage.styleable(function (inProps, ref) {
|
|
11
|
+
var [props, style] = usePropsAndStyle(inProps),
|
|
12
|
+
{
|
|
13
|
+
src,
|
|
14
|
+
source,
|
|
15
|
+
objectFit,
|
|
16
|
+
...rest
|
|
17
|
+
} = props;
|
|
18
|
+
process.env.NODE_ENV === "development" && typeof src == "string" && (typeof props.width == "string" && props.width[0] !== "$" || typeof props.height == "string" && props.height[0] !== "$") && (hasWarned || (hasWarned = !0, console.warn('React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.')));
|
|
19
|
+
var finalSource = typeof src == "string" ? {
|
|
20
|
+
uri: src,
|
|
21
|
+
...(isWeb && {
|
|
22
|
+
width: props.width || style?.width,
|
|
23
|
+
height: props.height || style?.height
|
|
24
|
+
})
|
|
25
|
+
} : source ?? src;
|
|
26
|
+
if (finalSource && typeof finalSource == "object") {
|
|
27
|
+
if (!Array.isArray(finalSource) && typeof finalSource.uri == "number" && (finalSource = finalSource.uri, source && typeof source == "object" && !Array.isArray(source))) {
|
|
28
|
+
var _style, _style1, _width;
|
|
29
|
+
(_width = (_style = style).width) !== null && _width !== void 0 || (_style.width = source.width);
|
|
30
|
+
var _height;
|
|
31
|
+
(_height = (_style1 = style).height) !== null && _height !== void 0 || (_style1.height = source.height);
|
|
32
|
+
}
|
|
33
|
+
process.env.NODE_ENV === "development" && process.env.TAMAGUI_IMAGE_CHECK_ERROR && React.useEffect(function () {
|
|
34
|
+
async function run() {
|
|
35
|
+
if (typeof src == "string") try {
|
|
36
|
+
await fetch(src).then(function (res) {
|
|
37
|
+
return res.text();
|
|
38
|
+
});
|
|
39
|
+
} catch {
|
|
40
|
+
console.error(`Error loading image: ${src}`, {
|
|
41
|
+
props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
run();
|
|
46
|
+
}, [src]), finalSource.default && (finalSource = finalSource.default);
|
|
47
|
+
}
|
|
48
|
+
return /* @__PURE__ */_jsx(RNImage, {
|
|
49
|
+
resizeMode: objectFit,
|
|
50
|
+
ref,
|
|
51
|
+
source: finalSource,
|
|
52
|
+
style,
|
|
53
|
+
...rest
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
Image.getSize = RNImage.getSize;
|
|
57
|
+
Image.getSizeWithHeaders = RNImage.getSizeWithHeaders;
|
|
58
|
+
Image.prefetch = RNImage.prefetch;
|
|
59
|
+
Image.prefetchWithMetadata = RNImage.prefetchWithMetadata;
|
|
60
|
+
Image.abortPrefetch = RNImage.abortPrefetch;
|
|
61
|
+
Image.queryCache = RNImage.queryCache;
|
|
62
|
+
export { Image };
|
|
63
|
+
//# sourceMappingURL=Image.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["jsx","_jsx","React","isWeb","styled","usePropsAndStyle","Image","RNImage","StyledImage","name","hasWarned","styleable","inProps","ref","props","style","src","source","objectFit","rest","process","env","NODE_ENV","width","height","console","warn","finalSource","uri","Array","isArray","_style","_style1","_width","_height","TAMAGUI_IMAGE_CHECK_ERROR","useEffect","run","fetch","then","res","text","error","default","resizeMode"],"sources":["../../src/Image.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAAOA,GAAA,IAAAC,IAAW;AAClB,OAAAC,KAAS,aAAa;AAQtB,SAASC,KAAA,QAAQ,oBAAwB;AAEzC,SAASC,MAAA,EAAAC,gBAAwB;AAiH7B,SAAAC,KAAA,IAAAC,OAAA;AA/GJ,IAAAC,WAAM,GAAAJ,MAAc,CAAAG,OAAO;IACzBE,IAAA,EAAM;EACR,CAAC;EAAAC,SAAA;EAAAJ,KAAA,GAAAE,WAAA,CAAAG,SAAA,WAAAC,OAAA,EAAAC,GAAA;IAmCD,IAAI,CAAAC,KAAA,EAAAC,KAAY,IAAAV,gBAAA,CAAAO,OAAA;MAAA;QAAAI,GAAA;QAAAC,MAAA;QAAAC,SAAA;QAAA,GAAAC;MAAA,IAAAL,KAAA;IAETM,OAAM,CAAAC,GAAA,CAAQC,QAAA,KAAY,aAAuB,WAASN,GAAQ,wBAAAF,KAAA,CAAAS,KAAA,gBAAAT,KAAA,CAAAS,KAAA,sBAAAT,KAAA,CAAAU,MAAA,gBAAAV,KAAA,CAAAU,MAAA,iBAAAd,SAAA,KAAAA,SAAA,OAAAe,OAAA,CAAAC,IAAA;IACvE,IAAAC,WAAc,UAASX,GAAA,YAAiB;MAGpCY,GAAA,EAAAZ,GAAQ;MASF,IAAAb,KAAA;QACFoB,KAAA,EAAAT,KAAA,CAAAS,KAAA,IAAAR,KAAA,EAAAQ,KAAA;QAMJC,MAAA,EAAAV,KAAA,CACFU,MAAA,IAAOT,KAAQ,EAAAS;MAET;IAAK,IACLP,MAAI,IAASD,GAAA;IAAA,IACXW,WAAO,IAAM,OAASA,WAAO;MAAA,IAC7B,CAAAE,KAAQ,CAAAC,OAAM,CAAAH,WAAU,KAAO,OAAAA,WAAA,CAAAC,GAAA,iBAAAD,WAAA,GAAAA,WAAA,CAAAC,GAAA,EAAAX,MAAA,WAAAA,MAAA,iBAAAY,KAAA,CAAAC,OAAA,CAAAb,MAAA;QACjC,IAAAc,MAAA,EAAAC,OAAA,EAAAC,MAAA;QAEF,CAAAA,MAAA,GAAU,CAAAF,MAAA,GAAAhB,KAAA,EAAAQ,KAAA,cAAAU,MAAA,gBAAAF,MAAA,CAAAR,KAAA,GAAAN,MAAA,CAAAM,KAAA;QAEhB,IAAIW,OAAA;QAmBE,CAAAA,OAAA,IAAAF,OAAqB,GAAAjB,KAAA,EAAAS,MAAA,cAAAU,OAAA,gBAAAF,OAAA,CAAAR,MAAA,GAAAP,MAAA,CAAAO,MAAA;MACnB;MACEJ,OAAA,CAAIC,GAAA,CAAAC,QAAA,sBAAAF,OAAA,CAAAC,GAAA,CAAAc,yBAAA,IAAAjC,KAAA,CAAAkC,SAAA;QACF,eAAMC,GAAMA,CAAA,EAAK;UACnB,WAAcrB,GAAA,cACZ;YACF,MAAAsB,KAAA,CAAAtB,GAAA,EAAAuB,IAAA,WAAAC,GAAA;cAEJ,OAAAA,GAAA,CAAAC,IAAA;YAEI;UACE,QAIN;YAOHhB,OAAA,CAAAiB,KAAA,yBAAA1B,GAAA;cAAAF;YACC;UACA;QACA;QACAuB,GAAA;MAAA,GACC,CAAIrB,GAAA,CACP,GAAAW,WAAA,CAAAgB,OAAA,KAAAhB,WAAA,GAAAA,WAAA,CAAAgB,OAAA;IAEH;IAED,OAAM,eAAkB1C,IAAA,CAAAM,OAAA;MACxBqC,UAAM,EAAA1B,SAAA;MACNL,GAAM;MACNI,MAAM,EAAAU,WAAA;MACNZ,KAAM;MACN,GAAMI","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/jsx/Image.native.js
CHANGED
|
@@ -3,277 +3,50 @@ import React from "react";
|
|
|
3
3
|
import { isWeb } from "@tamagui/constants";
|
|
4
4
|
import { styled, usePropsAndStyle } from "@tamagui/core";
|
|
5
5
|
import { Image as RNImage } from "react-native";
|
|
6
|
-
function _array_like_to_array(arr, len) {
|
|
7
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
8
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
9
|
-
return arr2;
|
|
10
|
-
}
|
|
11
|
-
function _array_with_holes(arr) {
|
|
12
|
-
if (Array.isArray(arr)) return arr;
|
|
13
|
-
}
|
|
14
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
15
|
-
try {
|
|
16
|
-
var info = gen[key](arg), value = info.value;
|
|
17
|
-
} catch (error) {
|
|
18
|
-
reject(error);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
|
|
22
|
-
}
|
|
23
|
-
function _async_to_generator(fn) {
|
|
24
|
-
return function() {
|
|
25
|
-
var self = this, args = arguments;
|
|
26
|
-
return new Promise(function(resolve, reject) {
|
|
27
|
-
var gen = fn.apply(self, args);
|
|
28
|
-
function _next(value) {
|
|
29
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
30
|
-
}
|
|
31
|
-
function _throw(err) {
|
|
32
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
33
|
-
}
|
|
34
|
-
_next(void 0);
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function _define_property(obj, key, value) {
|
|
39
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
40
|
-
value,
|
|
41
|
-
enumerable: !0,
|
|
42
|
-
configurable: !0,
|
|
43
|
-
writable: !0
|
|
44
|
-
}) : obj[key] = value, obj;
|
|
45
|
-
}
|
|
46
|
-
function _iterable_to_array_limit(arr, i) {
|
|
47
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
48
|
-
if (_i != null) {
|
|
49
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
50
|
-
try {
|
|
51
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
52
|
-
;
|
|
53
|
-
} catch (err) {
|
|
54
|
-
_d = !0, _e = err;
|
|
55
|
-
} finally {
|
|
56
|
-
try {
|
|
57
|
-
!_n && _i.return != null && _i.return();
|
|
58
|
-
} finally {
|
|
59
|
-
if (_d) throw _e;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return _arr;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function _non_iterable_rest() {
|
|
66
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
67
|
-
}
|
|
68
|
-
function _object_spread(target) {
|
|
69
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
70
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
71
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
72
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
73
|
-
}))), ownKeys.forEach(function(key) {
|
|
74
|
-
_define_property(target, key, source[key]);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return target;
|
|
78
|
-
}
|
|
79
|
-
function _object_without_properties(source, excluded) {
|
|
80
|
-
if (source == null) return {};
|
|
81
|
-
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
82
|
-
if (Object.getOwnPropertySymbols) {
|
|
83
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
84
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
85
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
86
|
-
}
|
|
87
|
-
return target;
|
|
88
|
-
}
|
|
89
|
-
function _object_without_properties_loose(source, excluded) {
|
|
90
|
-
if (source == null) return {};
|
|
91
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
92
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
93
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
94
|
-
return target;
|
|
95
|
-
}
|
|
96
|
-
function _sliced_to_array(arr, i) {
|
|
97
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
98
|
-
}
|
|
99
|
-
function _type_of(obj) {
|
|
100
|
-
"@swc/helpers - typeof";
|
|
101
|
-
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
102
|
-
}
|
|
103
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
104
|
-
if (o) {
|
|
105
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
106
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
107
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
108
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function _ts_generator(thisArg, body) {
|
|
112
|
-
var f, y, t, g, _ = {
|
|
113
|
-
label: 0,
|
|
114
|
-
sent: function() {
|
|
115
|
-
if (t[0] & 1) throw t[1];
|
|
116
|
-
return t[1];
|
|
117
|
-
},
|
|
118
|
-
trys: [],
|
|
119
|
-
ops: []
|
|
120
|
-
};
|
|
121
|
-
return g = {
|
|
122
|
-
next: verb(0),
|
|
123
|
-
throw: verb(1),
|
|
124
|
-
return: verb(2)
|
|
125
|
-
}, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
|
|
126
|
-
return this;
|
|
127
|
-
}), g;
|
|
128
|
-
function verb(n) {
|
|
129
|
-
return function(v) {
|
|
130
|
-
return step([
|
|
131
|
-
n,
|
|
132
|
-
v
|
|
133
|
-
]);
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
function step(op) {
|
|
137
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
138
|
-
for (; _; ) try {
|
|
139
|
-
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
140
|
-
switch (y = 0, t && (op = [
|
|
141
|
-
op[0] & 2,
|
|
142
|
-
t.value
|
|
143
|
-
]), op[0]) {
|
|
144
|
-
case 0:
|
|
145
|
-
case 1:
|
|
146
|
-
t = op;
|
|
147
|
-
break;
|
|
148
|
-
case 4:
|
|
149
|
-
return _.label++, {
|
|
150
|
-
value: op[1],
|
|
151
|
-
done: !1
|
|
152
|
-
};
|
|
153
|
-
case 5:
|
|
154
|
-
_.label++, y = op[1], op = [
|
|
155
|
-
0
|
|
156
|
-
];
|
|
157
|
-
continue;
|
|
158
|
-
case 7:
|
|
159
|
-
op = _.ops.pop(), _.trys.pop();
|
|
160
|
-
continue;
|
|
161
|
-
default:
|
|
162
|
-
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
163
|
-
_ = 0;
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
167
|
-
_.label = op[1];
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
171
|
-
_.label = t[1], t = op;
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
if (t && _.label < t[2]) {
|
|
175
|
-
_.label = t[2], _.ops.push(op);
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
t[2] && _.ops.pop(), _.trys.pop();
|
|
179
|
-
continue;
|
|
180
|
-
}
|
|
181
|
-
op = body.call(thisArg, _);
|
|
182
|
-
} catch (e) {
|
|
183
|
-
op = [
|
|
184
|
-
6,
|
|
185
|
-
e
|
|
186
|
-
], y = 0;
|
|
187
|
-
} finally {
|
|
188
|
-
f = t = 0;
|
|
189
|
-
}
|
|
190
|
-
if (op[0] & 5) throw op[1];
|
|
191
|
-
return {
|
|
192
|
-
value: op[0] ? op[1] : void 0,
|
|
193
|
-
done: !0
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
6
|
var StyledImage = styled(RNImage, {
|
|
198
7
|
name: "Image"
|
|
199
8
|
}), hasWarned = !1, Image = StyledImage.styleable(function(inProps, ref) {
|
|
200
|
-
var
|
|
201
|
-
"src",
|
|
202
|
-
"source",
|
|
203
|
-
"objectFit"
|
|
204
|
-
]);
|
|
9
|
+
var [props, style] = usePropsAndStyle(inProps), { src, source, objectFit, ...rest } = props;
|
|
205
10
|
process.env.NODE_ENV === "development" && typeof src == "string" && (typeof props.width == "string" && props.width[0] !== "$" || typeof props.height == "string" && props.height[0] !== "$") && (hasWarned || (hasWarned = !0, console.warn('React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.')));
|
|
206
|
-
var finalSource = typeof src == "string" ?
|
|
207
|
-
uri: src
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
11
|
+
var finalSource = typeof src == "string" ? {
|
|
12
|
+
uri: src,
|
|
13
|
+
...isWeb && {
|
|
14
|
+
width: props.width || (style == null ? void 0 : style.width),
|
|
15
|
+
height: props.height || (style == null ? void 0 : style.height)
|
|
16
|
+
}
|
|
17
|
+
} : source ?? src;
|
|
18
|
+
if (finalSource && typeof finalSource == "object") {
|
|
19
|
+
if (!Array.isArray(finalSource) && typeof finalSource.uri == "number" && (finalSource = finalSource.uri, source && typeof source == "object" && !Array.isArray(source))) {
|
|
214
20
|
var _style, _style1, _width;
|
|
215
21
|
(_width = (_style = style).width) !== null && _width !== void 0 || (_style.width = source.width);
|
|
216
22
|
var _height;
|
|
217
23
|
(_height = (_style1 = style).height) !== null && _height !== void 0 || (_style1.height = source.height);
|
|
218
24
|
}
|
|
219
25
|
process.env.NODE_ENV === "development" && process.env.TAMAGUI_IMAGE_CHECK_ERROR && React.useEffect(function() {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
4
|
|
232
|
-
];
|
|
233
|
-
_state.label = 1;
|
|
234
|
-
case 1:
|
|
235
|
-
return _state.trys.push([
|
|
236
|
-
1,
|
|
237
|
-
3,
|
|
238
|
-
,
|
|
239
|
-
4
|
|
240
|
-
]), [
|
|
241
|
-
4,
|
|
242
|
-
fetch(src).then(function(res) {
|
|
243
|
-
return res.text();
|
|
244
|
-
})
|
|
245
|
-
];
|
|
246
|
-
case 2:
|
|
247
|
-
return _state.sent(), [
|
|
248
|
-
3,
|
|
249
|
-
4
|
|
250
|
-
];
|
|
251
|
-
case 3:
|
|
252
|
-
return err = _state.sent(), console.error("Error loading image: ".concat(src), {
|
|
253
|
-
props
|
|
254
|
-
}), [
|
|
255
|
-
3,
|
|
256
|
-
4
|
|
257
|
-
];
|
|
258
|
-
case 4:
|
|
259
|
-
return [
|
|
260
|
-
2
|
|
261
|
-
];
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
}), _run.apply(this, arguments);
|
|
26
|
+
async function run() {
|
|
27
|
+
if (typeof src == "string")
|
|
28
|
+
try {
|
|
29
|
+
await fetch(src).then(function(res) {
|
|
30
|
+
return res.text();
|
|
31
|
+
});
|
|
32
|
+
} catch {
|
|
33
|
+
console.error(`Error loading image: ${src}`, {
|
|
34
|
+
props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
265
37
|
}
|
|
266
38
|
run();
|
|
267
39
|
}, [
|
|
268
40
|
src
|
|
269
41
|
]), finalSource.default && (finalSource = finalSource.default);
|
|
270
42
|
}
|
|
271
|
-
return /* @__PURE__ */ _jsx(RNImage,
|
|
43
|
+
return /* @__PURE__ */ _jsx(RNImage, {
|
|
272
44
|
resizeMode: objectFit,
|
|
273
45
|
ref,
|
|
274
46
|
source: finalSource,
|
|
275
|
-
style
|
|
276
|
-
|
|
47
|
+
style,
|
|
48
|
+
...rest
|
|
49
|
+
});
|
|
277
50
|
});
|
|
278
51
|
Image.getSize = RNImage.getSize;
|
|
279
52
|
Image.getSizeWithHeaders = RNImage.getSizeWithHeaders;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/image/src/Image.tsx"],
|
|
4
|
-
"mappings": ";AAAA,OAAOA,WAAW;AAClB,SAASC,aAAa;AAQtB,SAASC,QAAQC,wBAAwB;AAEzC,SAASC,SAASC,eAAe
|
|
5
|
-
"names": ["React", "isWeb", "styled", "usePropsAndStyle", "Image", "RNImage", "StyledImage", "name", "hasWarned", "styleable", "inProps", "ref", "props", "style", "src", "source", "objectFit", "rest", "process", "env", "NODE_ENV", "width", "height", "console", "warn", "finalSource", "uri", "Array", "isArray", "TAMAGUI_IMAGE_CHECK_ERROR", "useEffect", "run", "
|
|
4
|
+
"mappings": ";AAAA,OAAOA,WAAW;AAClB,SAASC,aAAa;AAQtB,SAASC,QAAQC,wBAAwB;AAEzC,SAASC,SAASC,eAAe;AAEjC,IAAMC,cAAcJ,OAAOG,SAAS;EAClCE,MAAM;AACR,CAAA,GAmCIC,YAAY,IAEHJ,QAAQE,YAAYG,UAAsB,SAACC,SAASC,KAAAA;AAC/D,MAAM,CAACC,OAAOC,KAAAA,IAASV,iBAAiBO,OAAAA,GAClC,EAAEI,KAAKC,QAAQC,WAAW,GAAGC,KAAAA,IAASL;AAE5C,EAAIM,QAAQC,IAAIC,aAAa,iBACvB,OAAON,OAAQ,aAEd,OAAOF,MAAMS,SAAU,YAAYT,MAAMS,MAAM,CAAA,MAAO,OACtD,OAAOT,MAAMU,UAAW,YAAYV,MAAMU,OAAO,CAAA,MAAO,SAEpDd,cACHA,YAAY,IACZe,QAAQC,KACN,4IAA4I;AAOtJ,MAAIC,cACF,OAAOX,OAAQ,WACX;IACEY,KAAKZ;IACL,GAAIb,SAAS;MACXoB,OAAOT,MAAMS,UAASR,SAAAA,OAAAA,SAAAA,MAAOQ;MAC7BC,QAAQV,MAAMU,WAAUT,SAAAA,OAAAA,SAAAA,MAAOS;IACjC;EACF,IACAP,UAAUD;AAEhB,MAAIW,eAAe,OAAOA,eAAgB,UAAU;AAGhD,QAAI,CAACE,MAAMC,QAAQH,WAAAA,KACb,OAAOA,YAAYC,OAAQ,aAC7BD,cAAcA,YAAYC,KACtBX,UAAU,OAAOA,UAAW,YAAY,CAACY,MAAMC,QAAQb,MAAAA,IAAS;UAElEF,QAEAA;AAFAA,OAAAA,UAAAA,SAAAA,OAAMQ,WAAAA,QAAAA,WAAAA,WAANR,OAAMQ,QAAUN,OAAOM;;AAEvBR,OAAAA,WAAAA,UAAAA,OAAMS,YAAAA,QAAAA,YAAAA,WAANT,QAAMS,SAAWP,OAAOO;IAC1B;AAKN,IAAIJ,QAAQC,IAAIC,aAAa,iBAAiBF,QAAQC,IAAIU,6BAExD7B,MAAM8B,UAAU,WAAA;AACd,qBAAeC,MAAAA;AACb,YAAI,OAAOjB,OAAQ;AACjB,cAAI;AACF,kBAAMkB,MAAMlB,GAAAA,EAAKmB,KAAK,SAACC,KAAAA;qBAAQA,IAAIC,KAAI;;UACzC,QAAc;AACZZ,oBAAQa,MAAM,wBAAwBtB,GAAAA,IAAO;cAAEF;YAAM,CAAA;UACvD;MAEJ;AAEAmB,UAAAA;IACF,GAAG;MAACjB;KAAI,GAINW,YAAY,YACdA,cAAcA,YAAY;EAE9B;AAGA,SACE,qBAACpB,SAAAA;IACCgC,YAAYrB;IACZL;IACAI,QAAQU;IACRZ;IACC,GAAII;;AAGX,CAAA;AAEAb,MAAMkC,UAAUjC,QAAQiC;AACxBlC,MAAMmC,qBAAqBlC,QAAQkC;AACnCnC,MAAMoC,WAAWnC,QAAQmC;AACzBpC,MAAMqC,uBAAuBpC,QAAQoC;AACrCrC,MAAMsC,gBAAgBrC,QAAQqC;AAC9BtC,MAAMuC,aAAatC,QAAQsC;",
|
|
5
|
+
"names": ["React", "isWeb", "styled", "usePropsAndStyle", "Image", "RNImage", "StyledImage", "name", "hasWarned", "styleable", "inProps", "ref", "props", "style", "src", "source", "objectFit", "rest", "process", "env", "NODE_ENV", "width", "height", "console", "warn", "finalSource", "uri", "Array", "isArray", "TAMAGUI_IMAGE_CHECK_ERROR", "useEffect", "run", "fetch", "then", "res", "text", "error", "resizeMode", "getSize", "getSizeWithHeaders", "prefetch", "prefetchWithMetadata", "abortPrefetch", "queryCache"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/image",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.111.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tamagui/constants": "1.
|
|
37
|
-
"@tamagui/core": "1.
|
|
36
|
+
"@tamagui/constants": "1.111.0",
|
|
37
|
+
"@tamagui/core": "1.111.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "*"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@tamagui/build": "1.
|
|
43
|
+
"@tamagui/build": "1.111.0",
|
|
44
44
|
"react": "^18.2.0 || ^19.0.0",
|
|
45
45
|
"react-native": "0.74.1"
|
|
46
46
|
},
|