fragment-headless-sdk 2.4.1 → 2.4.3

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.
@@ -23,7 +23,7 @@ export default function DesktopHero({ buttonHref, content, colors, contentWidthC
23
23
  /* Image Background */
24
24
  content?.imageUrl && (React.createElement("img", { src: content.imageUrl, alt: content.title || "Hero", className: "absolute inset-0 z-0 object-cover w-full h-full" }))),
25
25
  React.createElement("div", { className: `relative z-10 mx-auto flex h-full max-w-screen-xl flex-col justify-center px-10 ${getPositionClasses()} xl:px-4` },
26
- React.createElement("div", { className: joinClassNames("max-w-full flex flex-col", contentSpacing ?? "gap-4", contentWidthClass || DEFAULT_CONTENT_WIDTH_CLASS) },
26
+ React.createElement("div", { className: joinClassNames("max-w-full flex flex-col items-start", contentSpacing ?? "gap-4", contentWidthClass || DEFAULT_CONTENT_WIDTH_CLASS) },
27
27
  renderText({
28
28
  fontSize: typography.title.fontSize,
29
29
  lineHeight: typography.title.lineHeight,
@@ -127,7 +127,7 @@ export function renderText({ fontSize, lineHeight, text, className, color, font,
127
127
  if (!text || text.trim().length === 0) {
128
128
  return null;
129
129
  }
130
- const baseClasses = "drop-shadow-lg";
130
+ const baseClasses = "drop-shadow-lg max-w-full break-words";
131
131
  const combinedClasses = className
132
132
  ? `${baseClasses} ${fontSize} ${lineHeight} ${className}`
133
133
  : `${baseClasses} ${fontSize} ${lineHeight}`;
package/docs/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ### [Unreleased]
9
9
 
10
+ ### [2.4.3] - 2026-04-14
11
+
12
+ #### Fixed
13
+
14
+ - **Hero text overflow**: `renderText` base classes now include `max-w-full break-words` so title and description respect their content column width and wrap correctly when content contains non-breaking spaces.
15
+ - **Desktop hero content alignment**: `DesktopHero` content column now uses `items-start` so child elements (button, countdown) no longer stretch to full column width.
16
+
17
+ ### [2.4.2] - 2026-04-14
18
+
19
+ #### Fixed
20
+
21
+ - **Hero banner text overflow**: Title and description in `DesktopHero` are now clamped to 3 lines with ellipsis (`line-clamp-3`) to prevent layout overflow at narrower viewport widths.
22
+
10
23
  ### [2.4.1] - 2026-04-10
11
24
 
12
25
  #### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fragment-headless-sdk",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Official SDK for Fragment-Shopify CMS: React components, TypeScript types, and utilities for headless Shopify storefronts.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",