cozy-sharing 37.5.3 → 37.5.4

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,12 @@
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
+ ## [37.5.4](https://github.com/cozy/cozy-libs/compare/cozy-sharing@37.5.3...cozy-sharing@37.5.4) (2026-08-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **cozy-sharing:** Render the public banner button icons ([b4627f7](https://github.com/cozy/cozy-libs/commit/b4627f7689f73db592147f99a3baab11df612131))
11
+
6
12
  ## [37.5.3](https://github.com/cozy/cozy-libs/compare/cozy-sharing@37.5.2...cozy-sharing@37.5.3) (2026-08-31)
7
13
 
8
14
  **Note:** Version bump only for package cozy-sharing
@@ -1,2 +1,3 @@
1
- export var CozyHomeLinkIcon = 'cloud';
1
+ import { Cloud } from '@linagora/twake-icons';
2
+ export var CozyHomeLinkIcon = Cloud;
2
3
  export default CozyHomeLinkIcon;
@@ -2,6 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import PropTypes from 'prop-types';
3
3
  import React from 'react';
4
4
  import snarkdown from 'snarkdown';
5
+ import { Icon, SyncCozy, ToTheCloud } from '@linagora/twake-icons';
5
6
  import { useClient } from 'cozy-client';
6
7
  import flag from 'cozy-flags';
7
8
  import Alert from 'cozy-ui/transpiled/react/Alert';
@@ -74,13 +75,13 @@ var SharingBannerCozyToCozy = function SharingBannerCozyToCozy(_ref2) {
74
75
  label: t('Share.banner.sync_to_mine', {
75
76
  smart_count: 2
76
77
  }),
77
- icon: 'sync-cozy',
78
+ icon: SyncCozy,
78
79
  action: action
79
80
  } : {
80
81
  label: t('Share.banner.add_to_mine', {
81
82
  smart_count: 2
82
83
  }),
83
- icon: 'to-the-cloud',
84
+ icon: ToTheCloud,
84
85
  action: action
85
86
  };
86
87
  return /*#__PURE__*/React.createElement(Alert, {
@@ -90,7 +91,9 @@ var SharingBannerCozyToCozy = function SharingBannerCozyToCozy(_ref2) {
90
91
  action: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
91
92
  variant: "text",
92
93
  label: buttonOne.label,
93
- icon: buttonOne.icon,
94
+ startIcon: /*#__PURE__*/React.createElement(Icon, {
95
+ icon: buttonOne.icon
96
+ }),
94
97
  onClick: buttonOne.action
95
98
  }), /*#__PURE__*/React.createElement(Button, {
96
99
  variant: "text",
@@ -146,7 +149,9 @@ var SharingBannerByLink = function SharingBannerByLink(_ref3) {
146
149
  label: t('Share.create-cozy', {
147
150
  smart_count: 2
148
151
  }),
149
- icon: CozyHomeLinkIcon,
152
+ startIcon: /*#__PURE__*/React.createElement(Icon, {
153
+ icon: CozyHomeLinkIcon
154
+ }),
150
155
  href: HOME_LINK_HREF
151
156
  }), /*#__PURE__*/React.createElement(Button, {
152
157
  variant: "text",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-sharing",
3
- "version": "37.5.3",
3
+ "version": "37.5.4",
4
4
  "description": "Provides sharing login for React applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -59,7 +59,7 @@
59
59
  "cozy-intent": "^2.31.1",
60
60
  "cozy-minilog": "^3.10.1",
61
61
  "cozy-ui": "^140.5.0",
62
- "cozy-ui-plus": "^12.3.12",
62
+ "cozy-ui-plus": "^12.3.13",
63
63
  "jest": "30.3.0",
64
64
  "jest-environment-jsdom": "30.3.0",
65
65
  "react": "16.12.0",
@@ -85,5 +85,5 @@
85
85
  "sideEffects": [
86
86
  "*.css"
87
87
  ],
88
- "gitHead": "9a29fb9929ba6bc8203172785e5d803a2b04f7db"
88
+ "gitHead": "0257cf0ecb129fec4b9d3f99e3a3fbb318429112"
89
89
  }
@@ -1,3 +1,5 @@
1
- export const CozyHomeLinkIcon = 'cloud'
1
+ import { Cloud } from '@linagora/twake-icons'
2
+
3
+ export const CozyHomeLinkIcon = Cloud
2
4
 
3
5
  export default CozyHomeLinkIcon
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types'
2
2
  import React from 'react'
3
3
  import snarkdown from 'snarkdown'
4
4
 
5
+ import { Icon, SyncCozy, ToTheCloud } from '@linagora/twake-icons'
5
6
  import { useClient } from 'cozy-client'
6
7
  import flag from 'cozy-flags'
7
8
  import Alert from 'cozy-ui/transpiled/react/Alert'
@@ -60,12 +61,12 @@ const SharingBannerCozyToCozy = ({
60
61
  const buttonOne = isSharingShortcutCreated
61
62
  ? {
62
63
  label: t('Share.banner.sync_to_mine', { smart_count: 2 }),
63
- icon: 'sync-cozy',
64
+ icon: SyncCozy,
64
65
  action
65
66
  }
66
67
  : {
67
68
  label: t('Share.banner.add_to_mine', { smart_count: 2 }),
68
- icon: 'to-the-cloud',
69
+ icon: ToTheCloud,
69
70
  action
70
71
  }
71
72
  return (
@@ -78,7 +79,7 @@ const SharingBannerCozyToCozy = ({
78
79
  <Button
79
80
  variant="text"
80
81
  label={buttonOne.label}
81
- icon={buttonOne.icon}
82
+ startIcon={<Icon icon={buttonOne.icon} />}
82
83
  onClick={buttonOne.action}
83
84
  />
84
85
  <Button
@@ -138,7 +139,7 @@ const SharingBannerByLink = ({ onClose }) => {
138
139
  component="a"
139
140
  variant="text"
140
141
  label={t('Share.create-cozy', { smart_count: 2 })}
141
- icon={CozyHomeLinkIcon}
142
+ startIcon={<Icon icon={CozyHomeLinkIcon} />}
142
143
  href={HOME_LINK_HREF}
143
144
  />
144
145
  <Button