@basiq/connect-auth 0.1.7 → 0.1.8

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 (99) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +159 -1
  3. package/dist/App.d.ts +3 -0
  4. package/dist/BasiqConnect.d.ts +3 -0
  5. package/dist/actions/actions.d.ts +22 -0
  6. package/dist/components/modals/LoadingModal.d.ts +8 -0
  7. package/{src/components/modals/index.ts → dist/components/modals/index.d.ts} +1 -1
  8. package/dist/components/pages/AuthScreen.d.ts +9 -0
  9. package/dist/components/pages/NotFound.d.ts +6 -0
  10. package/dist/components/pages/Page.d.ts +18 -0
  11. package/dist/components/pages/StartScreen.d.ts +10 -0
  12. package/{src/components/pages/index.ts → dist/components/pages/index.d.ts} +4 -4
  13. package/dist/components/ui/Button.d.ts +10 -0
  14. package/dist/components/ui/Modal.d.ts +9 -0
  15. package/dist/components/ui/icon.d.ts +7 -0
  16. package/{src/components/ui/index.ts → dist/components/ui/index.d.ts} +1 -1
  17. package/dist/connect-auth.cjs.development.js +1494 -0
  18. package/dist/connect-auth.cjs.development.js.map +1 -0
  19. package/dist/connect-auth.cjs.production.min.js +2 -0
  20. package/dist/connect-auth.cjs.production.min.js.map +1 -0
  21. package/dist/connect-auth.esm.js +1486 -0
  22. package/dist/connect-auth.esm.js.map +1 -0
  23. package/dist/helpers/constants.d.ts +1 -0
  24. package/dist/helpers/hookUtils.d.ts +2 -0
  25. package/{src/helpers/index.ts → dist/helpers/index.d.ts} +3 -3
  26. package/dist/helpers/utils.d.ts +3 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +8 -0
  29. package/dist/locales/i18n.d.ts +36 -0
  30. package/dist/setupTests.d.ts +1 -0
  31. package/dist/styledComponents/base.d.ts +4 -0
  32. package/dist/styledComponents/breakpoints.d.ts +15 -0
  33. package/{src/styledComponents/index.ts → dist/styledComponents/index.d.ts} +4 -4
  34. package/dist/styledComponents/pages/auth.d.ts +10 -0
  35. package/dist/styledComponents/pages/basic.d.ts +23 -0
  36. package/{src/styledComponents/pages/index.ts → dist/styledComponents/pages/index.d.ts} +4 -4
  37. package/dist/styledComponents/pages/notFound.d.ts +9 -0
  38. package/dist/styledComponents/pages/start.d.ts +1 -0
  39. package/dist/styledComponents/styles.d.ts +2 -0
  40. package/dist/styledComponents/theme.d.ts +45 -0
  41. package/dist/styledComponents/ui/basic.d.ts +10 -0
  42. package/dist/styledComponents/ui/button.d.ts +9 -0
  43. package/{src/styledComponents/ui/index.ts → dist/styledComponents/ui/index.d.ts} +3 -3
  44. package/dist/styledComponents/ui/modals.d.ts +7 -0
  45. package/package.json +55 -90
  46. package/.babelrc +0 -3
  47. package/.eslintrc.json +0 -47
  48. package/.prettierrc +0 -12
  49. package/config-overrides.js +0 -12
  50. package/index.js +0 -1
  51. package/public/favicon.ico +0 -0
  52. package/public/index.html +0 -43
  53. package/public/logo192.png +0 -0
  54. package/public/logo512.png +0 -0
  55. package/public/manifest.json +0 -25
  56. package/public/robots.txt +0 -3
  57. package/src/App.css +0 -38
  58. package/src/App.test.tsx +0 -9
  59. package/src/App.tsx +0 -81
  60. package/src/actions/actions.ts +0 -71
  61. package/src/components/modals/LoadingModal.tsx +0 -28
  62. package/src/components/pages/AuthScreen.tsx +0 -94
  63. package/src/components/pages/NotFound.tsx +0 -44
  64. package/src/components/pages/Page.tsx +0 -46
  65. package/src/components/pages/StartScreen.tsx +0 -77
  66. package/src/components/ui/Button.tsx +0 -24
  67. package/src/components/ui/Modal.tsx +0 -29
  68. package/src/components/ui/icon.tsx +0 -18
  69. package/src/fonts/Mark-W1G-Bold.otf +0 -0
  70. package/src/fonts/Mark-W1G-Book.otf +0 -0
  71. package/src/fonts.d.ts +0 -1
  72. package/src/helpers/constants.ts +0 -3
  73. package/src/helpers/hookUtils.ts +0 -8
  74. package/src/helpers/utils.ts +0 -12
  75. package/src/images/back.svg +0 -8
  76. package/src/images/error.svg +0 -10
  77. package/src/images/loading_indicator.svg +0 -14
  78. package/src/index.css +0 -11
  79. package/src/index.tsx +0 -28
  80. package/src/locales/en/translation.json +0 -28
  81. package/src/locales/i18n.ts +0 -27
  82. package/src/logo.svg +0 -1
  83. package/src/react-app-env.d.ts +0 -1
  84. package/src/react-i18next.d.ts +0 -9
  85. package/src/reportWebVitals.ts +0 -15
  86. package/src/setupTests.ts +0 -5
  87. package/src/styled.d.ts +0 -6
  88. package/src/styledComponents/base.ts +0 -73
  89. package/src/styledComponents/breakpoints.ts +0 -32
  90. package/src/styledComponents/pages/auth.ts +0 -49
  91. package/src/styledComponents/pages/basic.ts +0 -126
  92. package/src/styledComponents/pages/notFound.ts +0 -70
  93. package/src/styledComponents/pages/start.ts +0 -6
  94. package/src/styledComponents/styles.ts +0 -25
  95. package/src/styledComponents/theme.ts +0 -58
  96. package/src/styledComponents/ui/basic.ts +0 -96
  97. package/src/styledComponents/ui/button.ts +0 -112
  98. package/src/styledComponents/ui/modals.ts +0 -48
  99. package/tsconfig.json +0 -21
@@ -0,0 +1 @@
1
+ export declare const DASHBOARD_API_URL = "https://p4c8zn20r9.execute-api.ap-southeast-2.amazonaws.com/Production_v1/";
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const useFocus: () => (import("react").MutableRefObject<HTMLInputElement> | (() => void))[];
@@ -1,3 +1,3 @@
1
- export * from './hookUtils';
2
- export * from './utils';
3
- export * from './constants';
1
+ export * from './hookUtils';
2
+ export * from './utils';
3
+ export * from './constants';
@@ -0,0 +1,3 @@
1
+ import { SyntheticEvent } from 'react';
2
+ export declare function detectScrollToBottom(event: SyntheticEvent<HTMLDivElement>): boolean;
3
+ export declare const hexToRGBa: (hex: string, opacity: number) => string;
@@ -0,0 +1 @@
1
+ export { BasiqConnect } from './BasiqConnect';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./connect-auth.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./connect-auth.cjs.development.js')
8
+ }
@@ -0,0 +1,36 @@
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
+ missing_authentication_token: string;
33
+ };
34
+ };
35
+ };
36
+ export default i18n;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,4 @@
1
+ export declare const Root: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const AppContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const AppContainerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const AppContainerPage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,15 @@
1
+ export declare const devices: {
2
+ fold: string;
3
+ phoneXs: string;
4
+ phone: string;
5
+ phoneLandscape: string;
6
+ tabletOnly: string;
7
+ iPadProLandscape: string;
8
+ iPadProPortrait: string;
9
+ iPad: string;
10
+ tablet: string;
11
+ desktop: string;
12
+ laptop: string;
13
+ laptopRegularScreenWidth: string;
14
+ bigDesktop: string;
15
+ };
@@ -1,4 +1,4 @@
1
- export * from './ui';
2
- export * from './theme';
3
- export * from './pages';
4
- export * from './base';
1
+ export * from './ui';
2
+ export * from './theme';
3
+ export * from './pages';
4
+ export * from './base';
@@ -0,0 +1,10 @@
1
+ interface IInputStyled {
2
+ filled: boolean;
3
+ error: boolean;
4
+ }
5
+ export declare const PageConnectFooterControl: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const PageConnectFooterText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const InputStyled: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, IInputStyled, never>;
8
+ export declare const InputContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const DivAsLink: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
+ export {};
@@ -0,0 +1,23 @@
1
+ interface IPageStyledProps {
2
+ buttonCount?: number;
3
+ horizontal?: boolean;
4
+ }
5
+ interface IStatusMessage {
6
+ error?: boolean;
7
+ }
8
+ interface IPageControlsSectionProps {
9
+ notEmpty: boolean;
10
+ }
11
+ interface IHorizontalProps {
12
+ horizontal?: boolean;
13
+ }
14
+ export declare const PageStyled: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IPageStyledProps, never>;
15
+ export declare const PageSubtitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
+ export declare const PageMainContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
17
+ export declare const PageControlsSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IPageControlsSectionProps, never>;
18
+ export declare const PageShadowWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IHorizontalProps, never>;
19
+ export declare const PageShadow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
+ export declare const PageHeader: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, {}, never>;
21
+ export declare const PageContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
22
+ export declare const StatusMessage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IStatusMessage, never>;
23
+ export {};
@@ -1,4 +1,4 @@
1
- export * from './basic';
2
- export * from './auth';
3
- export * from './start';
4
- export * from './notFound';
1
+ export * from './basic';
2
+ export * from './auth';
3
+ export * from './start';
4
+ export * from './notFound';
@@ -0,0 +1,9 @@
1
+ interface IStatusScreenCircleContainer {
2
+ type: 'success' | 'warning' | 'error';
3
+ }
4
+ export declare const PageStatusScreenMain: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const PageStatusScreenContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const StatusScreenCircleContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IStatusScreenCircleContainer, never>;
7
+ export declare const StatusScreenErrorCode: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const PageSuccessImgContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare const InnerContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
2
+ export default _default;
@@ -0,0 +1,45 @@
1
+ export declare const theme: {
2
+ color: {
3
+ white: string;
4
+ porcelain: string;
5
+ porcelainSecond: string;
6
+ porcelainLight: string;
7
+ porcelainSecondLight: string;
8
+ iron: string;
9
+ ironSecond: string;
10
+ casper: string;
11
+ mercury: string;
12
+ dodgerBlue: string;
13
+ dodgerBlueLight: string;
14
+ royalBlue: string;
15
+ bostonBlue: string;
16
+ endeavour: string;
17
+ congressBlue: string;
18
+ brilliantBlue: string;
19
+ curiousBlue: string;
20
+ iceberg: string;
21
+ linkWater: string;
22
+ spindle: string;
23
+ cyprus: string;
24
+ gossamer: string;
25
+ emerald: string;
26
+ hokeyPokey: string;
27
+ hokeyPokeyLight: string;
28
+ anzac: string;
29
+ cerise: string;
30
+ sunsetOrange: string;
31
+ wePeep: string;
32
+ ebony: string;
33
+ abbey: string;
34
+ osloGrey: string;
35
+ loblolly: string;
36
+ jumbo: string;
37
+ blackPearl: string;
38
+ blueBayoux: string;
39
+ };
40
+ mixin: {
41
+ subtitle: () => string;
42
+ title: () => string;
43
+ };
44
+ };
45
+ export declare type ThemeType = typeof theme;
@@ -0,0 +1,10 @@
1
+ interface IIconWrapper {
2
+ rotating: boolean;
3
+ }
4
+ export declare const rotate: import("styled-components").Keyframes;
5
+ export declare const SimpleButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const H4Styled: import("styled-components").StyledComponent<"h4", import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const Spacer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const IconWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, IIconWrapper, never>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ButtonType } from '../../components/ui/Button';
2
+ export declare const ButtonLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
3
+ interface IButtonStyled {
4
+ buttonType?: ButtonType;
5
+ disabled: boolean;
6
+ onClick: () => void;
7
+ }
8
+ export declare const ButtonStyled: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, IButtonStyled, never>;
9
+ export {};
@@ -1,3 +1,3 @@
1
- export * from './basic';
2
- export * from './button';
3
- export * from './modals';
1
+ export * from './basic';
2
+ export * from './button';
3
+ export * from './modals';
@@ -0,0 +1,7 @@
1
+ interface IModalStyled {
2
+ disableTransparency: boolean;
3
+ }
4
+ export declare const ModalStyled: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IModalStyled, never>;
5
+ export declare const LoadingModalStyled: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IModalStyled, never>;
6
+ export declare const LoadingModalText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
7
+ export {};
package/package.json CHANGED
@@ -1,99 +1,64 @@
1
1
  {
2
- "name": "@basiq/connect-auth",
3
- "version": "0.1.7",
4
- "dependencies": {
5
- "@testing-library/jest-dom": "^5.16.4",
6
- "@testing-library/react": "^13.2.0",
7
- "@testing-library/user-event": "^13.5.0",
8
- "@types/jest": "^27.5.0",
9
- "@types/node": "^16.11.33",
10
- "@types/react": "^18.0.9",
11
- "@types/react-dom": "^18.0.3",
12
- "@types/styled-components": "^5.1.25",
13
- "awesome-typescript-loader": "^5.2.1",
14
- "i18next": "^21.8.1",
15
- "react": "^18.1.0",
16
- "react-dom": "^18.1.0",
17
- "react-i18next": "^11.16.9",
18
- "react-router-dom": "^6.3.0",
19
- "react-scripts": "5.0.1",
20
- "styled-components": "^5.3.5",
21
- "typescript": "^4.6.4",
22
- "web-vitals": "^2.1.4"
2
+ "version": "0.1.8",
3
+ "license": "MIT",
4
+ "main": "dist/index.js",
5
+ "typings": "dist/index.d.ts",
6
+ "files": ["dist"],
7
+ "engines": {
8
+ "node": ">=10"
23
9
  },
24
10
  "scripts": {
25
- "start": "react-app-rewired start",
26
- "build": "react-app-rewired build",
27
- "test": "react-app-rewired test",
28
- "eject": "react-scripts eject",
29
- "lint": "eslint .",
30
- "lint:fix": "eslint --fix",
31
- "format": "prettier --write './**/*.{js,jsx,ts,tsx,css,scss,json}' --config ./.prettierrc"
32
- },
33
- "browserslist": {
34
- "production": [
35
- ">0.2%",
36
- "not dead",
37
- "not op_mini all"
38
- ],
39
- "development": [
40
- "last 1 chrome version",
41
- "last 1 firefox version",
42
- "last 1 safari version"
43
- ]
11
+ "start": "tsdx watch",
12
+ "build": "tsdx build",
13
+ "test": "tsdx test --passWithNoTests",
14
+ "lint": "tsdx lint",
15
+ "prepare": "tsdx build",
16
+ "size": "size-limit",
17
+ "analyze": "size-limit --why"
44
18
  },
45
- "ts-standard": {
46
- "project": "./tsconfig.json"
19
+ "peerDependencies": {
20
+ "react": ">=16"
47
21
  },
48
- "resolutions": {
49
- "styled-components": "^5"
50
- },
51
- "devDependencies": {
52
- "@babel/preset-env": "^7.18.2",
53
- "@babel/preset-react": "^7.17.12",
54
- "@babel/preset-typescript": "^7.16.7",
55
- "@typescript-eslint/eslint-plugin": "^5.26.0",
56
- "@typescript-eslint/parser": "^5.26.0",
57
- "babel-plugin-styled-components": "^2.0.7",
58
- "customize-cra": "^1.0.0",
59
- "eslint": "^8.16.0",
60
- "eslint-config-airbnb": "^19.0.4",
61
- "eslint-config-prettier": "^8.5.0",
62
- "eslint-import-resolver-typescript": "^2.7.1",
63
- "eslint-plugin-import": "^2.26.0",
64
- "eslint-plugin-jsx-a11y": "^6.5.1",
65
- "eslint-plugin-prettier": "^4.0.0",
66
- "eslint-plugin-react": "^7.30.0",
67
- "eslint-plugin-react-hooks": "^4.5.0",
68
- "prettier": "^2.6.2",
69
- "react-app-rewired": "^2.2.1",
70
- "ts-standard": "^11.0.0"
22
+ "husky": {
23
+ "hooks": {
24
+ "pre-commit": "tsdx lint"
25
+ }
71
26
  },
72
- "babel": {
73
- "presets": [
74
- "@babel/preset-typescript"
75
- ],
76
- "plugins": [
77
- "babel-plugin-styled-components"
78
- ]
27
+ "prettier": {
28
+ "printWidth": 80,
29
+ "semi": true,
30
+ "singleQuote": true,
31
+ "trailingComma": "es5"
79
32
  },
80
- "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
81
- "main": "index.js",
82
- "repository": {
83
- "type": "git",
84
- "url": "git+https://github.com/basiqio/connect-code-validaiton.git"
85
- },
86
- "keywords": [
87
- "sms",
88
- "code",
89
- "validation",
90
- "basiq",
91
- "connect"
92
- ],
33
+ "name": "@basiq/connect-auth",
93
34
  "author": "Basiq",
94
- "license": "ISC",
95
- "bugs": {
96
- "url": "https://github.com/basiqio/connect-code-validaiton/issues"
35
+ "module": "dist/connect-auth.esm.js",
36
+ "size-limit": [{
37
+ "path": "dist/connect-auth.cjs.production.min.js",
38
+ "limit": "10 KB"
39
+ }, {
40
+ "path": "dist/connect-auth.esm.js",
41
+ "limit": "10 KB"
42
+ }],
43
+ "devDependencies": {
44
+ "@size-limit/preset-small-lib": "^7.0.8",
45
+ "@types/react": "^18.0.10",
46
+ "@types/react-dom": "^18.0.5",
47
+ "husky": "^8.0.1",
48
+ "react": "^18.1.0",
49
+ "react-dom": "^18.1.0",
50
+ "size-limit": "^7.0.8",
51
+ "tsdx": "^0.14.1",
52
+ "tslib": "^2.4.0",
53
+ "typescript": "^3.9.10",
54
+ "rollup-plugin-url": "^3.0.1",
55
+ "@rollup/plugin-image": "^2.1.1",
56
+ "@types/styled-components": "^5.1.25",
57
+ "i18next": "^21.8.1",
58
+ "react-i18next": "^11.16.9"
59
+
97
60
  },
98
- "homepage": "https://github.com/basiqio/connect-code-validaiton#readme"
99
- }
61
+ "dependencies": {
62
+ "styled-components": "^5.3.5"
63
+ }
64
+ }
package/.babelrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"]
3
- }
package/.eslintrc.json DELETED
@@ -1,47 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2021": true
5
- },
6
- "extends": [
7
- "plugin:react/recommended",
8
- "airbnb",
9
- "eslint:recommended",
10
- "plugin:@typescript-eslint/recommended",
11
- "prettier" // Add this line!
12
- ],
13
- "parser": "@typescript-eslint/parser",
14
- "parserOptions": {
15
- "ecmaFeatures": {
16
- "jsx": true
17
- },
18
- "ecmaVersion": "latest",
19
- "sourceType": "module"
20
- },
21
- "plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"],
22
- "rules": {
23
- "no-use-before-define": "off",
24
- "react/require-default-props": "off",
25
- "react/jsx-no-useless-fragment": "off",
26
- "react/no-array-index-key": "off",
27
- "no-unused-vars": "warn",
28
- "no-nested-ternary": "off",
29
- "import/prefer-default-export": "off",
30
- "@typescript-eslint/no-empty-interface": "off",
31
- "@typescript-eslint/no-use-before-define": ["error"],
32
- "react/jsx-filename-extension": ["warn", { "extensions": [".ts", ".tsx"] }],
33
- "import/extensions": [
34
- "error",
35
- "ignorePackages",
36
- {
37
- "ts": "never",
38
- "tsx": "never"
39
- }
40
- ]
41
- },
42
- "settings": {
43
- "import/resolver": {
44
- "typescript": {}
45
- }
46
- }
47
- }
package/.prettierrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "proseWrap": "preserve",
3
- "tabWidth": 4,
4
- "arrowParens": "always",
5
- "singleQuote": true,
6
- "jsxBracketSameLine": false,
7
- "printWidth": 150,
8
- "useTabs": true,
9
- "bracketSpacing": true,
10
- "trailingComma": "none",
11
- "endOfLine": "lf"
12
- }
@@ -1,12 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/no-var-requires,import/no-extraneous-dependencies
2
- const { override, addWebpackModuleRule} = require("customize-cra");
3
-
4
- module.exports = override(
5
- addWebpackModuleRule({
6
- test: /\.(js|jsx|ts|tsx)$/,
7
- exclude: /node_modules/,
8
- use: {
9
- loader: 'babel-loader'
10
- }
11
- })
12
- );
package/index.js DELETED
@@ -1 +0,0 @@
1
- export {default as BasiqConnect} from './src/index';
Binary file
package/public/index.html DELETED
@@ -1,43 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <meta name="theme-color" content="#000000" />
8
- <meta
9
- name="description"
10
- content="Web site created using create-react-app"
11
- />
12
- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
- <!--
14
- manifest.json provides metadata used when your web app is installed on a
15
- user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16
- -->
17
- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18
- <!--
19
- Notice the use of %PUBLIC_URL% in the tags above.
20
- It will be replaced with the URL of the `public` folder during the build.
21
- Only files inside the `public` folder can be referenced from the HTML.
22
-
23
- Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24
- work correctly both with client-side routing and a non-root public URL.
25
- Learn how to configure a non-root public URL by running `npm run build`.
26
- -->
27
- <title>Basiq Connect</title>
28
- </head>
29
- <body>
30
- <noscript>You need to enable JavaScript to run this app.</noscript>
31
- <div id="root"></div>
32
- <!--
33
- This HTML file is a template.
34
- If you open it directly in the browser, you will see an empty page.
35
-
36
- You can add webfonts, meta tags, or analytics to this file.
37
- The build step will place the bundled scripts into the <body> tag.
38
-
39
- To begin the development, run `npm start` or `yarn start`.
40
- To create a production bundle, use `npm run build` or `yarn build`.
41
- -->
42
- </body>
43
- </html>
Binary file
Binary file
@@ -1,25 +0,0 @@
1
- {
2
- "short_name": "React App",
3
- "name": "Create React App Sample",
4
- "icons": [
5
- {
6
- "src": "favicon.ico",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon"
9
- },
10
- {
11
- "src": "logo192.png",
12
- "type": "image/png",
13
- "sizes": "192x192"
14
- },
15
- {
16
- "src": "logo512.png",
17
- "type": "image/png",
18
- "sizes": "512x512"
19
- }
20
- ],
21
- "start_url": ".",
22
- "display": "standalone",
23
- "theme_color": "#000000",
24
- "background_color": "#ffffff"
25
- }
package/public/robots.txt DELETED
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
package/src/App.css DELETED
@@ -1,38 +0,0 @@
1
- .App {
2
- text-align: center;
3
- }
4
-
5
- .App-logo {
6
- height: 40vmin;
7
- pointer-events: none;
8
- }
9
-
10
- @media (prefers-reduced-motion: no-preference) {
11
- .App-logo {
12
- animation: App-logo-spin infinite 20s linear;
13
- }
14
- }
15
-
16
- .App-header {
17
- background-color: #282c34;
18
- min-height: 100vh;
19
- display: flex;
20
- flex-direction: column;
21
- align-items: center;
22
- justify-content: center;
23
- font-size: calc(10px + 2vmin);
24
- color: white;
25
- }
26
-
27
- .App-link {
28
- color: #61dafb;
29
- }
30
-
31
- @keyframes App-logo-spin {
32
- from {
33
- transform: rotate(0deg);
34
- }
35
- to {
36
- transform: rotate(360deg);
37
- }
38
- }
package/src/App.test.tsx DELETED
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { render, screen } from '@testing-library/react';
3
- import App from './App';
4
-
5
- test('renders learn react link', () => {
6
- render(<App />);
7
- const linkElement = screen.getByText(/learn react/i);
8
- expect(linkElement).toBeInTheDocument();
9
- });