react-native-stallion 1.0.2 → 1.1.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.
Files changed (131) hide show
  1. package/README.md +10 -6
  2. package/android/src/main/java/com/stallion/StallionConstants.java +12 -2
  3. package/android/src/main/java/com/stallion/StallionDefaultErrorActivity.java +1 -1
  4. package/android/src/main/java/com/stallion/StallionErrorBoundary.java +49 -0
  5. package/android/src/main/java/com/stallion/StallionModule.java +104 -143
  6. package/ios/main/Stallion-Bridging-Header.h +1 -0
  7. package/ios/main/Stallion.swift +2 -3
  8. package/ios/main/StallionConstants.swift +2 -0
  9. package/ios/main/StallionDownloader.swift +9 -9
  10. package/ios/main/StallionErrorBoundary.h +17 -0
  11. package/ios/main/StallionErrorBoundary.m +62 -0
  12. package/ios/main/StallionModule.m +3 -35
  13. package/package.json +1 -1
  14. package/src/main/components/common/ErrorView/index.js +10 -4
  15. package/src/main/components/common/ErrorView/index.js.map +1 -1
  16. package/src/main/components/common/ErrorView/styles.js +12 -2
  17. package/src/main/components/common/ErrorView/styles.js.map +1 -1
  18. package/src/main/components/common/Footer/index.js +1 -1
  19. package/src/main/components/common/Footer/index.js.map +1 -1
  20. package/src/main/components/common/Footer/styles.js +7 -4
  21. package/src/main/components/common/Footer/styles.js.map +1 -1
  22. package/src/main/components/common/FooterLoader/index.js +11 -0
  23. package/src/main/components/common/FooterLoader/index.js.map +1 -0
  24. package/src/main/components/common/FooterLoader/styles.js +12 -0
  25. package/src/main/components/common/FooterLoader/styles.js.map +1 -0
  26. package/src/main/components/common/Header/index.js +5 -3
  27. package/src/main/components/common/Header/index.js.map +1 -1
  28. package/src/main/components/common/Header/styles.js +3 -2
  29. package/src/main/components/common/Header/styles.js.map +1 -1
  30. package/src/main/components/common/OverlayLoader/styles.js +2 -2
  31. package/src/main/components/common/OverlayLoader/styles.js.map +1 -1
  32. package/src/main/components/common/ProfileOverlay/styles.js +4 -2
  33. package/src/main/components/common/ProfileOverlay/styles.js.map +1 -1
  34. package/src/main/components/modules/listing/components/BundleCard.js +4 -2
  35. package/src/main/components/modules/listing/components/BundleCard.js.map +1 -1
  36. package/src/main/components/modules/listing/components/BundleCardInfoSection.js +6 -5
  37. package/src/main/components/modules/listing/components/BundleCardInfoSection.js.map +1 -1
  38. package/src/main/components/modules/listing/components/CardDescriptionContent.js +2 -1
  39. package/src/main/components/modules/listing/components/CardDescriptionContent.js.map +1 -1
  40. package/src/main/components/modules/listing/components/styles/index.js +6 -3
  41. package/src/main/components/modules/listing/components/styles/index.js.map +1 -1
  42. package/src/main/components/modules/listing/hooks/useListing.js +14 -2
  43. package/src/main/components/modules/listing/hooks/useListing.js.map +1 -1
  44. package/src/main/components/modules/listing/index.js +45 -16
  45. package/src/main/components/modules/listing/index.js.map +1 -1
  46. package/src/main/components/modules/listing/styles.js +7 -0
  47. package/src/main/components/modules/listing/styles.js.map +1 -1
  48. package/src/main/components/modules/login/components/Email.js +5 -1
  49. package/src/main/components/modules/login/components/Email.js.map +1 -1
  50. package/src/main/components/modules/login/components/Otp.js +5 -1
  51. package/src/main/components/modules/login/components/Otp.js.map +1 -1
  52. package/src/main/components/modules/login/components/styles/index.js +5 -1
  53. package/src/main/components/modules/login/components/styles/index.js.map +1 -1
  54. package/src/main/components/modules/login/styles/index.js +2 -1
  55. package/src/main/components/modules/login/styles/index.js.map +1 -1
  56. package/src/main/components/modules/modal/hooks/useStallionModal.js +26 -2
  57. package/src/main/components/modules/modal/hooks/useStallionModal.js.map +1 -1
  58. package/src/main/constants/apiConstants.js +2 -0
  59. package/src/main/constants/apiConstants.js.map +1 -1
  60. package/src/main/constants/appConstants.js +11 -2
  61. package/src/main/constants/appConstants.js.map +1 -1
  62. package/src/main/constants/colors.js +3 -1
  63. package/src/main/constants/colors.js.map +1 -1
  64. package/src/main/state/actionCreators/useBundleActions.js +24 -9
  65. package/src/main/state/actionCreators/useBundleActions.js.map +1 -1
  66. package/src/main/state/actionCreators/useDownloadActions.js +4 -3
  67. package/src/main/state/actionCreators/useDownloadActions.js.map +1 -1
  68. package/src/main/state/actions/bundleActions.js +18 -0
  69. package/src/main/state/actions/bundleActions.js.map +1 -1
  70. package/src/main/state/reducers/bundleReducer.js +34 -3
  71. package/src/main/state/reducers/bundleReducer.js.map +1 -1
  72. package/src/main/utils/ErrorBoundary.js +82 -5
  73. package/src/main/utils/ErrorBoundary.js.map +1 -1
  74. package/src/types/bundle.types.js +3 -0
  75. package/src/types/bundle.types.js.map +1 -1
  76. package/types/main/components/common/ErrorView/index.d.ts +1 -0
  77. package/types/main/components/common/ErrorView/index.d.ts.map +1 -1
  78. package/types/main/components/common/ErrorView/styles.d.ts +10 -0
  79. package/types/main/components/common/ErrorView/styles.d.ts.map +1 -1
  80. package/types/main/components/common/Footer/styles.d.ts +4 -1
  81. package/types/main/components/common/Footer/styles.d.ts.map +1 -1
  82. package/types/main/components/common/FooterLoader/index.d.ts +4 -0
  83. package/types/main/components/common/FooterLoader/index.d.ts.map +1 -0
  84. package/types/main/components/common/FooterLoader/styles.d.ts +10 -0
  85. package/types/main/components/common/FooterLoader/styles.d.ts.map +1 -0
  86. package/types/main/components/common/Header/index.d.ts +2 -2
  87. package/types/main/components/common/Header/index.d.ts.map +1 -1
  88. package/types/main/components/common/Header/styles.d.ts +1 -0
  89. package/types/main/components/common/Header/styles.d.ts.map +1 -1
  90. package/types/main/components/common/ProfileOverlay/styles.d.ts +2 -0
  91. package/types/main/components/common/ProfileOverlay/styles.d.ts.map +1 -1
  92. package/types/main/components/modules/listing/components/BundleCard.d.ts +1 -0
  93. package/types/main/components/modules/listing/components/BundleCard.d.ts.map +1 -1
  94. package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts +3 -2
  95. package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts.map +1 -1
  96. package/types/main/components/modules/listing/components/styles/index.d.ts +3 -0
  97. package/types/main/components/modules/listing/components/styles/index.d.ts.map +1 -1
  98. package/types/main/components/modules/listing/hooks/useListing.d.ts +2 -0
  99. package/types/main/components/modules/listing/hooks/useListing.d.ts.map +1 -1
  100. package/types/main/components/modules/listing/index.d.ts +2 -2
  101. package/types/main/components/modules/listing/index.d.ts.map +1 -1
  102. package/types/main/components/modules/listing/styles.d.ts +6 -0
  103. package/types/main/components/modules/listing/styles.d.ts.map +1 -1
  104. package/types/main/components/modules/login/components/Email.d.ts.map +1 -1
  105. package/types/main/components/modules/login/components/Otp.d.ts.map +1 -1
  106. package/types/main/components/modules/login/components/styles/index.d.ts +4 -0
  107. package/types/main/components/modules/login/components/styles/index.d.ts.map +1 -1
  108. package/types/main/components/modules/login/styles/index.d.ts +1 -0
  109. package/types/main/components/modules/login/styles/index.d.ts.map +1 -1
  110. package/types/main/components/modules/modal/hooks/useStallionModal.d.ts.map +1 -1
  111. package/types/main/constants/apiConstants.d.ts +2 -0
  112. package/types/main/constants/apiConstants.d.ts.map +1 -1
  113. package/types/main/constants/appConstants.d.ts +10 -1
  114. package/types/main/constants/appConstants.d.ts.map +1 -1
  115. package/types/main/constants/colors.d.ts +2 -0
  116. package/types/main/constants/colors.d.ts.map +1 -1
  117. package/types/main/state/actionCreators/useBundleActions.d.ts +1 -1
  118. package/types/main/state/actionCreators/useBundleActions.d.ts.map +1 -1
  119. package/types/main/state/actionCreators/useDownloadActions.d.ts +1 -1
  120. package/types/main/state/actionCreators/useDownloadActions.d.ts.map +1 -1
  121. package/types/main/state/actions/bundleActions.d.ts +3 -0
  122. package/types/main/state/actions/bundleActions.d.ts.map +1 -1
  123. package/types/main/state/reducers/bundleReducer.d.ts.map +1 -1
  124. package/types/main/utils/ErrorBoundary.d.ts +11 -4
  125. package/types/main/utils/ErrorBoundary.d.ts.map +1 -1
  126. package/types/types/bundle.types.d.ts +22 -4
  127. package/types/types/bundle.types.d.ts.map +1 -1
  128. package/types/types/globalProvider.types.d.ts +2 -2
  129. package/types/types/globalProvider.types.d.ts.map +1 -1
  130. package/types/types/utils.types.d.ts +1 -1
  131. package/types/types/utils.types.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useDownloadActions.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/actionCreators/useDownloadActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAatD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,QAAA,MAAM,kBAAkB,aACZ,MAAM,QAAQ,CAAC,eAAe,CAAC,uBACpB,MAAM,IAAI;8BAInB,MAAM,YAAY,MAAM;CAgDrC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"useDownloadActions.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/actionCreators/useDownloadActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAatD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,QAAA,MAAM,kBAAkB,aACZ,MAAM,QAAQ,CAAC,eAAe,CAAC,uBACpB,MAAM,IAAI;8BAInB,MAAM,YAAY,MAAM,kBAAkB,MAAM;CAiD7D,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { IBundleAction, IBundleDataList } from '../../../types/bundle.types';
2
2
  export declare const setBundleLoading: () => IBundleAction;
3
+ export declare const setBundleNextPageLoading: (isNextPageLoading: boolean) => IBundleAction;
3
4
  export declare const setBundleData: (bundleData: IBundleDataList) => IBundleAction;
4
5
  export declare const setBundleError: (errorString: string) => IBundleAction;
5
6
  export declare const setSelectedBucketId: (bucketId?: string | null) => IBundleAction;
7
+ export declare const setBundlePaginationOffset: (paginationOffset?: string | null) => IBundleAction;
8
+ export declare const setPaginatedBundleData: (bundleData: IBundleDataList) => IBundleAction;
6
9
  //# sourceMappingURL=bundleActions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundleActions.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/actions/bundleActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,gBAAgB,QAAO,aAInC,CAAC;AAEF,eAAO,MAAM,aAAa,mCAAkC,aAK3D,CAAC;AAEF,eAAO,MAAM,cAAc,gBAAiB,MAAM,KAAG,aAKpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,cACnB,MAAM,GAAG,IAAI,KACvB,aAKF,CAAC"}
1
+ {"version":3,"file":"bundleActions.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/actions/bundleActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,gBAAgB,QAAO,aAInC,CAAC;AAEF,eAAO,MAAM,wBAAwB,sBAChB,OAAO,KACzB,aAKF,CAAC;AAEF,eAAO,MAAM,aAAa,mCAAkC,aAK3D,CAAC;AAEF,eAAO,MAAM,cAAc,gBAAiB,MAAM,KAAG,aAKpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,cACnB,MAAM,GAAG,IAAI,KACvB,aAKF,CAAC;AAEF,eAAO,MAAM,yBAAyB,sBACjB,MAAM,GAAG,IAAI,KAC/B,aAKF,CAAC;AAEF,eAAO,MAAM,sBAAsB,mCAEhC,aAKF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"bundleReducer.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/reducers/bundleReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,YAAY,EACb,MAAM,6BAA6B,CAAC;AAErC,QAAA,MAAM,aAAa,UACV,YAAY,UACX,aAAa,KACpB,YAsCF,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"bundleReducer.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/reducers/bundleReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,YAAY,EACb,MAAM,6BAA6B,CAAC;AAErC,QAAA,MAAM,aAAa,UACV,YAAY,UACX,aAAa,KACpB,YAmEF,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,7 +1,14 @@
1
- import { Component, ErrorInfo } from 'react';
2
- declare class ErrorBoundary extends Component {
3
- componentDidCatch(_: Error, errorInfo: ErrorInfo): void;
4
- render(): import("react").ReactNode;
1
+ import React, { Component } from 'react';
2
+ interface IErrorBoundaryProps {
3
+ }
4
+ interface IErrorBoundaryState {
5
+ errorText?: string | null;
6
+ }
7
+ declare class ErrorBoundary extends Component<IErrorBoundaryProps, IErrorBoundaryState> {
8
+ constructor(props: IErrorBoundaryProps);
9
+ componentDidCatch(error: Error): void;
10
+ continueCrash(): void;
11
+ render(): React.ReactNode;
5
12
  }
6
13
  export default ErrorBoundary;
7
14
  //# sourceMappingURL=ErrorBoundary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/ErrorBoundary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7C,cAAM,aAAc,SAAQ,SAAS;IACnC,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAQvD,MAAM;CAGP;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBzC,UAAU,mBAAmB;CAAG;AAChC,UAAU,mBAAmB;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,cAAM,aAAc,SAAQ,SAAS,CACnC,mBAAmB,EACnB,mBAAmB,CACpB;gBACa,KAAK,EAAE,mBAAmB;IAOtC,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAuBrC,aAAa;IAGb,MAAM;CAyBP;AAED,eAAe,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- export interface IBucketData {
1
+ export interface IBundleData {
2
2
  version: number;
3
3
  id: string;
4
4
  createdAt: string;
@@ -7,19 +7,25 @@ export interface IBucketData {
7
7
  fullName: string;
8
8
  };
9
9
  releaseNote: string;
10
+ downloadUrl: string;
10
11
  }
11
- export type IBundleDataList = IBucketData[];
12
+ export type IBundleDataList = IBundleData[];
12
13
  export interface IBundleState {
13
14
  data?: IBundleDataList | null;
14
15
  selectedBucketId?: string | null;
15
16
  isLoading: boolean;
16
17
  error?: string | null;
18
+ pageOffset?: string | null;
19
+ isNextPageLoading?: boolean;
17
20
  }
18
21
  export declare enum BundleActionKind {
19
22
  SET_BUNDLE_LOADING = "SET_BUNDLE_LOADING",
20
23
  SET_BUNDLE_DATA = "SET_BUNDLE_DATA",
21
24
  SET_BUNDLE_ERROR = "SET_BUNDLE_ERROR",
22
- SET_SELECTED_BUCKET = "SET_SELECTED_BUCKET"
25
+ SET_SELECTED_BUCKET = "SET_SELECTED_BUCKET",
26
+ SET_PAGINATION_OFFSET = "SET_PAGINATION_OFFSET",
27
+ SET_PAGINATED_BUNDLE_DATA = "SET_PAGINATED_BUNDLE_DATA",
28
+ SET_NEXT_PAGE_LOADING = "SET_NEXT_PAGE_LOADING"
23
29
  }
24
30
  interface IBundleLoadingAction {
25
31
  type: BundleActionKind.SET_BUNDLE_LOADING;
@@ -36,6 +42,18 @@ interface IBundleSelectedBucketAction {
36
42
  type: BundleActionKind.SET_SELECTED_BUCKET;
37
43
  payload?: string | null;
38
44
  }
39
- export type IBundleAction = IBundleLoadingAction | IBundleDataAction | IBundleErrorAction | IBundleSelectedBucketAction;
45
+ interface IBundlePaginationOffsetAction {
46
+ type: BundleActionKind.SET_PAGINATION_OFFSET;
47
+ payload?: string | null;
48
+ }
49
+ interface IBundlePaginatedBundleDataAction {
50
+ type: BundleActionKind.SET_PAGINATED_BUNDLE_DATA;
51
+ payload: IBundleDataList;
52
+ }
53
+ interface IBundleNextPageLoadingAction {
54
+ type: BundleActionKind.SET_NEXT_PAGE_LOADING;
55
+ payload: boolean;
56
+ }
57
+ export type IBundleAction = IBundleLoadingAction | IBundleDataAction | IBundleErrorAction | IBundleSelectedBucketAction | IBundlePaginationOffsetAction | IBundlePaginatedBundleDataAction | IBundleNextPageLoadingAction;
40
58
  export {};
41
59
  //# sourceMappingURL=bundle.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.types.d.ts","sourceRoot":"","sources":["../../../src/types/bundle.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,EAAE,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,oBAAY,gBAAgB;IAC1B,kBAAkB,uBAAuB;IACzC,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;CAC5C;AAED,UAAU,oBAAoB;IAC5B,IAAI,EAAE,gBAAgB,CAAC,kBAAkB,CAAC;CAC3C;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,gBAAgB,CAAC,eAAe,CAAC;IACvC,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,gBAAgB,CAA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iBAAiB;IACzB,IAAI,EAAE,gBAAgB,CAAC,eAAe,CAAC;IACvC,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,gBAAgB,CAAC,gBAAgB,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,2BAA2B;IACnC,IAAI,EAAE,gBAAgB,CAAC,mBAAmB,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,UAAU,6BAA6B;IACrC,IAAI,EAAE,gBAAgB,CAAC,qBAAqB,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,UAAU,gCAAgC;IACxC,IAAI,EAAE,gBAAgB,CAAC,yBAAyB,CAAC;IACjD,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,UAAU,4BAA4B;IACpC,IAAI,EAAE,gBAAgB,CAAC,qBAAqB,CAAC;IAC7C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,aAAa,GACrB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,2BAA2B,GAC3B,6BAA6B,GAC7B,gCAAgC,GAChC,4BAA4B,CAAC"}
@@ -16,11 +16,11 @@ interface IGlobalContextActions {
16
16
  verifyOtp: (verifyOtpPayload: IVerifyOtpPayload) => void;
17
17
  retryLogin: () => void;
18
18
  fetchBuckets: () => void;
19
- fetchBundles: (bucketId?: string | null) => void;
19
+ fetchBundles: (bucketId?: string | null, pageOffset?: string | null) => void;
20
20
  setUserRequiresLogin: (requiresLogin: boolean) => void;
21
21
  refreshMeta: () => void;
22
22
  selectBucket: (bucketId?: string | null) => void;
23
- downloadBundle: (version: number, bucketId: string) => void;
23
+ downloadBundle: (version: number, bucketId: string, url: string) => void;
24
24
  getUserProfile: () => void;
25
25
  }
26
26
  export interface IGlobalContext {
@@ -1 +1 @@
1
- {"version":3,"file":"globalProvider.types.d.ts","sour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,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzE,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,EAAE,UAAU,CAAC;IACtB,WAAW,EAAE,YAAY,CAAC;IAC1B,WAAW,EAAE,YAAY,CAAC;IAC1B,aAAa,EAAE,cAAc,CAAC;IAC9B,OAAO,EAAE,qBAAqB,CAAC;CAChC"}
@@ -3,8 +3,8 @@ import { NativeSyntheticEvent, TextInputChangeEventData } from 'react-native';
3
3
  import { IStallionMeta } from './meta.types';
4
4
  interface IBundleInfo {
5
5
  bucketId: string;
6
- projectId: string;
7
6
  version: number;
7
+ url: string;
8
8
  }
9
9
  type TCallback = (apiKey: string) => void;
10
10
  type TMetaCallback = (newMeta: IStallionMeta) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.types.d.ts","sourceRoot":"","sources":["../../../src/types/utils.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,UAAU,WAAW;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,KAAK,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;AAC1C,KAAK,aAAa,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,CAC1B,aAAa,EAAE,KAAK,CAAC,aAAa,KAC/B,KAAK,CAAC,aAAa,CAAC;AAEzB,MAAM,WAAW,eAAe;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,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