@infinite-table/infinite-react 0.4.2 → 0.4.3
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.d.ts +0 -1
- package/index.esm.js +6 -8
- package/index.js +6 -8
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1962,7 +1962,6 @@ declare type ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT
|
|
|
1962
1962
|
state: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & Partial<COMPONENT_DERIVED_STATE>;
|
|
1963
1963
|
oldState: null | (COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & Partial<COMPONENT_DERIVED_STATE>);
|
|
1964
1964
|
parentState: T_PARENT_STATE | null;
|
|
1965
|
-
getState: () => COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
|
|
1966
1965
|
}) => COMPONENT_DERIVED_STATE;
|
|
1967
1966
|
concludeReducer?: (params: {
|
|
1968
1967
|
previousState: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
|
package/index.esm.js
CHANGED
|
@@ -4063,8 +4063,7 @@ function getComponentStateRoot(config) {
|
|
|
4063
4063
|
props,
|
|
4064
4064
|
state: state2,
|
|
4065
4065
|
oldState: null,
|
|
4066
|
-
parentState
|
|
4067
|
-
getState: getComponentState
|
|
4066
|
+
parentState
|
|
4068
4067
|
});
|
|
4069
4068
|
propsToStateSetRef.current = new Set([
|
|
4070
4069
|
...propsToStateSetRef.current,
|
|
@@ -4098,8 +4097,7 @@ function getComponentStateRoot(config) {
|
|
|
4098
4097
|
props: getProps(),
|
|
4099
4098
|
state: newState,
|
|
4100
4099
|
oldState: previousState,
|
|
4101
|
-
parentState: parentState2
|
|
4102
|
-
getState: getComponentState
|
|
4100
|
+
parentState: parentState2
|
|
4103
4101
|
});
|
|
4104
4102
|
propsToStateSetRef.current = new Set([
|
|
4105
4103
|
...propsToStateSetRef.current,
|
|
@@ -9158,7 +9156,7 @@ function getLivePaginationCursorValue(livePaginationCursorProp, state) {
|
|
|
9158
9156
|
}
|
|
9159
9157
|
function mapPropsToState(params) {
|
|
9160
9158
|
var _a, _b;
|
|
9161
|
-
const { props, state, oldState
|
|
9159
|
+
const { props, state, oldState } = params;
|
|
9162
9160
|
const controlledSort = isControlledValue(props.sortInfo);
|
|
9163
9161
|
const controlledFilter = isControlledValue(props.filterValue);
|
|
9164
9162
|
const { filterTypes } = state;
|
|
@@ -9196,9 +9194,9 @@ function mapPropsToState(params) {
|
|
|
9196
9194
|
selectedRows: [],
|
|
9197
9195
|
deselectedRows: [],
|
|
9198
9196
|
defaultSelection: false
|
|
9199
|
-
}, rowSelectionStateConfigGetter(
|
|
9197
|
+
}, rowSelectionStateConfigGetter(state));
|
|
9200
9198
|
} else {
|
|
9201
|
-
rowSelectionState = selectionMode === "single-row" ? currentRowSelection : currentRowSelection instanceof RowSelectionState ? currentRowSelection : new RowSelectionState(currentRowSelection, rowSelectionStateConfigGetter(
|
|
9199
|
+
rowSelectionState = selectionMode === "single-row" ? currentRowSelection : currentRowSelection instanceof RowSelectionState ? currentRowSelection : new RowSelectionState(currentRowSelection, rowSelectionStateConfigGetter(state));
|
|
9202
9200
|
}
|
|
9203
9201
|
}
|
|
9204
9202
|
}
|
|
@@ -12056,7 +12054,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
12056
12054
|
const valid = useMemo11(() => {
|
|
12057
12055
|
let valid2 = isValidLicense(licenseKey, {
|
|
12058
12056
|
publishedAt: 1624970570587,
|
|
12059
|
-
version: "0.4.
|
|
12057
|
+
version: "0.4.3"
|
|
12060
12058
|
});
|
|
12061
12059
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
12062
12060
|
return true;
|
package/index.js
CHANGED
|
@@ -4037,8 +4037,7 @@ function getComponentStateRoot(config) {
|
|
|
4037
4037
|
props,
|
|
4038
4038
|
state: state2,
|
|
4039
4039
|
oldState: null,
|
|
4040
|
-
parentState
|
|
4041
|
-
getState: getComponentState
|
|
4040
|
+
parentState
|
|
4042
4041
|
});
|
|
4043
4042
|
propsToStateSetRef.current = new Set([
|
|
4044
4043
|
...propsToStateSetRef.current,
|
|
@@ -4072,8 +4071,7 @@ function getComponentStateRoot(config) {
|
|
|
4072
4071
|
props: getProps(),
|
|
4073
4072
|
state: newState,
|
|
4074
4073
|
oldState: previousState,
|
|
4075
|
-
parentState: parentState2
|
|
4076
|
-
getState: getComponentState
|
|
4074
|
+
parentState: parentState2
|
|
4077
4075
|
});
|
|
4078
4076
|
propsToStateSetRef.current = new Set([
|
|
4079
4077
|
...propsToStateSetRef.current,
|
|
@@ -9072,7 +9070,7 @@ function getLivePaginationCursorValue(livePaginationCursorProp, state) {
|
|
|
9072
9070
|
}
|
|
9073
9071
|
function mapPropsToState(params) {
|
|
9074
9072
|
var _a, _b;
|
|
9075
|
-
const { props, state, oldState
|
|
9073
|
+
const { props, state, oldState } = params;
|
|
9076
9074
|
const controlledSort = isControlledValue(props.sortInfo);
|
|
9077
9075
|
const controlledFilter = isControlledValue(props.filterValue);
|
|
9078
9076
|
const { filterTypes } = state;
|
|
@@ -9110,9 +9108,9 @@ function mapPropsToState(params) {
|
|
|
9110
9108
|
selectedRows: [],
|
|
9111
9109
|
deselectedRows: [],
|
|
9112
9110
|
defaultSelection: false
|
|
9113
|
-
}, rowSelectionStateConfigGetter(
|
|
9111
|
+
}, rowSelectionStateConfigGetter(state));
|
|
9114
9112
|
} else {
|
|
9115
|
-
rowSelectionState = selectionMode === "single-row" ? currentRowSelection : currentRowSelection instanceof RowSelectionState ? currentRowSelection : new RowSelectionState(currentRowSelection, rowSelectionStateConfigGetter(
|
|
9113
|
+
rowSelectionState = selectionMode === "single-row" ? currentRowSelection : currentRowSelection instanceof RowSelectionState ? currentRowSelection : new RowSelectionState(currentRowSelection, rowSelectionStateConfigGetter(state));
|
|
9116
9114
|
}
|
|
9117
9115
|
}
|
|
9118
9116
|
}
|
|
@@ -11957,7 +11955,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
11957
11955
|
const valid = (0, import_react44.useMemo)(() => {
|
|
11958
11956
|
let valid2 = isValidLicense(licenseKey, {
|
|
11959
11957
|
publishedAt: 1624970570587,
|
|
11960
|
-
version: "0.4.
|
|
11958
|
+
version: "0.4.3"
|
|
11961
11959
|
});
|
|
11962
11960
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
11963
11961
|
return true;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infinite-table/infinite-react",
|
|
3
3
|
"description": "Infinite Table for React",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
7
7
|
"typings": "index.d.ts",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "Commercial & Open Source",
|
|
16
16
|
"//": "will be updated at build time",
|
|
17
|
-
"publishedAt":
|
|
17
|
+
"publishedAt": 1660581890704
|
|
18
18
|
}
|