diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 000000000..7983b7ed8
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,22 @@
+# To get started with Dependabot version updates, you'll need to specify which
+# package ecosystems to update and where the package manifests are located.
+# Please see the documentation for all configuration options:
+# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
+
+version: 2
+updates:
+ # maintain dependencies for frontend
+ - package-ecosystem: "npm" # See documentation for possible values
+ directory: "/apps/OpenSign" # Location of package manifests
+ schedule:
+ interval: "weekly"
+ # maintain dependencies for server
+ - package-ecosystem: "npm" # See documentation for possible values
+ directory: "/apps/OpenSignServer" # Location of package manifests
+ schedule:
+ interval: "weekly"
+ # maintain dependencies for microfrontends
+ - package-ecosystem: "npm" # See documentation for possible values
+ directory: "microfrontends/SignDocuments" # Location of package manifests
+ schedule:
+ interval: "weekly"
diff --git a/microfrontends/SignDocuments/public/index.html b/microfrontends/SignDocuments/public/index.html
index bf27a008e..b3ac89822 100644
--- a/microfrontends/SignDocuments/public/index.html
+++ b/microfrontends/SignDocuments/public/index.html
@@ -47,7 +47,7 @@
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
-
diff --git a/microfrontends/SignDocuments/src/Component/PdfRequestFiles.js b/microfrontends/SignDocuments/src/Component/PdfRequestFiles.js
index 4bd54bbf9..c3b3c492a 100644
--- a/microfrontends/SignDocuments/src/Component/PdfRequestFiles.js
+++ b/microfrontends/SignDocuments/src/Component/PdfRequestFiles.js
@@ -494,6 +494,7 @@ function PdfRequestFiles() {
data.key === signKey && data.Width && data.Height && data.SignUrl
);
let getIMGWH = calculateImgAspectRatio(imgWH);
+
if (updateFilter.length > 0) {
const getXYdata = currentSigner[0].placeHolder[i].pos;
const getPosData = getXYdata;
@@ -516,11 +517,17 @@ function PdfRequestFiles() {
}
return obj;
});
- currentSigner[0].placeHolder.splice(i, 1, newUpdateUrl[0]);
+ const getPlaceData = currentSigner[0].placeHolder;
+ getPlaceData.splice(0, getPlaceData.length, ...newUpdateUrl);
+
const indexofSigner = signerPos.findIndex((object) => {
return object.signerObjId === signerObjectId;
});
- signerPos.splice(indexofSigner, 1, currentSigner[0]);
+ setSignerPos((prevState) => {
+ const newState = [...prevState]; // Create a copy of the state
+ newState.splice(indexofSigner, 1, ...currentSigner); // Modify the copy
+ return newState; // Update the state with the modified copy
+ });
} else {
const getXYdata = currentSigner[0].placeHolder[i].pos;
@@ -546,11 +553,17 @@ function PdfRequestFiles() {
return obj;
});
- currentSigner[0].placeHolder.splice(i, 1, newUpdateUrl[0]);
+ const getPlaceData = currentSigner[0].placeHolder;
+ getPlaceData.splice(0, getPlaceData.length, ...newUpdateUrl);
+
const indexofSigner = signerPos.findIndex((object) => {
return object.signerObjId === signerObjectId;
});
- signerPos.splice(indexofSigner, 1, currentSigner[0]);
+ setSignerPos((prevState) => {
+ const newState = [...prevState]; // Create a copy of the state
+ newState.splice(indexofSigner, 1, ...currentSigner); // Modify the copy
+ return newState; // Update the state with the modified copy
+ });
}
};
@@ -586,6 +599,7 @@ function PdfRequestFiles() {
updateFilter = currentSigner[0].placeHolder[i].pos.filter(
(data) => data.key === signKey && data.SignUrl
);
+
const getXYdata = currentSigner[0].placeHolder[i].pos;
const getPosData = getXYdata;
const posWidth = isDefaultSign
@@ -633,12 +647,15 @@ function PdfRequestFiles() {
}
return obj;
});
- let signerupdate = [];
- signerupdate = signerPos.filter(
- (data) => data.signerObjId !== signerObjectId
+
+ const index = signerPos.findIndex(
+ (data) => data.signerObjId === signerObjectId
);
- signerupdate.push(newUpdatePos[0]);
- setSignerPos(signerupdate);
+ setSignerPos((prevState) => {
+ const newState = [...prevState]; // Create a copy of the state
+ newState.splice(index, 1, ...newUpdatePos); // Modify the copy
+ return newState; // Update the state with the modified copy
+ });
}
};
diff --git a/microfrontends/SignDocuments/src/Component/component/emailComponent.js b/microfrontends/SignDocuments/src/Component/component/emailComponent.js
index 5d7691e68..cccf897f0 100644
--- a/microfrontends/SignDocuments/src/Component/component/emailComponent.js
+++ b/microfrontends/SignDocuments/src/Component/component/emailComponent.js
@@ -39,7 +39,7 @@ function EmailComponent({
"X-Parse-Application-Id": localStorage.getItem("parseAppId"),
sessionToken: localStorage.getItem("accesstoken")
};
-
+ const openSignUrl = "https://www.opensignlabs.com/";
const themeBGcolor = themeColor();
let params = {
pdfName: pdfName,
@@ -54,9 +54,11 @@ function EmailComponent({
themeBGcolor +
";'>
Document Copy
A copy of the document " +
pdfName +
- " Standard is attached to this email. Kindly download the document from the attachment.
This is an automated email from Open Sign. For any queries regarding this email, please contact the sender " +
+ " Standard is attached to this email. Kindly download the document from the attachment.
This is an automated email from OpenSign. For any queries regarding this email, please contact the sender " +
sender.email +
- " directly. If you think this email is inappropriate or spam, you may file a complaint with Open Sign here.