@tap-payments/auth-jsconnect 2.10.10-development → 2.10.11-development

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/README.md CHANGED
@@ -77,8 +77,8 @@ const App = () => {
77
77
  <meta charset="utf-8" />
78
78
  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no" />
79
79
  <title>Auth-JsConnect</title>
80
- <script src="https://auth-jsconnect.b-cdn.net/build-2.0.0/main.js"></script>
81
- <link href="https://auth-jsconnect.b-cdn.net/build-2.0.0/main.css" rel="stylesheet" />
80
+ <script src="https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.0.0/main.js"></script>
81
+ <link href="https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.0.0/main.css" rel="stylesheet" />
82
82
  </head>
83
83
  <body>
84
84
  <div id="root"></div>
@@ -1,10 +1,8 @@
1
- export declare const ICONS_BASE_URL = "https://dash.b-cdn.net";
2
- export declare const ICONS_PATH = "/icons/menu";
3
- export declare const ASSETS_BASE_URL = "https://tap-assets.b-cdn.net";
4
- export declare const ASSETS_PATH = "/icons/connect";
5
- export declare const ICONS_EXTENSION = ".svg";
1
+ export declare const SVG_ICON_EXTENSION = ".svg";
2
+ export declare const PNG_ICON_EXTENSION = ".png";
6
3
  export declare const ICONS_FULL_PATH: string;
7
- export declare const ASSETS_FULL_PATH: string;
4
+ export declare const BACKEND_ICONS_FULL_PATH: string;
5
+ export declare const ASSETS_DASHBOARD_FULL_PATH: string;
8
6
  export declare const ICONS_NAMES: {
9
7
  SIDE_MENU_CLOSE_ICON: string;
10
8
  SIDE_MENU_CLOSE_ICON_DARK: string;
@@ -1,125 +1,129 @@
1
1
  import { ThemeMode } from '../@types';
2
- export var ICONS_BASE_URL = 'https://dash.b-cdn.net';
3
- export var ICONS_PATH = '/icons/menu';
4
- export var ASSETS_BASE_URL = 'https://tap-assets.b-cdn.net';
5
- export var ASSETS_PATH = '/icons/connect';
6
- export var ICONS_EXTENSION = '.svg';
7
- export var ICONS_FULL_PATH = ICONS_BASE_URL + ICONS_PATH;
8
- export var ASSETS_FULL_PATH = ASSETS_BASE_URL + ASSETS_PATH;
9
- var generateAssetPath = function (name, theme) { return "".concat(ASSETS_BASE_URL).concat(ASSETS_PATH, "/").concat(theme, "/").concat(name).concat(ICONS_EXTENSION); };
2
+ var CDN_BASE_URL = 'https://cdn.tap.company';
3
+ var TAP_ASSETS_PATH = '/tap-assets/icons';
4
+ var DASHBOARD_PATH = '/dashboard/icons/menu';
5
+ var ASSETS_PATH = TAP_ASSETS_PATH + '/connect';
6
+ var BACKEND_ASSETS_PATH = '/back-end';
7
+ export var SVG_ICON_EXTENSION = '.svg';
8
+ export var PNG_ICON_EXTENSION = '.png';
9
+ export var ICONS_FULL_PATH = CDN_BASE_URL + DASHBOARD_PATH;
10
+ var ASSETS_FULL_PATH = CDN_BASE_URL + ASSETS_PATH;
11
+ export var BACKEND_ICONS_FULL_PATH = CDN_BASE_URL + BACKEND_ASSETS_PATH;
12
+ export var ASSETS_DASHBOARD_FULL_PATH = CDN_BASE_URL + TAP_ASSETS_PATH + '/dashboard/light';
13
+ var generateAssetPath = function (name, theme) { return "".concat(ASSETS_FULL_PATH, "/").concat(theme, "/").concat(name).concat(SVG_ICON_EXTENSION); };
10
14
  var generateLightAssetPath = function (name) { return generateAssetPath(name, ThemeMode.LIGHT); };
11
15
  export var ICONS_NAMES = {
12
- SIDE_MENU_CLOSE_ICON: ICONS_FULL_PATH + '/side-menu-close' + ICONS_EXTENSION,
13
- SIDE_MENU_CLOSE_ICON_DARK: ICONS_FULL_PATH + '/side-menu-close-dark' + ICONS_EXTENSION,
14
- THREE_LINES_ICON: ICONS_FULL_PATH + '/three-lines' + ICONS_EXTENSION,
15
- THREE_LINES_ICON_DARK: ICONS_FULL_PATH + '/three-lines-dark' + ICONS_EXTENSION,
16
- TAP_LOGO_ICON_AR: ICONS_FULL_PATH + '/tap-ar-logo' + ICONS_EXTENSION,
17
- TAP_LOGO_ICON_AR_DARK: ICONS_FULL_PATH + '/tap-ar-logo-dark' + ICONS_EXTENSION,
18
- TAP_LOGO_ICON_EN: ICONS_FULL_PATH + '/tap-en-logo' + ICONS_EXTENSION,
19
- TAP_LOGO_ICON_EN_DARK: ICONS_FULL_PATH + '/tap-en-logo-dark' + ICONS_EXTENSION,
20
- DOWN_ARROW_ICON: ICONS_FULL_PATH + '/popup_arrow' + ICONS_EXTENSION,
21
- DOWN_ARROW_ICON_DARK: ICONS_FULL_PATH + '/popup_arrow_dark' + ICONS_EXTENSION,
22
- CLEAR_ICON: ICONS_FULL_PATH + '/clear' + ICONS_EXTENSION,
23
- LOGO_ICON: ICONS_FULL_PATH + '/tap_logo_icon' + ICONS_EXTENSION,
24
- LOGO_WITH_NAME_WHITE_EN_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_white_en' + ICONS_EXTENSION,
25
- LOGO_WITH_NAME_WHITE_AR_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_white_ar' + ICONS_EXTENSION,
26
- LOGO_WITH_NAME_DARK_EN_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_dark_en' + ICONS_EXTENSION,
27
- LOGO_WITH_NAME_DARK_AR_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_dark_ar' + ICONS_EXTENSION,
28
- WEB_ICON: ICONS_FULL_PATH + '/website' + ICONS_EXTENSION,
29
- WEB_ACTIVE_ICON: ICONS_FULL_PATH + '/website-active' + ICONS_EXTENSION,
30
- TWITTER_ICON: ICONS_FULL_PATH + '/twitter-icon' + ICONS_EXTENSION,
31
- TWITTER_ACTIVE_ICON: ICONS_FULL_PATH + '/twitter-active-icon' + ICONS_EXTENSION,
32
- INSTAGRAM_ICON: ICONS_FULL_PATH + '/insta' + ICONS_EXTENSION,
33
- INSTAGRAM_ACTIVE_ICON: ICONS_FULL_PATH + '/insta-active' + ICONS_EXTENSION,
34
- APP_APPLE_ICON: ICONS_FULL_PATH + '/apple' + ICONS_EXTENSION,
35
- APP_APPLE_ACTIVE_ICON: ICONS_FULL_PATH + '/apple-active' + ICONS_EXTENSION,
36
- APP_ANDROID_ICON: ICONS_FULL_PATH + '/play-store' + ICONS_EXTENSION,
37
- APP_ANDROID_ACTIVE_ICON: ICONS_FULL_PATH + '/play-store-active' + ICONS_EXTENSION,
38
- PHYSICAL_STORE_ICON: ICONS_FULL_PATH + '/physical-store' + ICONS_EXTENSION,
39
- PHYSICAL_STORE_ACTIVE_ICON: ICONS_FULL_PATH + '/physical-store-active' + ICONS_EXTENSION,
40
- CALL_CENTER_ICON: ICONS_FULL_PATH + '/call-center' + ICONS_EXTENSION,
41
- CALL_CENTER_ACTIVE_ICON: ICONS_FULL_PATH + '/call-center-active' + ICONS_EXTENSION,
42
- FL_ICON: ICONS_FULL_PATH + '/fl' + ICONS_EXTENSION,
43
- FL_ACTIVE_ICON: ICONS_FULL_PATH + '/fl_active' + ICONS_EXTENSION,
44
- CR_ICON: ICONS_FULL_PATH + '/cr' + ICONS_EXTENSION,
45
- CR_ACTIVE_ICON: ICONS_FULL_PATH + '/cr_active' + ICONS_EXTENSION,
46
- TAP_LOGO_EN_ICON: ICONS_FULL_PATH + '/tap-white-logo' + ICONS_EXTENSION,
47
- TAP_LOGO_TEXT_AR: ICONS_FULL_PATH + '/tap-white-text-ar' + ICONS_EXTENSION,
48
- TAP_LOGO_TEXT_EN: ICONS_FULL_PATH + '/tap-white-text-en' + ICONS_EXTENSION,
16
+ SIDE_MENU_CLOSE_ICON: ICONS_FULL_PATH + '/side-menu-close' + SVG_ICON_EXTENSION,
17
+ SIDE_MENU_CLOSE_ICON_DARK: ICONS_FULL_PATH + '/side-menu-close-dark' + SVG_ICON_EXTENSION,
18
+ THREE_LINES_ICON: ICONS_FULL_PATH + '/three-lines' + SVG_ICON_EXTENSION,
19
+ THREE_LINES_ICON_DARK: ICONS_FULL_PATH + '/three-lines-dark' + SVG_ICON_EXTENSION,
20
+ TAP_LOGO_ICON_AR: ICONS_FULL_PATH + '/tap-ar-logo' + SVG_ICON_EXTENSION,
21
+ TAP_LOGO_ICON_AR_DARK: ICONS_FULL_PATH + '/tap-ar-logo-dark' + SVG_ICON_EXTENSION,
22
+ TAP_LOGO_ICON_EN: ICONS_FULL_PATH + '/tap-en-logo' + SVG_ICON_EXTENSION,
23
+ TAP_LOGO_ICON_EN_DARK: ICONS_FULL_PATH + '/tap-en-logo-dark' + SVG_ICON_EXTENSION,
24
+ DOWN_ARROW_ICON: ICONS_FULL_PATH + '/popup_arrow' + SVG_ICON_EXTENSION,
25
+ DOWN_ARROW_ICON_DARK: ICONS_FULL_PATH + '/popup_arrow_dark' + SVG_ICON_EXTENSION,
26
+ CLEAR_ICON: ICONS_FULL_PATH + '/clear' + SVG_ICON_EXTENSION,
27
+ LOGO_ICON: ICONS_FULL_PATH + '/tap_logo_icon' + SVG_ICON_EXTENSION,
28
+ LOGO_WITH_NAME_WHITE_EN_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_white_en' + SVG_ICON_EXTENSION,
29
+ LOGO_WITH_NAME_WHITE_AR_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_white_ar' + SVG_ICON_EXTENSION,
30
+ LOGO_WITH_NAME_DARK_EN_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_dark_en' + SVG_ICON_EXTENSION,
31
+ LOGO_WITH_NAME_DARK_AR_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_dark_ar' + SVG_ICON_EXTENSION,
32
+ WEB_ICON: ICONS_FULL_PATH + '/website' + SVG_ICON_EXTENSION,
33
+ WEB_ACTIVE_ICON: ICONS_FULL_PATH + '/website-active' + SVG_ICON_EXTENSION,
34
+ TWITTER_ICON: ICONS_FULL_PATH + '/twitter-icon' + SVG_ICON_EXTENSION,
35
+ TWITTER_ACTIVE_ICON: ICONS_FULL_PATH + '/twitter-active-icon' + SVG_ICON_EXTENSION,
36
+ INSTAGRAM_ICON: ICONS_FULL_PATH + '/insta' + SVG_ICON_EXTENSION,
37
+ INSTAGRAM_ACTIVE_ICON: ICONS_FULL_PATH + '/insta-active' + SVG_ICON_EXTENSION,
38
+ APP_APPLE_ICON: ICONS_FULL_PATH + '/apple' + SVG_ICON_EXTENSION,
39
+ APP_APPLE_ACTIVE_ICON: ICONS_FULL_PATH + '/apple-active' + SVG_ICON_EXTENSION,
40
+ APP_ANDROID_ICON: ICONS_FULL_PATH + '/play-store' + SVG_ICON_EXTENSION,
41
+ APP_ANDROID_ACTIVE_ICON: ICONS_FULL_PATH + '/play-store-active' + SVG_ICON_EXTENSION,
42
+ PHYSICAL_STORE_ICON: ICONS_FULL_PATH + '/physical-store' + SVG_ICON_EXTENSION,
43
+ PHYSICAL_STORE_ACTIVE_ICON: ICONS_FULL_PATH + '/physical-store-active' + SVG_ICON_EXTENSION,
44
+ CALL_CENTER_ICON: ICONS_FULL_PATH + '/call-center' + SVG_ICON_EXTENSION,
45
+ CALL_CENTER_ACTIVE_ICON: ICONS_FULL_PATH + '/call-center-active' + SVG_ICON_EXTENSION,
46
+ FL_ICON: ICONS_FULL_PATH + '/fl' + SVG_ICON_EXTENSION,
47
+ FL_ACTIVE_ICON: ICONS_FULL_PATH + '/fl_active' + SVG_ICON_EXTENSION,
48
+ CR_ICON: ICONS_FULL_PATH + '/cr' + SVG_ICON_EXTENSION,
49
+ CR_ACTIVE_ICON: ICONS_FULL_PATH + '/cr_active' + SVG_ICON_EXTENSION,
50
+ TAP_LOGO_EN_ICON: ICONS_FULL_PATH + '/tap-white-logo' + SVG_ICON_EXTENSION,
51
+ TAP_LOGO_TEXT_AR: ICONS_FULL_PATH + '/tap-white-text-ar' + SVG_ICON_EXTENSION,
52
+ TAP_LOGO_TEXT_EN: ICONS_FULL_PATH + '/tap-white-text-en' + SVG_ICON_EXTENSION,
49
53
  PACI_VERIFY_ICON: ICONS_FULL_PATH + '/PACI_verify_icon' + '.png',
50
54
  NAFATH_LOGO: generateLightAssetPath('nafath_button_logo'),
51
55
  NAFATH_VERIFY_ICON: generateLightAssetPath('nafath_logo'),
52
56
  EXPRESS_ERROR_ICON: ICONS_FULL_PATH + '/EXPRESS_error_icon' + '.svg',
53
57
  TAP_LOGO: generateLightAssetPath('tap-logo'),
54
- TAP_EN: 'https://tap-connecet.b-cdn.net/imgs/tapEN' + ICONS_EXTENSION,
55
- TAP_AR: 'https://tap-connecet.b-cdn.net/imgs/tapAR' + ICONS_EXTENSION,
58
+ TAP_EN: 'https://cdn.tap.company/tap-connect/imgs/tapEN' + SVG_ICON_EXTENSION,
59
+ TAP_AR: 'https://cdn.tap.company/tap-connect/imgs/tapAR' + SVG_ICON_EXTENSION,
56
60
  ID_IMAGE: 'https://villageofwarwick.org/wp-content/uploads/2020/02/ICON99-512-1.png',
57
61
  MOBILE_IMAGE: 'https://image.shutterstock.com/image-vector/smartphone-icon-logo-260nw-767440327.jpg',
58
- WHITE_ARROW: 'https://tap-connecet.b-cdn.net/imgs/whiteArrow.svg',
59
- BLACK_ARROW: 'https://dash.b-cdn.net/icons/menu/arrow_right_icon.svg',
60
- BLUE_ARROW: 'https://dash.b-cdn.net/icons/menu/blue_arrow_next.svg',
61
- GREEN_ARROW: 'https://dash.b-cdn.net/icons/menu/green_arrow_next.svg',
62
- REQUEST_EMAIL: 'https://dash.b-cdn.net/icons/menu/request_email.svg',
63
- REQUEST_EMAIL_GREEN: 'https://dash.b-cdn.net/icons/menu/request_email_green.svg',
64
- ADD_DETAIL: 'https://dash.b-cdn.net/icons/menu/add_detail.svg',
65
- ADD_DETAIL_GREEN: 'https://dash.b-cdn.net/icons/menu/add_detail_green.svg',
66
- SUCCESS: 'https://dash.b-cdn.net/icons/menu/image.png',
67
- UNFINISHED: 'https://dash.b-cdn.net/icons/menu/not-finished.png',
68
- ABSHER_LOGO: 'https://dash.b-cdn.net/icons/menu/Absher.svg',
69
- EMAIL_ICON: 'https://dash.b-cdn.net/icons/menu/email.png',
70
- MOBILE_ICON: 'https://dash.b-cdn.net/icons/menu/mobile.svg',
71
- SEARCH_ICON: 'https://dash.b-cdn.net/icons/menu/search-icon.svg',
72
- SUCCESS_GIF: 'https://dash.b-cdn.net/icons/menu/success_icon.gif',
73
- DELETE_ICON: 'https://dash.b-cdn.net/icons/menu/delete-icon.png',
74
- UPLOAD_ICON: 'https://dash.b-cdn.net/icons/menu/upload-file.svg',
75
- ACTIVE_UPLOAD_ICON: 'https://dash.b-cdn.net/icons/menu/active-upload-icon.png',
76
- WARNING_ICON: 'https://dash.b-cdn.net/icons/menu/warning-icon.svg',
77
- ERROR_ICON: 'https://dash.b-cdn.net/icons/menu/upload_error_icon.svg',
78
- DONE_ICON: 'https://dash.b-cdn.net/icons/menu/done.svg',
79
- DOC_ICON: 'https://dash.b-cdn.net/icons/menu/document-icon.svg',
80
- DROP_FILE_ICON: 'https://dash.b-cdn.net/icons/menu/upload-file-sample.svg',
81
- CLOSE_ICON: 'https://dash.b-cdn.net/icons/menu/close-btn.svg',
82
- PACI_ICON: 'https://dash.b-cdn.net/icons/menu/PACI-filled.svg',
83
- SIGNED_UP_SUCCESS: 'https://dash.b-cdn.net/icons/menu/signed_up_success.svg',
84
- SWITCH_HIJRI_CALENDER: 'https://dash.b-cdn.net/icons/menu/switch_hijri_calender.svg',
85
- SWITCH_CALENDER: 'https://dash.b-cdn.net/icons/menu/calender_icon.svg',
86
- GMAIL_Filled_ICON: 'https://dash.b-cdn.net/icons/menu/Gmail-filled.svg',
87
- GMAIL_White_ICON: 'https://dash.b-cdn.net/icons/menu/Gmail-white.svg',
88
- outlook_Filled_ICON: 'https://dash.b-cdn.net/icons/menu/Outlook-filled.svg',
89
- outlook_White_ICON: 'https://dash.b-cdn.net/icons/menu/Outlook-white.svg',
90
- Apple_Filled_ICON: 'https://dash.b-cdn.net/icons/menu/Apple-mail-filled.svg',
91
- apple_white_icon: 'https://dash.b-cdn.net/icons/menu/Apple-mail-white.svg',
92
- Mail_Filled_icon: 'https://dash.b-cdn.net/icons/menu/Mail-filled.svg',
93
- Mail_white_icon: 'https://dash.b-cdn.net/icons/menu/Mail-white.svg',
94
- tax_filled_icon: 'https://dash.b-cdn.net/icons/menu/tax-filled-blue.svg',
95
- tax_green_icon: 'https://dash.b-cdn.net/icons/menu/tax-filled-green.svg',
96
- tax_white_icon: 'https://dash.b-cdn.net/icons/menu/tax-white.svg',
97
- bank_filled_icon: 'https://dash.b-cdn.net/icons/menu/bank-filled-blue.svg',
98
- bank_green_icon: 'https://dash.b-cdn.net/icons/menu/bank-filled-green.svg',
99
- bank_white_icon: 'https://dash.b-cdn.net/icons/menu/bank-white.svg',
100
- individual_filled_icon: 'https://dash.b-cdn.net/icons/menu/user-filled-blue.svg',
101
- individual_green_icon: 'https://dash.b-cdn.net/icons/menu/user-filled-green.svg',
102
- individual_white_icon: 'https://dash.b-cdn.net/icons/menu/user-white.svg',
103
- password_filled_icon: 'https://dash.b-cdn.net/icons/menu/password-filled-blue.svg',
104
- password_green_icon: 'https://dash.b-cdn.net/icons/menu/password-filled-green.svg',
105
- password_white_icon: 'https://dash.b-cdn.net/icons/menu/password-white.svg',
106
- business_filled_icon: 'https://dash.b-cdn.net/icons/menu/business-filled-blue.svg',
107
- business_green_icon: 'https://dash.b-cdn.net/icons/menu/business-filled-green.svg',
108
- business_white_icon: 'https://dash.b-cdn.net/icons/menu/business-white.svg',
109
- entity_filled_icon: 'https://dash.b-cdn.net/icons/menu/business-filled-blue.svg',
110
- entity_green_icon: 'https://dash.b-cdn.net/icons/menu/business-filled-green.svg',
111
- entity_white_icon: 'https://dash.b-cdn.net/icons/menu/business-white.svg',
112
- brand_filled_icon: 'https://dash.b-cdn.net/icons/menu/brand-icon.svg',
113
- terminal_filled_icon: 'https://dash.b-cdn.net/icons/menu/terminal-filled-blue.svg',
114
- terminal_green_icon: 'https://dash.b-cdn.net/icons/menu/terminal-filled-green.svg',
115
- terminal_white_icon: 'https://dash.b-cdn.net/icons/menu/terminal-white.svg',
116
- Arrow_filled_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-filled-blue.svg',
117
- Arrow_green_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-filled-green.svg',
118
- Arrow_white_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-white.svg',
119
- account_not_found: 'https://tap-connecet.b-cdn.net/imgs/account_not_found.svg',
120
- email_icon: 'https://tap-connecet.b-cdn.net/imgs/email_outlined.svg',
121
- terminal_device: 'https://tap-assets.b-cdn.net/icons/connect/light/terminal_device.svg',
122
- device_image: 'https://tap-assets.b-cdn.net/icons/connect/light/device_default.svg',
123
- platform_image: 'https://tap-assets.b-cdn.net/icons/connect/light/platform_default.svg',
124
- radio_checked: 'https://tap-assets.b-cdn.net/icons/connect/light/radio_checked.svg'
62
+ WHITE_ARROW: 'https://cdn.tap.company/tap-connect/imgs/whiteArrow.svg',
63
+ BLACK_ARROW: 'https://cdn.tap.company/dashboard/icons/menu/arrow_right_icon.svg',
64
+ BLUE_ARROW: 'https://cdn.tap.company/dashboard/icons/menu/blue_arrow_next.svg',
65
+ GREEN_ARROW: 'https://cdn.tap.company/dashboard/icons/menu/green_arrow_next.svg',
66
+ REQUEST_EMAIL: 'https://cdn.tap.company/dashboard/icons/menu/request_email.svg',
67
+ REQUEST_EMAIL_GREEN: 'https://cdn.tap.company/dashboard/icons/menu/request_email_green.svg',
68
+ ADD_DETAIL: 'https://cdn.tap.company/dashboard/icons/menu/add_detail.svg',
69
+ ADD_DETAIL_GREEN: 'https://cdn.tap.company/dashboard/icons/menu/add_detail_green.svg',
70
+ SUCCESS: 'https://cdn.tap.company/dashboard/icons/menu/image.png',
71
+ UNFINISHED: 'https://cdn.tap.company/dashboard/icons/menu/not-finished.png',
72
+ ABSHER_LOGO: 'https://cdn.tap.company/dashboard/icons/menu/Absher.svg',
73
+ EMAIL_ICON: 'https://cdn.tap.company/dashboard/icons/menu/email.png',
74
+ MOBILE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/mobile.svg',
75
+ SEARCH_ICON: 'https://cdn.tap.company/dashboard/icons/menu/search-icon.svg',
76
+ SUCCESS_GIF: 'https://cdn.tap.company/dashboard/icons/menu/success_icon.gif',
77
+ DELETE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/delete-icon.png',
78
+ UPLOAD_ICON: 'https://cdn.tap.company/dashboard/icons/menu/upload-file.svg',
79
+ ACTIVE_UPLOAD_ICON: 'https://cdn.tap.company/dashboard/icons/menu/active-upload-icon.png',
80
+ WARNING_ICON: 'https://cdn.tap.company/dashboard/icons/menu/warning-icon.svg',
81
+ ERROR_ICON: 'https://cdn.tap.company/dashboard/icons/menu/upload_error_icon.svg',
82
+ DONE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/done.svg',
83
+ DOC_ICON: 'https://cdn.tap.company/dashboard/icons/menu/document-icon.svg',
84
+ DROP_FILE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/upload-file-sample.svg',
85
+ CLOSE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/close-btn.svg',
86
+ PACI_ICON: 'https://cdn.tap.company/dashboard/icons/menu/PACI-filled.svg',
87
+ SIGNED_UP_SUCCESS: 'https://cdn.tap.company/dashboard/icons/menu/signed_up_success.svg',
88
+ SWITCH_HIJRI_CALENDER: 'https://cdn.tap.company/dashboard/icons/menu/switch_hijri_calender.svg',
89
+ SWITCH_CALENDER: 'https://cdn.tap.company/dashboard/icons/menu/calender_icon.svg',
90
+ GMAIL_Filled_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Gmail-filled.svg',
91
+ GMAIL_White_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Gmail-white.svg',
92
+ outlook_Filled_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Outlook-filled.svg',
93
+ outlook_White_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Outlook-white.svg',
94
+ Apple_Filled_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Apple-mail-filled.svg',
95
+ apple_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/Apple-mail-white.svg',
96
+ Mail_Filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/Mail-filled.svg',
97
+ Mail_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/Mail-white.svg',
98
+ tax_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/tax-filled-blue.svg',
99
+ tax_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/tax-filled-green.svg',
100
+ tax_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/tax-white.svg',
101
+ bank_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/bank-filled-blue.svg',
102
+ bank_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/bank-filled-green.svg',
103
+ bank_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/bank-white.svg',
104
+ individual_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/user-filled-blue.svg',
105
+ individual_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/user-filled-green.svg',
106
+ individual_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/user-white.svg',
107
+ password_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/password-filled-blue.svg',
108
+ password_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/password-filled-green.svg',
109
+ password_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/password-white.svg',
110
+ business_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-filled-blue.svg',
111
+ business_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-filled-green.svg',
112
+ business_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-white.svg',
113
+ entity_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-filled-blue.svg',
114
+ entity_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-filled-green.svg',
115
+ entity_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-white.svg',
116
+ brand_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/brand-icon.svg',
117
+ terminal_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/terminal-filled-blue.svg',
118
+ terminal_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/terminal-filled-green.svg',
119
+ terminal_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/terminal-white.svg',
120
+ Arrow_filled_right_icon: 'https://cdn.tap.company/dashboard/icons/menu/right-arrow-filled-blue.svg',
121
+ Arrow_green_right_icon: 'https://cdn.tap.company/dashboard/icons/menu/right-arrow-filled-green.svg',
122
+ Arrow_white_right_icon: 'https://cdn.tap.company/dashboard/icons/menu/right-arrow-white.svg',
123
+ account_not_found: 'https://cdn.tap.company/tap-connect/imgs/account_not_found.svg',
124
+ email_icon: 'https://cdn.tap.company/tap-connect/imgs/email_outlined.svg',
125
+ terminal_device: 'https://cdn.tap.company/tap-assets/icons/connect/light/terminal_device.svg',
126
+ device_image: 'https://cdn.tap.company/tap-assets/icons/connect/light/device_default.svg',
127
+ platform_image: 'https://cdn.tap.company/tap-assets/icons/connect/light/platform_default.svg',
128
+ radio_checked: 'https://cdn.tap.company/tap-assets/icons/connect/light/radio_checked.svg'
125
129
  };
@@ -1,3 +1,10 @@
1
+ import { ASSETS_DASHBOARD_FULL_PATH, BACKEND_ICONS_FULL_PATH, PNG_ICON_EXTENSION, SVG_ICON_EXTENSION } from './assets';
2
+ var getCountryLogoSVGPath = function (country) {
3
+ return "".concat(ASSETS_DASHBOARD_FULL_PATH, "/country/").concat(country).concat(SVG_ICON_EXTENSION);
4
+ };
5
+ var getCountryLogoPNGPath = function (country) {
6
+ return "".concat(BACKEND_ICONS_FULL_PATH, "/country/png/").concat(country).concat(PNG_ICON_EXTENSION);
7
+ };
1
8
  export var OTHER_BRAND = {
2
9
  id: 'other',
3
10
  code: 'other',
@@ -358,7 +365,7 @@ export var defaultCountry = {
358
365
  capital: 'Riyadh',
359
366
  geoNameId: '102358',
360
367
  idd_prefix: 966,
361
- logo: 'https://back-end.b-cdn.net/country/png/SA.png',
368
+ logo: getCountryLogoPNGPath('SA'),
362
369
  digits: 10,
363
370
  supported_by_tap: true,
364
371
  min_digits: 10,
@@ -608,7 +615,7 @@ export var BUSINESS_COUNTRIES = [
608
615
  iso2: 'SA',
609
616
  iso3: 'SAU',
610
617
  idd_prefix: '966',
611
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/SA.svg',
618
+ logo: getCountryLogoSVGPath('SA'),
612
619
  min_digits: 10,
613
620
  max_digits: 10
614
621
  }
@@ -623,7 +630,7 @@ export var BUSINESS_COUNTRIES = [
623
630
  iso2: 'BH',
624
631
  iso3: 'BHR',
625
632
  idd_prefix: '973',
626
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/BH.svg',
633
+ logo: getCountryLogoSVGPath('BH'),
627
634
  min_digits: 8,
628
635
  max_digits: 8
629
636
  }
@@ -638,7 +645,7 @@ export var BUSINESS_COUNTRIES = [
638
645
  iso2: 'EG',
639
646
  iso3: 'EGY',
640
647
  idd_prefix: '20',
641
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/EG.svg',
648
+ logo: getCountryLogoSVGPath('EG'),
642
649
  min_digits: 10,
643
650
  max_digits: 10
644
651
  }
@@ -653,7 +660,7 @@ export var BUSINESS_COUNTRIES = [
653
660
  iso2: 'JO',
654
661
  iso3: 'JOR',
655
662
  idd_prefix: '962',
656
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/JO.svg',
663
+ logo: getCountryLogoSVGPath('JO'),
657
664
  min_digits: 9,
658
665
  max_digits: 9
659
666
  }
@@ -668,7 +675,7 @@ export var BUSINESS_COUNTRIES = [
668
675
  iso2: 'KW',
669
676
  iso3: 'KWT',
670
677
  idd_prefix: '965',
671
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/KW.svg',
678
+ logo: getCountryLogoSVGPath('KW'),
672
679
  min_digits: 8,
673
680
  max_digits: 8
674
681
  }
@@ -683,7 +690,7 @@ export var BUSINESS_COUNTRIES = [
683
690
  iso2: 'LB',
684
691
  iso3: 'LBN',
685
692
  idd_prefix: '961',
686
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/LB.svg',
693
+ logo: getCountryLogoSVGPath('LB'),
687
694
  min_digits: 7,
688
695
  max_digits: 8
689
696
  }
@@ -698,7 +705,7 @@ export var BUSINESS_COUNTRIES = [
698
705
  iso2: 'OM',
699
706
  iso3: 'OMN',
700
707
  idd_prefix: '968',
701
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/OM.svg',
708
+ logo: getCountryLogoSVGPath('OM'),
702
709
  min_digits: 7,
703
710
  max_digits: 8
704
711
  }
@@ -713,7 +720,7 @@ export var BUSINESS_COUNTRIES = [
713
720
  iso2: 'QA',
714
721
  iso3: 'QAT',
715
722
  idd_prefix: '974',
716
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/QA.svg',
723
+ logo: getCountryLogoSVGPath('QA'),
717
724
  min_digits: 8,
718
725
  max_digits: 8
719
726
  }
@@ -728,7 +735,7 @@ export var BUSINESS_COUNTRIES = [
728
735
  iso2: 'AE',
729
736
  iso3: 'ARE',
730
737
  idd_prefix: '971',
731
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/AE.svg',
738
+ logo: getCountryLogoSVGPath('AE'),
732
739
  min_digits: 9,
733
740
  max_digits: 9
734
741
  }
@@ -750,7 +757,7 @@ export var BUSINESS_COUNTRIES = [
750
757
  iso2: 'GB',
751
758
  iso3: 'GBR',
752
759
  idd_prefix: '44',
753
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/GB.svg',
760
+ logo: getCountryLogoSVGPath('GB'),
754
761
  min_digits: 10,
755
762
  max_digits: 10
756
763
  }
@@ -765,7 +772,7 @@ export var BUSINESS_COUNTRIES = [
765
772
  iso2: 'IE',
766
773
  iso3: 'IRL',
767
774
  idd_prefix: '353',
768
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/IE.svg',
775
+ logo: getCountryLogoSVGPath('IE'),
769
776
  min_digits: 10,
770
777
  max_digits: 10
771
778
  }
@@ -780,7 +787,7 @@ export var BUSINESS_COUNTRIES = [
780
787
  iso2: 'FR',
781
788
  iso3: 'FRA',
782
789
  idd_prefix: '33',
783
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/FR.svg',
790
+ logo: getCountryLogoSVGPath('FR'),
784
791
  min_digits: 9,
785
792
  max_digits: 9
786
793
  }
@@ -795,7 +802,7 @@ export var BUSINESS_COUNTRIES = [
795
802
  iso2: 'NL',
796
803
  iso3: 'NLD',
797
804
  idd_prefix: '31',
798
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/NL.svg',
805
+ logo: getCountryLogoSVGPath('NL'),
799
806
  min_digits: 9,
800
807
  max_digits: 9
801
808
  }
@@ -810,7 +817,7 @@ export var BUSINESS_COUNTRIES = [
810
817
  iso2: 'DE',
811
818
  iso3: 'DEU',
812
819
  idd_prefix: '49',
813
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/DE.svg',
820
+ logo: getCountryLogoSVGPath('DE'),
814
821
  min_digits: 11,
815
822
  max_digits: 11
816
823
  }
@@ -825,7 +832,7 @@ export var BUSINESS_COUNTRIES = [
825
832
  iso2: 'ES',
826
833
  iso3: 'ESP',
827
834
  idd_prefix: '34',
828
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/ES.svg',
835
+ logo: getCountryLogoSVGPath('ES'),
829
836
  min_digits: 9,
830
837
  max_digits: 9
831
838
  }
@@ -840,7 +847,7 @@ export var BUSINESS_COUNTRIES = [
840
847
  iso2: 'IT',
841
848
  iso3: 'ITA',
842
849
  idd_prefix: '39',
843
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/IT.svg',
850
+ logo: getCountryLogoSVGPath('IT'),
844
851
  min_digits: 11,
845
852
  max_digits: 11
846
853
  }
@@ -862,7 +869,7 @@ export var BUSINESS_COUNTRIES = [
862
869
  iso2: 'PK',
863
870
  iso3: 'PAK',
864
871
  idd_prefix: '92',
865
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/PK.svg',
872
+ logo: getCountryLogoSVGPath('PK'),
866
873
  min_digits: 10,
867
874
  max_digits: 10
868
875
  }
@@ -877,7 +884,7 @@ export var BUSINESS_COUNTRIES = [
877
884
  iso2: 'IN',
878
885
  iso3: 'IND',
879
886
  idd_prefix: '91',
880
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/IN.svg',
887
+ logo: getCountryLogoSVGPath('IN'),
881
888
  min_digits: 10,
882
889
  max_digits: 10
883
890
  }
@@ -899,7 +906,7 @@ export var BUSINESS_COUNTRIES = [
899
906
  iso2: 'SG',
900
907
  iso3: 'SGP',
901
908
  idd_prefix: '65',
902
- logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/SG.svg',
909
+ logo: getCountryLogoSVGPath('SG'),
903
910
  min_digits: 8,
904
911
  max_digits: 8
905
912
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.10.10-development",
3
+ "version": "2.10.11-development",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",