@stoker-platform/web-app 0.5.156 → 0.5.157
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/CHANGELOG.md +9 -0
- package/package.json +4 -4
- package/src/utils/prepareCSVData.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @stoker-platform/web-app
|
|
2
2
|
|
|
3
|
+
## 0.5.157
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: export datetime fields in correct format
|
|
8
|
+
- @stoker-platform/node-client@0.5.63
|
|
9
|
+
- @stoker-platform/utils@0.5.54
|
|
10
|
+
- @stoker-platform/web-client@0.5.64
|
|
11
|
+
|
|
3
12
|
## 0.5.156
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/web-app",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.157",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"scripts": {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
52
|
"@react-google-maps/api": "^2.20.8",
|
|
53
53
|
"@sentry/react": "^10.50.0",
|
|
54
|
-
"@stoker-platform/node-client": "0.5.
|
|
55
|
-
"@stoker-platform/utils": "0.5.
|
|
56
|
-
"@stoker-platform/web-client": "0.5.
|
|
54
|
+
"@stoker-platform/node-client": "0.5.63",
|
|
55
|
+
"@stoker-platform/utils": "0.5.54",
|
|
56
|
+
"@stoker-platform/web-client": "0.5.64",
|
|
57
57
|
"@tanstack/react-table": "^8.21.3",
|
|
58
58
|
"@types/react": "18.3.13",
|
|
59
59
|
"@types/react-dom": "18.3.1",
|
|
@@ -70,7 +70,9 @@ export const prepareCSVData = (collection: CollectionSchema, data: any[]) => {
|
|
|
70
70
|
if (field.type === "Boolean") {
|
|
71
71
|
docData[field.name] = escapeCSVField(doc[field.name] ? "Yes" : "No")
|
|
72
72
|
} else if (field.type === "Timestamp" && doc[field.name]) {
|
|
73
|
-
const formattedDate =
|
|
73
|
+
const formattedDate = tryFunction(fieldCustomization.admin?.time)
|
|
74
|
+
? DateTime.fromJSDate((doc[field.name] as Timestamp).toDate()).toFormat("dd/MM/yy HH:mm")
|
|
75
|
+
: DateTime.fromJSDate((doc[field.name] as Timestamp).toDate()).toFormat(dateFormat)
|
|
74
76
|
docData[field.name] = escapeCSVField(formattedDate)
|
|
75
77
|
} else if (isRelationField(field) && doc[field.name]) {
|
|
76
78
|
const relationCollection = schema.collections[field.collection]
|