@ukhomeoffice/cop-react-form-renderer 5.84.0 → 5.84.1

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.
@@ -22,7 +22,7 @@ var Answer = function Answer(_ref) {
22
22
  formData = _ref.formData,
23
23
  placeholder = _ref.placeholder;
24
24
  if (!value) {
25
- var placeholderValue = (component === null || component === void 0 ? void 0 : component.placeholder) || placeholder;
25
+ var placeholderValue = (component === null || component === void 0 ? void 0 : component.cyaPlaceholder) || placeholder;
26
26
  return placeholderValue || /*#__PURE__*/_react.default.createElement(_VisuallyHidden.default, null, "No answer");
27
27
  }
28
28
  if (!component) {
@@ -39,7 +39,7 @@ var Answer = function Answer(_ref) {
39
39
  };
40
40
  Answer.propTypes = {
41
41
  component: _propTypes.default.shape({
42
- placeholder: _propTypes.default.string
42
+ cyaPlaceholder: _propTypes.default.string
43
43
  }),
44
44
  formData: _propTypes.default.shape({}),
45
45
  value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({})]),
@@ -113,7 +113,7 @@ describe('components', function () {
113
113
  fieldId: 'alpha',
114
114
  type: 'text',
115
115
  label: 'Alpha',
116
- placeholder: 'Alpha not entered'
116
+ cyaPlaceholder: 'Alpha not entered'
117
117
  };
118
118
  _renderWithValidation5 = (0, _setupTests.renderWithValidation)( /*#__PURE__*/_react.default.createElement(_Answer.default, {
119
119
  value: VALUE,
@@ -121,7 +121,7 @@ describe('components', function () {
121
121
  placeholder: GLOBAL_PLACEHOLDER
122
122
  })), container = _renderWithValidation5.container;
123
123
  answer = container.childNodes[0];
124
- expect(answer.textContent).toEqual(COMPONENT.placeholder);
124
+ expect(answer.textContent).toEqual(COMPONENT.cyaPlaceholder);
125
125
  case 6:
126
126
  case "end":
127
127
  return _context5.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ukhomeoffice/cop-react-form-renderer",
3
- "version": "5.84.0",
3
+ "version": "5.84.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",