@llmnative/react 1.15.3 → 1.15.4

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/index.mjs CHANGED
@@ -7840,16 +7840,17 @@ var bc = 120, xc = 88, Sc = (e) => {
7840
7840
  let { variants: t, naturalWidth: i } = await nc(a, r), o = d && n ? await rc(t, d, n, e.name) : t.map((e) => ({
7841
7841
  url: e.localUrl,
7842
7842
  width: e.width
7843
- })), s = e.name.split(".").pop() ?? "jpg", c = e.name.replace(/\.[^/.]+$/, ""), l = d && n ? await d.upload(a, `${n}/${c}_${i}w.${s}`) ?? a : URL.createObjectURL(await fetch(a).then((e) => e.blob())), u = [...o, {
7844
- url: l,
7843
+ })), s = e.name.split(".").pop() ?? "jpg", c = e.name.replace(/\.[^/.]+$/, ""), l = d && n ? await d.upload(a, `${n}/${c}_${i}w.${s}`) : void 0, u = l ?? (d && n ? a : URL.createObjectURL(await fetch(a).then((e) => e.blob()))), f = [...o, {
7844
+ url: u,
7845
7845
  width: i
7846
7846
  }];
7847
- if (u.length > 0) {
7847
+ if (f.length > 0) {
7848
7848
  v(e.name, {
7849
- url: l,
7850
- srcset: ic(u),
7849
+ url: u,
7850
+ srcset: ic(f),
7851
7851
  sizes: "(max-width: 640px) 100vw, 800px",
7852
- progress: 100
7852
+ progress: 100,
7853
+ ...l ? { base64: void 0 } : {}
7853
7854
  });
7854
7855
  return;
7855
7856
  }
@@ -7859,7 +7860,8 @@ var bc = 120, xc = 88, Sc = (e) => {
7859
7860
  if (t) {
7860
7861
  v(e.name, {
7861
7862
  url: t,
7862
- progress: 100
7863
+ progress: 100,
7864
+ base64: void 0
7863
7865
  });
7864
7866
  return;
7865
7867
  }