@livelike/custom-kit 1.0.2 → 1.0.3

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.
@@ -1,5 +1,4 @@
1
1
  export declare const info: any;
2
- export declare const attLogo: any;
3
2
  export declare const football: any;
4
3
  export declare const checkCircle: any;
5
4
  export declare const closeCircle: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livelike/custom-kit",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "dist/livelike.umd.cjs",
5
5
  "module": "dist/livelike.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -45,6 +45,8 @@ document.body.appendChild(poll);
45
45
  LiveLike:
46
46
 
47
47
  - **Header title:** the widget's question.
48
+ - **Header logo:** the Goal sponsor logo, or the Save sponsor logo when
49
+ `sponsor_type` is `save_sponsor`.
48
50
  - **Hero image:** the widget's sponsor logo.
49
51
  - **Option name and photo:** each option's description and image.
50
52
  - **Voting close time:** the widget's `interactive_until`.
@@ -60,6 +62,9 @@ LiveLike:
60
62
  - **×** closes it, and the button reads "Vote successful".
61
63
  - **Vote again** reopens the options. Submitting again changes the existing
62
64
  vote rather than adding a second one.
65
+ - A second button, labelled `secondary_poll_title`, opens
66
+ `secondary_poll_url` in a new tab. It sits below **Vote again** and only
67
+ appears when both are set.
63
68
  - **Watch highlights** opens `highlights_url` in a new tab.
64
69
  4. **Voting closed:** the banner reads "Voting closed", the hero is replaced by
65
70
  a "Voting closed: the whistle has blown!" banner, options are dimmed, and
@@ -91,6 +96,9 @@ Widget attributes are `{ key, value }` pairs set on the widget in LiveLike
91
96
  | `highlights_url` | URL | "Watch highlights" link in the "Voting submitted!" popup. | Link is hidden. |
92
97
  | `info_title` | Text | Title of the info popup. Needs `info_text` too. | No info icon or popup. |
93
98
  | `info_text` | Text | Body of the info popup. Needs `info_title` too. | No info icon or popup. |
99
+ | `secondary_poll_title` | Text | Label of a second button below "Vote again" in the "Voting submitted!" popup. Needs `secondary_poll_url` too. | Button is hidden. |
100
+ | `secondary_poll_url` | URL | Page the second button opens in a new tab. Needs `secondary_poll_title` too. | Button is hidden. |
101
+ | `sponsor_type` | `save_sponsor` | Shows the Save sponsor logo in the header. Any other value is ignored. | Goal sponsor logo. |
94
102
  | `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. |
95
103
 
96
104
  A widget left open on screen updates itself at each of these times, so viewers
@@ -108,6 +116,9 @@ counts.
108
116
  { "key": "highlights_url", "value": "https://www.mlssoccer.com/video" },
109
117
  { "key": "info_title", "value": "Player of the Match" },
110
118
  { "key": "info_text", "value": "Vote for your standout player. You can change your vote until voting closes." },
119
+ { "key": "secondary_poll_title", "value": "Vote for Save of the Year" },
120
+ { "key": "secondary_poll_url", "value": "https://www.mlssoccer.com/vote" },
121
+ { "key": "sponsor_type", "value": "save_sponsor" },
111
122
  { "key": "options_theme", "value": "light" }
112
123
  ]
113
124
  ```