impact-chatbot 2.3.58 → 2.3.60

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/dist/index.esm.js CHANGED
@@ -5751,7 +5751,7 @@ const TableContent = ({ bodyText }) => {
5751
5751
  }
5752
5752
  }, [table_config]);
5753
5753
  useEffect(() => {
5754
- if (!is_server_side && !isEmpty$1(rowData)) {
5754
+ if (!is_server_side && !isEmpty$1(row_data)) {
5755
5755
  setRowData(row_data);
5756
5756
  }
5757
5757
  }, [row_data]);
@@ -5809,12 +5809,12 @@ const TableContent = ({ bodyText }) => {
5809
5809
  const handleModalClose = () => {
5810
5810
  setIsModalOpen(false);
5811
5811
  };
5812
- return (jsxs(Fragment, { children: [jsx(Modal, { className: "test-modal", onClose: handleModalClose, onPrimaryButtonClick: () => { }, onSecondaryButtonClick: handleModalClose, open: isModalOpen, size: "large", title: "", children: jsx("div", { style: { width: '100%', height: '70vh' }, children: jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ? undefined : rowData, pagination: true, paginationPageSize: is_server_side ? page_size : 20, suppressFieldDotNotation: true, domLayout: "normal", sizeColumnsToFitFlag: true, showSaveTableConfig: false, showSearchModalBtn: false, hideFormatSideBar: true, uniqueRowId: unique_id, selectAllHeaderComponent: select_all_component, onSelectionChanged: onSelectionChanged, hideTableSetting: hide_table_setting, downloadAsExcel: is_server_side ? false : true, tableHeader: display_name, ...(is_server_side && {
5812
+ return (jsxs(Fragment, { children: [jsx(Modal, { className: "test-modal", onClose: handleModalClose, onPrimaryButtonClick: () => { }, onSecondaryButtonClick: handleModalClose, open: isModalOpen, size: "large", title: "", children: jsx("div", { style: { width: '100%', height: '70vh' }, children: jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ? null : rowData, pagination: true, paginationPageSize: is_server_side ? page_size : 20, suppressFieldDotNotation: true, domLayout: "normal", sizeColumnsToFitFlag: true, showSaveTableConfig: false, showSearchModalBtn: false, hideFormatSideBar: true, uniqueRowId: unique_id, selectAllHeaderComponent: select_all_component, onSelectionChanged: onSelectionChanged, hideTableSetting: hide_table_setting, downloadAsExcel: is_server_side ? false : true, tableHeader: display_name, ...(is_server_side && {
5813
5813
  manualCallBack: serverSideManualCallBack,
5814
5814
  rowModelType: "serverSide",
5815
5815
  serverSideStoreType: "partial",
5816
5816
  cacheBlockSize: page_size,
5817
- }) }) }) }), jsx("div", { style: { width: '100%', marginTop: '10px' }, children: jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ? undefined : rowData, pagination: true, paginationPageSize: is_server_side ? page_size : 10, suppressFieldDotNotation: true, domLayout: "autoHeight", customClass: "bot_table_auto_height", sizeColumnsToFitFlag: true, showSaveTableConfig: false, showSearchModalBtn: false, hideFormatSideBar: true, uniqueRowId: unique_id, selectAllHeaderComponent: select_all_component, onSelectionChanged: onSelectionChanged, hideTableSetting: hide_table_setting, customSystemButton: getTopRightOptions(), customSystemButtonWithDownload: !is_server_side, topRightOptions: null, downloadAsExcel: is_server_side ? false : true, tableHeader: display_name, ...(is_server_side && {
5817
+ }) }) }) }), jsx("div", { style: { width: '100%', marginTop: '10px' }, children: jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ? null : rowData, pagination: true, paginationPageSize: is_server_side ? page_size : 10, suppressFieldDotNotation: true, domLayout: "autoHeight", customClass: "bot_table_auto_height", sizeColumnsToFitFlag: true, showSaveTableConfig: false, showSearchModalBtn: false, hideFormatSideBar: true, uniqueRowId: unique_id, selectAllHeaderComponent: select_all_component, onSelectionChanged: onSelectionChanged, hideTableSetting: hide_table_setting, customSystemButton: getTopRightOptions(), customSystemButtonWithDownload: !is_server_side, topRightOptions: null, downloadAsExcel: is_server_side ? false : true, tableHeader: display_name, ...(is_server_side && {
5818
5818
  manualCallBack: serverSideManualCallBack,
5819
5819
  rowModelType: "serverSide",
5820
5820
  serverSideStoreType: "partial",
@@ -9468,10 +9468,7 @@ function UploadModal(props) {
9468
9468
  setSelectedFile(file);
9469
9469
  }
9470
9470
  else {
9471
- displaySnackMessages({
9472
- message: 'Please select only PDF files',
9473
- variant: 'error'
9474
- });
9471
+ displaySnackMessages('Please select only PDF files', 'error');
9475
9472
  }
9476
9473
  };
9477
9474
  const handleFileUpload = async () => {
@@ -9512,10 +9509,7 @@ function UploadModal(props) {
9512
9509
  }
9513
9510
  catch (error) {
9514
9511
  console.error("File upload error:", error);
9515
- displaySnackMessages({
9516
- message: "File upload failed",
9517
- variant: "error",
9518
- });
9512
+ displaySnackMessages("File upload failed", "error");
9519
9513
  }
9520
9514
  finally {
9521
9515
  setIsLoading(false);
@@ -13332,7 +13326,8 @@ const SmartBot = (props) => {
13332
13326
  skipHierarchyCall: true,
13333
13327
  })();
13334
13328
  let showAgentIcon = await getAgentVisibilityData();
13335
- if (!isEmpty$1(accessDataResponse) && showAgentIcon) {
13329
+ if (!isEmpty$1(accessDataResponse) &&
13330
+ showAgentIcon?.data?.data[0]?.attribute_value?.value) {
13336
13331
  let appCode = getApplicationCodeFromURL(applicationName);
13337
13332
  let list = await getAgentExceptionUserList(appCode);
13338
13333
  let isWhitelisted = false;