react-native-seel-widget 0.1.9 → 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.
- package/LICENSE +1 -1
- package/README.md +11 -2
- package/lib/module/assets/images/accredited.png +0 -0
- package/lib/module/assets/images/background_image.jpg +0 -0
- package/lib/module/assets/images/button_close.png +0 -0
- package/lib/module/assets/images/button_close_background.png +0 -0
- package/lib/module/assets/images/checkbox_normal.png +0 -0
- package/lib/module/assets/images/checkbox_selected.png +0 -0
- package/lib/module/assets/images/close_white.png +0 -0
- package/lib/module/assets/images/ic_launcher.png +0 -0
- package/lib/module/assets/images/icon_arrow_left.png +0 -0
- package/lib/module/assets/images/icon_bg_select.png +0 -0
- package/lib/module/assets/images/icon_check_selected_black.png +0 -0
- package/lib/module/assets/images/icon_select.png +0 -0
- package/lib/module/assets/images/info_black.png +0 -0
- package/lib/module/assets/images/seel_icon.png +0 -0
- package/lib/module/assets/images/seel_logo.png +0 -0
- package/lib/module/assets/images/seel_word.png +0 -0
- package/lib/module/assets/images/tick_small_minor.png +0 -0
- package/lib/module/constants/key_value.js +50 -0
- package/lib/module/constants/key_value.js.map +1 -0
- package/lib/module/constants/network_request_statue_enum.js +17 -0
- package/lib/module/constants/network_request_statue_enum.js.map +1 -0
- package/lib/module/core/SeelWidgetSDK.js +95 -0
- package/lib/module/core/SeelWidgetSDK.js.map +1 -0
- package/lib/module/core/index.js +4 -0
- package/lib/module/core/index.js.map +1 -0
- package/lib/module/dto/EventsRequest.js +71 -0
- package/lib/module/dto/EventsRequest.js.map +1 -0
- package/lib/module/dto/EventsResponse.js +15 -0
- package/lib/module/dto/EventsResponse.js.map +1 -0
- package/lib/module/dto/IEvents.js +31 -0
- package/lib/module/dto/IEvents.js.map +1 -0
- package/lib/module/dto/IQuotes.js +2 -0
- package/lib/module/dto/IQuotes.js.map +1 -0
- package/lib/module/dto/IQuotesRequest.js +4 -0
- package/lib/module/dto/IQuotesRequest.js.map +1 -0
- package/lib/module/dto/IQuotesResponse.js +2 -0
- package/lib/module/dto/IQuotesResponse.js.map +1 -0
- package/lib/module/dto/index.js +9 -0
- package/lib/module/dto/index.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/network/request.js +176 -0
- package/lib/module/network/request.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/ui/coverage-info-footer.js +170 -0
- package/lib/module/ui/coverage-info-footer.js.map +1 -0
- package/lib/module/ui/gradient-animation-text.js +116 -0
- package/lib/module/ui/gradient-animation-text.js.map +1 -0
- package/lib/module/ui/gradient-animation-view.js +110 -0
- package/lib/module/ui/gradient-animation-view.js.map +1 -0
- package/lib/module/ui/index.js +7 -0
- package/lib/module/ui/index.js.map +1 -0
- package/lib/module/ui/seel-wfp-info-view.js +312 -0
- package/lib/module/ui/seel-wfp-info-view.js.map +1 -0
- package/lib/module/ui/seel-wfp-title-view.js +289 -0
- package/lib/module/ui/seel-wfp-title-view.js.map +1 -0
- package/lib/module/ui/seel-wfp-widget.js +227 -0
- package/lib/module/ui/seel-wfp-widget.js.map +1 -0
- package/lib/module/utils/format_util.js +107 -0
- package/lib/module/utils/format_util.js.map +1 -0
- package/lib/module/utils/http_util.js +26 -0
- package/lib/module/utils/http_util.js.map +1 -0
- package/lib/module/utils/storage_util.js +36 -0
- package/lib/module/utils/storage_util.js.map +1 -0
- package/lib/module/utils/uuid.js +21 -0
- package/lib/module/utils/uuid.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/constants/key_value.d.ts +48 -0
- package/lib/typescript/src/constants/key_value.d.ts.map +1 -0
- package/lib/typescript/src/constants/network_request_statue_enum.d.ts +13 -0
- package/lib/typescript/src/constants/network_request_statue_enum.d.ts.map +1 -0
- package/lib/typescript/src/core/SeelWidgetSDK.d.ts +58 -0
- package/lib/typescript/src/core/SeelWidgetSDK.d.ts.map +1 -0
- package/lib/typescript/src/core/index.d.ts +2 -0
- package/lib/typescript/src/core/index.d.ts.map +1 -0
- package/lib/typescript/src/dto/EventsRequest.d.ts +60 -0
- package/lib/typescript/src/dto/EventsRequest.d.ts.map +1 -0
- package/lib/typescript/src/dto/EventsResponse.d.ts +11 -0
- package/lib/typescript/src/dto/EventsResponse.d.ts.map +1 -0
- package/lib/typescript/src/dto/IEvents.d.ts +48 -0
- package/lib/typescript/src/dto/IEvents.d.ts.map +1 -0
- package/lib/typescript/src/dto/IQuotes.d.ts +36 -0
- package/lib/typescript/src/dto/IQuotes.d.ts.map +1 -0
- package/lib/typescript/src/dto/IQuotesRequest.d.ts +213 -0
- package/lib/typescript/src/dto/IQuotesRequest.d.ts.map +1 -0
- package/lib/typescript/src/dto/IQuotesResponse.d.ts +96 -0
- package/lib/typescript/src/dto/IQuotesResponse.d.ts.map +1 -0
- package/lib/typescript/src/dto/index.d.ts +7 -0
- package/lib/typescript/src/dto/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +4 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/network/request.d.ts +49 -0
- package/lib/typescript/src/network/request.d.ts.map +1 -0
- package/lib/typescript/src/ui/coverage-info-footer.d.ts +9 -0
- package/lib/typescript/src/ui/coverage-info-footer.d.ts.map +1 -0
- package/lib/typescript/src/ui/gradient-animation-text.d.ts +40 -0
- package/lib/typescript/src/ui/gradient-animation-text.d.ts.map +1 -0
- package/lib/typescript/src/ui/gradient-animation-view.d.ts +32 -0
- package/lib/typescript/src/ui/gradient-animation-view.d.ts.map +1 -0
- package/lib/typescript/src/ui/index.d.ts +5 -0
- package/lib/typescript/src/ui/index.d.ts.map +1 -0
- package/lib/typescript/src/ui/seel-wfp-info-view.d.ts +13 -0
- package/lib/typescript/src/ui/seel-wfp-info-view.d.ts.map +1 -0
- package/lib/typescript/src/ui/seel-wfp-title-view.d.ts +68 -0
- package/lib/typescript/src/ui/seel-wfp-title-view.d.ts.map +1 -0
- package/lib/typescript/src/ui/seel-wfp-widget.d.ts +16 -0
- package/lib/typescript/src/ui/seel-wfp-widget.d.ts.map +1 -0
- package/lib/typescript/src/utils/format_util.d.ts +2 -0
- package/lib/typescript/src/utils/format_util.d.ts.map +1 -0
- package/lib/typescript/src/utils/http_util.d.ts +18 -0
- package/lib/typescript/src/utils/http_util.d.ts.map +1 -0
- package/lib/typescript/src/utils/storage_util.d.ts +6 -0
- package/lib/typescript/src/utils/storage_util.d.ts.map +1 -0
- package/lib/typescript/src/utils/uuid.d.ts +6 -0
- package/lib/typescript/src/utils/uuid.d.ts.map +1 -0
- package/package.json +9 -7
- package/src/dto/IQuotesRequest.ts +1 -1
- package/src/dto/index.ts +6 -0
- package/src/{index.tsx → index.ts} +1 -0
- package/src/network/request.ts +0 -4
- package/src/ui/seel-wfp-title-view.tsx +4 -1
- 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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-seel-widget",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "React
|
|
5
|
-
"main": "./
|
|
3
|
+
"version": "0.1.12",
|
|
4
|
+
"description": "React Native Seel Widget",
|
|
5
|
+
"main": "./lib/module/index.js",
|
|
6
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
6
7
|
"exports": {
|
|
7
8
|
".": {
|
|
8
9
|
"source": "./src/index.tsx",
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"scripts": {
|
|
34
35
|
"example": "yarn workspace react-native-seel-widget-example",
|
|
35
36
|
"clean": "del-cli lib",
|
|
37
|
+
"prepare": "bob build",
|
|
36
38
|
"typecheck": "tsc",
|
|
37
39
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
38
40
|
"test": "jest",
|
|
@@ -45,14 +47,14 @@
|
|
|
45
47
|
],
|
|
46
48
|
"repository": {
|
|
47
49
|
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/
|
|
50
|
+
"url": "git+https://github.com/kover-ai/react-native-seel-widget.git"
|
|
49
51
|
},
|
|
50
|
-
"author": "qingmingzhang <qingming.zhang@seel.com> (https://github.com/
|
|
52
|
+
"author": "qingmingzhang <qingming.zhang@seel.com> (https://github.com/kover-ai)",
|
|
51
53
|
"license": "MIT",
|
|
52
54
|
"bugs": {
|
|
53
|
-
"url": "https://github.com/
|
|
55
|
+
"url": "https://github.com/kover-ai/react-native-seel-widget/issues"
|
|
54
56
|
},
|
|
55
|
-
"homepage": "https://github.com/
|
|
57
|
+
"homepage": "https://github.com/kover-ai/react-native-seel-widget#readme",
|
|
56
58
|
"publishConfig": {
|
|
57
59
|
"registry": "https://registry.npmjs.org/"
|
|
58
60
|
},
|
|
@@ -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[]
|
|
213
|
+
line_items: IQuotesRequestLineItem[];
|
|
214
214
|
customer: IQuotesRequestCustomer;
|
|
215
215
|
shipping_address: IShippingAddress;
|
|
216
216
|
/**
|
package/src/dto/index.ts
ADDED
package/src/network/request.ts
CHANGED
|
@@ -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 {
|
|
@@ -187,7 +187,10 @@ export default function SeelWFPTitleView({
|
|
|
187
187
|
<TouchableOpacity
|
|
188
188
|
hitSlop={{ top: 8, right: 8, bottom: 8, left: 8 }}
|
|
189
189
|
onPress={() => {
|
|
190
|
-
|
|
190
|
+
// eslint-disable-next-line no-bitwise
|
|
191
|
+
if ((loadingStatue & NetworkRequestStatueEnum.Success) !== 0) {
|
|
192
|
+
onChangeOptedInValue(!optedIn);
|
|
193
|
+
}
|
|
191
194
|
}}
|
|
192
195
|
>
|
|
193
196
|
<Image
|
|
@@ -118,7 +118,8 @@ const SeelWFPWidget = (
|
|
|
118
118
|
setVisible(false);
|
|
119
119
|
}
|
|
120
120
|
} catch (error) {
|
|
121
|
-
console.warn(
|
|
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);
|