@livelike/custom-kit 1.0.1 → 1.0.2
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/livelike.js +62 -56
- package/dist/livelike.umd.cjs +22 -22
- package/package.json +1 -1
- package/readme.md +8 -5
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -68,8 +68,9 @@ LiveLike:
|
|
|
68
68
|
In any state:
|
|
69
69
|
|
|
70
70
|
- Percentages appear on every option once `polling_result_time` passes.
|
|
71
|
-
-
|
|
72
|
-
|
|
71
|
+
- When both `info_title` and `info_text` are set, an **ⓘ** icon in the header
|
|
72
|
+
opens an info popup with them. It closes with **×** or by clicking outside
|
|
73
|
+
it.
|
|
73
74
|
|
|
74
75
|
## Widget attributes
|
|
75
76
|
|
|
@@ -88,8 +89,9 @@ Widget attributes are `{ key, value }` pairs set on the widget in LiveLike
|
|
|
88
89
|
| `polling_starts_time` | ISO date-time | When voting opens. | Voting is open immediately. |
|
|
89
90
|
| `polling_result_time` | ISO date-time | When vote percentages appear. Independent of the open/close times. | Percentages are never shown. |
|
|
90
91
|
| `highlights_url` | URL | "Watch highlights" link in the "Voting submitted!" popup. | Link is hidden. |
|
|
91
|
-
| `info_title` | Text | Title of the info popup. |
|
|
92
|
-
| `info_text` | Text | Body of the info popup. |
|
|
92
|
+
| `info_title` | Text | Title of the info popup. Needs `info_text` too. | No info icon or popup. |
|
|
93
|
+
| `info_text` | Text | Body of the info popup. Needs `info_title` too. | No info icon or popup. |
|
|
94
|
+
| `options_theme` | `light` | Shows the options list on a white background with dark text; a selected option turns black with white text. Any other value is ignored. | Dark options list. |
|
|
93
95
|
|
|
94
96
|
A widget left open on screen updates itself at each of these times, so viewers
|
|
95
97
|
don't need to reload. When percentages are revealed, it fetches fresh vote
|
|
@@ -105,7 +107,8 @@ counts.
|
|
|
105
107
|
{ "key": "polling_result_time", "value": "2026-10-14T06:00:00Z" },
|
|
106
108
|
{ "key": "highlights_url", "value": "https://www.mlssoccer.com/video" },
|
|
107
109
|
{ "key": "info_title", "value": "Player of the Match" },
|
|
108
|
-
{ "key": "info_text", "value": "Vote for your standout player. You can change your vote until voting closes." }
|
|
110
|
+
{ "key": "info_text", "value": "Vote for your standout player. You can change your vote until voting closes." },
|
|
111
|
+
{ "key": "options_theme", "value": "light" }
|
|
109
112
|
]
|
|
110
113
|
```
|
|
111
114
|
|