cozy-ui 119.2.0 → 120.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 +12 -0
- package/package.json +8 -2
- package/react/ActionsMenu/Readme.md +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [120.0.0](https://github.com/cozy/cozy-ui/compare/v119.2.0...v120.0.0) (2025-03-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Set pdf-lib as a peerDep ([15604af](https://github.com/cozy/cozy-ui/commit/15604af))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* If you use print action, please add pdf-lib as a dep in your app because it is now a peerDep in cozy-ui. `yarn add pdf-lib@1.17.1`
|
|
12
|
+
|
|
1
13
|
# [119.2.0](https://github.com/cozy/cozy-ui/compare/v119.1.0...v119.2.0) (2025-03-12)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "120.0.0",
|
|
4
4
|
"description": "Cozy apps UI SDK",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -126,6 +126,7 @@
|
|
|
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",
|
|
129
130
|
"postcss-cli": "6.1.3",
|
|
130
131
|
"postcss-loader": "2.1.6",
|
|
131
132
|
"prettier": "2.6.0",
|
|
@@ -172,7 +173,6 @@
|
|
|
172
173
|
"mui-bottom-sheet": "https://github.com/cozy/mui-bottom-sheet.git#v1.0.9",
|
|
173
174
|
"node-polyglot": "^2.5.0",
|
|
174
175
|
"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,9 +186,15 @@
|
|
|
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",
|
|
189
190
|
"react": "^16.8.6",
|
|
190
191
|
"react-dom": "^16.8.6"
|
|
191
192
|
},
|
|
193
|
+
"peerDependenciesMeta": {
|
|
194
|
+
"pdf-lib": {
|
|
195
|
+
"optional": true
|
|
196
|
+
}
|
|
197
|
+
},
|
|
192
198
|
"eslintConfig": {
|
|
193
199
|
"extends": [
|
|
194
200
|
"eslint-config-cozy-app"
|
|
@@ -4,6 +4,25 @@ 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
|
+
|
|
7
26
|
### How to create and use actions
|
|
8
27
|
|
|
9
28
|
An action is a simple function that returns an object with specific keys:
|