@tap-payments/os-micro-frontend-shared 0.1.224-test.6 → 0.1.224-test.7
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.
|
@@ -564,3 +564,4 @@ export const inActiveGreyIcon = `${lightUrl}/inActiveGreyIcon.svg`;
|
|
|
564
564
|
export const terminalLinkVideo = `${videosUrl}/terminal_link.mp4`;
|
|
565
565
|
export const bluePlusIcon = `${lightUrl}/bluePlusIcon.svg`;
|
|
566
566
|
export const blackSettingsVariant2Icon = `${lightUrl}/blackSettingsVariant2Icon.svg`;
|
|
567
|
+
export const exclamationWhiteIcon = `${lightUrl}/exclamationWhite.svg`;
|
package/build/utils/date.js
CHANGED
|
@@ -231,11 +231,9 @@ export const formatRelativeTimeWithinHour = (timestampMs) => {
|
|
|
231
231
|
const now = Date.now();
|
|
232
232
|
const diffSeconds = Math.floor((now - timestampMs) / 1000);
|
|
233
233
|
const diffMinutes = Math.floor(diffSeconds / 60);
|
|
234
|
-
if (isWithinTimeAgo(timestampMs, 60, 'seconds'))
|
|
234
|
+
if (isWithinTimeAgo(timestampMs, 60, 'seconds'))
|
|
235
235
|
return 'just now';
|
|
236
|
-
|
|
237
|
-
if (isWithinTimeAgo(timestampMs, 60, 'minutes')) {
|
|
236
|
+
if (isWithinTimeAgo(timestampMs, 60, 'minutes'))
|
|
238
237
|
return `${diffMinutes} min${diffMinutes === 1 ? '' : 's'} ago`;
|
|
239
|
-
}
|
|
240
238
|
return '1 hour ago'; // fallback for > 59 mins
|
|
241
239
|
};
|
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.224-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.224-test.7",
|
|
5
|
+
"testVersion": 7,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|