@splash-tech/jackpot-sdk 1.0.0 → 1.0.1
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/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/types.d.ts +1 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SplashJackpotSDK } from './types';
|
|
2
2
|
import { FooterWidgetParams } from './widgets/footerWidget/types/data';
|
|
3
3
|
import { WonJackpotWidgetParams } from './widgets/wonJackpotWidget/types/data';
|
|
4
|
-
export declare const
|
|
5
|
-
export type {
|
|
4
|
+
export declare const splashJackpot: SplashJackpotSDK;
|
|
5
|
+
export type { SplashJackpotSDK as SplashJackpot, FooterWidgetParams, WonJackpotWidgetParams, };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.splashJackpot = void 0;
|
|
4
4
|
var FooterWidget_1 = require("./widgets/footerWidget/FooterWidget");
|
|
5
5
|
var WonJackpotWidget_1 = require("./widgets/wonJackpotWidget/WonJackpotWidget");
|
|
6
|
-
exports.
|
|
6
|
+
exports.splashJackpot = {
|
|
7
7
|
footer: {
|
|
8
8
|
isLaunched: function () { return FooterWidget_1.FooterWidget.getInstance().isWidgetLaunched(); },
|
|
9
9
|
launch: function (params) {
|
package/dist/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { FooterWidgetEvents } from './widgets/footerWidget/types/event';
|
|
|
3
3
|
import { WidgetEventHandler } from './widgets/shared/types';
|
|
4
4
|
import { WonJackpotWidgetParams } from './widgets/wonJackpotWidget/types/data';
|
|
5
5
|
import { WonJackpotWidgetEvents } from './widgets/wonJackpotWidget/types/event';
|
|
6
|
-
export interface
|
|
6
|
+
export interface SplashJackpotSDK {
|
|
7
7
|
footer: {
|
|
8
8
|
isLaunched: () => boolean;
|
|
9
9
|
launch: (params: FooterWidgetParams) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splash-tech/jackpot-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "SDK for managing jackpot widgets in iframes",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"clean": "rm -rf dist",
|
|
13
|
-
"build:local": "npm run clean && tsc -p tsconfig.build.local.json",
|
|
14
|
-
"build:dev": "npm run clean && tsc -p tsconfig.build.dev.json",
|
|
15
|
-
"build:staging": "npm run clean && tsc -p tsconfig.build.staging.json",
|
|
16
|
-
"build:prod": "npm run clean && tsc -p tsconfig.build.prod.json",
|
|
13
|
+
"build:local": "npm run clean && tsc -p tsconfig.build.local.json && npx tsc-alias",
|
|
14
|
+
"build:dev": "npm run clean && tsc -p tsconfig.build.dev.json && npx tsc-alias",
|
|
15
|
+
"build:staging": "npm run clean && tsc -p tsconfig.build.staging.json && npx tsc-alias",
|
|
16
|
+
"build:prod": "npm run clean && tsc -p tsconfig.build.prod.json && npx tsc-alias",
|
|
17
17
|
"prepublishOnly": "npm run build:prod"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^20.11.19",
|
|
29
|
+
"tsc-alias": "^1.8.16",
|
|
29
30
|
"typescript": "^5.8.2"
|
|
30
31
|
}
|
|
31
32
|
}
|