@wix/form-public 0.536.0 → 0.537.0
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -61379,7 +61379,7 @@ var hasUploadTab = ({ properties }) => properties.uploadEnabled === true;
|
|
|
61379
61379
|
var isForceableSignature = (field, mode) => field.fieldType === FIELD_TYPES.SIGNATURE && !field.properties.hidden && !field.properties.disabled && !field.properties.readOnly && (mode !== "upload" || hasUploadTab(field));
|
|
61380
61380
|
var byLayoutPosition = (first2, second) => first2.layout.row - second.layout.row || first2.layout.column - second.layout.column;
|
|
61381
61381
|
var useForcedSignatureMode = (fieldId) => {
|
|
61382
|
-
const forcedMode = useElementProps().
|
|
61382
|
+
const forcedMode = useElementProps().signature?.signatureMode;
|
|
61383
61383
|
const formView = React172.useContext(FormViewContext);
|
|
61384
61384
|
const firstSignatureId = React172.useMemo(() => formView && !formView.parentId && forcedMode ? formView.fields.filter((field) => isForceableSignature(field, forcedMode)).sort(byLayoutPosition)[0]?.id : void 0, [
|
|
61385
61385
|
formView,
|