@leapdevuk/component-toolbox 0.0.124 → 0.0.126

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.126 (2025-07-09)
4
+
5
+ ### Features
6
+
7
+ - Utility function formatReportDate now accepts an undefined locale object for when creating state date objects when the locale is not yet available.
8
+ Will return a console warn and an empty string
9
+
10
+ ## 0.0.125 (2025-07-09)
11
+
12
+ ### Features
13
+
14
+ - Utility function formatReportDate now accepts a locale object, replacing the previous locale code string
15
+
3
16
  ## 0.0.124 (2025-07-08)
4
17
 
5
18
  ### Features
@@ -16,7 +16,7 @@ export declare const formatDate: (date?: Date | null, startOfDate?: boolean, end
16
16
  export declare const parseDate: (date: any, formatString: string | undefined, localDateformat: string, parseKeyboardVal?: boolean) => string | null;
17
17
  export declare const getLocale: (leapContext?: LeapContext) => Locale | undefined;
18
18
  export declare const lctFormatDateTime: (value?: string | Date, locale?: Locale, isUtc?: boolean, dateOnly?: boolean, show24H?: boolean) => string;
19
- export declare const formatReportDate: (date: string | null, locale?: string) => string;
19
+ export declare const formatReportDate: (date: string | null, locale?: Locale) => string;
20
20
  /**
21
21
  * @deprecated The method should not be used
22
22
  */