@bigbinary/neeto-form-frontend 4.6.4 → 4.6.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/.ready +1 -1
- package/dist/cjs/v2/BuildForm.js +13 -2
- package/dist/cjs/v2/BuildForm.js.map +1 -1
- package/dist/v2/BuildForm.js +13 -2
- package/dist/v2/BuildForm.js.map +1 -1
- package/package.json +11 -11
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-11-
|
|
1
|
+
Built at 2026-11-13T11:51:52.107Z
|
package/dist/cjs/v2/BuildForm.js
CHANGED
|
@@ -1107,6 +1107,7 @@ var RequiredSwitch = reactUtils.withT(function (_ref) {
|
|
|
1107
1107
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1108
1108
|
className: "w-full",
|
|
1109
1109
|
children: /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1110
|
+
dataTestId: "required",
|
|
1110
1111
|
label: t("neetoForm.common.required"),
|
|
1111
1112
|
name: "isRequired",
|
|
1112
1113
|
size: "default"
|
|
@@ -1381,6 +1382,7 @@ var Form$1 = function Form(_ref) {
|
|
|
1381
1382
|
"data-testid": "settings-card",
|
|
1382
1383
|
children: [isBasicSettingsVisible && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1383
1384
|
children: [shouldShowRequiredSwitch && /*#__PURE__*/jsxRuntime.jsx(RequiredSwitch, {}), shouldShowHideSwitch && /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1385
|
+
dataTestId: "hide-question",
|
|
1384
1386
|
label: t("neetoForm.common.hideQuestion"),
|
|
1385
1387
|
name: "isHidden",
|
|
1386
1388
|
size: "default",
|
|
@@ -1392,11 +1394,13 @@ var Form$1 = function Form(_ref) {
|
|
|
1392
1394
|
labelProps: responseVisibleOnlyToHostSwitchLabelProps(responseVisibleOnlyToHostHelpDocUrl)
|
|
1393
1395
|
})]
|
|
1394
1396
|
}), canMarkResponsesAsReadOnly && /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1397
|
+
dataTestId: "read-only",
|
|
1395
1398
|
label: t("neetoForm.common.readOnly"),
|
|
1396
1399
|
labelProps: readOnlySwitchLabelProps(readOnlyHelpDocUrl),
|
|
1397
1400
|
name: "isReadOnly",
|
|
1398
1401
|
size: "default"
|
|
1399
1402
|
}), shouldShowSendSmsUpdatesSwitch && /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1403
|
+
dataTestId: "send-sms-updates",
|
|
1400
1404
|
disabled: isSmsUpdatesDisabled,
|
|
1401
1405
|
label: t("neetoForm.common.sendSmsUpdates"),
|
|
1402
1406
|
name: "sendSmsUpdates",
|
|
@@ -1417,6 +1421,7 @@ var Form$1 = function Form(_ref) {
|
|
|
1417
1421
|
children: t("neetoForm.callouts.whatsappUpdatesSingleField")
|
|
1418
1422
|
})
|
|
1419
1423
|
}), canConfigureDecimals && /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1424
|
+
dataTestId: "allow-decimals",
|
|
1420
1425
|
label: t("neetoForm.questions.common.allowDecimals"),
|
|
1421
1426
|
name: "allowDecimals"
|
|
1422
1427
|
}), isTextarea && enforceMinWordsInMultiLineTexts && /*#__PURE__*/jsxRuntime.jsx(Textarea, {})]
|
|
@@ -2323,7 +2328,8 @@ var buildHelpPopoverLabelProps = function buildHelpPopoverLabelProps(popoverDesc
|
|
|
2323
2328
|
|
|
2324
2329
|
var EmailDomains = function EmailDomains(_ref) {
|
|
2325
2330
|
var name = _ref.name,
|
|
2326
|
-
label = _ref.label
|
|
2331
|
+
label = _ref.label,
|
|
2332
|
+
dataTestId = _ref.dataTestId;
|
|
2327
2333
|
var _useTranslation = reactI18next.useTranslation(),
|
|
2328
2334
|
t = _useTranslation.t;
|
|
2329
2335
|
var _useField = formik.useField({
|
|
@@ -2342,6 +2348,7 @@ var EmailDomains = function EmailDomains(_ref) {
|
|
|
2342
2348
|
className: "mb-4",
|
|
2343
2349
|
"data-testid": "multi-domain-input-container",
|
|
2344
2350
|
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.MultiEmailInput, {
|
|
2351
|
+
dataTestId: dataTestId,
|
|
2345
2352
|
label: label,
|
|
2346
2353
|
entryType: "domain",
|
|
2347
2354
|
error: meta.touched ? formatErrorMessage(meta.error) : "",
|
|
@@ -2362,7 +2369,8 @@ var EmailDomains = function EmailDomains(_ref) {
|
|
|
2362
2369
|
};
|
|
2363
2370
|
|
|
2364
2371
|
var RestrictDomainsBlock = function RestrictDomainsBlock(_ref) {
|
|
2365
|
-
var
|
|
2372
|
+
var dataTestId = _ref.dataTestId,
|
|
2373
|
+
switchName = _ref.switchName,
|
|
2366
2374
|
domainName = _ref.domainName,
|
|
2367
2375
|
isDomainRestrictionEnabled = _ref.isDomainRestrictionEnabled;
|
|
2368
2376
|
var _useBuildFormStore = buildForm.useBuildFormStore(ramda.paths([["formState", "helpDocUrls", domainName], ["formState", "hostSpecificData", domainName]])),
|
|
@@ -2381,6 +2389,7 @@ var RestrictDomainsBlock = function RestrictDomainsBlock(_ref) {
|
|
|
2381
2389
|
labelProps: buildHelpPopoverLabelProps(popoverDescription, helpLink),
|
|
2382
2390
|
name: switchName
|
|
2383
2391
|
}), isDomainRestrictionEnabled && /*#__PURE__*/jsxRuntime.jsx(EmailDomains, {
|
|
2392
|
+
dataTestId: dataTestId,
|
|
2384
2393
|
label: description,
|
|
2385
2394
|
name: domainName
|
|
2386
2395
|
})]
|
|
@@ -2418,10 +2427,12 @@ var Email = function Email(_ref) {
|
|
|
2418
2427
|
className: "flex flex-col space-y-6",
|
|
2419
2428
|
children: !usesCustomSubmissionComponent && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2420
2429
|
children: [/*#__PURE__*/jsxRuntime.jsx(RestrictDomainsBlock, {
|
|
2430
|
+
dataTestId: "whitelisted-domains",
|
|
2421
2431
|
domainName: "whitelistedDomains",
|
|
2422
2432
|
isDomainRestrictionEnabled: isDomainWhitelistingEnabled,
|
|
2423
2433
|
switchName: "isDomainWhitelistingEnabled"
|
|
2424
2434
|
}), /*#__PURE__*/jsxRuntime.jsx(RestrictDomainsBlock, {
|
|
2435
|
+
dataTestId: "blacklisted-domains",
|
|
2425
2436
|
domainName: "blacklistedDomains",
|
|
2426
2437
|
isDomainRestrictionEnabled: isDomainBlacklistingEnabled,
|
|
2427
2438
|
switchName: "isDomainBlacklistingEnabled"
|