@htmlbricks/hb-site-slideshow 0.66.8 → 0.66.10

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 ADDED
@@ -0,0 +1,39 @@
1
+ ## `hb-site-slideshow` — site-slideshow
2
+
3
+ **Category:** content
4
+ **Tags:** content, media
5
+
6
+ ### What it does
7
+
8
+ Full-viewport image slideshow: pass `data` as an array of slides (`href`, optional `caption`). Supports optional `index` and `timer`, dots and captions via CSS parts, and slots `overlay`, `prev`, `next`, `cover_on_images`. Dispatches slide change and hover events.
9
+
10
+ ### Custom element
11
+
12
+ `hb-site-slideshow`
13
+
14
+ ### Attributes (snake_case; use string values in HTML)
15
+
16
+ - `id` (optional), `style` (optional): strings.
17
+ - `data` (required): JSON string — `{ href: string; caption?; index? }[]`.
18
+ - `index` (optional): number as string — initial slide.
19
+ - `timer` (optional): number as string — autoplay interval.
20
+
21
+ ### Events
22
+
23
+ - `changeSlide`: `{ index: number }`.
24
+ - `onHover`: `{ index: number; hover: boolean }`.
25
+
26
+ ### Usage notes
27
+
28
+ - **CSS parts:** `dot`, `caption_container`, `caption_content`, `cover_on_images`.
29
+ - **Slots:** `overlay`, `prev`, `next`, `cover_on_images`.
30
+ - Declared **size** metadata: fullscreen layout.
31
+
32
+ ### Minimal HTML example
33
+
34
+ ```html
35
+ <hb-site-slideshow
36
+ data='[{"href":"https://example.com/a.jpg","caption":"A"},{"href":"https://example.com/b.jpg","caption":"B"}]'
37
+ index="0"
38
+ ></hb-site-slideshow>
39
+ ```
package/manifest.json CHANGED
@@ -205,5 +205,5 @@
205
205
  },
206
206
  "iifePath": "main.iife.js",
207
207
  "repoName": "@htmlbricks/hb-site-slideshow",
208
- "version": "0.66.8"
208
+ "version": "0.66.10"
209
209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-site-slideshow",
3
- "version": "0.66.8",
3
+ "version": "0.66.10",
4
4
  "contributors": [],
5
5
  "description": "Full-viewport image slideshow: pass `data` as an array of slides (`href`, optional `caption`). Supports optional `index` and `timer`, dots and captions via CSS parts, overlay/prev/next/cover slots, and dispatches slide change and hover events.",
6
6
  "licenses": [