@visns-studio/visns-components 5.15.31 → 5.15.32

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/package.json CHANGED
@@ -12,11 +12,11 @@
12
12
  "@nivo/core": "^0.87.0",
13
13
  "@nivo/line": "^0.87.0",
14
14
  "@nivo/pie": "^0.87.0",
15
- "@react-pdf/renderer": "^4.3.1",
16
- "@tanstack/react-query": "^5.90.11",
15
+ "@react-pdf/renderer": "^4.3.2",
16
+ "@tanstack/react-query": "^5.91.2",
17
17
  "@tinymce/miniature": "^6.0.0",
18
18
  "@tinymce/tinymce-react": "^6.3.0",
19
- "@uiw/react-color": "^2.9.2",
19
+ "@uiw/react-color": "^2.9.6",
20
20
  "@visns-studio/visns-datagrid-community": "1.1.0",
21
21
  "@visns-studio/visns-datagrid-enterprise": "1.1.0",
22
22
  "@vitejs/plugin-react": "^4.7.0",
@@ -24,39 +24,39 @@
24
24
  "array-move": "^4.0.0",
25
25
  "awesome-debounce-promise": "^2.1.0",
26
26
  "browser-image-compression": "^2.0.2",
27
- "dayjs": "^1.11.19",
28
- "fabric": "^6.9.0",
27
+ "dayjs": "^1.11.20",
28
+ "fabric": "^6.9.1",
29
29
  "file-saver": "^2.0.5",
30
- "framer-motion": "^12.23.24",
31
- "html-react-parser": "^5.2.10",
30
+ "framer-motion": "^12.38.0",
31
+ "html-react-parser": "^5.2.17",
32
32
  "html2canvas": "^1.4.1",
33
- "lodash": "^4.17.21",
33
+ "lodash": "^4.17.23",
34
34
  "lodash.debounce": "^4.0.8",
35
35
  "lucide-react": "^0.544.0",
36
- "mapbox-gl": "^3.16.0",
36
+ "mapbox-gl": "^3.20.0",
37
37
  "moment": "^2.30.1",
38
- "motion": "^12.23.24",
38
+ "motion": "^12.38.0",
39
39
  "numeral": "^2.0.6",
40
40
  "pluralize": "^8.0.0",
41
41
  "qrcode.react": "^4.2.0",
42
42
  "quill-image-uploader": "^1.3.0",
43
43
  "react-big-calendar": "^1.19.4",
44
- "react-copy-to-clipboard": "^5.1.0",
44
+ "react-copy-to-clipboard": "^5.1.1",
45
45
  "react-currency-input-field": "^3.10.0",
46
46
  "react-datepicker": "^8.10.0",
47
- "react-dropzone": "^14.3.8",
47
+ "react-dropzone": "^14.4.1",
48
48
  "react-grid-gallery": "^1.0.1",
49
49
  "react-number-format": "^5.4.4",
50
50
  "react-password-strength-bar": "^0.4.1",
51
51
  "react-promise-tracker": "^2.1.1",
52
52
  "react-quill": "^2.0.0",
53
53
  "react-reveal": "^1.2.2",
54
- "react-router-dom": "^6.30.2",
54
+ "react-router-dom": "^6.30.3",
55
55
  "react-select": "^5.10.2",
56
- "react-signature-pad-wrapper": "^4.3.0",
56
+ "react-signature-pad-wrapper": "^4.3.2",
57
57
  "react-slugify": "^4.0.1",
58
58
  "react-sortable-hoc": "^2.0.0",
59
- "react-to-print": "^3.2.0",
59
+ "react-to-print": "^3.3.0",
60
60
  "react-toastify": "^11.0.5",
61
61
  "react-toggle": "^4.1.3",
62
62
  "react-tooltip": "^5.30.0",
@@ -64,37 +64,37 @@
64
64
  "reactjs-popup": "^2.0.6",
65
65
  "style-loader": "^4.0.0",
66
66
  "swapy": "^1.0.5",
67
- "sweetalert2": "^11.26.3",
67
+ "sweetalert2": "^11.26.23",
68
68
  "tesseract.js": "^6.0.1",
69
69
  "truncate": "^3.0.0",
70
70
  "uuid": "^11.1.0",
71
- "validator": "^13.15.23",
71
+ "validator": "^13.15.26",
72
72
  "vite": "^6.4.1",
73
73
  "xlsx": "^0.18.5",
74
74
  "yarn": "^1.22.22",
75
- "yet-another-react-lightbox": "^3.25.0"
75
+ "yet-another-react-lightbox": "^3.29.1"
76
76
  },
77
77
  "devDependencies": {
78
- "@babel/core": "^7.28.5",
79
- "@babel/plugin-transform-runtime": "^7.28.5",
80
- "@babel/preset-env": "^7.28.5",
78
+ "@babel/core": "^7.29.0",
79
+ "@babel/plugin-transform-runtime": "^7.29.0",
80
+ "@babel/preset-env": "^7.29.2",
81
81
  "@babel/preset-react": "^7.28.5",
82
- "babel-loader": "^10.0.0",
82
+ "babel-loader": "^10.1.1",
83
83
  "copy-webpack-plugin": "^13.0.1",
84
- "css-loader": "^7.1.2",
85
- "css-minimizer-webpack-plugin": "^7.0.2",
86
- "mini-css-extract-plugin": "^2.9.4",
84
+ "css-loader": "^7.1.4",
85
+ "css-minimizer-webpack-plugin": "^7.0.4",
86
+ "mini-css-extract-plugin": "^2.10.1",
87
87
  "react": "^18.3.1",
88
88
  "react-dom": "^18.3.1",
89
- "sass": "^1.94.2",
90
- "sass-loader": "^16.0.6"
89
+ "sass": "^1.98.0",
90
+ "sass-loader": "^16.0.7"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "react": "^17.0.0 || ^18.0.0",
94
94
  "react-dom": "^17.0.0 || ^18.0.0"
95
95
  },
96
96
  "name": "@visns-studio/visns-components",
97
- "version": "5.15.31",
97
+ "version": "5.15.32",
98
98
  "description": "Various packages to assist in the development of our Custom Applications.",
99
99
  "main": "src/index.js",
100
100
  "files": [
@@ -963,8 +963,16 @@ function GenericDetail({
963
963
  .join(' ');
964
964
  };
965
965
 
966
+ // Separate boolean keys from string-value keys (like _other fields)
967
+ const otherKeys = new Set();
968
+ Object.keys(value).forEach((key) => {
969
+ if (key.endsWith('_other') && typeof value[key] === 'string' && value[key]) {
970
+ otherKeys.add(key);
971
+ }
972
+ });
973
+
966
974
  const keys = Object.keys(value)
967
- .filter((key) => value[key] && key !== 'notes')
975
+ .filter((key) => value[key] && key !== 'notes' && !otherKeys.has(key))
968
976
  .sort((a, b) => {
969
977
  if (a === 'other') return 1;
970
978
  if (b === 'other') return -1;
@@ -973,6 +981,13 @@ function GenericDetail({
973
981
 
974
982
  const formattedKeys = keys.map((key) => {
975
983
  let formattedKey = formatKey(key);
984
+
985
+ // Check for a corresponding _other field with a string value
986
+ const otherKey = `${key}_other`;
987
+ if (otherKeys.has(otherKey)) {
988
+ formattedKey += ` (${value[otherKey]})`;
989
+ }
990
+
976
991
  if (key === 'other') {
977
992
  const otherValue = getValueFromData(
978
993
  data,