@updog/data-editor-wc 0.1.76 → 0.1.78

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.
Files changed (3) hide show
  1. package/index.d.ts +6 -6
  2. package/index.js +8052 -7924
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -976,8 +976,8 @@ type ChatErrorSummary = {
976
976
  type ChatDataContext<TRow extends DataEditorRow = DataEditorRow> = {
977
977
  /** Full column definitions. */
978
978
  columns: DataEditorColumn[];
979
- /** Row identifier field. */
980
- primaryKey: keyof TRow;
979
+ /** Row identifier field, or the list of fields that identify a row together. */
980
+ primaryKey: keyof TRow | readonly (keyof TRow)[];
981
981
  /** Total rows in the dataset. */
982
982
  totalRowCount: number;
983
983
  /** Rows in the current filtered view. */
@@ -1317,11 +1317,11 @@ type DataEditorBaseProps<TRow extends DataEditorRow = DataEditorRow> = {
1317
1317
  /** Column definitions. Each entry describes one column in the grid. */
1318
1318
  columns: DataEditorColumn[];
1319
1319
  /**
1320
- * The column ID used to uniquely identify each row (e.g. `"id"` or
1321
- * `"employeeId"`). Used to match imported rows against existing data and to
1322
- * track edits.
1320
+ * The column or columns that uniquely identify a row (`"id"`, or
1321
+ * `["orgId", "externalId"]`). Used to match imported rows against existing
1322
+ * data. A row matches only when every listed column matches.
1323
1323
  */
1324
- primaryKey: keyof TRow;
1324
+ primaryKey: keyof TRow | readonly (keyof TRow)[];
1325
1325
  /**
1326
1326
  * Async function that feeds data into the editor. Called once when the editor opens.
1327
1327
  * Call `onChunk` one or more times to stream rows in batches.