@ukhomeoffice/cop-react-form-renderer 5.18.0 → 5.19.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.
- package/dist/components/CheckYourAnswers/Answer.js +2 -1
- package/dist/components/CheckYourAnswers/Answer.test.js +2 -1
- package/dist/components/CheckYourAnswers/CheckYourAnswers.js +3 -1
- package/dist/components/CheckYourAnswers/CheckYourAnswers.test.js +2 -1
- package/dist/components/CollectionPage/CollectionPage.js +3 -1
- package/dist/components/CollectionPage/CollectionPage.test.js +2 -1
- package/dist/components/FormComponent/Collection.js +15 -1
- package/dist/components/FormComponent/Collection.test.js +161 -1
- package/dist/components/FormComponent/Container.js +2 -1
- package/dist/components/FormComponent/Container.test.js +2 -1
- package/dist/components/FormComponent/FormComponent.js +2 -1
- package/dist/components/FormComponent/FormComponent.test.js +2 -1
- package/dist/components/FormPage/FormPage.js +3 -1
- package/dist/components/FormPage/FormPage.test.js +2 -1
- package/dist/components/FormRenderer/FormRenderer.js +4 -2
- package/dist/components/FormRenderer/FormRenderer.test.js +3 -1
- package/dist/components/FormRenderer/helpers/cleanHiddenNestedData.js +3 -3
- package/dist/components/FormRenderer/helpers/getNextPageId.js +1 -1
- package/dist/components/FormRenderer/helpers/getSubmissionStatus.test.js +1 -1
- package/dist/components/FormRenderer/helpers/getUpdatedSectionStates.js +3 -3
- package/dist/components/FormRenderer/helpers/getUpdatedSectionStates.test.js +1 -1
- package/dist/components/FormRenderer/onCYAAction.js +1 -1
- package/dist/components/PageActions/ActionButton.js +2 -1
- package/dist/components/PageActions/ActionButton.test.js +2 -1
- package/dist/components/PageActions/PageActions.test.js +2 -1
- package/dist/components/SummaryList/GroupAction.js +2 -1
- package/dist/components/SummaryList/RowAction.js +2 -1
- package/dist/components/SummaryList/SummaryList.js +3 -1
- package/dist/components/SummaryList/SummaryList.test.js +2 -1
- package/dist/components/TaskList/Task.js +2 -1
- package/dist/components/TaskList/TaskList.js +3 -0
- package/dist/components/TaskList/TaskList.test.js +2 -1
- package/dist/context/HooksContext/HooksContext.js +1 -1
- package/dist/context/HooksContext/HooksContext.test.js +2 -1
- package/dist/context/ValidationContext/ValidationContext.js +2 -1
- package/dist/context/ValidationContext/ValidationContext.test.js +2 -1
- package/dist/hooks/useAxios.js +2 -1
- package/dist/hooks/useGetRequest.js +2 -1
- package/dist/hooks/useRefData.js +2 -1
- package/dist/utils/CheckYourAnswers/getCYACollectionChangeAction.js +2 -1
- package/dist/utils/CheckYourAnswers/getCYACollectionChangeAction.test.js +1 -1
- package/dist/utils/CheckYourAnswers/getCYACollectionDeleteAction.js +2 -1
- package/dist/utils/CheckYourAnswers/getCYACollectionDeleteAction.test.js +1 -1
- package/dist/utils/CheckYourAnswers/getCYARow.js +2 -2
- package/dist/utils/CheckYourAnswers/getCYARow.test.js +1 -1
- package/dist/utils/CheckYourAnswers/getCYARowsForCollection.js +2 -1
- package/dist/utils/CheckYourAnswers/getCYARowsForCollection.test.js +1 -1
- package/dist/utils/CheckYourAnswers/getCYARowsForCollectionPage.js +7 -6
- package/dist/utils/CheckYourAnswers/getCYARowsForCollectionPage.test.js +1 -1
- package/dist/utils/CheckYourAnswers/getCYARowsForContainer.js +1 -1
- package/dist/utils/CheckYourAnswers/getCYARowsForContainer.test.js +1 -1
- package/dist/utils/CheckYourAnswers/getCYARowsForPage.test.js +1 -1
- package/dist/utils/Component/applyToComponentTree.js +1 -1
- package/dist/utils/Component/applyToComponentTree.test.js +1 -1
- package/dist/utils/Component/elevateNestedComponents.js +2 -2
- package/dist/utils/Component/getComponent.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.calculation.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.checkboxes.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.date.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.email.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.file.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.multifile.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.nested.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.phoneNumber.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.radios.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.select.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.text.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.textArea.test.js +2 -1
- package/dist/utils/Component/getComponentTests/getComponent.time.test.js +2 -1
- package/dist/utils/Component/wrapInFormGroup.js +2 -1
- package/dist/utils/Condition/meetsCondition.js +1 -1
- package/dist/utils/Condition/setupConditions.js +1 -1
- package/dist/utils/Container/setupNesting.js +2 -2
- package/dist/utils/Data/applyFormula.js +1 -1
- package/dist/utils/Data/getOptions.js +2 -1
- package/dist/utils/Data/getSourceData.test.js +1 -1
- package/dist/utils/Data/setupFormData.js +1 -1
- package/dist/utils/Data/setupFormData.test.js +1 -1
- package/dist/utils/Data/setupRefDataUrlForComponent.js +1 -1
- package/dist/utils/FormPage/applyConditionalProperties.test.js +1 -1
- package/dist/utils/FormPage/getFormPage.js +1 -1
- package/dist/utils/FormPage/getFormPage.test.js +1 -1
- package/dist/utils/FormPage/getFormPages.js +1 -1
- package/dist/utils/FormPage/getFormPages.test.js +1 -1
- package/dist/utils/FormPage/useComponent.test.js +1 -1
- package/dist/utils/Format/formatDataForComponent.test.js +1 -1
- package/dist/utils/Format/formatDataForForm.js +1 -1
- package/dist/utils/Hub/getFormHub.test.js +1 -1
- package/dist/utils/Meta/documents/getDocuments.js +1 -1
- package/dist/utils/Meta/documents/setDocumentsForField.js +1 -1
- package/dist/utils/Validate/validateCollection.js +1 -1
- package/dist/utils/Validate/validateCollection.test.js +1 -1
- package/dist/utils/Validate/validateComponent.js +1 -1
- package/dist/utils/Validate/validateComponent.test.js +1 -1
- package/dist/utils/Validate/validateContainer.js +1 -1
- package/dist/utils/Validate/validateContainer.test.js +1 -1
- package/dist/utils/Validate/validateDate.js +2 -1
- package/dist/utils/Validate/validatePage.js +2 -1
- package/dist/utils/Validate/validatePage.test.js +1 -1
- package/dist/utils/Validate/validateTime.js +1 -1
- package/dist/utils/index.js +2 -1
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
10
10
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
11
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
12
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
13
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // Local imports
|
|
14
14
|
/**
|
|
15
15
|
* Checks if a time passed is a valid time.
|
|
16
16
|
* This will validate for missing components, invalid hour or minute components.
|
package/dist/utils/index.js
CHANGED
|
@@ -23,7 +23,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
23
23
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24
24
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
25
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
26
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
26
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } // Global imports
|
|
27
|
+
// Local imports
|
|
27
28
|
var Utils = _objectSpread({
|
|
28
29
|
CheckYourAnswers: _CheckYourAnswers.default,
|
|
29
30
|
CollectionPage: _CollectionPage.default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukhomeoffice/cop-react-form-renderer",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.19.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.6.
|
|
19
|
+
"@ukhomeoffice/cop-react-components": "^3.6.2",
|
|
20
20
|
"axios": "^0.23.0",
|
|
21
21
|
"dayjs": "^1.11.0",
|
|
22
22
|
"govuk-frontend": "^4.3.1",
|