@lysaab/lysa-pep 6.1.1-1 → 6.1.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.
package/README.md
CHANGED
|
@@ -42,10 +42,3 @@ You don’t have to ever use `eject`. The curated feature set is suitable for sm
|
|
|
42
42
|
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
43
43
|
|
|
44
44
|
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
45
|
-
|
|
46
|
-
## Testing pre-release version
|
|
47
|
-
|
|
48
|
-
1. `npm run build`
|
|
49
|
-
2. Copy the built files to where you want to use them. Example (standing in a
|
|
50
|
-
project that you want to test the new version in):
|
|
51
|
-
`cp -r ../lysa-pep/lib/* node_modules/\@lysaab/lysa-pep/`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lysaab/lysa-pep",
|
|
3
3
|
"author": "Lysa AB",
|
|
4
|
-
"version": "6.1.1
|
|
4
|
+
"version": "6.1.1",
|
|
5
5
|
"main": "./Exports.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@lysaab/countries": "^5.0.2",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@formatjs/cli": "^1.1.22",
|
|
14
|
-
"@lysaab/ui-2": "^40.
|
|
14
|
+
"@lysaab/ui-2": "^40.0.4",
|
|
15
15
|
"@types/jest": "24.0.20",
|
|
16
16
|
"@types/luxon": "^1.15.2",
|
|
17
17
|
"@types/node": "12.11.7",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typescript": "^4.3.4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@lysaab/ui-2": "^40.
|
|
35
|
+
"@lysaab/ui-2": "^40.0.4",
|
|
36
36
|
"react": "^17.0.1",
|
|
37
37
|
"react-intl": "^5.20.2",
|
|
38
38
|
"react-router-dom": "^5.2.0"
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
"release:minor": "npm run build:lib && npm version minor && npm run postversioning",
|
|
55
55
|
"release:major": "npm run build:lib && npm version major && npm run postversioning",
|
|
56
56
|
"release:premajor": "npm run build:lib && npm version premajor && npm run postversioning",
|
|
57
|
-
"release:prepatch": "npm run build:lib && npm version prepatch && npm run postversioning"
|
|
58
|
-
"release:prerelease": "npm run build:lib && npm version prerelease && npm run postversioning"
|
|
57
|
+
"release:prepatch": "npm run build:lib && npm version prepatch && npm run postversioning"
|
|
59
58
|
},
|
|
60
59
|
"eslintConfig": {
|
|
61
60
|
"extends": "react-app"
|
package/pages/IsPep/IsPepPage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useCallback, useContext, } from "react";
|
|
2
|
-
import { Form, RadioGroup, RequiredValidator,
|
|
2
|
+
import { Form, RadioGroup, RequiredValidator, PrimaryButton, Card, } from "@lysaab/ui-2";
|
|
3
3
|
import { PepType, PepContext, EntityType } from "../PepContext";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { messages } from "./IsPepMessages";
|
|
@@ -56,5 +56,6 @@ export const IsPepPage = ({ next }) => {
|
|
|
56
56
|
return (React.createElement(Form, { onSubmit: nextPage, lysaFormRef: formRef },
|
|
57
57
|
React.createElement(Card, null,
|
|
58
58
|
React.createElement(IsPepQuestion, { ownerName: pepContext.state.ownerName, entityType: pepContext.state.legalEntityType || EntityType.PERSON, type: pepContext.state.type, onChange: (type) => pepContext.setState({ type }) })),
|
|
59
|
-
React.createElement(
|
|
59
|
+
React.createElement(PrimaryButton, { block: true, type: "submit" },
|
|
60
|
+
React.createElement(FormattedMessage, { id: "pep.ispep.next" }))));
|
|
60
61
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext, useRef, useCallback, } from "react";
|
|
2
2
|
import { PepContext, PepType, BusinessRelation, Relation, EntityType, } from "../PepContext";
|
|
3
|
-
import { RadioGroup, Form, RequiredValidator, TextInput, Datepicker,
|
|
3
|
+
import { RadioGroup, Form, RequiredValidator, TextInput, Datepicker, PrimaryButton, Card, } from "@lysaab/ui-2";
|
|
4
4
|
import { DateTime } from "luxon";
|
|
5
5
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
6
6
|
import { relationMessages, businessRelationMessages, relativeNameMessages, birthdayMessages, colleagueNameMessages, } from "./RelationMessages";
|
|
@@ -82,7 +82,8 @@ export const RelationPage = ({ next }) => {
|
|
|
82
82
|
}, validators: [
|
|
83
83
|
new RequiredValidator(intl.formatMessage(colleagueNameMessages.required)),
|
|
84
84
|
] }))) : null),
|
|
85
|
-
React.createElement(
|
|
85
|
+
React.createElement(PrimaryButton, { block: true, type: "submit" },
|
|
86
|
+
React.createElement(FormattedMessage, { id: "pep.relation.next" }))));
|
|
86
87
|
};
|
|
87
88
|
function getRelationAlternatives(intl, entityType, pepContext) {
|
|
88
89
|
return [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useCallback, useContext, } from "react";
|
|
2
|
-
import { Form, RequiredValidator, TextInput, Select, Card, CountrySelect,
|
|
2
|
+
import { Form, PrimaryButton, RequiredValidator, TextInput, Select, Card, CountrySelect, } from "@lysaab/ui-2";
|
|
3
3
|
import { PepContext, Role, MilitaryRank, PepType, EntityType, } from "../PepContext";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { roleMessages, ambassadorMessages, governmentCompanyMessages, intCompanyMessages, militaryMessages, } from "./RoleMessages";
|
|
@@ -131,7 +131,8 @@ export const RolePage = ({ language, next }) => {
|
|
|
131
131
|
}, validators: [
|
|
132
132
|
new RequiredValidator(intl.formatMessage(militaryMessages.required)),
|
|
133
133
|
] })) : null),
|
|
134
|
-
React.createElement(
|
|
134
|
+
React.createElement(PrimaryButton, { block: true, type: "submit" },
|
|
135
|
+
React.createElement(FormattedMessage, { id: "pep.role.next" }))));
|
|
135
136
|
};
|
|
136
137
|
export function getRoleAlts(intl) {
|
|
137
138
|
return [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useCallback, useContext, } from "react";
|
|
2
|
-
import { Form, RadioGroup, RequiredValidator, Datepicker, Card, CountrySelect,
|
|
2
|
+
import { Form, RadioGroup, RequiredValidator, PrimaryButton, Datepicker, Card, CountrySelect, } from "@lysaab/ui-2";
|
|
3
3
|
import { PepContext, PepStatus, EntityType, PepType } from "../PepContext";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { isOngoingMessages, endedMessages, isLocalCountryMessages, countrySelectionMessages, localCountryAltMessages, stateAltMessages, } from "./StatusMessages";
|
|
@@ -73,7 +73,8 @@ export const StatusPage = ({ countryName, countryCode, language, next, }) => {
|
|
|
73
73
|
}), validators: [
|
|
74
74
|
new RequiredValidator(intl.formatMessage(countrySelectionMessages.required)),
|
|
75
75
|
], value: pepContext.state.country, omitList: [countryCode], language: language, placeholder: intl.formatMessage(countrySelectionMessages.placeholder) })) : null),
|
|
76
|
-
React.createElement(
|
|
76
|
+
React.createElement(PrimaryButton, { block: true, type: "submit" },
|
|
77
|
+
React.createElement(FormattedMessage, { id: "pep.status.next" })))));
|
|
77
78
|
};
|
|
78
79
|
function getIsLocalCountryAlternatives(intl, countryName) {
|
|
79
80
|
return [
|