cozy-sharing 26.6.2 → 26.7.1
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,16 @@
|
|
|
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
|
+
## [26.7.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.7.0...cozy-sharing@26.7.1) (2025-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package cozy-sharing
|
|
9
|
+
|
|
10
|
+
# [26.7.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.6.2...cozy-sharing@26.7.0) (2025-10-28)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- Change signup link in public banner :sparkles: ([52c7dc0](https://github.com/cozy/cozy-libs/commit/52c7dc000b9455164a2d977de8aa64c6dd7cc41c))
|
|
15
|
+
|
|
6
16
|
## [26.6.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.6.1...cozy-sharing@26.6.2) (2025-10-20)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
|
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import snarkdown from 'snarkdown';
|
|
5
5
|
import { useClient } from 'cozy-client';
|
|
6
|
+
import flag from 'cozy-flags';
|
|
6
7
|
import Banner from 'cozy-ui/transpiled/react/Banner';
|
|
7
8
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
8
9
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
@@ -10,7 +11,6 @@ import CozyHomeLinkIcon from './CozyHomeLinkIcon';
|
|
|
10
11
|
var styles = {
|
|
11
12
|
"bannermarkdown": "publicBanner__bannermarkdown___1dR1E"
|
|
12
13
|
};
|
|
13
|
-
var HOME_LINK_HREF = 'https://manager.cozycloud.cc/cozy/create';
|
|
14
14
|
|
|
15
15
|
var getPublicNameFromSharing = function getPublicNameFromSharing(sharing) {
|
|
16
16
|
return sharing.attributes.members[0].public_name;
|
|
@@ -122,6 +122,7 @@ var SharingBannerByLink = function SharingBannerByLink(_ref3) {
|
|
|
122
122
|
var _useI18n4 = useI18n(),
|
|
123
123
|
t = _useI18n4.t;
|
|
124
124
|
|
|
125
|
+
var HOME_LINK_HREF = flag('signup.url');
|
|
125
126
|
return /*#__PURE__*/React.createElement(Banner, {
|
|
126
127
|
bgcolor: "var(--defaultBackgroundColor)",
|
|
127
128
|
text: /*#__PURE__*/React.createElement(SharingBannerByLinkText, null),
|
package/jest.config.js
CHANGED
|
@@ -20,7 +20,9 @@ module.exports = {
|
|
|
20
20
|
// identity-obj-proxy module is installed by cozy-scripts
|
|
21
21
|
'.styl$': 'identity-obj-proxy',
|
|
22
22
|
'^cozy-logger$': 'cozy-logger/dist/index.js',
|
|
23
|
-
'^cozy-client$': 'cozy-client/dist/index.js'
|
|
23
|
+
'^cozy-client$': '<rootDir>/node_modules/cozy-client/dist/index.js',
|
|
24
|
+
'^cozy-client/dist/types$':
|
|
25
|
+
'<rootDir>/node_modules/cozy-client/dist/types.js'
|
|
24
26
|
},
|
|
25
27
|
transformIgnorePatterns: [
|
|
26
28
|
'<rootDir>/node_modules/(?!(cozy-ui|cozy-harvest-lib))'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.7.1",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"sideEffects": [
|
|
80
80
|
"*.css"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "f1f3c0b415dd50a3f4b4c7a3dc7dcb143727078b"
|
|
83
83
|
}
|
|
@@ -3,6 +3,7 @@ import React from 'react'
|
|
|
3
3
|
import snarkdown from 'snarkdown'
|
|
4
4
|
|
|
5
5
|
import { useClient } from 'cozy-client'
|
|
6
|
+
import flag from 'cozy-flags'
|
|
6
7
|
import Banner from 'cozy-ui/transpiled/react/Banner'
|
|
7
8
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
8
9
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
@@ -10,8 +11,6 @@ import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
|
10
11
|
import CozyHomeLinkIcon from './CozyHomeLinkIcon'
|
|
11
12
|
import styles from '../../../styles/publicBanner.styl'
|
|
12
13
|
|
|
13
|
-
const HOME_LINK_HREF = 'https://manager.cozycloud.cc/cozy/create'
|
|
14
|
-
|
|
15
14
|
const getPublicNameFromSharing = sharing =>
|
|
16
15
|
sharing.attributes.members[0].public_name
|
|
17
16
|
|
|
@@ -112,6 +111,9 @@ const SharingBannerByLinkText = () => {
|
|
|
112
111
|
|
|
113
112
|
const SharingBannerByLink = ({ onClose }) => {
|
|
114
113
|
const { t } = useI18n()
|
|
114
|
+
|
|
115
|
+
const HOME_LINK_HREF = flag('signup.url')
|
|
116
|
+
|
|
115
117
|
return (
|
|
116
118
|
<Banner
|
|
117
119
|
bgcolor="var(--defaultBackgroundColor)"
|