@temboplus/frontend-core 1.0.5 → 1.1.1

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,11 +1,22 @@
1
- /** `25 MAY 2026` */
1
+ /** `25 May 2026` */
2
2
  export declare function formatDate(date: Date, tz?: string): string;
3
- /** `25 MAY 2026, 02:30 PM`; UTC renders as `25 MAY 2026, 11:30 AM UTC`. */
3
+ /** `25 May 2026, 14:30`; UTC renders as `25 May 2026, 11:30 UTC`. */
4
4
  export declare function formatDateTime(date: Date, tz?: string): string;
5
- /** `25 MAY 2026, 02:30:45 PM`; UTC includes a `UTC` suffix. */
5
+ /** `25 May 2026, 14:30:45`; UTC includes a `UTC` suffix. */
6
6
  export declare function formatDateTimeWithSeconds(date: Date, tz?: string): string;
7
- /** `02:30 PM`; UTC renders as `11:30 AM UTC`. */
7
+ /** `14:30`; UTC renders as `11:30 UTC`. */
8
8
  export declare function formatTime(date: Date, tz?: string): string;
9
+ /**
10
+ * Export-friendly variants that always append the ICU short timezone label
11
+ * (e.g. `GMT+3`, `UTC`) so PDF and spreadsheet outputs remain self-describing
12
+ * even when the reader's timezone differs from the issuer's.
13
+ */
14
+ /** `25 May 2026 GMT+3`; UTC renders as `25 May 2026 UTC`. */
15
+ export declare function formatDateWithTimezone(date: Date, tz?: string): string;
16
+ /** `14:30 GMT+3`; UTC renders as `11:30 UTC`. */
17
+ export declare function formatTimeWithTimezone(date: Date, tz?: string): string;
18
+ /** `25 May 2026, 14:30 GMT+3`; UTC renders as `25 May 2026, 11:30 UTC`. */
19
+ export declare function formatDateTimeWithTimezone(date: Date, tz?: string): string;
9
20
  /** `2026-05-25T11:30:45Z` - UTC-only, second precision, no local timezone conversion. */
10
21
  export declare function formatUtcIsoDateTime(date: Date): string;
11
22
  //# sourceMappingURL=format.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/utilities/timezone/format.ts"],"names":[],"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2E;AAC3E,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAE,MAAyB,GAAG,MAAM,CAG5F;AAED,yFAAyF;AACzF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEvD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temboplus/frontend-core",
3
- "version": "1.0.5",
3
+ "version": "1.1.1",
4
4
  "description": "A JavaScript/TypeScript package providing common utilities and logic shared across front-end TemboPlus projects.",
5
5
  "author": "Okello Gerald",
6
6
  "license": "MIT",