@box/unified-share-modal 2.6.10 → 2.7.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/dist/esm/lib/messages.js +4 -0
- package/dist/esm/lib/utils/notification.js +18 -9
- package/dist/i18n/bn-IN.js +1 -0
- package/dist/i18n/da-DK.js +1 -0
- package/dist/i18n/de-DE.js +1 -0
- package/dist/i18n/en-AU.js +1 -0
- package/dist/i18n/en-CA.js +1 -0
- package/dist/i18n/en-GB.js +1 -0
- package/dist/i18n/en-US.js +2 -1
- package/dist/i18n/en-US.properties +2 -0
- package/dist/i18n/en-x-pseudo.js +1 -0
- package/dist/i18n/es-419.js +1 -0
- package/dist/i18n/es-ES.js +1 -0
- package/dist/i18n/fi-FI.js +1 -0
- package/dist/i18n/fr-CA.js +1 -0
- package/dist/i18n/fr-FR.js +1 -0
- package/dist/i18n/hi-IN.js +1 -0
- package/dist/i18n/it-IT.js +1 -0
- package/dist/i18n/ja-JP.js +1 -0
- package/dist/i18n/json/src/lib/messages.json +1 -1
- package/dist/i18n/ko-KR.js +1 -0
- package/dist/i18n/nb-NO.js +1 -0
- package/dist/i18n/nl-NL.js +1 -0
- package/dist/i18n/pl-PL.js +1 -0
- package/dist/i18n/pt-BR.js +1 -0
- package/dist/i18n/ru-RU.js +1 -0
- package/dist/i18n/sv-SE.js +1 -0
- package/dist/i18n/tr-TR.js +1 -0
- package/dist/i18n/zh-CN.js +1 -0
- package/dist/i18n/zh-TW.js +1 -0
- package/dist/types/lib/messages.d.ts +5 -0
- package/dist/types/lib/types.d.ts +5 -1
- package/dist/types/lib/utils/notification.d.ts +3 -3
- package/package.json +9 -9
package/dist/esm/lib/messages.js
CHANGED
|
@@ -12,6 +12,10 @@ const a = e({
|
|
|
12
12
|
id: "groupSharedFeatures.usm.errorNoticeIcon",
|
|
13
13
|
defaultMessage: "Error"
|
|
14
14
|
},
|
|
15
|
+
warningNoticeIcon: {
|
|
16
|
+
id: "groupSharedFeatures.usm.warningNoticeIcon",
|
|
17
|
+
defaultMessage: "Warning"
|
|
18
|
+
},
|
|
15
19
|
defaultErrorNoticeText: {
|
|
16
20
|
id: "groupSharedFeatures.usm.defaultErrorNoticeText",
|
|
17
21
|
defaultMessage: "Something went wrong. Please try again later."
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "lodash/camelCase";
|
|
2
2
|
import r from "../messages.js";
|
|
3
|
-
const
|
|
3
|
+
const a = (e) => {
|
|
4
|
+
switch (e) {
|
|
5
|
+
case "success":
|
|
6
|
+
return r.successNoticeIcon;
|
|
7
|
+
case "warning":
|
|
8
|
+
return r.warningNoticeIcon;
|
|
9
|
+
default:
|
|
10
|
+
return r.errorNoticeIcon;
|
|
11
|
+
}
|
|
12
|
+
}, m = (e, s) => ({
|
|
4
13
|
closeButtonAriaLabel: e(r.noticeCloseLabel),
|
|
5
14
|
sensitivity: "foreground",
|
|
6
|
-
typeIconAriaLabel: e(s
|
|
15
|
+
typeIconAriaLabel: e(a(s)),
|
|
7
16
|
variant: s
|
|
8
|
-
}),
|
|
9
|
-
if (!
|
|
17
|
+
}), N = (e, s, t, o) => {
|
|
18
|
+
if (!t)
|
|
10
19
|
return "";
|
|
11
|
-
const
|
|
12
|
-
return
|
|
20
|
+
const n = i(t), c = r[`${n}${s === "success" ? "Success" : "Error"}NoticeText`];
|
|
21
|
+
return c ? e(c, o) : s === "error" ? e(r.defaultErrorNoticeText) : "";
|
|
13
22
|
};
|
|
14
23
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
m as getNotificationArgs,
|
|
25
|
+
N as getNotificationMessage
|
|
17
26
|
};
|
package/dist/i18n/bn-IN.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "শেয়ারকৃত লিঙ্ক সেটিংস সফলভাবে সেভ করা হয়েছে।",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "কাস্টম URL অবশ্যই 12-30 অক্ষরের মধ্যে হতে হবে এবং অক্ষর, সংখ্যা এবং হাইফেন অন্তর্ভুক্ত করতে পারে",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "অনুগ্রহ করে একটি কাস্টম URL লিখুন",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "একটি শেয়ার করা লিঙ্ক তৈরি করা যায়নি। পরে আবার চেষ্টা করুন।"
|
|
164
165
|
}
|
package/dist/i18n/da-DK.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Indstillingerne for det delte link blev gemt med succes.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Brugerdefinerede URL'er skal være mellem 12-30 tegn og kan indeholde bogstaver, tal og bindestreger",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Indtast venligst en tilpasset URL",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Kunne ikke oprette et delt link. Prøv venligst igen senere."
|
|
164
165
|
}
|
package/dist/i18n/de-DE.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Die Einstellungen des Freigabe-Links wurden erfolgreich gespeichert.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Benutzerdefinierte URLs müssen zwischen 12 und 30 Zeichen lang sein und können Buchstaben, Ziffern und Bindestriche enthalten",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Bitte geben Sie eine benutzerdefinierte URL ein",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Ein Freigabe-Link kann nicht erzeugt werden. Versuchen Sie es bitte später noch einmal."
|
|
164
165
|
}
|
package/dist/i18n/en-AU.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "The shared link settings were saved successfully.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Custom URLs must be between 12-30 characters, and can include letters, numbers, and hyphens",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Please enter a custom URL",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Unable to create a shared link. Please try again later."
|
|
164
165
|
}
|
package/dist/i18n/en-CA.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "The shared link settings were saved successfully.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Custom URLs must be between 12-30 characters, and can include letters, numbers, and hyphens",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Please enter a custom URL",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Unable to create a shared link. Please try again later."
|
|
164
165
|
}
|
package/dist/i18n/en-GB.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "The shared link settings were saved successfully.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Custom URLs must be between 12-30 characters, and can include letters, numbers, and hyphens",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Please enter a custom URL",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Unable to create a shared link. Please try again later."
|
|
164
165
|
}
|
package/dist/i18n/en-US.js
CHANGED
|
@@ -159,5 +159,6 @@ export default {
|
|
|
159
159
|
"groupSharedFeatures.usm.unifiedShareFormModal.viewerUploaderRole": "Viewer Uploader",
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "The shared link settings were saved successfully.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Custom URLs must be between 12-30 characters, and can include letters, numbers, and hyphens",
|
|
162
|
-
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Please enter a custom URL"
|
|
162
|
+
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Please enter a custom URL",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning"
|
|
163
164
|
}
|
|
@@ -320,3 +320,5 @@ groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText = The shared link sett
|
|
|
320
320
|
groupSharedFeatures.usm.vanityNameInvalidErrorMessage = Custom URLs must be between 12-30 characters, and can include letters, numbers, and hyphens
|
|
321
321
|
# Error message for the vanity name field when custom URL is not provided
|
|
322
322
|
groupSharedFeatures.usm.vanityNameRequiredErrorMessage = Please enter a custom URL
|
|
323
|
+
# Icon label for the warning notifications
|
|
324
|
+
groupSharedFeatures.usm.warningNoticeIcon = Warning
|
package/dist/i18n/en-x-pseudo.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ţĥé şĥâŗėď ļīйк ѕĕťţïиğś ẃęяé ѕąνěď ѕùčĉεѕśƒúľľŷ. 國國國國國國國國國國國國國國⟧",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Čūѕţόm ŮΓĿŝ můѕŧ ьę вëŧώέèл 12-30 ¢ĥąгǻĉτέŗѕ, ǻňď čáπ ϊʼnĉľũďέ ĺĕτŧєґŝ, πũmвéřś, āлď ħУΡĥėʼnŝ 國國國國國國國國國國國國國國國國國國國國國國國國國國國⟧",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "⟦萬萬萬萬萬萬萬 Pļèåѕε εŋťєѓ å 浺ŧõm ŪҐĽ 國國國國國國國⟧",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Úηąьľê ţσ ćґёäţĕ à ѕħáѓëď ľιηκ. Pľèάѕέ ťгỳ âġāįη ľáτėг. 國國國國國國國國國國國國國國國國⟧"
|
|
164
165
|
}
|
package/dist/i18n/es-419.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "La configuración del enlace compartido se ha guardado correctamente.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Las URL personalizadas deben tener entre 12 y 30 caracteres, y pueden incluir letras, números y guiones",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Introduzca una URL personalizada",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "No se puede crear un enlace compartido. Inténtelo más tarde."
|
|
164
165
|
}
|
package/dist/i18n/es-ES.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "La configuración del enlace compartido se ha guardado correctamente.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Las URL personalizadas deben tener entre 12 y 30 caracteres, y pueden incluir letras, números y guiones",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Introduzca una URL personalizada",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "No se puede crear un enlace compartido. Inténtelo más tarde."
|
|
164
165
|
}
|
package/dist/i18n/fi-FI.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Jaetun linkin asetukset tallennettiin onnistuneesti.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Mukautettujen URL-osoitteiden tulisi olla välillä 12–30 merkkiä, ja ne voivat sisältää kirjaimia, numeroita ja yhdysmerkkejä",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Anna mukautettu URL-osoite",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Jaettua linkkiä ei voi luoda. Yritä myöhemmin uudelleen."
|
|
164
165
|
}
|
package/dist/i18n/fr-CA.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Les paramètres du lien partagé ont été enregistrés avec succès.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Les URL personnalisées doivent contenir entre 12 et 30 caractères et peuvent inclure des lettres, des chiffres et des traits d'union",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Veuillez saisir une URL personnalisée",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Impossible de créer un lien partagé. Veuillez réessayer ultérieurement."
|
|
164
165
|
}
|
package/dist/i18n/fr-FR.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Les paramètres du lien partagé ont été enregistrés avec succès.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Les URL personnalisées doivent contenir entre 12 et 30 caractères et peuvent inclure des lettres, des chiffres et des traits d'union",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Veuillez saisir une URL personnalisée",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Impossible de créer un lien partagé. Veuillez réessayer ultérieurement."
|
|
164
165
|
}
|
package/dist/i18n/hi-IN.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "शेयर्ड लिंक सेटिंग को सफलतापूर्वक सहेजा गया।",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "कस्टम URLs, 12-30 वर्णों के बीच होने चाहिए, जिसमें अक्षर, संख्या और हाइफ़न हो सकते हैं",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "कृपया एक कस्टम URL दर्ज करें",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "शेयर्ड लिंक बनाने में असमर्थ। कृपया बाद में दोबारा कोशिश करें।"
|
|
164
165
|
}
|
package/dist/i18n/it-IT.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Le impostazioni del collegamento condiviso sono state salvate correttamente.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Gli URL personalizzati devono essere compresi tra 12 e 30 caratteri e possono includere lettere, numeri e trattini",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Inserisci un URL personalizzato",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Impossibile creare un collegamento condiviso. Riprova più tardi."
|
|
164
165
|
}
|
package/dist/i18n/ja-JP.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "共有リンクの設定を保存しました。",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "カスタムURLは12~30文字で、文字、数字、ハイフンを含めることができます",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "カスタムURLを入力してください",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "共有リンクを作成できません。後でもう一度やり直してください。"
|
|
164
165
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"groupSharedFeatures.usm.noticeCloseLabel","description":"Close button aria label for the notifications","defaultMessage":"Close"},{"id":"groupSharedFeatures.usm.successNoticeIcon","description":"Icon label for the success notifications","defaultMessage":"Success"},{"id":"groupSharedFeatures.usm.errorNoticeIcon","description":"Icon label for the error notifications","defaultMessage":"Error"},{"id":"groupSharedFeatures.usm.defaultErrorNoticeText","description":"Default error notification text rendered when API fails","defaultMessage":"Something went wrong. Please try again later."},{"id":"groupSharedFeatures.usm.removeCollaboratorSuccessNoticeText","description":"Notification text when a collaborator is successfully removed","defaultMessage":"The collaborator has been removed successfully."},{"id":"groupSharedFeatures.usm.removeCollaboratorErrorNoticeText","description":"Notification text when a collaborator failed to be removed","defaultMessage":"Unable to remove the collaborator. Please try again later."},{"id":"groupSharedFeatures.usm.deleteSharedLinkSuccessNoticeText","description":"Notification text when the shared link is successfully removed","defaultMessage":"The shared link for “{itemName}” has been removed successfully."},{"id":"groupSharedFeatures.usm.deleteSharedLinkErrorNoticeText","description":"Notification text when the shared link failed to be removed","defaultMessage":"Unable to remove the shared link. Please try again later."},{"id":"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText","description":"Notification text when the shared link settings are successfully saved","defaultMessage":"The shared link settings were saved successfully."},{"id":"groupSharedFeatures.usm.createSharedLinkSuccessNoticeText","description":"Notification text when the shared link is successfully created","defaultMessage":"Shared link created."},{"id":"groupSharedFeatures.usm.createSharedLinkErrorNoticeText","description":"Notification text when the shared link failed to be created","defaultMessage":"Unable to create a shared link. Please try again later."},{"id":"groupSharedFeatures.usm.emailSharedLinkSuccessNoticeText","description":"Notification text when the shared link was sent successfully","defaultMessage":"The shared link for “{itemName}” was sent successfully."},{"id":"groupSharedFeatures.usm.vanityNameInvalidErrorMessage","description":"Text for the vanity name invalid error","defaultMessage":"Custom URLs must be between 12-30 characters, and can include letters, numbers, and hyphens"},{"id":"groupSharedFeatures.usm.vanityNameRequiredErrorMessage","description":"Error message for the vanity name field when custom URL is not provided","defaultMessage":"Please enter a custom URL"},{"id":"groupSharedFeatures.usm.expirationRequiredErrorMessage","description":"Error message for the expiration date field when expiration date is not provided","defaultMessage":"Please select an expiration date"},{"id":"groupSharedFeatures.usm.expirationFutureDateErrorMessage","description":"Error message for the expiration date field when expiration date is in the past","defaultMessage":"Expiration date must be in the future"},{"id":"groupSharedFeatures.usm.invalidEmailErrorMessage","description":"Error message for the email field when email is invalid","defaultMessage":"Invalid email address"},{"id":"groupSharedFeatures.usm.emailRequiredErrorMessage","description":"Error message for the email field when email is not provided","defaultMessage":"Enter at least one valid email"},{"id":"groupSharedFeatures.usm.contactsLimitErrorMessage","description":"Error message when more than the maximum number of contacts is entered","defaultMessage":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches."},{"id":"groupSharedFeatures.usm.passwordRequiredErrorMessage","description":"Error message for the password field when password is not provided","defaultMessage":"Please enter a password"},{"id":"groupSharedFeatures.usm.passwordContainMinCharactersErrorMessage","description":"Error message for the password field when password does not contain at least 8 characters.","defaultMessage":"Password must contain at least 8 characters"},{"id":"groupSharedFeatures.usm.passwordContainInvalidCharacterErrorMessage","description":"Error message for the password field when password contains forbidden characters.","defaultMessage":"Password cannot contain a space, \"<\" or \">\""},{"id":"groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage","description":"Error message for the password field when password does not contain at least one letter, number, or symbol","defaultMessage":"Password must contain at least one upper case letter, number, or special character"},{"id":"groupSharedFeatures.usm.justificationRequiredErrorNotice","description":"Error message when a user tries to send invitations but a business justification is required before proceeding","defaultMessage":"Please select a justification or remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue."},{"id":"groupSharedFeatures.usm.restrictedContactsErrorNotice","description":"Error notification when a user tries to send invitations to restricted users","defaultMessage":"Please remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue."}]
|
|
1
|
+
[{"id":"groupSharedFeatures.usm.noticeCloseLabel","description":"Close button aria label for the notifications","defaultMessage":"Close"},{"id":"groupSharedFeatures.usm.successNoticeIcon","description":"Icon label for the success notifications","defaultMessage":"Success"},{"id":"groupSharedFeatures.usm.errorNoticeIcon","description":"Icon label for the error notifications","defaultMessage":"Error"},{"id":"groupSharedFeatures.usm.warningNoticeIcon","description":"Icon label for the warning notifications","defaultMessage":"Warning"},{"id":"groupSharedFeatures.usm.defaultErrorNoticeText","description":"Default error notification text rendered when API fails","defaultMessage":"Something went wrong. Please try again later."},{"id":"groupSharedFeatures.usm.removeCollaboratorSuccessNoticeText","description":"Notification text when a collaborator is successfully removed","defaultMessage":"The collaborator has been removed successfully."},{"id":"groupSharedFeatures.usm.removeCollaboratorErrorNoticeText","description":"Notification text when a collaborator failed to be removed","defaultMessage":"Unable to remove the collaborator. Please try again later."},{"id":"groupSharedFeatures.usm.deleteSharedLinkSuccessNoticeText","description":"Notification text when the shared link is successfully removed","defaultMessage":"The shared link for “{itemName}” has been removed successfully."},{"id":"groupSharedFeatures.usm.deleteSharedLinkErrorNoticeText","description":"Notification text when the shared link failed to be removed","defaultMessage":"Unable to remove the shared link. Please try again later."},{"id":"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText","description":"Notification text when the shared link settings are successfully saved","defaultMessage":"The shared link settings were saved successfully."},{"id":"groupSharedFeatures.usm.createSharedLinkSuccessNoticeText","description":"Notification text when the shared link is successfully created","defaultMessage":"Shared link created."},{"id":"groupSharedFeatures.usm.createSharedLinkErrorNoticeText","description":"Notification text when the shared link failed to be created","defaultMessage":"Unable to create a shared link. Please try again later."},{"id":"groupSharedFeatures.usm.emailSharedLinkSuccessNoticeText","description":"Notification text when the shared link was sent successfully","defaultMessage":"The shared link for “{itemName}” was sent successfully."},{"id":"groupSharedFeatures.usm.vanityNameInvalidErrorMessage","description":"Text for the vanity name invalid error","defaultMessage":"Custom URLs must be between 12-30 characters, and can include letters, numbers, and hyphens"},{"id":"groupSharedFeatures.usm.vanityNameRequiredErrorMessage","description":"Error message for the vanity name field when custom URL is not provided","defaultMessage":"Please enter a custom URL"},{"id":"groupSharedFeatures.usm.expirationRequiredErrorMessage","description":"Error message for the expiration date field when expiration date is not provided","defaultMessage":"Please select an expiration date"},{"id":"groupSharedFeatures.usm.expirationFutureDateErrorMessage","description":"Error message for the expiration date field when expiration date is in the past","defaultMessage":"Expiration date must be in the future"},{"id":"groupSharedFeatures.usm.invalidEmailErrorMessage","description":"Error message for the email field when email is invalid","defaultMessage":"Invalid email address"},{"id":"groupSharedFeatures.usm.emailRequiredErrorMessage","description":"Error message for the email field when email is not provided","defaultMessage":"Enter at least one valid email"},{"id":"groupSharedFeatures.usm.contactsLimitErrorMessage","description":"Error message when more than the maximum number of contacts is entered","defaultMessage":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches."},{"id":"groupSharedFeatures.usm.passwordRequiredErrorMessage","description":"Error message for the password field when password is not provided","defaultMessage":"Please enter a password"},{"id":"groupSharedFeatures.usm.passwordContainMinCharactersErrorMessage","description":"Error message for the password field when password does not contain at least 8 characters.","defaultMessage":"Password must contain at least 8 characters"},{"id":"groupSharedFeatures.usm.passwordContainInvalidCharacterErrorMessage","description":"Error message for the password field when password contains forbidden characters.","defaultMessage":"Password cannot contain a space, \"<\" or \">\""},{"id":"groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage","description":"Error message for the password field when password does not contain at least one letter, number, or symbol","defaultMessage":"Password must contain at least one upper case letter, number, or special character"},{"id":"groupSharedFeatures.usm.justificationRequiredErrorNotice","description":"Error message when a user tries to send invitations but a business justification is required before proceeding","defaultMessage":"Please select a justification or remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue."},{"id":"groupSharedFeatures.usm.restrictedContactsErrorNotice","description":"Error notification when a user tries to send invitations to restricted users","defaultMessage":"Please remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue."}]
|
package/dist/i18n/ko-KR.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "공유 링크 설정이 성공적으로 저장되었습니다.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "사용자 정의 URL은 12~30자여야 하며, 문자, 숫자, 하이픈을 포함할 수 있습니다",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "사용자 지정 URL을 입력하세요",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "공유 링크를 생성할 수 없습니다. 잠시 후 다시 시도해 주세요."
|
|
164
165
|
}
|
package/dist/i18n/nb-NO.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Innstillingene for delte koblinger ble lagret.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Egendefinerte nettadresser bør være mellom 12 og 30 tegn og kan inneholde bokstaver, tall og bindestreker",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Skriv inn en egendefinert nettadresse",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Kan ikke opprette en delt kobling. Prøv igjen senere."
|
|
164
165
|
}
|
package/dist/i18n/nl-NL.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "De instellingen voor de gedeelde link zijn met succes opgeslagen.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Aangepaste URL's moeten tussen de 12 en 30 tekens lang zijn en kunnen letters, cijfers en koppeltekens bevatten",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Voer een aangepaste URL in",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Kan geen gedeelde link maken. Probeer het later opnieuw."
|
|
164
165
|
}
|
package/dist/i18n/pl-PL.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Ustawienia łącza udostępnionego zostały pomyślnie zapisane.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Niestandardowe adresy URL muszą mieć długość od 12 do 30 znaków i mogą zawierać litery, cyfry oraz myślniki",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Wprowadź niestandardowy adres URL",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Nie można utworzyć łącza udostępnionego. Spróbuj ponownie później."
|
|
164
165
|
}
|
package/dist/i18n/pt-BR.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "As configurações do link compartilhado foram salvas com sucesso.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "As URLs personalizadas devem ter entre 12 e 30 caracteres e podem incluir letras, números e hifens",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Insira uma URL personalizada",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Não é possível criar um link compartilhado. Tente novamente mais tarde."
|
|
164
165
|
}
|
package/dist/i18n/ru-RU.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Настройки общей ссылки сохранены.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Настраиваемые URL-адреса должны содержать от 12 до 30 символов и могут включать буквы, цифры и дефисы",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Введите настраиваемый URL-адрес",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Не удается создать общую ссылку. Повторите попытку позже."
|
|
164
165
|
}
|
package/dist/i18n/sv-SE.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Inställningarna för delad länk har sparats.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Anpassade URL:er måste vara 12–30 tecken och kan innehålla bokstäver, siffror och bindestreck",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Ange en anpassad URL",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Kunde inte skapa en delad länk. Försök igen senare."
|
|
164
165
|
}
|
package/dist/i18n/tr-TR.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Paylaşılan bağlantı ayarları başarıyla kaydedildi.",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Özel URL'ler 12 ila 30 karakter uzunluğunda olmalıdır ve harf, sayı ve tire içerebilir",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Lütfen özel bir URL girin",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Paylaşılan bir bağlantı oluşturulamadı. Lütfen daha sonra tekrar deneyin."
|
|
164
165
|
}
|
package/dist/i18n/zh-CN.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "已成功保存共享链接设置。",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "自定义 URL 必须介于 12-30 个字符之间,并可包括字母、数字和连字符",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "请输入自定义 URL",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "无法创建共享链接。请稍后重试。"
|
|
164
165
|
}
|
package/dist/i18n/zh-TW.js
CHANGED
|
@@ -160,5 +160,6 @@ export default {
|
|
|
160
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "已成功儲存共用的連結設定。",
|
|
161
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "自訂 URL 必須在 12-30 個字元之間,且可包含字母、數字和連字號",
|
|
162
162
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "請輸入自訂 URL",
|
|
163
|
+
"groupSharedFeatures.usm.warningNoticeIcon": "Warning",
|
|
163
164
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "無法建立共用連結。 請稍後再試一次。"
|
|
164
165
|
}
|
|
@@ -472,6 +472,10 @@ export interface SharingService {
|
|
|
472
472
|
*/
|
|
473
473
|
changeSharedLinkPermission?: (permission: PermissionLevelType) => Promise<void>;
|
|
474
474
|
}
|
|
475
|
+
/**
|
|
476
|
+
* Supported notice types for custom notifications.
|
|
477
|
+
*/
|
|
478
|
+
export type NotificationVariant = 'success' | 'error' | 'warning';
|
|
475
479
|
/**
|
|
476
480
|
* Response structure for sharing actions in the Unified Share Modal.
|
|
477
481
|
*/
|
|
@@ -481,7 +485,7 @@ export interface SharingResponse {
|
|
|
481
485
|
*/
|
|
482
486
|
messages?: Array<{
|
|
483
487
|
text: string;
|
|
484
|
-
type:
|
|
488
|
+
type: NotificationVariant;
|
|
485
489
|
[key: string]: string;
|
|
486
490
|
}>;
|
|
487
491
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { NotificationType } from '../types';
|
|
2
|
-
declare const getNotificationArgs: (formatMessage: any, type:
|
|
1
|
+
import { NotificationType, NotificationVariant } from '../types';
|
|
2
|
+
declare const getNotificationArgs: (formatMessage: any, type: NotificationVariant) => {
|
|
3
3
|
closeButtonAriaLabel: any;
|
|
4
4
|
sensitivity: "foreground";
|
|
5
5
|
typeIconAriaLabel: any;
|
|
6
|
-
variant:
|
|
6
|
+
variant: NotificationVariant;
|
|
7
7
|
};
|
|
8
8
|
declare const getNotificationMessage: (formatMessage: any, type: "success" | "error", notification?: NotificationType, values?: any) => any;
|
|
9
9
|
export { getNotificationArgs, getNotificationMessage };
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/unified-share-modal",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^13.5.
|
|
7
|
-
"@box/blueprint-web-assets": "^4.
|
|
8
|
-
"@box/copy-input": "^1.39.
|
|
9
|
-
"@box/user-selector": "^1.73.
|
|
6
|
+
"@box/blueprint-web": "^13.5.4",
|
|
7
|
+
"@box/blueprint-web-assets": "^4.103.0",
|
|
8
|
+
"@box/copy-input": "^1.39.9",
|
|
9
|
+
"@box/user-selector": "^1.73.10",
|
|
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": "^13.5.
|
|
17
|
-
"@box/blueprint-web-assets": "^4.
|
|
18
|
-
"@box/copy-input": "^1.39.
|
|
19
|
-
"@box/storybook-utils": "0.16.
|
|
16
|
+
"@box/blueprint-web": "^13.5.4",
|
|
17
|
+
"@box/blueprint-web-assets": "^4.103.0",
|
|
18
|
+
"@box/copy-input": "^1.39.9",
|
|
19
|
+
"@box/storybook-utils": "0.16.60",
|
|
20
20
|
"@box/eslint-plugin-blueprint": "1.1.1",
|
|
21
21
|
"react-intl": "^6.4.2"
|
|
22
22
|
},
|