@epam/ai-dial-react-pdf-highlighter 0.2.0-rc.0 → 0.2.0-rc.2

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.
Files changed (2) hide show
  1. package/README.md +5 -7
  2. package/package.json +11 -2
package/README.md CHANGED
@@ -61,16 +61,14 @@ npm install @epam/ai-dial-react-pdf-highlighter
61
61
 
62
62
  ### Peer Dependencies
63
63
 
64
- ```bash
65
- npm install react react-dom \
66
- @epam/ai-dial-ui-kit \
67
- @epam/pdf-highlighter-kit \
68
- @tabler/icons-react \
69
- pdfjs-dist
70
- ```
64
+ | Type | Packages | npm | Yarn |
65
+ | ---- | -------- | --- | ---- |
66
+ | Required | `react`, `react-dom`, `@epam/pdf-highlighter-kit`, `@epam/ai-dial-ui-kit`, `pdfjs-dist` | `npm install react react-dom @epam/pdf-highlighter-kit @epam/ai-dial-ui-kit pdfjs-dist` | `yarn add react react-dom @epam/pdf-highlighter-kit @epam/ai-dial-ui-kit pdfjs-dist` |
67
+ | Optional (for `DocumentPreview`) | `@tabler/icons-react` | `npm install @tabler/icons-react` | `yarn add @tabler/icons-react` |
71
68
 
72
69
  Your `pdfjs-dist` version should satisfy [pdf-highlighter-kit requirements](https://github.com/epam/pdf-highlighter-kit?tab=readme-ov-file#requirements).
73
70
 
71
+
74
72
  ### Basic Usage
75
73
 
76
74
  ```tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-react-pdf-highlighter",
3
- "version": "0.2.0-rc.0",
3
+ "version": "0.2.0-rc.2",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "React components for PDF viewing and highlighting, built on @epam/pdf-highlighter-kit",
@@ -9,6 +9,10 @@
9
9
  "node": ">=22.2.0",
10
10
  "npm": ">=10.7.0"
11
11
  },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/epam/ai-dial-react-pdf-highlighter"
15
+ },
12
16
  "exports": {
13
17
  ".": {
14
18
  "types": "./dist/src/index.d.ts",
@@ -54,13 +58,18 @@
54
58
  ]
55
59
  },
56
60
  "peerDependencies": {
57
- "@epam/ai-dial-ui-kit": ">=0.8.0-0",
61
+ "@epam/ai-dial-ui-kit": ">=0.8.0-0 || >=0.9.0-rc.0",
58
62
  "@epam/pdf-highlighter-kit": ">=0.0.13",
59
63
  "@tabler/icons-react": "^3.0.0",
60
64
  "pdfjs-dist": ">=4.0.0",
61
65
  "react": ">=18",
62
66
  "react-dom": ">=18"
63
67
  },
68
+ "peerDependenciesMeta": {
69
+ "@tabler/icons-react": {
70
+ "optional": true
71
+ }
72
+ },
64
73
  "devDependencies": {
65
74
  "@chromatic-com/storybook": "^4.1.3",
66
75
  "@epam/ai-dial-ui-kit": "0.9.0-rc.20",