@basiq/connect-auth 0.1.73 → 0.1.74

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 (135) hide show
  1. package/.idea/connect-code-validaiton.iml +8 -0
  2. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  3. package/.idea/jsLinters/eslint.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/vcs.xml +6 -0
  6. package/dist/main.js +1 -1
  7. package/package.json +1 -1
  8. package/.eslintrc.json +0 -48
  9. package/.prettierrc +0 -12
  10. package/public/favicon.ico +0 -0
  11. package/public/index.html +0 -43
  12. package/public/logo192.png +0 -0
  13. package/public/logo512.png +0 -0
  14. package/public/manifest.json +0 -25
  15. package/public/robots.txt +0 -3
  16. package/src/App.d.ts +0 -3
  17. package/src/App.js +0 -141
  18. package/src/App.test.d.ts +0 -1
  19. package/src/App.test.js +0 -13
  20. package/src/App.test.tsx +0 -9
  21. package/src/App.tsx +0 -80
  22. package/src/actions/actions.d.ts +0 -22
  23. package/src/actions/actions.js +0 -140
  24. package/src/actions/actions.ts +0 -71
  25. package/src/components/modals/LoadingModal.d.ts +0 -8
  26. package/src/components/modals/LoadingModal.js +0 -20
  27. package/src/components/modals/LoadingModal.tsx +0 -28
  28. package/src/components/modals/index.d.ts +0 -1
  29. package/src/components/modals/index.js +0 -8
  30. package/src/components/modals/index.ts +0 -1
  31. package/src/components/pages/AuthScreen.d.ts +0 -9
  32. package/src/components/pages/AuthScreen.js +0 -148
  33. package/src/components/pages/AuthScreen.tsx +0 -94
  34. package/src/components/pages/NotFound.d.ts +0 -6
  35. package/src/components/pages/NotFound.js +0 -27
  36. package/src/components/pages/NotFound.tsx +0 -44
  37. package/src/components/pages/Page.d.ts +0 -18
  38. package/src/components/pages/Page.js +0 -24
  39. package/src/components/pages/Page.tsx +0 -46
  40. package/src/components/pages/StartScreen.d.ts +0 -9
  41. package/src/components/pages/StartScreen.js +0 -127
  42. package/src/components/pages/StartScreen.tsx +0 -77
  43. package/src/components/pages/index.d.ts +0 -4
  44. package/src/components/pages/index.js +0 -14
  45. package/src/components/pages/index.ts +0 -4
  46. package/src/components/ui/Button.d.ts +0 -10
  47. package/src/components/ui/Button.js +0 -17
  48. package/src/components/ui/Button.tsx +0 -24
  49. package/src/components/ui/Modal.d.ts +0 -9
  50. package/src/components/ui/Modal.js +0 -17
  51. package/src/components/ui/Modal.tsx +0 -29
  52. package/src/components/ui/icon.d.ts +0 -7
  53. package/src/components/ui/icon.js +0 -13
  54. package/src/components/ui/icon.tsx +0 -18
  55. package/src/components/ui/index.d.ts +0 -1
  56. package/src/components/ui/index.js +0 -8
  57. package/src/components/ui/index.ts +0 -1
  58. package/src/fonts/Mark-W1G-Bold.otf +0 -0
  59. package/src/fonts/Mark-W1G-Book.otf +0 -0
  60. package/src/fonts.d.ts +0 -1
  61. package/src/helpers/constants.d.ts +0 -1
  62. package/src/helpers/constants.js +0 -5
  63. package/src/helpers/constants.ts +0 -3
  64. package/src/helpers/hookUtils.d.ts +0 -2
  65. package/src/helpers/hookUtils.js +0 -10
  66. package/src/helpers/hookUtils.ts +0 -8
  67. package/src/helpers/index.d.ts +0 -3
  68. package/src/helpers/index.js +0 -19
  69. package/src/helpers/index.ts +0 -3
  70. package/src/helpers/utils.d.ts +0 -3
  71. package/src/helpers/utils.js +0 -15
  72. package/src/helpers/utils.ts +0 -12
  73. package/src/images/back.svg +0 -8
  74. package/src/images/error.svg +0 -10
  75. package/src/images/loading_indicator.svg +0 -14
  76. package/src/index.d.ts +0 -4
  77. package/src/index.js +0 -23
  78. package/src/index.tsx +0 -19
  79. package/src/locales/en/translation.json +0 -28
  80. package/src/locales/i18n.d.ts +0 -35
  81. package/src/locales/i18n.js +0 -28
  82. package/src/locales/i18n.ts +0 -27
  83. package/src/logo.svg +0 -1
  84. package/src/react-app-env.d.ts +0 -1
  85. package/src/react-i18next.d.ts +0 -9
  86. package/src/reportWebVitals.d.ts +0 -3
  87. package/src/reportWebVitals.js +0 -38
  88. package/src/reportWebVitals.ts +0 -15
  89. package/src/setupTests.d.ts +0 -1
  90. package/src/setupTests.js +0 -7
  91. package/src/setupTests.ts +0 -5
  92. package/src/styled.d.ts +0 -6
  93. package/src/styledComponents/base.d.ts +0 -4
  94. package/src/styledComponents/base.js +0 -32
  95. package/src/styledComponents/base.ts +0 -73
  96. package/src/styledComponents/breakpoints.d.ts +0 -15
  97. package/src/styledComponents/breakpoints.js +0 -35
  98. package/src/styledComponents/breakpoints.ts +0 -32
  99. package/src/styledComponents/index.d.ts +0 -4
  100. package/src/styledComponents/index.js +0 -20
  101. package/src/styledComponents/index.ts +0 -4
  102. package/src/styledComponents/pages/auth.d.ts +0 -10
  103. package/src/styledComponents/pages/auth.js +0 -29
  104. package/src/styledComponents/pages/auth.ts +0 -49
  105. package/src/styledComponents/pages/basic.d.ts +0 -23
  106. package/src/styledComponents/pages/basic.js +0 -75
  107. package/src/styledComponents/pages/basic.ts +0 -126
  108. package/src/styledComponents/pages/index.d.ts +0 -4
  109. package/src/styledComponents/pages/index.js +0 -20
  110. package/src/styledComponents/pages/index.ts +0 -4
  111. package/src/styledComponents/pages/notFound.d.ts +0 -9
  112. package/src/styledComponents/pages/notFound.js +0 -37
  113. package/src/styledComponents/pages/notFound.ts +0 -70
  114. package/src/styledComponents/pages/start.d.ts +0 -1
  115. package/src/styledComponents/pages/start.js +0 -13
  116. package/src/styledComponents/pages/start.ts +0 -6
  117. package/src/styledComponents/styles.d.ts +0 -2
  118. package/src/styledComponents/styles.js +0 -14
  119. package/src/styledComponents/styles.ts +0 -25
  120. package/src/styledComponents/theme.d.ts +0 -45
  121. package/src/styledComponents/theme.js +0 -47
  122. package/src/styledComponents/theme.ts +0 -58
  123. package/src/styledComponents/ui/basic.d.ts +0 -10
  124. package/src/styledComponents/ui/basic.js +0 -71
  125. package/src/styledComponents/ui/basic.ts +0 -96
  126. package/src/styledComponents/ui/button.d.ts +0 -9
  127. package/src/styledComponents/ui/button.js +0 -65
  128. package/src/styledComponents/ui/button.ts +0 -112
  129. package/src/styledComponents/ui/index.d.ts +0 -3
  130. package/src/styledComponents/ui/index.js +0 -19
  131. package/src/styledComponents/ui/index.ts +0 -3
  132. package/src/styledComponents/ui/modals.d.ts +0 -7
  133. package/src/styledComponents/ui/modals.js +0 -26
  134. package/src/styledComponents/ui/modals.ts +0 -48
  135. package/webpack.config.js +0 -66
@@ -1,77 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { Trans, useTranslation } from 'react-i18next';
3
- import Page, { IButton } from './Page';
4
- import { H4Styled, Spacer, InnerContainer } from '../../styledComponents';
5
- import { authUser } from '../../actions/actions';
6
- import { LoadingModal } from '../modals';
7
-
8
- interface IProps {
9
- onContinue: () => void;
10
- shadow: boolean;
11
- appName: string;
12
- authId: string;
13
- }
14
-
15
- function StartScreen(props: IProps) {
16
- const { onContinue, appName, shadow, authId } = props;
17
- const [loading, setLoading] = useState(false);
18
- const { t } = useTranslation();
19
- const handleContinue = async () => {
20
- setLoading(true);
21
- const response = await authUser(authId);
22
- if (response?.data?.status === 'code-sent') {
23
- setLoading(false);
24
- onContinue();
25
- }
26
- };
27
- const buttons: IButton[] = [
28
- {
29
- label: t('continue'),
30
- onClick: () => handleContinue()
31
- }
32
- ];
33
- return (
34
- <Page
35
- title={
36
- appName ? (
37
- <Trans t={t} i18nKey="use_basiq_to_connect_your_accounts" values={{ name: appName }} components={{ bold: <strong /> }} />
38
- ) : (
39
- <Trans t={t} i18nKey="we_use_basiq_to_connect_your_accounts" components={{ bold: <strong /> }} />
40
- )
41
- }
42
- shadow={shadow}
43
- buttons={buttons}
44
- >
45
- <InnerContainer>
46
- <Spacer />
47
- <H4Styled>{t('to_do_this_we_will_ask_you_to')}</H4Styled>
48
- <ul>
49
- <li>
50
- <Trans t={t} i18nKey="verify_your_mobile_number_bold" components={{ bold: <strong /> }} />
51
- </li>
52
- <li>
53
- <Trans t={t} i18nKey="consent_to_share_your_data_with_us" components={{ bold: <strong /> }} />
54
- </li>
55
- <li>
56
- <Trans t={t} i18nKey="share_your_financial_data" components={{ bold: <strong /> }} />
57
- </li>
58
- </ul>
59
- <H4Styled>{t('things_you_should_know')}</H4Styled>
60
- <ul>
61
- <li>{t('we_dont_share_your_data_without_your_consent')}</li>
62
- <li>{t('you_can_easily_stop_sharing_your_data_at_any_time')}</li>
63
- <li>{t('you_can_choose_to_delete_shared_data_when_we_no_longer_need_it')}</li>
64
- </ul>
65
- <Spacer />
66
- <span>
67
- {t('by_proceeding_you_agree_to_the')}{' '}
68
- <a href="https://docs.basiq.io/en/articles/415750-basiq-terms-of-service">{t('terms_of_service')}</a> {t('and')}{' '}
69
- <a href="https://docs.basiq.io/en/articles/382581-basiq-privacy-policy">{t('privacy_notice')}</a>
70
- </span>
71
- <LoadingModal isOpen={loading} />
72
- </InnerContainer>
73
- </Page>
74
- );
75
- }
76
-
77
- export default StartScreen;
@@ -1,4 +0,0 @@
1
- export { default as Page } from './Page';
2
- export { default as NotFound } from './NotFound';
3
- export { default as StartScreen } from './StartScreen';
4
- export { default as AuthScreen } from './AuthScreen';
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AuthScreen = exports.StartScreen = exports.NotFound = exports.Page = void 0;
7
- var Page_1 = require("./Page");
8
- Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return __importDefault(Page_1).default; } });
9
- var NotFound_1 = require("./NotFound");
10
- Object.defineProperty(exports, "NotFound", { enumerable: true, get: function () { return __importDefault(NotFound_1).default; } });
11
- var StartScreen_1 = require("./StartScreen");
12
- Object.defineProperty(exports, "StartScreen", { enumerable: true, get: function () { return __importDefault(StartScreen_1).default; } });
13
- var AuthScreen_1 = require("./AuthScreen");
14
- Object.defineProperty(exports, "AuthScreen", { enumerable: true, get: function () { return __importDefault(AuthScreen_1).default; } });
@@ -1,4 +0,0 @@
1
- export { default as Page } from './Page';
2
- export { default as NotFound } from './NotFound';
3
- export { default as StartScreen } from './StartScreen';
4
- export { default as AuthScreen } from './AuthScreen';
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type ButtonType = 'secondary' | 'tiny' | 'link' | 'back';
3
- interface Props {
4
- onClick: () => void;
5
- label: string;
6
- buttonType?: ButtonType;
7
- disabled?: boolean;
8
- }
9
- declare function Button(props: Props): JSX.Element;
10
- export default Button;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var react_1 = __importDefault(require("react"));
7
- var styledComponents_1 = require("../../styledComponents");
8
- var back_svg_1 = __importDefault(require("../../images/back.svg"));
9
- function Button(props) {
10
- var onClick = props.onClick, label = props.label, buttonType = props.buttonType, disabled = props.disabled;
11
- return (react_1.default.createElement(styledComponents_1.ButtonStyled, { buttonType: buttonType, disabled: disabled || false, onClick: onClick },
12
- buttonType === 'back' && react_1.default.createElement("img", { src: back_svg_1.default, alt: "" }),
13
- react_1.default.createElement(styledComponents_1.ButtonLabel, null,
14
- " ",
15
- label || '')));
16
- }
17
- exports.default = Button;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { ButtonLabel, ButtonStyled } from '../../styledComponents';
3
- import back from '../../images/back.svg';
4
-
5
- export type ButtonType = 'secondary' | 'tiny' | 'link' | 'back';
6
-
7
- interface Props {
8
- onClick: () => void;
9
- label: string;
10
- buttonType?: ButtonType;
11
- disabled?: boolean;
12
- }
13
-
14
- function Button(props: Props) {
15
- const { onClick, label, buttonType, disabled } = props;
16
- return (
17
- <ButtonStyled buttonType={buttonType} disabled={disabled || false} onClick={onClick}>
18
- {buttonType === 'back' && <img src={back} alt="" />}
19
- <ButtonLabel> {label || ''}</ButtonLabel>
20
- </ButtonStyled>
21
- );
22
- }
23
-
24
- export default Button;
@@ -1,9 +0,0 @@
1
- import { ReactElement } from 'react';
2
- interface IProps {
3
- children: ReactElement;
4
- onClose?: () => void;
5
- isOpen: boolean;
6
- disableTransparency: boolean;
7
- }
8
- declare function Modal(props: IProps): JSX.Element;
9
- export default Modal;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var react_1 = __importDefault(require("react"));
7
- var styledComponents_1 = require("../../styledComponents");
8
- function Modal(props) {
9
- var children = props.children, onClose = props.onClose, isOpen = props.isOpen, disableTransparency = props.disableTransparency;
10
- var handleOutsideClick = function (e) {
11
- if (onClose && e.target.id === 'ui-modal') {
12
- onClose();
13
- }
14
- };
15
- return (react_1.default.createElement(react_1.default.Fragment, null, isOpen ? (react_1.default.createElement(styledComponents_1.ModalStyled, { id: "ui-modal", disableTransparency: disableTransparency, onClick: handleOutsideClick }, children)) : null));
16
- }
17
- exports.default = Modal;
@@ -1,29 +0,0 @@
1
- import React, { ReactElement, SyntheticEvent } from 'react';
2
- import { ModalStyled } from '../../styledComponents';
3
-
4
- interface IProps {
5
- children: ReactElement;
6
- onClose?: () => void;
7
- isOpen: boolean;
8
- disableTransparency: boolean;
9
- }
10
-
11
- function Modal(props: IProps) {
12
- const { children, onClose, isOpen, disableTransparency } = props;
13
- const handleOutsideClick = (e: SyntheticEvent<HTMLElement>) => {
14
- if (onClose && (e.target as HTMLElement).id === 'ui-modal') {
15
- onClose();
16
- }
17
- };
18
- return (
19
- <>
20
- {isOpen ? (
21
- <ModalStyled id="ui-modal" disableTransparency={disableTransparency} onClick={handleOutsideClick}>
22
- {children}
23
- </ModalStyled>
24
- ) : null}
25
- </>
26
- );
27
- }
28
-
29
- export default Modal;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface IProps {
3
- rotating: boolean;
4
- img: string;
5
- }
6
- declare function Icon(props: IProps): JSX.Element;
7
- export default Icon;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var react_1 = __importDefault(require("react"));
7
- var styledComponents_1 = require("../../styledComponents");
8
- function Icon(props) {
9
- var rotating = props.rotating, img = props.img;
10
- return (react_1.default.createElement(styledComponents_1.IconWrapper, { rotating: rotating },
11
- react_1.default.createElement("img", { src: img, alt: "" })));
12
- }
13
- exports.default = Icon;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { IconWrapper } from '../../styledComponents';
3
-
4
- interface IProps {
5
- rotating: boolean;
6
- img: string;
7
- }
8
-
9
- function Icon(props: IProps) {
10
- const { rotating, img } = props;
11
- return (
12
- <IconWrapper rotating={rotating}>
13
- <img src={img} alt="" />
14
- </IconWrapper>
15
- );
16
- }
17
-
18
- export default Icon;
@@ -1 +0,0 @@
1
- export { default as Button } from './Button';
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Button = void 0;
7
- var Button_1 = require("./Button");
8
- Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return __importDefault(Button_1).default; } });
@@ -1 +0,0 @@
1
- export { default as Button } from './Button';
Binary file
Binary file
package/src/fonts.d.ts DELETED
@@ -1 +0,0 @@
1
- declare module '*.otf';
@@ -1 +0,0 @@
1
- export declare const DASHBOARD_API_URL = "https://p4c8zn20r9.execute-api.ap-southeast-2.amazonaws.com/Production_v1/";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DASHBOARD_API_URL = void 0;
4
- // export const DASHBOARD_API_URL = 'https://c9joivz12f.execute-api.ap-southeast-2.amazonaws.com/Development/';
5
- exports.DASHBOARD_API_URL = 'https://p4c8zn20r9.execute-api.ap-southeast-2.amazonaws.com/Production_v1/';
@@ -1,3 +0,0 @@
1
- // export const DASHBOARD_API_URL = 'https://c9joivz12f.execute-api.ap-southeast-2.amazonaws.com/Development/';
2
- export const DASHBOARD_API_URL = 'https://p4c8zn20r9.execute-api.ap-southeast-2.amazonaws.com/Production_v1/';
3
-
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const useFocus: () => (import("react").MutableRefObject<HTMLInputElement> | (() => void))[];
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useFocus = void 0;
4
- var react_1 = require("react");
5
- var useFocus = function () {
6
- var htmlElRef = (0, react_1.useRef)(null);
7
- var setFocus = function () { return htmlElRef.current && htmlElRef.current.focus(); };
8
- return [htmlElRef, setFocus];
9
- };
10
- exports.useFocus = useFocus;
@@ -1,8 +0,0 @@
1
- import { useRef } from 'react';
2
-
3
- export const useFocus = () => {
4
- const htmlElRef = useRef<HTMLInputElement>(null);
5
- const setFocus = () => htmlElRef.current && htmlElRef.current.focus();
6
-
7
- return [htmlElRef, setFocus];
8
- };
@@ -1,3 +0,0 @@
1
- export * from './hookUtils';
2
- export * from './utils';
3
- export * from './constants';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./hookUtils"), exports);
18
- __exportStar(require("./utils"), exports);
19
- __exportStar(require("./constants"), exports);
@@ -1,3 +0,0 @@
1
- export * from './hookUtils';
2
- export * from './utils';
3
- export * from './constants';
@@ -1,3 +0,0 @@
1
- import { SyntheticEvent } from 'react';
2
- export declare function detectScrollToBottom(event: SyntheticEvent<HTMLDivElement>): boolean;
3
- export declare const hexToRGBa: (hex: string, opacity: number) => string;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hexToRGBa = exports.detectScrollToBottom = void 0;
4
- function detectScrollToBottom(event) {
5
- var _a = event.currentTarget, scrollHeight = _a.scrollHeight, scrollTop = _a.scrollTop, clientHeight = _a.clientHeight;
6
- return scrollHeight - scrollTop > clientHeight;
7
- }
8
- exports.detectScrollToBottom = detectScrollToBottom;
9
- var hexToRGBa = function (hex, opacity) {
10
- var _a;
11
- var hexToRGBA = (_a = hex.match(/[A-Za-z0-9]{2}/g)) === null || _a === void 0 ? void 0 : _a.map(function (v) { return parseInt(v, 16); });
12
- var opp = opacity > 1 && opacity < 0 ? 1 : opacity;
13
- return "rgba(".concat(hexToRGBA === null || hexToRGBA === void 0 ? void 0 : hexToRGBA.concat(opp).join(), ")");
14
- };
15
- exports.hexToRGBa = hexToRGBa;
@@ -1,12 +0,0 @@
1
- import { SyntheticEvent } from 'react';
2
-
3
- export function detectScrollToBottom(event: SyntheticEvent<HTMLDivElement>) {
4
- const { scrollHeight, scrollTop, clientHeight } = event.currentTarget;
5
- return scrollHeight - scrollTop > clientHeight;
6
- }
7
-
8
- export const hexToRGBa = (hex: string, opacity: number) => {
9
- const hexToRGBA = hex.match(/[A-Za-z0-9]{2}/g)?.map((v) => parseInt(v, 16));
10
- const opp = opacity > 1 && opacity < 0 ? 1 : opacity;
11
- return `rgba(${hexToRGBA?.concat(opp).join()})`;
12
- };
@@ -1,8 +0,0 @@
1
- <!-- Generated by IcoMoon.io -->
2
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
3
- <title></title>
4
- <g id="icomoon-ignore">
5
- </g>
6
- <path fill="#000" d="M682.667 469.333h-241.493l53.333-55.893c7.287-7.645 11.77-18.019 11.77-29.44 0-23.584-19.119-42.703-42.703-42.703-12.164 0-23.139 5.085-30.917 13.246l-0.016 0.017-122.027 128c-1.338 1.628-2.607 3.44-3.731 5.347l-0.109 0.199c-1.886 2.326-3.467 5.004-4.62 7.899l-0.073 0.207c-1.426 3.52-2.347 7.596-2.557 11.859l-0.003 0.088-0.853 3.84c0.073 5.873 1.322 11.435 3.52 16.489l-0.107-0.275c2.2 5.299 5.227 9.831 8.968 13.662l127.992 127.992c7.733 7.795 18.45 12.621 30.293 12.621s22.56-4.826 30.291-12.618l0.003-0.003c7.795-7.733 12.621-18.45 12.621-30.293s-4.826-22.56-12.618-30.291l-0.003-0.003-55.467-54.613h238.507c23.564 0 42.667-19.103 42.667-42.667s-19.103-42.667-42.667-42.667v0z"></path>
7
- <path fill="#000" d="M512 85.333c-235.641 0-426.667 191.025-426.667 426.667s191.025 426.667 426.667 426.667c235.641 0 426.667-191.025 426.667-426.667v0c0-235.641-191.025-426.667-426.667-426.667v0zM512 853.333c-188.513 0-341.333-152.82-341.333-341.333s152.82-341.333 341.333-341.333c188.513 0 341.333 152.82 341.333 341.333v0c0 188.513-152.82 341.333-341.333 341.333v0z"></path>
8
- </svg>
@@ -1,10 +0,0 @@
1
- <!-- Generated by IcoMoon.io -->
2
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
3
- <title></title>
4
- <g id="icomoon-ignore">
5
- </g>
6
- <path fill="#fabe34" d="M512 0c282.77 0 512 229.23 512 512s-229.23 512-512 512c-282.77 0-512-229.23-512-512s229.23-512 512-512z"></path>
7
- <path fill="#fff" d="M336.968 320.978c-33.427 33.427-49.307 89.357-49.307 183.024 0 93.669 15.88 149.598 49.307 183.026 33.429 33.429 89.357 49.309 183.026 49.309s149.597-15.88 183.026-49.309c33.427-33.427 49.307-89.357 49.307-183.026 0-93.667-15.88-149.597-49.307-183.024-33.429-33.429-89.357-49.309-183.026-49.309s-149.597 15.88-183.026 49.309zM307.978 291.986c45.586-45.586 116.074-61.317 212.016-61.317s166.43 15.731 212.016 61.317c45.586 45.586 61.317 116.074 61.317 212.016 0 95.944-15.731 166.432-61.317 212.018s-116.074 61.317-212.016 61.317c-95.942 0-166.43-15.731-212.016-61.317-45.587-45.586-61.317-116.074-61.317-212.018 0-95.942 15.73-166.43 61.317-212.016z"></path>
8
- <path fill="#fff" d="M519.992 377.037c11.322 0 20.501 9.178 20.501 20.499v106.464c0 11.322-9.179 20.499-20.501 20.499s-20.499-9.178-20.499-20.499v-106.464c0-11.322 9.178-20.499 20.499-20.499z"></path>
9
- <path fill="#fff" d="M499.379 599.667c0-11.323 9.178-20.501 20.499-20.501h0.246c11.322 0 20.501 9.178 20.501 20.501s-9.179 20.499-20.501 20.499h-0.246c-11.322 0-20.499-9.178-20.499-20.499z"></path>
10
- </svg>
@@ -1,14 +0,0 @@
1
- <!-- Generated by IcoMoon.io -->
2
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
3
- <title></title>
4
- <g id="icomoon-ignore">
5
- </g>
6
- <path d="M511.992 163.041c8.157 0 14.769 6.612 14.769 14.769v204.227c0 8.157-6.613 14.769-14.769 14.769s-14.769-6.613-14.769-14.769v-204.227c0-8.157 6.613-14.769 14.769-14.769z"></path>
7
- <path d="M511.998 627.192c8.157 0 14.769 6.613 14.769 14.769v204.227c0 8.157-6.613 14.769-14.769 14.769s-14.769-6.613-14.769-14.769v-204.227c0-8.157 6.613-14.769 14.769-14.769z"></path>
8
- <path d="M860.952 512c0 8.157-6.613 14.769-14.769 14.769h-204.227c-8.159 0-14.769-6.613-14.769-14.769s6.611-14.769 14.769-14.769h204.227c8.157 0 14.769 6.613 14.769 14.769z"></path>
9
- <path d="M396.8 512c0 8.157-6.613 14.769-14.769 14.769h-204.227c-8.157 0-14.769-6.613-14.769-14.769s6.612-14.769 14.769-14.769h204.227c8.157 0 14.769 6.613 14.769 14.769z"></path>
10
- <path d="M758.754 265.251c5.766 5.768 5.766 15.12 0 20.886l-144.412 144.412c-5.768 5.768-15.118 5.768-20.886 0s-5.768-15.12 0-20.888l144.41-144.41c5.768-5.768 15.12-5.768 20.888 0z"></path>
11
- <path d="M430.545 593.455c5.768 5.768 5.768 15.12 0 20.888l-144.412 144.41c-5.766 5.768-15.118 5.768-20.886 0s-5.768-15.12 0-20.888l144.41-144.41c5.768-5.768 15.12-5.768 20.888 0z"></path>
12
- <path d="M758.752 758.752c-5.768 5.768-15.12 5.768-20.888 0l-144.41-144.41c-5.768-5.768-5.768-15.12 0-20.888s15.12-5.768 20.888 0l144.41 144.41c5.768 5.768 5.768 15.12 0 20.888z"></path>
13
- <path d="M430.543 430.549c-5.768 5.768-15.12 5.768-20.888 0l-144.41-144.412c-5.768-5.768-5.768-15.118 0-20.886s15.118-5.768 20.886 0l144.412 144.41c5.768 5.768 5.768 15.12 0 20.888z"></path>
14
- </svg>
package/src/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './locales/i18n';
3
- declare function BasiqConnect(): JSX.Element;
4
- export default BasiqConnect;
package/src/index.js DELETED
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var react_1 = __importDefault(require("react"));
7
- var react_dom_1 = __importDefault(require("react-dom"));
8
- var styled_components_1 = require("styled-components");
9
- var App_1 = __importDefault(require("./App"));
10
- require("./locales/i18n");
11
- var styledComponents_1 = require("./styledComponents");
12
- var BasiqConnect = function (inputs) {
13
- if (inputs && inputs.containerId !== null) {
14
- react_dom_1.default.render(react_1.default.createElement(react_1.default.StrictMode, null,
15
- react_1.default.createElement(styled_components_1.ThemeProvider, { theme: styledComponents_1.theme },
16
- react_1.default.createElement(App_1.default, null))), document.getElementById(inputs.containerId));
17
- }
18
- else {
19
- // eslint-disable-next-line no-console
20
- console.error("BASIQ CONNECT CONTROL ERROR: Provided container node doesn't exist.");
21
- }
22
- };
23
- exports.default = BasiqConnect;
package/src/index.tsx DELETED
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { ThemeProvider } from 'styled-components';
3
- import App from './App';
4
- import './locales/i18n';
5
- import { theme } from './styledComponents';
6
-
7
-
8
- function BasiqConnect() {
9
- return(
10
- <React.StrictMode>
11
- <ThemeProvider theme={theme}>
12
- <App />
13
- </ThemeProvider>
14
- </React.StrictMode>
15
- );
16
-
17
- }
18
-
19
- export default BasiqConnect;
@@ -1,28 +0,0 @@
1
- {
2
- "back": "Back",
3
- "error": "Error",
4
- "loading": "Loading",
5
- "continue": "Continue",
6
- "to_do_this_we_will_ask_you_to": "To do this we will ask you to",
7
- "verify_your_mobile_number_bold": "<strong>Verify</strong> your mobile number",
8
- "verify_your_mobile_number": "Verify your mobile number",
9
- "consent_to_share_your_data_with_us": "<strong>Consent</strong> to share your data with us",
10
- "share_your_financial_data": "<strong>Share</strong> your financial data",
11
- "things_you_should_know": "Things you should know",
12
- "we_dont_share_your_data_without_your_consent": "We don’t share your data without your consent",
13
- "you_can_easily_stop_sharing_your_data_at_any_time": "You can easily stop sharing your data at any time",
14
- "you_can_choose_to_delete_shared_data_when_we_no_longer_need_it": "You can choose to delete shared data when we no longer need it",
15
- "by_proceeding_you_agree_to_the": "By proceeding, you agree to the",
16
- "terms_of_service": "Terms of service",
17
- "privacy_notice": "Privacy notice",
18
- "and": "and",
19
- "use_basiq_to_connect_your_accounts": "${name} use <strong>Basiq</strong> to connect your accounts",
20
- "we_use_basiq_to_connect_your_accounts": "We use <strong>Basiq</strong> to connect your accounts",
21
- "please_enter_the_sms_code_sent_to_your_mobile_number": "Please enter the SMS code sent to your mobile number (ending in xxx${number}).",
22
- "new_sms_code_has_been_sent": "New SMS code has been sent.",
23
- "this_code_doesnt_appear_to_be_valid": "This code doesn't appear to be valid.",
24
- "didnt_receive_the_code": "Didn’t receive the code?",
25
- "resend_sms": "Resend SMS",
26
- "failed_to_send_sms": "Failed to send SMS.",
27
- "page_not_found": "Page not found"
28
- }
@@ -1,35 +0,0 @@
1
- import i18n from 'i18next';
2
- export declare const defaultNS = "ns1";
3
- export declare const resources: {
4
- readonly en: {
5
- readonly ns1: {
6
- back: string;
7
- error: string;
8
- loading: string;
9
- continue: string;
10
- to_do_this_we_will_ask_you_to: string;
11
- verify_your_mobile_number_bold: string;
12
- verify_your_mobile_number: string;
13
- consent_to_share_your_data_with_us: string;
14
- share_your_financial_data: string;
15
- things_you_should_know: string;
16
- we_dont_share_your_data_without_your_consent: string;
17
- you_can_easily_stop_sharing_your_data_at_any_time: string;
18
- you_can_choose_to_delete_shared_data_when_we_no_longer_need_it: string;
19
- by_proceeding_you_agree_to_the: string;
20
- terms_of_service: string;
21
- privacy_notice: string;
22
- and: string;
23
- use_basiq_to_connect_your_accounts: string;
24
- we_use_basiq_to_connect_your_accounts: string;
25
- please_enter_the_sms_code_sent_to_your_mobile_number: string;
26
- new_sms_code_has_been_sent: string;
27
- this_code_doesnt_appear_to_be_valid: string;
28
- didnt_receive_the_code: string;
29
- resend_sms: string;
30
- failed_to_send_sms: string;
31
- page_not_found: string;
32
- };
33
- };
34
- };
35
- export default i18n;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.resources = exports.defaultNS = void 0;
7
- var i18next_1 = __importDefault(require("i18next"));
8
- var react_i18next_1 = require("react-i18next");
9
- var translation_json_1 = __importDefault(require("./en/translation.json"));
10
- exports.defaultNS = 'ns1';
11
- // the translations
12
- exports.resources = {
13
- en: {
14
- ns1: translation_json_1.default
15
- }
16
- };
17
- i18next_1.default.use(react_i18next_1.initReactI18next) // passes i18n down to react-i18next
18
- .init({
19
- resources: exports.resources,
20
- lng: 'en',
21
- ns: ['ns1'],
22
- interpolation: {
23
- escapeValue: false,
24
- prefix: '${',
25
- suffix: '}'
26
- }
27
- });
28
- exports.default = i18next_1.default;
@@ -1,27 +0,0 @@
1
- import i18n from 'i18next';
2
- import { initReactI18next } from 'react-i18next';
3
-
4
- import translationEN from './en/translation.json';
5
-
6
- export const defaultNS = 'ns1';
7
-
8
- // the translations
9
- export const resources = {
10
- en: {
11
- ns1: translationEN
12
- }
13
- } as const;
14
-
15
- i18n.use(initReactI18next) // passes i18n down to react-i18next
16
- .init({
17
- resources,
18
- lng: 'en',
19
- ns: ['ns1'],
20
- interpolation: {
21
- escapeValue: false, // react already safes from xss
22
- prefix: '${',
23
- suffix: '}'
24
- }
25
- });
26
-
27
- export default i18n;
package/src/logo.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
@@ -1 +0,0 @@
1
- /// <reference types="react-scripts" />
@@ -1,9 +0,0 @@
1
- import { resources, defaultNS } from './locales/i18n';
2
-
3
- // react-i18next versions higher than 11.11.0
4
- declare module 'react-i18next' {
5
- interface CustomTypeOptions {
6
- defaultNS: typeof defaultNS;
7
- resources: typeof resources['en'];
8
- }
9
- }
@@ -1,3 +0,0 @@
1
- import { ReportHandler } from 'web-vitals';
2
- declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
3
- export default reportWebVitals;