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.
@@ -6,6 +6,8 @@ interface CardButtonProps {
6
6
  onClickDonwload: (e: any) => void;
7
7
  downloading?: boolean;
8
8
  disabled?: boolean;
9
+ variant?: "primary" | "secondary";
10
+ typeOfProduct?: string;
9
11
  }
10
12
  declare const CardButton: FC<CardButtonProps>;
11
13
  export default CardButton;
@@ -27,6 +27,7 @@ interface CardSectionProps {
27
27
  cdnUrl: string;
28
28
  setCdnUrl: (url: string) => void;
29
29
  customer?: Customer;
30
+ selectedVersionIds?: string[];
30
31
  }
31
32
  declare const CardSection: FC<CardSectionProps>;
32
33
  export default CardSection;
@@ -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;
@@ -2,6 +2,9 @@ import { FC } from 'react';
2
2
 
3
3
  interface IframeNameProps {
4
4
  name: string;
5
+ versionId?: string;
6
+ api?: string;
7
+ onNameChange?: (versionId: string, name: string) => void;
5
8
  }
6
9
  declare const IframeName: FC<IframeNameProps>;
7
10
  export default IframeName;
@@ -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: string;
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;
@@ -5,6 +5,7 @@ interface MultiDownloadProps {
5
5
  typeOfProduct: string;
6
6
  onClickMultiDownload: () => void;
7
7
  multiDownloading: boolean;
8
+ selectedCount?: number;
8
9
  }
9
10
  declare const MultiDownload: FC<MultiDownloadProps>;
10
11
  export default MultiDownload;
@@ -20,6 +20,7 @@ interface NetworksProps {
20
20
  setAndroidLink: any;
21
21
  urlType: string;
22
22
  setUrlType: any;
23
+ selectedVersionIds?: string[];
23
24
  }
24
25
  declare const Networks: FC<NetworksProps>;
25
26
  export default Networks;
@@ -13,6 +13,7 @@ interface PreviewProps {
13
13
  iosLink: string | null;
14
14
  androidLink: string | null;
15
15
  urlType: string;
16
+ onNameChange?: (versionId: string, name: string) => void;
16
17
  }
17
18
  declare const Preview: FC<PreviewProps>;
18
19
  export default Preview;
@@ -20,6 +20,7 @@ interface TopBarProps {
20
20
  setUrlType: any;
21
21
  allNetworksSelected: boolean;
22
22
  setAllNetworksSelected: (bool: boolean) => void;
23
+ versionId: string;
23
24
  }
24
25
  declare const TopBar: FC<TopBarProps>;
25
26
  export default TopBar;
@@ -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, typeOfProduct, urlType, }: any) => import("react/jsx-runtime").JSX.Element;
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,9 @@
1
+ import { FC } from 'react';
2
+
3
+ interface VersionListProps {
4
+ selectedVersionIds: string[];
5
+ api: string;
6
+ fetchFileUrl: string;
7
+ }
8
+ declare const VersionList: FC<VersionListProps>;
9
+ export default VersionList;
@@ -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,7 @@
1
+ export default function createPlayableVersionABTestLink(api: string, id: string, body: {
2
+ networks: string[];
3
+ versions: string[];
4
+ interactions?: any[];
5
+ }): Promise<{
6
+ url: string;
7
+ }>;
@@ -0,0 +1,5 @@
1
+ export default function getCompanyAllSubs(id: string, api: string): Promise<{
2
+ playableSubs: any[];
3
+ readySubs: any[];
4
+ flexSubs: any[];
5
+ }>;
@@ -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 updatePlayableVersions(versionId: string, urls: {
2
- iosLink: string | undefined | null;
3
- androidLink: string | undefined | null;
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-[#F9830B]",
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-[#F9830B]",
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" = "#F9830B",
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-[#F9830B]",
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-[#F9830B]",
31
+ "Playable" = "accent-[#EA580C]",
32
32
  "Import" = "accent-[#00a3ff]",
33
33
  "Ready" = "accent-[#0060A5]",
34
34
  "Fusion" = "accent-[#171717]"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gearboxdownloadmodal",
3
3
  "private": false,
4
- "version": "8.0.14",
4
+ "version": "8.3.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.esm.js",