@splash-tech/jackpot-sdk 3.0.7 → 3.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/README.md +7 -9
- package/dist/clients/h4n8w3vt/types.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,14 +48,13 @@ splashJackpot.winWidget.launch({
|
|
|
48
48
|
|
|
49
49
|
# Widget Launch Parameters
|
|
50
50
|
|
|
51
|
-
| Parameter
|
|
52
|
-
|
|
|
53
|
-
| data
|
|
54
|
-
| container
|
|
55
|
-
| mode
|
|
56
|
-
| maxWidth
|
|
57
|
-
| height
|
|
58
|
-
| showLevelIcons | boolean | true | Whether to show jackpot level icons in the footer widget |
|
|
51
|
+
| Parameter | Type | Default | Description |
|
|
52
|
+
| --------- | ------ | ------------- | --------------------------------------------------------- |
|
|
53
|
+
| data | object | null | Widget data from Splash backend |
|
|
54
|
+
| container | string | document.body | CSS selector where widget will be injected |
|
|
55
|
+
| mode | string | production | SDK environment (`local`, `dev`, `staging`, `production`) |
|
|
56
|
+
| maxWidth | string | '1300px' | Maximum width of the footer widget |
|
|
57
|
+
| height | string | '50px' | Height of the footer widget |
|
|
59
58
|
|
|
60
59
|
Example:
|
|
61
60
|
|
|
@@ -66,7 +65,6 @@ splashJackpot.footerWidget.launch({
|
|
|
66
65
|
mode: 'production',
|
|
67
66
|
maxWidth: '100%',
|
|
68
67
|
height: '80px',
|
|
69
|
-
showLevelIcons: true,
|
|
70
68
|
});
|
|
71
69
|
```
|
|
72
70
|
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { FooterWidgetBaseConfig } from '../../core/types';
|
|
2
2
|
export interface FooterWidgetConfig extends FooterWidgetBaseConfig {
|
|
3
|
+
winNotification?: WinNotificationConfig;
|
|
4
|
+
}
|
|
5
|
+
export interface WinNotificationConfig {
|
|
6
|
+
show?: boolean;
|
|
7
|
+
frequency?: string;
|
|
8
|
+
duration?: string;
|
|
3
9
|
}
|
|
4
10
|
export interface FooterWidgetEvents {
|
|
5
11
|
participateChange: void;
|