cozy-sharing 26.5.2 → 26.6.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.6.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.5.2...cozy-sharing@26.6.0) (2025-10-09)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- Toggle sharing deadline by flag :sparkles: ([69436d1](https://github.com/cozy/cozy-libs/commit/69436d1eab1f76c22c5bb5e2fed56eac31ba558e))
|
|
11
|
+
|
|
6
12
|
## [26.5.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.5.1...cozy-sharing@26.5.2) (2025-10-07)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -5,6 +5,7 @@ import { addDays } from 'date-fns';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
import { generateWebLink, useClient } from 'cozy-client';
|
|
8
|
+
import flag from 'cozy-flags';
|
|
8
9
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
9
10
|
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
10
11
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
@@ -69,7 +70,7 @@ export var ShareRestrictionModal = function ShareRestrictionModal(_ref) {
|
|
|
69
70
|
selectedDate = _useState10[0],
|
|
70
71
|
setSelectedDate = _useState10[1];
|
|
71
72
|
|
|
72
|
-
var _useState11 = useState(permissions.length > 0 ? hasExpiresDate :
|
|
73
|
+
var _useState11 = useState(permissions.length > 0 ? hasExpiresDate : flag('sharing.date-toggle.enabled')),
|
|
73
74
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
74
75
|
dateToggle = _useState12[0],
|
|
75
76
|
setDateToggle = _useState12[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.6.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": "
|
|
82
|
+
"gitHead": "b143c00a84179ff2802d07ffce82cf46c0078e3a"
|
|
83
83
|
}
|
|
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import React, { useState } from 'react'
|
|
4
4
|
|
|
5
5
|
import { generateWebLink, useClient } from 'cozy-client'
|
|
6
|
+
import flag from 'cozy-flags'
|
|
6
7
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
7
8
|
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs'
|
|
8
9
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
@@ -59,7 +60,9 @@ export const ShareRestrictionModal = ({ file, onClose }) => {
|
|
|
59
60
|
|
|
60
61
|
const [selectedDate, setSelectedDate] = useState(defaultDate)
|
|
61
62
|
const [dateToggle, setDateToggle] = useState(
|
|
62
|
-
permissions.length > 0
|
|
63
|
+
permissions.length > 0
|
|
64
|
+
? hasExpiresDate
|
|
65
|
+
: flag('sharing.date-toggle.enabled')
|
|
63
66
|
)
|
|
64
67
|
const [passwordToggle, setPasswordToggle] = useState(hasPassword)
|
|
65
68
|
const [editingRights, setEditingRights] = useState(
|