@bigbinary/neeto-form-frontend 3.10.12 → 3.10.14

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.
@@ -131,7 +131,7 @@
131
131
  "fieldCode": "Field code",
132
132
  "fieldCodeHelpDescription": "If you change the field code, any existing shared links containing the old field code as query parameter, will not work correctly. <Link>View help article</Link> for more information.",
133
133
  "questionType": "Question type",
134
- "hideQuestionHelpDescription": "When enabled, this question will not be visible in the created form. It can be used for tracking UTM parameters.",
134
+ "hideQuestionHelpDescription": "When enabled, this question will not be visible in the created form. It can be used to track \"reference ids\" and UTM parameters.",
135
135
  "readOnlyHelpDescription": "When enabled, the response for this question will not be editable. It can be used for pre-filled forms.",
136
136
  "verifyHuman": "Verify that you are a human"
137
137
  }
package/dist/BuildForm.js CHANGED
@@ -33,10 +33,10 @@ import { v4 } from 'uuid';
33
33
  import NoData from '@bigbinary/neetoui/NoData';
34
34
  import Pane from '@bigbinary/neetoui/Pane';
35
35
  import Form$2 from '@bigbinary/neetoui/formik/Form';
36
- import Textarea from '@bigbinary/neetoui/formik/Textarea';
37
36
  import Accordion from '@bigbinary/neetoui/Accordion';
38
37
  import Select from '@bigbinary/neetoui/formik/Select';
39
38
  import Switch from '@bigbinary/neetoui/formik/Switch';
39
+ import Textarea from '@bigbinary/neetoui/formik/Textarea';
40
40
  import NeetoEditor from '@bigbinary/neeto-editor/Editor';
41
41
  import Button from '@bigbinary/neetoui/Button';
42
42
  import Input from '@bigbinary/neetoui/formik/Input';
@@ -978,19 +978,19 @@ var Form$1 = function Form(_ref) {
978
978
  label: t("neetoForm.common.hideQuestion"),
979
979
  labelProps: hideSwitchLabelProps(hideQuestionHelpDoc),
980
980
  name: "isHidden"
981
- }), shouldShowReadOnlySwitch && /*#__PURE__*/jsx(Switch, {
982
- label: t("neetoForm.common.readOnly"),
983
- labelProps: readOnlySwitchLabelProps(readOnlyHelpDoc),
984
- name: "isReadOnly"
985
981
  })]
986
982
  }), (shouldShowFieldCode || shouldShowReadOnlySwitch) && /*#__PURE__*/jsx(Accordion, {
987
983
  className: "neeto-form-nano-advanced-properties-accordion",
988
984
  "data-cy": "advanced-properties-card",
989
985
  children: /*#__PURE__*/jsx(Accordion.Item, {
990
986
  title: t("neetoForm.common.advancedProperties"),
991
- children: /*#__PURE__*/jsx("div", {
987
+ children: /*#__PURE__*/jsxs("div", {
992
988
  className: "flex flex-col space-y-4",
993
- children: shouldShowFieldCode && /*#__PURE__*/jsx(FieldCode, {})
989
+ children: [shouldShowFieldCode && /*#__PURE__*/jsx(FieldCode, {}), shouldShowReadOnlySwitch && /*#__PURE__*/jsx(Switch, {
990
+ label: t("neetoForm.common.readOnly"),
991
+ labelProps: readOnlySwitchLabelProps(readOnlyHelpDoc),
992
+ name: "isReadOnly"
993
+ })]
994
994
  })
995
995
  })
996
996
  })]