@mtes-mct/monitor-ui 24.0.0 → 24.1.0
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 +21 -0
- package/index.js +10 -0
- package/package.json +1 -1
- package/utils/customDayjs.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [24.0.0](https://github.com/MTES-MCT/monitor-ui/compare/v23.5.0...v24.0.0) (2024-10-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
|
+
|
|
6
|
+
* **elements:** - `children` prop is now a required prop in `<LinkButton />`.
|
|
7
|
+
- `<p>` wrapper has been removed from `<LinkButton />` string `children`.
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **elements:** fix displayName prop in Link ([531b19d](https://github.com/MTES-MCT/monitor-ui/commit/531b19d72d02ee4a06f7b8aafd6bab6597678ba6))
|
|
12
|
+
* **elements:** remove p tag & enforce string children in LinkButton ([c7e7279](https://github.com/MTES-MCT/monitor-ui/commit/c7e72791f071400e0975fb8003b8ff4789159f53))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Buid System & Dependencies
|
|
16
|
+
|
|
17
|
+
* **dev-deps:** bump @rollup/plugin-replace from 5.0.7 to 6.0.1 ([75653c3](https://github.com/MTES-MCT/monitor-ui/commit/75653c3585df9e82f2f9da60d2896f80ced083af))
|
|
18
|
+
* **dev-deps:** bump eslint-plugin-typescript-sort-keys ([3573ab8](https://github.com/MTES-MCT/monitor-ui/commit/3573ab85648a5e39e201c23bd3698e50411fda8a))
|
|
19
|
+
* **dev-deps:** bump the all-non-major-dependencies group ([9742d5a](https://github.com/MTES-MCT/monitor-ui/commit/9742d5a0b95b322d53764d5c111f1507e8ee6f32))
|
|
20
|
+
* **dev-deps:** bump the non-major-dev-dependencies group with 11 updates ([957ed38](https://github.com/MTES-MCT/monitor-ui/commit/957ed388f90590304a2aa427e6c8af5eb927ff59))
|
|
21
|
+
|
|
1
22
|
## [23.5.0](https://github.com/MTES-MCT/monitor-ui/compare/v23.4.0...v23.5.0) (2024-10-07)
|
|
2
23
|
|
|
3
24
|
|
package/index.js
CHANGED
|
@@ -65747,6 +65747,15 @@ var dayjs_min = {exports: {}};
|
|
|
65747
65747
|
var dayjs_minExports = dayjs_min.exports;
|
|
65748
65748
|
var customDayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
65749
65749
|
|
|
65750
|
+
var relativeTime$1 = {exports: {}};
|
|
65751
|
+
|
|
65752
|
+
(function (module, exports) {
|
|
65753
|
+
!function(r,e){module.exports=e();}(commonjsGlobal,(function(){return function(r,e,t){r=r||{};var n=e.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(r,e,t,o){return n.fromToBase(r,e,t,o)}t.en.relativeTime=o,n.fromToBase=function(e,n,i,d,u){for(var f,a,s,l=i.$locale().relativeTime||o,h=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=h.length,c=0;c<m;c+=1){var y=h[c];y.d&&(f=d?t(e).diff(i,y.d,!0):i.diff(e,y.d,!0));var p=(r.rounding||Math.round)(Math.abs(f));if(s=f>0,p<=y.r||!y.r){p<=1&&c>0&&(y=h[c-1]);var v=l[y.l];u&&(p=u(""+p)),a="string"==typeof v?v.replace("%d",p):v(p,n,y.l,s);break}}if(n)return a;var M=s?l.future:l.past;return "function"==typeof M?M(a):M.replace("%s",a)},n.to=function(r,e){return i(r,e,this,!0)},n.from=function(r,e){return i(r,e,this)};var d=function(r){return r.$u?t.utc():t()};n.toNow=function(r){return this.to(d(this),r)},n.fromNow=function(r){return this.from(d(this),r)};}}));
|
|
65754
|
+
} (relativeTime$1));
|
|
65755
|
+
|
|
65756
|
+
var relativeTimeExports = relativeTime$1.exports;
|
|
65757
|
+
var relativeTime = /*@__PURE__*/getDefaultExportFromCjs(relativeTimeExports);
|
|
65758
|
+
|
|
65750
65759
|
var fr = {exports: {}};
|
|
65751
65760
|
|
|
65752
65761
|
(function (module, exports) {
|
|
@@ -65757,6 +65766,7 @@ customDayjs.extend(isSameOrAfter);
|
|
|
65757
65766
|
customDayjs.extend(isSameOrBefore);
|
|
65758
65767
|
customDayjs.extend(localeData);
|
|
65759
65768
|
customDayjs.extend(quarterOfYear);
|
|
65769
|
+
customDayjs.extend(relativeTime);
|
|
65760
65770
|
customDayjs.extend(timezone);
|
|
65761
65771
|
customDayjs.extend(updateLocale);
|
|
65762
65772
|
customDayjs.extend(utc);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtes-mct/monitor-ui",
|
|
3
3
|
"description": "Common React components, hooks, utilities and CSS stylesheets for MonitorFish, MonitorEnv and RapportNav.",
|
|
4
|
-
"version": "24.
|
|
4
|
+
"version": "24.1.0",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customDayjs.d.ts","sourceRoot":"","sources":["../../src/utils/customDayjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"customDayjs.d.ts","sourceRoot":"","sources":["../../src/utils/customDayjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,OAAO,iBAAiB,CAAA;AAcxB,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,CAAA"}
|