@updog/data-editor 0.1.35 → 0.1.37

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 (4) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +4 -4
  3. package/index.js +2964 -2939
  4. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # React CSV Importer & Spreadsheet Editor
2
2
 
3
- > `@updog/data-editor`: client-side CSV importer and spreadsheet editor SDK for React. Your users import files, match columns to your schema, fix errors, and submit clean data. Edits happen inline, in the browser, at 1M+ rows.
3
+ > `@updog/data-editor`: client-side CSV importer and spreadsheet editor for React. Your users import files, match columns to your schema, fix errors, and submit clean data. Edits happen inline, in the browser, at 1M+ rows.
4
4
 
5
5
  ## What is @updog/data-editor
6
6
 
package/index.d.ts CHANGED
@@ -1110,11 +1110,11 @@ type ImportMappings = {
1110
1110
  /** Number format detected from the file contents. Affects how `"1.234,56"` vs `"1,234.56"` is read. */
1111
1111
  numberFormat: "EU" | "US";
1112
1112
  /**
1113
- * Per-column date disambiguation. Key = CSV header (not column ID).
1114
- * `"EU"` = day-first, `"US"` = month-first.
1115
- * Only includes columns where the format was ambiguous and had to be resolved.
1113
+ * Date order detected from the file's date columns. `"EU"` = day-first,
1114
+ * `"US"` = month-first. One verdict for the file, since date order follows
1115
+ * the source locale; ISO values are parsed regardless of this.
1116
1116
  */
1117
- dateFormats: Record<string, "EU" | "US">;
1117
+ dateFormat: "EU" | "US";
1118
1118
  /**
1119
1119
  * Columns the user created during import for unmatched headers.
1120
1120
  * These don't exist in your schema yet — you decide whether to persist them.