@espresso-lab/mantine-data-table 1.9.11 → 1.9.13

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,9 +1,8 @@
1
1
  import { BaseEntity } from '../Hooks/useApi';
2
- interface DeleteModalProps<T> {
2
+ export interface DeleteModalProps<T> {
3
3
  onClose: () => void;
4
4
  queryKey: (string | number)[];
5
5
  apiPath: string;
6
6
  selectedRecords: T[];
7
7
  }
8
- export type { DeleteModalProps };
9
8
  export declare function DeleteModal<T extends BaseEntity>({ queryKey, apiPath, onClose, selectedRecords, }: DeleteModalProps<T>): import("react/jsx-runtime").JSX.Element;
package/dist/index.es.js CHANGED
@@ -332,9 +332,7 @@ function Ty() {
332
332
  }
333
333
  var My = class extends ss {
334
334
  constructor(i, n) {
335
- super(), this.options = n, this.#t = i, this.#a = null, this.#s = tf(), this.options.experimental_prefetchInRender || this.#s.reject(
336
- new Error("experimental_prefetchInRender feature flag is not enabled")
337
- ), this.bindMethods(), this.setOptions(n);
335
+ super(), this.options = n, this.#t = i, this.#a = null, this.#s = tf(), this.bindMethods(), this.setOptions(n);
338
336
  }
339
337
  #t;
340
338
  #e = void 0;
@@ -409,7 +407,11 @@ var My = class extends ss {
409
407
  }
410
408
  trackResult(i, n) {
411
409
  return new Proxy(i, {
412
- get: (r, s) => (this.trackProp(s), n?.(s), Reflect.get(r, s))
410
+ get: (r, s) => (this.trackProp(s), n?.(s), s === "promise" && !this.options.experimental_prefetchInRender && this.#s.status === "pending" && this.#s.reject(
411
+ new Error(
412
+ "experimental_prefetchInRender feature flag is not enabled"
413
+ )
414
+ ), Reflect.get(r, s))
413
415
  });
414
416
  }
415
417
  trackProp(i) {