@open-condo/ui 2.49.0 → 2.50.0

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 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,OAAO,EAQV,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAA6F,MAAM,OAAO,CAAA;AAYjH,OAAO,KAAK,EACR,UAAU,EAEV,QAAQ,EAMX,MAAM,2CAA2C,CAAA;AAClD,OAAO,2CAA2C,CAAA;AAuclD,eAAO,MAAM,KAAK,EAAiC,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAC/E,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;CAAE,KACvD,KAAK,CAAC,YAAY,CAAA"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,OAAO,EAQV,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAA6F,MAAM,OAAO,CAAA;AAYjH,OAAO,KAAK,EACR,UAAU,EAEV,QAAQ,EAMX,MAAM,2CAA2C,CAAA;AAClD,OAAO,2CAA2C,CAAA;AA6clD,eAAO,MAAM,KAAK,EAAiC,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAC/E,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;CAAE,KACvD,KAAK,CAAC,YAAY,CAAA"}
package/dist/index.js CHANGED
@@ -56743,7 +56743,7 @@ var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
56743
56743
  var isString = __webpack_require__(8138);
56744
56744
  var isString_default = /*#__PURE__*/__webpack_require__.n(isString);
56745
56745
  ;// ./package.json
56746
- var package_namespaceObject = {"rE":"2.49.0"};
56746
+ var package_namespaceObject = {"rE":"2.50.0"};
56747
56747
  ;// ./src/components/_utils/analytics.ts
56748
56748
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
56749
56749
 
@@ -88849,7 +88849,11 @@ function TableComponent(props, ref) {
88849
88849
  }
88850
88850
 
88851
88851
  return tableColumns;
88852
- }, [tableColumns, columnOrder]); // NOTE: This effect should be first, because if we have error in this effect, we don't want to change the table state and fetch new data
88852
+ }, [tableColumns, columnOrder]);
88853
+ var onTableStateChangeRef = (0,external_react_.useRef)(onTableStateChange);
88854
+ (0,external_react_.useEffect)(function () {
88855
+ onTableStateChangeRef.current = onTableStateChange;
88856
+ }, [onTableStateChange]); // NOTE: This effect should be first, because if we have error in this effect, we don't want to change the table state and fetch new data
88853
88857
 
88854
88858
  (0,external_react_.useEffect)(function () {
88855
88859
  var handleTableStateChange = /*#__PURE__*/function () {
@@ -88859,14 +88863,14 @@ function TableComponent(props, ref) {
88859
88863
  while (1) {
88860
88864
  switch (_context.prev = _context.next) {
88861
88865
  case 0:
88862
- if (onTableStateChange) {
88866
+ if (onTableStateChangeRef.current) {
88863
88867
  startRow = pagination.pageIndex * pagination.pageSize;
88864
88868
  endRow = startRow + pagination.pageSize;
88865
88869
  filterState = columnFilters.reduce(function (acc, filter) {
88866
88870
  acc[filter.id] = filter.value;
88867
88871
  return acc;
88868
88872
  }, {});
88869
- onTableStateChange({
88873
+ onTableStateChangeRef.current({
88870
88874
  startRow: startRow,
88871
88875
  endRow: endRow,
88872
88876
  filterState: filterState,
@@ -88890,7 +88894,7 @@ function TableComponent(props, ref) {
88890
88894
  }();
88891
88895
 
88892
88896
  handleTableStateChange();
88893
- }, [sorting, pagination, columnFilters, onTableStateChange, rowSelection, globalFilter]);
88897
+ }, [sorting, pagination, columnFilters, rowSelection, globalFilter]);
88894
88898
  var stableDataSource = (0,external_react_.useRef)(dataSource);
88895
88899
  (0,external_react_.useEffect)(function () {
88896
88900
  stableDataSource.current = dataSource;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 09 Dec 2025 13:43:30 GMT
3
+ * Generated on Wed, 10 Dec 2025 06:39:25 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 09 Dec 2025 13:43:30 GMT
3
+ // Generated on Wed, 10 Dec 2025 06:39:25 GMT
4
4
 
5
5
  @condo-global-spacing-4: 4px;
6
6
  @condo-global-spacing-8: 8px;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "React",
9
9
  "components"
10
10
  ],
11
- "version": "2.49.0",
11
+ "version": "2.50.0",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/open-condo-software/condo.git",