cozy-sharing 5.0.0 → 6.0.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.
Files changed (115) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/SharedRecipients.js +1 -1
  3. package/dist/SharedStatus.js +1 -1
  4. package/dist/SharingBanner/hooks/useSharingInfos.js +1 -1
  5. package/dist/SharingDetailsModal.js +1 -1
  6. package/dist/SharingOwnerAvatar.js +1 -1
  7. package/dist/SharingProvider.js +21 -8
  8. package/dist/components/ContactSuggestion.js +15 -27
  9. package/dist/components/EditLinkPermissionDialog.js +72 -0
  10. package/dist/components/EditLinkPermissionDialog.spec.js +48 -0
  11. package/dist/components/EditableSharingModal.js +15 -62
  12. package/dist/components/{AvatarPlusX.js → Recipient/AvatarPlusX.js} +1 -1
  13. package/dist/components/{Identity.js → Recipient/Identity.js} +17 -16
  14. package/dist/components/Recipient/LinkRecipient.js +72 -0
  15. package/dist/components/Recipient/LinkRecipientPermissions.js +159 -0
  16. package/dist/components/Recipient/OwnerIdentity.js +44 -0
  17. package/dist/components/Recipient/Recipient.js +72 -0
  18. package/dist/components/{Recipient.spec.js → Recipient/Recipient.spec.js} +4 -45
  19. package/dist/components/Recipient/RecipientAvatar.js +33 -0
  20. package/dist/components/Recipient/RecipientConfirm.js +63 -0
  21. package/dist/components/Recipient/RecipientPermissions.js +126 -0
  22. package/dist/components/Recipient/RecipientPlusX.js +45 -0
  23. package/dist/components/Recipient/RecipientStatus.js +64 -0
  24. package/dist/components/Recipient/RecipientWithoutStatus.js +45 -0
  25. package/dist/components/Recipient/RecipientsAvatars.js +100 -0
  26. package/dist/components/{RecipientsAvatars.spec.js → Recipient/RecipientsAvatars.spec.js} +43 -2
  27. package/dist/components/{recipient.styl → Recipient/recipient.styl} +6 -2
  28. package/dist/components/ShareAutosuggest.js +176 -252
  29. package/dist/components/ShareAutosuggest.spec.js +3 -2
  30. package/dist/components/ShareByEmail.js +142 -193
  31. package/dist/components/ShareByEmail.spec.js +42 -23
  32. package/dist/components/ShareByLink.js +251 -357
  33. package/dist/components/ShareDialogCozyToCozy.js +16 -4
  34. package/dist/components/ShareDialogCozyToCozy.spec.js +12 -1
  35. package/dist/components/ShareDialogOnlyByLink.js +23 -10
  36. package/dist/components/ShareDialogTwoStepsConfirmationContainer.js +7 -7
  37. package/dist/components/ShareModal.js +5 -1
  38. package/dist/components/ShareRecipientsInput.js +44 -128
  39. package/dist/components/WhoHasAccess.js +43 -5
  40. package/dist/components/WhoHasAccessLight.js +3 -19
  41. package/dist/components/autosuggest.styl +21 -36
  42. package/dist/helpers/documentType.js +6 -0
  43. package/dist/helpers/hooks.js +8 -1
  44. package/dist/helpers/link.js +5 -0
  45. package/dist/helpers/permissions.js +8 -0
  46. package/dist/helpers/recipients.js +24 -0
  47. package/dist/helpers/sharings.js +72 -53
  48. package/dist/helpers/synchronousJobQueue.js +67 -0
  49. package/dist/helpers/synchronousJobQueue.spec.js +97 -0
  50. package/dist/index.js +2 -1
  51. package/dist/queries/queries.js +72 -0
  52. package/dist/share.styl +0 -15
  53. package/dist/stylesheet.css +67 -92
  54. package/locales/en.json +29 -41
  55. package/locales/fr.json +26 -39
  56. package/package.json +10 -10
  57. package/src/SharedRecipients.jsx +1 -1
  58. package/src/SharedStatus.jsx +1 -1
  59. package/src/SharingBanner/hooks/useSharingInfos.jsx +1 -1
  60. package/src/SharingDetailsModal.jsx +1 -1
  61. package/src/SharingOwnerAvatar.jsx +1 -1
  62. package/src/SharingProvider.jsx +17 -4
  63. package/src/components/ContactSuggestion.jsx +25 -10
  64. package/src/components/EditLinkPermissionDialog.jsx +89 -0
  65. package/src/components/EditLinkPermissionDialog.spec.jsx +52 -0
  66. package/src/components/EditableSharingModal.jsx +58 -100
  67. package/src/components/{AvatarPlusX.jsx → Recipient/AvatarPlusX.jsx} +1 -1
  68. package/src/components/{Identity.jsx → Recipient/Identity.jsx} +0 -0
  69. package/src/components/Recipient/LinkRecipient.jsx +59 -0
  70. package/src/components/Recipient/LinkRecipientPermissions.jsx +157 -0
  71. package/src/components/Recipient/OwnerIdentity.jsx +20 -0
  72. package/src/components/Recipient/Recipient.jsx +79 -0
  73. package/src/components/{Recipient.spec.jsx → Recipient/Recipient.spec.jsx} +4 -42
  74. package/src/components/Recipient/RecipientAvatar.jsx +38 -0
  75. package/src/components/Recipient/RecipientConfirm.jsx +37 -0
  76. package/src/components/Recipient/RecipientPermissions.jsx +114 -0
  77. package/src/components/Recipient/RecipientPlusX.jsx +28 -0
  78. package/src/components/Recipient/RecipientStatus.jsx +48 -0
  79. package/src/components/Recipient/RecipientWithoutStatus.jsx +21 -0
  80. package/src/components/Recipient/RecipientsAvatars.jsx +108 -0
  81. package/src/components/{RecipientsAvatars.spec.jsx → Recipient/RecipientsAvatars.spec.jsx} +43 -2
  82. package/src/components/{recipient.styl → Recipient/recipient.styl} +6 -2
  83. package/src/components/ShareAutosuggest.jsx +136 -127
  84. package/src/components/ShareAutosuggest.spec.jsx +12 -8
  85. package/src/components/ShareByEmail.jsx +65 -90
  86. package/src/components/ShareByEmail.spec.jsx +39 -11
  87. package/src/components/ShareByLink.jsx +146 -238
  88. package/src/components/ShareDialogCozyToCozy.jsx +14 -2
  89. package/src/components/ShareDialogCozyToCozy.spec.jsx +8 -1
  90. package/src/components/ShareDialogOnlyByLink.jsx +30 -13
  91. package/src/components/ShareDialogTwoStepsConfirmationContainer.jsx +5 -5
  92. package/src/components/ShareModal.jsx +5 -1
  93. package/src/components/ShareRecipientsInput.jsx +30 -44
  94. package/src/components/WhoHasAccess.jsx +85 -27
  95. package/src/components/WhoHasAccessLight.jsx +2 -1
  96. package/src/components/__snapshots__/ContactSuggestion.spec.jsx.snap +915 -132
  97. package/src/components/__snapshots__/ShareRecipientsInput.spec.jsx.snap +86 -102
  98. package/src/components/autosuggest.styl +21 -36
  99. package/src/helpers/documentType.js +6 -0
  100. package/src/helpers/hooks.js +11 -1
  101. package/src/helpers/link.js +4 -0
  102. package/src/helpers/permissions.js +15 -0
  103. package/src/helpers/recipients.js +21 -0
  104. package/src/helpers/sharings.js +15 -12
  105. package/src/helpers/synchronousJobQueue.js +22 -0
  106. package/src/helpers/synchronousJobQueue.spec.js +75 -0
  107. package/src/index.jsx +1 -0
  108. package/src/queries/queries.js +75 -0
  109. package/src/share.styl +0 -15
  110. package/dist/SharingBanner/helpers/queries.js +0 -12
  111. package/dist/components/ContactsAndGroupsDataLoader.js +0 -50
  112. package/dist/components/Recipient.js +0 -450
  113. package/src/SharingBanner/helpers/queries.js +0 -14
  114. package/src/components/ContactsAndGroupsDataLoader.jsx +0 -30
  115. package/src/components/Recipient.jsx +0 -415
@@ -1187,10 +1187,6 @@ html,
1187
1187
  .share__share-modal-content___XTtaK .share__coz-form-group___1PLAZ {
1188
1188
  flex-shrink: 0;
1189
1189
  }
1190
- .share__share-modal-content___XTtaK .share__coz-form-label___31jb0 {
1191
- padding-top: 0;
1192
- margin-top: 0;
1193
- }
1194
1190
  .share__aligned-dropdown-button___CeTDs {
1195
1191
  margin-right: -1rem;
1196
1192
  }
@@ -1243,19 +1239,6 @@ html,
1243
1239
  .react-select__option:active {
1244
1240
  background-color: var(--paleGrey) !important;
1245
1241
  }
1246
- @media (max-width: 32em) {
1247
- .react-select__menu {
1248
- width: 100% !important;
1249
- }
1250
- }
1251
- @media (max-width: 32em) {
1252
- .share__share-type-control___KcpDf {
1253
- flex-direction: column;
1254
- }
1255
- .share__share-type-control___KcpDf .share__select-wrapper___3FfiH {
1256
- margin-bottom: 0.5rem;
1257
- }
1258
- }
1259
1242
  input[type=text] {
1260
1243
  width: 100%;
1261
1244
  }
@@ -1281,11 +1264,21 @@ input[type=text] {
1281
1264
  line-height: 1.5;
1282
1265
  color: var(--coolGrey);
1283
1266
  }
1267
+ /* imported from CozyPassFingerprintDialogContent.styl */
1268
+
1269
+ .CozyPassFingerprintDialogContent__cozy-pass-fingerprint-modal__fingerprint___2O7dO {
1270
+ padding: 16px;
1271
+ margin: 24px 0;
1272
+ text-align: center;
1273
+ }
1274
+ .CozyPassFingerprintDialogContent__cozy-pass-fingerprint-modal__fingerprint___2O7dO p {
1275
+ color: var(--secondaryColor);
1276
+ }
1284
1277
  /*
1285
1278
  imported from recipient.styl
1286
1279
  */
1287
1280
 
1288
- @-moz-keyframes recipient__spin___2cogO {
1281
+ @-moz-keyframes recipient__spin___3_Uja {
1289
1282
  from {
1290
1283
  transform: rotate(0deg);
1291
1284
  }
@@ -1293,7 +1286,7 @@ input[type=text] {
1293
1286
  transform: rotate(359deg);
1294
1287
  }
1295
1288
  }
1296
- @-webkit-keyframes recipient__spin___2cogO {
1289
+ @-webkit-keyframes recipient__spin___3_Uja {
1297
1290
  from {
1298
1291
  transform: rotate(0deg);
1299
1292
  }
@@ -1301,7 +1294,7 @@ input[type=text] {
1301
1294
  transform: rotate(359deg);
1302
1295
  }
1303
1296
  }
1304
- @-o-keyframes recipient__spin___2cogO {
1297
+ @-o-keyframes recipient__spin___3_Uja {
1305
1298
  from {
1306
1299
  transform: rotate(0deg);
1307
1300
  }
@@ -1309,7 +1302,7 @@ input[type=text] {
1309
1302
  transform: rotate(359deg);
1310
1303
  }
1311
1304
  }
1312
- @keyframes recipient__spin___2cogO {
1305
+ @keyframes recipient__spin___3_Uja {
1313
1306
  from {
1314
1307
  transform: rotate(0deg);
1315
1308
  }
@@ -1317,7 +1310,7 @@ input[type=text] {
1317
1310
  transform: rotate(359deg);
1318
1311
  }
1319
1312
  }
1320
- @-moz-keyframes recipient__shake___3lxk5 {
1313
+ @-moz-keyframes recipient__shake___TrWC0 {
1321
1314
  10%, 90% {
1322
1315
  transform: translate3d(-1px, 0, 0);
1323
1316
  }
@@ -1331,7 +1324,7 @@ input[type=text] {
1331
1324
  transform: translate3d(4px, 0, 0);
1332
1325
  }
1333
1326
  }
1334
- @-webkit-keyframes recipient__shake___3lxk5 {
1327
+ @-webkit-keyframes recipient__shake___TrWC0 {
1335
1328
  10%, 90% {
1336
1329
  transform: translate3d(-1px, 0, 0);
1337
1330
  }
@@ -1345,7 +1338,7 @@ input[type=text] {
1345
1338
  transform: translate3d(4px, 0, 0);
1346
1339
  }
1347
1340
  }
1348
- @-o-keyframes recipient__shake___3lxk5 {
1341
+ @-o-keyframes recipient__shake___TrWC0 {
1349
1342
  10%, 90% {
1350
1343
  transform: translate3d(-1px, 0, 0);
1351
1344
  }
@@ -1359,7 +1352,7 @@ input[type=text] {
1359
1352
  transform: translate3d(4px, 0, 0);
1360
1353
  }
1361
1354
  }
1362
- @keyframes recipient__shake___3lxk5 {
1355
+ @keyframes recipient__shake___TrWC0 {
1363
1356
  10%, 90% {
1364
1357
  transform: translate3d(-1px, 0, 0);
1365
1358
  }
@@ -1897,7 +1890,7 @@ input[type=text] {
1897
1890
  --invertedBackgroundColor: #297ef2;
1898
1891
  --invertedContrastTextColor: #fff;
1899
1892
  }
1900
- .recipient__CozyTheme--inverted___2anJa {
1893
+ .recipient__CozyTheme--inverted___2Hb9c {
1901
1894
  --primaryTextColor: #fff;
1902
1895
  --secondaryTextColor: rgba(255,255,255,0.64);
1903
1896
  --disabledTextColor: rgba(255,255,255,0.4);
@@ -2069,7 +2062,7 @@ html {
2069
2062
  --monza: #dd0505;
2070
2063
  }
2071
2064
  html,
2072
- .recipient__CozyTheme--normal___994FQ {
2065
+ .recipient__CozyTheme--normal___3WdEw {
2073
2066
  /*
2074
2067
  Primary colors
2075
2068
 
@@ -2292,88 +2285,83 @@ html,
2292
2285
  --genericRecipientBackground: var(--slateGrey);
2293
2286
  --genericRecipientColor: var(--white);
2294
2287
  }
2295
- .recipient__recipient___2FlkK {
2288
+ .recipient__recipient___2zWmH {
2296
2289
  display: flex;
2297
2290
  flex-direction: row;
2298
2291
  align-items: center;
2299
2292
  }
2300
2293
  @media (max-width: 48rem) {
2301
- .recipient__recipient___2FlkK {
2294
+ .recipient__recipient___2zWmH {
2302
2295
  align-items: flex-start;
2303
2296
  }
2304
2297
  }
2305
- .recipient__recipients-list-light___1Rt5q .recipient__recipient___2FlkK {
2298
+ .recipient__recipients-list-light___1-dkI .recipient__recipient___2zWmH {
2306
2299
  margin: 1rem 0;
2307
2300
  }
2308
- .recipient__recipients-list-light___1Rt5q + .recipient__recipient___2FlkK {
2301
+ .recipient__recipients-list-light___1-dkI + .recipient__recipient___2zWmH {
2309
2302
  margin-top: 1rem;
2310
2303
  }
2311
- .recipient__recipient-idents___3-fjp {
2304
+ .recipient__recipient-idents___3F3zL {
2312
2305
  flex: 1 1 auto;
2313
2306
  overflow: hidden;
2314
2307
  text-overflow: ellipsis;
2315
2308
  }
2316
- .recipient__recipient-status-icon___J4sIm {
2309
+ .recipient__recipient-status-icon___1GvS9 {
2317
2310
  margin-right: 0.25rem;
2318
2311
  }
2319
- .recipient__recipient-user___2cNHW,
2320
- .recipient__recipient-details___4SMW5 {
2312
+ .recipient__recipient-user___3hOyK,
2313
+ .recipient__recipient-details___3fmFE {
2321
2314
  text-overflow: ellipsis;
2322
2315
  overflow: hidden;
2323
2316
  white-space: nowrap;
2324
2317
  line-height: 1.3;
2325
2318
  }
2326
- .recipient__recipient-user___2cNHW {
2319
+ .recipient__recipient-user___3hOyK {
2327
2320
  font-size: 1rem;
2328
2321
  font-weight: bold;
2329
2322
  }
2330
- .recipient__recipient-details___4SMW5 {
2323
+ .recipient__recipient-details___3fmFE {
2331
2324
  font-size: 0.875rem;
2332
2325
  color: var(--coolGrey);
2333
2326
  }
2334
- .recipient__avatar___pPmxN {
2327
+ .recipient__avatar___2NIEb {
2335
2328
  display: flex;
2336
2329
  flex-direction: row;
2337
2330
  align-items: center;
2338
2331
  }
2339
- .recipient__avatar___pPmxN .recipient__recipient-user___2cNHW {
2332
+ .recipient__avatar___2NIEb .recipient__recipient-user___3hOyK {
2340
2333
  font-size: 1.125rem;
2341
2334
  }
2342
- .recipient__recipients-avatars___2Qth2 {
2335
+ .recipient__link-recipient-icon-circle___3gmgy {
2336
+ border: 1px solid var(--borderMainColor);
2337
+ background-color: unset;
2338
+ color: unset;
2339
+ }
2340
+ .recipient__recipients-avatars___MXhiL {
2343
2341
  display: inline-flex;
2344
2342
  flex-direction: row-reverse;
2345
2343
  margin-right: 0.5rem;
2346
2344
  }
2347
- .recipient__recipients-avatars___2Qth2.recipient__--interactive___1V89N {
2345
+ .recipient__recipients-avatars___MXhiL.recipient__--interactive___1gDjM {
2348
2346
  cursor: pointer;
2349
2347
  }
2350
- .recipient__recipients-avatars--link___12LyR,
2351
- .recipient__recipients-avatars--plusX___28dFs,
2352
- .recipient__recipients-avatars--avatar___15hBo {
2348
+ .recipient__recipients-avatars--link___2s02h,
2349
+ .recipient__recipients-avatars--plusX___WRllr,
2350
+ .recipient__recipients-avatars--avatar___3j3_A {
2353
2351
  border-width: 2px;
2354
2352
  border-style: solid;
2355
2353
  border-color: var(--white);
2356
2354
  }
2357
- .recipient__recipients-avatars--link___12LyR {
2355
+ .recipient__recipients-avatars--link___2s02h {
2358
2356
  background-color: var(--genericRecipientBackground);
2359
2357
  }
2360
- .recipient__recipients-avatars--link___12LyR svg {
2358
+ .recipient__recipients-avatars--link___2s02h svg {
2361
2359
  fill: var(--genericRecipientColor);
2362
2360
  }
2363
- .recipient__recipients-avatars--plusX___28dFs,
2364
- .recipient__recipients-avatars--avatar___15hBo {
2361
+ .recipient__recipients-avatars--plusX___WRllr,
2362
+ .recipient__recipients-avatars--avatar___3j3_A {
2365
2363
  margin-right: -0.6rem;
2366
2364
  }
2367
- /* imported from CozyPassFingerprintDialogContent.styl */
2368
-
2369
- .CozyPassFingerprintDialogContent__cozy-pass-fingerprint-modal__fingerprint___2O7dO {
2370
- padding: 16px;
2371
- margin: 24px 0;
2372
- text-align: center;
2373
- }
2374
- .CozyPassFingerprintDialogContent__cozy-pass-fingerprint-modal__fingerprint___2O7dO p {
2375
- color: var(--secondaryColor);
2376
- }
2377
2365
  /*
2378
2366
  imported from autosuggest.styl
2379
2367
  */
@@ -2795,13 +2783,12 @@ html {
2795
2783
  box-sizing: border-box;
2796
2784
  position: absolute;
2797
2785
  top: 100%;
2798
- margin-top: 0.0625rem;
2786
+ margin-top: 0.25rem;
2799
2787
  z-index: 10;
2800
2788
  width: 100%;
2801
- max-height: 10.625rem;
2802
- overflow: auto;
2803
- border: 0.0625rem solid var(--silver);
2804
- border-radius: 0.25rem;
2789
+ overflow: hidden;
2790
+ box-shadow: 0px 0px 0px 0.5px rgba(29,33,42,0.12), 0px 2px 4px rgba(29,33,42,0.079), 0px 4px 16px rgba(29,33,42,0.06);
2791
+ border-radius: 0.5rem;
2805
2792
  background: var(--white);
2806
2793
  display: none;
2807
2794
  }
@@ -2812,60 +2799,48 @@ html {
2812
2799
  width: 100%;
2813
2800
  }
2814
2801
  .autosuggest__suggestionsList___211Pt {
2815
- margin: 0;
2816
- padding: 0.625rem 0;
2802
+ max-height: 9rem;
2803
+ overflow: auto;
2804
+ margin: 0 -1px 0 0;
2805
+ padding: 0.5rem 0;
2817
2806
  list-style: none;
2818
2807
  }
2819
- .autosuggest__suggestion___NZSt5 {
2820
- padding: 0 0.625rem 0.625rem 0.625rem;
2821
- }
2822
2808
  .autosuggest__suggestionHighlighted___MbW8F {
2823
- background: var(--paleGrey);
2809
+ background: var(--actionColorSelected);
2824
2810
  }
2825
2811
  .autosuggest__recipientsContainer___15b1_ {
2826
2812
  display: flex;
2827
2813
  flex-wrap: wrap;
2828
- padding: 0.2rem 0.5rem;
2829
- border-radius: 0.125rem;
2830
- border: 1px solid var(--silver);
2814
+ padding: 0.25rem 0.5rem;
2815
+ border-radius: 0.25rem;
2816
+ border: 1px solid var(--borderMainColor);
2817
+ min-height: 2.5rem;
2831
2818
  max-height: 6.75rem;
2832
2819
  overflow: auto;
2833
2820
  }
2834
2821
  .autosuggest__recipientsContainer___15b1_:hover {
2835
- border: 0.0625rem solid var(--coolGrey);
2822
+ border: 1px solid var(--coolGrey);
2823
+ }
2824
+ .autosuggest__recipientsContainer___15b1_:focus-within {
2825
+ border: 1px solid var(--primaryColor);
2836
2826
  }
2837
2827
  .autosuggest__recipientsContainer___15b1_ input[type=email] {
2838
2828
  width: auto;
2839
2829
  flex-grow: 1;
2840
2830
  padding: 0.5rem 0;
2831
+ margin: auto;
2841
2832
  border: none;
2842
2833
  }
2843
2834
  .autosuggest__recipientsContainer___15b1_ input[type=email]:hover,
2844
2835
  .autosuggest__recipientsContainer___15b1_ input[type=email]:focus {
2845
2836
  border: none;
2846
2837
  }
2838
+ .autosuggest__recipientsContainer___15b1_ input[type=email]:only-child {
2839
+ padding: 0.25rem 0.5rem;
2840
+ }
2847
2841
  .autosuggest__recipientChip___oRxU- {
2848
- display: inline-flex;
2849
- align-items: center;
2850
- flex: 0 0 auto;
2851
- background-color: var(--paleGrey);
2852
- border-radius: 0.125rem;
2853
- height: 1.75rem;
2854
- line-height: 1.75rem;
2855
- padding: 0 0.5rem;
2856
2842
  margin: 0.25rem 0.5rem 0.25rem 0;
2857
2843
  }
2858
- .autosuggest__removeRecipient___2wV6s {
2859
- border: 0;
2860
- background-color: transparent;
2861
- padding: 0.15rem 0 0 0;
2862
- margin-left: 0.3rem;
2863
- cursor: pointer;
2864
- color: var(--coolGrey);
2865
- }
2866
- .autosuggest__removeRecipient___2wV6s:hover {
2867
- color: var(--slateGrey);
2868
- }
2869
2844
  /*
2870
2845
  imported from button.styl
2871
2846
  */
package/locales/en.json CHANGED
@@ -14,8 +14,8 @@
14
14
  "unregistered": "Error"
15
15
  },
16
16
  "type": {
17
- "one-way": "Can View",
18
- "two-way": "Can Change",
17
+ "one-way": "Can view",
18
+ "two-way": "Can change",
19
19
  "desc": {
20
20
  "one-way": "Contacts can view, download, and add the content to their Cozy. If they add the content to their Cozy, they will get updates you make to the content, but they won't be able to update it.",
21
21
  "two-way": "Contacts can update, delete and add the content to their Cozy. Updates on the content will be seen on other Cozies."
@@ -25,6 +25,7 @@
25
25
  "locked-type-folder": "Coming soon: you will be able to change permissions you grant on the folder.",
26
26
  "recipients": {
27
27
  "you": "You",
28
+ "anyoneWithTheLink": "Anyone with the link",
28
29
  "accessCount": "%{count} people have access"
29
30
  },
30
31
  "create-cozy": "Create my cozy",
@@ -34,6 +35,7 @@
34
35
  "otherContacts": "other contact |||| other contacts"
35
36
  },
36
37
  "contacts": {
38
+ "whoHasAccess": "Who has access?",
37
39
  "permissionRequired": {
38
40
  "title": "Save your contacts in your Cozy?",
39
41
  "desc": "Authorize the application to access to your Cozy's contacts: you'll be able to select them next time.",
@@ -61,6 +63,18 @@
61
63
  "sync_to_mine": "Synchronise in my Cozy",
62
64
  "add_to_mine": "Add to my Cozy",
63
65
  "close": "Close"
66
+ },
67
+ "permissionLink": {
68
+ "title": "Allow anyone with the link to:",
69
+ "seeFile": "See file",
70
+ "modifyFile": "Modify file",
71
+ "seeFolder": "See folder",
72
+ "modifyFolder": "Modify folder",
73
+ "readDescription": "Link holders can only read or download content.",
74
+ "writeDescription": "Link holders can alter and delete content.",
75
+ "deactivate": "Deactivate link",
76
+ "cancel": "Cancel",
77
+ "confirm": "OK"
64
78
  }
65
79
  },
66
80
  "Sharings": {
@@ -89,24 +103,17 @@
89
103
  "sharedBy": "Shared by %{name}",
90
104
  "sharedByLink": "Shared by link",
91
105
  "shareByLink": {
92
- "subtitle": "Or share by link",
93
106
  "create": "Generate a link",
94
- "activated": "Link activated",
107
+ "send": "Send link",
95
108
  "copy": "Copy link",
96
109
  "copied": "Link has been copied to clipboard",
97
110
  "failed": "Unable to copy to clipboard",
98
- "ro": "Can read",
99
- "rw": "Can change",
100
- "desc": {
101
- "ro": "Link holders can only read or download content.",
102
- "rw": "Link holders can alter and delete content."
103
- },
104
- "deactivate": "Deactivate link"
111
+ "permserror": "An error occurred while changing the permissions of the link, please try again.",
112
+ "shareDescription": "Here is the link to the document %{name}:"
105
113
  },
106
114
  "shareByEmail": {
107
115
  "subtitle": "By email",
108
- "email": "Send to:",
109
- "emailPlaceholder": "Enter the email address or name of the recipient",
116
+ "emailPlaceholder": "Add contacts or groups",
110
117
  "send": "Send",
111
118
  "genericSuccess": "You sent an invite to %{count} contacts.",
112
119
  "success": "You sent an invite to %{email}.",
@@ -170,20 +177,13 @@
170
177
  "sharedWithMe": "Shared with me",
171
178
  "sharedBy": "Shared by %{name}",
172
179
  "shareByLink": {
173
- "subtitle": "Share by link",
174
180
  "create": "Generate a link",
175
- "activated": "Link activated",
181
+ "send": "Send link",
176
182
  "copy": "Copy link",
177
183
  "copied": "Link has been copied to clipboard",
178
184
  "failed": "Unable to copy to clipboard",
179
185
  "permserror": "An error occurred while changing the permissions of the link, please try again.",
180
- "ro": "Can read",
181
- "rw": "Can change",
182
- "desc": {
183
- "ro": "Link holders can only read or download content.",
184
- "rw": "Link holders can alter and delete content."
185
- },
186
- "deactivate": "Deactivate link"
186
+ "shareDescription": "Here is the link to the document %{name}:"
187
187
  },
188
188
  "shareByEmail": {
189
189
  "subtitle": "By email",
@@ -251,20 +251,14 @@
251
251
  "shared": "Shared",
252
252
  "sharedWithMe": "Shared with me",
253
253
  "shareByLink": {
254
- "subtitle": "Share by link",
255
- "fetchFailed": "Woops! It seems your connectivity is limited, try again later when it gets better.",
256
254
  "create": "Generate a link",
257
- "activated": "Link activated",
255
+ "send": "Send link",
258
256
  "copy": "Copy link",
259
257
  "copied": "Link has been copied to clipboard",
260
258
  "failed": "Unable to copy to clipboard",
261
- "ro": "Can read",
262
- "rw": "Can change",
263
- "desc": {
264
- "ro": "Link holders can only read or download content.",
265
- "rw": "Link holders can change and delete content."
266
- },
267
- "deactivate": "Deactivate link"
259
+ "permserror": "An error occurred while changing the permissions of the link, please try again.",
260
+ "fetchFailed": "Woops! It seems your connectivity is limited, try again later when it gets better.",
261
+ "shareDescription": "Here is the link to the album %{name}:"
268
262
  },
269
263
  "shareByEmail": {
270
264
  "title": "By email",
@@ -320,19 +314,13 @@
320
314
  "sharedBy": "Shared by %{name}",
321
315
  "sharedByLink": "Shared by link",
322
316
  "shareByLink": {
323
- "subtitle": "Or share by link",
324
317
  "create": "Generate a link",
325
- "activated": "Link activated",
318
+ "send": "Send link",
326
319
  "copy": "Copy link",
327
320
  "copied": "Link has been copied to clipboard",
328
321
  "failed": "Unable to copy to clipboard",
329
- "ro": "Can read",
330
- "rw": "Can change",
331
- "desc": {
332
- "ro": "Link holders can only read or download content.",
333
- "rw": "Link holders can alter and delete content."
334
- },
335
- "deactivate": "Deactivate link"
322
+ "permserror": "An error occurred while changing the permissions of the link, please try again.",
323
+ "shareDescription": "Here is the link to the document %{name}:"
336
324
  },
337
325
  "shareByEmail": {
338
326
  "subtitle": "By email",
package/locales/fr.json CHANGED
@@ -25,6 +25,7 @@
25
25
  "locked-type-folder": "Bientôt : vous pourrez changer la permission donnée sur le dossier.",
26
26
  "recipients": {
27
27
  "you": "Vous",
28
+ "anyoneWithTheLink": "N'importe qui avec le lien",
28
29
  "accessCount": "%{count} personnes y ont accès"
29
30
  },
30
31
  "create-cozy": "Créer mon Cozy",
@@ -34,6 +35,7 @@
34
35
  "otherContacts": "autre contact |||| autres contacts"
35
36
  },
36
37
  "contacts": {
38
+ "whoHasAccess": "Qui a accès ?",
37
39
  "permissionRequired": {
38
40
  "title": "Enregistrer vos contacts dans votre Cozy ?",
39
41
  "desc": "Autorisez l'application à accéder aux contacts de votre Cozy : vous pourrez les sélectionner la prochaine fois.",
@@ -61,6 +63,18 @@
61
63
  "sync_to_mine": "Synchroniser dans mon Cozy",
62
64
  "add_to_mine": "Ajouter à mon Cozy",
63
65
  "close": "Fermer"
66
+ },
67
+ "permissionLink": {
68
+ "title": "Autoriser n'importe qui avec le lien à :",
69
+ "seeFile": "Consulter le fichier",
70
+ "modifyFile": "Modifier le fichier",
71
+ "seeFolder": "Consulter le dossier",
72
+ "modifyFolder": "Modifier le dossier",
73
+ "readDescription": "Les détenteurs du lien peuvent uniquement consulter ou télécharger le contenu.",
74
+ "writeDescription": "Les détenteurs du lien peuvent modifier et supprimer le contenu.",
75
+ "deactivate": "Désactiver le lien",
76
+ "cancel": "Annuler",
77
+ "confirm": "OK"
64
78
  }
65
79
  },
66
80
  "Sharings": {
@@ -88,25 +102,17 @@
88
102
  "sharedWithMe": "Partagé avec moi",
89
103
  "sharedBy": "Partagé par %{name}",
90
104
  "shareByLink": {
91
- "subtitle": "Ou partager par lien",
92
105
  "create": "Générer un lien",
93
- "activated": "Lien activé",
106
+ "send": "Envoyer le lien",
94
107
  "copy": "Copier le lien",
95
108
  "copied": "Lien copié dans le presse-papiers.",
96
109
  "failed": "Impossible de copier dans le presse papier",
97
110
  "permserror": "Une erreur est survenue lors du changement de permissions du lien, merci de réessayer.",
98
- "ro": "Peut consulter",
99
- "rw": "Peut modifier",
100
- "desc": {
101
- "ro": "Les détenteurs du lien peuvent uniquement consulter ou télécharger le contenu.",
102
- "rw": "Les détenteurs du lien peuvent modifier et supprimer le contenu. "
103
- },
104
- "deactivate": "Désactiver le lien"
111
+ "shareDescription": "Voici le lien de partage du document %{name} :"
105
112
  },
106
113
  "shareByEmail": {
107
114
  "subtitle": "Par email",
108
- "email": "Envoyer à :",
109
- "emailPlaceholder": "Saisissez le courriel ou le nom du destinataire.",
115
+ "emailPlaceholder": "Ajouter des contacts ou des groupes",
110
116
  "send": "Envoyer",
111
117
  "genericSuccess": "Vous avez invité %{count} contacts.",
112
118
  "success": "Vous avez envoyé une invitation à %{email}.",
@@ -170,19 +176,13 @@
170
176
  "sharedWithMe": "Partagé avec moi",
171
177
  "sharedBy": "Partagé par %{name}",
172
178
  "shareByLink": {
173
- "subtitle": "Partager par lien",
174
179
  "create": "Générer un lien",
175
- "activated": "Lien activé",
180
+ "send": "Envoyer le lien",
176
181
  "copy": "Copier le lien",
177
182
  "copied": "Lien copié dans le presse-papiers.",
178
183
  "failed": "Impossible de copier dans le presse papier",
179
- "ro": "Peut consulter",
180
- "rw": "Peut modifier",
181
- "desc": {
182
- "ro": "Les détenteurs du lien peuvent uniquement consulter ou télécharger le contenu.",
183
- "rw": "Les détenteurs du lien peuvent modifier et supprimer le contenu. "
184
- },
185
- "deactivate": "Désactiver le lien"
184
+ "permserror": "Une erreur est survenue lors du changement de permissions du lien, merci de réessayer.",
185
+ "shareDescription": "Voici le lien de partage du document %{name} :"
186
186
  },
187
187
  "shareByEmail": {
188
188
  "subtitle": "Par email",
@@ -250,20 +250,14 @@
250
250
  "shared": "Partagé",
251
251
  "sharedWithMe": "Partagé avec moi",
252
252
  "shareByLink": {
253
- "subtitle": "Ou partager par lien",
254
- "fetchFailed": "Oups ! Il semblerait que votre connexion internet soit limitée, réessayez plus tard quand le réseau sera meilleur.",
255
253
  "create": "Générer un lien",
256
- "activated": "Lien activé",
254
+ "send": "Envoyer le lien",
257
255
  "copy": "Copier le lien",
258
256
  "copied": "Lien copié dans le presse-papier",
259
257
  "failed": "Impossible de copier dans le presse-papier",
260
- "ro": "Peut consulter",
261
- "rw": "Peut modifier",
262
- "desc": {
263
- "ro": "Les détenteurs du lien peuvent uniquement consulter ou télécharger le contenu.",
264
- "rw": "Les détenteurs du lien peuvent modifier et supprimer le contenu."
265
- },
266
- "deactivate": "Désactiver le lien"
258
+ "permserror": "Une erreur est survenue lors du changement de permissions du lien, merci de réessayer.",
259
+ "fetchFailed": "Oups ! Il semblerait que votre connexion internet soit limitée, réessayez plus tard quand le réseau sera meilleur.",
260
+ "shareDescription": "Voici le lien de partage de l'album %{name} :"
267
261
  },
268
262
  "shareByEmail": {
269
263
  "title": "Par e-mail",
@@ -318,20 +312,13 @@
318
312
  "sharedWithMe": "Partagé avec moi",
319
313
  "sharedBy": "Partagé par %{name}",
320
314
  "shareByLink": {
321
- "subtitle": "Ou partager par lien",
322
315
  "create": "Générer un lien",
323
- "activated": "Lien activé",
316
+ "send": "Envoyer le lien",
324
317
  "copy": "Copier le lien",
325
318
  "copied": "Lien copié dans le presse-papiers.",
326
319
  "failed": "Impossible de copier dans le presse papier",
327
320
  "permserror": "Une erreur est survenue lors du changement de permissions du lien, merci de réessayer.",
328
- "ro": "Peut consulter",
329
- "rw": "Peut modifier",
330
- "desc": {
331
- "ro": "Les détenteurs du lien peuvent uniquement consulter ou télécharger le contenu.",
332
- "rw": "Les détenteurs du lien peuvent modifier et supprimer le contenu. "
333
- },
334
- "deactivate": "Désactiver le lien"
321
+ "shareDescription": "Voici le lien de partage du document %{name} :"
335
322
  },
336
323
  "shareByEmail": {
337
324
  "subtitle": "Par email",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-sharing",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "Provides sharing login for React applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -19,7 +19,7 @@
19
19
  "build:doc:react": "(cd ../.. && TARGET=cozy-sharing yarn build:doc:react)",
20
20
  "deploy:doc": "(cd ../.. && yarn deploy:doc)",
21
21
  "prepublishOnly": "yarn build",
22
- "test": "env NODE_ENV=test jest",
22
+ "test": "env NODE_ENV=test jest --env=jest-environment-jsdom-sixteen",
23
23
  "lint": "cd .. && yarn eslint --ext js,jsx packages/cozy-sharing",
24
24
  "watch": "yarn build --watch",
25
25
  "watch:doc:react": "(cd ../.. && TARGET=cozy-sharing yarn watch:doc:react)"
@@ -28,10 +28,10 @@
28
28
  "@cozy/minilog": "^1.0.0",
29
29
  "classnames": "^2.2.6",
30
30
  "copy-text-to-clipboard": "^2.1.1",
31
- "cozy-device-helper": "^2.6.0",
32
- "cozy-doctypes": "^1.86.1",
31
+ "cozy-device-helper": "^2.7.0",
32
+ "cozy-doctypes": "^1.87.0",
33
33
  "lodash": "^4.17.19",
34
- "react-autosuggest": "^9.4.3",
34
+ "react-autosuggest": "^10.1.0",
35
35
  "react-tooltip": "^3.11.1",
36
36
  "snarkdown": "^2.0.0"
37
37
  },
@@ -40,8 +40,8 @@
40
40
  "babel-jest": "26.6.3",
41
41
  "babel-plugin-css-modules-transform": "1.6.2",
42
42
  "babel-plugin-inline-react-svg": "1.1.2",
43
- "cozy-client": "34.1.0",
44
- "cozy-ui": "77.6.0",
43
+ "cozy-client": "34.6.0",
44
+ "cozy-ui": "79.2.2",
45
45
  "enzyme": "3.11.0",
46
46
  "enzyme-adapter-react-16": "1.15.6",
47
47
  "enzyme-to-json": "3.6.2",
@@ -51,9 +51,9 @@
51
51
  "react-router": "^5.0.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "cozy-client": "^34.1.0",
54
+ "cozy-client": "^34.6.0",
55
55
  "cozy-realtime": "^3.11.0",
56
- "cozy-ui": ">=77.6.0",
56
+ "cozy-ui": ">=79.2.2",
57
57
  "prop-types": "^15.7.2",
58
58
  "react": "^16.12.0",
59
59
  "react-router": "^5.0.1"
@@ -61,5 +61,5 @@
61
61
  "sideEffects": [
62
62
  "*.css"
63
63
  ],
64
- "gitHead": "621683a1fd3dfe4abc029f5c3238c164acb5aec0"
64
+ "gitHead": "453292c639960e7a18f51799472d7d1cc06177bb"
65
65
  }