cozy-harvest-lib 38.0.0 → 38.0.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [38.0.2](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@38.0.1...cozy-harvest-lib@38.0.2) (2026-06-24)
7
+
8
+ **Note:** Version bump only for package cozy-harvest-lib
9
+
10
+ ## [38.0.1](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@38.0.0...cozy-harvest-lib@38.0.1) (2026-06-24)
11
+
12
+ **Note:** Version bump only for package cozy-harvest-lib
13
+
6
14
  # [38.0.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@37.0.51...cozy-harvest-lib@38.0.0) (2026-06-23)
7
15
 
8
16
  ### Features
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["icon"];
3
+ var _excluded = ["icon", "iconRef"],
4
+ _excluded2 = ["iconRef"];
4
5
 
5
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
7
 
@@ -10,6 +11,7 @@ var React = require('react');
10
11
 
11
12
  var Icon = function Icon(_ref) {
12
13
  var icon = _ref.icon,
14
+ iconRef = _ref.iconRef,
13
15
  props = _objectWithoutProperties(_ref, _excluded);
14
16
 
15
17
  return React.createElement('span', _objectSpread({
@@ -33,7 +35,10 @@ var proxyHandler = {
33
35
  get: function get(target, prop) {
34
36
  if (prop in target) return target[prop];
35
37
  if (prop === 'default') return target.Icon;
36
- return function IconMock(props) {
38
+ return function IconMock(_ref2) {
39
+ var iconRef = _ref2.iconRef,
40
+ props = _objectWithoutProperties(_ref2, _excluded2);
41
+
37
42
  return React.createElement('svg', _objectSpread({
38
43
  'data-mock-icon': prop
39
44
  }, props));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-harvest-lib",
3
- "version": "38.0.0",
3
+ "version": "38.0.2",
4
4
  "description": "Provides logic, modules and components for Cozy's harvest applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -76,7 +76,7 @@
76
76
  "cozy-tsconfig": "^2.0.0",
77
77
  "cozy-ui": "^138.1.0",
78
78
  "cozy-ui-plus": "^8.0.1",
79
- "cozy-viewer": "^29.0.1",
79
+ "cozy-viewer": "^29.0.3",
80
80
  "form-data": "4.0.0",
81
81
  "identity-obj-proxy": "3.0.0",
82
82
  "isomorphic-fetch": "^2.2.1",
@@ -114,5 +114,5 @@
114
114
  "twake-i18n": ">=0.3.0"
115
115
  },
116
116
  "sideEffects": false,
117
- "gitHead": "a1a87553d8ef58c42c0957574478ff3a29b48ea7"
117
+ "gitHead": "123d86f901bab40395f82907a287cbba46f9fcec"
118
118
  }
@@ -1,6 +1,6 @@
1
1
  const React = require('react')
2
2
 
3
- const Icon = ({ icon, ...props }) =>
3
+ const Icon = ({ icon, iconRef, ...props }) =>
4
4
  React.createElement('span', { 'data-icon': true, ...props })
5
5
 
6
6
  const Sprite = () => null
@@ -14,7 +14,7 @@ const proxyHandler = {
14
14
  get: function (target, prop) {
15
15
  if (prop in target) return target[prop]
16
16
  if (prop === 'default') return target.Icon
17
- return function IconMock(props) {
17
+ return function IconMock({ iconRef, ...props }) {
18
18
  return React.createElement('svg', { 'data-mock-icon': prop, ...props })
19
19
  }
20
20
  }