@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.mjs
CHANGED
|
@@ -2814,7 +2814,7 @@ function SignerView({
|
|
|
2814
2814
|
if (!pdfSource) return;
|
|
2815
2815
|
setSubmitting(true);
|
|
2816
2816
|
try {
|
|
2817
|
-
const finalFields = resolveAllFormulas(fields, transforms);
|
|
2817
|
+
const finalFields = resolveAllFormulas(fields, transforms, initialValues);
|
|
2818
2818
|
let pdfBytes;
|
|
2819
2819
|
if (includeAuditTrail) {
|
|
2820
2820
|
const { PDFDocument: PDFDocument2, StandardFonts: StandardFonts2, rgb: rgb2 } = await import("pdf-lib");
|
|
@@ -2864,7 +2864,7 @@ ${row.join(",")}`, "csv");
|
|
|
2864
2864
|
} finally {
|
|
2865
2865
|
setSubmitting(false);
|
|
2866
2866
|
}
|
|
2867
|
-
}, [pdfSource, fields, callbackUrl, allRequiredFilled, onComplete, isLastSigner, signer, onSignerComplete, includeAuditTrail, exportFormat, onExport, getValues, transforms]);
|
|
2867
|
+
}, [pdfSource, fields, callbackUrl, allRequiredFilled, onComplete, isLastSigner, signer, onSignerComplete, includeAuditTrail, exportFormat, onExport, getValues, transforms, initialValues]);
|
|
2868
2868
|
const renderFieldContent = useCallback5((field) => {
|
|
2869
2869
|
if (isRedactField(field)) {
|
|
2870
2870
|
return null;
|
|
@@ -2957,10 +2957,10 @@ ${row.join(",")}`, "csv");
|
|
|
2957
2957
|
useEffect3(() => {
|
|
2958
2958
|
const hasFormulas = fields.some((f) => f.formula);
|
|
2959
2959
|
if (!hasFormulas) return;
|
|
2960
|
-
const resolved = resolveAllFormulas(fields, transforms);
|
|
2960
|
+
const resolved = resolveAllFormulas(fields, transforms, initialValues);
|
|
2961
2961
|
const changed = resolved.some((f, i) => f.value !== fields[i].value);
|
|
2962
2962
|
if (changed) setFields(resolved);
|
|
2963
|
-
}, [fields, transforms]);
|
|
2963
|
+
}, [fields, transforms, initialValues]);
|
|
2964
2964
|
return /* @__PURE__ */ jsxs6("div", { className: "signer-layout", ref: containerRef, children: [
|
|
2965
2965
|
loading && /* @__PURE__ */ jsx6("div", { className: "loading-indicator", children: "Loading document..." }),
|
|
2966
2966
|
/* @__PURE__ */ jsxs6("div", { className: "signer-content", children: [
|