@ukhomeoffice/cop-react-form-renderer 5.1.0 → 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
|
}));
|