cozy-sharing 26.5.0 → 26.5.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,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.5.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.5.0...cozy-sharing@26.5.1) (2025-10-06)
7
+
8
+ ### Bug Fixes
9
+
10
+ - Handle missing owner in SharingDetailsModal :bug: ([6ce20bf](https://github.com/cozy/cozy-libs/commit/6ce20bf77390f0773ffaf831b060fd89fcf8bd9b))
11
+
6
12
  # [26.5.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.4.0...cozy-sharing@26.5.0) (2025-10-06)
7
13
 
8
14
  ### Features
@@ -59,12 +59,12 @@ export var SharingDetailsModal = function SharingDetailsModal(_ref) {
59
59
  className: styles['share-modal-content']
60
60
  }, /*#__PURE__*/React.createElement("div", {
61
61
  className: cx(styles['share-details'], isMobile ? 'u-ph-1 u-pt-1-half' : 'u-ph-2 u-pt-1')
62
- }, /*#__PURE__*/React.createElement(OwnerIdentity, {
62
+ }, owner ? /*#__PURE__*/React.createElement(OwnerIdentity, {
63
63
  name: t("".concat(documentType, ".share.sharedBy"), {
64
64
  name: getDisplayName(owner)
65
65
  }),
66
66
  url: owner.instance
67
- }), /*#__PURE__*/React.createElement("div", {
67
+ }) : null, /*#__PURE__*/React.createElement("div", {
68
68
  className: styles['share-details-created']
69
69
  }, t("".concat(documentType, ".share.details.createdAt"), {
70
70
  date: f(document.created_at || null, 'do LLLL yyyy')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-sharing",
3
- "version": "26.5.0",
3
+ "version": "26.5.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": "01e5edc2733656b0af94d193ae71e06238c90eec"
82
+ "gitHead": "d9725e74f7a7245a8f8abd3d2cf595202ff6bf56"
83
83
  }
@@ -40,12 +40,14 @@ export const SharingDetailsModal = ({
40
40
  isMobile ? 'u-ph-1 u-pt-1-half' : 'u-ph-2 u-pt-1'
41
41
  )}
42
42
  >
43
- <OwnerIdentity
44
- name={t(`${documentType}.share.sharedBy`, {
45
- name: getDisplayName(owner)
46
- })}
47
- url={owner.instance}
48
- />
43
+ {owner ? (
44
+ <OwnerIdentity
45
+ name={t(`${documentType}.share.sharedBy`, {
46
+ name: getDisplayName(owner)
47
+ })}
48
+ url={owner.instance}
49
+ />
50
+ ) : null}
49
51
  <div className={styles['share-details-created']}>
50
52
  {t(`${documentType}.share.details.createdAt`, {
51
53
  date: f(document.created_at || null, 'do LLLL yyyy')