leadconduit-trustedform 2.5.0 → 2.6.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/CHANGELOG.md +4 -0
- package/lib/trustedform.js +4 -1
- package/lib/ui/public/dist/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org)
|
|
4
4
|
|
|
5
|
+
## [2.6.0] - 2025-05-05
|
|
6
|
+
### Added
|
|
7
|
+
- v4 Verify now appends `opt_in_type`, based on `opt_in_types_satisfied` ([sc-90678](https://app.shortcut.com/active-prospect/story/90678/trustedform-v4-verify-include-opt-in-types-satisfied-as-an-appended-field))
|
|
8
|
+
|
|
5
9
|
## [2.5.0] - 2025-04-08
|
|
6
10
|
### Added
|
|
7
11
|
- v4 now includes CPL token when present ([sc-87918](https://app.shortcut.com/active-prospect/story/87918/send-cpl-data-to-trustedform))
|
package/lib/trustedform.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const helpers = require('./helpers');
|
|
2
2
|
const { compact, get, pickBy, isUndefined } = require('lodash');
|
|
3
3
|
|
|
4
|
+
/* eslint-disable-next-line complexity */
|
|
4
5
|
const request = (vars) => {
|
|
5
6
|
const { lead, trustedform, insights } = vars;
|
|
6
7
|
const body = {};
|
|
@@ -160,6 +161,7 @@ const response = (vars, req, res) => {
|
|
|
160
161
|
language_approved: parsed.verify.result?.language_approved,
|
|
161
162
|
font_size: parsed.verify.result?.min_font_size_px_satisfied,
|
|
162
163
|
contrast_ratio: parsed.verify.result?.min_contrast_ratio_satisfied,
|
|
164
|
+
opt_in_type: parsed.verify.result?.opt_in_types_satisfied,
|
|
163
165
|
// note that the Verify one_to_one value is handled separately
|
|
164
166
|
success: parsed.verify.result?.success,
|
|
165
167
|
}, (v) => !isUndefined(v))
|
|
@@ -297,7 +299,8 @@ response.variables = () => [
|
|
|
297
299
|
{ name: 'verify.form_submitted', type: 'boolean', description: 'A boolean indicating whether the form was successfully submitted by the consumer.' },
|
|
298
300
|
{ name: 'verify.success', type: 'boolean', description: 'A boolean indicating if any of the consent languages found meet the success criteria defined for your account.' },
|
|
299
301
|
{ name: 'verify.font_size', type: 'boolean', description: 'True when the consent language font size meets or exceeds the value configured in TrustedForm.' },
|
|
300
|
-
{ name: 'verify.contrast_ratio', type: 'boolean', description: 'True when the contrast ratio between the consent language text and background meets or exceeds the value configured in TrustedForm
|
|
302
|
+
{ name: 'verify.contrast_ratio', type: 'boolean', description: 'True when the contrast ratio between the consent language text and background meets or exceeds the value configured in TrustedForm' },
|
|
303
|
+
{ name: 'verify.opt_in_type', type: 'boolean', description: 'True when all opt-in types on the form match one or more of the values configured in TrustedForm' }
|
|
301
304
|
];
|
|
302
305
|
|
|
303
306
|
const editable = true;
|