@box/unified-share-modal 1.22.3 → 1.23.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 (78) hide show
  1. package/dist/esm/lib/components/index.js +8 -6
  2. package/dist/esm/lib/components/remove-collaborator-modal/index.js +4 -0
  3. package/dist/esm/lib/components/remove-collaborator-modal/messages.js +30 -0
  4. package/dist/esm/lib/components/remove-collaborator-modal/remove-collaborator-modal.js +64 -0
  5. package/dist/esm/lib/components/remove-shared-link-modal/remove-shared-link-modal.js +27 -31
  6. package/dist/esm/lib/components/shared-link-settings-modal/download-section.js +5 -5
  7. package/dist/esm/lib/components/unified-share-form-modal/collaborators-view/collaborator-list-item.js +65 -43
  8. package/dist/esm/lib/components/unified-share-form-modal/collaborators-view/messages.js +4 -0
  9. package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-section.js +24 -24
  10. package/dist/esm/lib/constants.js +3 -3
  11. package/dist/esm/lib/messages.js +10 -2
  12. package/dist/esm/lib/unified-share-modal.js +48 -42
  13. package/dist/i18n/bn-IN.js +10 -1
  14. package/dist/i18n/bn-IN.properties +1 -1
  15. package/dist/i18n/da-DK.js +10 -1
  16. package/dist/i18n/da-DK.properties +1 -1
  17. package/dist/i18n/de-DE.js +10 -1
  18. package/dist/i18n/de-DE.properties +1 -1
  19. package/dist/i18n/en-AU.js +10 -1
  20. package/dist/i18n/en-AU.properties +1 -1
  21. package/dist/i18n/en-CA.js +9 -0
  22. package/dist/i18n/en-GB.js +10 -1
  23. package/dist/i18n/en-GB.properties +1 -1
  24. package/dist/i18n/en-US.js +9 -0
  25. package/dist/i18n/en-US.properties +18 -0
  26. package/dist/i18n/en-x-pseudo.js +9 -0
  27. package/dist/i18n/es-419.js +10 -1
  28. package/dist/i18n/es-419.properties +1 -1
  29. package/dist/i18n/es-ES.js +10 -1
  30. package/dist/i18n/es-ES.properties +1 -1
  31. package/dist/i18n/fi-FI.js +10 -1
  32. package/dist/i18n/fi-FI.properties +1 -1
  33. package/dist/i18n/fr-CA.js +10 -1
  34. package/dist/i18n/fr-CA.properties +1 -1
  35. package/dist/i18n/fr-FR.js +10 -1
  36. package/dist/i18n/fr-FR.properties +1 -1
  37. package/dist/i18n/hi-IN.js +10 -1
  38. package/dist/i18n/hi-IN.properties +1 -1
  39. package/dist/i18n/it-IT.js +10 -1
  40. package/dist/i18n/it-IT.properties +1 -1
  41. package/dist/i18n/ja-JP.js +10 -1
  42. package/dist/i18n/ja-JP.properties +1 -1
  43. package/dist/i18n/json/src/lib/components/remove-collaborator-modal/messages.json +1 -0
  44. package/dist/i18n/json/src/lib/components/unified-share-form-modal/collaborators-view/messages.json +1 -1
  45. package/dist/i18n/json/src/lib/messages.json +1 -1
  46. package/dist/i18n/ko-KR.js +14 -5
  47. package/dist/i18n/ko-KR.properties +5 -5
  48. package/dist/i18n/nb-NO.js +14 -5
  49. package/dist/i18n/nb-NO.properties +5 -5
  50. package/dist/i18n/nl-NL.js +10 -1
  51. package/dist/i18n/nl-NL.properties +1 -1
  52. package/dist/i18n/pl-PL.js +10 -1
  53. package/dist/i18n/pl-PL.properties +1 -1
  54. package/dist/i18n/pt-BR.js +10 -1
  55. package/dist/i18n/pt-BR.properties +1 -1
  56. package/dist/i18n/ru-RU.js +10 -1
  57. package/dist/i18n/ru-RU.properties +1 -1
  58. package/dist/i18n/sv-SE.js +10 -1
  59. package/dist/i18n/sv-SE.properties +1 -1
  60. package/dist/i18n/tr-TR.js +10 -1
  61. package/dist/i18n/tr-TR.properties +1 -1
  62. package/dist/i18n/zh-CN.js +10 -1
  63. package/dist/i18n/zh-CN.properties +1 -1
  64. package/dist/i18n/zh-TW.js +10 -1
  65. package/dist/i18n/zh-TW.properties +1 -1
  66. package/dist/styles/collaborator-list-item.css +1 -1
  67. package/dist/types/lib/components/index.d.ts +1 -0
  68. package/dist/types/lib/components/remove-collaborator-modal/index.d.ts +1 -0
  69. package/dist/types/lib/components/remove-collaborator-modal/messages.d.ts +33 -0
  70. package/dist/types/lib/components/remove-collaborator-modal/remove-collaborator-modal.d.ts +5 -0
  71. package/dist/types/lib/components/remove-collaborator-modal/stories/shared.d.ts +2 -0
  72. package/dist/types/lib/components/unified-share-form-modal/collaborators-view/messages.d.ts +5 -0
  73. package/dist/types/lib/contexts/unified-share-modal-context.d.ts +3 -0
  74. package/dist/types/lib/messages.d.ts +10 -0
  75. package/dist/types/lib/stories/shared.d.ts +2 -0
  76. package/dist/types/lib/types.d.ts +17 -2
  77. package/package.json +9 -9
  78. package/dist/styles/remove-shared-link-modal.css +0 -1
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Не удается создать общую ссылку. Повторите попытку позже.",
3
- "groupSharedFeatures.usm.contactsExceedLimitError": "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.",
3
+ "groupSharedFeatures.usm.contactsExceedLimitError": "Ошибка. Максимальное количество соавторов, которое можно добавить за один раз: {maxContacts}. Повторите попытку, разделив приглашения на несколько пакетов.",
4
4
  "groupSharedFeatures.usm.createSharedLinkErrorNoticeText": "Не удается создать общую ссылку. Повторите попытку позже.",
5
5
  "groupSharedFeatures.usm.createSharedLinkSuccessNoticeText": "Общая ссылка создана.",
6
6
  "groupSharedFeatures.usm.defaultErrorNoticeText": "Что-то пошло не так. Повторите попытку позже.",
@@ -17,6 +17,14 @@ export default {
17
17
  "groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage": "Пароль должен содержать не менее одной заглавной буквы, цифры или специального символа",
18
18
  "groupSharedFeatures.usm.passwordContainMinCharactersErrorMessage": "Пароль должен содержать не менее 8 символов",
19
19
  "groupSharedFeatures.usm.passwordRequiredErrorMessage": "Введите пароль",
20
+ "groupSharedFeatures.usm.removeCollaborator.bodyText": "Are you sure you want to remove {name} as a collaborator?",
21
+ "groupSharedFeatures.usm.removeCollaborator.cancelButton": "Cancel",
22
+ "groupSharedFeatures.usm.removeCollaborator.closeButton": "Close",
23
+ "groupSharedFeatures.usm.removeCollaborator.loadingLabel": "Loading",
24
+ "groupSharedFeatures.usm.removeCollaborator.okayButton": "Okay",
25
+ "groupSharedFeatures.usm.removeCollaborator.title": "Remove Collaborator",
26
+ "groupSharedFeatures.usm.removeCollaboratorErrorNoticeText": "Unable to remove the collaborator. Please try again later.",
27
+ "groupSharedFeatures.usm.removeCollaboratorSuccessNoticeText": "The collaborator has been removed successfully.",
20
28
  "groupSharedFeatures.usm.removeSharedLinkModal.bodyText": "Это приведет к окончательному удалению общей ссылки. Если этот элемент встроен в другие веб-сайты, он также станет недоступным. Любые пользовательские свойства, настройки и сроки действия также будут удалены. Продолжить?",
21
29
  "groupSharedFeatures.usm.removeSharedLinkModal.cancelButton": "Отмена",
22
30
  "groupSharedFeatures.usm.removeSharedLinkModal.closeButton": "Закрыть",
@@ -83,6 +91,7 @@ export default {
83
91
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.manageAllLink": "Управление всеми",
84
92
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.nameColumn": "Название",
85
93
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.pendingRole": "Ожидает",
94
+ "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.removeButton": "Remove",
86
95
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.roleColumn": "Роль",
87
96
  "groupSharedFeatures.usm.unifiedShareFormModal.editorRole": "Редактор",
88
97
  "groupSharedFeatures.usm.unifiedShareFormModal.loadingLabel": "Загрузка",
@@ -1,7 +1,7 @@
1
1
  # Notification text when the shared link is failed to be created
2
2
  groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText = Не удается создать общую ссылку. Повторите попытку позже.
3
3
  # Error message when more than the maximum number of contacts is entered
4
- groupSharedFeatures.usm.contactsExceedLimitError = Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.
4
+ groupSharedFeatures.usm.contactsExceedLimitError = Ошибка. Максимальное количество соавторов, которое можно добавить за один раз: {maxContacts}. Повторите попытку, разделив приглашения на несколько пакетов.
5
5
  # Notification text when the shared link failed to be created
6
6
  groupSharedFeatures.usm.createSharedLinkErrorNoticeText = Не удается создать общую ссылку. Повторите попытку позже.
7
7
  # Notification text when the shared link is successfully created
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Kunde inte skapa en delad länk. Försök igen senare.",
3
- "groupSharedFeatures.usm.contactsExceedLimitError": "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.",
3
+ "groupSharedFeatures.usm.contactsExceedLimitError": "Hoppsan! Det högsta antalet medarbetare som kan läggas till en gång är {maxContacts} medarbetare. Försök igen genom att dela upp dina inbjudningar i batcher.",
4
4
  "groupSharedFeatures.usm.createSharedLinkErrorNoticeText": "Kunde inte skapa en delad länk. Försök igen senare.",
5
5
  "groupSharedFeatures.usm.createSharedLinkSuccessNoticeText": "Delad länk skapad.",
6
6
  "groupSharedFeatures.usm.defaultErrorNoticeText": "Något gick fel. Försök igen senare.",
@@ -17,6 +17,14 @@ export default {
17
17
  "groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage": "Lösenordet måste innehålla minst en stor bokstav, en siffra eller ett specialtecken",
18
18
  "groupSharedFeatures.usm.passwordContainMinCharactersErrorMessage": "Lösenordet måste innehålla minst 8 tecken",
19
19
  "groupSharedFeatures.usm.passwordRequiredErrorMessage": "Ange ett lösenord",
20
+ "groupSharedFeatures.usm.removeCollaborator.bodyText": "Are you sure you want to remove {name} as a collaborator?",
21
+ "groupSharedFeatures.usm.removeCollaborator.cancelButton": "Cancel",
22
+ "groupSharedFeatures.usm.removeCollaborator.closeButton": "Close",
23
+ "groupSharedFeatures.usm.removeCollaborator.loadingLabel": "Loading",
24
+ "groupSharedFeatures.usm.removeCollaborator.okayButton": "Okay",
25
+ "groupSharedFeatures.usm.removeCollaborator.title": "Remove Collaborator",
26
+ "groupSharedFeatures.usm.removeCollaboratorErrorNoticeText": "Unable to remove the collaborator. Please try again later.",
27
+ "groupSharedFeatures.usm.removeCollaboratorSuccessNoticeText": "The collaborator has been removed successfully.",
20
28
  "groupSharedFeatures.usm.removeSharedLinkModal.bodyText": "Detta kommer att ta bort den delade länken permanent. Om det här objektet är inbäddat på andra webbplatser kommer det också att bli otillgängligt. Eventuella anpassade egenskaper, inställningar och utgångsdatum kommer också att tas bort. Vill du fortsätta?",
21
29
  "groupSharedFeatures.usm.removeSharedLinkModal.cancelButton": "Avbryt",
22
30
  "groupSharedFeatures.usm.removeSharedLinkModal.closeButton": "Stäng",
@@ -83,6 +91,7 @@ export default {
83
91
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.manageAllLink": "Hantera alla",
84
92
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.nameColumn": "Namn",
85
93
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.pendingRole": "Väntande",
94
+ "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.removeButton": "Remove",
86
95
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.roleColumn": "Roll",
87
96
  "groupSharedFeatures.usm.unifiedShareFormModal.editorRole": "Redigerare",
88
97
  "groupSharedFeatures.usm.unifiedShareFormModal.loadingLabel": "Läser in",
@@ -1,7 +1,7 @@
1
1
  # Notification text when the shared link is failed to be created
2
2
  groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText = Kunde inte skapa en delad länk. Försök igen senare.
3
3
  # Error message when more than the maximum number of contacts is entered
4
- groupSharedFeatures.usm.contactsExceedLimitError = Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.
4
+ groupSharedFeatures.usm.contactsExceedLimitError = Hoppsan! Det högsta antalet medarbetare som kan läggas till en gång är {maxContacts} medarbetare. Försök igen genom att dela upp dina inbjudningar i batcher.
5
5
  # Notification text when the shared link failed to be created
6
6
  groupSharedFeatures.usm.createSharedLinkErrorNoticeText = Kunde inte skapa en delad länk. Försök igen senare.
7
7
  # Notification text when the shared link is successfully created
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Paylaşılan bir bağlantı oluşturulamadı. Lütfen daha sonra tekrar deneyin.",
3
- "groupSharedFeatures.usm.contactsExceedLimitError": "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.",
3
+ "groupSharedFeatures.usm.contactsExceedLimitError": "Üzgünüz! Aynı anda en fazla {maxContacts} işbirlikçi eklenebilir. Lütfen davetlerinizi gruplara ayırın ve tekrar deneyin.",
4
4
  "groupSharedFeatures.usm.createSharedLinkErrorNoticeText": "Paylaşılan bir bağlantı oluşturulamadı. Lütfen daha sonra tekrar deneyin.",
5
5
  "groupSharedFeatures.usm.createSharedLinkSuccessNoticeText": "Paylaşılan bağlantı oluşturuldu.",
6
6
  "groupSharedFeatures.usm.defaultErrorNoticeText": "Bir hata oluştu. Lütfen daha sonra tekrar deneyin.",
@@ -17,6 +17,14 @@ export default {
17
17
  "groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage": "Parola en az bir büyük harf, rakam veya özel karakter içermelidir",
18
18
  "groupSharedFeatures.usm.passwordContainMinCharactersErrorMessage": "Parola en az 8 karakter içermelidir",
19
19
  "groupSharedFeatures.usm.passwordRequiredErrorMessage": "Lütfen bir parola girin",
20
+ "groupSharedFeatures.usm.removeCollaborator.bodyText": "Are you sure you want to remove {name} as a collaborator?",
21
+ "groupSharedFeatures.usm.removeCollaborator.cancelButton": "Cancel",
22
+ "groupSharedFeatures.usm.removeCollaborator.closeButton": "Close",
23
+ "groupSharedFeatures.usm.removeCollaborator.loadingLabel": "Loading",
24
+ "groupSharedFeatures.usm.removeCollaborator.okayButton": "Okay",
25
+ "groupSharedFeatures.usm.removeCollaborator.title": "Remove Collaborator",
26
+ "groupSharedFeatures.usm.removeCollaboratorErrorNoticeText": "Unable to remove the collaborator. Please try again later.",
27
+ "groupSharedFeatures.usm.removeCollaboratorSuccessNoticeText": "The collaborator has been removed successfully.",
20
28
  "groupSharedFeatures.usm.removeSharedLinkModal.bodyText": "Bu, paylaşılan bağlantıyı kalıcı olarak kaldıracaktır. Bu öğe diğer sitelere gömülü ise bu öğe de erişilemez hale gelir. Tüm özel özellikler, ayarlar ve son kullanma tarihleri de kaldırılacaktır. Devam etmek istiyor musunuz?",
21
29
  "groupSharedFeatures.usm.removeSharedLinkModal.cancelButton": "İptal Et",
22
30
  "groupSharedFeatures.usm.removeSharedLinkModal.closeButton": "Kapat",
@@ -83,6 +91,7 @@ export default {
83
91
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.manageAllLink": "Tümünü Yönet",
84
92
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.nameColumn": "Ad",
85
93
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.pendingRole": "Bekliyor",
94
+ "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.removeButton": "Remove",
86
95
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.roleColumn": "Rol",
87
96
  "groupSharedFeatures.usm.unifiedShareFormModal.editorRole": "Düzenleyici",
88
97
  "groupSharedFeatures.usm.unifiedShareFormModal.loadingLabel": "Yükleniyor",
@@ -1,7 +1,7 @@
1
1
  # Notification text when the shared link is failed to be created
2
2
  groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText = Paylaşılan bir bağlantı oluşturulamadı. Lütfen daha sonra tekrar deneyin.
3
3
  # Error message when more than the maximum number of contacts is entered
4
- groupSharedFeatures.usm.contactsExceedLimitError = Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.
4
+ groupSharedFeatures.usm.contactsExceedLimitError = Üzgünüz! Aynı anda en fazla {maxContacts} işbirlikçi eklenebilir. Lütfen davetlerinizi gruplara ayırın ve tekrar deneyin.
5
5
  # Notification text when the shared link failed to be created
6
6
  groupSharedFeatures.usm.createSharedLinkErrorNoticeText = Paylaşılan bir bağlantı oluşturulamadı. Lütfen daha sonra tekrar deneyin.
7
7
  # Notification text when the shared link is successfully created
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "无法创建共享链接。请稍后重试。",
3
- "groupSharedFeatures.usm.contactsExceedLimitError": "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.",
3
+ "groupSharedFeatures.usm.contactsExceedLimitError": "糟糕!可以一次添加的最大协作者数量是 {maxContacts} 个协作者。请将您的邀请拆分成多个批次,然后重试。",
4
4
  "groupSharedFeatures.usm.createSharedLinkErrorNoticeText": "无法创建共享链接。请稍后重试。",
5
5
  "groupSharedFeatures.usm.createSharedLinkSuccessNoticeText": "已创建共享链接。",
6
6
  "groupSharedFeatures.usm.defaultErrorNoticeText": "发生错误。请稍后重试。",
@@ -17,6 +17,14 @@ export default {
17
17
  "groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage": "密码必须至少包含一个大写字母、数字或特殊字符",
18
18
  "groupSharedFeatures.usm.passwordContainMinCharactersErrorMessage": "密码必须至少包含 8 个字符",
19
19
  "groupSharedFeatures.usm.passwordRequiredErrorMessage": "请输入密码",
20
+ "groupSharedFeatures.usm.removeCollaborator.bodyText": "Are you sure you want to remove {name} as a collaborator?",
21
+ "groupSharedFeatures.usm.removeCollaborator.cancelButton": "Cancel",
22
+ "groupSharedFeatures.usm.removeCollaborator.closeButton": "Close",
23
+ "groupSharedFeatures.usm.removeCollaborator.loadingLabel": "Loading",
24
+ "groupSharedFeatures.usm.removeCollaborator.okayButton": "Okay",
25
+ "groupSharedFeatures.usm.removeCollaborator.title": "Remove Collaborator",
26
+ "groupSharedFeatures.usm.removeCollaboratorErrorNoticeText": "Unable to remove the collaborator. Please try again later.",
27
+ "groupSharedFeatures.usm.removeCollaboratorSuccessNoticeText": "The collaborator has been removed successfully.",
20
28
  "groupSharedFeatures.usm.removeSharedLinkModal.bodyText": "这会永久移除共享链接。如果此项目嵌入在其他站点上,它也将变得不可访问。还会移除任何自定义属性、设置和到期时间。是否要继续?",
21
29
  "groupSharedFeatures.usm.removeSharedLinkModal.cancelButton": "取消",
22
30
  "groupSharedFeatures.usm.removeSharedLinkModal.closeButton": "关闭",
@@ -83,6 +91,7 @@ export default {
83
91
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.manageAllLink": "管理所有",
84
92
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.nameColumn": "名称",
85
93
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.pendingRole": "未决",
94
+ "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.removeButton": "Remove",
86
95
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.roleColumn": "角色",
87
96
  "groupSharedFeatures.usm.unifiedShareFormModal.editorRole": "编辑者",
88
97
  "groupSharedFeatures.usm.unifiedShareFormModal.loadingLabel": "正在加载",
@@ -1,7 +1,7 @@
1
1
  # Notification text when the shared link is failed to be created
2
2
  groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText = 无法创建共享链接。请稍后重试。
3
3
  # Error message when more than the maximum number of contacts is entered
4
- groupSharedFeatures.usm.contactsExceedLimitError = Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.
4
+ groupSharedFeatures.usm.contactsExceedLimitError = 糟糕!可以一次添加的最大协作者数量是 {maxContacts} 个协作者。请将您的邀请拆分成多个批次,然后重试。
5
5
  # Notification text when the shared link failed to be created
6
6
  groupSharedFeatures.usm.createSharedLinkErrorNoticeText = 无法创建共享链接。请稍后重试。
7
7
  # Notification text when the shared link is successfully created
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "無法建立共用連結。 請稍後再試一次。",
3
- "groupSharedFeatures.usm.contactsExceedLimitError": "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.",
3
+ "groupSharedFeatures.usm.contactsExceedLimitError": "糟糕!一次最多只能新增 {maxContacts} 個共同作業者。請分批邀請並再試一次。",
4
4
  "groupSharedFeatures.usm.createSharedLinkErrorNoticeText": "無法建立共用連結。 請稍後再試一次。",
5
5
  "groupSharedFeatures.usm.createSharedLinkSuccessNoticeText": "已建立共用的連結。",
6
6
  "groupSharedFeatures.usm.defaultErrorNoticeText": "發生問題。 請稍後再試一次。",
@@ -17,6 +17,14 @@ export default {
17
17
  "groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage": "密碼必須至少包含一個大寫字母、數字或特殊字元",
18
18
  "groupSharedFeatures.usm.passwordContainMinCharactersErrorMessage": "密碼必須至少包含 8 個字元",
19
19
  "groupSharedFeatures.usm.passwordRequiredErrorMessage": "請輸入密碼",
20
+ "groupSharedFeatures.usm.removeCollaborator.bodyText": "Are you sure you want to remove {name} as a collaborator?",
21
+ "groupSharedFeatures.usm.removeCollaborator.cancelButton": "Cancel",
22
+ "groupSharedFeatures.usm.removeCollaborator.closeButton": "Close",
23
+ "groupSharedFeatures.usm.removeCollaborator.loadingLabel": "Loading",
24
+ "groupSharedFeatures.usm.removeCollaborator.okayButton": "Okay",
25
+ "groupSharedFeatures.usm.removeCollaborator.title": "Remove Collaborator",
26
+ "groupSharedFeatures.usm.removeCollaboratorErrorNoticeText": "Unable to remove the collaborator. Please try again later.",
27
+ "groupSharedFeatures.usm.removeCollaboratorSuccessNoticeText": "The collaborator has been removed successfully.",
20
28
  "groupSharedFeatures.usm.removeSharedLinkModal.bodyText": "這將永久移除共用的連結。 如果此項目嵌入其他網站,則也會變得無法存取。任何自訂屬性、設定和到期日也會移除。 是否要繼續?",
21
29
  "groupSharedFeatures.usm.removeSharedLinkModal.cancelButton": "取消",
22
30
  "groupSharedFeatures.usm.removeSharedLinkModal.closeButton": "關閉",
@@ -83,6 +91,7 @@ export default {
83
91
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.manageAllLink": "管理全部",
84
92
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.nameColumn": "名稱",
85
93
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.pendingRole": "待確認",
94
+ "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.removeButton": "Remove",
86
95
  "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorsView.roleColumn": "角色",
87
96
  "groupSharedFeatures.usm.unifiedShareFormModal.editorRole": "編輯者",
88
97
  "groupSharedFeatures.usm.unifiedShareFormModal.loadingLabel": "載入中",
@@ -1,7 +1,7 @@
1
1
  # Notification text when the shared link is failed to be created
2
2
  groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText = 無法建立共用連結。 請稍後再試一次。
3
3
  # Error message when more than the maximum number of contacts is entered
4
- groupSharedFeatures.usm.contactsExceedLimitError = Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.
4
+ groupSharedFeatures.usm.contactsExceedLimitError = 糟糕!一次最多只能新增 {maxContacts} 個共同作業者。請分批邀請並再試一次。
5
5
  # Notification text when the shared link failed to be created
6
6
  groupSharedFeatures.usm.createSharedLinkErrorNoticeText = 無法建立共用連結。 請稍後再試一次。
7
7
  # Notification text when the shared link is successfully created
@@ -1 +1 @@
1
- ._nameCell_1qrwh_1{display:flex;gap:var(--space-3);align-items:center}._nameDetails_1qrwh_7{display:flex;flex-direction:column;justify-content:space-evenly;height:var(--size-10)}._roleCell_1qrwh_14{text-align:right}
1
+ ._nameCell_empqg_1{display:flex;gap:var(--space-3);align-items:center}._nameDetails_empqg_7{display:flex;flex-direction:column;justify-content:space-evenly;height:var(--size-10)}._roleCell_empqg_14{display:flex;gap:var(--space-2);align-items:center;justify-content:flex-end}._text_empqg_21{overflow:hidden;text-overflow:ellipsis}
@@ -1,3 +1,4 @@
1
+ export * from './remove-collaborator-modal';
1
2
  export * from './remove-shared-link-modal';
2
3
  export * from './shared-link-settings-modal';
3
4
  export * from './unified-share-form-modal';
@@ -0,0 +1 @@
1
+ export * from './remove-collaborator-modal';
@@ -0,0 +1,33 @@
1
+ declare const messages: {
2
+ title: {
3
+ defaultMessage: string;
4
+ description: string;
5
+ id: string;
6
+ };
7
+ bodyText: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
12
+ cancelButton: {
13
+ defaultMessage: string;
14
+ description: string;
15
+ id: string;
16
+ };
17
+ closeButton: {
18
+ defaultMessage: string;
19
+ description: string;
20
+ id: string;
21
+ };
22
+ loadingLabel: {
23
+ defaultMessage: string;
24
+ description: string;
25
+ id: string;
26
+ };
27
+ okayButton: {
28
+ defaultMessage: string;
29
+ description: string;
30
+ id: string;
31
+ };
32
+ };
33
+ export default messages;
@@ -0,0 +1,5 @@
1
+ export interface RemoveCollaboratorModalProps {
2
+ isOpen: boolean;
3
+ onOpenChange: (open: boolean) => void;
4
+ }
5
+ export declare function RemoveCollaboratorModal({ isOpen, onOpenChange }: RemoveCollaboratorModalProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { UnifiedShareModalContextValue } from '../../../contexts';
2
+ export declare const RemoveCollaboratorModalTemplate: (props: UnifiedShareModalContextValue) => import("react/jsx-runtime").JSX.Element;
@@ -39,5 +39,10 @@ declare const messages: {
39
39
  description: string;
40
40
  id: string;
41
41
  };
42
+ removeButton: {
43
+ defaultMessage: string;
44
+ description: string;
45
+ id: string;
46
+ };
42
47
  };
43
48
  export default messages;
@@ -1,6 +1,8 @@
1
+ import { Dispatch, SetStateAction } from 'react';
1
2
  import { CollaborationRole, Collaborator, Configuration, ContactService, EventService, Item, SharedLink, SharingService, User } from '../types';
2
3
  export interface UnifiedShareModalContextValue {
3
4
  collaborationRoles?: CollaborationRole[];
5
+ collaborator?: Partial<Collaborator>;
4
6
  collaborators?: Collaborator[];
5
7
  config?: Configuration;
6
8
  contactService?: ContactService;
@@ -9,6 +11,7 @@ export interface UnifiedShareModalContextValue {
9
11
  isFetching?: boolean;
10
12
  isSubmitting?: boolean;
11
13
  item?: Item;
14
+ setCollaborator?: Dispatch<SetStateAction<Collaborator>>;
12
15
  sharedLink?: Partial<SharedLink>;
13
16
  sharingService?: SharingService;
14
17
  }
@@ -24,6 +24,16 @@ declare const messages: {
24
24
  description: string;
25
25
  id: string;
26
26
  };
27
+ removeCollaboratorSuccessNoticeText: {
28
+ defaultMessage: string;
29
+ description: string;
30
+ id: string;
31
+ };
32
+ removeCollaboratorErrorNoticeText: {
33
+ defaultMessage: string;
34
+ description: string;
35
+ id: string;
36
+ };
27
37
  deleteSharedLinkSuccessNoticeText: {
28
38
  defaultMessage: string;
29
39
  description: string;
@@ -18,6 +18,7 @@ export declare const mockClassification: {
18
18
  };
19
19
  export declare const mockItemPermissions: {
20
20
  canInviteCollaborator: boolean;
21
+ canRemoveCollaborator: boolean;
21
22
  canSetShareAccess: boolean;
22
23
  canShare: boolean;
23
24
  };
@@ -29,6 +30,7 @@ export declare const useMockSharedLink: (sharedLinkArg: any) => {
29
30
  sharedLink: SharedLink;
30
31
  sharingService: {
31
32
  sendInvitations: (formData: any) => Promise<void>;
33
+ removeCollaborator: () => Promise<void>;
32
34
  sendSharedLink: (formData: any) => Promise<void>;
33
35
  createSharedLink: () => Promise<void>;
34
36
  deleteSharedLink: () => Promise<void>;
@@ -11,8 +11,9 @@ export type DateValue = Parameters<DatePickerProps['onChange']>[0];
11
11
  * - `unified-share-form` - The sharing form where users can invite collaborators and manage shared links
12
12
  * - `shared-link-settings` - A focused view for configuring the shared link settings and permissions
13
13
  * - `remove-shared-link` - A confirmation view for removing an existing shared link
14
+ * - `remove-collaborator` - A confirmation view for removing an existing collaborator
14
15
  */
15
- export type ModalViewType = 'unified-share-form' | 'shared-link-settings' | 'remove-shared-link';
16
+ export type ModalViewType = 'unified-share-form' | 'shared-link-settings' | 'remove-shared-link' | 'remove-collaborator';
16
17
  /**
17
18
  * View states of the sharing form in the Unified Share Modal.
18
19
  *
@@ -25,7 +26,7 @@ export type ShareViewType = 'default' | 'invite' | 'email' | 'collaborators';
25
26
  /**
26
27
  * Supported success and error notifications when the user performs sharing actions.
27
28
  */
28
- export type NotificationType = 'invite-collaborators' | 'create-shared-link' | 'delete-shared-link' | 'update-shared-link' | 'email-shared-link' | 'auto-copy-shared-link';
29
+ export type NotificationType = 'invite-collaborators' | 'remove-collaborator' | 'create-shared-link' | 'delete-shared-link' | 'update-shared-link' | 'email-shared-link' | 'auto-copy-shared-link';
29
30
  /**
30
31
  * Supported roles for inviting a new collaborator. The available roles are dependent on the Enterprise settings.
31
32
  *
@@ -73,6 +74,10 @@ export interface Item {
73
74
  * When `true`, the user can invite collaborators on the item.
74
75
  */
75
76
  canInviteCollaborator?: boolean;
77
+ /**
78
+ * When `true`, the user can remove collaborators on the item.
79
+ */
80
+ canRemoveCollaborator?: boolean;
76
81
  /**
77
82
  * When `true`, the user can change the access level of the shared link.
78
83
  */
@@ -277,6 +282,10 @@ export interface Collaborator {
277
282
  * Used when the collaborator has not accepted or declined the collaboration invite.
278
283
  */
279
284
  isPending?: boolean;
285
+ /**
286
+ * When `true`, the user can remove the collaborator's access to the item.
287
+ */
288
+ isRemovable?: boolean;
280
289
  /**
281
290
  * The name of the collaborator.
282
291
  */
@@ -359,6 +368,12 @@ export interface SharingService {
359
368
  * Called when the user clicks "Send" on the invite view of the sharing form.
360
369
  */
361
370
  sendInvitations?: (formData: CollaborationFormData) => Promise<SharingResponse | void>;
371
+ /**
372
+ * Function to remove an existing collaborator on the item.
373
+ *
374
+ * Called when the user clicks "Remove" on a collaborator in the list of collaborators.
375
+ */
376
+ removeCollaborator?: (collaborator: Collaborator) => Promise<SharingResponse | void>;
362
377
  /**
363
378
  * Function to email the shared link to the selected contacts.
364
379
  *
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@box/unified-share-modal",
3
- "version": "1.22.3",
3
+ "version": "1.23.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
- "@box/blueprint-web": "^12.106.2",
7
- "@box/blueprint-web-assets": "^4.88.3",
8
- "@box/copy-input": "^1.18.3",
9
- "@box/user-selector": "^1.50.3",
6
+ "@box/blueprint-web": "^12.107.0",
7
+ "@box/blueprint-web-assets": "^4.88.4",
8
+ "@box/copy-input": "^1.18.4",
9
+ "@box/user-selector": "^1.50.4",
10
10
  "lodash": "^4.17.15",
11
11
  "react": "^18.0.0",
12
12
  "react-dom": "^18.0.0",
13
13
  "react-intl": "^6.4.2"
14
14
  },
15
15
  "devDependencies": {
16
- "@box/blueprint-web": "^12.106.2",
17
- "@box/blueprint-web-assets": "^4.88.3",
18
- "@box/copy-input": "^1.18.3",
19
- "@box/storybook-utils": "0.14.31",
16
+ "@box/blueprint-web": "^12.107.0",
17
+ "@box/blueprint-web-assets": "^4.88.4",
18
+ "@box/copy-input": "^1.18.4",
19
+ "@box/storybook-utils": "0.14.32",
20
20
  "@box/eslint-plugin-blueprint": "1.0.5",
21
21
  "react-intl": "^6.4.2"
22
22
  },
@@ -1 +0,0 @@
1
- ._body_1eb8k_1._body_1eb8k_1{padding-top:0;padding-bottom:0}