react-native-seel-widget 0.1.11 → 0.1.12

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 (121) hide show
  1. package/lib/module/assets/images/accredited.png +0 -0
  2. package/lib/module/assets/images/background_image.jpg +0 -0
  3. package/lib/module/assets/images/button_close.png +0 -0
  4. package/lib/module/assets/images/button_close_background.png +0 -0
  5. package/lib/module/assets/images/checkbox_normal.png +0 -0
  6. package/lib/module/assets/images/checkbox_selected.png +0 -0
  7. package/lib/module/assets/images/close_white.png +0 -0
  8. package/lib/module/assets/images/ic_launcher.png +0 -0
  9. package/lib/module/assets/images/icon_arrow_left.png +0 -0
  10. package/lib/module/assets/images/icon_bg_select.png +0 -0
  11. package/lib/module/assets/images/icon_check_selected_black.png +0 -0
  12. package/lib/module/assets/images/icon_select.png +0 -0
  13. package/lib/module/assets/images/info_black.png +0 -0
  14. package/lib/module/assets/images/seel_icon.png +0 -0
  15. package/lib/module/assets/images/seel_logo.png +0 -0
  16. package/lib/module/assets/images/seel_word.png +0 -0
  17. package/lib/module/assets/images/tick_small_minor.png +0 -0
  18. package/lib/module/constants/key_value.js +50 -0
  19. package/lib/module/constants/key_value.js.map +1 -0
  20. package/lib/module/constants/network_request_statue_enum.js +17 -0
  21. package/lib/module/constants/network_request_statue_enum.js.map +1 -0
  22. package/lib/module/core/SeelWidgetSDK.js +95 -0
  23. package/lib/module/core/SeelWidgetSDK.js.map +1 -0
  24. package/lib/module/core/index.js +4 -0
  25. package/lib/module/core/index.js.map +1 -0
  26. package/lib/module/dto/EventsRequest.js +71 -0
  27. package/lib/module/dto/EventsRequest.js.map +1 -0
  28. package/lib/module/dto/EventsResponse.js +15 -0
  29. package/lib/module/dto/EventsResponse.js.map +1 -0
  30. package/lib/module/dto/IEvents.js +31 -0
  31. package/lib/module/dto/IEvents.js.map +1 -0
  32. package/lib/module/dto/IQuotes.js +2 -0
  33. package/lib/module/dto/IQuotes.js.map +1 -0
  34. package/lib/module/dto/IQuotesRequest.js +4 -0
  35. package/lib/module/dto/IQuotesRequest.js.map +1 -0
  36. package/lib/module/dto/IQuotesResponse.js +2 -0
  37. package/lib/module/dto/IQuotesResponse.js.map +1 -0
  38. package/lib/module/dto/index.js +9 -0
  39. package/lib/module/dto/index.js.map +1 -0
  40. package/lib/module/index.js +6 -0
  41. package/lib/module/index.js.map +1 -0
  42. package/lib/module/network/request.js +176 -0
  43. package/lib/module/network/request.js.map +1 -0
  44. package/lib/module/package.json +1 -0
  45. package/lib/module/ui/coverage-info-footer.js +170 -0
  46. package/lib/module/ui/coverage-info-footer.js.map +1 -0
  47. package/lib/module/ui/gradient-animation-text.js +116 -0
  48. package/lib/module/ui/gradient-animation-text.js.map +1 -0
  49. package/lib/module/ui/gradient-animation-view.js +110 -0
  50. package/lib/module/ui/gradient-animation-view.js.map +1 -0
  51. package/lib/module/ui/index.js +7 -0
  52. package/lib/module/ui/index.js.map +1 -0
  53. package/lib/module/ui/seel-wfp-info-view.js +312 -0
  54. package/lib/module/ui/seel-wfp-info-view.js.map +1 -0
  55. package/lib/module/ui/seel-wfp-title-view.js +289 -0
  56. package/lib/module/ui/seel-wfp-title-view.js.map +1 -0
  57. package/lib/module/ui/seel-wfp-widget.js +227 -0
  58. package/lib/module/ui/seel-wfp-widget.js.map +1 -0
  59. package/lib/module/utils/format_util.js +107 -0
  60. package/lib/module/utils/format_util.js.map +1 -0
  61. package/lib/module/utils/http_util.js +26 -0
  62. package/lib/module/utils/http_util.js.map +1 -0
  63. package/lib/module/utils/storage_util.js +36 -0
  64. package/lib/module/utils/storage_util.js.map +1 -0
  65. package/lib/module/utils/uuid.js +21 -0
  66. package/lib/module/utils/uuid.js.map +1 -0
  67. package/lib/typescript/package.json +1 -0
  68. package/lib/typescript/src/constants/key_value.d.ts +48 -0
  69. package/lib/typescript/src/constants/key_value.d.ts.map +1 -0
  70. package/lib/typescript/src/constants/network_request_statue_enum.d.ts +13 -0
  71. package/lib/typescript/src/constants/network_request_statue_enum.d.ts.map +1 -0
  72. package/lib/typescript/src/core/SeelWidgetSDK.d.ts +58 -0
  73. package/lib/typescript/src/core/SeelWidgetSDK.d.ts.map +1 -0
  74. package/lib/typescript/src/core/index.d.ts +2 -0
  75. package/lib/typescript/src/core/index.d.ts.map +1 -0
  76. package/lib/typescript/src/dto/EventsRequest.d.ts +60 -0
  77. package/lib/typescript/src/dto/EventsRequest.d.ts.map +1 -0
  78. package/lib/typescript/src/dto/EventsResponse.d.ts +11 -0
  79. package/lib/typescript/src/dto/EventsResponse.d.ts.map +1 -0
  80. package/lib/typescript/src/dto/IEvents.d.ts +48 -0
  81. package/lib/typescript/src/dto/IEvents.d.ts.map +1 -0
  82. package/lib/typescript/src/dto/IQuotes.d.ts +36 -0
  83. package/lib/typescript/src/dto/IQuotes.d.ts.map +1 -0
  84. package/lib/typescript/src/dto/IQuotesRequest.d.ts +213 -0
  85. package/lib/typescript/src/dto/IQuotesRequest.d.ts.map +1 -0
  86. package/lib/typescript/src/dto/IQuotesResponse.d.ts +96 -0
  87. package/lib/typescript/src/dto/IQuotesResponse.d.ts.map +1 -0
  88. package/lib/typescript/src/dto/index.d.ts +7 -0
  89. package/lib/typescript/src/dto/index.d.ts.map +1 -0
  90. package/lib/typescript/src/index.d.ts +4 -0
  91. package/lib/typescript/src/index.d.ts.map +1 -0
  92. package/lib/typescript/src/network/request.d.ts +49 -0
  93. package/lib/typescript/src/network/request.d.ts.map +1 -0
  94. package/lib/typescript/src/ui/coverage-info-footer.d.ts +9 -0
  95. package/lib/typescript/src/ui/coverage-info-footer.d.ts.map +1 -0
  96. package/lib/typescript/src/ui/gradient-animation-text.d.ts +40 -0
  97. package/lib/typescript/src/ui/gradient-animation-text.d.ts.map +1 -0
  98. package/lib/typescript/src/ui/gradient-animation-view.d.ts +32 -0
  99. package/lib/typescript/src/ui/gradient-animation-view.d.ts.map +1 -0
  100. package/lib/typescript/src/ui/index.d.ts +5 -0
  101. package/lib/typescript/src/ui/index.d.ts.map +1 -0
  102. package/lib/typescript/src/ui/seel-wfp-info-view.d.ts +13 -0
  103. package/lib/typescript/src/ui/seel-wfp-info-view.d.ts.map +1 -0
  104. package/lib/typescript/src/ui/seel-wfp-title-view.d.ts +68 -0
  105. package/lib/typescript/src/ui/seel-wfp-title-view.d.ts.map +1 -0
  106. package/lib/typescript/src/ui/seel-wfp-widget.d.ts +16 -0
  107. package/lib/typescript/src/ui/seel-wfp-widget.d.ts.map +1 -0
  108. package/lib/typescript/src/utils/format_util.d.ts +2 -0
  109. package/lib/typescript/src/utils/format_util.d.ts.map +1 -0
  110. package/lib/typescript/src/utils/http_util.d.ts +18 -0
  111. package/lib/typescript/src/utils/http_util.d.ts.map +1 -0
  112. package/lib/typescript/src/utils/storage_util.d.ts +6 -0
  113. package/lib/typescript/src/utils/storage_util.d.ts.map +1 -0
  114. package/lib/typescript/src/utils/uuid.d.ts +6 -0
  115. package/lib/typescript/src/utils/uuid.d.ts.map +1 -0
  116. package/package.json +2 -1
  117. package/src/dto/IQuotesRequest.ts +1 -1
  118. package/src/dto/index.ts +6 -0
  119. package/src/{index.tsx → index.ts} +1 -0
  120. package/src/network/request.ts +0 -4
  121. package/src/ui/seel-wfp-widget.tsx +2 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,13 @@
1
+ export type Domain = '' | 'US' | 'EU';
2
+ interface SeelWFPInfoViewProps {
3
+ domain: Domain;
4
+ widgetTitle: string;
5
+ termsUrl: string;
6
+ privacyPolicyUrl: string;
7
+ dictionary: any;
8
+ onClickClose: () => void;
9
+ onChangeOptedInValue: (value: boolean) => void;
10
+ }
11
+ export default function SeelWFPInfoView({ domain, widgetTitle, termsUrl, privacyPolicyUrl, dictionary, onClickClose, onChangeOptedInValue, }: SeelWFPInfoViewProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=seel-wfp-info-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seel-wfp-info-view.d.ts","sourceRoot":"","sources":["../../../../src/ui/seel-wfp-info-view.tsx"],"names":[],"mappings":"AAeA,MAAM,MAAM,MAAM,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC,UAAU,oBAAoB;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,GAAG,CAAC;IAChB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,MAAW,EACX,WAAgB,EAChB,QAAa,EACb,gBAAqB,EACrB,UAAe,EACf,YAAuB,EACvB,oBAAyC,GAC1C,EAAE,oBAAoB,2CAyLtB"}
@@ -0,0 +1,68 @@
1
+ import type { TextStyle, ViewStyle } from 'react-native';
2
+ import { NetworkRequestStatueEnum } from '../constants/network_request_statue_enum';
3
+ export interface SeelWFPTitleViewProps {
4
+ status: string;
5
+ /**
6
+ * Title text to display
7
+ */
8
+ title?: string;
9
+ /**
10
+ * Price text to display
11
+ */
12
+ price?: string;
13
+ /**
14
+ * Custom container style
15
+ */
16
+ containerStyle?: ViewStyle;
17
+ /**
18
+ * Custom container style for dark mode
19
+ */
20
+ darkContainerStyle?: ViewStyle;
21
+ /**
22
+ * Custom container style for light mode
23
+ */
24
+ lightContainerStyle?: ViewStyle;
25
+ /**
26
+ * Custom title text style
27
+ */
28
+ titleStyle?: TextStyle;
29
+ /**
30
+ * Custom title text style for dark mode
31
+ */
32
+ darkTitleStyle?: TextStyle;
33
+ /**
34
+ * Custom title text style for light mode
35
+ */
36
+ lightTitleStyle?: TextStyle;
37
+ /**
38
+ * Custom price text style
39
+ */
40
+ priceStyle?: TextStyle;
41
+ /**
42
+ * Custom price text style for dark mode
43
+ */
44
+ darkPriceStyle?: TextStyle;
45
+ /**
46
+ * Custom price text style for light mode
47
+ */
48
+ lightPriceStyle?: TextStyle;
49
+ /**
50
+ * Callback function when title is pressed
51
+ * @param route - Route name or path to navigate to
52
+ */
53
+ onClickInfoIcon?: (route?: string) => void;
54
+ /**
55
+ * Route name or path for navigation (optional, can be used with onClickInfoIcon)
56
+ */
57
+ route?: string;
58
+ /**
59
+ * Whether the title is pressable (default: true if onClickInfoIcon is provided)
60
+ */
61
+ pressable?: boolean;
62
+ optedIn: boolean;
63
+ dictionary: any;
64
+ loadingStatue: NetworkRequestStatueEnum;
65
+ onChangeOptedInValue: (optedIn: boolean) => void;
66
+ }
67
+ export default function SeelWFPTitleView({ status, title, price, containerStyle, lightContainerStyle, darkContainerStyle, titleStyle, lightTitleStyle, darkTitleStyle, priceStyle, lightPriceStyle, darkPriceStyle, optedIn, dictionary, loadingStatue, onClickInfoIcon, onChangeOptedInValue, }: SeelWFPTitleViewProps): import("react/jsx-runtime").JSX.Element;
68
+ //# sourceMappingURL=seel-wfp-title-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seel-wfp-title-view.d.ts","sourceRoot":"","sources":["../../../../src/ui/seel-wfp-title-view.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B;;OAEG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,GAAG,CAAC;IAChB,aAAa,EAAE,wBAAwB,CAAC;IACxC,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,MAAM,EACN,KAAK,EACL,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACV,eAAe,EACf,cAAc,EACd,OAAe,EACf,UAAe,EACf,aAA6C,EAC7C,eAAe,EACf,oBAAyC,GAC1C,EAAE,qBAAqB,2CAsKvB"}
@@ -0,0 +1,16 @@
1
+ import { type Domain } from './seel-wfp-info-view';
2
+ import type { IQuotesRequest } from '../dto/IQuotesRequest';
3
+ import type IQuotesResponse from '../dto/IQuotesResponse';
4
+ export interface SeelWFPWidgetRef {
5
+ setup(quote: IQuotesRequest): void;
6
+ }
7
+ interface SeelWFPWidgetProps {
8
+ domain: Domain;
9
+ onChangeValue: ({ optedIn, quotesResponse, }: {
10
+ optedIn: boolean;
11
+ quotesResponse?: IQuotesResponse;
12
+ }) => void;
13
+ }
14
+ declare const _default: import("react").ForwardRefExoticComponent<SeelWFPWidgetProps & import("react").RefAttributes<SeelWFPWidgetRef>>;
15
+ export default _default;
16
+ //# sourceMappingURL=seel-wfp-widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seel-wfp-widget.d.ts","sourceRoot":"","sources":["../../../../src/ui/seel-wfp-widget.tsx"],"names":[],"mappings":"AAUA,OAAwB,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAGpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CACpC;AAED,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,EACd,OAAO,EACP,cAAc,GACf,EAAE;QACD,OAAO,EAAE,OAAO,CAAC;QACjB,cAAc,CAAC,EAAE,eAAe,CAAC;KAClC,KAAK,IAAI,CAAC;CACZ;;AA+OD,wBAA+E"}
@@ -0,0 +1,2 @@
1
+ export declare const moneyFormat: (money: any, currency: string, options: any) => any;
2
+ //# sourceMappingURL=format_util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format_util.d.ts","sourceRoot":"","sources":["../../../../src/utils/format_util.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,EAAE,UAAU,MAAM,EAAE,SAAS,GAAG,QAoHrE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { IEvents } from '../dto/IEvents';
2
+ import type { IQuotesRequest } from '../dto/IQuotesRequest';
3
+ import type IQuotesResponse from '../dto/IQuotesResponse';
4
+ export declare enum NetworkErrorEnum {
5
+ InvalidURL = 0,
6
+ NoData = 1,
7
+ DecodingError = 2,
8
+ NetworkError = 3,
9
+ ServerError = 4,
10
+ /**
11
+ * Configuration error
12
+ */
13
+ ConfigError = 5,
14
+ Unknown = 6
15
+ }
16
+ export declare const createQuote: (body: IQuotesRequest) => Promise<IQuotesResponse>;
17
+ export declare const createEvent: (body: IEvents) => Promise<IQuotesResponse>;
18
+ //# sourceMappingURL=http_util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http_util.d.ts","sourceRoot":"","sources":["../../../../src/utils/http_util.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,oBAAY,gBAAgB;IAC1B,UAAU,IAAA;IACV,MAAM,IAAA;IACN,aAAa,IAAA;IACb,YAAY,IAAA;IACZ,WAAW,IAAA;IACX;;OAEG;IACH,WAAW,IAAA;IACX,OAAO,IAAA;CACR;AAED,eAAO,MAAM,WAAW,GAAI,MAAM,cAAc,6BAG/C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,OAAO,6BAGxC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const AsyncStorageKey: {
2
+ OptedIn: string;
3
+ };
4
+ export declare const writeOptedIn: (value: boolean) => Promise<void>;
5
+ export declare const readOptedIn: () => Promise<boolean>;
6
+ //# sourceMappingURL=storage_util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage_util.d.ts","sourceRoot":"","sources":["../../../../src/utils/storage_util.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAUF,eAAO,MAAM,YAAY,GAAU,OAAO,OAAO,KAAG,OAAO,CAAC,IAAI,CAW/D,CAAC;AAEF,eAAO,MAAM,WAAW,QAAa,OAAO,CAAC,OAAO,CASnD,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generate a random UUID (v4)
3
+ * @returns A UUID string in the format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
4
+ */
5
+ export declare function randomUUID(): string;
6
+ //# sourceMappingURL=uuid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../../../src/utils/uuid.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAYnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-seel-widget",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "React Native Seel Widget",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -34,6 +34,7 @@
34
34
  "scripts": {
35
35
  "example": "yarn workspace react-native-seel-widget-example",
36
36
  "clean": "del-cli lib",
37
+ "prepare": "bob build",
37
38
  "typecheck": "tsc",
38
39
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
39
40
  "test": "jest",
@@ -210,7 +210,7 @@ export interface IQuotesRequest {
210
210
  /**
211
211
  * The list of items included in the quote.
212
212
  */
213
- line_items: IQuotesRequestLineItem[] | null;
213
+ line_items: IQuotesRequestLineItem[];
214
214
  customer: IQuotesRequestCustomer;
215
215
  shipping_address: IShippingAddress;
216
216
  /**
@@ -0,0 +1,6 @@
1
+ export * from './EventsRequest';
2
+ export * from './EventsResponse';
3
+ export * from './IEvents';
4
+ export * from './IQuotes';
5
+ export * from './IQuotesRequest';
6
+ export * from './IQuotesResponse';
@@ -1,2 +1,3 @@
1
1
  export * from './core';
2
+ export * from './dto';
2
3
  export * from './ui';
@@ -15,10 +15,6 @@ export interface GetRequestParams {
15
15
  [key: string]: any;
16
16
  }
17
17
 
18
- // const defaultXSeelApiKey: string = SeelWidgetSDK.shared.apiKey || '';
19
- // const defaultXSeelApiVersion: string = SeelWidgetSDK.shared.apiVersion || '';
20
- // const defaultRequestTimeout: number = SeelWidgetSDK.shared.requestTimeout;
21
-
22
18
  class Request {
23
19
  defaultHeaders(): RequestHeaders {
24
20
  return {
@@ -118,7 +118,8 @@ const SeelWFPWidget = (
118
118
  setVisible(false);
119
119
  }
120
120
  } catch (error) {
121
- console.warn(error);
121
+ console.warn('quote:\n', quote);
122
+ console.warn('error:\n', error);
122
123
  setLoadingStatus(NetworkRequestStatueEnum.Failed);
123
124
  setModalVisible(false);
124
125
  setVisible(false);