@webiny/admin-ui 6.4.1 → 6.4.2-beta.0
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,8 +1,8 @@
|
|
|
1
1
|
import { toEpochMs } from "./toEpochMs.js";
|
|
2
2
|
function getElapsedSeconds(datetime, relativeDate) {
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
return Math.round(
|
|
3
|
+
const nowMs = relativeDate ? toEpochMs(relativeDate) : Date.now();
|
|
4
|
+
const pastMs = toEpochMs(datetime);
|
|
5
|
+
return Math.round((nowMs - pastMs) / 1000);
|
|
6
6
|
}
|
|
7
7
|
export { getElapsedSeconds };
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeAgo/getElapsedSeconds.js","sources":["../../src/TimeAgo/getElapsedSeconds.ts"],"sourcesContent":["import type { TDate } from \"./types.js\";\nimport { toEpochMs } from \"./toEpochMs.js\";\n\nexport function getElapsedSeconds(datetime: TDate, relativeDate?: TDate): number {\n const
|
|
1
|
+
{"version":3,"file":"TimeAgo/getElapsedSeconds.js","sources":["../../src/TimeAgo/getElapsedSeconds.ts"],"sourcesContent":["import type { TDate } from \"./types.js\";\nimport { toEpochMs } from \"./toEpochMs.js\";\n\nexport function getElapsedSeconds(datetime: TDate, relativeDate?: TDate): number {\n const nowMs = relativeDate ? toEpochMs(relativeDate) : Date.now();\n const pastMs = toEpochMs(datetime);\n return Math.round((nowMs - pastMs) / 1000);\n}\n"],"names":["getElapsedSeconds","datetime","relativeDate","nowMs","toEpochMs","Date","pastMs","Math"],"mappings":";AAGO,SAASA,kBAAkBC,QAAe,EAAEC,YAAoB;IACnE,MAAMC,QAAQD,eAAeE,UAAUF,gBAAgBG,KAAK,GAAG;IAC/D,MAAMC,SAASF,UAAUH;IACzB,OAAOM,KAAK,KAAK,CAAEJ,AAAAA,CAAAA,QAAQG,MAAK,IAAK;AACzC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/admin-ui",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.2-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@monaco-editor/react": "4.7.0",
|
|
20
20
|
"@radix-ui/react-scroll-area": "1.2.10",
|
|
21
21
|
"@tanstack/react-table": "8.21.3",
|
|
22
|
-
"@webiny/icons": "6.4.
|
|
23
|
-
"@webiny/react-composition": "6.4.
|
|
24
|
-
"@webiny/utils": "6.4.
|
|
22
|
+
"@webiny/icons": "6.4.2-beta.0",
|
|
23
|
+
"@webiny/react-composition": "6.4.2-beta.0",
|
|
24
|
+
"@webiny/utils": "6.4.2-beta.0",
|
|
25
25
|
"bytes": "3.1.2",
|
|
26
26
|
"class-variance-authority": "0.7.1",
|
|
27
27
|
"clsx": "2.1.1",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@types/react-color": "3.0.13",
|
|
57
57
|
"@types/react-custom-scrollbars": "4.0.13",
|
|
58
58
|
"@types/react-virtualized": "9.22.3",
|
|
59
|
-
"@webiny/build-tools": "6.4.
|
|
60
|
-
"@webiny/project": "6.4.
|
|
59
|
+
"@webiny/build-tools": "6.4.2-beta.0",
|
|
60
|
+
"@webiny/project": "6.4.2-beta.0",
|
|
61
61
|
"chalk": "5.6.2",
|
|
62
62
|
"oxfmt": "0.51.0",
|
|
63
63
|
"rimraf": "6.1.3",
|