pxengine 0.1.51 → 0.1.52

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.cjs CHANGED
@@ -34997,7 +34997,7 @@ ${post.hashtags.join(" ")}`;
34997
34997
  loading: "lazy"
34998
34998
  }
34999
34999
  ),
35000
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
35000
+ post.image.photographer_url ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
35001
35001
  "a",
35002
35002
  {
35003
35003
  href: post.image.photographer_url,
@@ -35006,7 +35006,7 @@ ${post.hashtags.join(" ")}`;
35006
35006
  className: "absolute bottom-1.5 right-1.5 text-[9px] text-white/70 bg-black/50 px-1.5 py-0.5 rounded-full hover:text-white",
35007
35007
  children: post.image.photographer
35008
35008
  }
35009
- )
35009
+ ) : post.image.photographer ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "absolute bottom-1.5 right-1.5 text-[9px] text-white/70 bg-black/50 px-1.5 py-0.5 rounded-full", children: post.image.photographer }) : null
35010
35010
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "w-full aspect-square rounded-lg bg-[#27272a] flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "text-[#52525b] text-xs", children: "No image" }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "px-4 flex-1", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "rounded-lg bg-[#18181b] px-3 py-3 space-y-2.5 min-h-[140px]", children: [
35011
35011
  /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "h-3 w-[85%] rounded bg-[#27272a] animate-pulse" }),
35012
35012
  /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "h-3 w-[70%] rounded bg-[#27272a] animate-pulse" }),
@@ -35131,20 +35131,7 @@ var SocialPostCard = ({
35131
35131
  children: filteredPosts.map((post, idx) => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(PlatformPost, { post, loading }, `${post.platform}-${idx}`))
35132
35132
  }
35133
35133
  ),
35134
- filteredPosts.some((p) => p.image) && /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("p", { className: "text-[10px] text-zinc-600 text-center", children: [
35135
- "Images provided by",
35136
- " ",
35137
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
35138
- "a",
35139
- {
35140
- href: "https://unsplash.com/?utm_source=pxengine&utm_medium=referral",
35141
- target: "_blank",
35142
- rel: "noopener noreferrer",
35143
- className: "underline hover:text-zinc-400",
35144
- children: "Unsplash"
35145
- }
35146
- )
35147
- ] })
35134
+ filteredPosts.some((p) => p.image) && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: "text-[10px] text-zinc-600 text-center", children: "Images generated by AI" })
35148
35135
  ] });
35149
35136
  };
35150
35137