@tap-payments/os-micro-frontend-shared 0.1.74-test.1 → 0.1.75-test.2

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 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
+ ```
@@ -1,2 +1,2 @@
1
1
  import { AppWindowProviderProps } from './type';
2
- export declare function AppWindowContextProvider({ children, isOpen, onClose, defaultWindowHeight, defaultWindowWidth }: AppWindowProviderProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AppWindowContextProvider({ children, isOpen, onClose, defaultWindowHeight, defaultWindowWidth, initialPosition, }: AppWindowProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -4,13 +4,14 @@ import { useWindowDimensions } from '../../../hooks/index.js';
4
4
  import { AppWindowContext } from './context';
5
5
  const DEFAULT_VIEWER_WIDTH = 555;
6
6
  const DEFAULT_VIEWER_HEIGHT = 545;
7
- export function AppWindowContextProvider({ children, isOpen, onClose, defaultWindowHeight, defaultWindowWidth }) {
7
+ export function AppWindowContextProvider({ children, isOpen, onClose, defaultWindowHeight, defaultWindowWidth, initialPosition, }) {
8
+ var _a, _b;
8
9
  const { height, width } = useWindowDimensions();
9
10
  const viewerDefaultWidth = defaultWindowWidth || DEFAULT_VIEWER_WIDTH;
10
11
  const viewerDefaultHeight = defaultWindowHeight || DEFAULT_VIEWER_HEIGHT;
11
12
  const [position, setPosition] = useState({
12
- x: width / 2 + viewerDefaultWidth / 2,
13
- y: height / 2 - viewerDefaultHeight / 2,
13
+ x: (_a = initialPosition === null || initialPosition === void 0 ? void 0 : initialPosition.x) !== null && _a !== void 0 ? _a : width / 2 + viewerDefaultWidth / 2,
14
+ y: (_b = initialPosition === null || initialPosition === void 0 ? void 0 : initialPosition.y) !== null && _b !== void 0 ? _b : height / 2 - viewerDefaultHeight / 2,
14
15
  });
15
16
  const [isMaximized, setIsMaximized] = useState(false);
16
17
  const [isResized, setIsResized] = useState(false);
@@ -6,6 +6,10 @@ export interface AppWindowProviderProps {
6
6
  onClose: () => void;
7
7
  defaultWindowWidth?: number;
8
8
  defaultWindowHeight?: number;
9
+ initialPosition?: {
10
+ x?: number | null;
11
+ y?: number | null;
12
+ };
9
13
  }
10
14
  export interface AppWindowContextProps {
11
15
  position: {
@@ -7,12 +7,12 @@ export declare const refundTableCellWidth: {
7
7
  readonly id: {
8
8
  readonly default: "225px";
9
9
  readonly text: "225px";
10
- readonly sheet: "225px";
10
+ readonly sheet: "245px";
11
11
  };
12
12
  readonly date: {
13
13
  readonly default: "170px";
14
14
  readonly text: "170px";
15
- readonly sheet: "170px";
15
+ readonly sheet: "129px";
16
16
  };
17
17
  readonly order: {
18
18
  readonly default: "80px";
@@ -27,7 +27,7 @@ export declare const refundTableCellWidth: {
27
27
  readonly customer: {
28
28
  readonly default: "180px";
29
29
  readonly text: "180px";
30
- readonly sheet: "180px";
30
+ readonly sheet: "145px";
31
31
  };
32
32
  readonly device: {
33
33
  readonly default: "100px";
@@ -47,17 +47,57 @@ export declare const refundTableCellWidth: {
47
47
  readonly payment_agreement: {
48
48
  readonly default: "50px";
49
49
  readonly text: "200px";
50
- readonly sheet: "200px";
50
+ readonly sheet: "165px";
51
+ };
52
+ readonly payment_initiated: {
53
+ readonly default: "150px";
54
+ readonly text: "150px";
55
+ readonly sheet: "150px";
56
+ };
57
+ readonly payment_issuers: {
58
+ readonly default: "150px";
59
+ readonly text: "150px";
60
+ readonly sheet: "350px";
61
+ };
62
+ readonly payment_method: {
63
+ readonly default: "150px";
64
+ readonly text: "150px";
65
+ readonly sheet: "145px";
66
+ };
67
+ readonly payment_type: {
68
+ readonly default: "150px";
69
+ readonly text: "150px";
70
+ readonly sheet: "120px";
71
+ };
72
+ readonly payment_scheme: {
73
+ readonly default: "150px";
74
+ readonly text: "150px";
75
+ readonly sheet: "145px";
76
+ };
77
+ readonly auth_status: {
78
+ readonly default: "150px";
79
+ readonly text: "150px";
80
+ readonly sheet: "165px";
81
+ };
82
+ readonly auth_type: {
83
+ readonly default: "150px";
84
+ readonly text: "150px";
85
+ readonly sheet: "155px";
86
+ };
87
+ readonly eci: {
88
+ readonly default: "150px";
89
+ readonly text: "150px";
90
+ readonly sheet: "100px";
51
91
  };
52
92
  readonly amount: {
53
93
  readonly default: "195px";
54
94
  readonly text: "195px";
55
- readonly sheet: "195px";
95
+ readonly sheet: "550px";
56
96
  };
57
97
  readonly destinations: {
58
98
  readonly default: "70px";
59
99
  readonly text: "240px";
60
- readonly sheet: "240px";
100
+ readonly sheet: "340px";
61
101
  };
62
102
  readonly balance: {
63
103
  readonly default: "120px";
@@ -67,7 +107,7 @@ export declare const refundTableCellWidth: {
67
107
  readonly status: {
68
108
  readonly default: "100px";
69
109
  readonly text: "100px";
70
- readonly sheet: "100px";
110
+ readonly sheet: "170px";
71
111
  };
72
112
  readonly merchant: {
73
113
  readonly default: "110px";
@@ -77,7 +117,7 @@ export declare const refundTableCellWidth: {
77
117
  readonly reference: {
78
118
  readonly default: "95px";
79
119
  readonly text: "180px";
80
- readonly sheet: "180px";
120
+ readonly sheet: "250px";
81
121
  };
82
122
  readonly fees: {
83
123
  readonly default: "100px";
@@ -102,7 +142,7 @@ export declare const refundTableCellWidth: {
102
142
  readonly actions: {
103
143
  readonly default: "100px";
104
144
  readonly text: "100px";
105
- readonly sheet: "100px";
145
+ readonly sheet: "85px";
106
146
  };
107
147
  readonly payment_id: {
108
148
  readonly default: "150px";
@@ -127,7 +167,12 @@ export declare const refundTableCellWidth: {
127
167
  readonly card_no: {
128
168
  readonly default: "120px";
129
169
  readonly text: "120px";
130
- readonly sheet: "120px";
170
+ readonly sheet: "200px";
171
+ };
172
+ readonly card_number: {
173
+ readonly default: "120px";
174
+ readonly text: "120px";
175
+ readonly sheet: "155px";
131
176
  };
132
177
  readonly meta: {
133
178
  readonly default: "52px";
@@ -7,12 +7,12 @@ export const refundTableCellWidth = {
7
7
  id: {
8
8
  default: '225px',
9
9
  text: '225px',
10
- sheet: '225px',
10
+ sheet: '245px',
11
11
  },
12
12
  date: {
13
13
  default: '170px',
14
14
  text: '170px',
15
- sheet: '170px',
15
+ sheet: '129px',
16
16
  },
17
17
  order: {
18
18
  default: '80px',
@@ -27,7 +27,7 @@ export const refundTableCellWidth = {
27
27
  customer: {
28
28
  default: '180px',
29
29
  text: '180px',
30
- sheet: '180px',
30
+ sheet: '145px',
31
31
  },
32
32
  device: {
33
33
  default: '100px',
@@ -47,17 +47,57 @@ export const refundTableCellWidth = {
47
47
  payment_agreement: {
48
48
  default: '50px',
49
49
  text: '200px',
50
- sheet: '200px',
50
+ sheet: '165px',
51
+ },
52
+ payment_initiated: {
53
+ default: '150px',
54
+ text: '150px',
55
+ sheet: '150px',
56
+ },
57
+ payment_issuers: {
58
+ default: '150px',
59
+ text: '150px',
60
+ sheet: '350px',
61
+ },
62
+ payment_method: {
63
+ default: '150px',
64
+ text: '150px',
65
+ sheet: '145px',
66
+ },
67
+ payment_type: {
68
+ default: '150px',
69
+ text: '150px',
70
+ sheet: '120px',
71
+ },
72
+ payment_scheme: {
73
+ default: '150px',
74
+ text: '150px',
75
+ sheet: '145px',
76
+ },
77
+ auth_status: {
78
+ default: '150px',
79
+ text: '150px',
80
+ sheet: '165px',
81
+ },
82
+ auth_type: {
83
+ default: '150px',
84
+ text: '150px',
85
+ sheet: '155px',
86
+ },
87
+ eci: {
88
+ default: '150px',
89
+ text: '150px',
90
+ sheet: '100px',
51
91
  },
52
92
  amount: {
53
93
  default: '195px',
54
94
  text: '195px',
55
- sheet: '195px',
95
+ sheet: '550px',
56
96
  },
57
97
  destinations: {
58
98
  default: '70px',
59
99
  text: '240px',
60
- sheet: '240px',
100
+ sheet: '340px',
61
101
  },
62
102
  balance: {
63
103
  default: '120px',
@@ -67,7 +107,7 @@ export const refundTableCellWidth = {
67
107
  status: {
68
108
  default: '100px',
69
109
  text: '100px',
70
- sheet: '100px',
110
+ sheet: '170px',
71
111
  },
72
112
  merchant: {
73
113
  default: '110px',
@@ -77,7 +117,7 @@ export const refundTableCellWidth = {
77
117
  reference: {
78
118
  default: '95px',
79
119
  text: '180px',
80
- sheet: '180px',
120
+ sheet: '250px',
81
121
  },
82
122
  fees: {
83
123
  default: '100px',
@@ -102,7 +142,7 @@ export const refundTableCellWidth = {
102
142
  actions: {
103
143
  default: '100px',
104
144
  text: '100px',
105
- sheet: '100px',
145
+ sheet: '85px',
106
146
  },
107
147
  payment_id: {
108
148
  default: '150px',
@@ -127,7 +167,12 @@ export const refundTableCellWidth = {
127
167
  card_no: {
128
168
  default: '120px',
129
169
  text: '120px',
130
- sheet: '120px',
170
+ sheet: '200px',
171
+ },
172
+ card_number: {
173
+ default: '120px',
174
+ text: '120px',
175
+ sheet: '155px',
131
176
  },
132
177
  meta: {
133
178
  default: '52px',
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.1.74-test.1",
5
- "testVersion": 1,
4
+ "version": "0.1.75-test.2",
5
+ "testVersion": 2,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",