@tap-payments/os-micro-frontend-shared 0.1.111-test.8 → 0.1.111-test.9

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.
@@ -1,2 +1,2 @@
1
1
  import { ReceiptViewerProps } from './type';
2
- export default function ReceiptViewer({ index, isWindowMinimized, windowOrder, onClose }: ReceiptViewerProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function ReceiptViewer({ index, isWindowMinimized, windowOrder, receiptContent, onClose }: ReceiptViewerProps): import("react/jsx-runtime").JSX.Element;
@@ -11,7 +11,7 @@ import JSONTitleBar from './components/ReceiptTitleBar';
11
11
  import { Container, TITLE_BAR_HEIGHT, VIEWER_HEIGHT, FOOTER_HEIGHT } from './style';
12
12
  const VIEWER_WIDTH = 502;
13
13
  const animationDuration = 0.5;
14
- export default function ReceiptViewer({ index, isWindowMinimized, windowOrder, onClose }) {
14
+ export default function ReceiptViewer({ index, isWindowMinimized, windowOrder, receiptContent, onClose }) {
15
15
  var _a, _b, _c, _d;
16
16
  const [isMaximized, setIsMaximized] = useState(false);
17
17
  const [isResized, setIsResized] = useState(false);
@@ -118,238 +118,5 @@ export default function ReceiptViewer({ index, isWindowMinimized, windowOrder, o
118
118
  background: 'transparent',
119
119
  position: 'fixed',
120
120
  width: '100%',
121
- } }, { children: _jsx(Box, Object.assign({ sx: (theme) => ({ background: theme.palette.common.white, width: '100%', height: '100%' }) }, { children: _jsx(Box, { id: "receipt-content", dangerouslySetInnerHTML: {
122
- __html: `<!DOCTYPE html>
123
- <html lang="en">
124
- <head>
125
- <meta charset="UTF-8" />
126
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
127
- <title>Receipt - 204723251031076213</title>
128
- <link rel="preconnect" href="https://fonts.googleapis.com" />
129
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
130
- <link
131
- rel="stylesheet"
132
- id="ls-google-fonts-css"
133
- href="http://fonts.googleapis.com/css?family=Lato:100,300,regular,700,900"
134
- type="text/css"
135
- media="all"
136
- />
137
- <style>
138
- * {
139
- padding: 0;
140
- margin: 0;
141
- font-family: inherit;
142
- -webkit-text-size-adjust: 100%;
143
- -ms-text-size-adjust: 100%;
144
- }
145
-
146
- body {
147
- display: block;
148
- margin: 0 auto;
149
- clear: both;
150
- font-family: Helvetica, Arial, sans-serif;
151
- color: #4b4847;
152
- background-color: #f6f6f6;
153
- font-size: 14px;
154
- }
155
-
156
- .root {
157
- display: flex;
158
- flex-direction: column;
159
- justify-content: center;
160
- align-items: center;
161
- }
162
-
163
- .app-container {
164
- max-width: 502px;
165
- display: flex;
166
- flex-direction: column;
167
- justify-content: center;
168
- min-height: 1vh;
169
- margin: 16px auto;
170
- transform: translateX(16px);
171
- padding: 0 15px;
172
- }
173
-
174
- @media screen and (max-width: 600px) {
175
- .app-container {
176
- margin: 15px auto;
177
- transform: translateX(0);
178
- }
179
- }
180
-
181
- .d-flex {
182
- display: flex;
183
- }
184
-
185
- .d-flex-center {
186
- display: flex;
187
- justify-content: center;
188
- align-items: center;
189
- }
190
-
191
- .flex-column {
192
- flex-direction: column;
193
- }
194
-
195
- .items-center {
196
- align-items: center;
197
- }
198
-
199
- .justify-content-center {
200
- justify-content: center;
201
- }
202
-
203
- .justify-content-between {
204
- justify-content: space-between;
205
- }
206
-
207
- .flex-center {
208
- display: flex;
209
- justify-content: center;
210
- align-items: center;
211
- }
212
-
213
- .text-center {
214
- text-align: center;
215
- }
216
-
217
- .status-panel {
218
- background-color: #7702fe;
219
- padding: 10px 0px;
220
- border-radius: 3px;
221
- font-size: 14px;
222
- line-height: 18px;
223
- font-family: Lato, Helvetica, Arial, sans-serif;
224
- color: #f6f6f6;
225
- }
226
-
227
- .lined-row {
228
- display: flex;
229
- justify-content: space-between;
230
- align-items: center;
231
- padding: 10px 0;
232
- border-bottom: 1px solid #4b4847;
233
- font-size: 14px;
234
- }
235
- </style>
236
- </head>
237
- <body>
238
- <div class="root">
239
- <main class="app-container">
240
- <div
241
- class="d-flex justify-content-between items-center"
242
- style="padding: 15px 10px; font-size: 14px"
243
- >
244
- <span>Receipt 204723251031076213</span>
245
- <span>1753627703467</span>
246
- </div>
247
-
248
- <div
249
- class="status-panel d-flex-center"
250
- style="font-family: Helvetica, Arial, sans-serif"
251
- >
252
- REFUNDED - VISA 46 SAR 2227251448073436099
253
- </div>
254
-
255
- <div
256
- class="d-flex-center"
257
- style="
258
- padding: 10px 0px;
259
- margin: 10px 0;
260
- line-height: 18px;
261
- color: black;
262
- "
263
- >
264
- Reference ID - 2227251448073436099, Authorize ID - 255316
265
- </div>
266
- <!-- Paper -->
267
- <section
268
- style="
269
- border-left: 1px solid #e9e9e9;
270
- border-right: 1px solid #e9e9e9;
271
- "
272
- >
273
- <!-- Total + Logo -->
274
- <div
275
- style="background-color: #e9e9e9"
276
- class="d-flex flex-column items-center"
277
- >
278
- <div class="d-flex-center" style="padding-top: 30px">
279
- <img
280
- alt="Merchant Logo"
281
- src=""
282
- width="70"
283
- height="70"
284
- />
285
- </div>
286
- <p style="font-size: 16px; padding-top: 5px"></p>
287
- <p style="font-size: 36px; font-weight: 300; padding-top: 10px">
288
- 46 SAR
289
- </p>
290
- </div>
291
- <div style="padding: 25px 5% 0 5%; background-color: #ffffff">
292
- <!-- Total details + other info -->
293
- <div class="d-flex flex-column">
294
- <div class="lined-row">
295
- <span>Refunded Amount </span>
296
- <span>46 SAR</span>
297
- </div>
298
- </div>
299
-
300
- <p
301
- class="d-flex-center flex-column text-center"
302
- style="margin-top: 40px"
303
- >
304
- <span
305
- >Please retain this refund reference for your records.
306
- </span>
307
- <span>
308
- Payers will get the refunded amount in their card bank account
309
- within 3 to 15 business day(s) and in case there is any delay,
310
- payers has to contact the bank using this refund reference ID.
311
- </span>
312
- </p>
313
- </div>
314
- <div class="d-flex">
315
- <img
316
- class="img-max"
317
- width="100%"
318
- src="https://www.gotapnow.com/web/tmem/zigzag.png"
319
- />
320
- </div>
321
- </section>
322
- <section
323
- style="
324
- font-size: 12px;
325
- line-height: 18px;
326
- color: #aaaaaa;
327
- padding: 5px;
328
- "
329
- >
330
- <p style="padding: 5px 0; text-align: center">
331
- Please do not reply to this email. This mailbox is not monitored &
332
- you will not receive a reply.
333
- </p>
334
- <p style="text-align: center">
335
- <span style="display: block">
336
- Tap is a brand of the International Trading Group.
337
- </span>
338
- <span style="display: block"> TM and copyright © 2025. </span>
339
- <span style="display: block">All Rights Reserved. </span>
340
- </p>
341
- <div class="d-flex-center" style="padding: 10px 0 20px 0">
342
- <a href="https://www.gotapnow.com"
343
- ><img
344
- src="https://www.gotapnow.com/web/tmem/tap_gray.png"
345
- height="50"
346
- width="50"
347
- /></a>
348
- </div>
349
- </section>
350
- </main>
351
- </div>
352
- </body>
353
- </html>`,
354
- } }) })) }))] }) })) })) })));
121
+ } }, { children: _jsx(Box, Object.assign({ sx: (theme) => ({ background: theme.palette.common.white, width: '100%', height: '100%' }) }, { children: _jsx(Box, { id: "receipt-content", dangerouslySetInnerHTML: { __html: receiptContent } }) })) }))] }) })) })) })));
355
122
  }
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.111-test.8",
5
- "testVersion": 8,
4
+ "version": "0.1.111-test.9",
5
+ "testVersion": 9,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",