@livelike/custom-kit 1.0.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livelike/custom-kit",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "dist/livelike.umd.cjs",
5
5
  "module": "dist/livelike.js",
6
6
  "types": "dist/index.d.ts",
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
- - The **ⓘ** icon in the header opens an info popup with `info_title` and
72
- `info_text`. It closes with **×** or by clicking outside it.
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. | "How it works" |
92
- | `info_text` | Text | Body of the info popup. | Default voting instructions. |
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