@mtes-mct/monitor-ui 24.9.0 → 24.9.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [24.9.0](https://github.com/MTES-MCT/monitor-ui/compare/v24.8.0...v24.9.0) (2024-11-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * **icons:** add icons for document ([0a3105b](https://github.com/MTES-MCT/monitor-ui/commit/0a3105bbddbcbdf53eae7e410d6f67723edefb3f))
7
+
1
8
  ## [24.8.0](https://github.com/MTES-MCT/monitor-ui/compare/v24.7.0...v24.8.0) (2024-11-13)
2
9
 
3
10
 
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNewWindow/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,eAAO,MAAM,gBAAgB,gDAI3B,CAAA"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNewWindow/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,eAAO,MAAM,gBAAgB,gDAO3B,CAAA"}
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import styled, { createGlobalStyle, ThemeProvider as ThemeProvider$1, css, keyframes } from 'styled-components';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
- import t, { useMemo, PureComponent, forwardRef, useEffect, useReducer, useState, useRef, isValidElement, cloneElement, useLayoutEffect, useCallback, useImperativeHandle, createContext, useContext } from 'react';
3
+ import t, { useMemo, PureComponent, useRef, useLayoutEffect, useEffect, forwardRef, useReducer, useState, isValidElement, cloneElement, useCallback, useImperativeHandle, createContext, useContext } from 'react';
4
4
  import { Dropdown as Dropdown$1, Checkbox as Checkbox$1, CheckPicker as CheckPicker$1, DatePicker as DatePicker$1, DateRangePicker as DateRangePicker$1, MultiCascader as MultiCascader$1, TagPicker, Radio as Radio$1, RadioGroup, Input, AutoComplete, SelectPicker, Toggle as Toggle$1 } from 'rsuite';
5
5
  import { useField, useFormikContext } from 'formik';
6
- import { flexRender, useReactTable, getCoreRowModel, getSortedRowModel } from '@tanstack/react-table';
6
+ import { flexRender, useReactTable, getSortedRowModel, getCoreRowModel } from '@tanstack/react-table';
7
7
  import { captureMessage } from '@sentry/react';
8
8
 
9
9
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -70299,7 +70299,10 @@ function useFieldControl(value, onChange, defaultValueWhenUndefined) {
70299
70299
 
70300
70300
  const NewWindowContext = createContext({
70301
70301
  newWindowContainerRef: {
70302
- current: window.document.createElement('div')
70302
+ // It seems monitor-ui bundle can eager-evaluate `NewWindowContext`
70303
+ // in contexts which don't have `window` global defined.
70304
+ // This any-forced `undefined` should never impact the real webapp initialization.
70305
+ current: typeof window !== 'undefined' ? window.document.createElement('div') : undefined
70303
70306
  }
70304
70307
  });
70305
70308
 
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.9.0",
4
+ "version": "24.9.1",
5
5
  "license": "AGPL-3.0",
6
6
  "type": "module",
7
7
  "engines": {