@tap-payments/auth-jsconnect 2.10.0-development → 2.10.0-sandbox

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 (120) hide show
  1. package/build/@types/index.d.ts +0 -1
  2. package/build/@types/index.js +0 -1
  3. package/build/api/auth.d.ts +1 -9
  4. package/build/api/index.d.ts +1 -8
  5. package/build/api/index.js +1 -3
  6. package/build/app/rootReducer.d.ts +0 -1
  7. package/build/app/rootReducer.js +1 -3
  8. package/build/app/store.d.ts +0 -2
  9. package/build/components/Tooltip/Tooltip.js +1 -1
  10. package/build/constants/app.d.ts +2 -11
  11. package/build/constants/app.js +1 -109
  12. package/build/constants/assets.d.ts +0 -4
  13. package/build/constants/assets.js +1 -5
  14. package/build/constants/flows.d.ts +0 -14
  15. package/build/constants/flows.js +0 -14
  16. package/build/constants/validation.d.ts +0 -1
  17. package/build/constants/validation.js +0 -1
  18. package/build/features/app/tax/taxStore.js +1 -1
  19. package/build/features/featuresScreens.d.ts +0 -1
  20. package/build/features/featuresScreens.js +0 -62
  21. package/build/features/shared/Button/Button.js +1 -1
  22. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -3
  23. package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
  24. package/build/hooks/useAppDispatch.d.ts +0 -1
  25. package/build/index.d.ts +2 -3
  26. package/build/index.js +2 -4
  27. package/build/theme/palette.js +0 -12
  28. package/build/theme/typography.js +0 -4
  29. package/build/utils/common.js +3 -3
  30. package/package.json +2 -2
  31. package/build/@types/terminal.d.ts +0 -116
  32. package/build/@types/terminal.js +0 -1
  33. package/build/api/terminal.d.ts +0 -23
  34. package/build/api/terminal.js +0 -60
  35. package/build/components/DeviceCard/DeviceCard.d.ts +0 -18
  36. package/build/components/DeviceCard/DeviceCard.js +0 -103
  37. package/build/components/DeviceCard/index.d.ts +0 -3
  38. package/build/components/DeviceCard/index.js +0 -2
  39. package/build/features/app/terminal/terminalStore.d.ts +0 -106
  40. package/build/features/app/terminal/terminalStore.js +0 -635
  41. package/build/features/shared/PushNotification/PushNotification.d.ts +0 -11
  42. package/build/features/shared/PushNotification/PushNotification.js +0 -34
  43. package/build/features/shared/PushNotification/index.d.ts +0 -2
  44. package/build/features/shared/PushNotification/index.js +0 -2
  45. package/build/features/terminal/Terminal.d.ts +0 -14
  46. package/build/features/terminal/Terminal.js +0 -95
  47. package/build/features/terminal/index.d.ts +0 -1
  48. package/build/features/terminal/index.js +0 -1
  49. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +0 -3
  50. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +0 -68
  51. package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +0 -2
  52. package/build/features/terminal/screens/LinkNewTerminal/index.js +0 -2
  53. package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +0 -10
  54. package/build/features/terminal/screens/LinkNewTerminal/styles.js +0 -28
  55. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +0 -3
  56. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +0 -50
  57. package/build/features/terminal/screens/LinkedSuccess/index.d.ts +0 -2
  58. package/build/features/terminal/screens/LinkedSuccess/index.js +0 -2
  59. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +0 -3
  60. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +0 -50
  61. package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +0 -2
  62. package/build/features/terminal/screens/LinkedTerminalInfo/index.js +0 -2
  63. package/build/features/terminal/screens/Loading/Loading.d.ts +0 -4
  64. package/build/features/terminal/screens/Loading/Loading.js +0 -10
  65. package/build/features/terminal/screens/Loading/index.d.ts +0 -2
  66. package/build/features/terminal/screens/Loading/index.js +0 -2
  67. package/build/features/terminal/screens/NoTerminalLinked/NoTerminalLinked.d.ts +0 -3
  68. package/build/features/terminal/screens/NoTerminalLinked/NoTerminalLinked.js +0 -57
  69. package/build/features/terminal/screens/NoTerminalLinked/index.d.ts +0 -2
  70. package/build/features/terminal/screens/NoTerminalLinked/index.js +0 -2
  71. package/build/features/terminal/screens/NoTerminalLinked/styles.d.ts +0 -36
  72. package/build/features/terminal/screens/NoTerminalLinked/styles.js +0 -34
  73. package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +0 -5
  74. package/build/features/terminal/screens/OperatorError/OperatorError.js +0 -9
  75. package/build/features/terminal/screens/OperatorError/index.d.ts +0 -2
  76. package/build/features/terminal/screens/OperatorError/index.js +0 -2
  77. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -3
  78. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
  79. package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +0 -2
  80. package/build/features/terminal/screens/ResetPasswordSuccess/index.js +0 -2
  81. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
  82. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -31
  83. package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +0 -2
  84. package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +0 -2
  85. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +0 -9
  86. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +0 -20
  87. package/build/features/terminal/screens/TerminalDeviceList/Header.d.ts +0 -6
  88. package/build/features/terminal/screens/TerminalDeviceList/Header.js +0 -23
  89. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +0 -3
  90. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +0 -129
  91. package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +0 -2
  92. package/build/features/terminal/screens/TerminalDeviceList/index.js +0 -2
  93. package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +0 -71
  94. package/build/features/terminal/screens/TerminalDeviceList/styles.js +0 -56
  95. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +0 -3
  96. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +0 -52
  97. package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +0 -2
  98. package/build/features/terminal/screens/UnlinkedSuccess/index.js +0 -2
  99. package/build/features/terminal/screens/UnlinkedTerminalInfo/TerminalList.d.ts +0 -9
  100. package/build/features/terminal/screens/UnlinkedTerminalInfo/TerminalList.js +0 -16
  101. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +0 -3
  102. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +0 -94
  103. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +0 -2
  104. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +0 -2
  105. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +0 -74
  106. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +0 -98
  107. package/build/features/terminal/screens/Verify/OTPInput.d.ts +0 -7
  108. package/build/features/terminal/screens/Verify/OTPInput.js +0 -51
  109. package/build/features/terminal/screens/Verify/Verify.d.ts +0 -5
  110. package/build/features/terminal/screens/Verify/Verify.js +0 -85
  111. package/build/features/terminal/screens/Verify/index.d.ts +0 -2
  112. package/build/features/terminal/screens/Verify/index.js +0 -2
  113. package/build/features/terminal/screens/Verify/validation.d.ts +0 -8
  114. package/build/features/terminal/screens/Verify/validation.js +0 -4
  115. package/build/features/terminal/screens/shared/index.d.ts +0 -2
  116. package/build/features/terminal/screens/shared/index.js +0 -2
  117. package/build/features/terminal/screens/shared/styles.d.ts +0 -72
  118. package/build/features/terminal/screens/shared/styles.js +0 -50
  119. package/build/features/terminal/screens/shared/utils.d.ts +0 -7
  120. package/build/features/terminal/screens/shared/utils.js +0 -24
@@ -4,4 +4,3 @@ export * from './app';
4
4
  export * from './form';
5
5
  export * from './user';
6
6
  export * from './config';
7
- export * from './terminal';
@@ -4,4 +4,3 @@ export * from './app';
4
4
  export * from './form';
5
5
  export * from './user';
6
6
  export * from './config';
7
- export * from './terminal';
@@ -17,18 +17,10 @@ export declare type CivilID = {
17
17
  identification_id: string;
18
18
  country_code: string;
19
19
  };
20
- export declare type TerminalCredential = {
21
- terminal: {
22
- id: string;
23
- terminal_device: {
24
- id: string;
25
- };
26
- };
27
- };
28
20
  export declare type CreateAuthBody = {
29
21
  country: string;
30
22
  scope: string;
31
- user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID | TerminalCredential;
23
+ user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID;
32
24
  auth_type?: number;
33
25
  email_url?: string;
34
26
  sign_in?: boolean;
@@ -13,7 +13,6 @@ import { RemoveBrandActivity } from './brand';
13
13
  import { UploadFileBody } from './file';
14
14
  import { DocumentUpdateBody, DocumentInfo, DocumentBody } from './document';
15
15
  import { InitBody } from './init';
16
- import { GenerateAuthLinkNewTerminalProps, UnlinkTerminalDeviceProps, LinkTerminalDeviceProps } from './terminal';
17
16
  declare const API: {
18
17
  locationService: {
19
18
  getIP: () => Promise<any>;
@@ -165,13 +164,7 @@ declare const API: {
165
164
  initService: {
166
165
  getInitialData: (body: InitBody) => Promise<any>;
167
166
  };
168
- terminalService: {
169
- retrieveTerminalDeviceList: (merchants: string[]) => Promise<any>;
170
- generateAuthenticationToLinkNewTerminal: (payload: GenerateAuthLinkNewTerminalProps) => Promise<any>;
171
- unlinkTerminalDevice: (payload: UnlinkTerminalDeviceProps) => Promise<any>;
172
- retrieveTerminalList: (merchantIds: string[]) => Promise<any>;
173
- };
174
167
  };
175
- export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody, GetUserListSegmentBody, CreateKYCAuthBody, GenerateAuthLinkNewTerminalProps, UnlinkTerminalDeviceProps, LinkTerminalDeviceProps };
168
+ export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody, GetUserListSegmentBody, CreateKYCAuthBody };
176
169
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
177
170
  export default API;
@@ -16,7 +16,6 @@ import { brandService } from './brand';
16
16
  import { fileService } from './file';
17
17
  import { documentService } from './document';
18
18
  import { initService } from './init';
19
- import { terminalService } from './terminal';
20
19
  var API = {
21
20
  locationService: locationService,
22
21
  operatorService: operatorService,
@@ -34,8 +33,7 @@ var API = {
34
33
  brandService: brandService,
35
34
  fileService: fileService,
36
35
  documentService: documentService,
37
- initService: initService,
38
- terminalService: terminalService
36
+ initService: initService
39
37
  };
40
38
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
41
39
  export default API;
@@ -13,6 +13,5 @@ declare const rootReducer: {
13
13
  auth: import("redux").Reducer<import("../features/app/auth/authStore").AuthState, import("redux").AnyAction>;
14
14
  board: import("redux").Reducer<import("../features/app/board/boardStore").BoardState, import("redux").AnyAction>;
15
15
  kyc: import("redux").Reducer<import("../features/app/kyc/kycStore").KYCDataState, import("redux").AnyAction>;
16
- terminal: import("redux").Reducer<import("../features/app/terminal/terminalStore").TerminalDataState, import("redux").AnyAction>;
17
16
  };
18
17
  export default rootReducer;
@@ -12,7 +12,6 @@ import connectExpress from '../features/app/connectExpress/connectExpressStore';
12
12
  import board from '../features/app/board/boardStore';
13
13
  import auth from '../features/app/auth/authStore';
14
14
  import kyc from '../features/app/kyc/kycStore';
15
- import terminal from '../features/app/terminal/terminalStore';
16
15
  var rootReducer = {
17
16
  settings: settings,
18
17
  connect: connect,
@@ -27,7 +26,6 @@ var rootReducer = {
27
26
  connectExpress: connectExpress,
28
27
  auth: auth,
29
28
  board: board,
30
- kyc: kyc,
31
- terminal: terminal
29
+ kyc: kyc
32
30
  };
33
31
  export default rootReducer;
@@ -14,7 +14,6 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
14
14
  auth: import("../features/app/auth/authStore").AuthState;
15
15
  board: import("../features/app/board/boardStore").BoardState;
16
16
  kyc: import("../features/app/kyc/kycStore").KYCDataState;
17
- terminal: import("../features/app/terminal/terminalStore").TerminalDataState;
18
17
  }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
19
18
  settings: import("./settings").SettingsState;
20
19
  connect: import("../features/app/connect/connectStore").ConnectState;
@@ -30,7 +29,6 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
30
29
  auth: import("../features/app/auth/authStore").AuthState;
31
30
  board: import("../features/app/board/boardStore").BoardState;
32
31
  kyc: import("../features/app/kyc/kycStore").KYCDataState;
33
- terminal: import("../features/app/terminal/terminalStore").TerminalDataState;
34
32
  }, import("redux").AnyAction, undefined>]>>;
35
33
  export declare type AppDispatch = typeof store.dispatch;
36
34
  export declare type RootState = ReturnType<typeof store.getState>;
@@ -33,7 +33,7 @@ var StyledTooltip = styled(function (_a) {
33
33
  var _b;
34
34
  var theme = _a.theme;
35
35
  return (_b = {},
36
- _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
36
+ _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)), zIndex: 2147483647 }),
37
37
  _b);
38
38
  });
39
39
  var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
@@ -1,5 +1,6 @@
1
- import { ScreenStepNavigation, BusinessType, TerminalInfo, TerminalDeviceInfo } from '../@types';
1
+ import { ScreenStepNavigation, BusinessType } from '../@types';
2
2
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
+ export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
3
4
  export declare const CONNECT_PROD_URL = "https://connect.tap.company";
4
5
  export declare const CLIENT_ORIGIN: string;
5
6
  export declare const TAP_WEBSITE = "https://www.tap.company/";
@@ -13,7 +14,6 @@ export declare const SCOPE_MERCHANT = "merchant";
13
14
  export declare const DEFAULT_COUNTRY_ISO2 = "KW";
14
15
  export declare const NAFATH_VERIFICATION_FAILED = "nafath_verification_failed";
15
16
  export declare const COLLECT_DOB_INFO_NAFATH = "collect_date_of_birth";
16
- export declare const TERMINAL_PUSH_NOTIFICATION_FAILED = "terminal_push_notification_link_new_terminal_failed";
17
17
  export declare const LANGUAGE_ABBREVIATIONS: {
18
18
  ENGLISH: string;
19
19
  ARABIC: string;
@@ -43,7 +43,6 @@ export declare const TAX_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
43
43
  export declare const SigIn_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
44
44
  export declare const ENTITY_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
45
45
  export declare const BRAND_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
46
- export declare const TERMINAL_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
47
46
  export declare const DefaultDeviceInfo: {
48
47
  source: string;
49
48
  device: {
@@ -215,12 +214,6 @@ export declare const KYC_STEP_NAMES: {
215
214
  KYC_VERIFY_NAFATH: string;
216
215
  KYC_COMPLETED: string;
217
216
  };
218
- export declare const TERMINAL_STEP_NAMES: {
219
- PHONE_AUTH: string;
220
- INFO: string;
221
- SUCCESS: string;
222
- CREATE_AUTH: string;
223
- };
224
217
  export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
225
218
  export declare const ENCRYPTION_FLAG = "encryption_contract";
226
219
  export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
@@ -315,6 +308,4 @@ interface CountryToCurrencyMapping {
315
308
  [countryCode: string]: string;
316
309
  }
317
310
  export declare const COUNTRY_TO_CURRENCY: CountryToCurrencyMapping;
318
- export declare const SELECTED_TERMINAL_DEVICE_DEFAULT_INFO: TerminalDeviceInfo;
319
- export declare const SELECTED_TERMINAL_DEFAULT_INFO: TerminalInfo;
320
311
  export {};
@@ -1,6 +1,7 @@
1
1
  import { BusinessType } from '../@types';
2
2
  import { CONNECT_FLOWS } from './flows';
3
3
  export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
4
+ export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
4
5
  export var CONNECT_PROD_URL = 'https://connect.tap.company';
5
6
  export var CLIENT_ORIGIN = window.location.origin;
6
7
  export var TAP_WEBSITE = 'https://www.tap.company/';
@@ -14,7 +15,6 @@ export var SCOPE_MERCHANT = 'merchant';
14
15
  export var DEFAULT_COUNTRY_ISO2 = 'KW';
15
16
  export var NAFATH_VERIFICATION_FAILED = 'nafath_verification_failed';
16
17
  export var COLLECT_DOB_INFO_NAFATH = 'collect_date_of_birth';
17
- export var TERMINAL_PUSH_NOTIFICATION_FAILED = 'terminal_push_notification_link_new_terminal_failed';
18
18
  export var LANGUAGE_ABBREVIATIONS = {
19
19
  ENGLISH: 'en',
20
20
  ARABIC: 'ar'
@@ -972,80 +972,6 @@ export var BRAND_SCREENS_NAVIGATION = [
972
972
  order: 6
973
973
  }
974
974
  ];
975
- export var TERMINAL_SCREENS_NAVIGATION = [
976
- {
977
- name: CONNECT_FLOWS.terminal.verify,
978
- next: [CONNECT_FLOWS.terminal.terminalList, CONNECT_FLOWS.terminal.noTerminalLinked],
979
- prev: CONNECT_FLOWS.terminal.board,
980
- order: 1
981
- },
982
- {
983
- name: CONNECT_FLOWS.terminal.loadingData,
984
- next: CONNECT_FLOWS.terminal.terminalList,
985
- prev: '',
986
- order: 1
987
- },
988
- {
989
- name: CONNECT_FLOWS.terminal.operatorError,
990
- next: '',
991
- prev: '',
992
- order: 1
993
- },
994
- {
995
- name: CONNECT_FLOWS.terminal.noTerminalLinked,
996
- next: CONNECT_FLOWS.terminal.terminalLinkNew,
997
- prev: CONNECT_FLOWS.terminal.board,
998
- order: 2
999
- },
1000
- {
1001
- name: CONNECT_FLOWS.terminal.terminalList,
1002
- next: [CONNECT_FLOWS.terminal.terminalLinkNew, CONNECT_FLOWS.terminal.linkedTerminalInfo, CONNECT_FLOWS.terminal.unlinkedTerminalInfo],
1003
- prev: CONNECT_FLOWS.terminal.board,
1004
- order: 2
1005
- },
1006
- {
1007
- name: CONNECT_FLOWS.terminal.terminalLinkNew,
1008
- next: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1009
- prev: [CONNECT_FLOWS.terminal.noTerminalLinked, CONNECT_FLOWS.terminal.terminalList],
1010
- order: 3
1011
- },
1012
- {
1013
- name: CONNECT_FLOWS.terminal.linkedTerminalInfo,
1014
- next: CONNECT_FLOWS.terminal.terminalUnlinkedSuccess,
1015
- prev: CONNECT_FLOWS.terminal.terminalList,
1016
- order: 3
1017
- },
1018
- {
1019
- name: CONNECT_FLOWS.terminal.unlinkedTerminalInfo,
1020
- next: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1021
- prev: CONNECT_FLOWS.terminal.terminalList,
1022
- order: 3
1023
- },
1024
- {
1025
- name: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1026
- next: CONNECT_FLOWS.terminal.board,
1027
- prev: [CONNECT_FLOWS.terminal.terminalLinkNew, CONNECT_FLOWS.terminal.unlinkedTerminalInfo],
1028
- order: 4
1029
- },
1030
- {
1031
- name: CONNECT_FLOWS.terminal.terminalUnlinkedSuccess,
1032
- next: CONNECT_FLOWS.terminal.board,
1033
- prev: CONNECT_FLOWS.terminal.linkedTerminalInfo,
1034
- order: 4
1035
- },
1036
- {
1037
- name: CONNECT_FLOWS.terminal.board,
1038
- next: CONNECT_FLOWS.terminal.resetPassword,
1039
- prev: '',
1040
- order: 5
1041
- },
1042
- {
1043
- name: CONNECT_FLOWS.terminal.resetPassword,
1044
- next: CONNECT_FLOWS.terminal.board,
1045
- prev: '',
1046
- order: 6
1047
- }
1048
- ];
1049
975
  export var DefaultDeviceInfo = {
1050
976
  source: 'browser',
1051
977
  device: {
@@ -1217,12 +1143,6 @@ export var KYC_STEP_NAMES = {
1217
1143
  KYC_VERIFY_NAFATH: 'kyc_verify_nafath',
1218
1144
  KYC_COMPLETED: 'kyc_completed'
1219
1145
  };
1220
- export var TERMINAL_STEP_NAMES = {
1221
- PHONE_AUTH: 'terminal_phone_auth',
1222
- INFO: 'terminal_info',
1223
- SUCCESS: 'terminal_completed',
1224
- CREATE_AUTH: 'connect_create_auth_terminal'
1225
- };
1226
1146
  export var RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
1227
1147
  export var ENCRYPTION_FLAG = 'encryption_contract';
1228
1148
  export var BACKEND_ENCRYPTION_FLAG = 'backend_encryption_contract';
@@ -1327,31 +1247,3 @@ export var COUNTRY_TO_CURRENCY = {
1327
1247
  HK: 'HKD',
1328
1248
  SG: 'SGD'
1329
1249
  };
1330
- export var SELECTED_TERMINAL_DEVICE_DEFAULT_INFO = {
1331
- id: '',
1332
- status: '',
1333
- live_mode: false,
1334
- linked: false,
1335
- serial_number: '',
1336
- display_name: '',
1337
- model: {
1338
- live_mode: false,
1339
- status: '',
1340
- id: '',
1341
- name: [],
1342
- image: '',
1343
- image_url: '',
1344
- model: '',
1345
- type: ''
1346
- }
1347
- };
1348
- export var SELECTED_TERMINAL_DEFAULT_INFO = {
1349
- id: '',
1350
- legacy_id: '',
1351
- merchant: {
1352
- id: ''
1353
- },
1354
- name: {
1355
- en: ''
1356
- }
1357
- };
@@ -112,8 +112,4 @@ export declare const ICONS_NAMES: {
112
112
  Arrow_white_right_icon: string;
113
113
  account_not_found: string;
114
114
  email_icon: string;
115
- terminal_device: string;
116
- device_image: string;
117
- platform_image: string;
118
- radio_checked: string;
119
115
  };
@@ -114,9 +114,5 @@ export var ICONS_NAMES = {
114
114
  Arrow_green_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-filled-green.svg',
115
115
  Arrow_white_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-white.svg',
116
116
  account_not_found: 'https://tap-connecet.b-cdn.net/imgs/account_not_found.svg',
117
- email_icon: 'https://tap-connecet.b-cdn.net/imgs/email_outlined.svg',
118
- terminal_device: 'https://tap-assets.b-cdn.net/icons/connect/light/terminal_device.svg',
119
- device_image: 'https://tap-assets.b-cdn.net/icons/connect/light/device_default.svg',
120
- platform_image: 'https://tap-assets.b-cdn.net/icons/connect/light/platform_default.svg',
121
- radio_checked: 'https://tap-assets.b-cdn.net/icons/connect/light/radio_checked.svg'
117
+ email_icon: 'https://tap-connecet.b-cdn.net/imgs/email_outlined.svg'
122
118
  };
@@ -23,18 +23,4 @@ export declare const CONNECT_FLOWS: {
23
23
  verifyNafath: KYC_FLOWS;
24
24
  success: KYC_FLOWS;
25
25
  };
26
- terminal: {
27
- loadingData: string;
28
- operatorError: string;
29
- verify: string;
30
- noTerminalLinked: string;
31
- terminalList: string;
32
- terminalLinkNew: string;
33
- linkedTerminalInfo: string;
34
- unlinkedTerminalInfo: string;
35
- terminalLinkedSuccess: string;
36
- terminalUnlinkedSuccess: string;
37
- board: string;
38
- resetPassword: string;
39
- };
40
26
  };
@@ -23,19 +23,5 @@ export var CONNECT_FLOWS = {
23
23
  verifyPACI: KYC_FLOWS.verifyPACI,
24
24
  verifyNafath: KYC_FLOWS.verifyNafath,
25
25
  success: KYC_FLOWS.success
26
- },
27
- terminal: {
28
- loadingData: 'TERMINAL_LOADING_DATA_STEP',
29
- operatorError: 'TERMINAL_OPERATOR_ERROR_STEP',
30
- verify: 'TERMINAL_VERIFY_OTP_STEP',
31
- noTerminalLinked: 'TERMINAL_NO_TERMINAL_LINKED',
32
- terminalList: 'TERMINAL_LIST_STEP',
33
- terminalLinkNew: 'TERMINAL_LINK_NEW_STEP',
34
- linkedTerminalInfo: 'TERMINAL_LINKED_INFO_STEP',
35
- unlinkedTerminalInfo: 'TERMINAL_UNLINKED_INFO_STEP',
36
- terminalLinkedSuccess: 'TERMINAL_LINKED_SUCCESS_STEP',
37
- terminalUnlinkedSuccess: 'TERMINAL_UNLINKED_SUCCESS_STEP',
38
- board: 'TERMINAL_BOARD_STEP',
39
- resetPassword: 'TERMINAL_RESET_PASSWORD'
40
26
  }
41
27
  };
@@ -32,4 +32,3 @@ export declare const DIGITS_ONLY: RegExp;
32
32
  export declare const REGEX_PHONE_APP_NAME: RegExp;
33
33
  export declare const REGEX_IBAN: RegExp;
34
34
  export declare const NAFATH_PACI_TIMEOUT_DURATION = 30000;
35
- export declare const TERMINAL_PUSH_NOTIFICATION_DURATION = 10000000;
@@ -32,4 +32,3 @@ export var DIGITS_ONLY = /^\d+$/;
32
32
  export var REGEX_PHONE_APP_NAME = /^[a-zA-Z0-9[._-]*$/;
33
33
  export var REGEX_IBAN = /^[a-zA-Z]{2}[a-zA-Z0-9]{13,34}$/g;
34
34
  export var NAFATH_PACI_TIMEOUT_DURATION = 30000;
35
- export var TERMINAL_PUSH_NOTIFICATION_DURATION = 10000000;
@@ -323,7 +323,7 @@ export var updateLeadSuccess = createAsyncThunk('taxUpdateLeadSuccess', function
323
323
  }
324
324
  });
325
325
  }); });
326
- export var onCloseCompleteTax = createAsyncThunk('tax/onCloseCompleteTax', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
326
+ export var onCloseCompleteTax = createAsyncThunk('password/onCloseCompleteTax', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
327
327
  var tax, _a, merchant, brand, entity;
328
328
  return __generator(this, function (_b) {
329
329
  switch (_b.label) {
@@ -12,4 +12,3 @@ export declare const entityFeatureScreens: Array<FeatureScreenStep>;
12
12
  export declare const brandFeatureScreens: Array<FeatureScreenStep>;
13
13
  export declare const boardFeatureScreens: Array<FeatureScreenStep>;
14
14
  export declare const kycFeatureScreens: Array<FeatureScreenStep>;
15
- export declare const terminalFeatureScreens: Array<FeatureScreenStep>;
@@ -141,18 +141,6 @@ import KycOperatorErrorPage from './kyc/screens/OperatorError';
141
141
  import KycSuccessPage from './kyc/screens/Success';
142
142
  import KycTermsPage from './kyc/screens/Terms';
143
143
  import KycUsersPage from './kyc/screens/Users';
144
- import TerminalLoadingPage from './terminal/screens/Loading';
145
- import TerminalOperatorErrorPage from './terminal/screens/OperatorError';
146
- import TerminalVerifyPage from './terminal/screens/Verify';
147
- import NoTerminalLinkedPage from './terminal/screens/NoTerminalLinked';
148
- import TerminalDeviceListPage from './terminal/screens/TerminalDeviceList';
149
- import LinkNewTerminalPage from './terminal/screens/LinkNewTerminal';
150
- import LinkedTerminalInfoPage from './terminal/screens/LinkedTerminalInfo';
151
- import UnlinkedTerminalInfoPage from './terminal/screens/UnlinkedTerminalInfo';
152
- import LinkedSuccessPage from './terminal/screens/LinkedSuccess';
153
- import UnlinkedSuccessPage from './terminal/screens/UnlinkedSuccess';
154
- import TerminalBoardPage from './terminal/screens/SuccessWithFlowButtons';
155
- import TerminalResetPasswordSuccessPage from './terminal/screens/ResetPasswordSuccess';
156
144
  export var connectFeatureScreens = [
157
145
  {
158
146
  name: 'CONNECT_BUSINESS_COUNTRY_STEP',
@@ -717,53 +705,3 @@ export var kycFeatureScreens = [
717
705
  element: KycSuccessPage
718
706
  }
719
707
  ];
720
- export var terminalFeatureScreens = [
721
- {
722
- name: CONNECT_FLOWS.terminal.loadingData,
723
- element: TerminalLoadingPage
724
- },
725
- {
726
- name: CONNECT_FLOWS.terminal.operatorError,
727
- element: TerminalOperatorErrorPage
728
- },
729
- {
730
- name: CONNECT_FLOWS.terminal.verify,
731
- element: TerminalVerifyPage
732
- },
733
- {
734
- name: CONNECT_FLOWS.terminal.noTerminalLinked,
735
- element: NoTerminalLinkedPage
736
- },
737
- {
738
- name: CONNECT_FLOWS.terminal.terminalList,
739
- element: TerminalDeviceListPage
740
- },
741
- {
742
- name: CONNECT_FLOWS.terminal.terminalLinkNew,
743
- element: LinkNewTerminalPage
744
- },
745
- {
746
- name: CONNECT_FLOWS.terminal.linkedTerminalInfo,
747
- element: LinkedTerminalInfoPage
748
- },
749
- {
750
- name: CONNECT_FLOWS.terminal.unlinkedTerminalInfo,
751
- element: UnlinkedTerminalInfoPage
752
- },
753
- {
754
- name: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
755
- element: LinkedSuccessPage
756
- },
757
- {
758
- name: CONNECT_FLOWS.terminal.terminalUnlinkedSuccess,
759
- element: UnlinkedSuccessPage
760
- },
761
- {
762
- name: CONNECT_FLOWS.terminal.board,
763
- element: TerminalBoardPage
764
- },
765
- {
766
- name: CONNECT_FLOWS.terminal.resetPassword,
767
- element: TerminalResetPasswordSuccessPage
768
- }
769
- ];
@@ -112,5 +112,5 @@ export default function CustomButton(_a) {
112
112
  }, 500);
113
113
  };
114
114
  }, []);
115
- return (_jsxs(Fragment, { children: [_jsx(Collapse, __assign({ in: !!error && !hideError }, { children: _jsx(Warning, __assign({ sx: { mb: 1 }, warningType: 'error' }, { children: error })) })), _jsxs(ButtonBoxStyled, __assign({ sx: sx }, { children: [isBackEnabled && (_jsx(BackButtonStyled, __assign({ isAr: isAr, type: 'reset', startIcon: _jsx(BackIconStyled, { isAr: isAr, src: ICONS_NAMES.WHITE_ARROW }) }, props, { onClick: function () { return onBackClicked === null || onBackClicked === void 0 ? void 0 : onBackClicked(); } }))), _jsx(ButtonStyled, __assign({ disabled: disabled, isLoading: btnLoading, type: !btnLoading ? 'submit' : 'button', isBack: isBackEnabled, endIcon: btnLoading === false ? !disableNextIcon && _jsx(IconStyled, { isAr: isAr, src: ICONS_NAMES.WHITE_ARROW }) : undefined }, props, { children: !btnLoading ? (_jsxs(Text, __assign({ sx: { marginInlineEnd: isBackEnabled ? '-24px' : '-15px' } }, { children: [" ", children] }))) : (_jsx(Loader, { innerColor: 'white', outerColor: 'white', size: 15, toggleAnimation: !!btnLoading })) }))] }))] }));
115
+ return (_jsxs(Fragment, { children: [_jsx(Collapse, __assign({ in: !!error && !hideError }, { children: _jsx(Warning, __assign({ sx: { mb: 1 }, warningType: 'error' }, { children: error })) })), _jsxs(ButtonBoxStyled, __assign({ sx: sx }, { children: [isBackEnabled && (_jsx(BackButtonStyled, __assign({ onClick: function () { return onBackClicked === null || onBackClicked === void 0 ? void 0 : onBackClicked(); }, isAr: isAr, type: 'reset', startIcon: _jsx(BackIconStyled, { isAr: isAr, src: ICONS_NAMES.WHITE_ARROW }) }, props))), _jsx(ButtonStyled, __assign({ disabled: disabled, isLoading: btnLoading, type: !btnLoading ? 'submit' : 'button', isBack: isBackEnabled, endIcon: btnLoading === false ? !disableNextIcon && _jsx(IconStyled, { isAr: isAr, src: ICONS_NAMES.WHITE_ARROW }) : undefined }, props, { children: !btnLoading ? (_jsxs(Text, __assign({ sx: { marginInlineEnd: isBackEnabled ? '-24px' : '-15px' } }, { children: [" ", children] }))) : (_jsx(Loader, { innerColor: 'white', outerColor: 'white', size: 15, toggleAnimation: !!btnLoading })) }))] }))] }));
116
116
  }
@@ -1,4 +1,3 @@
1
- import { SxProps, Theme } from '@mui/material/styles';
2
1
  import * as React from 'react';
3
2
  export interface ThankYouProps {
4
3
  title?: string;
@@ -10,7 +9,6 @@ export interface ThankYouProps {
10
9
  description?: string | React.ReactElement;
11
10
  enableBack?: boolean;
12
11
  onBack?: () => void;
13
- sx?: SxProps<Theme>;
14
12
  }
15
- declare const _default: React.MemoExoticComponent<({ title, description, showEmailProviders, onSuccess, successTitle, loading, error, enableBack, onBack, sx }: ThankYouProps) => JSX.Element>;
13
+ declare const _default: React.MemoExoticComponent<({ title, description, showEmailProviders, onSuccess, successTitle, loading, error, enableBack, onBack }: ThankYouProps) => JSX.Element>;
16
14
  export default _default;
@@ -55,9 +55,9 @@ var IconStyled = styled(Icon)(function (_a) {
55
55
  _b);
56
56
  });
57
57
  var ThankYou = function (_a) {
58
- var title = _a.title, description = _a.description, showEmailProviders = _a.showEmailProviders, onSuccess = _a.onSuccess, successTitle = _a.successTitle, loading = _a.loading, error = _a.error, enableBack = _a.enableBack, onBack = _a.onBack, sx = _a.sx;
58
+ var title = _a.title, description = _a.description, showEmailProviders = _a.showEmailProviders, onSuccess = _a.onSuccess, successTitle = _a.successTitle, loading = _a.loading, error = _a.error, enableBack = _a.enableBack, onBack = _a.onBack;
59
59
  var t = useTranslation().t;
60
60
  var isAr = useLanguage().isAr;
61
- return (_jsxs(ContainerStyled, __assign({ sx: sx }, { children: [_jsx(IconStyled, { src: ICONS_NAMES.SUCCESS_GIF, alt: 'loading...' }), _jsxs(TitleStyled, { children: [title, " "] }), description && _jsx(DescriptionStyled, { children: description }), showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(EmailProvidersButton, { gmail: { title: t('gmail_btn_open_title'), href: 'https://mail.google.com/mail/u/0/#inbox' }, outlook: { title: t('outlook_btn_open_title'), href: 'https://outlook.live.com/mail/0/' }, apple: { title: t('apple_btn_open_title'), href: 'mailto:' }, mail: { title: t('mail_btn_open_title'), href: 'mailto:' } }) })), onSuccess && !showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(SuccessButton, __assign({ onClick: onSuccess, disableBack: true, disableNextIcon: true, disabled: loading, isAr: isAr, loading: loading, error: t(error || '') }, { children: t(successTitle || '') })) })), enableBack && (_jsx(Button, __assign({ sx: { mb: 1.5, mt: 0 }, onClick: function () { return onBack === null || onBack === void 0 ? void 0 : onBack(); }, variant: 'text' }, { children: t('back') })))] })));
61
+ return (_jsxs(ContainerStyled, { children: [_jsx(IconStyled, { src: ICONS_NAMES.SUCCESS_GIF, alt: 'loading...' }), _jsxs(TitleStyled, { children: [title, " "] }), description && _jsx(DescriptionStyled, { children: description }), showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(EmailProvidersButton, { gmail: { title: t('gmail_btn_open_title'), href: 'https://mail.google.com/mail/u/0/#inbox' }, outlook: { title: t('outlook_btn_open_title'), href: 'https://outlook.live.com/mail/0/' }, apple: { title: t('apple_btn_open_title'), href: 'mailto:' }, mail: { title: t('mail_btn_open_title'), href: 'mailto:' } }) })), onSuccess && !showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(SuccessButton, __assign({ onClick: onSuccess, disableBack: true, disableNextIcon: true, disabled: loading, isAr: isAr, loading: loading, error: t(error || '') }, { children: t(successTitle || '') })) })), enableBack && (_jsx(Button, __assign({ sx: { mb: 1.5, mt: 0 }, onClick: function () { return onBack === null || onBack === void 0 ? void 0 : onBack(); }, variant: 'text' }, { children: t('back') })))] }));
62
62
  };
63
63
  export default React.memo(ThankYou);
@@ -13,5 +13,4 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
13
13
  auth: import("../features/app/auth/authStore").AuthState;
14
14
  board: import("../features/app/board/boardStore").BoardState;
15
15
  kyc: import("../features/app/kyc/kycStore").KYCDataState;
16
- terminal: import("../features/app/terminal/terminalStore").TerminalDataState;
17
16
  }, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
package/build/index.d.ts CHANGED
@@ -13,6 +13,5 @@ import { EntityElement, EntityLibProps } from './features/entity';
13
13
  import { BrandElement, BrandLibProps } from './features/brand';
14
14
  import { BoardLibProps, BoardElement } from './features/board';
15
15
  import { KYCLibProps, KYCElement } from './features/kyc';
16
- import { TerminalLibProps, TerminalElement } from './features/terminal';
17
- export type { ConnectLibProps, ConnectExpressLibProps, AuthLibProps, BusinessLibProps, PasswordLibProps, IndividualLibProps, BankLibProps, TaxLibProps, EntityLibProps, BrandLibProps, SignInLibProps, BoardLibProps, KYCLibProps, TerminalLibProps };
18
- export { ConnectElement, ConnectExpressElement, AuthElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement, BoardElement, KYCElement, TerminalElement };
16
+ export type { ConnectLibProps, ConnectExpressLibProps, AuthLibProps, BusinessLibProps, PasswordLibProps, IndividualLibProps, BankLibProps, TaxLibProps, EntityLibProps, BrandLibProps, SignInLibProps, BoardLibProps, KYCLibProps };
17
+ export { ConnectElement, ConnectExpressElement, AuthElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement, BoardElement, KYCElement };
package/build/index.js CHANGED
@@ -13,8 +13,7 @@ import { EntityElement, renderEntityLib } from './features/entity';
13
13
  import { BrandElement, renderBrandLib } from './features/brand';
14
14
  import { BoardElement, renderBoardLib } from './features/board';
15
15
  import { KYCElement, renderKYCLib } from './features/kyc';
16
- import { TerminalElement, renderTerminalLib } from './features/terminal';
17
- export { ConnectElement, ConnectExpressElement, AuthElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement, BoardElement, KYCElement, TerminalElement };
16
+ export { ConnectElement, ConnectExpressElement, AuthElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement, BoardElement, KYCElement };
18
17
  window['TapAuth'] = {
19
18
  renderConnectLib: renderConnectLib,
20
19
  renderConnectExpressLib: renderConnectExpressLib,
@@ -28,7 +27,6 @@ window['TapAuth'] = {
28
27
  renderBrandLib: renderBrandLib,
29
28
  renderSignInLib: renderSignInLib,
30
29
  renderBoardLib: renderBoardLib,
31
- renderKYCLib: renderKYCLib,
32
- renderTerminalLib: renderTerminalLib
30
+ renderKYCLib: renderKYCLib
33
31
  };
34
32
  console.log("TapAuth version: ".concat(require('../package.json').version));
@@ -48,18 +48,6 @@ export var lightPalette = {
48
48
  main: '#808592',
49
49
  light: '#EAECEF',
50
50
  dark: '#3B4152'
51
- },
52
- components: {
53
- deviceCard: {
54
- title: '#20232B',
55
- statusText: '#1F222A80',
56
- statusBackground: ' #F0F0F0',
57
- deviceInfoBackground: 'linear-gradient(127.37deg, rgba(255, 255, 255, 0.6) 59.07%, rgba(255, 255, 255, 0.444) 100.12%);',
58
- border: '#e8ecf2'
59
- },
60
- toastDeviceSelectorDropdown: {
61
- border: '#f2f2f2'
62
- }
63
51
  }
64
52
  };
65
53
  export var darkPalette = {
@@ -5,7 +5,6 @@ export var typography = {
5
5
  fontWeightLight: 300,
6
6
  fontWeightRegular: 400,
7
7
  fontWeightMedium: 500,
8
- fontWeightSemiBold: 600,
9
8
  fontWeightBold: 700,
10
9
  allVariants: {
11
10
  fontFamily: '"Lato", "Tajawal", "Roboto"',
@@ -20,7 +19,6 @@ export var typography = {
20
19
  h2: { fontSize: '3rem' },
21
20
  h3: { fontSize: '2.5rem' },
22
21
  h4: { fontSize: '2rem' },
23
- h4_small: { fontSize: '1.625rem' },
24
22
  h5: { fontSize: '1.5rem' },
25
23
  h6: { fontSize: '1.25rem' },
26
24
  subtitle1: { fontSize: '1.125rem' },
@@ -28,8 +26,6 @@ export var typography = {
28
26
  body1: { fontSize: '1rem' },
29
27
  body2: { fontSize: '0.875rem' },
30
28
  button: { fontSize: '0.875rem' },
31
- button_small: { fontSize: '0.813rem' },
32
29
  caption: { fontSize: '0.75rem' },
33
- caption_small: { fontSize: '0.625rem' },
34
30
  overline: { fontSize: '0.5rem' }
35
31
  };
@@ -1,5 +1,5 @@
1
1
  import { axiosInstance } from '../api';
2
- import { ENDPOINT_PATHS, CONNECT_DEV_URL, CONNECT_PROD_URL } from '../constants';
2
+ import { ENDPOINT_PATHS, CONNECT_SANDBOX_URL, CONNECT_PROD_URL } from '../constants';
3
3
  import { objectHasValues } from './object';
4
4
  import { isSA } from './string';
5
5
  export var sleep = function (milliseconds) {
@@ -19,7 +19,7 @@ export var setBaseUrl = function (publicKey, countryCode) {
19
19
  axiosInstance.defaults.baseURL = isSA(countryCode) ? ENDPOINT_PATHS.PRODUCTION_BASE_URL_SA : ENDPOINT_PATHS.PRODUCTION_BASE_URL;
20
20
  return;
21
21
  }
22
- axiosInstance.defaults.baseURL = ENDPOINT_PATHS.DEV_BASE_URL;
22
+ axiosInstance.defaults.baseURL = ENDPOINT_PATHS.SANDBOX_BASE_URL;
23
23
  };
24
24
  export var updateLocationUrlWithCountry = function (countryIso2) {
25
25
  var country = countryIso2.toLowerCase();
@@ -38,7 +38,7 @@ export var updateLocationUrlWithCountry = function (countryIso2) {
38
38
  window.history.replaceState({}, '', newUrl);
39
39
  };
40
40
  export var openConnect = function (pk, countryCode) {
41
- var newUrl = new URL(pk.includes('pk_live') ? CONNECT_PROD_URL : CONNECT_DEV_URL);
41
+ var newUrl = new URL(pk.includes('pk_live') ? CONNECT_PROD_URL : CONNECT_SANDBOX_URL);
42
42
  if (countryCode) {
43
43
  newUrl.pathname = "/".concat(countryCode.toLowerCase());
44
44
  }