@mtes-mct/monitor-ui 3.1.1 → 3.3.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.
Files changed (171) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/cypress/commands/clickButton.d.ts +6 -0
  3. package/cypress/commands/clickOutside.d.ts +5 -0
  4. package/cypress/commands/fill/checkCheckbox.d.ts +1 -0
  5. package/cypress/commands/fill/checkMultiCheckboxOptions.d.ts +1 -0
  6. package/cypress/commands/fill/checkMultiRadioOption.d.ts +1 -0
  7. package/cypress/commands/fill/fillDateRangePicker.d.ts +1 -0
  8. package/cypress/commands/fill/fillTextInput.d.ts +1 -0
  9. package/cypress/commands/fill/fillTextarea.d.ts +1 -0
  10. package/cypress/commands/fill/index.d.ts +1 -0
  11. package/cypress/commands/fill/pickMultiSelectOptions.d.ts +3 -0
  12. package/cypress/commands/fill/pickSelectOption.d.ts +3 -0
  13. package/cypress/commands/forceClick.d.ts +4 -0
  14. package/cypress/commands/getDataCy.d.ts +3 -0
  15. package/cypress/index.d.ts +18 -0
  16. package/cypress/index.js +939 -0
  17. package/cypress/index.js.map +1 -0
  18. package/cypress/utils/findElementBySelector.d.ts +5 -0
  19. package/cypress/utils/findElementBytext.d.ts +5 -0
  20. package/cypress/utils/waitFor.d.ts +1 -0
  21. package/{src/fields → fields}/DateRangePicker/DateInput.d.ts +2 -0
  22. package/{src/fields → fields}/DateRangePicker/TimeInput.d.ts +2 -2
  23. package/{src/fields → fields}/DateRangePicker/utils.d.ts +1 -0
  24. package/fields/Search.d.ts +22 -0
  25. package/formiks/FormikSearch.d.ts +3 -0
  26. package/{src/index.d.ts → index.d.ts} +4 -4
  27. package/index.js +72 -21
  28. package/index.js.map +1 -1
  29. package/package.json +5 -17
  30. package/config/cypress.config.d.ts +0 -2
  31. package/config/playwright.config.d.ts +0 -3
  32. package/src/fields/AutoComplete.d.ts +0 -19
  33. package/src/formiks/FormikAutoComplete.d.ts +0 -3
  34. /package/{src/GlobalStyle.d.ts → GlobalStyle.d.ts} +0 -0
  35. /package/{src/OnlyFontGlobalStyle.d.ts → OnlyFontGlobalStyle.d.ts} +0 -0
  36. /package/{src/ThemeProvider.d.ts → ThemeProvider.d.ts} +0 -0
  37. /package/{src/components → components}/Dropdown/Item.d.ts +0 -0
  38. /package/{src/components → components}/Dropdown/index.d.ts +0 -0
  39. /package/{src/components → components}/NewWindow/index.d.ts +0 -0
  40. /package/{src/components → components}/SingleTag.d.ts +0 -0
  41. /package/{src/constants.d.ts → constants.d.ts} +0 -0
  42. /package/{src/elements → elements}/Button.d.ts +0 -0
  43. /package/{src/elements → elements}/Field.d.ts +0 -0
  44. /package/{src/elements → elements}/FieldError.d.ts +0 -0
  45. /package/{src/elements → elements}/Fieldset.d.ts +0 -0
  46. /package/{src/elements → elements}/IconBox.d.ts +0 -0
  47. /package/{src/elements → elements}/IconButton.d.ts +0 -0
  48. /package/{src/elements → elements}/Label.d.ts +0 -0
  49. /package/{src/elements → elements}/Legend.d.ts +0 -0
  50. /package/{src/elements → elements}/Tag/Disk.d.ts +0 -0
  51. /package/{src/elements → elements}/Tag/index.d.ts +0 -0
  52. /package/{src/elements → elements}/TagGroup.d.ts +0 -0
  53. /package/{src/fields → fields}/Checkbox.d.ts +0 -0
  54. /package/{src/fields → fields}/CoordinatesInput/DDCoordinatesInput.d.ts +0 -0
  55. /package/{src/fields → fields}/CoordinatesInput/DMDCoordinatesInput.d.ts +0 -0
  56. /package/{src/fields → fields}/CoordinatesInput/DMSCoordinatesInput.d.ts +0 -0
  57. /package/{src/fields → fields}/CoordinatesInput/index.d.ts +0 -0
  58. /package/{src/fields → fields}/DatePicker/CalendarPicker.d.ts +0 -0
  59. /package/{src/fields → fields}/DatePicker/index.d.ts +0 -0
  60. /package/{src/fields → fields}/DateRangePicker/NumberInput.d.ts +0 -0
  61. /package/{src/fields → fields}/DateRangePicker/RangeCalendarPicker.d.ts +0 -0
  62. /package/{src/fields → fields}/DateRangePicker/RangedTimePicker.d.ts +0 -0
  63. /package/{src/fields → fields}/DateRangePicker/constants.d.ts +0 -0
  64. /package/{src/fields → fields}/DateRangePicker/index.d.ts +0 -0
  65. /package/{src/fields → fields}/DateRangePicker/types.d.ts +0 -0
  66. /package/{src/fields → fields}/MultiCheckbox.d.ts +0 -0
  67. /package/{src/fields → fields}/MultiRadio.d.ts +0 -0
  68. /package/{src/fields → fields}/MultiSelect.d.ts +0 -0
  69. /package/{src/fields → fields}/MultiZoneEditor/index.d.ts +0 -0
  70. /package/{src/fields → fields}/NumberInput.d.ts +0 -0
  71. /package/{src/fields → fields}/Select.d.ts +0 -0
  72. /package/{src/fields → fields}/TextInput.d.ts +0 -0
  73. /package/{src/fields → fields}/Textarea.d.ts +0 -0
  74. /package/{src/formiks → formiks}/FormikCheckbox.d.ts +0 -0
  75. /package/{src/formiks → formiks}/FormikCoordinatesInput.d.ts +0 -0
  76. /package/{src/formiks → formiks}/FormikDatePicker.d.ts +0 -0
  77. /package/{src/formiks → formiks}/FormikDateRangePicker.d.ts +0 -0
  78. /package/{src/formiks → formiks}/FormikEffect.d.ts +0 -0
  79. /package/{src/formiks → formiks}/FormikMultiCheckbox.d.ts +0 -0
  80. /package/{src/formiks → formiks}/FormikMultiRadio.d.ts +0 -0
  81. /package/{src/formiks → formiks}/FormikMultiSelect.d.ts +0 -0
  82. /package/{src/formiks → formiks}/FormikNumberInput.d.ts +0 -0
  83. /package/{src/formiks → formiks}/FormikSelect.d.ts +0 -0
  84. /package/{src/formiks → formiks}/FormikTextInput.d.ts +0 -0
  85. /package/{src/formiks → formiks}/FormikTextarea.d.ts +0 -0
  86. /package/{src/hooks → hooks}/useClickOutsideEffect.d.ts +0 -0
  87. /package/{src/hooks → hooks}/useFieldUndefineEffect.d.ts +0 -0
  88. /package/{src/hooks → hooks}/useForceUpdate.d.ts +0 -0
  89. /package/{src/hooks → hooks}/useKey.d.ts +0 -0
  90. /package/{src/hooks → hooks}/usePrevious.d.ts +0 -0
  91. /package/{src/icons → icons}/ActivityFeed.d.ts +0 -0
  92. /package/{src/icons → icons}/Alert.d.ts +0 -0
  93. /package/{src/icons → icons}/Anchor.d.ts +0 -0
  94. /package/{src/icons → icons}/Archive.d.ts +0 -0
  95. /package/{src/icons → icons}/Attention.d.ts +0 -0
  96. /package/{src/icons → icons}/Calendar.d.ts +0 -0
  97. /package/{src/icons → icons}/Check.d.ts +0 -0
  98. /package/{src/icons → icons}/Chevron.d.ts +0 -0
  99. /package/{src/icons → icons}/Clock.d.ts +0 -0
  100. /package/{src/icons → icons}/Close.d.ts +0 -0
  101. /package/{src/icons → icons}/Confirm.d.ts +0 -0
  102. /package/{src/icons → icons}/Control.d.ts +0 -0
  103. /package/{src/icons → icons}/Delete.d.ts +0 -0
  104. /package/{src/icons → icons}/Display.d.ts +0 -0
  105. /package/{src/icons → icons}/DoubleChevron.d.ts +0 -0
  106. /package/{src/icons → icons}/Download.d.ts +0 -0
  107. /package/{src/icons → icons}/Drapeau.d.ts +0 -0
  108. /package/{src/icons → icons}/Duplicate.d.ts +0 -0
  109. /package/{src/icons → icons}/Edit.d.ts +0 -0
  110. /package/{src/icons → icons}/EditBis.d.ts +0 -0
  111. /package/{src/icons → icons}/Favorite.d.ts +0 -0
  112. /package/{src/icons → icons}/FilledArrow.d.ts +0 -0
  113. /package/{src/icons → icons}/Filter.d.ts +0 -0
  114. /package/{src/icons → icons}/FilterBis.d.ts +0 -0
  115. /package/{src/icons → icons}/Fishery.d.ts +0 -0
  116. /package/{src/icons → icons}/FishingEngine.d.ts +0 -0
  117. /package/{src/icons → icons}/FleetSegment.d.ts +0 -0
  118. /package/{src/icons → icons}/Focus.d.ts +0 -0
  119. /package/{src/icons → icons}/FocusVessel.d.ts +0 -0
  120. /package/{src/icons → icons}/FocusZones.d.ts +0 -0
  121. /package/{src/icons → icons}/Hide.d.ts +0 -0
  122. /package/{src/icons → icons}/Info.d.ts +0 -0
  123. /package/{src/icons → icons}/Infringement.d.ts +0 -0
  124. /package/{src/icons → icons}/Landmark.d.ts +0 -0
  125. /package/{src/icons → icons}/List.d.ts +0 -0
  126. /package/{src/icons → icons}/MapLayers.d.ts +0 -0
  127. /package/{src/icons → icons}/MeasureAngle.d.ts +0 -0
  128. /package/{src/icons → icons}/MeasureBrokenLine.d.ts +0 -0
  129. /package/{src/icons → icons}/MeasureCircle.d.ts +0 -0
  130. /package/{src/icons → icons}/MeasureLine.d.ts +0 -0
  131. /package/{src/icons → icons}/Minus.d.ts +0 -0
  132. /package/{src/icons → icons}/More.d.ts +0 -0
  133. /package/{src/icons → icons}/Note.d.ts +0 -0
  134. /package/{src/icons → icons}/Observation.d.ts +0 -0
  135. /package/{src/icons → icons}/Pin.d.ts +0 -0
  136. /package/{src/icons → icons}/Pinpoint.d.ts +0 -0
  137. /package/{src/icons → icons}/PinpointHide.d.ts +0 -0
  138. /package/{src/icons → icons}/Plane.d.ts +0 -0
  139. /package/{src/icons → icons}/Plus.d.ts +0 -0
  140. /package/{src/icons → icons}/Reject.d.ts +0 -0
  141. /package/{src/icons → icons}/Save.d.ts +0 -0
  142. /package/{src/icons → icons}/Search.d.ts +0 -0
  143. /package/{src/icons → icons}/SelectCircle.d.ts +0 -0
  144. /package/{src/icons → icons}/SelectPolygon.d.ts +0 -0
  145. /package/{src/icons → icons}/SelectRectangle.d.ts +0 -0
  146. /package/{src/icons → icons}/SelectZone.d.ts +0 -0
  147. /package/{src/icons → icons}/ShowErsMessages.d.ts +0 -0
  148. /package/{src/icons → icons}/ShowXml.d.ts +0 -0
  149. /package/{src/icons → icons}/SortingArrows.d.ts +0 -0
  150. /package/{src/icons → icons}/Summary.d.ts +0 -0
  151. /package/{src/icons → icons}/Tag.d.ts +0 -0
  152. /package/{src/icons → icons}/Target.d.ts +0 -0
  153. /package/{src/icons → icons}/Unlock.d.ts +0 -0
  154. /package/{src/icons → icons}/Vessel.d.ts +0 -0
  155. /package/{src/icons → icons}/ViewOnMap.d.ts +0 -0
  156. /package/{src/icons → icons}/Vms.d.ts +0 -0
  157. /package/{src/icons → icons}/index.d.ts +0 -0
  158. /package/{src/theme.d.ts → theme.d.ts} +0 -0
  159. /package/{src/types.d.ts → types.d.ts} +0 -0
  160. /package/{src/utils → utils}/cleanString.d.ts +0 -0
  161. /package/{src/utils → utils}/coordinates.d.ts +0 -0
  162. /package/{src/utils → utils}/dayjs.d.ts +0 -0
  163. /package/{src/utils → utils}/getLocalizedDayjs.d.ts +0 -0
  164. /package/{src/utils → utils}/getPseudoRandomString.d.ts +0 -0
  165. /package/{src/utils → utils}/getUtcDayjs.d.ts +0 -0
  166. /package/{src/utils → utils}/getUtcizedDayjs.d.ts +0 -0
  167. /package/{src/utils → utils}/isNumeric.d.ts +0 -0
  168. /package/{src/utils → utils}/noop.d.ts +0 -0
  169. /package/{src/utils → utils}/normalizeString.d.ts +0 -0
  170. /package/{src/utils → utils}/sortDates.d.ts +0 -0
  171. /package/{src/utils → utils}/stopMouseEventPropagation.d.ts +0 -0
package/package.json CHANGED
@@ -1,44 +1,32 @@
1
1
  {
2
2
  "name": "@mtes-mct/monitor-ui",
3
3
  "description": "Common React UI components and styles for Monitorfish and Monitorenv.",
4
- "version": "3.1.1",
4
+ "version": "3.3.0",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": ">=18"
8
8
  },
9
9
  "dependencies": {
10
- "@babel/runtime": "7.20.13",
10
+ "@babel/runtime": "7.21.0",
11
11
  "prop-types": "15.8.1",
12
12
  "tslib": "2.5.0",
13
13
  "use-debounce": "^9.0.3"
14
14
  },
15
15
  "peerDependencies": {
16
+ "cypress": "^12.0.0",
16
17
  "formik": "^2.0.0",
17
18
  "react": "^18.0.0",
18
19
  "react-dom": "^18.0.0",
19
20
  "rsuite": "^5.0.0",
20
21
  "styled-components": "^5.0.0"
21
22
  },
22
- "dependenciesMeta": {
23
- "node-talisman@1.29.6": {
24
- "unplugged": true
25
- }
26
- },
27
- "//": "https://github.com/okonet/lint-staged/issues/825#issuecomment-674575655",
28
- "lint-staged": {
29
- "*.{json,md,yaml,yml}": "prettier --write",
30
- "*.{ts,tsx}": [
31
- "yarn eslint --ext js,jsx,ts,tsx",
32
- "bash -c 'npm run test:type'"
33
- ]
34
- },
35
- "packageManager": "yarn@3.4.1",
36
23
  "bugs": {
37
24
  "url": "https://github.com/MTES-MCT/monitor-ui/issues"
38
25
  },
39
26
  "exports": {
40
27
  ".": "./index.js",
41
- "./assets/": "./assets/"
28
+ "./assets/": "./assets/",
29
+ "./cypress/": "./cypress/"
42
30
  },
43
31
  "homepage": "https://mtes-mct.github.io/monitor-ui/",
44
32
  "publishConfig": {
@@ -1,2 +0,0 @@
1
- declare const _default: Cypress.ConfigOptions<any>;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import type { PlaywrightTestConfig } from '@playwright/test';
2
- declare const config: PlaywrightTestConfig;
3
- export default config;
@@ -1,19 +0,0 @@
1
- import type { Option } from '../types';
2
- import type { AutoCompleteProps as RsuiteAutoCompleteProps } from 'rsuite';
3
- import type { Promisable } from 'type-fest';
4
- export type AutoCompleteProps = Omit<RsuiteAutoCompleteProps, 'as' | 'container' | 'data' | 'defaultValue' | 'id' | 'onChange' | 'open' | 'onSelect' | 'value'> & {
5
- /** Used to pass something else than `window.document` as a base container to attach global events listeners. */
6
- baseContainer?: Document | HTMLDivElement | null | undefined;
7
- defaultValue?: string | undefined;
8
- error?: string | undefined;
9
- isLabelHidden?: boolean | undefined;
10
- isLight?: boolean | undefined;
11
- label: string;
12
- name: string;
13
- onChange?: ((nextValue: string | undefined) => Promisable<void>) | undefined;
14
- onQuery?: ((nextQuery: string | undefined) => Promisable<void>) | undefined;
15
- options?: Option[] | undefined;
16
- queryMap?: ((record: Record<string, any>) => Option) | undefined;
17
- queryUrl?: string | undefined;
18
- };
19
- export declare function AutoComplete({ baseContainer, defaultValue, error, isLabelHidden, isLight, label, onChange, onQuery, options, queryMap, queryUrl, ...originalProps }: AutoCompleteProps): JSX.Element;
@@ -1,3 +0,0 @@
1
- import type { AutoCompleteProps } from '../fields/AutoComplete';
2
- export type FormikAutoCompleteProps = Omit<AutoCompleteProps, 'defaultValue' | 'error' | 'onChange'>;
3
- export declare function FormikAutoComplete({ name, ...originalProps }: FormikAutoCompleteProps): JSX.Element;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes