@cellaware/utils 8.6.5 → 8.6.6

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.
@@ -1,4 +1,4 @@
1
- export declare function createTeamsTableCard(title: string, columnNames: string[], table: any[], summary: string): {
1
+ export declare function createTeamsTableCard(title: string, table: any[], summary: string): {
2
2
  type: string;
3
3
  version: string;
4
4
  msteams: {
@@ -19,9 +19,7 @@ export declare function createTeamsTableCard(title: string, columnNames: string[
19
19
  type: string;
20
20
  roundedCorners: boolean;
21
21
  firstRowAsHeaders: boolean;
22
- columns: {
23
- width: number;
24
- }[];
22
+ columns: any;
25
23
  rows: any[];
26
24
  })[];
27
25
  };
@@ -16,7 +16,7 @@ function createTeamsSummaryItem(summary) {
16
16
  wrap: true
17
17
  };
18
18
  }
19
- export function createTeamsTableCard(title, columnNames, table, summary) {
19
+ export function createTeamsTableCard(title, table, summary) {
20
20
  return {
21
21
  type: "AdaptiveCard",
22
22
  version: "1.5",
@@ -27,7 +27,7 @@ export function createTeamsTableCard(title, columnNames, table, summary) {
27
27
  type: "Table",
28
28
  roundedCorners: true,
29
29
  firstRowAsHeaders: true,
30
- columns: columnNames.map(() => ({ width: 3 })),
30
+ columns: table.length === 0 ? [] : table[0].cells.map(() => ({ width: 3 })),
31
31
  rows: table
32
32
  },
33
33
  createTeamsSummaryItem(summary)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "8.6.5",
3
+ "version": "8.6.6",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",