@mtes-mct/monitor-ui 13.5.0 → 13.6.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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [13.5.0](https://github.com/MTES-MCT/monitor-ui/compare/v13.4.0...v13.5.0) (2024-03-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * **utils:** add getMaybeBooleanFromRichBoolean() ([f4d7b59](https://github.com/MTES-MCT/monitor-ui/commit/f4d7b5982ab78c4fc7f762f0b276173af95b0a95))
7
+
1
8
  ## [13.4.0](https://github.com/MTES-MCT/monitor-ui/compare/v13.3.2...v13.4.0) (2024-03-14)
2
9
 
3
10
 
package/index.js CHANGED
@@ -75950,8 +75950,8 @@ const TableWithSelectableRows = {
75950
75950
  Th
75951
75951
  };
75952
75952
 
75953
- function getMaybeBooleanFromRichBoolean(richBoolean) {
75954
- switch(richBoolean){
75953
+ function getMaybeBooleanFromRichBoolean(value) {
75954
+ switch(value){
75955
75955
  case RichBoolean.FALSE:
75956
75956
  return false;
75957
75957
  case RichBoolean.TRUE:
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": "13.5.0",
4
+ "version": "13.6.0",
5
5
  "license": "AGPL-3.0",
6
6
  "type": "module",
7
7
  "engines": {
@@ -1,3 +1,3 @@
1
1
  import { RichBoolean } from '../constants';
2
- export declare function getMaybeBooleanFromRichBoolean(richBoolean: RichBoolean): boolean | undefined;
2
+ export declare function getMaybeBooleanFromRichBoolean(value: RichBoolean | undefined): boolean | undefined;
3
3
  //# sourceMappingURL=getMaybeBooleanFromRichBoolean.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getMaybeBooleanFromRichBoolean.d.ts","sourceRoot":"","sources":["../../src/utils/getMaybeBooleanFromRichBoolean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS,CAW5F"}
1
+ {"version":3,"file":"getMaybeBooleanFromRichBoolean.d.ts","sourceRoot":"","sources":["../../src/utils/getMaybeBooleanFromRichBoolean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAWlG"}