Skip to content

Commit a11a244

Browse files
Merge branch 'staging' of https://github.com/OpenSignLabs/OpenSign into validation
2 parents db1fb1c + 7f326b1 commit a11a244

27 files changed

+1061
-1123
lines changed

apps/OpenSign/package-lock.json

Lines changed: 560 additions & 580 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/OpenSign/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"react": "^18.2.0",
2626
"react-bootstrap": "^2.10.5",
2727
"react-confetti": "^6.1.0",
28-
"react-cookie": "^7.2.1",
29-
"react-datepicker": "^7.4.0",
28+
"react-cookie": "^7.2.2",
29+
"react-datepicker": "^7.5.0",
3030
"react-dnd": "^16.0.1",
3131
"react-dnd-html5-backend": "^16.0.1",
3232
"react-dnd-multi-backend": "^8.0.3",
@@ -52,7 +52,7 @@
5252
"redux": "^5.0.1",
5353
"redux-thunk": "^3.1.0",
5454
"regex-parser": "^2.3.0",
55-
"serve": "^14.2.3",
55+
"serve": "^14.2.4",
5656
"styled-components": "^5.3.0",
5757
"web-vitals": "^4.2.3",
5858
"ws": "^8.18.0"
@@ -95,10 +95,10 @@
9595
}
9696
},
9797
"devDependencies": {
98-
"@babel/core": "^7.25.8",
99-
"@babel/preset-env": "^7.25.8",
100-
"@babel/preset-react": "^7.25.7",
101-
"@babel/runtime-corejs2": "^7.25.7",
98+
"@babel/core": "^7.26.0",
99+
"@babel/preset-env": "^7.26.0",
100+
"@babel/preset-react": "^7.25.9",
101+
"@babel/runtime-corejs2": "^7.26.0",
102102
"autoprefixer": "^10.4.20",
103103
"babel-loader": "^9.2.1",
104104
"clean-webpack-plugin": "^4.0.0",
@@ -108,7 +108,7 @@
108108
"daisyui": "^4.12.13",
109109
"dotenv": "^16.4.5",
110110
"dotenv-webpack": "^8.1.0",
111-
"eslint": "^9.12.0",
111+
"eslint": "^9.13.0",
112112
"eslint-plugin-prettier": "^5.2.1",
113113
"eslint-plugin-react": "^7.37.1",
114114
"lint-staged": "^15.2.10",

apps/OpenSign/public/locales/en/translation.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
"subject": "Subject",
293293
"body": "Body",
294294
"add-contact": "Add Contact",
295-
"add-signer-alert": "Contact already exist!",
295+
"add-signer-alert": "Contact already exist! Please select it from ‘Signers’ dropdown",
296296
"record-delete-alert": "Record deleted successfully!",
297297
"record-revoke-alert": "Record revoked successfully!",
298298
"mail-sent-alert": "Mail sent successfully.",
@@ -681,14 +681,15 @@
681681
"p3":"Tip: If your signers are familiar with OpenSign and frequently use it, you may want to disable the guided tour for a more seamless experience. Choose the option that best fits your document signing needs."
682682
},
683683
"form-title-1":"Document Flow Setting",
684-
"form-title-2":"Security Setting",
684+
"form-title-2":"Security Settings",
685685
"public-tour-message":"The template needs to be public before you can generate a shareable link.",
686686
"add-user-template": "You need to add a role before you can add fields for it.",
687687
"pdf-uncompatible": "This pdf is not compatible with opensign, please contact <[email protected]>",
688688
"text-field-tour":"Fields of type 'Text' must be filled in advance before the document is sent. If you need the signers to provide input, use the 'Text Input' field instead.",
689689
"attach-signer-tour":"You need to attach a Signer to every role. You can do that by clicking this icon. Once you select a Signer it will be attached to all the fields associated with that role which appear in the same colour.",
690690
"allowed-signature-types": "Allowed signature types",
691691
"at-least-one-signature-type": "At least one signature type should be enabled.",
692+
"add-signer-note": "Note - This contact will be added to your contact list",
692693
"allowed-signature-types-help": {
693694
"p1": "This signature preference controls which signing options are available to your signers. Only the signature types you select will appear in the signature widget when a document is signed. For example, if you choose only the 'Draw' option in preferences, your signer will see only the 'Draw' option in the signature widget, while the other three options will not be available.",
694695
"l1": "Create a handwritten signature directly on the screen using your finger or a stylus.",

apps/OpenSign/public/locales/es/translation.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
"subject": "Asunto",
293293
"body": "Cuerpo",
294294
"add-contact": "Agregar contacto",
295-
"add-signer-alert": "¡El contacto ya existe!",
295+
"add-signer-alert": "¡El contacto ya existe! Selecciónelo en el menú desplegable 'Firmantes'",
296296
"record-delete-alert": "¡Entrada eliminada exitosamente!",
297297
"record-revoke-alert": "¡Entrada revocada exitosamente!",
298298
"mail-sent-alert": "Correo enviado exitosamente.",
@@ -689,6 +689,7 @@
689689
"attach-signer-tour" :"Debe adjuntar un firmante a cada función. Puede hacerlo haciendo clic en este icono. Una vez que seleccione un Firmante, se adjuntará a todos los campos asociados con ese rol que aparecen en el mismo color.",
690690
"allowed-signature-types": "Tipos de firma permitidos",
691691
"at-least-one-signature-type": "Se debe habilitar al menos un tipo de firma.",
692+
"add-signer-note": "Nota - Este contacto se agregará a su lista de contactos",
692693
"allowed-signature-types-help": {
693694
"p1": "Esta preferencia de firma controla qué opciones de firma están disponibles para sus firmantes. Solo los tipos de firma que seleccione aparecerán en el widget de firma cuando se firme un documento. Por ejemplo, si elige sólo la opción 'Draw' en las preferencias, su firmante verá sólo la opción 'Draw' en el widget de firma, mientras que las otras tres opciones no estarán disponibles.",
694695
"l1": "Cree una firma manuscrita directamente en la pantalla usando su dedo o un lápiz.",

apps/OpenSign/public/locales/fr/translation.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291
"subject": "Sujet",
292292
"body": "Corps",
293293
"add-contact": "Ajouter le contact",
294-
"add-signer-alert": "Le contact existe déjà !",
294+
"add-signer-alert": "Le contact existe déjà ! Veuillez le sélectionner dans la liste déroulante 'Signataires'",
295295
"record-delete-alert": "Enregistrement supprimé avec succès !",
296296
"record-revoke-alert": " Enregistrement révoqué avec succès ! ",
297297
"mail-sent-alert": "Courriel envoyé avec succès.",
@@ -688,6 +688,7 @@
688688
"attach-signer-tour" :"Vous devez associer un signataire à chaque rôle. Vous pouvez le faire en cliquant sur cette icône. Une fois que vous avez sélectionné un signataire, il sera attaché à tous les champs associés à ce rôle qui apparaissent dans la même couleur.",
689689
"allowed-signature-types": "Types de signature autorisés",
690690
"at-least-one-signature-type": "Au moins un type de signature doit être activé.",
691+
"add-signer-note": "Remarque - Ce contact sera ajouté à votre liste de contacts",
691692
"allowed-signature-types-help": {
692693
"p1": "Cette préférence de signature contrôle les options de signature disponibles pour vos signataires. Seuls les types de signature que vous sélectionnez apparaîtront dans le widget de signature lorsqu'un document est signé. Par exemple, si vous choisissez uniquement l'option 'Draw' dans les préférences, votre signataire ne verra que l'option 'Draw' dans le widget de signature, tandis que les trois autres options ne seront pas disponibles.",
693694
"l1": "Créez une signature manuscrite directement sur l'écran à l'aide de votre doigt ou d'un stylet.",

apps/OpenSign/src/components/AddSigner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ const AddSigner = (props) => {
206206
</div>
207207
)}
208208
<div className="w-full mx-auto p-2 text-base-content">
209+
<p className="mb-3">{t("add-signer-note")}</p>
209210
{isUserExist && (
210211
<div className="mb-3 flex items-center">
211212
<input

apps/OpenSign/src/components/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { useTranslation } from "react-i18next";
1616
import ModalUi from "../primitives/ModalUi";
1717
import QuotaCard from "../primitives/QuotaCard";
1818

19-
const Header = ({ showSidebar }) => {
19+
const Header = ({ showSidebar, setIsMenu }) => {
2020
const { t, i18n } = useTranslation();
2121
const navigate = useNavigate();
2222
const { width } = useWindowSize();
@@ -40,7 +40,7 @@ const Header = ({ showSidebar }) => {
4040
const toggleDropdown = () => {
4141
setIsOpen(!isOpen);
4242
if (width <= 768) {
43-
showSidebar();
43+
setIsMenu(false);
4444
}
4545
};
4646
useEffect(() => {

apps/OpenSign/src/components/pdf/DropdownWidgetOption.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ function DropdownWidgetOption(props) {
339339
value={
340340
props.fontSize ||
341341
props.currWidgetsDetails?.options?.fontSize ||
342-
"12"
342+
12
343343
}
344-
onChange={(e) => props.setFontSize(e.target.value)}
344+
onChange={(e) => props.setFontSize(parseInt(e.target.value))}
345345
>
346346
{fontsizeArr.map((size, ind) => {
347347
return (

apps/OpenSign/src/components/pdf/Placeholder.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function Placeholder(props) {
412412
data?.format,
413413
null,
414414
null,
415-
props.fontSize || props.pos?.options?.fontSize || "12",
415+
props.fontSize || props.pos?.options?.fontSize || 12,
416416
props.fontColor || props.pos?.options?.fontColor || "black"
417417
);
418418
setSelectDate({ date: date, format: data?.format });
@@ -647,7 +647,7 @@ function Placeholder(props) {
647647
const fontSize = (size || 12) * containerScale * props.scale;
648648
//isMinHeight to set text box minimum height
649649
if (isMinHeight) {
650-
return fontSize * 1.5 + "px";
650+
return fontSize * 1.2 + "px";
651651
} else {
652652
return fontSize + "px";
653653
}
@@ -834,7 +834,7 @@ function Placeholder(props) {
834834
)}
835835
{isTabAndMobile ? (
836836
<div
837-
className="flex items-stretch"
837+
className="flex items-stretch justify-center"
838838
style={{
839839
left: xPos(props.pos, props.isSignYourself),
840840
top: yPos(props.pos, props.isSignYourself),
@@ -944,8 +944,8 @@ function Placeholder(props) {
944944
<span>{t("font-size")} :</span>
945945
<select
946946
className="ml-[3px] md:ml:[7px] op-select op-select-bordered op-select-sm focus:outline-none hover:border-base-content text-xs"
947-
value={props.fontSize || clickonWidget.options?.fontSize || "12"}
948-
onChange={(e) => props.setFontSize(e.target.value)}
947+
value={props.fontSize || clickonWidget.options?.fontSize || 12}
948+
onChange={(e) => props.setFontSize(parseInt(e.target.value))}
949949
>
950950
{fontsizeArr.map((size, ind) => {
951951
return (

apps/OpenSign/src/components/pdf/TextFontSetting.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ function TextFontSetting(props) {
2121
value={
2222
props.fontSize ||
2323
props.currWidgetsDetails?.options?.fontSize ||
24-
"12"
24+
12
2525
}
26-
onChange={(e) => props.setFontSize(e.target.value)}
26+
onChange={(e) => {
27+
props.setFontSize(parseInt(e.target.value));
28+
}}
2729
>
2830
{fontsizeArr.map((size, ind) => {
2931
return (

0 commit comments

Comments
 (0)