@tap-payments/os-micro-frontend-shared 0.0.249-test.3 → 0.0.250-test.1
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/LICENSE +21 -21
- package/README.md +12 -12
- package/build/constants/payment.d.ts +5 -0
- package/build/constants/payment.js +38 -0
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +2 -2
- package/build/constants/table/cell/chargeTableCellWidth.js +2 -2
- package/build/types/analytics.d.ts +2 -1
- package/build/types/analytics.js +1 -0
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Tap Payments
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Tap Payments
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# os-micro-frontend-shared
|
|
2
|
-
|
|
3
|
-
## Publishing Workflow
|
|
4
|
-
|
|
5
|
-
1. Update version in package.json
|
|
6
|
-
2. Commit changes
|
|
7
|
-
3. Create and push a tag:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm version patch # or minor, major
|
|
11
|
-
git push origin main --tags
|
|
12
|
-
```
|
|
1
|
+
# os-micro-frontend-shared
|
|
2
|
+
|
|
3
|
+
## Publishing Workflow
|
|
4
|
+
|
|
5
|
+
1. Update version in package.json
|
|
6
|
+
2. Commit changes
|
|
7
|
+
3. Create and push a tag:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm version patch # or minor, major
|
|
11
|
+
git push origin main --tags
|
|
12
|
+
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { lightUrl } from './assets';
|
|
2
|
+
export const PAYMENT_TYPES = [
|
|
3
|
+
{
|
|
4
|
+
type: 'CARD',
|
|
5
|
+
label: 'Card',
|
|
6
|
+
icon: `${lightUrl}/payment-method/card.svg`,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
type: 'EXPRESS',
|
|
10
|
+
label: 'Express Checkout',
|
|
11
|
+
icon: `${lightUrl}/express_checkout.svg`,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'DEVICE',
|
|
15
|
+
label: 'Device',
|
|
16
|
+
icon: `${lightUrl}/device.svg`,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
type: 'PT_WALLET',
|
|
20
|
+
label: 'Pass-Thru Wallet',
|
|
21
|
+
icon: `${lightUrl}/passThruWallet.svg`,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: 'SV_WALLET',
|
|
25
|
+
label: 'Stored Value Wallet',
|
|
26
|
+
icon: `${lightUrl}/storedValueWallet.svg`,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: 'BNPL',
|
|
30
|
+
label: 'Buy Now Pay Later',
|
|
31
|
+
icon: `${lightUrl}/buyNowPayLater.svg`,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: 'CASH',
|
|
35
|
+
label: 'Cash Wallet',
|
|
36
|
+
icon: `${lightUrl}/cash.svg`,
|
|
37
|
+
},
|
|
38
|
+
];
|
|
@@ -77,7 +77,7 @@ export declare const chargeTableCellWidth: {
|
|
|
77
77
|
readonly merchant: {
|
|
78
78
|
readonly default: "100px";
|
|
79
79
|
readonly text: "150px";
|
|
80
|
-
readonly sheet: "
|
|
80
|
+
readonly sheet: "115px";
|
|
81
81
|
};
|
|
82
82
|
readonly charge: {
|
|
83
83
|
readonly default: "150px";
|
|
@@ -122,7 +122,7 @@ export declare const chargeTableCellWidth: {
|
|
|
122
122
|
readonly actions: {
|
|
123
123
|
readonly default: "100px";
|
|
124
124
|
readonly text: "100px";
|
|
125
|
-
readonly sheet: "
|
|
125
|
+
readonly sheet: "315px";
|
|
126
126
|
};
|
|
127
127
|
readonly payment_id: {
|
|
128
128
|
readonly default: "150px";
|
|
@@ -77,7 +77,7 @@ export const chargeTableCellWidth = {
|
|
|
77
77
|
merchant: {
|
|
78
78
|
default: '100px',
|
|
79
79
|
text: '150px',
|
|
80
|
-
sheet: '
|
|
80
|
+
sheet: '115px',
|
|
81
81
|
},
|
|
82
82
|
charge: {
|
|
83
83
|
default: '150px',
|
|
@@ -122,7 +122,7 @@ export const chargeTableCellWidth = {
|
|
|
122
122
|
actions: {
|
|
123
123
|
default: '100px',
|
|
124
124
|
text: '100px',
|
|
125
|
-
sheet: '
|
|
125
|
+
sheet: '315px',
|
|
126
126
|
},
|
|
127
127
|
payment_id: {
|
|
128
128
|
default: '150px',
|
|
@@ -27,5 +27,6 @@ export interface AnalyticsDetails {
|
|
|
27
27
|
export declare enum ChargeBreakDownType {
|
|
28
28
|
PaymentMethod = "PAYMENT_METHOD",
|
|
29
29
|
PaymentCurrency = "PAYMENT_CURRENCY",
|
|
30
|
-
PaymentScheme = "PAYMENT_SCHEME"
|
|
30
|
+
PaymentScheme = "PAYMENT_SCHEME",
|
|
31
|
+
PaymentType = "PAYMENT_TYPE"
|
|
31
32
|
}
|
package/build/types/analytics.js
CHANGED
|
@@ -3,4 +3,5 @@ export var ChargeBreakDownType;
|
|
|
3
3
|
ChargeBreakDownType["PaymentMethod"] = "PAYMENT_METHOD";
|
|
4
4
|
ChargeBreakDownType["PaymentCurrency"] = "PAYMENT_CURRENCY";
|
|
5
5
|
ChargeBreakDownType["PaymentScheme"] = "PAYMENT_SCHEME";
|
|
6
|
+
ChargeBreakDownType["PaymentType"] = "PAYMENT_TYPE";
|
|
6
7
|
})(ChargeBreakDownType || (ChargeBreakDownType = {}));
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.0.250-test.1",
|
|
5
|
+
"testVersion": 1,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|