@seamlessdocs/payment-modals 1.0.49 → 1.0.51
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/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamlessdocs/payment-modals",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.0.51",
|
|
4
|
+
"description": "Payment modals for SeamlessDocs",
|
|
5
5
|
"main": "build/payment-modals.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"url": "https://github.com/SeamlessDocsDev/PaymentModals"
|
|
8
|
+
},
|
|
6
9
|
"scripts": {
|
|
7
10
|
"start": "webpack-dev-server --mode development",
|
|
8
11
|
"dev": "webpack --mode development ./src/index.jsx --output ./build/payment-modals.js",
|
|
@@ -50,7 +50,7 @@ const ACHPaymentModal = ({
|
|
|
50
50
|
{' submission + '}
|
|
51
51
|
<currency>$</currency>
|
|
52
52
|
<money>{Number(feeAmount).toFixed(2)}</money>
|
|
53
|
-
{
|
|
53
|
+
{feeName}
|
|
54
54
|
</div>
|
|
55
55
|
)}
|
|
56
56
|
</div>
|
|
@@ -77,7 +77,7 @@ ACHPaymentModal.propTypes = {
|
|
|
77
77
|
ACHPaymentModal.defaultProps = {
|
|
78
78
|
feeAmount: '',
|
|
79
79
|
description: '',
|
|
80
|
-
feeName: ''
|
|
80
|
+
feeName: 'additional fee'
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
export default ACHPaymentModal;
|
package/webpack.config.js
CHANGED
|
@@ -1,78 +1,81 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
|
|
3
|
-
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
3
|
+
module.exports = (_env, argv) => {
|
|
4
|
+
const isProduction = argv.mode === 'production';
|
|
5
|
+
return {
|
|
6
|
+
entry: {
|
|
7
|
+
main: './src/index.jsx'
|
|
8
|
+
},
|
|
9
|
+
output: {
|
|
10
|
+
filename: 'payment-modals.js',
|
|
11
|
+
path: '/build',
|
|
12
|
+
library: 'payment-modals',
|
|
13
|
+
libraryTarget: 'umd',
|
|
14
|
+
umdNamedDefine: true
|
|
15
|
+
},
|
|
16
|
+
module: {
|
|
17
|
+
rules: [
|
|
18
|
+
{
|
|
19
|
+
test: /\.(js|jsx)$/,
|
|
20
|
+
exclude: /node_modules/,
|
|
21
|
+
use: {
|
|
22
|
+
loader: 'babel-loader'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
test: /\.css$/,
|
|
27
|
+
use: [
|
|
28
|
+
'style-loader',
|
|
29
|
+
{
|
|
30
|
+
loader: 'css-loader',
|
|
31
|
+
options: {
|
|
32
|
+
importLoaders: 1,
|
|
33
|
+
modules: true
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
include: /\.module\.css$/
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
test: /\.css$/,
|
|
41
|
+
use: ['style-loader', 'css-loader'],
|
|
42
|
+
exclude: /\.module\.css$/
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
test: /\.(svg|png|jpg|jpeg|gif)$/,
|
|
46
|
+
use: {
|
|
47
|
+
loader: 'url-loader',
|
|
29
48
|
options: {
|
|
30
|
-
|
|
31
|
-
modules: true
|
|
49
|
+
name: '[path][name].[ext]'
|
|
32
50
|
}
|
|
33
51
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
test: /\.(svg|png|jpg|jpeg|gif)$/,
|
|
44
|
-
use: {
|
|
45
|
-
loader: 'url-loader',
|
|
46
|
-
options: {
|
|
47
|
-
name: '[path][name].[ext]'
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
test: /\.(html)$/,
|
|
53
|
-
use: {
|
|
54
|
-
loader: 'html-loader',
|
|
55
|
-
options: {
|
|
56
|
-
attrs: ['img:src', 'link:href']
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
test: /\.(html)$/,
|
|
55
|
+
use: {
|
|
56
|
+
loader: 'html-loader',
|
|
57
|
+
options: {
|
|
58
|
+
attrs: ['img:src', 'link:href']
|
|
59
|
+
}
|
|
57
60
|
}
|
|
58
61
|
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
devServer: {
|
|
65
|
+
port: 9000,
|
|
66
|
+
compress: true,
|
|
67
|
+
open: true,
|
|
68
|
+
publicPath: '/build/',
|
|
69
|
+
contentBase: path.join(__dirname, 'build'),
|
|
70
|
+
historyApiFallback: true
|
|
71
|
+
},
|
|
72
|
+
devtool: isProduction ? false : 'inline-source-map',
|
|
73
|
+
resolve: {
|
|
74
|
+
modules: [path.join(__dirname, 'src'), 'node_modules'],
|
|
75
|
+
extensions: ['.js', '.jsx', '.scss'],
|
|
76
|
+
alias: {
|
|
77
|
+
'react-virtualized/List': 'react-virtualized/dist/es/List'
|
|
59
78
|
}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
devServer: {
|
|
63
|
-
port: 9000,
|
|
64
|
-
compress: true,
|
|
65
|
-
open: true,
|
|
66
|
-
publicPath: '/build/',
|
|
67
|
-
contentBase: path.join(__dirname, 'build'),
|
|
68
|
-
historyApiFallback: true
|
|
69
|
-
},
|
|
70
|
-
devtool: 'inline-source-map',
|
|
71
|
-
resolve: {
|
|
72
|
-
modules: [path.join(__dirname, 'src'), 'node_modules'],
|
|
73
|
-
extensions: ['.js', '.jsx', '.scss'],
|
|
74
|
-
alias: {
|
|
75
|
-
'react-virtualized/List': 'react-virtualized/dist/es/List'
|
|
76
79
|
}
|
|
77
|
-
}
|
|
80
|
+
};
|
|
78
81
|
};
|