@declarion/react 0.1.51 → 0.1.54
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/dist-lib/components/fields/TextField.d.ts +1 -1
- package/dist-lib/components/fields/index.d.ts +1 -0
- package/dist-lib/components/layout/Rail.d.ts +1 -1
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/index.js +1462 -1378
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/lib/timestamp.d.ts +12 -0
- package/package.json +2 -1
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire format for outgoing datetime payloads: local wall-clock with offset,
|
|
3
|
+
* e.g. "2026-04-22T15:18:00-05:00" (or "...Z" when local == UTC).
|
|
4
|
+
*
|
|
5
|
+
* Every API call that sends a timestamp value must go through this helper:
|
|
6
|
+
* ui-actions `${now}`, TimestampField submit, quick-add defaults, status
|
|
7
|
+
* history `set_at`. The offset makes the instant unambiguous for passthrough
|
|
8
|
+
* fields and is stripped by the backend for fields with configured timezone.
|
|
9
|
+
*
|
|
10
|
+
* See docs/gotchas.md#timezone--unit-conversions.
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatWireDateTime(date?: Date): string;
|
|
1
13
|
/**
|
|
2
14
|
* Format an offset-aware timestamp string (e.g. "2026-03-27T14:30:00+03:00")
|
|
3
15
|
* for display WITHOUT browser-local timezone conversion. The server returns
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@declarion/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React SDK for Declarion, the schema-driven business apps platform.",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@tanstack/react-virtual": "^3.13.24",
|
|
46
46
|
"class-variance-authority": "^0.7.0",
|
|
47
47
|
"clsx": "^2.1.0",
|
|
48
|
+
"date-fns": "^4.1.0",
|
|
48
49
|
"react-markdown": "^10.1.0",
|
|
49
50
|
"react-router-dom": "^7.14.2",
|
|
50
51
|
"recharts": "^3.8.1",
|