@bigbinary/neeto-form-frontend 1.2.26 → 1.2.28

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.
@@ -93,7 +93,8 @@
93
93
  "options": "Options",
94
94
  "labelExample": "Eg: {{what}}",
95
95
  "label": "Label",
96
- "fieldCode": "Field code"
96
+ "fieldCode": "Field code",
97
+ "fieldCodeHelpDescription": "If you change the field code, any existing shared URLs containing the old field code as query parameter, will not work correctly. <Link>View help article</Link> for more information."
97
98
  }
98
99
  }
99
100
  }
package/dist/index.cjs.js CHANGED
@@ -10183,15 +10183,17 @@ var FieldCode = reactUtils.withT(function (_ref) {
10183
10183
  className: "mt-14",
10184
10184
  label: t("neetoForm.questions.common.questionFields.field.fieldCode"),
10185
10185
  name: "".concat(name, ".fieldCode"),
10186
- labelProps: {
10187
- helpIconProps: {
10188
- icon: neetoIcons.Info,
10189
- className: "cursor-pointer",
10190
- onClick: function onClick() {
10191
- return window.open(FIELD_CODE_DOC, "_blank", "noopener,noreferrer");
10192
- }
10186
+ helpText: /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
10187
+ i18nKey: "neetoForm.questions.common.questionFields.field.fieldCodeHelpDescription",
10188
+ components: {
10189
+ Link: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
10190
+ className: "text-xs",
10191
+ href: FIELD_CODE_DOC,
10192
+ style: "link",
10193
+ target: "_blank"
10194
+ })
10193
10195
  }
10194
- }
10196
+ })
10195
10197
  }));
10196
10198
  });
10197
10199
 
@@ -27138,7 +27140,9 @@ var ExternalForm = function ExternalForm(_ref) {
27138
27140
  questions: questions,
27139
27141
  initialValues: submission === null || submission === void 0 ? void 0 : submission.responses,
27140
27142
  localValues: preserveValues ? localValues : initialValues,
27141
- fieldCodes: enablePreFilling ? utils.getQueryParams() : {}
27143
+ fieldCodes: enablePreFilling ? utils.getQueryParams({
27144
+ toCamelCase: false
27145
+ }) : {}
27142
27146
  })
27143
27147
  }, function (_ref5) {
27144
27148
  var isSubmitting = _ref5.isSubmitting,