@box/unified-share-modal 3.7.24 → 3.7.26

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.
@@ -1 +1 @@
1
- import{OTP_MODE}from"../esm/lib/constants.js";import{callOnKeyboardEvent}from"../esm/lib/utils/event.js";import{useUnifiedShareModalContext}from"../esm/lib/contexts/unified-share-modal-context.js";import messages from"../esm/lib/components/unified-share-form-modal/shared-link-section/messages.js";import{useIntl}from"react-intl";import{Link,Text}from"@box/blueprint-web";import{Globe,Lock}from"@box/blueprint-web-assets/icons/Medium";import{jsx,jsxs}from"react/jsx-runtime";import{bpSize040}from"@box/blueprint-web-assets/tokens/tokens";import '../styles/shared-link-footer.css';var shared_link_footer_module_default={disclosures:`_disclosures_c0arr_1`,row:`_row_c0arr_7`,icon:`_icon_c0arr_13`,settings:`_settings_c0arr_18`};function FooterRow({children,icon:Icon}){return jsxs(`div`,{className:shared_link_footer_module_default.row,children:[jsx(Icon,{className:shared_link_footer_module_default.icon,height:bpSize040,width:bpSize040}),jsx(Text,{as:`span`,color:`textOnLightSecondary`,children})]})}function SettingsLink({isSubmitting,label,onClick}){return jsx(Link,{"aria-disabled":isSubmitting,"aria-haspopup":`dialog`,className:shared_link_footer_module_default.settings,onClick,onKeyDown:callOnKeyboardEvent(onClick,{canPreventDefault:!0}),role:`button`,tabIndex:isSubmitting?-1:0,variant:`standalone`,children:label})}function SharedLinkFooter({onSharedLinkSettingsClick}){let{formatMessage}=useIntl(),{config,eventService,isSubmitting,item,setView,sharedLink,sharedLinkNotices}=useUnifiedShareModalContext(),{permissions={}}=item,{canSetShareAccess}=permissions,{access,settings={},permission}=sharedLink,{canChangeOtp,isOtpAvailable,otpAccessEntries,otpAllowlistItemCount,otpMode=OTP_MODE.NONE}=settings,{onOtpAllowlistConfigure}=eventService,otpAccessCount=otpAccessEntries?otpAccessEntries.length:otpAllowlistItemCount,isEditPermission=permission===`can_edit`,isOpenAccess=access===`open`,isCompanyEditable=access===`company`&&isEditPermission,isOtpNoticeVisible=isOpenAccess&&isOtpAvailable&&(canChangeOtp||otpMode!==`none`),handleOtpConfigureClick=()=>{if(!isSubmitting){if(onOtpAllowlistConfigure){onOtpAllowlistConfigure();return}setView(`manage-access-list`)}};return isOtpNoticeVisible?jsxs(`div`,{className:shared_link_footer_module_default.disclosures,children:[otpMode===`none`&&jsx(FooterRow,{icon:Globe,children:formatMessage(messages.sharedLinkOtpOffPrompt,{enableLink:canSetShareAccess&&canChangeOtp&&config.sharedLinkSettings?jsx(SettingsLink,{isSubmitting,label:formatMessage(messages.sharedLinkEnableOtp),onClick:onSharedLinkSettingsClick}):``})}),otpMode===`open`&&jsx(FooterRow,{icon:Lock,children:formatMessage(messages.sharedLinkOtpOpen)}),otpMode===`allowlist`&&jsx(FooterRow,{icon:Lock,children:(()=>{let configureLink=canSetShareAccess&&canChangeOtp?jsx(SettingsLink,{isSubmitting,label:formatMessage(messages.sharedLinkConfigureAccessList),onClick:handleOtpConfigureClick}):``;return canSetShareAccess&&otpAccessCount!==void 0?formatMessage(messages.sharedLinkOtpAccessListCount,{count:otpAccessCount,configureLink}):formatMessage(messages.sharedLinkOtpAccessList,{configureLink})})()}),sharedLinkNotices]}):!isOpenAccess&&!isCompanyEditable&&!sharedLinkNotices?null:jsxs(`div`,{className:shared_link_footer_module_default.disclosures,children:[isOpenAccess&&jsx(FooterRow,{icon:Globe,children:formatMessage(isEditPermission?messages.sharedLinkEditablePubliclyAvailable:messages.sharedLinkPubliclyAvailable)}),isCompanyEditable&&jsx(FooterRow,{icon:Globe,children:formatMessage(messages.sharedLinkElevatedEditableCompanyAvailable)}),sharedLinkNotices]})}export{SharedLinkFooter as t};
1
+ import{OTP_MODE}from"../esm/lib/constants.js";import{callOnKeyboardEvent}from"../esm/lib/utils/event.js";import{useUnifiedShareModalContext}from"../esm/lib/contexts/unified-share-modal-context.js";import messages from"../esm/lib/components/unified-share-form-modal/shared-link-section/messages.js";import{useIntl}from"react-intl";import{Link,Text}from"@box/blueprint-web";import{Globe,Lock}from"@box/blueprint-web-assets/icons/Medium";import{jsx,jsxs}from"react/jsx-runtime";import{bpSize040}from"@box/blueprint-web-assets/tokens/tokens";import '../styles/shared-link-footer.css';var shared_link_footer_module_default={disclosures:`_disclosures_c0arr_1`,row:`_row_c0arr_7`,icon:`_icon_c0arr_13`,settings:`_settings_c0arr_18`};function FooterRow({children,icon:Icon}){return jsxs(`div`,{className:shared_link_footer_module_default.row,children:[jsx(Icon,{className:shared_link_footer_module_default.icon,height:bpSize040,width:bpSize040}),jsx(Text,{as:`span`,color:`textOnLightSecondary`,children})]})}function SettingsLink({isSubmitting,label,onClick}){return jsx(Link,{"aria-disabled":isSubmitting,"aria-haspopup":`dialog`,className:shared_link_footer_module_default.settings,onClick,onKeyDown:callOnKeyboardEvent(onClick,{canPreventDefault:!0}),role:`button`,tabIndex:isSubmitting?-1:0,variant:`standalone`,children:label})}function SharedLinkFooter({onSharedLinkSettingsClick}){let{formatMessage}=useIntl(),{config,eventService,isSubmitting,item,setView,sharedLink,sharedLinkNotices}=useUnifiedShareModalContext(),{permissions={}}=item,{canSetShareAccess}=permissions,{access,settings={},permission}=sharedLink,{canChangeOtp,isOtpAvailable,isPasswordEnabled,otpAccessEntries,otpAllowlistItemCount,otpMode=OTP_MODE.NONE}=settings,{onOtpAllowlistConfigure}=eventService,otpAccessCount=otpAccessEntries?otpAccessEntries.length:otpAllowlistItemCount,isEditPermission=permission===`can_edit`,isOpenAccess=access===`open`,isCompanyEditable=access===`company`&&isEditPermission,isOtpNoticeVisible=isOpenAccess&&isOtpAvailable&&(canChangeOtp||otpMode!==`none`),handleOtpConfigureClick=()=>{if(!isSubmitting){if(onOtpAllowlistConfigure){onOtpAllowlistConfigure();return}setView(`manage-access-list`)}};return isOtpNoticeVisible?jsxs(`div`,{className:shared_link_footer_module_default.disclosures,children:[otpMode===`none`&&jsx(FooterRow,{icon:Globe,children:formatMessage(config.sharedLinkOtpUiPolishing&&isPasswordEnabled?messages.sharedLinkOtpOffPasswordPrompt:messages.sharedLinkOtpOffPrompt,{enableLink:canSetShareAccess&&canChangeOtp&&config.sharedLinkSettings?jsx(SettingsLink,{isSubmitting,label:formatMessage(messages.sharedLinkEnableOtp),onClick:onSharedLinkSettingsClick}):``})}),otpMode===`open`&&jsx(FooterRow,{icon:Lock,children:formatMessage(messages.sharedLinkOtpOpen)}),otpMode===`allowlist`&&jsx(FooterRow,{icon:Lock,children:(()=>{let configureLink=canSetShareAccess&&canChangeOtp?jsx(SettingsLink,{isSubmitting,label:formatMessage(messages.sharedLinkConfigureAccessList),onClick:handleOtpConfigureClick}):``;return canSetShareAccess&&otpAccessCount!==void 0?formatMessage(messages.sharedLinkOtpAccessListCount,{count:otpAccessCount,configureLink}):formatMessage(messages.sharedLinkOtpAccessList,{configureLink})})()}),sharedLinkNotices]}):!isOpenAccess&&!isCompanyEditable&&!sharedLinkNotices?null:jsxs(`div`,{className:shared_link_footer_module_default.disclosures,children:[isOpenAccess&&jsx(FooterRow,{icon:Globe,children:formatMessage(isEditPermission?messages.sharedLinkEditablePubliclyAvailable:messages.sharedLinkPubliclyAvailable)}),isCompanyEditable&&jsx(FooterRow,{icon:Globe,children:formatMessage(messages.sharedLinkElevatedEditableCompanyAvailable)}),sharedLinkNotices]})}export{SharedLinkFooter as t};
@@ -1 +1 @@
1
- import{defineMessages}from"react-intl";var messages=defineMessages({closeButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.closeButton`,defaultMessage:`Close`},shareLinkLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.shareLinkLabel`,defaultMessage:`Share Link`},sharedLinkToggleLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkToggleLabel`,defaultMessage:`Shared link`},sharedLinkToggleTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkToggleTooltip`,defaultMessage:`Create and copy link`},createLinkDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.createLinkDisabledTooltip`,defaultMessage:`You do not have permission to create the link`},removeLinkDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.removeLinkDisabledTooltip`,defaultMessage:`You do not have permission to remove the link`},sharedLinkSettingsLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkSettingsLabel`,defaultMessage:`Link Settings`},sharedLinkUrlLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkUrlLabel`,defaultMessage:`Shared link URL`},sharedLinkEmailLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEmailLabel`,defaultMessage:`Send Shared Link`},sharedLinkPubliclyAvailable:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkPubliclyAvailable`,defaultMessage:`This content is publicly available to anyone with the link.`},sharedLinkEditablePubliclyAvailable:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEditablePubliclyAvailable`,defaultMessage:`Publicly available for anyone to view and download. Any logged in users with the link can edit.`},sharedLinkElevatedEditableCompanyAvailable:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkElevatedEditableCompanyAvailable`,defaultMessage:`People who have access to this link can edit.`},sharedLinkOtpOffPrompt:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkOtpOffPrompt`,defaultMessage:`This content is publicly available to anyone with the link. Protect this link with a One-Time Passcode. {enableLink}`},sharedLinkOtpOpen:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkOtpOpen`,defaultMessage:`Access is allowed after verifying the One-Time Passcode.`},sharedLinkOtpAccessListCount:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkOtpAccessListCount`,defaultMessage:`{count, plural, one {# item} other {# items}} on the Access List. {configureLink}`},sharedLinkOtpAccessList:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkOtpAccessList`,defaultMessage:`Access is allowed for people on the Access List after verifying the One-Time Passcode. {configureLink}`},sharedLinkEnableOtp:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEnableOtp`,defaultMessage:`Enable`},sharedLinkConfigureAccessList:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkConfigureAccessList`,defaultMessage:`Configure`},expirationIconLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconLabel`,defaultMessage:`Expires`},expirationIconTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconTooltip`,defaultMessage:`This link will expire and be inaccessible on {expirationDate}`},openAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelLabel`,defaultMessage:`People with the link`},openOtpAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openOtpAccessLevelLabel`,defaultMessage:`Authorized people`},openAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelDescription`,defaultMessage:`Publicly accessible and no sign-in required`},companyAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.companyAccessLevelLabel`,defaultMessage:`People in your company`},companyAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.companyAccessLevelDescription`,defaultMessage:`Anyone in your company with the link or people invited to this {item} can access`},enterpriseAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.enterpriseAccessLevelLabel`,defaultMessage:`People in {enterprise}`},enterpriseAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.enterpriseAccessLevelDescription`,defaultMessage:`Anyone at {enterprise} with the link or people invited to this {item} can access`},collaboratorsAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.collaboratorsAccessLevelLabel`,defaultMessage:`Invited people only`},collaboratorsAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.collaboratorsAccessLevelDescription`,defaultMessage:`Only invited people can access this {item}`},fileAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.fileAccessLevelItem`,defaultMessage:`file`},folderAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.folderAccessLevelItem`,defaultMessage:`folder`},hubsAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.hubsAccessLevelItem`,defaultMessage:`hub`},promptAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.promptAccessLevelItem`,defaultMessage:`prompt`},webLinkAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.webLinkAccessLevelItem`,defaultMessage:`bookmark`},workflowAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.workflowAccessLevelItem`,defaultMessage:`workflow`},disabledAccessLevelTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.disabledAccessLevelTooltip`,defaultMessage:`This option is not available due to a security policy`},canEditPermissionLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel`,defaultMessage:`Can edit`},canDownloadPermissionLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel`,defaultMessage:`Can view and download`},canPreviewPermissionLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canPreviewPermissionLevelLabel`,defaultMessage:`Can view only`},canEditBoxNoteDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip`,defaultMessage:`This permission can only be changed in Box Notes`},autoCreateCopyErrorNoticeText:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyErrorNoticeText`,defaultMessage:`Shared link created. Click Copy to share.`},autoCreateCopySuccessNoticeText:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText`,defaultMessage:`Shared link created and copied to clipboard.`},autoCopySuccessNoticeText:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCopySuccessNoticeText`,defaultMessage:`Shared link copied to clipboard.`},copyWithEmptyAllowlistNotice:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.copyWithEmptyAllowlistNotice`,defaultMessage:`Link copied. Consider adding recipients to the access list.`}});export{messages as default};
1
+ import{defineMessages}from"react-intl";var messages=defineMessages({closeButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.closeButton`,defaultMessage:`Close`},shareLinkLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.shareLinkLabel`,defaultMessage:`Share Link`},sharedLinkToggleLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkToggleLabel`,defaultMessage:`Shared link`},sharedLinkToggleTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkToggleTooltip`,defaultMessage:`Create and copy link`},createLinkDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.createLinkDisabledTooltip`,defaultMessage:`You do not have permission to create the link`},removeLinkDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.removeLinkDisabledTooltip`,defaultMessage:`You do not have permission to remove the link`},sharedLinkSettingsLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkSettingsLabel`,defaultMessage:`Link Settings`},sharedLinkUrlLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkUrlLabel`,defaultMessage:`Shared link URL`},sharedLinkEmailLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEmailLabel`,defaultMessage:`Send Shared Link`},sharedLinkPubliclyAvailable:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkPubliclyAvailable`,defaultMessage:`This content is publicly available to anyone with the link.`},sharedLinkEditablePubliclyAvailable:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEditablePubliclyAvailable`,defaultMessage:`Publicly available for anyone to view and download. Any logged in users with the link can edit.`},sharedLinkElevatedEditableCompanyAvailable:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkElevatedEditableCompanyAvailable`,defaultMessage:`People who have access to this link can edit.`},sharedLinkOtpOffPrompt:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkOtpOffPrompt`,defaultMessage:`This content is publicly available to anyone with the link. Protect this link with a One-Time Passcode. {enableLink}`},sharedLinkOtpOffPasswordPrompt:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkOtpOffPasswordPrompt`,defaultMessage:`Anyone with the link and password can access this content. Switch to one-time passcode protection. {enableLink}`},sharedLinkOtpOpen:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkOtpOpen`,defaultMessage:`Access is allowed after verifying the One-Time Passcode.`},sharedLinkOtpAccessListCount:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkOtpAccessListCount`,defaultMessage:`{count, plural, one {# item} other {# items}} on the Access List. {configureLink}`},sharedLinkOtpAccessList:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkOtpAccessList`,defaultMessage:`Access is allowed for people on the Access List after verifying the One-Time Passcode. {configureLink}`},sharedLinkEnableOtp:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEnableOtp`,defaultMessage:`Enable`},sharedLinkConfigureAccessList:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkConfigureAccessList`,defaultMessage:`Configure`},expirationIconLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconLabel`,defaultMessage:`Expires`},expirationIconTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconTooltip`,defaultMessage:`This link will expire and be inaccessible on {expirationDate}`},openAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelLabel`,defaultMessage:`People with the link`},openOtpAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openOtpAccessLevelLabel`,defaultMessage:`Authorized people`},openAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelDescription`,defaultMessage:`Publicly accessible and no sign-in required`},companyAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.companyAccessLevelLabel`,defaultMessage:`People in your company`},companyAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.companyAccessLevelDescription`,defaultMessage:`Anyone in your company with the link or people invited to this {item} can access`},enterpriseAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.enterpriseAccessLevelLabel`,defaultMessage:`People in {enterprise}`},enterpriseAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.enterpriseAccessLevelDescription`,defaultMessage:`Anyone at {enterprise} with the link or people invited to this {item} can access`},collaboratorsAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.collaboratorsAccessLevelLabel`,defaultMessage:`Invited people only`},collaboratorsAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.collaboratorsAccessLevelDescription`,defaultMessage:`Only invited people can access this {item}`},fileAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.fileAccessLevelItem`,defaultMessage:`file`},folderAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.folderAccessLevelItem`,defaultMessage:`folder`},hubsAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.hubsAccessLevelItem`,defaultMessage:`hub`},promptAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.promptAccessLevelItem`,defaultMessage:`prompt`},webLinkAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.webLinkAccessLevelItem`,defaultMessage:`bookmark`},workflowAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.workflowAccessLevelItem`,defaultMessage:`workflow`},disabledAccessLevelTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.disabledAccessLevelTooltip`,defaultMessage:`This option is not available due to a security policy`},canEditPermissionLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel`,defaultMessage:`Can edit`},canDownloadPermissionLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel`,defaultMessage:`Can view and download`},canPreviewPermissionLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canPreviewPermissionLevelLabel`,defaultMessage:`Can view only`},canEditBoxNoteDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip`,defaultMessage:`This permission can only be changed in Box Notes`},autoCreateCopyErrorNoticeText:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyErrorNoticeText`,defaultMessage:`Shared link created. Click Copy to share.`},autoCreateCopySuccessNoticeText:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText`,defaultMessage:`Shared link created and copied to clipboard.`},autoCopySuccessNoticeText:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCopySuccessNoticeText`,defaultMessage:`Shared link copied to clipboard.`},copyWithEmptyAllowlistNotice:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.copyWithEmptyAllowlistNotice`,defaultMessage:`Link copied. Consider adding recipients to the access list.`}});export{messages as default};
@@ -1 +1 @@
1
- var OTP_MODE={ALLOWLIST:`allowlist`,NONE:`none`,OPEN:`open`},DEFAULT_VIEW=`unified-share-form`,DEFAULT_NOTIFICATIONS=[`invite-collaborators`,`remove-collaborator`,`auto-copy-shared-link`,`create-shared-link`,`delete-shared-link`,`update-shared-link`,`email-shared-link`,`update-otp-access`],DEFAULT_CONFIGURATION={collaboration:!0,collaborationLimit:100,collaborationMessage:!0,collaborationMessageLimit:750,collaborationRole:!0,collaborators:!0,collaboratorsLimit:100,collaboratorsManagement:!0,notifications:DEFAULT_NOTIFICATIONS,sharedLink:!0,sharedLinkAccess:!0,sharedLinkAutoCopy:!1,sharedLinkAutoCreate:!1,sharedLinkEmail:!0,sharedLinkEmailMessage:!0,sharedLinkPermission:!0,sharedLinkSettings:!0},DEFAULT_COLLABORATION_ROLES=[{id:`editor`,isDefault:!0},{id:`viewer`}],SUPPORTED_INVITATION_ROLES=[`co_owner`,`editor`,`previewer`,`previewer_uploader`,`uploader`,`viewer`,`viewer_uploader`],SUPPORTED_COLLABORATOR_ROLES=[`owner`,...SUPPORTED_INVITATION_ROLES],SUPPORTED_ACCESS_LEVELS=[`open`,`company`,`collaborators`],SUPPORTED_PERMISSION_LEVELS=[`can_edit`,`can_download`,`can_preview`],FILE_EXTENSION_BOX_NOTE=`boxnote`;export{DEFAULT_COLLABORATION_ROLES,DEFAULT_CONFIGURATION,DEFAULT_NOTIFICATIONS,DEFAULT_VIEW,FILE_EXTENSION_BOX_NOTE,OTP_MODE,SUPPORTED_ACCESS_LEVELS,SUPPORTED_COLLABORATOR_ROLES,SUPPORTED_INVITATION_ROLES,SUPPORTED_PERMISSION_LEVELS};
1
+ var OTP_MODE={ALLOWLIST:`allowlist`,NONE:`none`,OPEN:`open`},DEFAULT_VIEW=`unified-share-form`,DEFAULT_NOTIFICATIONS=[`invite-collaborators`,`remove-collaborator`,`auto-copy-shared-link`,`create-shared-link`,`delete-shared-link`,`update-shared-link`,`email-shared-link`,`update-otp-access`],DEFAULT_CONFIGURATION={collaboration:!0,collaborationLimit:100,collaborationMessage:!0,collaborationMessageLimit:750,collaborationRole:!0,collaborators:!0,collaboratorsLimit:100,collaboratorsManagement:!0,notifications:DEFAULT_NOTIFICATIONS,sharedLink:!0,sharedLinkAccess:!0,sharedLinkAutoCopy:!1,sharedLinkAutoCreate:!1,sharedLinkEmail:!0,sharedLinkEmailMessage:!0,sharedLinkOtpUiPolishing:!1,sharedLinkPermission:!0,sharedLinkSettings:!0},DEFAULT_COLLABORATION_ROLES=[{id:`editor`,isDefault:!0},{id:`viewer`}],SUPPORTED_INVITATION_ROLES=[`co_owner`,`editor`,`previewer`,`previewer_uploader`,`uploader`,`viewer`,`viewer_uploader`],SUPPORTED_COLLABORATOR_ROLES=[`owner`,...SUPPORTED_INVITATION_ROLES],SUPPORTED_ACCESS_LEVELS=[`open`,`company`,`collaborators`],SUPPORTED_PERMISSION_LEVELS=[`can_edit`,`can_download`,`can_preview`],FILE_EXTENSION_BOX_NOTE=`boxnote`;export{DEFAULT_COLLABORATION_ROLES,DEFAULT_CONFIGURATION,DEFAULT_NOTIFICATIONS,DEFAULT_VIEW,FILE_EXTENSION_BOX_NOTE,OTP_MODE,SUPPORTED_ACCESS_LEVELS,SUPPORTED_COLLABORATOR_ROLES,SUPPORTED_INVITATION_ROLES,SUPPORTED_PERMISSION_LEVELS};
@@ -64,6 +64,11 @@ declare const messages: {
64
64
  description: string;
65
65
  id: string;
66
66
  };
67
+ sharedLinkOtpOffPasswordPrompt: {
68
+ defaultMessage: string;
69
+ description: string;
70
+ id: string;
71
+ };
67
72
  sharedLinkOtpOpen: {
68
73
  defaultMessage: string;
69
74
  description: string;
@@ -803,6 +803,14 @@ export interface Configuration {
803
803
  * @default true
804
804
  */
805
805
  sharedLinkEmailMessage?: boolean;
806
+ /**
807
+ * Controls whether the polished OTP UI copy is shown (e.g. password-specific OTP footer prompt).
808
+ *
809
+ * Gated by the `enterprise_public_shared_link_otp_ui_polishing` feature flag in consumers.
810
+ *
811
+ * @default false
812
+ */
813
+ sharedLinkOtpUiPolishing?: boolean;
806
814
  /**
807
815
  * Controls whether the shared link permission level is visible to the user.
808
816
  *
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@box/unified-share-modal",
3
- "version": "3.7.24",
3
+ "version": "3.7.26",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
- "@box/blueprint-web": "^18.10.3",
7
- "@box/blueprint-web-assets": "^5.15.0",
8
- "@box/copy-input": "^2.3.40",
9
- "@box/user-selector": "^3.1.39",
6
+ "@box/blueprint-web": "^18.11.0",
7
+ "@box/blueprint-web-assets": "^5.15.1",
8
+ "@box/copy-input": "^2.3.41",
9
+ "@box/user-selector": "^3.1.40",
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": "^18.10.3",
17
- "@box/blueprint-web-assets": "^5.15.0",
18
- "@box/copy-input": "^2.3.40",
16
+ "@box/blueprint-web": "^18.11.0",
17
+ "@box/blueprint-web-assets": "^5.15.1",
18
+ "@box/copy-input": "^2.3.41",
19
19
  "@box/eslint-plugin-blueprint": "2.3.4",
20
- "@box/storybook-utils": "1.4.34",
20
+ "@box/storybook-utils": "1.4.35",
21
21
  "react-intl": "^6.4.2"
22
22
  },
23
23
  "publishConfig": {