@sis-cc/dotstatsuite-visions 8.11.0 → 9.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.
@@ -3,8 +3,8 @@ import cx from 'classnames';
3
3
  import PropTypes from 'prop-types';
4
4
  import * as R from 'ramda';
5
5
  import { Grid, Paper, TextareaAutosize, Checkbox, FormControlLabel, Typography } from '@material-ui/core';
6
+ import { makeStyles } from '@material-ui/core/styles';
6
7
  import { validate as getIsValidEmail } from 'isemail';
7
- import { makeStyles } from '@material-ui/styles';
8
8
  import Mode from './Mode';
9
9
  import Input from './Input';
10
10
  import { Button } from '../';
@@ -133,7 +133,7 @@ var Section = function Section(_ref) {
133
133
  TableCell,
134
134
  {
135
135
  key: id,
136
- className: cx(classes.rowTitle, classes.stickyHeader, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx[classes.timePeriodCells] = R.is(Function, isNoWrap) && isNoWrap(R.prop('dimension', cell)), _cx)),
136
+ className: cx(classes.rowTitle, classes.stickyHeader, (_cx = {}, _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx[classes.timePeriodCells] = R.is(Function, isNoWrap) && isNoWrap(R.prop('dimension', cell)), _cx)),
137
137
  id: id,
138
138
  headers: 'subHeader_' + index + ' ' + currentSection,
139
139
  component: 'th',
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import Checkbox from '@material-ui/core/Checkbox';
3
3
  import FormControlLabel from '@material-ui/core/FormControlLabel';
4
- import { Grid, Typography, makeStyles } from '@material-ui/core';
4
+ import { Grid, Typography } from '@material-ui/core';
5
+ import { makeStyles } from '@material-ui/core/styles';
5
6
  import * as R from 'ramda';
6
7
  import cx from 'classnames';
7
8
  import PropTypes from 'prop-types';
@@ -1,6 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Box, Grid, Tabs, Tab, makeStyles, Typography } from '@material-ui/core';
3
+ import { Box, Grid, Tabs, Tab, Typography } from '@material-ui/core';
4
+ import { makeStyles } from '@material-ui/core/styles';
4
5
  import * as R from 'ramda';
5
6
  import Permissions from './Permissions';
6
7
 
@@ -4,7 +4,7 @@ import React, { useState } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import * as R from 'ramda';
6
6
  import { Grid, Typography } from '@material-ui/core';
7
- import { makeStyles } from '@material-ui/styles';
7
+ import { makeStyles } from '@material-ui/core/styles';
8
8
  import Input from './Input';
9
9
  import Button from '../Button';
10
10
  import Select from '../Select';
@@ -20,9 +20,9 @@ var R = _interopRequireWildcard(_ramda);
20
20
 
21
21
  var _core = require('@material-ui/core');
22
22
 
23
- var _isemail = require('isemail');
23
+ var _styles = require('@material-ui/core/styles');
24
24
 
25
- var _styles = require('@material-ui/styles');
25
+ var _isemail = require('isemail');
26
26
 
27
27
  var _Mode = require('./Mode');
28
28
 
@@ -175,7 +175,7 @@ var Section = function Section(_ref) {
175
175
  _TableCell2.default,
176
176
  {
177
177
  key: id,
178
- className: (0, _classnames2.default)(classes.rowTitle, classes.stickyHeader, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx[classes.timePeriodCells] = R.is(Function, isNoWrap) && isNoWrap(R.prop('dimension', cell)), _cx)),
178
+ className: (0, _classnames2.default)(classes.rowTitle, classes.stickyHeader, (_cx = {}, _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx[classes.timePeriodCells] = R.is(Function, isNoWrap) && isNoWrap(R.prop('dimension', cell)), _cx)),
179
179
  id: id,
180
180
  headers: 'subHeader_' + index + ' ' + currentSection,
181
181
  component: 'th',
@@ -16,6 +16,8 @@ var _FormControlLabel2 = _interopRequireDefault(_FormControlLabel);
16
16
 
17
17
  var _core = require('@material-ui/core');
18
18
 
19
+ var _styles = require('@material-ui/core/styles');
20
+
19
21
  var _ramda = require('ramda');
20
22
 
21
23
  var R = _interopRequireWildcard(_ramda);
@@ -32,7 +34,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
32
34
 
33
35
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
34
36
 
35
- var useStyles = (0, _core.makeStyles)(function (theme) {
37
+ var useStyles = (0, _styles.makeStyles)(function (theme) {
36
38
  var _hideContent;
37
39
 
38
40
  return {
@@ -12,6 +12,8 @@ var _propTypes2 = _interopRequireDefault(_propTypes);
12
12
 
13
13
  var _core = require('@material-ui/core');
14
14
 
15
+ var _styles = require('@material-ui/core/styles');
16
+
15
17
  var _ramda = require('ramda');
16
18
 
17
19
  var R = _interopRequireWildcard(_ramda);
@@ -24,7 +26,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
24
26
 
25
27
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
26
28
 
27
- var useStyles = (0, _core.makeStyles)(function (theme) {
29
+ var useStyles = (0, _styles.makeStyles)(function (theme) {
28
30
  return {
29
31
  tabs: {
30
32
  border: '1px solid black',
@@ -18,7 +18,7 @@ var R = _interopRequireWildcard(_ramda);
18
18
 
19
19
  var _core = require('@material-ui/core');
20
20
 
21
- var _styles = require('@material-ui/styles');
21
+ var _styles = require('@material-ui/core/styles');
22
22
 
23
23
  var _Input = require('./Input');
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "8.11.0",
3
+ "version": "9.1.0",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",
@@ -29,10 +29,6 @@
29
29
  "precommit": "lint-staged"
30
30
  },
31
31
  "dependencies": {
32
- "@loadable/component": "^5.10.2",
33
- "@material-ui/core": "^4.9.5",
34
- "@material-ui/icons": "^4.5.1",
35
- "@material-ui/styles": "^4.5.0",
36
32
  "@react-hook/size": "^2.1.1",
37
33
  "classnames": "^2.2.6",
38
34
  "date-fns": "^1.30.1",
@@ -40,28 +36,30 @@
40
36
  "numeral": "^2.0.6",
41
37
  "prop-types": "^15.7.2",
42
38
  "ramda": "^0.27.0",
43
- "react": "16.x",
44
39
  "react-beautiful-dnd": "^13.0.0",
45
- "react-dom": "^16.8.6",
46
40
  "react-draggable": "^4.4.5",
41
+ "react-error-boundary": "^4.0.10",
47
42
  "react-virtualized": "^9.21.2"
48
43
  },
49
44
  "peerDependencies": {
50
- "@material-ui/core": "^4.9.5",
51
- "@material-ui/icons": "^4.5.1",
52
- "@material-ui/styles": "^4.5.0",
53
- "react": "16.x"
45
+ "@material-ui/core": "^4",
46
+ "@material-ui/icons": "^4",
47
+ "@sis-cc/dotstatsuite-sdmxjs": "^8.x",
48
+ "react": "^18"
54
49
  },
55
50
  "devDependencies": {
56
51
  "@babel/eslint-parser": "^7.5.4",
57
52
  "@babel/plugin-syntax-dynamic-import": "^7.2.0",
58
- "@testing-library/jest-dom": "^5.1.1",
59
- "@testing-library/react": "^9.4.1",
53
+ "@cfaester/enzyme-adapter-react-18": "^0.7.0",
54
+ "@material-ui/core": "^4",
55
+ "@material-ui/icons": "^4",
56
+ "@sis-cc/dotstatsuite-sdmxjs": "*",
57
+ "@testing-library/jest-dom": "^5.16.5",
58
+ "@testing-library/react": "^14.0.0",
60
59
  "babel-jest": "^24.8.0",
61
60
  "babel-preset-react-app": "^9.0.0",
62
61
  "dox": "^0.9.0",
63
62
  "enzyme": "^3.10.0",
64
- "enzyme-adapter-react-16": "^1.14.0",
65
63
  "eslint": "^8.39.0",
66
64
  "eslint-plugin-import": "^2.27.5",
67
65
  "eslint-plugin-jsx-a11y": "^6.7.1",
@@ -71,14 +69,16 @@
71
69
  "husky": "^2.7.0",
72
70
  "identity-obj-proxy": "^3.0.0",
73
71
  "jest": "^24.8.0",
74
- "jest-environment-jsdom-fourteen": "0.1.0",
75
72
  "jss": "^10.10.0",
76
73
  "jss-rtl": "^0.2.3",
77
74
  "lint-staged": "^8.2.1",
75
+ "mutationobserver-shim": "^0.3.7",
78
76
  "nwb": "0.23.0",
79
77
  "prettier": "^2.8.8",
80
78
  "pretty-quick": "^3.1.3",
79
+ "react": "^18",
81
80
  "react-a11y": "^1.1.0",
81
+ "react-dom": "^18",
82
82
  "react-helmet": "^5.2.1",
83
83
  "react-scrollable-anchor": "^0.6.1",
84
84
  "react-syntax-highlighter": "^10.2.1",
@@ -98,9 +98,9 @@
98
98
  "<rootDir>/tests/setup.js"
99
99
  ],
100
100
  "testMatch": [
101
- "<rootDir>/tests/**/*.{spec,test}.{js,jsx,ts,tsx}"
101
+ "**/tests/**/*.{spec,test}.{js,jsx,ts,tsx}"
102
102
  ],
103
- "testEnvironment": "jest-environment-jsdom-fourteen",
103
+ "testEnvironment": "jsdom",
104
104
  "transform": {
105
105
  "^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest"
106
106
  },
@@ -151,8 +151,11 @@
151
151
  "parserOptions": {
152
152
  "babelOptions": {
153
153
  "presets": [
154
- ["babel-preset-react-app", false],
155
- "babel-preset-react-app/test"
154
+ [
155
+ "babel-preset-react-app",
156
+ false
157
+ ],
158
+ "babel-preset-react-app/test"
156
159
  ]
157
160
  },
158
161
  "ecmaFeatures": {