@livelike/embet 0.0.16 → 0.0.17

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,9 @@
1
+ ## 0.0.17 (January 3, 2022)
2
+
3
+ - Added interactivity phase to single tag widget default to allow for progress bar display
4
+ - Added wrapperContainer property to widget customData for resizing
5
+ - Changed `disabledResizing` property to `resize` property.
6
+
1
7
  ## 0.0.16 (December 20, 2021)
2
8
 
3
9
  - Added `parentFullscreenWidth` property to widget's custom_data
package/README.md CHANGED
@@ -144,7 +144,7 @@ View all of the [widget properties](doc:widget-properties).
144
144
  widgetHeight: string | number;
145
145
  widgetWidthPercentage: string | number;
146
146
  parentContainer: string;
147
- disableResizing: boolean;
147
+ resize: boolean;
148
148
  theme: {
149
149
  widgets: {
150
150
  prediction: { };
@@ -205,6 +205,8 @@ widgetHeight = '50%'
205
205
  #### widgetVariation
206
206
  The `widgetVariation` property can be used control the layout of the widgets. The three options are `bar`, `square`, and `inline`.
207
207
 
208
+ ### resize
209
+ Set `resize` optional property to `true` to cause the widget automatically resize on page resize. Default is false.
208
210
  #### parentContainer
209
211
  The `parentContainer` optional property is the selector of an element that is a parent of a widget. It is used to calculate styles for resizing. If `parentContainer` is not provided, `document.body` will be used instead.
210
212
 
@@ -212,6 +214,10 @@ The `parentContainer` optional property is the selector of an element that is a
212
214
 
213
215
  `parentContainer: ".parent-container-class"`
214
216
 
217
+ ### wrapperContainer
218
+ The `wrapperContainer` optional property is the selector of an element that is a parent of a widget. It is used to calculate styles for resizing. If `wrapperContainer` is not provided, `document.body` will be used instead.
219
+
220
+ `wrapperContainer: "#wrapper-container-id"`
215
221
 
216
222
  #### parentFullscreenWidth
217
223
  The `parentFullscreenWidth optional property is the string or number that signifies that width value in pixels of the widget's parent container when at its full width.
@@ -229,9 +235,6 @@ will set the widget's width at 50% of the parent container.
229
235
 
230
236
  If not provided, the default value is `0.3`.
231
237
 
232
- #### disableResizing
233
- Set `disableResizing` optional property to `true` to prevent the widget from resizing. Default is false.
234
-
235
238
  #### betDetails
236
239
  An array of objects with the properties `bet` and `description`.
237
240