impact-ui 4.0.17-prev.1 → 4.0.17-prev.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.
@@ -1,4 +1,4 @@
1
- var propTypes = { exports: {} };
1
+ var reactIs = { exports: {} };
2
2
  export {
3
- propTypes as __module
3
+ reactIs as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var reactIs = { exports: {} };
1
+ var propTypes = { exports: {} };
2
2
  export {
3
- reactIs as __module
3
+ propTypes as __module
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TableOld/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,8CAA8C,CAAC;AACtD,OAAO,qBAAqB,CAAC;AAK7B,eAAO,MAAM,QAAQ,mFA0rBpB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TableOld/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,8CAA8C,CAAC;AACtD,OAAO,qBAAqB,CAAC;AAK7B,eAAO,MAAM,QAAQ,mFA8rBpB,CAAC"}
@@ -6,7 +6,7 @@ import { AgGridReact } from "ag-grid-react";
6
6
  import { getAssetUrl } from "../../utils/assetBase.js";
7
7
  import BulkActionBar from "./actionBar.js";
8
8
  import AgGridHeader from "./AgGridHeader.js";
9
- import { Columns, getMainMenuItems, updateFontSizeOnToolPanel } from "./tableFunctions.js";
9
+ import { getMainMenuItems, Columns, updateFontSizeOnToolPanel } from "./tableFunctions.js";
10
10
  import TableHeader from "./tableHeader.js";
11
11
  import TablePagination from "./tablePagination.js";
12
12
  import AdvanceSearchModal from "../Table/advanceSearchModal.js";
@@ -471,12 +471,17 @@ const OldTable = forwardRef(
471
471
  /* @__PURE__ */ jsx("span", { children: emptyStateText ?? t("table.noData") })
472
472
  ] });
473
473
  };
474
- const gridContext = useMemo(
475
- () => ({
476
- ...args.context,
477
- t
478
- }),
479
- [t, args.context]
474
+ const resolvedGetMainMenuItems = useCallback(
475
+ (params) => {
476
+ if (customGetMainMenuItems) {
477
+ return customGetMainMenuItems(params);
478
+ }
479
+ return getMainMenuItems({
480
+ ...params,
481
+ context: { ...params == null ? void 0 : params.context, t }
482
+ });
483
+ },
484
+ [customGetMainMenuItems, t]
480
485
  );
481
486
  return /* @__PURE__ */ jsx(
482
487
  "div",
@@ -573,13 +578,12 @@ const OldTable = forwardRef(
573
578
  suppressMenuHide: true,
574
579
  animateRows: viewPoint === "list" ? true : args.animateRows,
575
580
  columnDefs: columnSettingsMode === "v36" ? columnDefs : girdColumns,
576
- context: gridContext,
577
581
  defaultColDef,
578
582
  domLayout: viewPoint === "list" ? "normal" : "autoHeight",
579
583
  enableCellTextSelection: viewPoint === "list" ? true : args.enableCellTextSelection,
580
584
  ensureDomOrder: viewPoint === "list" ? false : args.ensureDomOrder,
581
585
  getLocaleText,
582
- getMainMenuItems: customGetMainMenuItems || getMainMenuItems,
586
+ getMainMenuItems: resolvedGetMainMenuItems,
583
587
  getRowClass: getRowClassWrapper,
584
588
  getRowHeight: getRowHeightWrapper,
585
589
  headerHeight: 40,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "generatedAt": "2026-10-30T12:42:58.817Z",
3
+ "generatedAt": "2026-10-30T13:05:06.658Z",
4
4
  "components": {
5
5
  "Menu": {
6
6
  "title": "Components/Menu",
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
2
- import { __module as propTypes } from "../../_virtual/index2.js";
2
+ import { __module as propTypes } from "../../_virtual/index3.js";
3
3
  import { __require as requireReactIs } from "./node_modules/react-is/index.js";
4
4
  import { __require as requireFactoryWithTypeCheckers } from "./factoryWithTypeCheckers.js";
5
5
  import { __require as requireFactoryWithThrowingShims } from "./factoryWithThrowingShims.js";
@@ -1,4 +1,4 @@
1
- import { __module as reactIs } from "../../_virtual/index3.js";
1
+ import { __module as reactIs } from "../../_virtual/index2.js";
2
2
  import { __require as requireReactIs_production } from "./cjs/react-is.production.js";
3
3
  import { __require as requireReactIs_development } from "./cjs/react-is.development.js";
4
4
  if (process.env.NODE_ENV === "production") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impact-ui",
3
- "version": "4.0.17-prev.1",
3
+ "version": "4.0.17-prev.2",
4
4
  "description": "Impact Analytics UI library",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",