@ukhomeoffice/cop-react-form-renderer 5.1.0-alpha → 5.2.0

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.
@@ -30,6 +30,7 @@ exports.DEFAULT_CLASS = DEFAULT_CLASS;
30
30
  var CollectionPage = function CollectionPage(_ref) {
31
31
  var page = _ref.page,
32
32
  onAction = _ref.onAction,
33
+ hashLink = _ref.hashLink,
33
34
  classBlock = _ref.classBlock,
34
35
  classModifiers = _ref.classModifiers,
35
36
  className = _ref.className;
@@ -96,6 +97,7 @@ var CollectionPage = function CollectionPage(_ref) {
96
97
  onAction: onInnerPageAction,
97
98
  onWrapperChange: onInnerPageChange,
98
99
  onTopLevelChange: onPageChange,
100
+ hashLink: hashLink,
99
101
  classBlock: classBlock,
100
102
  classModifiers: classModifiers,
101
103
  className: className
@@ -113,11 +115,13 @@ CollectionPage.propTypes = {
113
115
  formData: _propTypes.default.shape({}).isRequired
114
116
  }).isRequired,
115
117
  onAction: _propTypes.default.func.isRequired,
118
+ hashLink: _propTypes.default.bool,
116
119
  classBlock: _propTypes.default.string,
117
120
  classModifiers: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string)]),
118
121
  className: _propTypes.default.string
119
122
  };
120
123
  CollectionPage.defaultProps = {
124
+ hashLink: false,
121
125
  classBlock: DEFAULT_CLASS,
122
126
  classModifiers: [],
123
127
  className: ''
@@ -357,6 +357,7 @@ var InternalFormRenderer = function InternalFormRenderer(_ref2) {
357
357
  onAction: function onAction(action, patch, patchLabel) {
358
358
  (0, _onPageAction.default)(action, patch, patchLabel, hooks, data, formState, validate, onPageChange, type, pages, components, pageId, setPagePoint, currentTask, setData, hubDetails, setSubmitted, addErrors);
359
359
  },
360
+ hashLink: hashLink,
360
361
  classModifiers: formState.page.classModifiers,
361
362
  className: formState.page.className
362
363
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ukhomeoffice/cop-react-form-renderer",
3
- "version": "5.1.0-alpha",
3
+ "version": "5.2.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -16,7 +16,7 @@
16
16
  "post-compile": "rimraf dist/*.test.* dist/**/*.test.* dist/**/*.stories.* dist/docs dist/assets"
17
17
  },
18
18
  "dependencies": {
19
- "@ukhomeoffice/cop-react-components": "3.1.0-alpha",
19
+ "@ukhomeoffice/cop-react-components": "^3.1.0",
20
20
  "axios": "^0.23.0",
21
21
  "dayjs": "^1.11.0",
22
22
  "govuk-frontend": "^4.3.1",
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@babel/cli": "^7.15.4",
27
+ "@babel/eslint-parser": "^7.19.1",
27
28
  "@babel/preset-env": "^7.15.6",
28
29
  "@babel/preset-react": "^7.14.5",
29
30
  "@monaco-editor/react": "^4.3.1",
@@ -44,6 +45,8 @@
44
45
  "@testing-library/user-event": "^12.1.10",
45
46
  "axios-mock-adapter": "^1.18.1",
46
47
  "cross-env": "^7.0.3",
48
+ "eslint-config-airbnb": "^19.0.4",
49
+ "eslint-config-prettier": "^8.6.0",
47
50
  "html-react-parser": "^0.10.5",
48
51
  "node-sass": "^6.0.1",
49
52
  "prop-types": "^15.8.1",