@livelike/embet 0.0.4 → 0.0.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 0.0.8 (November 5, 2021)
2
+
3
+ - Added Live Total widget layout change
4
+ - Added widget slide in animation
5
+ - Added font size variable based on width of widget
6
+ - Fixed off centered widget title
7
+
8
+ ## 0.0.7 (November 4, 2021)
9
+
10
+ - Fixed progress bar styling not filling parent container
11
+ - Fixed sponsor logo not fitting in parent container
12
+ - Fixed Sponsored By text spacing
13
+
14
+ ## 0.0.6 (October 27, 2021)
15
+
16
+ - Added ability to set widget heights through `widgetHeight` property in widget payload
17
+ - Fixed bet button default styles to always retain oval shape
18
+ - Fixed widget heights and inner element stretching to fill container in relation to parent container
19
+ - Fixed `.text` selector styling overriding page's style
20
+ - Improved spacing and scaling to allow for responsive sizing
21
+
22
+ ## 0.0.5 (October 13, 2021)
23
+
24
+ - Added `customCss` and `customStyles` property to widget payload
25
+ - Added attribute to open bet button link in new tab
26
+ - Fixed widget options showing "of votes" at wrong time
27
+
1
28
  ## 0.0.4 (October 5, 2021)
2
29
 
3
30
  - Added the `customid` attribute to the embet-widgets element to load program id
package/README.md CHANGED
@@ -88,7 +88,10 @@ custom_data: {
88
88
  palce_bet_url: string;
89
89
  type: 'LIVE SPREAD' | 'LIVE MONEYLINE' | 'LIVE TOTAL';
90
90
  sponsors: [{logo_url: string, name: string}];
91
- betDetails: [{bet: string; description: string;}]
91
+ betDetails: [{bet: string; description: string;}],
92
+ customCss: string,
93
+ customStyles: string,
94
+ widgetHeight: string | number,
92
95
  theme: {
93
96
  widgets: {
94
97
  prediction: {
@@ -118,7 +121,38 @@ custom_data: {
118
121
  }
119
122
  ```
120
123
 
121
- ### Notes
124
+ ### About the customStyles and customCss properties
125
+
126
+ These properties allow adding arbitrary CSS to the widgets.
127
+
128
+ The `customCss` is a string that is a url or src to a CSS file. It is the `href` attribute in a `<link rel="stylesheet" href="styles.css">`.
129
+
130
+ The `customStyles` property is a string of CSS. For example
131
+
132
+ ```
133
+ customStyles = `
134
+ .bet-button {
135
+ background: purple;
136
+ }
137
+ .embet-widget livelike-title {
138
+ color: orange;
139
+ }
140
+ `
141
+ ```
142
+
143
+ ### About the widgetHeight property
144
+
145
+ This property allows setting the overall widget height.
146
+
147
+ ```
148
+ widgetHeight = '400px'
149
+ ```
150
+
151
+ ```
152
+ widgetHeight = '50%'
153
+ ```
154
+
155
+ ### About the betDetails property
122
156
  In the `betDetails` property of the `custom_data` stringified object, the `description` properties must match with your `options` array `description` properties.
123
157
 
124
158
  For example, if your `options` and `betDetails` properties are