gearboxdownloadmodal 8.0.14 → 8.3.0
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.es.js +11517 -10262
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +26 -26
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/CardButton.d.ts +2 -0
- package/dist/src/components/CardSection.d.ts +1 -0
- package/dist/src/components/EditNetworksModal.d.ts +12 -0
- package/dist/src/components/IframeName.d.ts +3 -0
- package/dist/src/components/Modal.d.ts +9 -1
- package/dist/src/components/MultiDownload.d.ts +1 -0
- package/dist/src/components/Networks.d.ts +1 -0
- package/dist/src/components/Preview.d.ts +1 -0
- package/dist/src/components/TopBar.d.ts +1 -0
- package/dist/src/components/TopBarNetworkTitle.d.ts +3 -0
- package/dist/src/components/UrlConfirmModal.d.ts +1 -1
- package/dist/src/components/VersionList.d.ts +9 -0
- package/dist/src/data/network-data-tracking.json.d.ts +266 -0
- package/dist/src/services/createPlayableVersionABTestLink.d.ts +7 -0
- package/dist/src/services/getCompanyAllSubs.d.ts +5 -0
- package/dist/src/services/getDownloadLimit.d.ts +1 -0
- package/dist/src/services/getPlayableVersionNames.d.ts +1 -0
- package/dist/src/services/updatePlayableVersion.d.ts +4 -3
- package/dist/src/services/updateSub.d.ts +30 -0
- package/dist/src/utils/color.d.ts +5 -5
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface EditNetworksModalProps {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
api: string;
|
|
7
|
+
user: any;
|
|
8
|
+
typeOfProduct: string;
|
|
9
|
+
versionId: string;
|
|
10
|
+
}
|
|
11
|
+
declare const EditNetworksModal: FC<EditNetworksModalProps>;
|
|
12
|
+
export default EditNetworksModal;
|
|
@@ -18,9 +18,16 @@ export interface ModalProps {
|
|
|
18
18
|
closeModal: () => void;
|
|
19
19
|
playableId?: string;
|
|
20
20
|
versionId: string;
|
|
21
|
+
/**
|
|
22
|
+
* If provided, the modal allows multiple versions to download,
|
|
23
|
+
* iframe and QR will not be shown.
|
|
24
|
+
*
|
|
25
|
+
* Rework of `Playable Quick A/B Test`
|
|
26
|
+
*/
|
|
27
|
+
selectedVersionIds?: string[];
|
|
21
28
|
versionName: string;
|
|
22
29
|
gameId?: string;
|
|
23
|
-
typeOfProduct:
|
|
30
|
+
typeOfProduct: "Playable" | "Flex" | "Ready" | "Fusion";
|
|
24
31
|
api: string;
|
|
25
32
|
user: any;
|
|
26
33
|
title: string;
|
|
@@ -29,6 +36,7 @@ export interface ModalProps {
|
|
|
29
36
|
fetchFileUrl: string;
|
|
30
37
|
copyLinkUrl: string;
|
|
31
38
|
fusionData?: FusionData;
|
|
39
|
+
onNameChange?: (versionId: string, name: string) => void;
|
|
32
40
|
}
|
|
33
41
|
declare const Modal: FC<ModalProps>;
|
|
34
42
|
export default Modal;
|
|
@@ -4,6 +4,9 @@ interface TopBarNetworkTitleProps {
|
|
|
4
4
|
typeOfProduct: string;
|
|
5
5
|
allNetworksSelected: boolean;
|
|
6
6
|
setAllNetworksSelected: (bool: boolean) => void;
|
|
7
|
+
api: string;
|
|
8
|
+
user: any;
|
|
9
|
+
versionId: string;
|
|
7
10
|
}
|
|
8
11
|
declare const TopBarNetworkTitle: FC<TopBarNetworkTitleProps>;
|
|
9
12
|
export default TopBarNetworkTitle;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const UrlConfirmModal: ({ onClose, iosLink, googleLink, buttonType, handleCopyLink, download,
|
|
1
|
+
declare const UrlConfirmModal: ({ onClose, iosLink, googleLink, buttonType, handleCopyLink, download, }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default UrlConfirmModal;
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
declare const _default: [
|
|
2
|
+
{
|
|
3
|
+
"id": "22",
|
|
4
|
+
"name": "moloco",
|
|
5
|
+
"imageSrc": "https://home.playablefactory.com/moloco.png"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"id": "44",
|
|
9
|
+
"name": "molocoV2",
|
|
10
|
+
"imageSrc": "https://home.playablefactory.com/molocoV2.png"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "33",
|
|
14
|
+
"name": "web",
|
|
15
|
+
"imageSrc": "https://home.playablefactory.com/files/network_icons/web.png"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "1",
|
|
19
|
+
"name": "unity",
|
|
20
|
+
"imageSrc": "https://home.playablefactory.com/unity.png"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "2",
|
|
24
|
+
"name": "applovin",
|
|
25
|
+
"imageSrc": "https://home.playablefactory.com/applovin.png"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "3",
|
|
29
|
+
"name": "ironsource",
|
|
30
|
+
"imageSrc": "https://home.playablefactory.com/ironsource.png"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "4",
|
|
34
|
+
"name": "vungle",
|
|
35
|
+
"imageSrc": "https://home.playablefactory.com/vungle.png"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "5",
|
|
39
|
+
"name": "mobvista",
|
|
40
|
+
"imageSrc": "https://home.playablefactory.com/mobvista.png"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "6",
|
|
44
|
+
"name": "facebook",
|
|
45
|
+
"imageSrc": "https://home.playablefactory.com/fb.png"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "7",
|
|
49
|
+
"name": "toutiao",
|
|
50
|
+
"imageSrc": "https://home.playablefactory.com/toutiao.png"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "8",
|
|
54
|
+
"name": "toutiao_cn",
|
|
55
|
+
"imageSrc": "https://home.playablefactory.com/toutiao_cn.png"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "9",
|
|
59
|
+
"name": "adcolony",
|
|
60
|
+
"imageSrc": "https://home.playablefactory.com/adcolony.png"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "10",
|
|
64
|
+
"name": "criteo",
|
|
65
|
+
"imageSrc": "https://home.playablefactory.com/criteo.png"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "11",
|
|
69
|
+
"name": "chartboost",
|
|
70
|
+
"imageSrc": "https://home.playablefactory.com/chartboost.png"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "12",
|
|
74
|
+
"name": "kayzen",
|
|
75
|
+
"imageSrc": "https://home.playablefactory.com/kayzen.png"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "13",
|
|
79
|
+
"name": "crossinstall",
|
|
80
|
+
"imageSrc": "https://home.playablefactory.com/crossinstall.png"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "14",
|
|
84
|
+
"name": "default",
|
|
85
|
+
"imageSrc": "https://home.playablefactory.com/default.png"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "15",
|
|
89
|
+
"name": "fyber",
|
|
90
|
+
"imageSrc": "https://home.playablefactory.com/fyber.png"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "16",
|
|
94
|
+
"name": "appreciate",
|
|
95
|
+
"imageSrc": "https://home.playablefactory.com/appreciate.png"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "17",
|
|
99
|
+
"name": "google360",
|
|
100
|
+
"imageSrc": "https://home.playablefactory.com/google360.png"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "18",
|
|
104
|
+
"name": "kaden",
|
|
105
|
+
"imageSrc": "https://home.playablefactory.com/kaden.png"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": "19",
|
|
109
|
+
"name": "kidoz",
|
|
110
|
+
"imageSrc": "https://home.playablefactory.com/kidoz.png"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "20",
|
|
114
|
+
"name": "lifestreet",
|
|
115
|
+
"imageSrc": "https://home.playablefactory.com/lifestreet.png"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "21",
|
|
119
|
+
"name": "liftoff",
|
|
120
|
+
"imageSrc": "https://home.playablefactory.com/liftoff.png"
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
{
|
|
124
|
+
"id": "23",
|
|
125
|
+
"name": "nucleo",
|
|
126
|
+
"imageSrc": "https://home.playablefactory.com/nucleo.png"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "24",
|
|
130
|
+
"name": "oceanengine",
|
|
131
|
+
"imageSrc": "https://home.playablefactory.com/oceanengine.png"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "25",
|
|
135
|
+
"name": "pointblank",
|
|
136
|
+
"imageSrc": "https://home.playablefactory.com/pointblank.png"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "26",
|
|
140
|
+
"name": "snapchat",
|
|
141
|
+
"imageSrc": "https://home.playablefactory.com/snapchat.png"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"id": "27",
|
|
145
|
+
"name": "tapjoy",
|
|
146
|
+
"imageSrc": "https://home.playablefactory.com/tapjoy.png"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "28",
|
|
150
|
+
"name": "tencent",
|
|
151
|
+
"imageSrc": "https://home.playablefactory.com/tencent.png"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "31",
|
|
155
|
+
"name": "aarki",
|
|
156
|
+
"imageSrc": "https://home.playablefactory.com/aarki.png"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "32",
|
|
160
|
+
"name": "yandex",
|
|
161
|
+
"imageSrc": "https://home.playablefactory.com/yandex.png"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "34",
|
|
165
|
+
"name": "zucks",
|
|
166
|
+
"imageSrc": "https://home.playablefactory.com/zucks.png"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"id": "35",
|
|
170
|
+
"name": "google",
|
|
171
|
+
"imageSrc": "https://home.playablefactory.com/google.png"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"id": "36",
|
|
175
|
+
"name": "inmobi",
|
|
176
|
+
"imageSrc": "https://home.playablefactory.com/inmobi.png"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "38",
|
|
180
|
+
"name": "smadex",
|
|
181
|
+
"imageSrc": "https://home.playablefactory.com/smadex.png"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "39",
|
|
185
|
+
"name": "instantGame",
|
|
186
|
+
"imageSrc": "https://home.playablefactory.com/instantGame.png"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"id": "40",
|
|
190
|
+
"name": "luna",
|
|
191
|
+
"imageSrc": "https://home.playablefactory.com/luna.png"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"id": "41",
|
|
195
|
+
"name": "nend",
|
|
196
|
+
"imageSrc": "https://home.playablefactory.com/nend.png"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "42",
|
|
200
|
+
"name": "jammp",
|
|
201
|
+
"imageSrc": "https://home.playablefactory.com/nend.png"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "43",
|
|
205
|
+
"name": "adjoe",
|
|
206
|
+
"imageSrc": "https://home.playablefactory.com/adjoe.png"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"id": "45",
|
|
210
|
+
"name": "adikteev",
|
|
211
|
+
"imageSrc": "https://home.playablefactory.com/adikteev.png"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "46",
|
|
215
|
+
"name": "appier",
|
|
216
|
+
"imageSrc": "https://home.playablefactory.com/appier.png"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"id": "47",
|
|
220
|
+
"name": "remerge",
|
|
221
|
+
"imageSrc": "https://home.playablefactory.com/remerge.png"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"id": "48",
|
|
225
|
+
"name": "persona",
|
|
226
|
+
"imageSrc": "https://home.playablefactory.com/persona.png"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "49",
|
|
230
|
+
"name": "bidease",
|
|
231
|
+
"imageSrc": "https://home.playablefactory.com/bidease.png"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"id": "50",
|
|
235
|
+
"name": "mraid",
|
|
236
|
+
"imageSrc": "https://home.playablefactory.com/mraid.png"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"id": "51",
|
|
240
|
+
"name": "zynga",
|
|
241
|
+
"imageSrc": "https://home.playablefactory.com/zynga.png"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"id": "52",
|
|
245
|
+
"name": "youappi",
|
|
246
|
+
"imageSrc": "https://home.playablefactory.com/youappi.png"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"id": "52",
|
|
250
|
+
"name": "revx",
|
|
251
|
+
"imageSrc": "https://home.playablefactory.com/revx.png"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"id": "53",
|
|
255
|
+
"name": "cdn",
|
|
256
|
+
"imageSrc": "https://home.playablefactory.com/cdn.png"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": "54",
|
|
260
|
+
"name": "digidoor",
|
|
261
|
+
"imageSrc": "https://home.playablefactory.com/digidoor.png"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
;
|
|
265
|
+
|
|
266
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getDownloadLimit(): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getPlayableVersionNames(api: string, isFlex: boolean | undefined, versionIds: string[]): Promise<any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export default function
|
|
2
|
-
iosLink
|
|
3
|
-
androidLink
|
|
1
|
+
export default function updatePlayableVersion(versionId: string, urls: {
|
|
2
|
+
iosLink?: string | undefined | null;
|
|
3
|
+
androidLink?: string | undefined | null;
|
|
4
|
+
name?: string;
|
|
4
5
|
}, api: string): Promise<any>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default function updateSub(currentlyEditedSub: {
|
|
2
|
+
_id: string;
|
|
3
|
+
customer: string;
|
|
4
|
+
customerName: string;
|
|
5
|
+
downloadLimit: number;
|
|
6
|
+
startsAt: string;
|
|
7
|
+
endsAt: string;
|
|
8
|
+
insight: boolean;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
isManual: boolean;
|
|
11
|
+
isUnlimited: boolean;
|
|
12
|
+
monthlySubs: Array<any>;
|
|
13
|
+
networks: Array<string>;
|
|
14
|
+
packageId: string;
|
|
15
|
+
seatLimit: number;
|
|
16
|
+
typeOfProduct: string;
|
|
17
|
+
subscriptionPackage: any;
|
|
18
|
+
price: number;
|
|
19
|
+
}, updates: {
|
|
20
|
+
downloadLimit: number;
|
|
21
|
+
seatLimit: number;
|
|
22
|
+
endsAt: string;
|
|
23
|
+
isUnlimited: boolean;
|
|
24
|
+
packageId: string;
|
|
25
|
+
networks: Array<string>;
|
|
26
|
+
}, product: string, // "playable" | "ready" | "flex"
|
|
27
|
+
api: string): Promise<{
|
|
28
|
+
acknowledged: true;
|
|
29
|
+
modifiedCount: 1;
|
|
30
|
+
}>;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
export declare enum TextColorStyle {
|
|
2
2
|
"Flex" = "text-[#7101FF]",
|
|
3
|
-
"Playable" = "text-[#
|
|
3
|
+
"Playable" = "text-[#EA580C]",
|
|
4
4
|
"Import" = "text-[#00a3ff]",
|
|
5
5
|
"Ready" = "text-[#0060A5]",
|
|
6
6
|
"Fusion" = "text-[#171717]"
|
|
7
7
|
}
|
|
8
8
|
export declare enum BorderColorStyle {
|
|
9
9
|
"Flex" = "border-[#7101FF]",
|
|
10
|
-
"Playable" = "border-[#
|
|
10
|
+
"Playable" = "border-[#EA580C]",
|
|
11
11
|
"Import" = "border-[#00a3ff]",
|
|
12
12
|
"Ready" = "border-[#0060A5]",
|
|
13
13
|
"Fusion" = "text-[#171717]"
|
|
14
14
|
}
|
|
15
15
|
export declare enum ColorStyle {
|
|
16
16
|
"Flex" = "#7101FF",
|
|
17
|
-
"Playable" = "#
|
|
17
|
+
"Playable" = "#EA580C",
|
|
18
18
|
"Import" = "#00a3ff",
|
|
19
19
|
"Ready" = "#0060A5",
|
|
20
20
|
"Fusion" = "#171717"
|
|
21
21
|
}
|
|
22
22
|
export declare enum BackgroundColorStyle {
|
|
23
23
|
"Flex" = "bg-[#7101FF]",
|
|
24
|
-
"Playable" = "bg-[#
|
|
24
|
+
"Playable" = "bg-[#EA580C]",
|
|
25
25
|
"Import" = "bg-[#00a3ff]",
|
|
26
26
|
"Ready" = "bg-[#0060A5]",
|
|
27
27
|
"Fusion" = "bg-[#171717]"
|
|
28
28
|
}
|
|
29
29
|
export declare enum CheckBoxAccentColor {
|
|
30
30
|
"Flex" = "accent-[#7101FF]",
|
|
31
|
-
"Playable" = "accent-[#
|
|
31
|
+
"Playable" = "accent-[#EA580C]",
|
|
32
32
|
"Import" = "accent-[#00a3ff]",
|
|
33
33
|
"Ready" = "accent-[#0060A5]",
|
|
34
34
|
"Fusion" = "accent-[#171717]"
|