@lysaab/lysa-pep 6.2.0 → 7.0.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/package.json CHANGED
@@ -1,30 +1,28 @@
1
1
  {
2
2
  "name": "@lysaab/lysa-pep",
3
3
  "author": "Lysa AB",
4
- "version": "6.2.0",
4
+ "version": "7.0.1",
5
5
  "main": "./Exports.js",
6
6
  "dependencies": {
7
- "@lysaab/countries": "^5.0.2",
8
7
  "@types/luxon": "^1.15.2",
9
- "@types/react-intl": "^3.0.0",
10
8
  "luxon": "^1.21.1"
11
9
  },
12
10
  "devDependencies": {
13
11
  "@formatjs/cli": "^1.1.22",
14
- "@lysaab/ui-2": "^41.0.0",
12
+ "@lysaab/ui-2": "^45.0.1",
15
13
  "@types/jest": "24.0.20",
16
14
  "@types/luxon": "^1.15.2",
17
15
  "@types/node": "12.11.7",
18
- "@types/react": "^17.0.0",
19
- "@types/react-datepicker": "^4.3.4",
20
- "@types/react-dom": "^17.0.0",
16
+ "@types/react": "^18.3.3",
17
+ "@types/react-datepicker": "^6.2.0",
18
+ "@types/react-dom": "^18.3.0",
21
19
  "copyfiles": "^2.3.0",
22
20
  "eslint-plugin-formatjs": "^3.0.0",
23
21
  "luxon": "^1.21.1",
24
- "react": "^17.0.1",
25
- "react-datepicker": "^4.7.0",
26
- "react-dom": "^17.0.1",
27
- "react-intl": "^5.20.2",
22
+ "react": "^18.3.1",
23
+ "react-datepicker": "^6.9.0",
24
+ "react-dom": "^18.3.1",
25
+ "react-intl": "^6.6.8",
28
26
  "react-intl-translations-manager": "^5.0.3",
29
27
  "react-router-dom": "^5.2.0",
30
28
  "react-scripts": "^5.0.0",
@@ -32,9 +30,9 @@
32
30
  "typescript": "^4.3.4"
33
31
  },
34
32
  "peerDependencies": {
35
- "@lysaab/ui-2": "^41.0.0",
36
- "react": "^17.0.1",
37
- "react-intl": "^5.20.2",
33
+ "@lysaab/ui-2": "^45.0.1",
34
+ "react": "17 - 18",
35
+ "react-intl": "^6.6.8",
38
36
  "react-router-dom": "^5.2.0"
39
37
  },
40
38
  "scripts": {
@@ -49,13 +47,13 @@
49
47
  "copyscss": "copyfiles -u 1 \"src/components/**/*.scss\" lib/",
50
48
  "copymessages": "copyfiles -u 1 \"build/messages/**/*.json\" lib/",
51
49
  "copypkgfiles": "cp README.md ./lib/ && cp package.json ./lib/",
52
- "postversioning": "npm run translations:extract && npm run copymessages && npm run copypkgfiles && cd lib && npm publish",
53
- "release:patch": "npm run build:lib && npm version patch && npm run postversioning",
54
- "release:minor": "npm run build:lib && npm version minor && npm run postversioning",
55
- "release:major": "npm run build:lib && npm version major && npm run postversioning",
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"
50
+ "postversioning": "npm run translations:extract && npm run copymessages && npm run copypkgfiles",
51
+ "release:patch": "npm run build:lib && npm version patch && npm run postversioning && cd lib && npm publish",
52
+ "release:minor": "npm run build:lib && npm version minor && npm run postversioning && cd lib && npm publish",
53
+ "release:major": "npm run build:lib && npm version major && npm run postversioning && cd lib && npm publish",
54
+ "release:premajor": "npm run build:lib && npm version premajor && npm run postversioning && cd lib && npm publish --tag next",
55
+ "release:prepatch": "npm run build:lib && npm version prepatch && npm run postversioning && cd lib && npm publish --tag next",
56
+ "release:prerelease": "npm run build:lib && npm version prerelease && npm run postversioning && cd lib && npm publish --tag next"
59
57
  },
60
58
  "eslintConfig": {
61
59
  "extends": "react-app"
@@ -1,4 +1,4 @@
1
- import { WorldCountry } from "@lysaab/countries";
1
+ import { WorldCountry } from "@lysaab/ui-2";
2
2
  import React from "react";
3
3
  export declare enum EntityType {
4
4
  PERSON = "PERSON",
@@ -78,5 +78,5 @@ export interface PepContextProps {
78
78
  setState: (newState: Partial<PepState>) => void;
79
79
  }
80
80
  export declare const PepContext: React.Context<PepContextProps>;
81
- export declare const withPep: <P extends object>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof PepContextProps>>;
82
- export declare const PepContextProvider: React.FC;
81
+ export declare const withPep: <P extends object>(Component: React.ComponentType<React.PropsWithChildren<P>>) => React.FC<React.PropsWithChildren<Omit<P, keyof PepContextProps>>>;
82
+ export declare const PepContextProvider: React.FC<React.PropsWithChildren<unknown>>;