gbs-add-block 1.0.28 → 1.0.29

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # GBS Building Blocks 2.0 (v1.0.28)
1
+ # GBS Building Blocks 2.0 (v1.0.29)
2
2
 
3
3
  Latest and upgraded version of GBS building blocks with headless UI and removed dependencies.
4
4
 
@@ -6,9 +6,9 @@ Latest and upgraded version of GBS building blocks with headless UI and removed
6
6
 
7
7
  For detailed documentation on usage and props, Please visit: [Building Block Documentation v2.0](https://gramprokit.vercel.app)
8
8
 
9
- ## What's New 🎉 (Ver 1.0.28)
9
+ ## What's New 🎉 (Ver 1.0.29)
10
10
 
11
- - General Bug Fix
11
+ - DataGrid Bug Fix
12
12
 
13
13
  ## Authors
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gbs-add-block",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "React Component Library",
5
5
  "type": "module",
6
6
  "files": [
@@ -110,8 +110,8 @@ export const GridProvider: React.FC<{
110
110
  const { selectedRows, handleSelectAll, handleSelect, isRowSelected } =
111
111
  useRowSelection(workingDataSource, onSelectRow);
112
112
 
113
- // Page status reporting
114
- usePageStatus(currentPage, totalPages, pageStatus);
113
+ // Page status reporting - Bug Report - causes re-rendering when currentPage or totalPages change
114
+ // usePageStatus(currentPage, totalPages, pageStatus);
115
115
 
116
116
  // Context value
117
117
  const contextValue: GridContextType = {
@@ -3,7 +3,7 @@ import {
3
3
  clearFilterHelper,
4
4
  handleApplyFilterHelper,
5
5
  } from "@grampro/headless-helpers";
6
- import { ActiveFilterArrayValue } from "../type";
6
+ import type { ActiveFilterArrayValue } from "../type";
7
7
 
8
8
  interface UseFilteringProps {
9
9
  columns: any[];
@@ -8,6 +8,7 @@
8
8
  * https://psychedelic-step-e70.notion.site/Data-GRID-by-GBS-R-D-20ff97c899d24bc590215a6196435fa3
9
9
  */
10
10
 
11
+ import React from "react";
11
12
  import { GridMemoised as GridComponent } from "./layout";
12
13
  import { memo } from "react";
13
14
 
@@ -3,7 +3,7 @@ import { useGridContext } from "../context/GridContext";
3
3
  import FilterPopup from "./FilterPopup";
4
4
  import Icon from "../../icon/Icon";
5
5
  import { listFilter } from "../../icon/iconPaths";
6
- import { Column } from "../type";
6
+ import type { Column } from "../type";
7
7
 
8
8
  const GridBody = () => {
9
9
  const {
@@ -1,4 +1,4 @@
1
- import { ChangeEvent } from "react";
1
+ import type { ChangeEvent } from "react";
2
2
 
3
3
  interface PageSettingsProps {
4
4
  pageNumber: number;