@basiq/connect-auth 0.1.5 → 0.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +1 -0
- package/dist/25001c0659b6d43e86d2ee06256a7f63.otf +0 -0
- package/dist/9763eea8f13903a473622431f7cb7c5c.otf +0 -0
- package/dist/main.js +2 -0
- package/dist/main.js.LICENSE.txt +8 -0
- package/package.json +18 -13
- package/src/App.d.ts +3 -0
- package/src/App.js +141 -0
- package/src/App.test.d.ts +1 -0
- package/src/App.test.js +13 -0
- package/src/App.tsx +0 -1
- package/src/actions/actions.d.ts +22 -0
- package/src/actions/actions.js +140 -0
- package/src/components/modals/LoadingModal.d.ts +8 -0
- package/src/components/modals/LoadingModal.js +20 -0
- package/src/components/modals/LoadingModal.tsx +1 -1
- package/src/components/modals/index.d.ts +1 -0
- package/src/components/modals/index.js +8 -0
- package/src/components/pages/AuthScreen.d.ts +9 -0
- package/src/components/pages/AuthScreen.js +148 -0
- package/src/components/pages/NotFound.d.ts +6 -0
- package/src/components/pages/NotFound.js +27 -0
- package/src/components/pages/Page.d.ts +18 -0
- package/src/components/pages/Page.js +24 -0
- package/src/components/pages/StartScreen.d.ts +9 -0
- package/src/components/pages/StartScreen.js +127 -0
- package/src/components/pages/index.d.ts +4 -0
- package/src/components/pages/index.js +14 -0
- package/src/components/ui/Button.d.ts +10 -0
- package/src/components/ui/Button.js +17 -0
- package/src/components/ui/Modal.d.ts +9 -0
- package/src/components/ui/Modal.js +17 -0
- package/src/components/ui/icon.d.ts +7 -0
- package/src/components/ui/icon.js +13 -0
- package/src/components/ui/index.d.ts +1 -0
- package/src/components/ui/index.js +8 -0
- package/src/helpers/constants.d.ts +1 -0
- package/src/helpers/constants.js +5 -0
- package/src/helpers/hookUtils.d.ts +2 -0
- package/src/helpers/hookUtils.js +10 -0
- package/src/helpers/index.d.ts +3 -0
- package/src/helpers/index.js +19 -0
- package/src/helpers/utils.d.ts +3 -0
- package/src/helpers/utils.js +15 -0
- package/src/index.d.ts +6 -0
- package/src/index.js +23 -0
- package/src/index.tsx +4 -4
- package/src/locales/i18n.d.ts +35 -0
- package/src/locales/i18n.js +28 -0
- package/src/reportWebVitals.d.ts +3 -0
- package/src/reportWebVitals.js +38 -0
- package/src/setupTests.d.ts +1 -0
- package/src/setupTests.js +7 -0
- package/src/styledComponents/base.d.ts +4 -0
- package/src/styledComponents/base.js +32 -0
- package/src/styledComponents/breakpoints.d.ts +15 -0
- package/src/styledComponents/breakpoints.js +35 -0
- package/src/styledComponents/index.d.ts +4 -0
- package/src/styledComponents/index.js +20 -0
- package/src/styledComponents/pages/auth.d.ts +10 -0
- package/src/styledComponents/pages/auth.js +29 -0
- package/src/styledComponents/pages/basic.d.ts +23 -0
- package/src/styledComponents/pages/basic.js +75 -0
- package/src/styledComponents/pages/index.d.ts +4 -0
- package/src/styledComponents/pages/index.js +20 -0
- package/src/styledComponents/pages/notFound.d.ts +9 -0
- package/src/styledComponents/pages/notFound.js +37 -0
- package/src/styledComponents/pages/start.d.ts +1 -0
- package/src/styledComponents/pages/start.js +13 -0
- package/src/styledComponents/styles.d.ts +2 -0
- package/src/styledComponents/styles.js +14 -0
- package/src/styledComponents/theme.d.ts +45 -0
- package/src/styledComponents/theme.js +47 -0
- package/src/styledComponents/ui/basic.d.ts +10 -0
- package/src/styledComponents/ui/basic.js +71 -0
- package/src/styledComponents/ui/button.d.ts +9 -0
- package/src/styledComponents/ui/button.js +65 -0
- package/src/styledComponents/ui/index.d.ts +3 -0
- package/src/styledComponents/ui/index.js +19 -0
- package/src/styledComponents/ui/modals.d.ts +7 -0
- package/src/styledComponents/ui/modals.js +26 -0
- package/tsconfig.json +8 -5
- package/webpack.config.js +66 -0
- package/.babelrc +0 -0
- package/config-overrides.js +0 -8
- package/src/App.css +0 -38
- package/src/index.css +0 -11
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
mode: 'production',
|
|
5
|
+
resolve: {
|
|
6
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx']
|
|
7
|
+
},
|
|
8
|
+
entry: {
|
|
9
|
+
main: './src/index.tsx'
|
|
10
|
+
},
|
|
11
|
+
output: {
|
|
12
|
+
path: path.resolve(__dirname, 'dist'),
|
|
13
|
+
filename: 'main.js',
|
|
14
|
+
library: 'BasiqConnect',
|
|
15
|
+
libraryTarget: 'umd',
|
|
16
|
+
publicPath: '/dist/',
|
|
17
|
+
umdNamedDefine: true
|
|
18
|
+
},
|
|
19
|
+
module: {
|
|
20
|
+
rules: [
|
|
21
|
+
{
|
|
22
|
+
test: /\.ts|\.tsx$/,
|
|
23
|
+
use: 'ts-loader',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
test: /.*\/src\/.*\.(js|jsx)$/,
|
|
27
|
+
exclude: /(node_modules|bower_components)/,
|
|
28
|
+
use: {
|
|
29
|
+
loader: 'babel-loader'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
test: /\.(gif|png|jpe?g|svg)$/i,
|
|
34
|
+
use: {
|
|
35
|
+
loader: 'url-loader',
|
|
36
|
+
options: {
|
|
37
|
+
limit: 10000,
|
|
38
|
+
name: '[name].[ext]'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
|
44
|
+
loader: "file-loader"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
test: /\.html$/,
|
|
48
|
+
use: ['html-loader']
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
externals: {
|
|
53
|
+
react: {
|
|
54
|
+
commonjs: 'react',
|
|
55
|
+
commonjs2: 'react',
|
|
56
|
+
amd: 'React',
|
|
57
|
+
root: 'React'
|
|
58
|
+
},
|
|
59
|
+
'react-dom': {
|
|
60
|
+
commonjs: 'react-dom',
|
|
61
|
+
commonjs2: 'react-dom',
|
|
62
|
+
amd: 'ReactDOM',
|
|
63
|
+
root: 'ReactDOM'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
package/.babelrc
DELETED
|
File without changes
|
package/config-overrides.js
DELETED
|
@@ -1,8 +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({ test: /\.ts|\.tsx$/,
|
|
6
|
-
use: 'awesome-typescript-loader',
|
|
7
|
-
include: __dirname})
|
|
8
|
-
);
|
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/index.css
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
4
|
-
sans-serif;
|
|
5
|
-
-webkit-font-smoothing: antialiased;
|
|
6
|
-
-moz-osx-font-smoothing: grayscale;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
code {
|
|
10
|
-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
|
|
11
|
-
}
|