@updog/data-editor-wc 0.1.30 → 0.1.31

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 (2) hide show
  1. package/index.js +7 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -52038,9 +52038,13 @@ function oV(e) {
52038
52038
  primaryKey: e.primaryKey,
52039
52039
  columns: e.columns
52040
52040
  }), [f, p] = (0, _.useState)(e.variant === "uploader"), m = (0, _.useRef)(null), { value: h, setTrue: g, setFalse: v } = ul(!1), y = t === "modal" ? e.onClose : void 0, b = (0, _.useCallback)(() => {
52041
- let e = m.current?.getSnapshot();
52042
- e && (e.dirtyRowCount > 0 || e.deletedRowCount > 0) ? g() : y?.();
52043
- }, [g, y]), x = (0, _.useCallback)(() => y?.(), [y]), S = n(f ? "dataEditor.modal.importTitle" : "dataEditor.modal.editTitle");
52041
+ let t = m.current?.getSnapshot();
52042
+ t && (t.dirtyRowCount > 0 || t.deletedRowCount > 0) && !e.readonly ? g() : y?.();
52043
+ }, [
52044
+ g,
52045
+ y,
52046
+ e.readonly
52047
+ ]), x = (0, _.useCallback)(() => y?.(), [y]), S = n(f ? "dataEditor.modal.importTitle" : "dataEditor.modal.editTitle");
52044
52048
  (0, _.useEffect)(() => {
52045
52049
  t === "modal" && !o && p(e.variant === "uploader");
52046
52050
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@updog/data-editor-wc",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "Client-side CSV importer and spreadsheet editor SDK as a Web Component. Drop into Vue, Angular, Svelte, or vanilla JS. Import CSV, Excel, JSON; edit 1M+ rows entirely in the browser.",
5
5
  "author": "Mikhail Kutateladze <admin@updog.tech>",
6
6
  "homepage": "https://updog.tech",