@visns-studio/visns-components 2.9.6 → 2.9.8

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.
@@ -808,7 +808,7 @@ function Form({
808
808
 
809
809
  useEffect(() => {
810
810
  fetchData();
811
- }, [formSettings]);
811
+ }, []);
812
812
 
813
813
  useEffect(() => {
814
814
  formSettings.fields.forEach((field) => {
@@ -197,6 +197,13 @@ function GenericDetail({ setting, urlParam, userProfile }) {
197
197
 
198
198
  const renderDate = () => formatDateValue(value);
199
199
 
200
+ const renderFile = () =>
201
+ value ? (
202
+ <a href={value} target="_blank">
203
+ Download
204
+ </a>
205
+ ) : null;
206
+
200
207
  const renderExist = () => (truncatedValue ? 'Yes' : 'No');
201
208
 
202
209
  const renderJson = () =>
@@ -236,6 +243,8 @@ function GenericDetail({ setting, urlParam, userProfile }) {
236
243
  return renderDate();
237
244
  case 'exist':
238
245
  return renderExist();
246
+ case 'file':
247
+ return renderFile();
239
248
  case 'json':
240
249
  return renderJson();
241
250
  case 'latest_notes':
package/package.json CHANGED
@@ -6,8 +6,8 @@
6
6
  "array-move": "^4.0.0",
7
7
  "awesome-debounce-promise": "^2.1.0",
8
8
  "axios": "^1.6.2",
9
- "framer-motion": "^10.16.12",
10
- "html-react-parser": "^5.0.6",
9
+ "framer-motion": "^10.16.16",
10
+ "html-react-parser": "^5.0.7",
11
11
  "lodash": "^4.17.21",
12
12
  "moment": "^2.29.4",
13
13
  "motion": "^10.16.4",
@@ -29,7 +29,7 @@
29
29
  "react-to-print": "^2.14.15",
30
30
  "react-toastify": "^9.1.3",
31
31
  "react-toggle": "^4.1.3",
32
- "react-tooltip": "^5.24.0",
32
+ "react-tooltip": "^5.25.0",
33
33
  "react-window": "^1.8.10",
34
34
  "reactjs-popup": "^2.0.6",
35
35
  "truncate": "^3.0.0",
@@ -45,7 +45,7 @@
45
45
  "react-dom": "^17.0.1"
46
46
  },
47
47
  "name": "@visns-studio/visns-components",
48
- "version": "2.9.6",
48
+ "version": "2.9.8",
49
49
  "description": "Various packages to assist in the development of our Custom Applications.",
50
50
  "main": "index.js",
51
51
  "scripts": {