@visns-studio/visns-components 4.10.17 → 4.10.19

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
@@ -76,7 +76,7 @@
76
76
  "react-dom": "^17.0.0 || ^18.0.0"
77
77
  },
78
78
  "name": "@visns-studio/visns-components",
79
- "version": "4.10.17",
79
+ "version": "4.10.19",
80
80
  "description": "Various packages to assist in the development of our Custom Applications.",
81
81
  "main": "src/index.js",
82
82
  "files": [
@@ -432,6 +432,7 @@ function Field({
432
432
  />
433
433
  );
434
434
  case 'canvas':
435
+ console.info('a');
435
436
  return canvasUrl ? (
436
437
  <div
437
438
  onClick={() => setCanvasPopupOpen(true)}
@@ -1511,7 +1512,7 @@ function Field({
1511
1512
  </tr>
1512
1513
  </thead>
1513
1514
  <tbody>
1514
- {tableRadioRows.map((row) => (
1515
+ {tableRadioRows.map((row, rowKey) => (
1515
1516
  <tr
1516
1517
  key={`table-radio-row-${settings.id}-${row.id}`}
1517
1518
  >
@@ -1524,7 +1525,7 @@ function Field({
1524
1525
  </td>
1525
1526
  {tableRadioColumns.map((cell, cellKey) => (
1526
1527
  <td
1527
- key={`table-radio-cell-${settings.id}-${row.id}-${cell.id}`}
1528
+ key={`table-radio-cell-${settings.id}-${row.id}-${cell.id}-${cellKey}-${rowKey}`}
1528
1529
  style={{
1529
1530
  textAlign:
1530
1531
  tableRadioColumns[cellKey]
@@ -2056,7 +2057,7 @@ function Field({
2056
2057
  </button>
2057
2058
  </li>
2058
2059
  </ul>
2059
- {(canvasUrl || inputValue.state) && (
2060
+ {(canvasUrl || inputValue?.state) && (
2060
2061
  <SketchField
2061
2062
  ref={sketchRef}
2062
2063
  width={740}
@@ -202,7 +202,6 @@ const GenericDynamic = ({
202
202
 
203
203
  useEffect(() => {
204
204
  if (canvasSaveCounter > 0) {
205
- console.info(activeForm);
206
205
  handleSaveForm(false);
207
206
  }
208
207
  }, [canvasSaveCounter]);
@@ -4,6 +4,11 @@
4
4
  "id": "humanBody",
5
5
  "label": "Human Body",
6
6
  "url": "https://d16lktya8ojp5z.cloudfront.net/adelphi/images/body-diagram.png"
7
+ },
8
+ {
9
+ "id": "car",
10
+ "label": "Car",
11
+ "url": "https://d16lktya8ojp5z.cloudfront.net/adelphi/images/car-diagram.png"
7
12
  }
8
13
  ]
9
14
  }