cozy-ui 144.0.0 → 145.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,22 @@
1
+ # [145.0.0](https://github.com/cozy/cozy-ui/compare/v144.0.0...v145.0.0) (2026-10-22)
2
+
3
+
4
+ * feat(providers)!: Remove EncryptedProvider ([77d3133](https://github.com/cozy/cozy-ui/commit/77d3133))
5
+ * feat(ActionsMenu)!: Remove encryptedUrl from download action ([f101a2e](https://github.com/cozy/cozy-ui/commit/f101a2e))
6
+
7
+
8
+ ### BREAKING CHANGES
9
+
10
+ * `cozy-ui/transpiled/react/providers/Encrypted` is
11
+ removed. Upgrade cozy-viewer and cozy-ui-plus to versions that no
12
+ longer import it.
13
+
14
+ Assisted-by: LLM
15
+ * `download()` no longer accepts `encryptedUrl`. Stop
16
+ passing it.
17
+
18
+ Assisted-by: LLM
19
+
1
20
  # [144.0.0](https://github.com/cozy/cozy-ui/compare/v143.0.0...v144.0.0) (2026-10-19)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "144.0.0",
3
+ "version": "145.0.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "engines": {
6
6
  "node": "24.x"
@@ -23,7 +23,7 @@ const makeComponent = (label, icon) => {
23
23
  return Component
24
24
  }
25
25
 
26
- export const download = ({ client, encryptedUrl, downloadFile }) => {
26
+ export const download = ({ client, downloadFile }) => {
27
27
  const { t } = getActionsI18n()
28
28
  const icon = Download
29
29
  const label = t('download')
@@ -37,7 +37,6 @@ export const download = ({ client, encryptedUrl, downloadFile }) => {
37
37
  downloadFile({
38
38
  client,
39
39
  file: docs[0],
40
- url: encryptedUrl,
41
40
  webviewIntent,
42
41
  driveId
43
42
  })
@@ -1,6 +1,5 @@
1
- export function download({ client, encryptedUrl, downloadFile }: {
1
+ export function download({ client, downloadFile }: {
2
2
  client: any;
3
- encryptedUrl: any;
4
3
  downloadFile: any;
5
4
  }): {
6
5
  name: string;
@@ -22,7 +22,6 @@ var makeComponent = function makeComponent(label, icon) {
22
22
 
23
23
  export var download = function download(_ref) {
24
24
  var client = _ref.client,
25
- encryptedUrl = _ref.encryptedUrl,
26
25
  downloadFile = _ref.downloadFile;
27
26
 
28
27
  var _getActionsI18n = getActionsI18n(),
@@ -41,7 +40,6 @@ export var download = function download(_ref) {
41
40
  return downloadFile({
42
41
  client: client,
43
42
  file: docs[0],
44
- url: encryptedUrl,
45
43
  webviewIntent: webviewIntent,
46
44
  driveId: driveId
47
45
  });
@@ -1,25 +0,0 @@
1
- import React, { useContext } from 'react'
2
-
3
- export const EncryptedContext = React.createContext()
4
-
5
- export const useEncrypted = () => {
6
- const context = useContext(EncryptedContext)
7
-
8
- if (!context) {
9
- throw new Error('useEncrypted must be used within a EncryptedProvider')
10
- }
11
- return context
12
- }
13
-
14
- const EncryptedProvider = ({ url, children }) => {
15
- const contextValue = {
16
- url
17
- }
18
- return (
19
- <EncryptedContext.Provider value={contextValue}>
20
- {children}
21
- </EncryptedContext.Provider>
22
- )
23
- }
24
-
25
- export default React.memo(EncryptedProvider)
@@ -1,8 +0,0 @@
1
- export const EncryptedContext: React.Context<any>;
2
- export function useEncrypted(): any;
3
- declare var _default: React.MemoExoticComponent<({ url, children }: {
4
- url: any;
5
- children: any;
6
- }) => JSX.Element>;
7
- export default _default;
8
- import React from "react";
@@ -1,24 +0,0 @@
1
- import React, { useContext } from 'react';
2
- export var EncryptedContext = /*#__PURE__*/React.createContext();
3
- export var useEncrypted = function useEncrypted() {
4
- var context = useContext(EncryptedContext);
5
-
6
- if (!context) {
7
- throw new Error('useEncrypted must be used within a EncryptedProvider');
8
- }
9
-
10
- return context;
11
- };
12
-
13
- var EncryptedProvider = function EncryptedProvider(_ref) {
14
- var url = _ref.url,
15
- children = _ref.children;
16
- var contextValue = {
17
- url: url
18
- };
19
- return /*#__PURE__*/React.createElement(EncryptedContext.Provider, {
20
- value: contextValue
21
- }, children);
22
- };
23
-
24
- export default /*#__PURE__*/React.memo(EncryptedProvider);