gearboxdownloadmodal 6.0.77 → 6.0.79

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.
Files changed (46) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.es.js +8345 -5660
  3. package/dist/index.es.js.map +1 -1
  4. package/dist/index.umd.js +35 -29
  5. package/dist/index.umd.js.map +1 -1
  6. package/dist/src/apis/clients.d.ts +1 -1
  7. package/dist/src/atoms.d.ts +5 -5
  8. package/dist/src/components/Button.d.ts +2 -1
  9. package/dist/src/components/Card.d.ts +2 -1
  10. package/dist/src/components/CardButton.d.ts +2 -1
  11. package/dist/src/components/CardSection.d.ts +3 -2
  12. package/dist/src/components/CardSectionFooter.d.ts +2 -1
  13. package/dist/src/components/Checkbox.d.ts +2 -1
  14. package/dist/src/components/ConfirmModal.d.ts +2 -1
  15. package/dist/src/components/Content.d.ts +2 -1
  16. package/dist/src/components/DownloadMonitor.d.ts +2 -1
  17. package/dist/src/components/Downloads.d.ts +2 -1
  18. package/dist/src/components/Duplicate.d.ts +2 -1
  19. package/dist/src/components/Ellipsis.d.ts +2 -1
  20. package/dist/src/components/FileSizeModal.d.ts +7 -1
  21. package/dist/src/components/GameUrls.d.ts +2 -1
  22. package/dist/src/components/Iframe.d.ts +2 -1
  23. package/dist/src/components/IframeName.d.ts +2 -1
  24. package/dist/src/components/InsightIcon.d.ts +2 -1
  25. package/dist/src/components/InstantGameModal.d.ts +2 -1
  26. package/dist/src/components/Link.d.ts +2 -1
  27. package/dist/src/components/Modal.d.ts +3 -2
  28. package/dist/src/components/MultiDownload.d.ts +2 -1
  29. package/dist/src/components/Networks.d.ts +2 -1
  30. package/dist/src/components/Preview.d.ts +2 -1
  31. package/dist/src/components/Qrcode.d.ts +2 -1
  32. package/dist/src/components/SafariCopyLinkModal.d.ts +2 -1
  33. package/dist/src/components/SingleUrl.d.ts +2 -1
  34. package/dist/src/components/SpendCredit.d.ts +2 -1
  35. package/dist/src/components/StarIcon.d.ts +2 -1
  36. package/dist/src/components/TopBar.d.ts +2 -1
  37. package/dist/src/components/TopBarInfo.d.ts +2 -1
  38. package/dist/src/components/TopBarNetworkTitle.d.ts +2 -1
  39. package/dist/src/components/TopBarTitle.d.ts +2 -1
  40. package/dist/src/i18n/index.d.ts +2 -1
  41. package/dist/src/main.d.ts +1 -0
  42. package/dist/src/services/compressByDiff.d.ts +1 -0
  43. package/dist/src/services/fusion.d.ts +2 -1
  44. package/dist/src/types/Playable.d.ts +2 -1
  45. package/dist/src/utils/generateVersion.d.ts +2 -1
  46. package/package.json +2 -1
@@ -1,2 +1,2 @@
1
- declare const _default: import("axios").AxiosInstance;
1
+ declare const _default: import('axios').AxiosInstance;
2
2
  export default _default;
@@ -4,19 +4,19 @@ interface Network {
4
4
  imageSrc: string;
5
5
  apiName?: string;
6
6
  }
7
- export declare const customUrlAtom: import("jotai").PrimitiveAtom<string> & {
7
+ export declare const customUrlAtom: import('jotai').PrimitiveAtom<string> & {
8
8
  init: string;
9
9
  };
10
- export declare const customUrlModalAtom: import("jotai").PrimitiveAtom<boolean> & {
10
+ export declare const customUrlModalAtom: import('jotai').PrimitiveAtom<boolean> & {
11
11
  init: boolean;
12
12
  };
13
- export declare const networksAtom: import("jotai").PrimitiveAtom<Network[]> & {
13
+ export declare const networksAtom: import('jotai').PrimitiveAtom<Network[]> & {
14
14
  init: Network[];
15
15
  };
16
- export declare const defaultNetworksAtom: import("jotai").PrimitiveAtom<string[]> & {
16
+ export declare const defaultNetworksAtom: import('jotai').PrimitiveAtom<string[]> & {
17
17
  init: string[];
18
18
  };
19
- export declare const playableUseCustomUrlAtom: import("jotai").PrimitiveAtom<boolean> & {
19
+ export declare const playableUseCustomUrlAtom: import('jotai').PrimitiveAtom<boolean> & {
20
20
  init: boolean;
21
21
  };
22
22
  export {};
@@ -1,4 +1,5 @@
1
- import { FC, ReactNode } from "react";
1
+ import { FC, ReactNode } from 'react';
2
+
2
3
  interface ButtonProps {
3
4
  children: ReactNode;
4
5
  typeOfProduct?: string;
@@ -1,4 +1,5 @@
1
- import { Dispatch, FC } from "react";
1
+ import { Dispatch, FC } from 'react';
2
+
2
3
  interface CardProps {
3
4
  id: string;
4
5
  name: string;
@@ -1,4 +1,5 @@
1
- import { FC, ReactNode } from "react";
1
+ import { FC, ReactNode } from 'react';
2
+
2
3
  interface CardButtonProps {
3
4
  children: ReactNode;
4
5
  className?: string;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import Customer from "../types/Customer";
1
+ import { FC } from 'react';
2
+ import { default as Customer } from '../types/Customer';
3
+
3
4
  interface CardSectionProps {
4
5
  playable?: any;
5
6
  creditDownload?: any;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface CardSectionFooterProps {
3
4
  typeOfProduct: string;
4
5
  }
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface CheckboxProps {
3
4
  checked: boolean;
4
5
  typeOfProduct: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface ConfirmModalProps {
3
4
  onClose: () => void;
4
5
  creditConfirmType: string;
@@ -1,4 +1,5 @@
1
- import { FC, ReactNode } from "react";
1
+ import { FC, ReactNode } from 'react';
2
+
2
3
  interface ContentProps {
3
4
  children: ReactNode;
4
5
  }
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface DownloadMonitorProps {
3
4
  width: number;
4
5
  height: number;
@@ -1,4 +1,5 @@
1
- import { SVGProps } from "react";
1
+ import { SVGProps } from 'react';
2
+
2
3
  interface SVGRProps {
3
4
  title?: string;
4
5
  titleId?: string;
@@ -1,4 +1,5 @@
1
- import { SVGProps } from "react";
1
+ import { SVGProps } from 'react';
2
+
2
3
  interface SVGRProps {
3
4
  title?: string;
4
5
  titleId?: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface EllipsisProps {
3
4
  typeOfProduct: string;
4
5
  }
@@ -1,9 +1,15 @@
1
- import { Dispatch, FC } from "react";
1
+ import { Dispatch, FC } from 'react';
2
+
2
3
  interface FileSizeModalProps {
3
4
  setIsExceedingFileSizeAccepted: Dispatch<boolean>;
4
5
  closeModal: () => void;
5
6
  setLoading: Dispatch<boolean>;
6
7
  typeOfProduct: string;
8
+ versionId: string;
9
+ fileSize: number;
10
+ user: any;
11
+ compressApi?: string;
12
+ producerApi?: string;
7
13
  }
8
14
  declare const FileSizeModal: FC<FileSizeModalProps>;
9
15
  export default FileSizeModal;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface GameUrlsProps {
3
4
  typeOfProduct: string;
4
5
  urls: {
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface IframeProps {
3
4
  iframeUrl: string;
4
5
  }
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface IframeNameProps {
3
4
  name: string;
4
5
  }
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface InsightIconProps {
3
4
  fill: string;
4
5
  stroke: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface InstantGameModalProps {
3
4
  onClose: () => void;
4
5
  instantGames: any;
@@ -1,4 +1,5 @@
1
- import { SVGProps } from "react";
1
+ import { SVGProps } from 'react';
2
+
2
3
  interface SVGRProps {
3
4
  title?: string;
4
5
  titleId?: string;
@@ -1,5 +1,6 @@
1
- import { FC } from "react";
2
- import { CoreProductType } from "../utils/generateVersion";
1
+ import { FC } from 'react';
2
+ import { CoreProductType } from '../utils/generateVersion';
3
+
3
4
  export interface FusionData {
4
5
  enabled: boolean;
5
6
  fusionId: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface MultiDownloadProps {
3
4
  networksVersionTotalSize: string;
4
5
  typeOfProduct: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface NetworksProps {
3
4
  playableId?: string;
4
5
  versionId: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface PreviewProps {
3
4
  versionName: string;
4
5
  versionId: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface QrcodeProps {
3
4
  versionId: string;
4
5
  playableId: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface SafariCopyLinkModalProps {
3
4
  onClose: () => void;
4
5
  url: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface SingleUrlProps {
3
4
  typeOfProduct: string;
4
5
  urls: {
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface SpendCreditProps {
3
4
  creditDownload: any;
4
5
  api: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface StarIconProps {
3
4
  fill: string;
4
5
  stroke: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface TopBarProps {
3
4
  typeOfProduct: string;
4
5
  fileSize: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface TopBarInfoProps {
3
4
  typeOfProduct: string;
4
5
  fileSize: string;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface TopBarNetworkTitleProps {
3
4
  typeOfProduct: string;
4
5
  allNetworksSelected: boolean;
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
+
2
3
  interface TopBarTitleProps {
3
4
  typeOfProduct: string;
4
5
  title: string;
@@ -1,2 +1,3 @@
1
- import i18next from "i18next";
1
+ import { default as i18next } from 'i18next';
2
+
2
3
  export { i18next as i18n };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ export default function compressByDiff(versionId: string, fileSize: number, api: string): Promise<any>;
@@ -1,3 +1,4 @@
1
- import { FusionData } from "../components/Modal";
1
+ import { FusionData } from '../components/Modal';
2
+
2
3
  export declare function createFusionVersionLink(api: string, versionId: string, network: string, fusionData?: FusionData, isTest?: boolean, extras?: any, androidLink?: string | null, iosLink?: string | null): Promise<any>;
3
4
  export declare function updateFusionUrl(body: any, api: string): Promise<any>;
@@ -1,4 +1,5 @@
1
- import Customer from "./Customer";
1
+ import { default as Customer } from './Customer';
2
+
2
3
  export default interface Playable {
3
4
  _id: string;
4
5
  name: string;
@@ -1,4 +1,5 @@
1
- import { FusionData } from "../components/Modal";
1
+ import { FusionData } from '../components/Modal';
2
+
2
3
  export type CoreProductType = "Playable" | "Flex" | "Ready" | "string";
3
4
  export type ProductType = CoreProductType | "Import" | "Fusion" | "string";
4
5
  type Urls = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gearboxdownloadmodal",
3
3
  "private": false,
4
- "version": "6.0.77",
4
+ "version": "6.0.79",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.esm.js",
@@ -38,6 +38,7 @@
38
38
  "react-modal": "^3.16.1",
39
39
  "react-qr-code": "^2.0.12",
40
40
  "react-toastify": "^9.1.3",
41
+ "socket.io-client": "^4.8.1",
41
42
  "typescript-cookie": "^1.0.6"
42
43
  },
43
44
  "devDependencies": {