@htmlbricks/hb-paragraps-around-image-cell 0.71.36 → 0.71.37

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # hb-paragraps-around-image-cell
1
+ # `hb-paragraps-around-image-cell` — integrator guide
2
2
 
3
- **Category:** content · **Tags:** content
3
+ **Category:** content · **Tags:** content · **Package:** `@htmlbricks/hb-paragraps-around-image-cell`
4
4
 
5
- ## Overview
5
+ ## Summary
6
6
 
7
7
  `hb-paragraps-around-image-cell` renders a single content tile: a Bootstrap icon, an optional title row (plain text, external link, or interactive control), and a body paragraph whose height is limited by a line clamp so tiles stay visually consistent in multi-column layouts. It is designed to sit inside `hb-paragraps-around-image` (the parent “paragraphs around image” layout) but can be used on its own wherever you need a compact icon + text block.
8
8
 
@@ -18,7 +18,7 @@ Web component attributes are always strings. Pass structured data as JSON on `pa
18
18
 
19
19
  | Attribute | Required | Description |
20
20
  |-----------|----------|-------------|
21
- | `paragraph` | Yes | JSON string describing the tile. Parsed in the component; invalid JSON is logged and the tile may not render. |
21
+ | `paragraph` | No | JSON string (or object from JS) describing the tile. Parsed in the component; missing or invalid values may not render. |
22
22
  | `max_lines` | No | Maximum number of lines for the body text clamp. Coerced to a number internally; default **8** if omitted. |
23
23
  | `id` | No | Optional host `id` (standard HTML). |
24
24
 
package/manifest.json CHANGED
@@ -41,15 +41,19 @@
41
41
  "type": "number"
42
42
  },
43
43
  "paragraph": {
44
- "$ref": "#/definitions/Paragraphs"
44
+ "anyOf": [
45
+ {
46
+ "$ref": "#/definitions/Paragraphs"
47
+ },
48
+ {
49
+ "type": "string"
50
+ }
51
+ ]
45
52
  },
46
53
  "style": {
47
54
  "type": "string"
48
55
  }
49
56
  },
50
- "required": [
51
- "paragraph"
52
- ],
53
57
  "type": "object"
54
58
  },
55
59
  "Paragraphs": {
@@ -208,5 +212,5 @@
208
212
  "size": {},
209
213
  "iifePath": "main.iife.js",
210
214
  "repoName": "@htmlbricks/hb-paragraps-around-image-cell",
211
- "version": "0.71.36"
215
+ "version": "0.71.37"
212
216
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-paragraps-around-image-cell",
3
- "version": "0.71.36",
3
+ "version": "0.71.37",
4
4
  "contributors": [],
5
5
  "description": "One paragraph tile with Bootstrap icon, optional title as external link or key-triggered control (dispatches paragraphPressed with key), and body text clamped to max_lines for consistent height inside paragraps-around-image layouts.",
6
6
  "licenses": [
@@ -12,15 +12,19 @@
12
12
  "type": "number"
13
13
  },
14
14
  "paragraph": {
15
- "$ref": "#/definitions/Paragraphs"
15
+ "anyOf": [
16
+ {
17
+ "$ref": "#/definitions/Paragraphs"
18
+ },
19
+ {
20
+ "type": "string"
21
+ }
22
+ ]
16
23
  },
17
24
  "style": {
18
25
  "type": "string"
19
26
  }
20
27
  },
21
- "required": [
22
- "paragraph"
23
- ],
24
28
  "type": "object"
25
29
  },
26
30
  "Paragraphs": {
@@ -1,7 +1,7 @@
1
1
  import type { Paragraphs } from "../../paragraps-around-image/types/webcomponent.type";
2
2
 
3
3
  export type Component = {
4
- paragraph: Paragraphs;
4
+ paragraph?: Paragraphs | string;
5
5
  id?: string;
6
6
  style?: string;
7
7
  max_lines?: number;