@temboplus/frontend-core 1.0.3 → 1.0.5

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,9 +1,11 @@
1
1
  /** `25 MAY 2026` */
2
2
  export declare function formatDate(date: Date, tz?: string): string;
3
- /** `25 MAY 2026, 02:30 PM` */
3
+ /** `25 MAY 2026, 02:30 PM`; UTC renders as `25 MAY 2026, 11:30 AM UTC`. */
4
4
  export declare function formatDateTime(date: Date, tz?: string): string;
5
- /** `25 MAY 2026, 02:30:45 PM` audit rows where seconds matter. */
5
+ /** `25 MAY 2026, 02:30:45 PM`; UTC includes a `UTC` suffix. */
6
6
  export declare function formatDateTimeWithSeconds(date: Date, tz?: string): string;
7
- /** `02:30 PM` */
7
+ /** `02:30 PM`; UTC renders as `11:30 AM UTC`. */
8
8
  export declare function formatTime(date: Date, tz?: string): string;
9
+ /** `2026-05-25T11:30:45Z` - UTC-only, second precision, no local timezone conversion. */
10
+ export declare function formatUtcIsoDateTime(date: Date): string;
9
11
  //# sourceMappingURL=format.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/utilities/timezone/format.ts"],"names":[],"mappings":"AA+CA,oBAAoB;AACpB,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAE,MAAyB,GAAG,MAAM,CAE5E;AAED,8BAA8B;AAC9B,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAE,MAAyB,GAAG,MAAM,CAEhF;AAED,oEAAoE;AACpE,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAE,MAAyB,GAAG,MAAM,CAE3F;AAED,iBAAiB;AACjB,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAE,MAAyB,GAAG,MAAM,CAE5E"}
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/utilities/timezone/format.ts"],"names":[],"mappings":"AAmGA,oBAAoB;AACpB,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAE,MAAyB,GAAG,MAAM,CAE5E;AAED,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAE,MAAyB,GAAG,MAAM,CAMhF;AAED,+DAA+D;AAC/D,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAE,MAAyB,GAAG,MAAM,CAM3F;AAED,iDAAiD;AACjD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAE,MAAyB,GAAG,MAAM,CAE5E;AAED,yFAAyF;AACzF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEvD"}
@@ -11,8 +11,12 @@ export declare const OPERATING_TIMEZONES: ReadonlyArray<{
11
11
  }>;
12
12
  /**
13
13
  * Reference / anchor zones that are useful even when you don't operate
14
- * there — UTC is universal, GMT/London/NY/Paris are how the rest of the
15
- * world spells time. Kept deliberately short.
14
+ * there — UTC is the absolute-time reference, the African anchors
15
+ * cover the markets we counterparty with most often, London covers
16
+ * the EU/UK reporting lens, New York the US banking lens, and Shanghai
17
+ * the East-Asia trading window. Kept deliberately short. UTC first as
18
+ * the absolute-time reference, then African anchors, then global
19
+ * reference markets — editorial order, not alphabetical or geographic.
16
20
  */
17
21
  export declare const ANCHOR_TIMEZONES: ReadonlyArray<string>;
18
22
  //# sourceMappingURL=markets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"markets.d.ts","sourceRoot":"","sources":["../../../src/utilities/timezone/markets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAA6D,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,MAAM,CAKlD,CAAC"}
1
+ {"version":3,"file":"markets.d.ts","sourceRoot":"","sources":["../../../src/utilities/timezone/markets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAA6D,CAAC;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,MAAM,CAQlD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temboplus/frontend-core",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
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",