cozy-sharing 26.6.2 → 26.7.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
@@ -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
+ # [26.7.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.6.2...cozy-sharing@26.7.0) (2025-10-28)
7
+
8
+ ### Features
9
+
10
+ - Change signup link in public banner :sparkles: ([52c7dc0](https://github.com/cozy/cozy-libs/commit/52c7dc000b9455164a2d977de8aa64c6dd7cc41c))
11
+
6
12
  ## [26.6.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.6.1...cozy-sharing@26.6.2) (2025-10-20)
7
13
 
8
14
  ### 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-sharing",
3
- "version": "26.6.2",
3
+ "version": "26.7.0",
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": "5ae1ac7e1cae4b6cab7958798ef174ec1751fcaa"
82
+ "gitHead": "158085847b8f55dc52daf39fe0cc4f56bab6d958"
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)"