@infinite-table/infinite-react 11.0.1 → 11.0.2
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 +58 -46
- package/index.dev.mjs +58 -46
- package/index.js +8 -8
- package/index.mjs +8 -8
- package/package.json +2 -2
package/index.dev.js
CHANGED
|
@@ -29783,8 +29783,8 @@ function getLicenseStatus(licenseKey = "", options) {
|
|
|
29783
29783
|
return "valid";
|
|
29784
29784
|
}
|
|
29785
29785
|
const result = checkLicense(licenseKey, {
|
|
29786
|
-
publishedAt:
|
|
29787
|
-
version: "11.0.
|
|
29786
|
+
publishedAt: 1796056580800,
|
|
29787
|
+
version: "11.0.2"
|
|
29788
29788
|
});
|
|
29789
29789
|
if (result === "invalid" && !licenseKey) {
|
|
29790
29790
|
return "missing";
|
|
@@ -33285,7 +33285,7 @@ var DevToolsOverlay = createRuntimeFn({ defaultClassName: "_143ofgf0", variantCl
|
|
|
33285
33285
|
var DevToolsOverlayBg = "_143ofgf5";
|
|
33286
33286
|
var DevToolsOverlayText = "_143ofgf3";
|
|
33287
33287
|
|
|
33288
|
-
// src/components/InfiniteTable/
|
|
33288
|
+
// src/components/InfiniteTable/utils/devToolsConnection.ts
|
|
33289
33289
|
var cssFileLoadedVarName = stripVar(ThemeVars.loaded);
|
|
33290
33290
|
var messageBase = {
|
|
33291
33291
|
source: "infinite-table-page",
|
|
@@ -33420,37 +33420,6 @@ var setupHook = once(() => {
|
|
|
33420
33420
|
});
|
|
33421
33421
|
return hookFn;
|
|
33422
33422
|
});
|
|
33423
|
-
function useDebugMode() {
|
|
33424
|
-
const { getState, getDataSourceState, dataSourceActions } = useInfiniteTableSelector((ctx) => {
|
|
33425
|
-
return {
|
|
33426
|
-
getState: ctx.getState,
|
|
33427
|
-
getDataSourceState: ctx.getDataSourceState,
|
|
33428
|
-
dataSourceActions: ctx.dataSourceActions
|
|
33429
|
-
};
|
|
33430
|
-
});
|
|
33431
|
-
const state = getState();
|
|
33432
|
-
const { domRef, debugId } = state;
|
|
33433
|
-
if (debugId) {
|
|
33434
|
-
if (domRef.current) {
|
|
33435
|
-
const value = getComputedStyle(domRef.current).getPropertyValue(
|
|
33436
|
-
cssFileLoadedVarName
|
|
33437
|
-
);
|
|
33438
|
-
if (value !== `${CSS_LOADED_VALUE}`) {
|
|
33439
|
-
logDevToolsWarning({
|
|
33440
|
-
debugId,
|
|
33441
|
-
key: "CSS001_CSS"
|
|
33442
|
-
});
|
|
33443
|
-
}
|
|
33444
|
-
}
|
|
33445
|
-
}
|
|
33446
|
-
(0, import_react68.useEffect)(() => {
|
|
33447
|
-
const dataSourceState = getDataSourceState();
|
|
33448
|
-
if (dataSourceState.debugId !== debugId) {
|
|
33449
|
-
dataSourceActions.debugId = debugId;
|
|
33450
|
-
}
|
|
33451
|
-
}, [debugId]);
|
|
33452
|
-
return useDevTools();
|
|
33453
|
-
}
|
|
33454
33423
|
var HOOK_FN_SETUP_CALLBACK = buildSubscriptionCallback();
|
|
33455
33424
|
var DEVTOOLS_MESSAGES = {
|
|
33456
33425
|
revertAll: (payload) => {
|
|
@@ -33673,6 +33642,57 @@ function listenForDevTools() {
|
|
|
33673
33642
|
}
|
|
33674
33643
|
}
|
|
33675
33644
|
listenForDevTools();
|
|
33645
|
+
function warnIfDevToolsCssNotLoaded(debugId, domNode) {
|
|
33646
|
+
if (!domNode) {
|
|
33647
|
+
return;
|
|
33648
|
+
}
|
|
33649
|
+
const value = getComputedStyle(domNode).getPropertyValue(cssFileLoadedVarName);
|
|
33650
|
+
if (value !== `${CSS_LOADED_VALUE}`) {
|
|
33651
|
+
logDevToolsWarning({
|
|
33652
|
+
debugId,
|
|
33653
|
+
key: "CSS001_CSS"
|
|
33654
|
+
});
|
|
33655
|
+
}
|
|
33656
|
+
}
|
|
33657
|
+
function getDevToolsHookFn() {
|
|
33658
|
+
return HOOK_FN_SETUP_CALLBACK.get();
|
|
33659
|
+
}
|
|
33660
|
+
function onDevToolsHookFn(fn) {
|
|
33661
|
+
return HOOK_FN_SETUP_CALLBACK.onChange((hookFn) => {
|
|
33662
|
+
if (hookFn) {
|
|
33663
|
+
fn(hookFn);
|
|
33664
|
+
}
|
|
33665
|
+
});
|
|
33666
|
+
}
|
|
33667
|
+
function disconnectFromDevTools(debugId) {
|
|
33668
|
+
const devtoolsHookFn = globalThis.__INFINITE_TABLE_DEVTOOLS_HOOK__;
|
|
33669
|
+
if (devtoolsHookFn) {
|
|
33670
|
+
devtoolsHookFn(debugId, null);
|
|
33671
|
+
}
|
|
33672
|
+
}
|
|
33673
|
+
|
|
33674
|
+
// src/components/InfiniteTable/hooks/useDebugMode.ts
|
|
33675
|
+
function useDebugMode() {
|
|
33676
|
+
const { getState, getDataSourceState, dataSourceActions } = useInfiniteTableSelector((ctx) => {
|
|
33677
|
+
return {
|
|
33678
|
+
getState: ctx.getState,
|
|
33679
|
+
getDataSourceState: ctx.getDataSourceState,
|
|
33680
|
+
dataSourceActions: ctx.dataSourceActions
|
|
33681
|
+
};
|
|
33682
|
+
});
|
|
33683
|
+
const state = getState();
|
|
33684
|
+
const { domRef, debugId } = state;
|
|
33685
|
+
if (debugId) {
|
|
33686
|
+
warnIfDevToolsCssNotLoaded(debugId, domRef.current);
|
|
33687
|
+
}
|
|
33688
|
+
(0, import_react68.useEffect)(() => {
|
|
33689
|
+
const dataSourceState = getDataSourceState();
|
|
33690
|
+
if (dataSourceState.debugId !== debugId) {
|
|
33691
|
+
dataSourceActions.debugId = debugId;
|
|
33692
|
+
}
|
|
33693
|
+
}, [debugId]);
|
|
33694
|
+
return useDevTools();
|
|
33695
|
+
}
|
|
33676
33696
|
function useDevTools() {
|
|
33677
33697
|
const {
|
|
33678
33698
|
getState,
|
|
@@ -33713,24 +33733,19 @@ function useDevTools() {
|
|
|
33713
33733
|
dataSourceApi
|
|
33714
33734
|
});
|
|
33715
33735
|
};
|
|
33716
|
-
const hookFn =
|
|
33736
|
+
const hookFn = getDevToolsHookFn();
|
|
33717
33737
|
if (hookFn) {
|
|
33718
33738
|
withHookFn(hookFn);
|
|
33719
33739
|
return;
|
|
33720
33740
|
}
|
|
33721
|
-
return
|
|
33722
|
-
if (!hookFn2) {
|
|
33723
|
-
return;
|
|
33724
|
-
}
|
|
33725
|
-
withHookFn(hookFn2);
|
|
33726
|
-
});
|
|
33741
|
+
return onDevToolsHookFn(withHookFn);
|
|
33727
33742
|
}, []);
|
|
33728
33743
|
(0, import_react68.useEffect)(() => {
|
|
33729
33744
|
const debugId2 = debugIdRef.current;
|
|
33730
33745
|
if (!debugId2) {
|
|
33731
33746
|
return;
|
|
33732
33747
|
}
|
|
33733
|
-
const hookFn =
|
|
33748
|
+
const hookFn = getDevToolsHookFn();
|
|
33734
33749
|
if (hookFn) {
|
|
33735
33750
|
hookFn(debugId2, {
|
|
33736
33751
|
getState,
|
|
@@ -33748,10 +33763,7 @@ function useDevTools() {
|
|
|
33748
33763
|
return;
|
|
33749
33764
|
}
|
|
33750
33765
|
return () => {
|
|
33751
|
-
|
|
33752
|
-
if (devtoolsHookFn) {
|
|
33753
|
-
devtoolsHookFn(debugId, null);
|
|
33754
|
-
}
|
|
33766
|
+
disconnectFromDevTools(debugId);
|
|
33755
33767
|
};
|
|
33756
33768
|
}, [debugId]);
|
|
33757
33769
|
return debugId;
|
package/index.dev.mjs
CHANGED
|
@@ -29726,8 +29726,8 @@ function getLicenseStatus(licenseKey = "", options) {
|
|
|
29726
29726
|
return "valid";
|
|
29727
29727
|
}
|
|
29728
29728
|
const result = checkLicense(licenseKey, {
|
|
29729
|
-
publishedAt:
|
|
29730
|
-
version: "11.0.
|
|
29729
|
+
publishedAt: 1796056580800,
|
|
29730
|
+
version: "11.0.2"
|
|
29731
29731
|
});
|
|
29732
29732
|
if (result === "invalid" && !licenseKey) {
|
|
29733
29733
|
return "missing";
|
|
@@ -33238,7 +33238,7 @@ var DevToolsOverlay = createRuntimeFn({ defaultClassName: "_143ofgf0", variantCl
|
|
|
33238
33238
|
var DevToolsOverlayBg = "_143ofgf5";
|
|
33239
33239
|
var DevToolsOverlayText = "_143ofgf3";
|
|
33240
33240
|
|
|
33241
|
-
// src/components/InfiniteTable/
|
|
33241
|
+
// src/components/InfiniteTable/utils/devToolsConnection.ts
|
|
33242
33242
|
var cssFileLoadedVarName = stripVar(ThemeVars.loaded);
|
|
33243
33243
|
var messageBase = {
|
|
33244
33244
|
source: "infinite-table-page",
|
|
@@ -33373,37 +33373,6 @@ var setupHook = once(() => {
|
|
|
33373
33373
|
});
|
|
33374
33374
|
return hookFn;
|
|
33375
33375
|
});
|
|
33376
|
-
function useDebugMode() {
|
|
33377
|
-
const { getState, getDataSourceState, dataSourceActions } = useInfiniteTableSelector((ctx) => {
|
|
33378
|
-
return {
|
|
33379
|
-
getState: ctx.getState,
|
|
33380
|
-
getDataSourceState: ctx.getDataSourceState,
|
|
33381
|
-
dataSourceActions: ctx.dataSourceActions
|
|
33382
|
-
};
|
|
33383
|
-
});
|
|
33384
|
-
const state = getState();
|
|
33385
|
-
const { domRef, debugId } = state;
|
|
33386
|
-
if (debugId) {
|
|
33387
|
-
if (domRef.current) {
|
|
33388
|
-
const value = getComputedStyle(domRef.current).getPropertyValue(
|
|
33389
|
-
cssFileLoadedVarName
|
|
33390
|
-
);
|
|
33391
|
-
if (value !== `${CSS_LOADED_VALUE}`) {
|
|
33392
|
-
logDevToolsWarning({
|
|
33393
|
-
debugId,
|
|
33394
|
-
key: "CSS001_CSS"
|
|
33395
|
-
});
|
|
33396
|
-
}
|
|
33397
|
-
}
|
|
33398
|
-
}
|
|
33399
|
-
useEffect38(() => {
|
|
33400
|
-
const dataSourceState = getDataSourceState();
|
|
33401
|
-
if (dataSourceState.debugId !== debugId) {
|
|
33402
|
-
dataSourceActions.debugId = debugId;
|
|
33403
|
-
}
|
|
33404
|
-
}, [debugId]);
|
|
33405
|
-
return useDevTools();
|
|
33406
|
-
}
|
|
33407
33376
|
var HOOK_FN_SETUP_CALLBACK = buildSubscriptionCallback();
|
|
33408
33377
|
var DEVTOOLS_MESSAGES = {
|
|
33409
33378
|
revertAll: (payload) => {
|
|
@@ -33626,6 +33595,57 @@ function listenForDevTools() {
|
|
|
33626
33595
|
}
|
|
33627
33596
|
}
|
|
33628
33597
|
listenForDevTools();
|
|
33598
|
+
function warnIfDevToolsCssNotLoaded(debugId, domNode) {
|
|
33599
|
+
if (!domNode) {
|
|
33600
|
+
return;
|
|
33601
|
+
}
|
|
33602
|
+
const value = getComputedStyle(domNode).getPropertyValue(cssFileLoadedVarName);
|
|
33603
|
+
if (value !== `${CSS_LOADED_VALUE}`) {
|
|
33604
|
+
logDevToolsWarning({
|
|
33605
|
+
debugId,
|
|
33606
|
+
key: "CSS001_CSS"
|
|
33607
|
+
});
|
|
33608
|
+
}
|
|
33609
|
+
}
|
|
33610
|
+
function getDevToolsHookFn() {
|
|
33611
|
+
return HOOK_FN_SETUP_CALLBACK.get();
|
|
33612
|
+
}
|
|
33613
|
+
function onDevToolsHookFn(fn) {
|
|
33614
|
+
return HOOK_FN_SETUP_CALLBACK.onChange((hookFn) => {
|
|
33615
|
+
if (hookFn) {
|
|
33616
|
+
fn(hookFn);
|
|
33617
|
+
}
|
|
33618
|
+
});
|
|
33619
|
+
}
|
|
33620
|
+
function disconnectFromDevTools(debugId) {
|
|
33621
|
+
const devtoolsHookFn = globalThis.__INFINITE_TABLE_DEVTOOLS_HOOK__;
|
|
33622
|
+
if (devtoolsHookFn) {
|
|
33623
|
+
devtoolsHookFn(debugId, null);
|
|
33624
|
+
}
|
|
33625
|
+
}
|
|
33626
|
+
|
|
33627
|
+
// src/components/InfiniteTable/hooks/useDebugMode.ts
|
|
33628
|
+
function useDebugMode() {
|
|
33629
|
+
const { getState, getDataSourceState, dataSourceActions } = useInfiniteTableSelector((ctx) => {
|
|
33630
|
+
return {
|
|
33631
|
+
getState: ctx.getState,
|
|
33632
|
+
getDataSourceState: ctx.getDataSourceState,
|
|
33633
|
+
dataSourceActions: ctx.dataSourceActions
|
|
33634
|
+
};
|
|
33635
|
+
});
|
|
33636
|
+
const state = getState();
|
|
33637
|
+
const { domRef, debugId } = state;
|
|
33638
|
+
if (debugId) {
|
|
33639
|
+
warnIfDevToolsCssNotLoaded(debugId, domRef.current);
|
|
33640
|
+
}
|
|
33641
|
+
useEffect38(() => {
|
|
33642
|
+
const dataSourceState = getDataSourceState();
|
|
33643
|
+
if (dataSourceState.debugId !== debugId) {
|
|
33644
|
+
dataSourceActions.debugId = debugId;
|
|
33645
|
+
}
|
|
33646
|
+
}, [debugId]);
|
|
33647
|
+
return useDevTools();
|
|
33648
|
+
}
|
|
33629
33649
|
function useDevTools() {
|
|
33630
33650
|
const {
|
|
33631
33651
|
getState,
|
|
@@ -33666,24 +33686,19 @@ function useDevTools() {
|
|
|
33666
33686
|
dataSourceApi
|
|
33667
33687
|
});
|
|
33668
33688
|
};
|
|
33669
|
-
const hookFn =
|
|
33689
|
+
const hookFn = getDevToolsHookFn();
|
|
33670
33690
|
if (hookFn) {
|
|
33671
33691
|
withHookFn(hookFn);
|
|
33672
33692
|
return;
|
|
33673
33693
|
}
|
|
33674
|
-
return
|
|
33675
|
-
if (!hookFn2) {
|
|
33676
|
-
return;
|
|
33677
|
-
}
|
|
33678
|
-
withHookFn(hookFn2);
|
|
33679
|
-
});
|
|
33694
|
+
return onDevToolsHookFn(withHookFn);
|
|
33680
33695
|
}, []);
|
|
33681
33696
|
useEffect38(() => {
|
|
33682
33697
|
const debugId2 = debugIdRef.current;
|
|
33683
33698
|
if (!debugId2) {
|
|
33684
33699
|
return;
|
|
33685
33700
|
}
|
|
33686
|
-
const hookFn =
|
|
33701
|
+
const hookFn = getDevToolsHookFn();
|
|
33687
33702
|
if (hookFn) {
|
|
33688
33703
|
hookFn(debugId2, {
|
|
33689
33704
|
getState,
|
|
@@ -33701,10 +33716,7 @@ function useDevTools() {
|
|
|
33701
33716
|
return;
|
|
33702
33717
|
}
|
|
33703
33718
|
return () => {
|
|
33704
|
-
|
|
33705
|
-
if (devtoolsHookFn) {
|
|
33706
|
-
devtoolsHookFn(debugId, null);
|
|
33707
|
-
}
|
|
33719
|
+
disconnectFromDevTools(debugId);
|
|
33708
33720
|
};
|
|
33709
33721
|
}, [debugId]);
|
|
33710
33722
|
return debugId;
|