@unlev/exeq 0.5.3 → 0.5.5
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.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2882,7 +2882,7 @@ function SignerView({
|
|
|
2882
2882
|
if (!pdfSource) return;
|
|
2883
2883
|
setSubmitting(true);
|
|
2884
2884
|
try {
|
|
2885
|
-
const finalFields = resolveAllFormulas(fields, transforms);
|
|
2885
|
+
const finalFields = resolveAllFormulas(fields, transforms, initialValues);
|
|
2886
2886
|
let pdfBytes;
|
|
2887
2887
|
if (includeAuditTrail) {
|
|
2888
2888
|
const { PDFDocument: PDFDocument2, StandardFonts: StandardFonts2, rgb: rgb2 } = await import("pdf-lib");
|
|
@@ -2932,7 +2932,7 @@ ${row.join(",")}`, "csv");
|
|
|
2932
2932
|
} finally {
|
|
2933
2933
|
setSubmitting(false);
|
|
2934
2934
|
}
|
|
2935
|
-
}, [pdfSource, fields, callbackUrl, allRequiredFilled, onComplete, isLastSigner, signer, onSignerComplete, includeAuditTrail, exportFormat, onExport, getValues, transforms]);
|
|
2935
|
+
}, [pdfSource, fields, callbackUrl, allRequiredFilled, onComplete, isLastSigner, signer, onSignerComplete, includeAuditTrail, exportFormat, onExport, getValues, transforms, initialValues]);
|
|
2936
2936
|
const renderFieldContent = (0, import_react7.useCallback)((field) => {
|
|
2937
2937
|
if (isRedactField(field)) {
|
|
2938
2938
|
return null;
|
|
@@ -3025,10 +3025,10 @@ ${row.join(",")}`, "csv");
|
|
|
3025
3025
|
(0, import_react7.useEffect)(() => {
|
|
3026
3026
|
const hasFormulas = fields.some((f) => f.formula);
|
|
3027
3027
|
if (!hasFormulas) return;
|
|
3028
|
-
const resolved = resolveAllFormulas(fields, transforms);
|
|
3028
|
+
const resolved = resolveAllFormulas(fields, transforms, initialValues);
|
|
3029
3029
|
const changed = resolved.some((f, i) => f.value !== fields[i].value);
|
|
3030
3030
|
if (changed) setFields(resolved);
|
|
3031
|
-
}, [fields, transforms]);
|
|
3031
|
+
}, [fields, transforms, initialValues]);
|
|
3032
3032
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "signer-layout", ref: containerRef, children: [
|
|
3033
3033
|
loading && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "loading-indicator", children: "Loading document..." }),
|
|
3034
3034
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "signer-content", children: [
|