@htmlbricks/hb-vertical-img-txt-archive 0.71.36 → 0.72.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/README.md +7 -13
- package/main.iife.js +4 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +14 -5
- package/package.json +2 -2
- package/types/webcomponent.type.d.json +2 -1
- package/types/webcomponent.type.d.ts +4 -2
- package/types/webcomponent_events.type.d.json +8 -0
package/manifest.json
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
"collectionItemClick": {
|
|
11
11
|
"additionalProperties": false,
|
|
12
12
|
"properties": {
|
|
13
|
+
"link_type": {
|
|
14
|
+
"enum": [
|
|
15
|
+
"tab",
|
|
16
|
+
"page",
|
|
17
|
+
"event"
|
|
18
|
+
],
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
13
21
|
"uri": {
|
|
14
22
|
"type": "string"
|
|
15
23
|
}
|
|
@@ -44,6 +52,7 @@
|
|
|
44
52
|
"type": "string"
|
|
45
53
|
},
|
|
46
54
|
"size": {
|
|
55
|
+
"description": "Reserved for future layout tuning; column count is derived from viewport width.",
|
|
47
56
|
"type": "number"
|
|
48
57
|
},
|
|
49
58
|
"style": {
|
|
@@ -66,6 +75,7 @@
|
|
|
66
75
|
},
|
|
67
76
|
"link": {
|
|
68
77
|
"additionalProperties": false,
|
|
78
|
+
"description": "When set, the card is clickable: dispatches `collectionItemClick` and applies `tab` / `page` navigation; `event` only notifies the host.",
|
|
69
79
|
"properties": {
|
|
70
80
|
"type": {
|
|
71
81
|
"enum": [
|
|
@@ -98,7 +108,6 @@
|
|
|
98
108
|
"required": [
|
|
99
109
|
"title",
|
|
100
110
|
"text",
|
|
101
|
-
"link",
|
|
102
111
|
"image"
|
|
103
112
|
],
|
|
104
113
|
"type": "object"
|
|
@@ -106,7 +115,7 @@
|
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
117
|
},
|
|
109
|
-
"description": "Vertical archive grid: `collection` items with `title`, `text`, `image`, and `link` (
|
|
118
|
+
"description": "Vertical archive grid: `collection` items with `title`, `text`, `image`, and optional `link` (`type` + `uri`). Clicking a card with a link dispatches `collectionItemClick` and performs `tab` / `page` navigation; `event` link types only emit. CSS parts style container, item, image, title, and text.",
|
|
110
119
|
"storybookArgs": {
|
|
111
120
|
"collection": {
|
|
112
121
|
"control": {
|
|
@@ -164,7 +173,7 @@
|
|
|
164
173
|
"parts": [
|
|
165
174
|
{
|
|
166
175
|
"name": "container",
|
|
167
|
-
"description": "CSS grid host; column count follows viewport
|
|
176
|
+
"description": "CSS grid host; column count follows viewport width (not the optional `size` prop)."
|
|
168
177
|
},
|
|
169
178
|
{
|
|
170
179
|
"name": "item",
|
|
@@ -420,7 +429,7 @@
|
|
|
420
429
|
}
|
|
421
430
|
}
|
|
422
431
|
],
|
|
423
|
-
"iifeIntegrity": "sha384-
|
|
432
|
+
"iifeIntegrity": "sha384-gZbNjFzZEIOLk21lxyWkiqYceE79JVZFYcKEJxaqubJWKTrK2l+nFPhfnhyL12HX",
|
|
424
433
|
"dependencies": [],
|
|
425
434
|
"screenshots": [],
|
|
426
435
|
"licenses": [
|
|
@@ -441,5 +450,5 @@
|
|
|
441
450
|
"size": {},
|
|
442
451
|
"iifePath": "main.iife.js",
|
|
443
452
|
"repoName": "@htmlbricks/hb-vertical-img-txt-archive",
|
|
444
|
-
"version": "0.
|
|
453
|
+
"version": "0.72.0"
|
|
445
454
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-vertical-img-txt-archive",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.0",
|
|
4
4
|
"contributors": [],
|
|
5
|
-
"description": "Vertical archive grid: `collection` items with `title`, `text`, `image`, and `link` (
|
|
5
|
+
"description": "Vertical archive grid: `collection` items with `title`, `text`, `image`, and optional `link` (`type` + `uri`). Clicking a card with a link dispatches `collectionItemClick` and performs `tab` / `page` navigation; `event` link types only emit. CSS parts style container, item, image, title, and text.",
|
|
6
6
|
"licenses": [
|
|
7
7
|
{
|
|
8
8
|
"type": "Apache-2.0",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"type": "string"
|
|
16
16
|
},
|
|
17
17
|
"size": {
|
|
18
|
+
"description": "Reserved for future layout tuning; column count is derived from viewport width.",
|
|
18
19
|
"type": "number"
|
|
19
20
|
},
|
|
20
21
|
"style": {
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
},
|
|
38
39
|
"link": {
|
|
39
40
|
"additionalProperties": false,
|
|
41
|
+
"description": "When set, the card is clickable: dispatches `collectionItemClick` and applies `tab` / `page` navigation; `event` only notifies the host.",
|
|
40
42
|
"properties": {
|
|
41
43
|
"type": {
|
|
42
44
|
"enum": [
|
|
@@ -69,7 +71,6 @@
|
|
|
69
71
|
"required": [
|
|
70
72
|
"title",
|
|
71
73
|
"text",
|
|
72
|
-
"link",
|
|
73
74
|
"image"
|
|
74
75
|
],
|
|
75
76
|
"type": "object"
|
|
@@ -2,7 +2,8 @@ export type Item = {
|
|
|
2
2
|
title: string;
|
|
3
3
|
subtitle?: string;
|
|
4
4
|
text: string;
|
|
5
|
-
|
|
5
|
+
/** When set, the card is clickable: dispatches `collectionItemClick` and applies `tab` / `page` navigation; `event` only notifies the host. */
|
|
6
|
+
link?: { type: "tab" | "page" | "event"; uri: string };
|
|
6
7
|
index?: number;
|
|
7
8
|
image: string;
|
|
8
9
|
};
|
|
@@ -11,9 +12,10 @@ export type Component = {
|
|
|
11
12
|
id?: string;
|
|
12
13
|
style?: string;
|
|
13
14
|
collection: Item[];
|
|
15
|
+
/** Reserved for future layout tuning; column count is derived from viewport width. */
|
|
14
16
|
size?: number;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
export type Events = {
|
|
18
|
-
collectionItemClick: { uri: string };
|
|
20
|
+
collectionItemClick: { uri: string; link_type?: "tab" | "page" | "event" };
|
|
19
21
|
};
|