cozy-sharing 30.0.0 → 30.0.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 +6 -0
- package/dist/components/ShareByEmail.spec.js +6 -6
- package/locales/en.json +3 -3
- package/locales/fr.json +3 -3
- package/locales/ru.json +3 -3
- package/locales/vi.json +3 -3
- package/package.json +2 -2
- package/src/components/ShareByEmail.spec.jsx +20 -32
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
|
+
## [30.0.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@30.0.0...cozy-sharing@30.0.1) (2026-03-25)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Small locales adjustments ([c743965](https://github.com/cozy/cozy-libs/commit/c7439654ddc291e452168f6635e82cf28c388d7c))
|
|
11
|
+
|
|
6
12
|
# [30.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@29.0.0...cozy-sharing@30.0.0) (2026-03-24)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
@@ -76,14 +76,14 @@ describe('ShareByEmailComponent', function () {
|
|
|
76
76
|
sharingDesc: sharingDesc
|
|
77
77
|
});
|
|
78
78
|
act(function () {
|
|
79
|
-
fireEvent.change(screen.getByPlaceholderText('Add contacts
|
|
79
|
+
fireEvent.change(screen.getByPlaceholderText('Add contacts'), {
|
|
80
80
|
target: {
|
|
81
81
|
value: 'quentin@cozycloud.cc'
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
act(function () {
|
|
86
|
-
fireEvent.keyPress(screen.getByPlaceholderText('Add contacts
|
|
86
|
+
fireEvent.keyPress(screen.getByPlaceholderText('Add contacts'), {
|
|
87
87
|
key: 'Enter',
|
|
88
88
|
code: 'Enter',
|
|
89
89
|
charCode: 13
|
|
@@ -141,14 +141,14 @@ describe('ShareByEmailComponent', function () {
|
|
|
141
141
|
}]
|
|
142
142
|
});
|
|
143
143
|
act(function () {
|
|
144
|
-
fireEvent.change(screen.getByPlaceholderText('Add contacts
|
|
144
|
+
fireEvent.change(screen.getByPlaceholderText('Add contacts'), {
|
|
145
145
|
target: {
|
|
146
146
|
value: 'john@gmail.com'
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
150
|
act(function () {
|
|
151
|
-
fireEvent.keyPress(screen.getByPlaceholderText('Add contacts
|
|
151
|
+
fireEvent.keyPress(screen.getByPlaceholderText('Add contacts'), {
|
|
152
152
|
key: 'Enter',
|
|
153
153
|
code: 'Enter',
|
|
154
154
|
charCode: 13
|
|
@@ -201,14 +201,14 @@ describe('ShareByEmailComponent', function () {
|
|
|
201
201
|
createContact: createContact
|
|
202
202
|
});
|
|
203
203
|
act(function () {
|
|
204
|
-
fireEvent.change(screen.getByPlaceholderText('Add contacts
|
|
204
|
+
fireEvent.change(screen.getByPlaceholderText('Add contacts'), {
|
|
205
205
|
target: {
|
|
206
206
|
value: 'quentin@cozycloud.cc'
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
210
|
act(function () {
|
|
211
|
-
fireEvent.keyPress(screen.getByPlaceholderText('Add contacts
|
|
211
|
+
fireEvent.keyPress(screen.getByPlaceholderText('Add contacts'), {
|
|
212
212
|
key: 'Enter',
|
|
213
213
|
code: 'Enter',
|
|
214
214
|
charCode: 13
|
package/locales/en.json
CHANGED
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
},
|
|
130
130
|
"shareByEmail": {
|
|
131
131
|
"subtitle": "By email",
|
|
132
|
-
"emailPlaceholder": "Add contacts
|
|
132
|
+
"emailPlaceholder": "Add contacts",
|
|
133
133
|
"send": "Send",
|
|
134
134
|
"singleContactSuccess": "You sent an invite to %{email}.",
|
|
135
135
|
"contactSuccess": "You sent an invite to %{smart_count} contact. |||| You sent an invite to %{smart_count} contacts.",
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
"shareTitle": "Share \"%{name}\"",
|
|
470
470
|
"successNotification": "Folder has been shared",
|
|
471
471
|
"errorNotification": "Error while sharing folder",
|
|
472
|
-
"addPeople": "Add people to the shared folder
|
|
472
|
+
"addPeople": "Add people to the shared folder",
|
|
473
473
|
"add": "Add"
|
|
474
474
|
},
|
|
475
475
|
"SharedDrive": {
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
"cancel": "Cancel",
|
|
481
481
|
"create": "Create",
|
|
482
482
|
"save": "Save",
|
|
483
|
-
"addPeople": "Add people to the shared drive
|
|
483
|
+
"addPeople": "Add people to the shared drive",
|
|
484
484
|
"successNotification": "Shared drive has been added",
|
|
485
485
|
"errorNotification": "Error during shared drive creation",
|
|
486
486
|
"successNotificationUpdate": "Your shared drive has been modified",
|
package/locales/fr.json
CHANGED
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
},
|
|
127
127
|
"shareByEmail": {
|
|
128
128
|
"subtitle": "Par email",
|
|
129
|
-
"emailPlaceholder": "Ajouter des contacts
|
|
129
|
+
"emailPlaceholder": "Ajouter des contacts",
|
|
130
130
|
"send": "Envoyer",
|
|
131
131
|
"singleContactSuccess": "Vous avez envoyé une invitation à %{email}.",
|
|
132
132
|
"contactSuccess": "Vous avez invité %{smart_count} contact. |||| Vous avez invité %{smart_count} contacts.",
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
"shareTitle": "Partager \"%{name}\"",
|
|
468
468
|
"successNotification": "Le dossier a été partagé",
|
|
469
469
|
"errorNotification": "Erreur lors du partage du dossier",
|
|
470
|
-
"addPeople": "Ajouter des utilisateurs au dossier partagé
|
|
470
|
+
"addPeople": "Ajouter des utilisateurs au dossier partagé",
|
|
471
471
|
"add": "Ajouter"
|
|
472
472
|
},
|
|
473
473
|
"SharedDrive": {
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
"cancel": "Annuler",
|
|
479
479
|
"create": "Créer",
|
|
480
480
|
"save": "Enregistrer",
|
|
481
|
-
"addPeople": "Ajouter des utilisateurs au drive partagé
|
|
481
|
+
"addPeople": "Ajouter des utilisateurs au drive partagé",
|
|
482
482
|
"successNotification": "Le drive partagé a été ajouté",
|
|
483
483
|
"errorNotification": "Erreur lors de la création du drive partagé",
|
|
484
484
|
"successNotificationUpdate": "Votre drive partagé a été modifié",
|
package/locales/ru.json
CHANGED
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
},
|
|
130
130
|
"shareByEmail": {
|
|
131
131
|
"subtitle": "По электронной почте",
|
|
132
|
-
"emailPlaceholder": "Добавить контакты
|
|
132
|
+
"emailPlaceholder": "Добавить контакты",
|
|
133
133
|
"send": "Отправить",
|
|
134
134
|
"singleContactSuccess": "Вы отправили приглашение на %{email}.",
|
|
135
135
|
"contactSuccess": "Вы отправили приглашение %{smart_count} контакту. |||| Вы отправили приглашение %{smart_count} контактам.",
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
"shareTitle": "Поделиться \"%{name}\"",
|
|
470
470
|
"successNotification": "Папка была расшарена",
|
|
471
471
|
"errorNotification": "Ошибка при расшаривании папки",
|
|
472
|
-
"addPeople": "Добавить людей в общую
|
|
472
|
+
"addPeople": "Добавить людей в общую папку",
|
|
473
473
|
"add": "Добавить"
|
|
474
474
|
},
|
|
475
475
|
"SharedDrive": {
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
"cancel": "Отмена",
|
|
481
481
|
"create": "Создать",
|
|
482
482
|
"save": "Сохранить",
|
|
483
|
-
"addPeople": "Добавить людей в общий
|
|
483
|
+
"addPeople": "Добавить людей в общий диск",
|
|
484
484
|
"successNotification": "Общий диск добавлен",
|
|
485
485
|
"errorNotification": "Ошибка при создании общего диска",
|
|
486
486
|
"successNotificationUpdate": "Ваш общий диск был изменён",
|
package/locales/vi.json
CHANGED
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
},
|
|
130
130
|
"shareByEmail": {
|
|
131
131
|
"subtitle": "Bằng email",
|
|
132
|
-
"emailPlaceholder": "Thêm liên hệ
|
|
132
|
+
"emailPlaceholder": "Thêm liên hệ",
|
|
133
133
|
"send": "Gửi",
|
|
134
134
|
"singleContactSuccess": "Bạn đã gửi lời mời đến %{email}.",
|
|
135
135
|
"contactSuccess": "Bạn đã gửi lời mời đến %{smart_count} liên hệ. |||| Bạn đã gửi lời mời đến %{smart_count} liên hệ.",
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
"shareTitle": "Chia sẻ \"%{name}\"",
|
|
468
468
|
"successNotification": "Thư mục đã được chia sẻ",
|
|
469
469
|
"errorNotification": "Lỗi khi chia sẻ thư mục",
|
|
470
|
-
"addPeople": "Thêm người vào thư mục được chia
|
|
470
|
+
"addPeople": "Thêm người vào thư mục được chia sẻ",
|
|
471
471
|
"add": "Thêm"
|
|
472
472
|
},
|
|
473
473
|
"SharedDrive": {
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
"cancel": "Hủy",
|
|
479
479
|
"create": "Tạo",
|
|
480
480
|
"save": "Lưu",
|
|
481
|
-
"addPeople": "Thêm người vào ổ đĩa được chia
|
|
481
|
+
"addPeople": "Thêm người vào ổ đĩa được chia sẻ",
|
|
482
482
|
"successNotification": "Ổ đĩa được chia sẻ đã được thêm",
|
|
483
483
|
"errorNotification": "Lỗi trong quá trình tạo ổ đĩa được chia sẻ",
|
|
484
484
|
"successNotificationUpdate": "Ổ đĩa được chia sẻ của bạn đã được sửa đổi",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "30.0.
|
|
3
|
+
"version": "30.0.1",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"sideEffects": [
|
|
85
85
|
"*.css"
|
|
86
86
|
],
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "32c42c7b2beb61697f0d0826b81d354f2de5d272"
|
|
88
88
|
}
|
|
@@ -72,20 +72,17 @@ describe('ShareByEmailComponent', () => {
|
|
|
72
72
|
setup({ sharingDesc })
|
|
73
73
|
|
|
74
74
|
act(() => {
|
|
75
|
-
fireEvent.change(screen.getByPlaceholderText('Add contacts
|
|
75
|
+
fireEvent.change(screen.getByPlaceholderText('Add contacts'), {
|
|
76
76
|
target: { value: 'quentin@cozycloud.cc' }
|
|
77
77
|
})
|
|
78
78
|
})
|
|
79
79
|
|
|
80
80
|
act(() => {
|
|
81
|
-
fireEvent.keyPress(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
charCode: 13
|
|
87
|
-
}
|
|
88
|
-
)
|
|
81
|
+
fireEvent.keyPress(screen.getByPlaceholderText('Add contacts'), {
|
|
82
|
+
key: 'Enter',
|
|
83
|
+
code: 'Enter',
|
|
84
|
+
charCode: 13
|
|
85
|
+
})
|
|
89
86
|
})
|
|
90
87
|
|
|
91
88
|
act(() => {
|
|
@@ -131,20 +128,17 @@ describe('ShareByEmailComponent', () => {
|
|
|
131
128
|
})
|
|
132
129
|
|
|
133
130
|
act(() => {
|
|
134
|
-
fireEvent.change(screen.getByPlaceholderText('Add contacts
|
|
131
|
+
fireEvent.change(screen.getByPlaceholderText('Add contacts'), {
|
|
135
132
|
target: { value: 'john@gmail.com' }
|
|
136
133
|
})
|
|
137
134
|
})
|
|
138
135
|
|
|
139
136
|
act(() => {
|
|
140
|
-
fireEvent.keyPress(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
charCode: 13
|
|
146
|
-
}
|
|
147
|
-
)
|
|
137
|
+
fireEvent.keyPress(screen.getByPlaceholderText('Add contacts'), {
|
|
138
|
+
key: 'Enter',
|
|
139
|
+
code: 'Enter',
|
|
140
|
+
charCode: 13
|
|
141
|
+
})
|
|
148
142
|
})
|
|
149
143
|
|
|
150
144
|
act(() => {
|
|
@@ -180,23 +174,17 @@ describe('ShareByEmailComponent', () => {
|
|
|
180
174
|
setup({ sharingDesc, createContact })
|
|
181
175
|
|
|
182
176
|
act(() => {
|
|
183
|
-
fireEvent.change(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
target: { value: 'quentin@cozycloud.cc' }
|
|
187
|
-
}
|
|
188
|
-
)
|
|
177
|
+
fireEvent.change(screen.getByPlaceholderText('Add contacts'), {
|
|
178
|
+
target: { value: 'quentin@cozycloud.cc' }
|
|
179
|
+
})
|
|
189
180
|
})
|
|
190
181
|
|
|
191
182
|
act(() => {
|
|
192
|
-
fireEvent.keyPress(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
charCode: 13
|
|
198
|
-
}
|
|
199
|
-
)
|
|
183
|
+
fireEvent.keyPress(screen.getByPlaceholderText('Add contacts'), {
|
|
184
|
+
key: 'Enter',
|
|
185
|
+
code: 'Enter',
|
|
186
|
+
charCode: 13
|
|
187
|
+
})
|
|
200
188
|
})
|
|
201
189
|
|
|
202
190
|
await waitFor(() => {
|