cozy-ui 120.0.0 → 121.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # [121.0.0](https://github.com/cozy/cozy-ui/compare/v120.0.0...v121.0.0) (2025-03-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * Revert "feat: Set pdf-lib as a peerDep" ([dd73546](https://github.com/cozy/cozy-ui/commit/dd73546))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * Remove pdf-lib as a dep in your app if you added it
12
+ in cozy-ui 120.0.0
13
+
1
14
  # [120.0.0](https://github.com/cozy/cozy-ui/compare/v119.2.0...v120.0.0) (2025-03-13)
2
15
 
3
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "120.0.0",
3
+ "version": "121.0.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -126,7 +126,6 @@
126
126
  "mini-css-extract-plugin": "0.6.0",
127
127
  "nodemon": "1.19.4",
128
128
  "npm-run-all": "4.1.5",
129
- "pdf-lib": "1.17.1",
130
129
  "postcss-cli": "6.1.3",
131
130
  "postcss-loader": "2.1.6",
132
131
  "prettier": "2.6.0",
@@ -173,6 +172,7 @@
173
172
  "mui-bottom-sheet": "https://github.com/cozy/mui-bottom-sheet.git#v1.0.9",
174
173
  "node-polyglot": "^2.5.0",
175
174
  "normalize.css": "^8.0.0",
175
+ "pdf-lib": "1.17.1",
176
176
  "react-chartjs-2": "4.1.0",
177
177
  "react-markdown": "^4.0.8",
178
178
  "react-popper": "^2.2.3",
@@ -186,15 +186,9 @@
186
186
  "cozy-device-helper": "^2.0.0",
187
187
  "cozy-flags": ">=2.10.1",
188
188
  "cozy-intent": ">=2.29.1",
189
- "pdf-lib": "1.17.1",
190
189
  "react": "^16.8.6",
191
190
  "react-dom": "^16.8.6"
192
191
  },
193
- "peerDependenciesMeta": {
194
- "pdf-lib": {
195
- "optional": true
196
- }
197
- },
198
192
  "eslintConfig": {
199
193
  "extends": [
200
194
  "eslint-config-cozy-app"
@@ -4,25 +4,6 @@ You can pass a reference to a custom DOM element through the `ref` prop to attac
4
4
 
5
5
  A header `ActionsMenuMobileHeader` can be used to provide context on the menu actions. Since on desktop, we display a popper and not a `BottomSheet`, context for the user is not lost, so the header would be redundant. This is why it is not rendered unless we are on mobile.
6
6
 
7
- ## Available actions
8
-
9
- cozy-ui exposes a list of ready-to-use action :
10
- - makeActions
11
- - divider
12
- - modify
13
- - smsTo
14
- - call
15
- - emailTo
16
- - print (requires to add `pdf-lib` in the app)
17
- - download
18
- - addToFavorites
19
- - removeFromFavorites
20
- - viewInContacts
21
- - viewInDrive
22
- - copyToClipboard
23
- - editAttribute
24
- - others
25
-
26
7
  ### How to create and use actions
27
8
 
28
9
  An action is a simple function that returns an object with specific keys: