@box/unified-share-modal 2.6.6 → 2.6.8
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/components/remove-collaborator-modal/remove-collaborator-modal.js +3 -2
- package/dist/esm/lib/components/remove-shared-link-modal/remove-shared-link-modal.js +3 -2
- package/dist/esm/lib/components/shared-link-settings-modal/shared-link-settings-modal.js +3 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/collaboration-section.js +3 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaborator-list/collaborator-list.js +7 -6
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-section.js +105 -112
- package/dist/esm/lib/components/unified-share-form-modal/unified-share-form-modal.js +53 -50
- package/dist/esm/lib/constants.js +1 -1
- package/dist/esm/lib/contexts/unified-share-form-context.js +27 -25
- package/dist/esm/lib/hooks/use-sharing-action.js +45 -56
- package/dist/esm/lib/messages.js +0 -4
- package/dist/esm/lib/utils/index.js +25 -22
- package/dist/esm/lib/utils/notification.js +17 -0
- package/dist/i18n/bn-IN.js +2 -2
- package/dist/i18n/da-DK.js +2 -2
- package/dist/i18n/de-DE.js +2 -2
- package/dist/i18n/en-AU.js +2 -2
- package/dist/i18n/en-CA.js +2 -2
- package/dist/i18n/en-GB.js +2 -2
- package/dist/i18n/en-US.js +0 -1
- package/dist/i18n/en-US.properties +0 -2
- package/dist/i18n/en-x-pseudo.js +2 -2
- package/dist/i18n/es-419.js +2 -2
- package/dist/i18n/es-ES.js +2 -2
- package/dist/i18n/fi-FI.js +2 -2
- package/dist/i18n/fr-CA.js +2 -2
- package/dist/i18n/fr-FR.js +2 -2
- package/dist/i18n/hi-IN.js +2 -2
- package/dist/i18n/it-IT.js +2 -2
- package/dist/i18n/ja-JP.js +2 -2
- package/dist/i18n/json/src/lib/messages.json +1 -1
- package/dist/i18n/ko-KR.js +2 -2
- package/dist/i18n/nb-NO.js +2 -2
- package/dist/i18n/nl-NL.js +2 -2
- package/dist/i18n/pl-PL.js +2 -2
- package/dist/i18n/pt-BR.js +2 -2
- package/dist/i18n/ru-RU.js +2 -2
- package/dist/i18n/sv-SE.js +2 -2
- package/dist/i18n/tr-TR.js +2 -2
- package/dist/i18n/zh-CN.js +2 -2
- package/dist/i18n/zh-TW.js +2 -2
- package/dist/styles/unified-share-form-modal.css +1 -1
- package/dist/types/lib/contexts/unified-share-form-context.d.ts +2 -0
- package/dist/types/lib/messages.d.ts +0 -5
- package/dist/types/lib/types.d.ts +1 -1
- package/dist/types/lib/utils/index.d.ts +1 -0
- package/dist/types/lib/utils/notification.d.ts +9 -0
- package/package.json +1 -1
package/dist/i18n/tr-TR.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Paylaşılan bir bağlantı oluşturulamadı. Lütfen daha sonra tekrar deneyin.",
|
|
3
2
|
"groupSharedFeatures.usm.classificationStatus.definitionLabel": "Tanım",
|
|
4
3
|
"groupSharedFeatures.usm.classificationStatus.restrictionsLabel": "Kısıtlamalar",
|
|
5
4
|
"groupSharedFeatures.usm.contactsLimitErrorMessage": "Üzgünüz! Aynı anda en fazla {maxContacts} ortak çalışan eklenebilir. Lütfen davetlerinizi gruplara ayırın ve tekrar deneyin.",
|
|
@@ -160,5 +159,6 @@ export default {
|
|
|
160
159
|
"groupSharedFeatures.usm.unifiedShareFormModal.viewerUploaderRole": "Görüntüleyici - Yükleyici",
|
|
161
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Paylaşılan bağlantı ayarları başarıyla kaydedildi.",
|
|
162
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Özel URL'ler 12 ila 30 karakter uzunluğunda olmalıdır ve harf, sayı ve tire içerebilir",
|
|
163
|
-
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Lütfen özel bir URL girin"
|
|
162
|
+
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Lütfen özel bir URL girin",
|
|
163
|
+
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Paylaşılan bir bağlantı oluşturulamadı. Lütfen daha sonra tekrar deneyin."
|
|
164
164
|
}
|
package/dist/i18n/zh-CN.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "无法创建共享链接。请稍后重试。",
|
|
3
2
|
"groupSharedFeatures.usm.classificationStatus.definitionLabel": "定义",
|
|
4
3
|
"groupSharedFeatures.usm.classificationStatus.restrictionsLabel": "限制",
|
|
5
4
|
"groupSharedFeatures.usm.contactsLimitErrorMessage": "糟糕!可以一次添加的最大协作者数量是 {maxContacts} 个协作者。请将您的邀请拆分成多个批次,然后重试。",
|
|
@@ -160,5 +159,6 @@ export default {
|
|
|
160
159
|
"groupSharedFeatures.usm.unifiedShareFormModal.viewerUploaderRole": "上传者(查看者",
|
|
161
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "已成功保存共享链接设置。",
|
|
162
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "自定义 URL 必须介于 12-30 个字符之间,并可包括字母、数字和连字符",
|
|
163
|
-
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "请输入自定义 URL"
|
|
162
|
+
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "请输入自定义 URL",
|
|
163
|
+
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "无法创建共享链接。请稍后重试。"
|
|
164
164
|
}
|
package/dist/i18n/zh-TW.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "無法建立共用連結。 請稍後再試一次。",
|
|
3
2
|
"groupSharedFeatures.usm.classificationStatus.definitionLabel": "定義",
|
|
4
3
|
"groupSharedFeatures.usm.classificationStatus.restrictionsLabel": "限制",
|
|
5
4
|
"groupSharedFeatures.usm.contactsLimitErrorMessage": "糟糕!一次最多只能新增 {maxContacts} 個共同作業者。請分批邀請並再試一次。",
|
|
@@ -160,5 +159,6 @@ export default {
|
|
|
160
159
|
"groupSharedFeatures.usm.unifiedShareFormModal.viewerUploaderRole": "具檢視權限的上傳者",
|
|
161
160
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "已成功儲存共用的連結設定。",
|
|
162
161
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "自訂 URL 必須在 12-30 個字元之間,且可包含字母、數字和連字號",
|
|
163
|
-
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "請輸入自訂 URL"
|
|
162
|
+
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "請輸入自訂 URL",
|
|
163
|
+
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "無法建立共用連結。 請稍後再試一次。"
|
|
164
164
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._content_17drm_1._content_17drm_1{max-width:480px}._content_17drm_1._content_17drm_1._isFullscreen_17drm_4{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;border-radius:0;animation:none}._content_17drm_1._content_17drm_1._isFullscreen_17drm_4 ._body_17drm_13{overflow:hidden auto}._body_17drm_13._body_17drm_13{position:relative;display:flex;flex-direction:column;flex-grow:1;padding-top:0;padding-bottom:var(--bp-space-080)}._body_17drm_13._body_17drm_13:before{display:block;width:100vw;content:""}._body_17drm_13._body_17drm_13._hasFooter_17drm_30{padding-bottom:0}._classificationStatusContainer_17drm_34{display:inline-flex;margin-left:var(--bp-space-010)}._loading_17drm_39{position:absolute;inset:0;display:flex;align-items:center;padding-bottom:var(--bp-space-080)}._form_17drm_47{display:flex;flex-direction:column;flex-grow:1}._form_17drm_47._isLoading_17drm_52{visibility:hidden}@media not (max-width:374px){._content_17drm_1._content_17drm_1{overflow:auto}}@media not (max-width:459px){:has(>._content_17drm_1._content_17drm_1:not(._isFullscreen_17drm_4)){display:flex;padding:var(--bp-space-080);overflow:auto}._content_17drm_1._content_17drm_1{max-height:none;margin:auto;overflow:visible}}
|
|
@@ -6,6 +6,8 @@ export interface UnifiedShareFormContextValue {
|
|
|
6
6
|
contactValue: string;
|
|
7
7
|
containerRef: HTMLDivElement | null;
|
|
8
8
|
form: FormType;
|
|
9
|
+
isSharedLinkAutoCopied: React.MutableRefObject<boolean>;
|
|
10
|
+
isSharedLinkAutoCreated: React.MutableRefObject<boolean>;
|
|
9
11
|
messageValue: string;
|
|
10
12
|
previousForm: FormType;
|
|
11
13
|
setCollaborationRole: Dispatch<SetStateAction<CollaborationRole | undefined>>;
|
|
@@ -59,11 +59,6 @@ declare const messages: {
|
|
|
59
59
|
description: string;
|
|
60
60
|
id: string;
|
|
61
61
|
};
|
|
62
|
-
autoCopySharedLinkErrorNoticeText: {
|
|
63
|
-
defaultMessage: string;
|
|
64
|
-
description: string;
|
|
65
|
-
id: string;
|
|
66
|
-
};
|
|
67
62
|
vanityNameInvalidErrorMessage: {
|
|
68
63
|
defaultMessage: string;
|
|
69
64
|
description: string;
|
|
@@ -29,7 +29,7 @@ export type FormType = 'default' | 'invite' | 'email' | 'collaborators';
|
|
|
29
29
|
/**
|
|
30
30
|
* Supported success and error notifications when the user performs sharing actions.
|
|
31
31
|
*/
|
|
32
|
-
export type NotificationType = 'invite-collaborators' | 'remove-collaborator' | 'create-shared-link' | 'delete-shared-link' | 'update-shared-link' | 'email-shared-link'
|
|
32
|
+
export type NotificationType = 'invite-collaborators' | 'remove-collaborator' | 'create-shared-link' | 'delete-shared-link' | 'update-shared-link' | 'email-shared-link';
|
|
33
33
|
/**
|
|
34
34
|
* Supported roles for inviting a new collaborator. The available roles are dependent on the Enterprise settings.
|
|
35
35
|
*
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NotificationType } from '../types';
|
|
2
|
+
declare const getNotificationArgs: (formatMessage: any, type: "success" | "error") => {
|
|
3
|
+
closeButtonAriaLabel: any;
|
|
4
|
+
sensitivity: "foreground";
|
|
5
|
+
typeIconAriaLabel: any;
|
|
6
|
+
variant: "success" | "error";
|
|
7
|
+
};
|
|
8
|
+
declare const getNotificationMessage: (formatMessage: any, type: "success" | "error", notification?: NotificationType, values?: any) => any;
|
|
9
|
+
export { getNotificationArgs, getNotificationMessage };
|