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.cjs.js +7 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5773,7 +5773,7 @@ const TableContent = ({ bodyText }) => {
|
|
|
5773
5773
|
}
|
|
5774
5774
|
}, [table_config]);
|
|
5775
5775
|
React.useEffect(() => {
|
|
5776
|
-
if (!is_server_side && !lodash.isEmpty(
|
|
5776
|
+
if (!is_server_side && !lodash.isEmpty(row_data)) {
|
|
5777
5777
|
setRowData(row_data);
|
|
5778
5778
|
}
|
|
5779
5779
|
}, [row_data]);
|
|
@@ -5831,12 +5831,12 @@ const TableContent = ({ bodyText }) => {
|
|
|
5831
5831
|
const handleModalClose = () => {
|
|
5832
5832
|
setIsModalOpen(false);
|
|
5833
5833
|
};
|
|
5834
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(impactUiV3.Modal, { className: "test-modal", onClose: handleModalClose, onPrimaryButtonClick: () => { }, onSecondaryButtonClick: handleModalClose, open: isModalOpen, size: "large", title: "", children: jsxRuntime.jsx("div", { style: { width: '100%', height: '70vh' }, children: jsxRuntime.jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ?
|
|
5834
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(impactUiV3.Modal, { className: "test-modal", onClose: handleModalClose, onPrimaryButtonClick: () => { }, onSecondaryButtonClick: handleModalClose, open: isModalOpen, size: "large", title: "", children: jsxRuntime.jsx("div", { style: { width: '100%', height: '70vh' }, children: jsxRuntime.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 && {
|
|
5835
5835
|
manualCallBack: serverSideManualCallBack,
|
|
5836
5836
|
rowModelType: "serverSide",
|
|
5837
5837
|
serverSideStoreType: "partial",
|
|
5838
5838
|
cacheBlockSize: page_size,
|
|
5839
|
-
}) }) }) }), jsxRuntime.jsx("div", { style: { width: '100%', marginTop: '10px' }, children: jsxRuntime.jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ?
|
|
5839
|
+
}) }) }) }), jsxRuntime.jsx("div", { style: { width: '100%', marginTop: '10px' }, children: jsxRuntime.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 && {
|
|
5840
5840
|
manualCallBack: serverSideManualCallBack,
|
|
5841
5841
|
rowModelType: "serverSide",
|
|
5842
5842
|
serverSideStoreType: "partial",
|
|
@@ -9490,10 +9490,7 @@ function UploadModal(props) {
|
|
|
9490
9490
|
setSelectedFile(file);
|
|
9491
9491
|
}
|
|
9492
9492
|
else {
|
|
9493
|
-
displaySnackMessages(
|
|
9494
|
-
message: 'Please select only PDF files',
|
|
9495
|
-
variant: 'error'
|
|
9496
|
-
});
|
|
9493
|
+
displaySnackMessages('Please select only PDF files', 'error');
|
|
9497
9494
|
}
|
|
9498
9495
|
};
|
|
9499
9496
|
const handleFileUpload = async () => {
|
|
@@ -9534,10 +9531,7 @@ function UploadModal(props) {
|
|
|
9534
9531
|
}
|
|
9535
9532
|
catch (error) {
|
|
9536
9533
|
console.error("File upload error:", error);
|
|
9537
|
-
displaySnackMessages(
|
|
9538
|
-
message: "File upload failed",
|
|
9539
|
-
variant: "error",
|
|
9540
|
-
});
|
|
9534
|
+
displaySnackMessages("File upload failed", "error");
|
|
9541
9535
|
}
|
|
9542
9536
|
finally {
|
|
9543
9537
|
setIsLoading(false);
|
|
@@ -13354,7 +13348,8 @@ const SmartBot = (props) => {
|
|
|
13354
13348
|
skipHierarchyCall: true,
|
|
13355
13349
|
})();
|
|
13356
13350
|
let showAgentIcon = await getAgentVisibilityData();
|
|
13357
|
-
if (!lodash.isEmpty(accessDataResponse) &&
|
|
13351
|
+
if (!lodash.isEmpty(accessDataResponse) &&
|
|
13352
|
+
showAgentIcon?.data?.data[0]?.attribute_value?.value) {
|
|
13358
13353
|
let appCode = utils$2.getApplicationCodeFromURL(applicationName);
|
|
13359
13354
|
let list = await getAgentExceptionUserList(appCode);
|
|
13360
13355
|
let isWhitelisted = false;
|