@bigbinary/neeto-form-frontend 4.4.39 → 4.4.40
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 +44 -51
- package/dist/cjs/v2/BuildForm.js.map +1 -1
- package/dist/cjs/v2/ExternalForm.js +2 -2
- package/dist/cjs/v2/UrlBuilder.js +2 -2
- package/dist/cjs/v2/index.js +2 -2
- package/dist/cjs/v2/{utils-ChwdTdnN.js → utils-vhbB2fwp.js} +2 -2
- package/dist/cjs/v2/{utils-ChwdTdnN.js.map → utils-vhbB2fwp.js.map} +1 -1
- package/dist/cjs/v2/{yup-CKeWnmJ3.js → yup-Rnk6JNb8.js} +1 -9
- package/dist/cjs/v2/{yup-CKeWnmJ3.js.map → yup-Rnk6JNb8.js.map} +1 -1
- package/dist/v2/BuildForm.js +46 -53
- package/dist/v2/BuildForm.js.map +1 -1
- package/dist/v2/ExternalForm.js +2 -2
- package/dist/v2/UrlBuilder.js +2 -2
- package/dist/v2/index.js +2 -2
- package/dist/v2/main.css +1 -1
- package/dist/v2/main.css.map +1 -1
- package/dist/v2/{utils-B8sTYkWG.js → utils-B1ExnkqT.js} +2 -2
- package/dist/v2/{utils-B8sTYkWG.js.map → utils-B1ExnkqT.js.map} +1 -1
- package/dist/v2/{yup-Cf-x7SqN.js → yup-DItlKUzb.js} +2 -9
- package/dist/v2/{yup-Cf-x7SqN.js.map → yup-DItlKUzb.js.map} +1 -1
- package/package.json +3 -3
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-08-
|
|
1
|
+
Built at 2026-08-18T08:49:55.019Z
|
package/dist/cjs/v2/BuildForm.js
CHANGED
|
@@ -6,7 +6,7 @@ var classnames = require('classnames');
|
|
|
6
6
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
7
7
|
var ramda = require('ramda');
|
|
8
8
|
var useFormApi = require('./useFormApi-DD0_MxNV.js');
|
|
9
|
-
var yup = require('./yup-
|
|
9
|
+
var yup = require('./yup-Rnk6JNb8.js');
|
|
10
10
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var dnd = require('@hello-pangea/dnd');
|
|
@@ -286,11 +286,6 @@ var Card = function Card(_ref) {
|
|
|
286
286
|
canManageQuestions = _ref.canManageQuestions,
|
|
287
287
|
_ref$extraMenuItems = _ref.extraMenuItems,
|
|
288
288
|
extraMenuItems = _ref$extraMenuItems === void 0 ? [] : _ref$extraMenuItems;
|
|
289
|
-
var _useState = React.useState(false),
|
|
290
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
291
|
-
isTooltipEnabled = _useState2[0],
|
|
292
|
-
setIsTooltipEnabled = _useState2[1];
|
|
293
|
-
var questionLabelRef = React.useRef(null);
|
|
294
289
|
var _useTranslation = reactI18next.useTranslation(),
|
|
295
290
|
t = _useTranslation.t;
|
|
296
291
|
var _getActiveKindDetails = getActiveKindDetails({
|
|
@@ -300,11 +295,6 @@ var Card = function Card(_ref) {
|
|
|
300
295
|
isSingular = _getActiveKindDetails.isSingular,
|
|
301
296
|
KindIcon = _getActiveKindDetails.icon;
|
|
302
297
|
var questionLabel = yup.buildDisplayLabel(question);
|
|
303
|
-
React.useEffect(function () {
|
|
304
|
-
var element = questionLabelRef.current;
|
|
305
|
-
if (neetoCist.isNotPresent(element)) return;
|
|
306
|
-
setIsTooltipEnabled(yup.isElementOverflowing(element));
|
|
307
|
-
}, [questionLabel]);
|
|
308
298
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
309
299
|
"data-testid": "neeto-form-engine-".concat(neetoCist.slugify(questionLabel)),
|
|
310
300
|
className: classnames("border-border bg-card neeto-form-nano-form__card flex h-10 w-full items-center justify-between gap-2 overflow-hidden rounded-md border p-2", {
|
|
@@ -318,19 +308,12 @@ var Card = function Card(_ref) {
|
|
|
318
308
|
children: [KindIcon && /*#__PURE__*/jsxRuntime.jsx(KindIcon, {
|
|
319
309
|
className: "text-muted-foreground shrink-0",
|
|
320
310
|
"data-testid": "question-card-kind-icon",
|
|
321
|
-
size:
|
|
322
|
-
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
children:
|
|
327
|
-
className: "min-w-0 grow truncate",
|
|
328
|
-
"data-testid": "".concat(neetoCist.slugify(questionLabel), "-question-card-label"),
|
|
329
|
-
ref: questionLabelRef,
|
|
330
|
-
variant: "body2",
|
|
331
|
-
weight: "medium",
|
|
332
|
-
children: questionLabel
|
|
333
|
-
})
|
|
311
|
+
size: 20
|
|
312
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
313
|
+
className: "min-w-0 grow truncate",
|
|
314
|
+
"data-testid": "".concat(neetoCist.slugify(questionLabel), "-question-card-label"),
|
|
315
|
+
variant: "body2",
|
|
316
|
+
children: questionLabel
|
|
334
317
|
})]
|
|
335
318
|
}), canManageQuestions && /*#__PURE__*/jsxRuntime.jsx(MoreDropdown, {
|
|
336
319
|
dropdownButtonProps: {
|
|
@@ -403,16 +386,16 @@ var Questions = function Questions(_ref) {
|
|
|
403
386
|
var draggableProps = _ref3.draggableProps,
|
|
404
387
|
dragHandleProps = _ref3.dragHandleProps,
|
|
405
388
|
innerRef = _ref3.innerRef;
|
|
406
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread$j(_objectSpread$j({}, draggableProps), {}, {
|
|
389
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread$j(_objectSpread$j(_objectSpread$j({}, draggableProps), dragHandleProps), {}, {
|
|
407
390
|
className: "flex items-center gap-1",
|
|
408
391
|
ref: innerRef,
|
|
409
|
-
|
|
392
|
+
"data-testid": canManageQuestions ? "question-card-drag-handle" : undefined,
|
|
393
|
+
children: [canManageQuestions && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
410
394
|
className: "text-muted-foreground hover:text-foreground shrink-0 cursor-grab transition-all duration-300 ease-in-out",
|
|
411
|
-
"data-testid": "question-card-drag-handle",
|
|
412
395
|
children: /*#__PURE__*/jsxRuntime.jsx(lucideReact.GripVertical, {
|
|
413
396
|
size: 16
|
|
414
397
|
})
|
|
415
|
-
})
|
|
398
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
416
399
|
className: "min-w-0 grow",
|
|
417
400
|
children: /*#__PURE__*/jsxRuntime.jsx(Card, {
|
|
418
401
|
allQuestionKinds: allQuestionKinds,
|
|
@@ -778,7 +761,7 @@ var LabelWithPlaceholder = function LabelWithPlaceholder(_ref) {
|
|
|
778
761
|
t = _useTranslation.t;
|
|
779
762
|
var shouldShowPlaceholder = ramda.includes(kind, QUESTIONS_WITH_PLACEHOLDERS);
|
|
780
763
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
781
|
-
className: "space-y-
|
|
764
|
+
className: "space-y-6",
|
|
782
765
|
children: [/*#__PURE__*/jsxRuntime.jsx(FormikAdaptiveInput, _objectSpread$g({
|
|
783
766
|
required: true,
|
|
784
767
|
disabled: isLabelDisabled,
|
|
@@ -787,7 +770,6 @@ var LabelWithPlaceholder = function LabelWithPlaceholder(_ref) {
|
|
|
787
770
|
placeholder: DEFAULT_PLACEHOLDERS[kind],
|
|
788
771
|
onChange: utils.withEventTargetValue(handleLabelChange)
|
|
789
772
|
}, labelProps)), shouldShowPlaceholder && /*#__PURE__*/jsxRuntime.jsx(FormikAdaptiveInput, _objectSpread$g({
|
|
790
|
-
className: "neeto-form-nano-placeholder-input neeto-form-nano-placeholder-input-".concat(kind),
|
|
791
773
|
name: "placeholder",
|
|
792
774
|
label: t("neetoForm.questions.common.questionFields.field.placeholder")
|
|
793
775
|
}, placeholderProps))]
|
|
@@ -814,7 +796,7 @@ var Name = function Name(_ref) {
|
|
|
814
796
|
children: [!usesCustomSubmissionComponent && /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
815
797
|
label: t("neetoForm.common.splitAsFirstAndLastNames"),
|
|
816
798
|
name: "isSplitMode",
|
|
817
|
-
size: "
|
|
799
|
+
size: "default"
|
|
818
800
|
}), isSplitMode && !usesCustomSubmissionComponent ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
819
801
|
children: [/*#__PURE__*/jsxRuntime.jsx(LabelWithPlaceholder, _objectSpread$f(_objectSpread$f({}, commonProps), {}, {
|
|
820
802
|
handleLabelChange: function handleLabelChange(value) {
|
|
@@ -875,7 +857,7 @@ var Properties = function Properties(_ref) {
|
|
|
875
857
|
});
|
|
876
858
|
}
|
|
877
859
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
878
|
-
className: "space-y-
|
|
860
|
+
className: "space-y-6",
|
|
879
861
|
children: [/*#__PURE__*/jsxRuntime.jsx(LabelWithPlaceholder, {
|
|
880
862
|
handleLabelChange: handleLabelChange,
|
|
881
863
|
isLabelDisabled: isLabelDisabled,
|
|
@@ -981,7 +963,7 @@ var RequiredSwitch = reactUtils.withT(function (_ref) {
|
|
|
981
963
|
children: /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
982
964
|
label: t("neetoForm.common.required"),
|
|
983
965
|
name: "isRequired",
|
|
984
|
-
size: "
|
|
966
|
+
size: "default"
|
|
985
967
|
})
|
|
986
968
|
});
|
|
987
969
|
});
|
|
@@ -1051,7 +1033,7 @@ var Textarea = function Textarea() {
|
|
|
1051
1033
|
checked: isMinWordsEnabled,
|
|
1052
1034
|
label: t("neetoForm.questions.textarea.minimumWords"),
|
|
1053
1035
|
labelProps: yup.MIN_WORDS_SWITCH_LABEL_PROPS,
|
|
1054
|
-
size: "
|
|
1036
|
+
size: "default",
|
|
1055
1037
|
onCheckedChange: handleToggleChange
|
|
1056
1038
|
}), isMinWordsEnabled && /*#__PURE__*/jsxRuntime.jsx(formik$1.Input, {
|
|
1057
1039
|
className: "w-42 ms-14",
|
|
@@ -1197,7 +1179,7 @@ var Form$1 = function Form(_ref) {
|
|
|
1197
1179
|
};
|
|
1198
1180
|
return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Body, {
|
|
1199
1181
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1200
|
-
className: "w-full space-y-
|
|
1182
|
+
className: "w-full space-y-6",
|
|
1201
1183
|
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Select, {
|
|
1202
1184
|
isClearable: true,
|
|
1203
1185
|
isSearchable: true,
|
|
@@ -1208,6 +1190,7 @@ var Form$1 = function Form(_ref) {
|
|
|
1208
1190
|
isDisabled: isEdit,
|
|
1209
1191
|
options: kindOptions,
|
|
1210
1192
|
ref: initialFocusRef,
|
|
1193
|
+
size: "large",
|
|
1211
1194
|
value: buildDefaultValueForKind(questionKind),
|
|
1212
1195
|
label: t("neetoForm.questions.common.questionFields.field.questionType"),
|
|
1213
1196
|
onChange: handleKindChange
|
|
@@ -1216,37 +1199,37 @@ var Form$1 = function Form(_ref) {
|
|
|
1216
1199
|
isLabelDisabled: isLabelDisabled
|
|
1217
1200
|
}), shouldShowRequiredSwitch && /*#__PURE__*/jsxRuntime.jsx(RequiredSwitch, {})]
|
|
1218
1201
|
}) : /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1219
|
-
className: "space-y-
|
|
1202
|
+
className: "space-y-6",
|
|
1220
1203
|
children: [/*#__PURE__*/jsxRuntime.jsx(Properties, {
|
|
1221
1204
|
handleLabelChange: handleLabelChange,
|
|
1222
1205
|
isLabelDisabled: isLabelDisabled,
|
|
1223
1206
|
kind: kind,
|
|
1224
1207
|
questionProps: questionProps
|
|
1225
1208
|
}), isSettingsBlockVisible && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1226
|
-
className: "space-y-
|
|
1209
|
+
className: "space-y-6",
|
|
1227
1210
|
"data-testid": "settings-card",
|
|
1228
1211
|
children: [isBasicSettingsVisible && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1229
1212
|
children: [shouldShowRequiredSwitch && /*#__PURE__*/jsxRuntime.jsx(RequiredSwitch, {}), shouldShowHideSwitch && /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1230
1213
|
label: t("neetoForm.common.hideQuestion"),
|
|
1231
1214
|
name: "isHidden",
|
|
1232
|
-
size: "
|
|
1215
|
+
size: "default",
|
|
1233
1216
|
labelProps: hideSwitchLabelProps(hideQuestionHelpDocUrl)
|
|
1234
1217
|
}), canRestrictResponseVisibilityToHost && /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1235
1218
|
label: t("neetoForm.common.responseVisibleOnlyToHost"),
|
|
1236
1219
|
name: "isResponseVisibleOnlyToHost",
|
|
1237
|
-
size: "
|
|
1220
|
+
size: "default",
|
|
1238
1221
|
labelProps: responseVisibleOnlyToHostSwitchLabelProps(responseVisibleOnlyToHostHelpDocUrl)
|
|
1239
1222
|
})]
|
|
1240
1223
|
}), canMarkResponsesAsReadOnly && /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1241
1224
|
label: t("neetoForm.common.readOnly"),
|
|
1242
1225
|
labelProps: readOnlySwitchLabelProps(readOnlyHelpDocUrl),
|
|
1243
1226
|
name: "isReadOnly",
|
|
1244
|
-
size: "
|
|
1227
|
+
size: "default"
|
|
1245
1228
|
}), shouldShowSendSmsUpdatesSwitch && /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1246
1229
|
disabled: isSmsUpdatesDisabled,
|
|
1247
1230
|
label: t("neetoForm.common.sendSmsUpdates"),
|
|
1248
1231
|
name: "sendSmsUpdates",
|
|
1249
|
-
size: "
|
|
1232
|
+
size: "default",
|
|
1250
1233
|
labelProps: sendSmsUpdatesSwitchLabelProps(sendSmsUpdatesHelpDocUrl)
|
|
1251
1234
|
}), isTextarea && enforceMinWordsInMultiLineTexts && /*#__PURE__*/jsxRuntime.jsx(Textarea, {})]
|
|
1252
1235
|
}), shouldShowFieldCode && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Accordion, {
|
|
@@ -1257,7 +1240,7 @@ var Form$1 = function Form(_ref) {
|
|
|
1257
1240
|
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Accordion.Item, {
|
|
1258
1241
|
title: t("neetoForm.common.advancedProperties"),
|
|
1259
1242
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1260
|
-
className: "flex flex-col space-y-
|
|
1243
|
+
className: "flex flex-col space-y-6",
|
|
1261
1244
|
children: shouldShowFieldCode && /*#__PURE__*/jsxRuntime.jsx(FieldCode, {})
|
|
1262
1245
|
})
|
|
1263
1246
|
})
|
|
@@ -1524,7 +1507,7 @@ var Block = function Block(_ref) {
|
|
|
1524
1507
|
children: title
|
|
1525
1508
|
})
|
|
1526
1509
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1527
|
-
className: "space-y-
|
|
1510
|
+
className: "space-y-6",
|
|
1528
1511
|
children: children
|
|
1529
1512
|
})]
|
|
1530
1513
|
});
|
|
@@ -1751,7 +1734,7 @@ var ManagePane = function ManagePane(_ref) {
|
|
|
1751
1734
|
children: /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
1752
1735
|
label: t("neetoForm.common.required"),
|
|
1753
1736
|
name: "isRequired",
|
|
1754
|
-
size: "
|
|
1737
|
+
size: "default"
|
|
1755
1738
|
})
|
|
1756
1739
|
})]
|
|
1757
1740
|
})
|
|
@@ -1914,7 +1897,7 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
1914
1897
|
className: classnames("flex items-center justify-start gap-2 ", className),
|
|
1915
1898
|
"data-testid": "neeto-form-engine-".concat(neetoCist.hyphenate(title && name), "-toggle-label"),
|
|
1916
1899
|
children: [/*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, _objectSpread$7(_objectSpread$7({
|
|
1917
|
-
size: "
|
|
1900
|
+
size: "default"
|
|
1918
1901
|
}, _objectSpread$7(_objectSpread$7({}, otherProps), {}, {
|
|
1919
1902
|
name: name
|
|
1920
1903
|
})), {}, {
|
|
@@ -2287,7 +2270,7 @@ var VerifyEmails = function VerifyEmails() {
|
|
|
2287
2270
|
label: title,
|
|
2288
2271
|
labelProps: buildHelpPopoverLabelProps(popoverDescription, helpLink),
|
|
2289
2272
|
name: "isVerificationEnabled",
|
|
2290
|
-
size: "
|
|
2273
|
+
size: "default"
|
|
2291
2274
|
})
|
|
2292
2275
|
});
|
|
2293
2276
|
};
|
|
@@ -2301,7 +2284,7 @@ var Email = function Email(_ref) {
|
|
|
2301
2284
|
_useFormikContext$val3 = _useFormikContext$val.isDomainBlacklistingEnabled,
|
|
2302
2285
|
isDomainBlacklistingEnabled = _useFormikContext$val3 === void 0 ? false : _useFormikContext$val3;
|
|
2303
2286
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2304
|
-
className: "flex flex-col space-y-
|
|
2287
|
+
className: "flex flex-col space-y-6",
|
|
2305
2288
|
children: !usesCustomSubmissionComponent && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2306
2289
|
children: [/*#__PURE__*/jsxRuntime.jsx(RestrictDomainsBlock, {
|
|
2307
2290
|
domainName: "whitelistedDomains",
|
|
@@ -2432,7 +2415,7 @@ var OpinionScale = function OpinionScale() {
|
|
|
2432
2415
|
"data-testid": "neeto-form-engine-opinion-scale-show-labels-switch",
|
|
2433
2416
|
label: t("neetoForm.questions.opinionScale.showLabels"),
|
|
2434
2417
|
name: "hasOpinionLabels",
|
|
2435
|
-
size: "
|
|
2418
|
+
size: "default"
|
|
2436
2419
|
}), hasOpinionLabels && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2437
2420
|
className: "flex space-x-4",
|
|
2438
2421
|
children: [/*#__PURE__*/jsxRuntime.jsx(formik$1.Input, {
|
|
@@ -2532,12 +2515,12 @@ var Options = function Options(_ref) {
|
|
|
2532
2515
|
className: "space-y-4",
|
|
2533
2516
|
children: [/*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
2534
2517
|
name: "isPictureChoice",
|
|
2535
|
-
size: "
|
|
2518
|
+
size: "default",
|
|
2536
2519
|
label: t("neetoForm.questions.common.questionFields.field.addPicturesToOptions")
|
|
2537
2520
|
}), isPictureChoice && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2538
2521
|
children: [/*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, {
|
|
2539
2522
|
name: "shouldFitImages",
|
|
2540
|
-
size: "
|
|
2523
|
+
size: "default",
|
|
2541
2524
|
label: t("neetoForm.questions.common.questionFields.field.fitImages"),
|
|
2542
2525
|
labelProps: {
|
|
2543
2526
|
helpIconProps: {
|
|
@@ -2886,6 +2869,7 @@ var ManageQuestionPane = function ManageQuestionPane(_ref) {
|
|
|
2886
2869
|
initialFocusRef: initialFocusRef,
|
|
2887
2870
|
isOpen: isOpen,
|
|
2888
2871
|
onClose: onClose,
|
|
2872
|
+
size: "large",
|
|
2889
2873
|
children: /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$1({}, _objectSpread$1({
|
|
2890
2874
|
availableQuestionKinds: availableQuestionKinds,
|
|
2891
2875
|
initialFocusRef: initialFocusRef,
|
|
@@ -3038,6 +3022,15 @@ var Form = function Form(_ref) {
|
|
|
3038
3022
|
setSelectedAction(yup.QUESTION_ACTIONS.EDIT);
|
|
3039
3023
|
setIsManageQuestionPaneOpen(true);
|
|
3040
3024
|
};
|
|
3025
|
+
|
|
3026
|
+
// The embeddable builder has no inline properties panel, so a bare card click
|
|
3027
|
+
// would only highlight the question. Open the edit pane on click so the
|
|
3028
|
+
// interaction has a purpose (drag still reorders — @hello-pangea/dnd
|
|
3029
|
+
// separates click from drag). Falls back to select-only when questions are
|
|
3030
|
+
// not manageable, so read-only consumers are unaffected.
|
|
3031
|
+
var handleQuestionClick = function handleQuestionClick(question) {
|
|
3032
|
+
return canManageQuestions ? handleEdit(question) : handleSelect(question);
|
|
3033
|
+
};
|
|
3041
3034
|
var handleClone = function handleClone(question) {
|
|
3042
3035
|
var values = duplicateFieldData({
|
|
3043
3036
|
item: question,
|
|
@@ -3142,7 +3135,7 @@ var Form = function Form(_ref) {
|
|
|
3142
3135
|
onClone: handleClone,
|
|
3143
3136
|
onDelete: handleDelete,
|
|
3144
3137
|
onEdit: handleEdit,
|
|
3145
|
-
onSelect:
|
|
3138
|
+
onSelect: handleQuestionClick
|
|
3146
3139
|
})
|
|
3147
3140
|
}), canManageQuestions && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3148
3141
|
className: "mb-8 flex w-full items-center gap-x-1",
|