@infinite-table/infinite-react 7.2.5-canary.0 → 7.2.5-canary.1
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.
- package/index.dev.js +14 -9
- package/index.dev.mjs +8 -3
- package/index.js +8 -8
- package/index.mjs +8 -8
- package/package.json +2 -2
package/index.dev.js
CHANGED
|
@@ -1471,6 +1471,7 @@ var import_react6 = require("react");
|
|
|
1471
1471
|
|
|
1472
1472
|
// src/components/RawList/AvoidReactDiff.tsx
|
|
1473
1473
|
var React8 = __toESM(require("react"));
|
|
1474
|
+
var import_react_dom = require("react-dom");
|
|
1474
1475
|
var import_react5 = require("react");
|
|
1475
1476
|
function AvoidReactDiffFn(props) {
|
|
1476
1477
|
const [children, setChildren] = (0, import_react5.useState)(props.updater.get);
|
|
@@ -1482,10 +1483,14 @@ function AvoidReactDiffFn(props) {
|
|
|
1482
1483
|
cancelAnimationFrame(rafId.current);
|
|
1483
1484
|
}
|
|
1484
1485
|
rafId.current = requestAnimationFrame(() => {
|
|
1485
|
-
|
|
1486
|
+
(0, import_react_dom.flushSync)(() => {
|
|
1487
|
+
setChildren(children2);
|
|
1488
|
+
});
|
|
1486
1489
|
});
|
|
1487
1490
|
} else {
|
|
1488
|
-
|
|
1491
|
+
(0, import_react_dom.flushSync)(() => {
|
|
1492
|
+
setChildren(children2);
|
|
1493
|
+
});
|
|
1489
1494
|
}
|
|
1490
1495
|
}
|
|
1491
1496
|
const remove = props.updater.onChange(onChange);
|
|
@@ -6135,7 +6140,7 @@ function InfiniteTableFooter(props) {
|
|
|
6135
6140
|
// src/components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderCell.tsx
|
|
6136
6141
|
var React52 = __toESM(require("react"));
|
|
6137
6142
|
var import_react34 = require("react");
|
|
6138
|
-
var
|
|
6143
|
+
var import_react_dom2 = require("react-dom");
|
|
6139
6144
|
|
|
6140
6145
|
// src/utils/keyMirror.ts
|
|
6141
6146
|
function keyMirror(obj) {
|
|
@@ -13432,7 +13437,7 @@ function InfiniteTableHeaderCell(props) {
|
|
|
13432
13437
|
),
|
|
13433
13438
|
currentHeader
|
|
13434
13439
|
);
|
|
13435
|
-
draggingProxy = (0,
|
|
13440
|
+
draggingProxy = (0, import_react_dom2.createPortal)(draggingProxy, portalDOMRef.current);
|
|
13436
13441
|
}
|
|
13437
13442
|
return /* @__PURE__ */ React52.createElement(ContextProvider, { value: renderParam }, /* @__PURE__ */ React52.createElement(
|
|
13438
13443
|
InfiniteTableCell,
|
|
@@ -25721,7 +25726,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
25721
25726
|
}
|
|
25722
25727
|
let valid2 = isValidLicense(licenseKey, {
|
|
25723
25728
|
publishedAt: 1624970570587,
|
|
25724
|
-
version: "7.2.5-canary.
|
|
25729
|
+
version: "7.2.5-canary.1"
|
|
25725
25730
|
});
|
|
25726
25731
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
25727
25732
|
return true;
|
|
@@ -26584,7 +26589,7 @@ var import_react60 = require("react");
|
|
|
26584
26589
|
// src/components/hooks/useOverlay/index.tsx
|
|
26585
26590
|
var React60 = __toESM(require("react"));
|
|
26586
26591
|
var import_react56 = require("react");
|
|
26587
|
-
var
|
|
26592
|
+
var import_react_dom3 = require("react-dom");
|
|
26588
26593
|
|
|
26589
26594
|
// src/utils/pageGeometry/alignment/index.ts
|
|
26590
26595
|
function isHTMLElement(v) {
|
|
@@ -26836,7 +26841,7 @@ function useOverlayPortal(content, portalContainer) {
|
|
|
26836
26841
|
}
|
|
26837
26842
|
getContainer();
|
|
26838
26843
|
}, [portalContainer]);
|
|
26839
|
-
return portalContainer ? container ? (0,
|
|
26844
|
+
return portalContainer ? container ? (0, import_react_dom3.createPortal)(content, container) : (
|
|
26840
26845
|
// we're probably still fetching the container
|
|
26841
26846
|
/* @__PURE__ */ React60.createElement(React60.Fragment, null)
|
|
26842
26847
|
) : portalContainer === null || portalContainer === false ? content : /* @__PURE__ */ React60.createElement(DefaultOverlayPortal, null, content);
|
|
@@ -30744,7 +30749,7 @@ var FlashingColumnCell = createFlashingColumnCellComponent();
|
|
|
30744
30749
|
// src/components/HeadlessTable/MatrixDebugger.tsx
|
|
30745
30750
|
var React80 = __toESM(require("react"));
|
|
30746
30751
|
var import_react74 = require("react");
|
|
30747
|
-
var
|
|
30752
|
+
var import_react_dom4 = require("react-dom");
|
|
30748
30753
|
function INTERNAL_MatrixDebugger(props) {
|
|
30749
30754
|
const [getState, setGetState] = React80.useState(null);
|
|
30750
30755
|
(0, import_react74.useEffect)(() => {
|
|
@@ -30784,7 +30789,7 @@ function MatrixDebuggerUI() {
|
|
|
30784
30789
|
const columnsIndexes = cellManager.getColumnsWithCells();
|
|
30785
30790
|
const domRef = (0, import_react74.useRef)(null);
|
|
30786
30791
|
const displayTimeoutRef = (0, import_react74.useRef)(null);
|
|
30787
|
-
return /* @__PURE__ */ React80.createElement("div", { style: { overflow: "auto" } }, (0,
|
|
30792
|
+
return /* @__PURE__ */ React80.createElement("div", { style: { overflow: "auto" } }, (0, import_react_dom4.createPortal)(
|
|
30788
30793
|
/* @__PURE__ */ React80.createElement(
|
|
30789
30794
|
"div",
|
|
30790
30795
|
{
|
package/index.dev.mjs
CHANGED
|
@@ -1404,6 +1404,7 @@ import { useLayoutEffect as useLayoutEffect4, useMemo as useMemo2 } from "react"
|
|
|
1404
1404
|
|
|
1405
1405
|
// src/components/RawList/AvoidReactDiff.tsx
|
|
1406
1406
|
import * as React8 from "react";
|
|
1407
|
+
import { flushSync } from "react-dom";
|
|
1407
1408
|
import { useLayoutEffect as useLayoutEffect3, useRef as useRef4, useState } from "react";
|
|
1408
1409
|
function AvoidReactDiffFn(props) {
|
|
1409
1410
|
const [children, setChildren] = useState(props.updater.get);
|
|
@@ -1415,10 +1416,14 @@ function AvoidReactDiffFn(props) {
|
|
|
1415
1416
|
cancelAnimationFrame(rafId.current);
|
|
1416
1417
|
}
|
|
1417
1418
|
rafId.current = requestAnimationFrame(() => {
|
|
1418
|
-
|
|
1419
|
+
flushSync(() => {
|
|
1420
|
+
setChildren(children2);
|
|
1421
|
+
});
|
|
1419
1422
|
});
|
|
1420
1423
|
} else {
|
|
1421
|
-
|
|
1424
|
+
flushSync(() => {
|
|
1425
|
+
setChildren(children2);
|
|
1426
|
+
});
|
|
1422
1427
|
}
|
|
1423
1428
|
}
|
|
1424
1429
|
const remove = props.updater.onChange(onChange);
|
|
@@ -25671,7 +25676,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
25671
25676
|
}
|
|
25672
25677
|
let valid2 = isValidLicense(licenseKey, {
|
|
25673
25678
|
publishedAt: 1624970570587,
|
|
25674
|
-
version: "7.2.5-canary.
|
|
25679
|
+
version: "7.2.5-canary.1"
|
|
25675
25680
|
});
|
|
25676
25681
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
25677
25682
|
return true;
|