argous 1.2.247 → 1.3.3

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 (226) hide show
  1. package/dist/api/WebSocket.d.ts +18 -10
  2. package/dist/api/WebSocket.js +26 -18
  3. package/dist/api/index.js +54 -43
  4. package/dist/api/ws.d.ts +1 -1
  5. package/dist/api/ws.js +44 -3
  6. package/dist/components/Alert/Alert.js +17 -7
  7. package/dist/components/ArgousAction/ArgousAction.js +17 -7
  8. package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
  9. package/dist/components/ArgousAvatar/ArgousAvatar.js +44 -60
  10. package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
  11. package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +107 -81
  12. package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
  13. package/dist/components/ArgousComplexTable/ArgousComplexTable.js +39 -52
  14. package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
  15. package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +119 -97
  16. package/dist/components/ArgousComplexTableBody/DragAndDrop.d.ts +37 -0
  17. package/dist/components/ArgousComplexTableBody/DragAndDrop.js +156 -0
  18. package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +64 -47
  19. package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +55 -37
  20. package/dist/components/ArgousInput/ArgousInput.js +19 -9
  21. package/dist/components/ArgousPagination/ArgousPagination.js +18 -11
  22. package/dist/components/ArgousProgressBar/ArgousProgressBar.js +64 -74
  23. package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +28 -22
  24. package/dist/components/AutoComplete/AutoComplete.js +18 -9
  25. package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
  26. package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +226 -174
  27. package/dist/components/BarChart/BarChart.js +17 -7
  28. package/dist/components/BarraFerramentas/BarraFerramentas.js +119 -105
  29. package/dist/components/Button/Button.js +17 -7
  30. package/dist/components/Cabecalho/Cabecalho.js +17 -7
  31. package/dist/components/Calendar/Calendar.js +24 -41
  32. package/dist/components/Cam/Cam.js +19 -9
  33. package/dist/components/Carousel/Carousel.js +113 -103
  34. package/dist/components/CartaoUsuario/CartaoUsuario.js +36 -26
  35. package/dist/components/Collapse/Collapse.d.ts +3 -3
  36. package/dist/components/Collapse/Collapse.js +121 -71
  37. package/dist/components/Compartilhar/Compartilhar.js +70 -65
  38. package/dist/components/ConfirmModal/BasicModal.d.ts +1 -1
  39. package/dist/components/ConfirmModal/BasicModal.js +8 -8
  40. package/dist/components/ConfirmModal/ModalProvider.d.ts +12 -1
  41. package/dist/components/ConfirmModal/ModalProvider.js +17 -7
  42. package/dist/components/ConfirmModal/WrapperModal.d.ts +2 -2
  43. package/dist/components/ConfirmModal/WrapperModal.js +5 -5
  44. package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
  45. package/dist/components/ContactValidationInput/ContactValidationInput.js +105 -80
  46. package/dist/components/ContactValidationInput/SealModal.d.ts +1 -1
  47. package/dist/components/ContactValidationInput/SealModal.js +13 -20
  48. package/dist/components/Document/Icons.d.ts +2 -2
  49. package/dist/components/Document/Icons.js +33 -16
  50. package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
  51. package/dist/components/Document/ModalVisualizacaoDocumentos.js +33 -17
  52. package/dist/components/Document/Visualizacao.d.ts +1 -1
  53. package/dist/components/Document/Visualizacao.js +48 -34
  54. package/dist/components/DropArea/DropArea.js +27 -12
  55. package/dist/components/DropArea/Html5FileSelector.js +6 -7
  56. package/dist/components/Editor/ScriptLoader2.d.ts +1 -1
  57. package/dist/components/Editor/ScriptLoader2.js +2 -2
  58. package/dist/components/Editor/Utils.d.ts +3 -3
  59. package/dist/components/Editor/Utils.js +2 -2
  60. package/dist/components/Editor/components/Editor.d.ts +1 -1
  61. package/dist/components/Editor/components/Editor.js +18 -9
  62. package/dist/components/Editor/components/EditorPropTypes.js +17 -7
  63. package/dist/components/FilePreparer/FilePreparer.d.ts +1 -1
  64. package/dist/components/FilePreparer/FilePreparer.js +105 -88
  65. package/dist/components/FileUploader/FileUploader.js +33 -22
  66. package/dist/components/FormVisualizer/FormVisualizer.d.ts +5 -7
  67. package/dist/components/FormVisualizer/FormVisualizer.js +92 -61
  68. package/dist/components/HalfGauge/HalfGauge.js +87 -135
  69. package/dist/components/Highlight/Highlight.js +23 -12
  70. package/dist/components/ImageResize/ImageResize.d.ts +1 -1
  71. package/dist/components/ImageResize/ImageResize.js +79 -85
  72. package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
  73. package/dist/components/ImageResizeButton/ImageResizeButton.js +19 -9
  74. package/dist/components/Input/Input.js +19 -9
  75. package/dist/components/InputTags/InputTags.js +22 -13
  76. package/dist/components/ListSelect/ListSelect.js +17 -7
  77. package/dist/components/MaterialButton/MaterialButton.d.ts +2 -4
  78. package/dist/components/MaterialButton/MaterialButton.js +56 -125
  79. package/dist/components/MenuBar/MenuBar.js +17 -7
  80. package/dist/components/MonthPicker/MonthPicker.js +20 -10
  81. package/dist/components/MultipleSelect/MultipleSelect.js +17 -7
  82. package/dist/components/OtpInput/OtpInput.d.ts +1 -1
  83. package/dist/components/OtpInput/OtpInput.js +71 -58
  84. package/dist/components/OutputText/OutputText.js +17 -7
  85. package/dist/components/Pagination/Pagination.js +17 -7
  86. package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
  87. package/dist/components/PercentageDisplay/PercentageDisplay.js +24 -92
  88. package/dist/components/Programa/PageCodeEasterEgg.d.ts +5 -4
  89. package/dist/components/Programa/PageCodeEasterEgg.js +41 -32
  90. package/dist/components/Programa/Programa.d.ts +2 -2
  91. package/dist/components/Programa/Programa.js +50 -28
  92. package/dist/components/Programa/Tab.d.ts +2 -2
  93. package/dist/components/Programa/TabNavigationRail.d.ts +3 -3
  94. package/dist/components/Programa/TabNavigationRail.js +13 -55
  95. package/dist/components/ProgressBar/ProgressBar.js +17 -7
  96. package/dist/components/Select/Select.js +17 -7
  97. package/dist/components/SimpleTable/SimpleTable.js +17 -7
  98. package/dist/components/Stepper/Stepper.d.ts +1 -1
  99. package/dist/components/Stepper/Stepper.js +194 -179
  100. package/dist/components/TablePicker/TablePicker.js +37 -12
  101. package/dist/components/Tabs/Tabs.js +17 -7
  102. package/dist/components/TextArea/TextArea.js +17 -7
  103. package/dist/components/TextToHtml/Cursor.d.ts +1 -1
  104. package/dist/components/TextToHtml/Cursor.js +17 -7
  105. package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
  106. package/dist/components/TextToHtml/TextStyles.js +51 -44
  107. package/dist/components/TextToHtml/TextToHtml.js +37 -17
  108. package/dist/components/ThreadLog/ThreadLog.js +19 -9
  109. package/dist/components/UserCard/UserCard.js +36 -26
  110. package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
  111. package/dist/components/UtilAutoComplete/UtilAutoComplete.js +26 -16
  112. package/dist/components/UtilTextField/UtilTextField.d.ts +1 -1
  113. package/dist/components/UtilTextField/UtilTextField.js +26 -14
  114. package/dist/components/Zoom/Zoom.js +23 -24
  115. package/dist/fieldsRedux/createField.js +17 -7
  116. package/dist/fieldsRedux/fieldsRedux.js +19 -9
  117. package/dist/fieldsRedux/passFields.js +17 -7
  118. package/dist/reducers/index.d.ts +98 -2
  119. package/dist/utils/api.js +32 -15
  120. package/dist/utils/config.js +2 -3
  121. package/dist/utils/index.d.ts +3 -3
  122. package/dist/utils/index.js +68 -54
  123. package/dist/utils/store.js +2 -3
  124. package/lib/api/WebSocket.js +11 -12
  125. package/lib/api/index.js +14 -14
  126. package/lib/api/ws.js +48 -4
  127. package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
  128. package/lib/components/ArgousAvatar/ArgousAvatar.js +20 -54
  129. package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
  130. package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +50 -25
  131. package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
  132. package/lib/components/ArgousComplexTable/ArgousComplexTable.js +15 -15
  133. package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
  134. package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +121 -106
  135. package/lib/components/ArgousComplexTableBody/DragAndDrop.js +85 -0
  136. package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +60 -51
  137. package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +21 -12
  138. package/lib/components/ArgousInput/ArgousInput.js +2 -2
  139. package/lib/components/ArgousPagination/ArgousPagination.js +12 -4
  140. package/lib/components/ArgousProgressBar/ArgousProgressBar.js +67 -78
  141. package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +12 -18
  142. package/lib/components/AutoComplete/AutoComplete.js +2 -3
  143. package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
  144. package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +174 -108
  145. package/lib/components/BarraFerramentas/BarraFerramentas.js +32 -21
  146. package/lib/components/Calendar/Calendar.js +7 -42
  147. package/lib/components/Carousel/Carousel.js +42 -27
  148. package/lib/components/CartaoUsuario/CartaoUsuario.js +6 -6
  149. package/lib/components/Collapse/Collapse.d.ts +3 -3
  150. package/lib/components/Collapse/Collapse.js +92 -57
  151. package/lib/components/Compartilhar/Compartilhar.js +47 -46
  152. package/lib/components/ConfirmModal/BasicModal.tsx +1 -1
  153. package/lib/components/ConfirmModal/WrapperModal.tsx +2 -2
  154. package/lib/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
  155. package/lib/components/ContactValidationInput/ContactValidationInput.js +248 -213
  156. package/lib/components/ContactValidationInput/SealModal.js +38 -32
  157. package/lib/components/Document/Icons.js +14 -6
  158. package/lib/components/Document/ModalVisualizacaoDocumentos.js +9 -2
  159. package/lib/components/Document/Visualizacao.js +31 -25
  160. package/lib/components/DropArea/DropArea.js +9 -3
  161. package/lib/components/Editor/ScriptLoader2.ts +3 -3
  162. package/lib/components/Editor/Utils.ts +3 -3
  163. package/lib/components/Editor/components/Editor.tsx +1 -1
  164. package/lib/components/Editor/tinymce/README.md +73 -0
  165. package/lib/components/Editor/tinymce/langs/README.md +3 -0
  166. package/lib/components/Editor/tinymce/models/dom/model.min.js +1 -1
  167. package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +1 -1
  168. package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +1 -1
  169. package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +1 -1
  170. package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +1 -1
  171. package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +1 -1
  172. package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +1 -1
  173. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
  174. package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +1 -1
  175. package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +1 -1
  176. package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +1 -1
  177. package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +1 -1
  178. package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +1 -1
  179. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
  180. package/lib/components/Editor/tinymce/plugins/table/plugin.js +3 -3
  181. package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +1 -1
  182. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +1 -1
  183. package/lib/components/Editor/tinymce/themes/silver/theme.js +38 -38
  184. package/lib/components/Editor/tinymce/themes/silver/theme.min.js +1 -1
  185. package/lib/components/Editor/tinymce/tinymce.js +12 -12
  186. package/lib/components/Editor/tinymce/tinymce.min.js +1 -1
  187. package/lib/components/FilePreparer/FilePreparer.d.ts +1 -1
  188. package/lib/components/FilePreparer/FilePreparer.js +112 -108
  189. package/lib/components/FileUploader/FileUploader.js +8 -7
  190. package/lib/components/FormVisualizer/FormVisualizer.d.ts +5 -7
  191. package/lib/components/FormVisualizer/FormVisualizer.js +59 -46
  192. package/lib/components/HalfGauge/HalfGauge.js +87 -85
  193. package/lib/components/Highlight/Highlight.js +4 -4
  194. package/lib/components/ImageResize/ImageResize.d.ts +1 -1
  195. package/lib/components/ImageResize/ImageResize.js +123 -118
  196. package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
  197. package/lib/components/ImageResizeButton/ImageResizeButton.js +1 -1
  198. package/lib/components/Input/Input.js +2 -2
  199. package/lib/components/InputTags/InputTags.js +6 -7
  200. package/lib/components/MaterialButton/MaterialButton.d.ts +2 -4
  201. package/lib/components/MaterialButton/MaterialButton.js +50 -125
  202. package/lib/components/MonthPicker/MonthPicker.js +2 -2
  203. package/lib/components/OtpInput/OtpInput.tsx +77 -69
  204. package/lib/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
  205. package/lib/components/PercentageDisplay/PercentageDisplay.js +29 -54
  206. package/lib/components/Programa/PageCodeEasterEgg.js +41 -40
  207. package/lib/components/Programa/Programa.d.ts +2 -2
  208. package/lib/components/Programa/Programa.js +21 -5
  209. package/lib/components/Programa/Tab.ts +4 -2
  210. package/lib/components/Programa/TabNavigationRail.js +9 -31
  211. package/lib/components/Stepper/Stepper.d.ts +1 -1
  212. package/lib/components/Stepper/Stepper.js +222 -190
  213. package/lib/components/TablePicker/TablePicker.js +11 -6
  214. package/lib/components/TextToHtml/TextStyles.js +42 -42
  215. package/lib/components/TextToHtml/TextToHtml.js +102 -92
  216. package/lib/components/ThreadLog/ThreadLog.js +1 -1
  217. package/lib/components/UserCard/UserCard.js +6 -6
  218. package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
  219. package/lib/components/UtilAutoComplete/UtilAutoComplete.js +67 -9
  220. package/lib/components/UtilTextField/UtilTextField.d.ts +1 -1
  221. package/lib/components/UtilTextField/UtilTextField.js +18 -16
  222. package/lib/components/Zoom/Zoom.js +6 -3
  223. package/lib/utils/api.ts +1 -1
  224. package/lib/utils/index.ts +10 -8
  225. package/package.json +56 -56
  226. package/.gitlab-ci.yml +0 -21
@@ -1,23 +1,23 @@
1
1
  import { numbersLettersOnly, numbersOnly } from '../../utils';
2
- import { TextField } from '@material-ui/core';
2
+ import { TextField } from '@mui/material';
3
3
  import React, { useMemo } from 'react';
4
- import MaskedInput from 'react-maskedinput';
4
+ import MaskedInput from '@mona-health/react-input-mask';
5
5
 
6
6
 
7
- const cepMaskedInput = { inputComponent: (props) => <MaskedInput mask='11111-111' {...props} /> };
8
- const cpfMaskedInput = { inputComponent: (props) => <MaskedInput mask='111.111.111-11' {...props} /> };
9
- const cnpjMaskedInput = { inputComponent: (props) => <MaskedInput mask='##.###.###/####-##' {...props} /> };
10
- const telephoneMaskedInput = { inputComponent: (props) => <MaskedInput mask='(11) 111111111' {...props} /> };
7
+ const cepMaskedInput = { inputComponent: (props) => <MaskedInput mask='99999-999' {...props} /> };
8
+ const cpfMaskedInput = { inputComponent: (props) => <MaskedInput mask='999.999.999-99' {...props} /> };
9
+ const cnpjMaskedInput = { inputComponent: (props) => <MaskedInput mask='**.***.***/****-**' {...props} /> };
10
+ const telephoneMaskedInput = { inputComponent: (props) => <MaskedInput mask='(99) 999999999' {...props} /> };
11
11
 
12
12
 
13
13
  const UtilTextField = ({ type, onChange, ...props }) => {
14
14
 
15
15
  const standard = useMemo(() => {
16
16
 
17
- let standardObject = {
18
- valueHandler: (value) => value,
19
- InputProps: {},
20
- label: ''
17
+ let standardObject = {
18
+ valueHandler: (value) => value,
19
+ InputProps: {},
20
+ label: ''
21
21
  };
22
22
 
23
23
  switch (type) {
@@ -56,14 +56,16 @@ const UtilTextField = ({ type, onChange, ...props }) => {
56
56
 
57
57
 
58
58
  return (
59
- <TextField
60
- {...props}
61
- label={(props?.label === false) ? '' : (props?.label) ? props?.label : standard.label}
62
- InputProps={{ ...standard.InputProps, ...(props?.InputProps || {}) }}
63
- onChange={handleOnChange}
59
+ <TextField
60
+ {...props}
61
+ label={(props?.label === false) ? '' : (props?.label) ? props?.label : standard.label}
62
+ onChange={handleOnChange}
63
+ slotProps={{
64
+ input: { ...standard.InputProps, ...(props?.InputProps || {}) }
65
+ }}
64
66
  />
65
67
  );
66
68
  };
67
69
 
68
70
 
69
- export default UtilTextField;
71
+ export default UtilTextField;
@@ -1,4 +1,4 @@
1
- import clsx from 'clsx';
1
+ import { clsx } from 'clsx';
2
2
  import React, { useCallback, useEffect, useState } from 'react';
3
3
  import './style.css';
4
4
 
@@ -13,7 +13,10 @@ const Zoom = ({ id, style, children }) => {
13
13
  const mediaElement = figureElement.children?.[0];
14
14
  if (mediaElement) figureElement.style.backgroundImage = "url('" + mediaElement.src + "')";
15
15
  }, [figureId]);
16
- useEffect(() => setTimeout(() => copyMediaUrl(), 500), [copyMediaUrl]);
16
+ useEffect(() => {
17
+ const timeoutId = setTimeout(() => copyMediaUrl(), 500);
18
+ return () => clearTimeout(timeoutId);
19
+ }, [copyMediaUrl]);
17
20
 
18
21
  function zoom(e, activeParameter) {
19
22
  if (active || activeParameter) {
@@ -54,4 +57,4 @@ const Zoom = ({ id, style, children }) => {
54
57
  };
55
58
 
56
59
 
57
- export default Zoom;
60
+ export default Zoom;
package/lib/utils/api.ts CHANGED
@@ -61,7 +61,7 @@ export const serverAction = async (metodo:string, dados = {}, pgCode?:string|boo
61
61
  const code = typeof pgCode === 'string' ? pgCode : typeof tratarErro === 'string' ? tratarErro : undefined;
62
62
  const tErro = typeof tratarErro === 'boolean' ? tratarErro : typeof pgCode === 'boolean' ? pgCode : false;
63
63
 
64
- const currentProgram = code || await getCurrentProgram();
64
+ const currentProgram = code || (await getCurrentProgram());
65
65
 
66
66
  const data = {
67
67
  pgCode: currentProgram,
@@ -1,14 +1,16 @@
1
1
  import { serverAction } from './api';
2
2
  import { getStore } from './store';
3
3
  import { getFileFromLink, headers } from '../api';
4
+ import { BasicModalProps } from '../components';
4
5
  import { ModalProviderContext } from '../components/ConfirmModal/ModalProvider';
5
6
  import { setAnotherProgramField, setField } from '../fieldsRedux';
7
+ // The legacy ESLint resolver does not resolve declaration-only modules.
8
+ // eslint-disable-next-line import/no-unresolved
6
9
  import { ActionType, ArgousType } from '../types';
7
- import { useTheme } from '@material-ui/core';
8
- import * as colors from '@material-ui/core/colors';
10
+ import { useTheme } from '@mui/material';
11
+ import * as colors from '@mui/material/colors';
9
12
  import { ChartOptions } from 'chart.js';
10
13
  import DomToImage from 'dom-to-image';
11
- import { BasicModalProps } from 'lib/components';
12
14
  import { isNumber } from 'lodash';
13
15
  import moment from 'moment';
14
16
  import React, { useRef, useEffect, useContext, useState } from 'react';
@@ -36,7 +38,7 @@ export const getCookie = (cName: string) => {
36
38
  return '';
37
39
  };
38
40
 
39
- export const addExtraZero = (vl: number|string) => (vl < 10) ? `0${typeof vl === 'string' ? parseInt(vl) : vl}` : vl;
41
+ export const addExtraZero = (vl: number|string) => (Number(vl) < 10) ? `0${typeof vl === 'string' ? parseInt(vl) : vl}` : vl;
40
42
 
41
43
  export const formataNome = (value:string) => {
42
44
  if (value) {
@@ -101,14 +103,12 @@ export const getRandomColor = () => {
101
103
  return color;
102
104
  };
103
105
 
104
- interface RNG {
106
+ class RNG { //pseudo random
105
107
  state:any;
106
108
  m:number;
107
109
  a:number;
108
110
  c:number;
109
- }
110
111
 
111
- class RNG { //pseudo random
112
112
  constructor(seed:number) {
113
113
  // LCG using GCC's constants
114
114
  this.m = 0x80000000; // 2**31;
@@ -139,7 +139,7 @@ export const getInitials = (nome = '') => `${nome.split(' ')[0].substring(0, 1).
139
139
  export const getNumeroFromInitials = (initials: string, length: number) => Math.ceil(new RNG((initials.charCodeAt(0) + initials.charCodeAt(1) - 130) * length / 5).nextFloat() * 10) - 1;
140
140
 
141
141
  export const usePrevious = (value:any) => {
142
- const ref = useRef();
142
+ const ref = useRef<any>(undefined);
143
143
  useEffect(() => {
144
144
  ref.current = value;
145
145
  });
@@ -159,6 +159,8 @@ export function useUpdateEffect(effect: React.EffectCallback, dependencies: Reac
159
159
  useEffect(() => {
160
160
  if (isInitialMount.current) isInitialMount.current = false;
161
161
  else effect();
162
+ // This compatibility hook deliberately forwards the caller's dependency list.
163
+ // eslint-disable-next-line react-hooks/exhaustive-deps
162
164
  }, dependencies);
163
165
  }
164
166
 
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "argous",
3
- "version": "1.2.247",
3
+ "version": "1.3.3",
4
4
  "description": "Argous.",
5
5
  "main": "lib/index.js",
6
6
  "author": "Carlos Schneider",
7
+ "files": [
8
+ "dist",
9
+ "lib",
10
+ "index.js"
11
+ ],
12
+ "engines": {
13
+ "node": ">=20"
14
+ },
7
15
  "scripts": {
8
16
  "build": "tsc && node ./scripts/copy-files.js",
9
17
  "lint": "eslint ./lib",
@@ -12,99 +20,91 @@
12
20
  "devDependencies": {
13
21
  "@date-io/core": "^1.3.6",
14
22
  "@date-io/moment": "^1.3.13",
15
- "@material-ui/core": "^4.11.3",
16
- "@material-ui/lab": "^4.0.0-alpha.57",
17
- "@material-ui/pickers": "^3.3.10",
18
- "@material-ui/types": "^5.1.0",
23
+ "@emotion/react": "^11.11.4",
24
+ "@emotion/styled": "^11.11.5",
25
+ "@mui/material": "^9.2.0",
26
+ "@mui/x-date-pickers": "^9.10.1",
19
27
  "@types/chart.js": "^2.9.31",
20
28
  "@types/glob": "^7",
21
29
  "@types/jquery": "^3.5.5",
22
- "@types/lodash": "4.17.5",
23
- "@types/node": "^14.14.35",
24
- "@types/react": "^17.0.3",
25
- "@types/react-custom-scrollbars": "^4",
30
+ "@types/lodash": "^4.17.27",
31
+ "@types/node": "^24.10.0",
32
+ "@types/react": "^19.3.0",
26
33
  "@types/react-date-range": "^1.1.4",
27
- "@types/react-dom": "^17.0.2",
28
- "@types/react-maskedinput": "^4",
29
- "@types/react-redux": "^7.1.16",
34
+ "@types/react-dom": "^19.3.0",
30
35
  "@types/react-spinkit": "^3",
31
36
  "@types/redux-actions": "^2.6.1",
32
37
  "@types/redux-logger": "^3.0.8",
33
- "@typescript-eslint/eslint-plugin": "^4.18.0",
34
- "@typescript-eslint/parser": "^4.18.0",
35
- "@yarnpkg/pnpify": "^2.4.0",
36
- "babel-eslint": "^10.1.0",
38
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
39
+ "@typescript-eslint/parser": "^5.62.0",
37
40
  "chart.js": "^2.9.4",
38
41
  "clsx": "^1.1.1",
39
- "date-fns": "^2.19.0",
42
+ "date-fns": "^3.6.0",
40
43
  "dom-to-image": "^2.6.0",
41
- "eslint": "^7.22.0",
42
- "eslint-config-react-app": "^6.0.0",
43
- "eslint-plugin-flowtype": "^5.4.0",
44
- "eslint-plugin-import": "^2.22.1",
45
- "eslint-plugin-jsx-a11y": "^6.4.1",
46
- "eslint-plugin-react": "^7.22.0",
47
- "eslint-plugin-react-hooks": "^4.2.0",
44
+ "eslint": "^8.57.1",
45
+ "eslint-config-react-app": "^7.0.1",
46
+ "eslint-import-resolver-typescript": "2.7.1",
47
+ "eslint-plugin-flowtype": "^8.0.3",
48
+ "eslint-plugin-import": "^2.32.0",
49
+ "eslint-plugin-jsx-a11y": "^6.10.2",
50
+ "eslint-plugin-react": "^7.37.5",
48
51
  "fs-extra": "^9.1.0",
49
52
  "glob": "^7.1.6",
50
- "immer": "^8.0.2",
51
- "lodash": "4.17.5",
52
- "moment": "^2.29.1",
53
+ "immer": "^11.2.9",
54
+ "lodash": "^4.18.1",
55
+ "moment": "^2.31.0",
53
56
  "path": "^0.12.7",
54
57
  "prop-types": "^15.7.2",
55
- "react": "^17.0.1",
56
- "react-custom-scrollbars": "^4.2.1",
57
- "react-dom": "^17.0.1",
58
+ "react": "^19.3.1",
59
+ "react-dom": "^19.3.1",
58
60
  "react-icons": "^4.2.0",
59
- "react-is": "^17.0.1",
60
- "react-maskedinput": "^4.0.1",
61
- "react-redux": "^7.2.2",
61
+ "react-is": "^19.3.1",
62
+ "@mona-health/react-input-mask": "^3.0.3",
63
+ "react-redux": "^9.2.0",
62
64
  "react-spinkit": "^3.0.0",
63
- "react-test-renderer": "^17.0.1",
64
- "react-trello": "^2.2.10",
65
- "redux": "^4.0.5",
65
+ "react-test-renderer": "^19.3.1",
66
+ "redux": "^5.0.1",
66
67
  "redux-actions": "^2.6.5",
67
68
  "redux-logger": "^3.0.6",
68
69
  "styled-components": "^5.2.1",
69
- "use-immer": "^0.5.1"
70
+ "use-immer": "^0.11.0"
70
71
  },
71
72
  "peerDependencies": {
72
73
  "@date-io/core": "*",
73
74
  "@date-io/moment": "*",
74
- "@material-ui/core": "*",
75
- "@material-ui/lab": "*",
76
- "@material-ui/pickers": "*",
75
+ "@emotion/react": ">=11.11.4 <12",
76
+ "@emotion/styled": ">=11.11.5 <12",
77
+ "@mui/material": ">=9.2.0 <10",
78
+ "@mui/x-date-pickers": ">=9.10.1 <10",
77
79
  "chart.js": "*",
78
80
  "clsx": "*",
79
81
  "date-fns": "*",
80
82
  "dom-to-image": "*",
81
- "immer": "*",
82
- "lodash": "*",
83
- "moment": "*",
83
+ "immer": ">=9.0.6 <12",
84
+ "lodash": ">=4.18.1 <5",
85
+ "moment": ">=2.31.0 <3",
84
86
  "prop-types": "*",
85
- "react": "*",
86
- "react-custom-scrollbars": "*",
87
- "react-dom": "*",
87
+ "react": ">=17 <20",
88
+ "react-dom": ">=17 <20",
88
89
  "react-icons": "*",
89
90
  "react-is": "*",
90
- "react-maskedinput": "*",
91
- "react-redux": "*",
91
+ "@mona-health/react-input-mask": ">=3.0.3 <4",
92
+ "react-redux": ">=9.2.0 <10",
92
93
  "react-spinkit": "*",
93
- "react-trello": "*",
94
- "redux": "*",
94
+ "redux": ">=5.0.1 <6",
95
95
  "redux-actions": "*",
96
96
  "redux-logger": "*",
97
97
  "styled-components": "*",
98
- "use-immer": "*"
98
+ "use-immer": ">=0.11.0 <1"
99
99
  },
100
100
  "dependencies": {
101
101
  "highlight.js": "^10.7.1",
102
102
  "jquery": "^3.6.0",
103
103
  "react-colorful": "^5.6.1",
104
- "react-date-range": "0.9.4",
105
- "react-paginate": "^7.1.2",
104
+ "react-date-range": "^2.0.1",
105
+ "react-paginate": "^8.3.0",
106
106
  "react-transition-group": "^4.4.1",
107
- "smooth-dnd": "^0.12.1",
108
- "typescript": "4.9.5"
107
+ "trello-smooth-dnd": "1.0.0",
108
+ "typescript": "^5.4.5"
109
109
  }
110
- }
110
+ }
package/.gitlab-ci.yml DELETED
@@ -1,21 +0,0 @@
1
- # cache:
2
- # paths:
3
- # - node_modules/
4
-
5
- # publish:
6
- # stage: deploy
7
- # before_script:
8
- # - npm config set '//registry.npmjs.org/:_authToken' $AUTH_KEY
9
- # - if ! git config user.name; then
10
- # - git config user.email "gitlab-runner@unimedvaledocai.com.br"
11
- # - git config user.name "gitlab-runner"
12
- # - fi
13
- # script:
14
- # - yarn
15
- # - yarn build
16
- # - npm version patch
17
- # - npm publish
18
- # after_script:
19
- # - git push origin HEAD:$CI_COMMIT_BRANCH
20
- # rules:
21
- # - if: '$CI_PROJECT_NAMESPACE == "quatro" && $CI_COMMIT_BRANCH == "master"'