box-ui-elements 15.0.0-beta.7 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +3 -1
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +58 -26
- package/dist/openwith.css +1 -1
- package/dist/openwith.js +10 -17
- package/dist/picker.css +1 -1
- package/dist/picker.js +12 -19
- package/dist/preview.css +1 -1
- package/dist/preview.js +56 -24
- package/dist/sharing.css +1 -1
- package/dist/sharing.js +54 -22
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +56 -24
- package/dist/uploader.css +1 -1
- package/dist/uploader.js +12 -19
- package/es/api/uploads/UploadsReachability.js.flow +2 -2
- package/es/api/uploads/UploadsReachability.js.map +1 -1
- package/es/common/messages.js +4 -0
- package/es/common/messages.js.flow +5 -0
- package/es/common/messages.js.map +1 -1
- package/es/common/types/core.js.flow +2 -0
- package/es/common/types/core.js.map +1 -1
- package/es/components/avatar/UnknownUserAvatar.js +6 -9
- package/es/components/avatar/UnknownUserAvatar.js.map +1 -1
- package/es/components/close-button/CloseButton.js +24 -0
- package/es/components/close-button/CloseButton.js.flow +26 -0
- package/es/components/close-button/CloseButton.js.map +1 -0
- package/es/components/close-button/CloseButton.scss +10 -0
- package/es/components/close-button/CloseButton.stories.js +14 -0
- package/es/components/close-button/CloseButton.stories.js.map +1 -0
- package/es/components/close-button/index.js +2 -0
- package/es/components/close-button/index.js.flow +2 -0
- package/es/components/close-button/index.js.map +1 -0
- package/es/components/date-picker/AccessiblePikaday.js +113 -0
- package/es/components/date-picker/AccessiblePikaday.js.map +1 -0
- package/es/components/date-picker/DatePicker.js +426 -106
- package/es/components/date-picker/DatePicker.js.map +1 -1
- package/es/components/date-picker/DatePicker.scss +32 -22
- package/es/components/date-picker/DatePicker.stories.js +10 -0
- package/es/components/date-picker/DatePicker.stories.js.map +1 -1
- package/es/components/date-picker/_pikaday.scss +8 -2
- package/es/components/flyout/Flyout.js +13 -3
- package/es/components/flyout/Flyout.js.flow +14 -3
- package/es/components/flyout/Flyout.js.map +1 -1
- package/es/components/flyout/Flyout.scss +40 -0
- package/es/components/flyout/FlyoutContext.js +6 -0
- package/es/components/flyout/FlyoutContext.js.flow +9 -0
- package/es/components/flyout/FlyoutContext.js.map +1 -0
- package/es/components/flyout/OverlayHeader.js +33 -0
- package/es/components/flyout/OverlayHeader.js.map +1 -0
- package/es/components/flyout/OverlayHeader.scss +9 -0
- package/es/components/flyout/_variables.scss +1 -0
- package/es/components/flyout/index.js +2 -0
- package/es/components/flyout/index.js.flow +2 -0
- package/es/components/flyout/index.js.map +1 -1
- package/es/components/image-tooltip/ImageTooltip.js +1 -2
- package/es/components/image-tooltip/ImageTooltip.js.map +1 -1
- package/es/components/media-query/constants.js +26 -0
- package/es/components/media-query/constants.js.flow +32 -0
- package/es/components/media-query/constants.js.map +1 -0
- package/es/components/media-query/index.js +3 -0
- package/es/components/media-query/index.js.flow +4 -0
- package/es/components/media-query/index.js.map +1 -0
- package/es/components/media-query/stories/MediaQuery.stories.js +37 -0
- package/es/components/media-query/stories/MediaQuery.stories.js.flow +80 -0
- package/es/components/media-query/stories/MediaQuery.stories.js.map +1 -0
- package/es/components/media-query/types.js +2 -0
- package/es/components/media-query/types.js.flow +29 -0
- package/es/components/media-query/types.js.map +1 -0
- package/es/components/media-query/useMediaQuery.js +91 -0
- package/es/components/media-query/useMediaQuery.js.flow +97 -0
- package/es/components/media-query/useMediaQuery.js.map +1 -0
- package/es/components/media-query/withMediaQuery.js +21 -0
- package/es/components/media-query/withMediaQuery.js.flow +23 -0
- package/es/components/media-query/withMediaQuery.js.map +1 -0
- package/es/components/modal/Modal.scss +27 -0
- package/es/components/preview/previewIcons.js +4 -0
- package/es/components/preview/previewIcons.js.map +1 -1
- package/es/components/search-form/SearchForm.scss +0 -5
- package/es/components/selector-dropdown/SelectorDropdown.js +5 -3
- package/es/components/selector-dropdown/SelectorDropdown.js.flow +3 -3
- package/es/components/selector-dropdown/SelectorDropdown.js.map +1 -1
- package/es/components/tab-view/Tabs.scss +0 -4
- package/es/components/tooltip/Tooltip.js +21 -4
- package/es/components/tooltip/Tooltip.js.map +1 -1
- package/es/constants.js +1 -0
- package/es/constants.js.flow +1 -0
- package/es/constants.js.map +1 -1
- package/es/elements/content-open-with/IconFileMap.js +0 -2
- package/es/elements/content-open-with/IconFileMap.js.flow +0 -2
- package/es/elements/content-open-with/IconFileMap.js.map +1 -1
- package/es/elements/content-sidebar/Sidebar.js +2 -1
- package/es/elements/content-sidebar/Sidebar.js.flow +1 -1
- package/es/elements/content-sidebar/Sidebar.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +3 -3
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js +14 -4
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.flow +18 -5
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.map +1 -1
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js +78 -0
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.flow +97 -0
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.map +1 -0
- package/es/elements/content-sidebar/versions/StaticVersionsSidebar.scss +67 -0
- package/es/elements/content-sidebar/versions/VersionsSidebar.js +12 -4
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.flow +16 -3
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.map +1 -1
- package/es/elements/content-sidebar/versions/VersionsSidebar.scss +5 -0
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js +42 -10
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.flow +42 -7
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.map +1 -1
- package/es/elements/content-sidebar/versions/flowTypes.js.flow +1 -0
- package/es/elements/content-sidebar/versions/messages.js +20 -0
- package/es/elements/content-sidebar/versions/messages.js.flow +28 -0
- package/es/elements/content-sidebar/versions/messages.js.map +1 -1
- package/es/features/classification/constants.js +2 -1
- package/es/features/classification/constants.js.flow +2 -0
- package/es/features/classification/constants.js.map +1 -1
- package/es/features/classification/flowTypes.js +1 -0
- package/es/features/classification/flowTypes.js.flow +7 -1
- package/es/features/classification/flowTypes.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControls.js +3 -4
- package/es/features/classification/security-controls/SecurityControls.js.flow +3 -4
- package/es/features/classification/security-controls/SecurityControls.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.js +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.js.flow +20 -17
- package/es/features/classification/security-controls/SecurityControlsItem.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.scss +4 -0
- package/es/features/classification/security-controls/SecurityControlsModal.js +2 -2
- package/es/features/classification/security-controls/SecurityControlsModal.js.flow +2 -2
- package/es/features/classification/security-controls/SecurityControlsModal.js.map +1 -1
- package/es/features/classification/security-controls/messages.js +4 -0
- package/es/features/classification/security-controls/messages.js.flow +5 -0
- package/es/features/classification/security-controls/messages.js.map +1 -1
- package/es/features/classification/security-controls/utils.js +56 -35
- package/es/features/classification/security-controls/utils.js.flow +51 -27
- package/es/features/classification/security-controls/utils.js.map +1 -1
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js +9 -3
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js.flow +13 -5
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js.map +1 -1
- package/es/features/collapsible-sidebar/CollapsibleSidebar.scss +35 -3
- package/es/features/content-explorer/content-explorer/ContentExplorer.scss +1 -1
- package/es/features/content-explorer/item-list/ItemList.js +1 -0
- package/es/features/content-explorer/item-list/ItemList.js.flow +1 -0
- package/es/features/content-explorer/item-list/ItemList.js.map +1 -1
- package/es/features/content-explorer/item-list/ItemListName.js +13 -2
- package/es/features/content-explorer/item-list/ItemListName.js.flow +3 -2
- package/es/features/content-explorer/item-list/ItemListName.js.map +1 -1
- package/es/features/header-flyout/HeaderFlyout.js +8 -10
- package/es/features/header-flyout/HeaderFlyout.js.flow +4 -8
- package/es/features/header-flyout/HeaderFlyout.js.map +1 -1
- package/es/features/header-flyout/styles/HeaderFlyout.scss +54 -15
- package/es/features/header-flyout/styles/_variables.scss +4 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js +1 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js.flow +1 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js.map +1 -1
- package/es/features/presence/PresenceCollaborator.js +90 -0
- package/es/features/presence/PresenceCollaborator.js.flow +81 -0
- package/es/features/presence/PresenceCollaborator.js.map +1 -0
- package/es/features/presence/PresenceCollaborator.scss +28 -0
- package/es/features/presence/PresenceCollaboratorsList.js +9 -57
- package/es/features/presence/PresenceCollaboratorsList.js.flow +7 -58
- package/es/features/presence/PresenceCollaboratorsList.js.map +1 -1
- package/es/features/presence/PresenceCollaboratorsList.scss +8 -35
- package/es/features/quick-search/QuickSearch.js +4 -2
- package/es/features/quick-search/QuickSearch.js.flow +13 -1
- package/es/features/quick-search/QuickSearch.js.map +1 -1
- package/es/features/unified-share-modal/SharedLinkSection.js +9 -20
- package/es/features/unified-share-modal/SharedLinkSection.js.flow +6 -27
- package/es/features/unified-share-modal/SharedLinkSection.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareForm.js +95 -53
- package/es/features/unified-share-modal/UnifiedShareForm.js.flow +70 -14
- package/es/features/unified-share-modal/UnifiedShareForm.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareModal.scss +3 -0
- package/es/features/unified-share-modal/flowTypes.js.flow +6 -0
- package/es/features/unified-share-modal/flowTypes.js.map +1 -1
- package/es/features/unified-share-modal/messages.js +8 -0
- package/es/features/unified-share-modal/messages.js.flow +10 -0
- package/es/features/unified-share-modal/messages.js.map +1 -1
- package/es/features/unified-share-modal/utils/mergeContacts.js +13 -10
- package/es/features/unified-share-modal/utils/mergeContacts.js.flow +4 -2
- package/es/features/unified-share-modal/utils/mergeContacts.js.map +1 -1
- package/es/icon/content/FileXbd32.js +39 -0
- package/es/icon/content/FileXbd32.js.flow +38 -0
- package/es/icon/content/FileXbd32.js.map +1 -0
- package/es/icon/content/FileXbd32.stories.js +13 -0
- package/es/icon/content/FileXbd32.stories.js.map +1 -0
- package/es/icon/content/FileXdw32.js +39 -0
- package/es/icon/content/FileXdw32.js.flow +38 -0
- package/es/icon/content/FileXdw32.js.map +1 -0
- package/es/icon/content/FileXdw32.stories.js +13 -0
- package/es/icon/content/FileXdw32.stories.js.map +1 -0
- package/es/icon/content/RetentionPolicyModifiable32.js +36 -0
- package/es/icon/content/RetentionPolicyModifiable32.js.flow +31 -0
- package/es/icon/content/RetentionPolicyModifiable32.js.map +1 -0
- package/es/icon/content/RetentionPolicyModifiable32.stories.js +13 -0
- package/es/icon/content/RetentionPolicyModifiable32.stories.js.map +1 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js +36 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js.flow +31 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js.map +1 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.stories.js +13 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.stories.js.map +1 -0
- package/es/icons/avatars/UnknownUserAvatar.js +10 -34
- package/es/icons/avatars/UnknownUserAvatar.js.map +1 -1
- package/es/icons/file-icon/FileIcon.js +8 -2
- package/es/icons/file-icon/FileIcon.js.flow +2 -2
- package/es/icons/file-icon/FileIcon.js.map +1 -1
- package/es/icons/general/IconSearch.js +1 -1
- package/es/icons/general/IconSearch.js.flow +1 -1
- package/es/icons/general/IconSearch.js.map +1 -1
- package/es/icons/general/IconSearchJuicy.js +30 -0
- package/es/icons/general/IconSearchJuicy.js.flow +26 -0
- package/es/icons/general/IconSearchJuicy.js.map +1 -0
- package/es/icons/google-docs/IconGoogle.js +89 -0
- package/es/icons/google-docs/IconGoogle.js.flow +57 -0
- package/es/icons/google-docs/IconGoogle.js.map +1 -0
- package/es/icons/item-icon/ItemIcon.js +4 -0
- package/es/icons/item-icon/ItemIcon.js.map +1 -1
- package/es/icons/microsoft-office/IconOffice.js +80 -0
- package/es/icons/microsoft-office/IconOffice.js.flow +45 -0
- package/es/icons/microsoft-office/IconOffice.js.map +1 -0
- package/es/illustration/EmailVerification140.js +111 -0
- package/es/illustration/EmailVerification140.js.flow +102 -0
- package/es/illustration/EmailVerification140.js.map +1 -0
- package/es/illustration/EmailVerification140.stories.js +13 -0
- package/es/illustration/EmailVerification140.stories.js.map +1 -0
- package/es/src/components/close-button/CloseButton.d.ts +9 -0
- package/es/src/components/close-button/CloseButton.stories.d.ts +9 -0
- package/es/src/components/close-button/__tests__/CloseButton.stories.test.d.ts +0 -0
- package/es/src/components/close-button/__tests__/CloseButton.test.d.ts +1 -0
- package/es/src/components/close-button/index.d.ts +1 -0
- package/es/src/components/date-picker/AccessiblePikaday.d.ts +16 -0
- package/es/src/components/date-picker/DatePicker.d.ts +33 -6
- package/es/src/components/date-picker/DatePicker.stories.d.ts +2 -1
- package/es/src/components/flyout/OverlayHeader.d.ts +10 -0
- package/es/src/components/tooltip/Tooltip.d.ts +4 -3
- package/es/src/icon/content/FileXbd32.d.ts +13 -0
- package/es/src/icon/content/FileXbd32.stories.d.ts +9 -0
- package/es/src/icon/content/FileXdw32.d.ts +13 -0
- package/es/src/icon/content/FileXdw32.stories.d.ts +9 -0
- package/es/src/icon/content/RetentionPolicyModifiable32.d.ts +13 -0
- package/es/src/icon/content/RetentionPolicyModifiable32.stories.d.ts +9 -0
- package/es/src/icon/content/RetentionPolicyNonModifiable32.d.ts +13 -0
- package/es/src/icon/content/RetentionPolicyNonModifiable32.stories.d.ts +9 -0
- package/es/src/icons/avatars/UnknownUserAvatar.d.ts +0 -1
- package/es/src/icons/general/IconSearchJuicy.d.ts +3 -0
- package/es/src/icons/general/__tests__/IconSearchJuicy.test.d.ts +1 -0
- package/es/src/icons/google-docs/IconGoogle.d.ts +12 -0
- package/es/src/icons/google-docs/__tests__/IconGoogle.test.d.ts +1 -0
- package/es/src/icons/item-icon/ItemIcon.d.ts +2 -0
- package/es/src/icons/microsoft-office/IconOffice.d.ts +12 -0
- package/es/src/icons/microsoft-office/__tests__/IconOffice.test.d.ts +1 -0
- package/es/src/illustration/EmailVerification140.d.ts +13 -0
- package/es/src/illustration/EmailVerification140.stories.d.ts +9 -0
- package/es/src/styles/variables.d.ts +9 -0
- package/es/styles/_variables.scss +1 -0
- package/es/styles/common/_forms.scss +6 -0
- package/es/styles/constants/_layout.scss +3 -0
- package/es/styles/constants/_media-queries.scss +15 -0
- package/es/styles/variables.js +18 -0
- package/es/styles/variables.js.flow +10 -1
- package/es/styles/variables.js.map +1 -1
- package/es/utils/Browser.js +12 -0
- package/es/utils/Browser.js.flow +10 -0
- package/es/utils/Browser.js.map +1 -1
- package/es/utils/validators.js +26 -4
- package/es/utils/validators.js.flow +25 -3
- package/es/utils/validators.js.map +1 -1
- package/i18n/bn-IN.js +12 -0
- package/i18n/bn-IN.properties +24 -0
- package/i18n/da-DK.js +12 -0
- package/i18n/da-DK.properties +24 -0
- package/i18n/de-DE.js +12 -0
- package/i18n/de-DE.properties +24 -0
- package/i18n/en-AU.js +12 -0
- package/i18n/en-AU.properties +24 -0
- package/i18n/en-CA.js +12 -0
- package/i18n/en-CA.properties +24 -0
- package/i18n/en-GB.js +12 -0
- package/i18n/en-GB.properties +24 -0
- package/i18n/en-US.js +12 -0
- package/i18n/en-US.properties +24 -0
- package/i18n/en-x-pseudo.js +12 -0
- package/i18n/es-419.js +12 -0
- package/i18n/es-419.properties +24 -0
- package/i18n/es-ES.js +12 -0
- package/i18n/es-ES.properties +24 -0
- package/i18n/fi-FI.js +12 -0
- package/i18n/fi-FI.properties +24 -0
- package/i18n/fr-CA.js +12 -0
- package/i18n/fr-CA.properties +24 -0
- package/i18n/fr-FR.js +12 -0
- package/i18n/fr-FR.properties +24 -0
- package/i18n/hi-IN.js +12 -0
- package/i18n/hi-IN.properties +24 -0
- package/i18n/it-IT.js +12 -0
- package/i18n/it-IT.properties +24 -0
- package/i18n/ja-JP.js +25 -13
- package/i18n/ja-JP.properties +37 -13
- package/i18n/ko-KR.js +12 -0
- package/i18n/ko-KR.properties +24 -0
- package/i18n/nb-NO.js +12 -0
- package/i18n/nb-NO.properties +24 -0
- package/i18n/nl-NL.js +12 -0
- package/i18n/nl-NL.properties +24 -0
- package/i18n/pl-PL.js +12 -0
- package/i18n/pl-PL.properties +24 -0
- package/i18n/pt-BR.js +12 -0
- package/i18n/pt-BR.properties +24 -0
- package/i18n/ru-RU.js +12 -0
- package/i18n/ru-RU.properties +24 -0
- package/i18n/sv-SE.js +12 -0
- package/i18n/sv-SE.properties +24 -0
- package/i18n/tr-TR.js +12 -0
- package/i18n/tr-TR.properties +24 -0
- package/i18n/zh-CN.js +12 -0
- package/i18n/zh-CN.properties +24 -0
- package/i18n/zh-TW.js +12 -0
- package/i18n/zh-TW.properties +24 -0
- package/package.json +8 -5
- package/src/__mocks__/pikaday.js +1 -0
- package/src/api/__tests__/MockOpenWithData.json +2 -25
- package/src/api/uploads/UploadsReachability.js +2 -2
- package/src/common/messages.js +5 -0
- package/src/common/types/core.js +2 -0
- package/src/components/avatar/UnknownUserAvatar.tsx +5 -4
- package/src/components/close-button/CloseButton.js.flow +26 -0
- package/src/components/close-button/CloseButton.scss +10 -0
- package/src/components/close-button/CloseButton.stories.md +1 -0
- package/src/components/close-button/CloseButton.stories.tsx +14 -0
- package/src/components/close-button/CloseButton.tsx +30 -0
- package/src/components/close-button/__tests__/CloseButton.stories.test.tsx +6 -0
- package/src/components/close-button/__tests__/CloseButton.test.tsx +40 -0
- package/src/components/close-button/__tests__/__image_snapshots__/close-button-stories-test-tsx-components-close-button-close-button-looks-visually-correct-when-using-story-components-buttons-closebutton-regular-1-snap.png +0 -0
- package/src/components/close-button/index.js.flow +2 -0
- package/src/components/close-button/index.ts +1 -0
- package/src/components/date-picker/AccessiblePikaday.ts +79 -0
- package/src/components/date-picker/DatePicker.scss +32 -22
- package/src/components/date-picker/DatePicker.stories.tsx +6 -0
- package/src/components/date-picker/DatePicker.tsx +350 -64
- package/src/components/date-picker/__tests__/DatePicker.test.tsx +44 -2
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-allows-editing-in-story-components-datepicker-manually-editable-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-allows-keyboard-selection-in-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-closes-calendar-and-clears-date-for-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-custom-error-tooltip-position-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-disabled-with-error-message-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-manually-editable-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-description-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-limited-date-range-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-range-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-reflects-changes-in-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-shows-calendar-and-date-for-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-shows-limited-range-in-components-datepicker-with-limited-date-range-1-snap.png +0 -0
- package/src/components/date-picker/_pikaday.scss +8 -2
- package/src/components/flyout/Flyout.js +14 -3
- package/src/components/flyout/Flyout.scss +40 -0
- package/src/components/flyout/FlyoutContext.js +9 -0
- package/src/components/flyout/OverlayHeader.scss +9 -0
- package/src/components/flyout/OverlayHeader.tsx +38 -0
- package/src/components/flyout/__tests__/Flyout.test.js +15 -0
- package/src/components/flyout/__tests__/OverlayHeader.test.js +56 -0
- package/src/components/flyout/_variables.scss +1 -0
- package/src/components/flyout/index.js +2 -0
- package/src/components/image-tooltip/ImageTooltip.tsx +1 -2
- package/src/components/media-query/__tests__/useMediaQuery.test.js +48 -0
- package/src/components/media-query/__tests__/withMediaQuery.test.js +29 -0
- package/src/components/media-query/constants.js +32 -0
- package/src/components/media-query/index.js +4 -0
- package/src/components/media-query/stories/MediaQuery.stories.js +80 -0
- package/src/components/media-query/stories/MediaQuery.stories.md +29 -0
- package/src/components/media-query/types.js +29 -0
- package/src/components/media-query/useMediaQuery.js +97 -0
- package/src/components/media-query/withMediaQuery.js +23 -0
- package/src/components/modal/Modal.scss +27 -0
- package/src/components/modal/__tests__/Modal.stories.test.js +10 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-for-small-screens-when-button-is-clicked-in-story-components-modal-basic-1-snap.png +0 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-for-small-screens-when-button-is-clicked-in-story-components-modal-with-custom-backdrop-click-handler-1-snap.png +0 -0
- package/src/components/preview/previewIcons.ts +4 -0
- package/src/components/search-form/SearchForm.scss +0 -5
- package/src/components/selector-dropdown/SelectorDropdown.js +3 -3
- package/src/components/selector-dropdown/__tests__/SelectorDropdown.test.js +5 -1
- package/src/components/sidebar-toggle-button/__tests__/__snapshots__/SidebarToggleButton.test.js.snap +0 -8
- package/src/components/tab-view/Tabs.scss +0 -4
- package/src/components/tooltip/Tooltip.tsx +20 -5
- package/src/components/tooltip/__tests__/Tooltip.test.tsx +17 -4
- package/src/components/tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +0 -2
- package/src/constants.js +1 -0
- package/src/elements/content-open-with/IconFileMap.js +0 -2
- package/src/elements/content-open-with/__tests__/ContentOpenWith.test.js +13 -13
- package/src/elements/content-open-with/__tests__/OpenWithButton.test.js +1 -1
- package/src/elements/content-open-with/__tests__/OpenWithDropdownMenu.test.js +1 -5
- package/src/elements/content-open-with/__tests__/OpenWithDropdownMenuItem.test.js +2 -2
- package/src/elements/content-open-with/__tests__/__snapshots__/ContentOpenWith.test.js.snap +5 -5
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithButton.test.js.snap +1 -1
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithDropdownMenu.test.js.snap +1 -11
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithDropdownMenuItem.test.js.snap +4 -3
- package/src/elements/content-sidebar/Sidebar.js +1 -1
- package/src/elements/content-sidebar/__tests__/AddTaskButton.test.js +15 -0
- package/src/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +3 -3
- package/src/elements/content-sidebar/activity-feed/task-form/TaskForm.js +18 -5
- package/src/elements/content-sidebar/versions/StaticVersionSidebar.js +97 -0
- package/src/elements/content-sidebar/versions/StaticVersionsSidebar.scss +67 -0
- package/src/elements/content-sidebar/versions/VersionsSidebar.js +16 -3
- package/src/elements/content-sidebar/versions/VersionsSidebar.scss +5 -0
- package/src/elements/content-sidebar/versions/VersionsSidebarContainer.js +42 -7
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebar.test.js +18 -1
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebarContainer.test.js +51 -2
- package/src/elements/content-sidebar/versions/__tests__/__snapshots__/VersionsSidebarContainer.test.js.snap +75 -0
- package/src/elements/content-sidebar/versions/flowTypes.js +1 -0
- package/src/elements/content-sidebar/versions/messages.js +28 -0
- package/src/features/classification/constants.js +2 -0
- package/src/features/classification/flowTypes.js +7 -1
- package/src/features/classification/security-controls/SecurityControls.js +3 -4
- package/src/features/classification/security-controls/SecurityControlsItem.js +20 -17
- package/src/features/classification/security-controls/SecurityControlsItem.scss +4 -0
- package/src/features/classification/security-controls/SecurityControlsModal.js +2 -2
- package/src/features/classification/security-controls/__tests__/SecurityControlsItem.test.js +10 -0
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControls.test.js.snap +6 -6
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControlsItem.test.js.snap +35 -0
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControlsModal.test.js.snap +2 -2
- package/src/features/classification/security-controls/__tests__/__snapshots__/utils.test.js.snap +20 -0
- package/src/features/classification/security-controls/__tests__/utils.test.js +38 -18
- package/src/features/classification/security-controls/messages.js +5 -0
- package/src/features/classification/security-controls/utils.js +51 -27
- package/src/features/collapsible-sidebar/CollapsibleSidebar.js +13 -5
- package/src/features/collapsible-sidebar/CollapsibleSidebar.scss +35 -3
- package/src/features/collapsible-sidebar/__tests__/CollapsibleSidebar.test.js +35 -0
- package/src/features/collapsible-sidebar/__tests__/__snapshots__/CollapsibleSidebar.test.js.snap +1 -0
- package/src/features/content-explorer/content-explorer/ContentExplorer.scss +1 -1
- package/src/features/content-explorer/item-list/ItemList.js +1 -0
- package/src/features/content-explorer/item-list/ItemListName.js +3 -2
- package/src/features/content-explorer/item-list/__tests__/ItemListName.test.js +16 -2
- package/src/features/header-flyout/HeaderFlyout.js +4 -8
- package/src/features/header-flyout/__tests__/__snapshots__/HeaderFlyout.test.js.snap +14 -11
- package/src/features/header-flyout/styles/HeaderFlyout.scss +54 -15
- package/src/features/header-flyout/styles/_variables.scss +4 -0
- package/src/features/message-center/components/message-center-modal/MessageCenterModal.js +1 -0
- package/src/features/metadata-instance-editor/__tests__/__snapshots__/TemplateDropdown.test.js.snap +7 -0
- package/src/features/pagination/__tests__/__snapshots__/MarkerBasedPagination.test.js.snap +0 -8
- package/src/features/pagination/__tests__/__snapshots__/OffsetBasedPagination.test.js.snap +0 -16
- package/src/features/presence/PresenceCollaborator.js +81 -0
- package/src/features/presence/PresenceCollaborator.scss +28 -0
- package/src/features/presence/PresenceCollaboratorsList.js +7 -58
- package/src/features/presence/PresenceCollaboratorsList.scss +8 -35
- package/src/features/presence/__tests__/PresenceCollaborator.test.js +36 -0
- package/src/features/presence/__tests__/PresenceCollaboratorsList.test.js +13 -57
- package/src/features/presence/__tests__/__snapshots__/Presence.test.js.snap +5 -0
- package/src/features/presence/__tests__/__snapshots__/PresenceLink.test.js.snap +3 -0
- package/src/features/query-bar/__tests__/__snapshots__/ColumnButton.test.js.snap +3 -0
- package/src/features/quick-search/QuickSearch.js +13 -1
- package/src/features/quick-search/__tests__/QuickSearch.test.js +17 -0
- package/src/features/unified-share-modal/SharedLinkSection.js +6 -27
- package/src/features/unified-share-modal/UnifiedShareForm.js +70 -14
- package/src/features/unified-share-modal/UnifiedShareModal.scss +3 -0
- package/src/features/unified-share-modal/__tests__/EmailForm.test.js +9 -0
- package/src/features/unified-share-modal/__tests__/SharedLinkSection.test.js +14 -4
- package/src/features/unified-share-modal/__tests__/UnifiedShareForm.test.js +53 -4
- package/src/features/unified-share-modal/__tests__/__snapshots__/SharedLinkSection.test.js.snap +9 -0
- package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareForm.test.js.snap +0 -159
- package/src/features/unified-share-modal/flowTypes.js +6 -0
- package/src/features/unified-share-modal/messages.js +10 -0
- package/src/features/unified-share-modal/utils/__tests__/mergeContacts.test.js +23 -0
- package/src/features/unified-share-modal/utils/mergeContacts.js +4 -2
- package/src/icon/content/FileXbd32.js.flow +38 -0
- package/src/icon/content/FileXbd32.stories.tsx +13 -0
- package/src/icon/content/FileXbd32.tsx +37 -0
- package/src/icon/content/FileXdw32.js.flow +38 -0
- package/src/icon/content/FileXdw32.stories.tsx +13 -0
- package/src/icon/content/FileXdw32.tsx +37 -0
- package/src/icon/content/RetentionPolicyModifiable32.js.flow +31 -0
- package/src/icon/content/RetentionPolicyModifiable32.stories.tsx +14 -0
- package/src/icon/content/RetentionPolicyModifiable32.tsx +29 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.js.flow +31 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.stories.tsx +14 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.tsx +29 -0
- package/src/icons/adobe-sign/README.md +1 -1
- package/src/icons/avatars/UnknownUserAvatar.tsx +7 -15
- package/src/icons/file-icon/FileIcon.js.flow +2 -2
- package/src/icons/file-icon/FileIcon.tsx +8 -2
- package/src/icons/file-icon/__tests__/FileIcon.test.tsx +28 -69
- package/src/icons/file-icon/__tests__/__snapshots__/FileIcon.test.tsx.snap +48 -34
- package/src/icons/general/IconSearch.js.flow +1 -1
- package/src/icons/general/IconSearch.tsx +1 -1
- package/src/icons/general/IconSearchJuicy.js.flow +26 -0
- package/src/icons/general/IconSearchJuicy.tsx +25 -0
- package/src/icons/general/README.md +5 -0
- package/src/icons/general/__tests__/IconSearchJuicy.test.tsx +38 -0
- package/src/icons/google-docs/IconGoogle.js.flow +57 -0
- package/src/icons/google-docs/IconGoogle.tsx +50 -0
- package/src/icons/google-docs/__tests__/IconGoogle.test.tsx +44 -0
- package/src/icons/item-icon/ItemIcon.tsx +4 -0
- package/src/icons/item-icon/__tests__/ItemIcon.test.tsx +47 -115
- package/src/icons/item-icon/__tests__/__snapshots__/ItemIcon.test.tsx.snap +229 -229
- package/src/icons/microsoft-office/IconOffice.js.flow +45 -0
- package/src/icons/microsoft-office/IconOffice.tsx +38 -0
- package/src/icons/microsoft-office/__tests__/IconOffice.test.tsx +44 -0
- package/src/illustration/EmailVerification140.js.flow +102 -0
- package/src/illustration/EmailVerification140.stories.tsx +13 -0
- package/src/illustration/EmailVerification140.tsx +100 -0
- package/src/styles/_variables.scss +1 -0
- package/src/styles/common/_forms.scss +6 -0
- package/src/styles/constants/_layout.scss +3 -0
- package/src/styles/constants/_media-queries.scss +15 -0
- package/src/styles/variables.js +10 -1
- package/src/styles/variables.json +10 -1
- package/src/styles/variables.ts +9 -0
- package/src/utils/Browser.js +10 -0
- package/src/utils/validators.js +25 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/features/classification/constants.js"],"names":["DEFAULT_MAX_APP_COUNT","SECURITY_CONTROLS_FORMAT","FULL","SHORT","SHORT_WITH_BTN","ACCESS_POLICY_RESTRICTION","SHARED_LINK","DOWNLOAD","EXTERNAL_COLLAB","APP","FTP","DOWNLOAD_CONTROL","DESKTOP","MOBILE","WEB","LIST_ACCESS_LEVEL","BLACKLIST","BLOCK","WHITELIST","MANAGED_USERS_ACCESS_LEVEL","OWNERS_AND_COOWNERS","OWNERS_COOWNERS_AND_EDITORS","SHARED_LINK_ACCESS_LEVEL","COLLAB_AND_COMPANY_ONLY","COLLAB_ONLY","PUBLIC","APP_RESTRICTION_MESSAGE_TYPE","DEFAULT","WITH_APP_LIST","WITH_OVERFLOWN_APP_LIST","CLASSIFICATION_COLOR_ID_0","CLASSIFICATION_COLOR_ID_1","CLASSIFICATION_COLOR_ID_2","CLASSIFICATION_COLOR_ID_3","CLASSIFICATION_COLOR_ID_4","CLASSIFICATION_COLOR_ID_5","CLASSIFICATION_COLOR_ID_6","CLASSIFICATION_COLOR_ID_7","DEFAULT_CLASSIFICATION_COLOR_ID"],"mappings":"AACA,IAAMA,qBAAqB,GAAG,CAA9B;AAEA,IAAMC,wBAIL,GAAG;AACAC,EAAAA,IAAI,EAAE,MADN;AAEAC,EAAAA,KAAK,EAAE,OAFP;AAGAC,EAAAA,cAAc,EAAE;AAHhB,CAJJ;AAUA,IAAMC,
|
|
1
|
+
{"version":3,"sources":["../../../src/features/classification/constants.js"],"names":["DEFAULT_MAX_APP_COUNT","SECURITY_CONTROLS_FORMAT","FULL","SHORT","SHORT_WITH_BTN","ACCESS_POLICY_RESTRICTION","SHARED_LINK","DOWNLOAD","EXTERNAL_COLLAB","APP","FTP","WATERMARK","DOWNLOAD_CONTROL","DESKTOP","MOBILE","WEB","LIST_ACCESS_LEVEL","BLACKLIST","BLOCK","WHITELIST","MANAGED_USERS_ACCESS_LEVEL","OWNERS_AND_COOWNERS","OWNERS_COOWNERS_AND_EDITORS","SHARED_LINK_ACCESS_LEVEL","COLLAB_AND_COMPANY_ONLY","COLLAB_ONLY","PUBLIC","APP_RESTRICTION_MESSAGE_TYPE","DEFAULT","WITH_APP_LIST","WITH_OVERFLOWN_APP_LIST","CLASSIFICATION_COLOR_ID_0","CLASSIFICATION_COLOR_ID_1","CLASSIFICATION_COLOR_ID_2","CLASSIFICATION_COLOR_ID_3","CLASSIFICATION_COLOR_ID_4","CLASSIFICATION_COLOR_ID_5","CLASSIFICATION_COLOR_ID_6","CLASSIFICATION_COLOR_ID_7","DEFAULT_CLASSIFICATION_COLOR_ID"],"mappings":"AACA,IAAMA,qBAAqB,GAAG,CAA9B;AAEA,IAAMC,wBAIL,GAAG;AACAC,EAAAA,IAAI,EAAE,MADN;AAEAC,EAAAA,KAAK,EAAE,OAFP;AAGAC,EAAAA,cAAc,EAAE;AAHhB,CAJJ;AAUA,IAAMC,yBAOL,GAAG;AACAC,EAAAA,WAAW,EAAE,YADb;AAEAC,EAAAA,QAAQ,EAAE,UAFV;AAGAC,EAAAA,eAAe,EAAE,gBAHjB;AAIAC,EAAAA,GAAG,EAAE,KAJL;AAKAC,EAAAA,GAAG,EAAE,KALL;AAMAC,EAAAA,SAAS,EAAE;AANX,CAPJ;AAgBA,IAAMC,gBAKL,GAAG;AACAC,EAAAA,OAAO,EAAE,SADT;AAEAH,EAAAA,GAAG,EAAE,KAFL;AAGAI,EAAAA,MAAM,EAAE,QAHR;AAIAC,EAAAA,GAAG,EAAE;AAJL,CALJ;AAYA,IAAMC,iBAIL,GAAG;AACAC,EAAAA,SAAS,EAAE,WADX;AAEAC,EAAAA,KAAK,EAAE,OAFP;AAGAC,EAAAA,SAAS,EAAE;AAHX,CAJJ;AAUA,IAAMC,0BAGL,GAAG;AACAC,EAAAA,mBAAmB,EAAE,gBADrB;AAEAC,EAAAA,2BAA2B,EAAE;AAF7B,CAHJ;AAQA,IAAMC,wBAIL,GAAG;AACAC,EAAAA,uBAAuB,EAAE,sBADzB;AAEAC,EAAAA,WAAW,EAAE,YAFb;AAGAC,EAAAA,MAAM,EAAE;AAHR,CAJJ;AAUA,IAAMC,4BAA4B,GAAG;AACjCC,EAAAA,OAAO,EAAE,SADwB;AAEjCC,EAAAA,aAAa,EAAE,aAFkB;AAGjCC,EAAAA,uBAAuB,EAAE;AAHQ,CAArC;AAMA,IAAMC,yBAAyB,GAAG,CAAlC;AACA,IAAMC,yBAAyB,GAAG,CAAlC;AACA,IAAMC,yBAAyB,GAAG,CAAlC;AACA,IAAMC,yBAAyB,GAAG,CAAlC;AACA,IAAMC,yBAAyB,GAAG,CAAlC;AACA,IAAMC,yBAAyB,GAAG,CAAlC;AACA,IAAMC,yBAAyB,GAAG,CAAlC;AACA,IAAMC,yBAAyB,GAAG,CAAlC;AAEA,IAAMC,+BAA+B,GAAGR,yBAAxC;AAEA,SACI1B,yBADJ,EAEIsB,4BAFJ,EAGII,yBAHJ,EAIIC,yBAJJ,EAKIC,yBALJ,EAMIC,yBANJ,EAOIC,yBAPJ,EAQIC,yBARJ,EASIC,yBATJ,EAUIC,yBAVJ,EAWIC,+BAXJ,EAYIvC,qBAZJ,EAaIY,gBAbJ,EAcII,iBAdJ,EAeII,0BAfJ,EAgBInB,wBAhBJ,EAiBIsB,wBAjBJ","sourcesContent":["// @flow\nconst DEFAULT_MAX_APP_COUNT = 3;\n\nconst SECURITY_CONTROLS_FORMAT: {\n FULL: 'full',\n SHORT: 'short',\n SHORT_WITH_BTN: 'shortWithBtn',\n} = {\n FULL: 'full',\n SHORT: 'short',\n SHORT_WITH_BTN: 'shortWithBtn',\n};\n\nconst ACCESS_POLICY_RESTRICTION: {\n APP: 'app',\n DOWNLOAD: 'download',\n EXTERNAL_COLLAB: 'externalCollab',\n FTP: 'ftp',\n SHARED_LINK: 'sharedLink',\n WATERMARK: 'watermark',\n} = {\n SHARED_LINK: 'sharedLink',\n DOWNLOAD: 'download',\n EXTERNAL_COLLAB: 'externalCollab',\n APP: 'app',\n FTP: 'ftp',\n WATERMARK: 'watermark',\n};\n\nconst DOWNLOAD_CONTROL: {\n DESKTOP: 'desktop',\n FTP: 'ftp',\n MOBILE: 'mobile',\n WEB: 'web',\n} = {\n DESKTOP: 'desktop',\n FTP: 'ftp',\n MOBILE: 'mobile',\n WEB: 'web',\n};\n\nconst LIST_ACCESS_LEVEL: {\n BLACKLIST: 'blacklist',\n BLOCK: 'block',\n WHITELIST: 'whitelist',\n} = {\n BLACKLIST: 'blacklist',\n BLOCK: 'block',\n WHITELIST: 'whitelist',\n};\n\nconst MANAGED_USERS_ACCESS_LEVEL: {\n OWNERS_AND_COOWNERS: 'ownersCoOwners',\n OWNERS_COOWNERS_AND_EDITORS: 'ownersCoOwnersEditors',\n} = {\n OWNERS_AND_COOWNERS: 'ownersCoOwners',\n OWNERS_COOWNERS_AND_EDITORS: 'ownersCoOwnersEditors',\n};\n\nconst SHARED_LINK_ACCESS_LEVEL: {\n COLLAB_AND_COMPANY_ONLY: 'companyAndCollabOnly',\n COLLAB_ONLY: 'collabOnly',\n PUBLIC: 'public',\n} = {\n COLLAB_AND_COMPANY_ONLY: 'companyAndCollabOnly',\n COLLAB_ONLY: 'collabOnly',\n PUBLIC: 'public',\n};\n\nconst APP_RESTRICTION_MESSAGE_TYPE = {\n DEFAULT: 'default',\n WITH_APP_LIST: 'withAppList',\n WITH_OVERFLOWN_APP_LIST: 'withOverflownAppList',\n};\n\nconst CLASSIFICATION_COLOR_ID_0 = 0;\nconst CLASSIFICATION_COLOR_ID_1 = 1;\nconst CLASSIFICATION_COLOR_ID_2 = 2;\nconst CLASSIFICATION_COLOR_ID_3 = 3;\nconst CLASSIFICATION_COLOR_ID_4 = 4;\nconst CLASSIFICATION_COLOR_ID_5 = 5;\nconst CLASSIFICATION_COLOR_ID_6 = 6;\nconst CLASSIFICATION_COLOR_ID_7 = 7;\n\nconst DEFAULT_CLASSIFICATION_COLOR_ID = CLASSIFICATION_COLOR_ID_0;\n\nexport {\n ACCESS_POLICY_RESTRICTION,\n APP_RESTRICTION_MESSAGE_TYPE,\n CLASSIFICATION_COLOR_ID_0,\n CLASSIFICATION_COLOR_ID_1,\n CLASSIFICATION_COLOR_ID_2,\n CLASSIFICATION_COLOR_ID_3,\n CLASSIFICATION_COLOR_ID_4,\n CLASSIFICATION_COLOR_ID_5,\n CLASSIFICATION_COLOR_ID_6,\n CLASSIFICATION_COLOR_ID_7,\n DEFAULT_CLASSIFICATION_COLOR_ID,\n DEFAULT_MAX_APP_COUNT,\n DOWNLOAD_CONTROL,\n LIST_ACCESS_LEVEL,\n MANAGED_USERS_ACCESS_LEVEL,\n SECURITY_CONTROLS_FORMAT,\n SHARED_LINK_ACCESS_LEVEL,\n};\n"],"file":"constants.js"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @flow
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import type { MessageDescriptor } from 'react-intl';
|
|
3
4
|
|
|
4
5
|
import {
|
|
@@ -44,17 +45,22 @@ type SharedLinkRestrictions = {
|
|
|
44
45
|
accessLevel: SharedLinkAccessLevel,
|
|
45
46
|
};
|
|
46
47
|
|
|
48
|
+
type watermarkApplied = {
|
|
49
|
+
enabled?: boolean,
|
|
50
|
+
};
|
|
51
|
+
|
|
47
52
|
type Controls = {
|
|
48
53
|
app?: ApplicationRestriction,
|
|
49
54
|
download?: DownloadRestrictions,
|
|
50
55
|
externalCollab?: ExternalCollabRestriction,
|
|
51
56
|
sharedLink?: SharedLinkRestrictions,
|
|
57
|
+
watermark?: watermarkApplied,
|
|
52
58
|
};
|
|
53
59
|
|
|
54
60
|
type ControlsFormat = $Values<typeof SECURITY_CONTROLS_FORMAT>;
|
|
55
61
|
|
|
56
62
|
type MessageItem = {
|
|
57
|
-
message: MessageDescriptor,
|
|
63
|
+
message: MessageDescriptor | React.Node,
|
|
58
64
|
tooltipMessage?: MessageDescriptor,
|
|
59
65
|
};
|
|
60
66
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/features/classification/flowTypes.js"],"names":["LIST_ACCESS_LEVEL","MANAGED_USERS_ACCESS_LEVEL","SECURITY_CONTROLS_FORMAT","SHARED_LINK_ACCESS_LEVEL"],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"sources":["../../../src/features/classification/flowTypes.js"],"names":["React","LIST_ACCESS_LEVEL","MANAGED_USERS_ACCESS_LEVEL","SECURITY_CONTROLS_FORMAT","SHARED_LINK_ACCESS_LEVEL"],"mappings":"AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAGA,SACIC,iBADJ,EAEIC,0BAFJ,EAGIC,wBAHJ,EAIIC,wBAJJ,QAKO,aALP","sourcesContent":["// @flow\nimport * as React from 'react';\nimport type { MessageDescriptor } from 'react-intl';\n\nimport {\n LIST_ACCESS_LEVEL,\n MANAGED_USERS_ACCESS_LEVEL,\n SECURITY_CONTROLS_FORMAT,\n SHARED_LINK_ACCESS_LEVEL,\n} from './constants';\n\ntype DownloadManagedUserAccessLevel = $Values<typeof MANAGED_USERS_ACCESS_LEVEL> | null;\n\ntype SharedLinkAccessLevel = $Values<typeof SHARED_LINK_ACCESS_LEVEL> | null;\n\ntype ExternalCollabAccessLevel = $Values<typeof LIST_ACCESS_LEVEL> | null;\n\ntype ApplicationAccessLevel = $Values<typeof LIST_ACCESS_LEVEL> | null;\n\ntype App = {\n displayText: string,\n};\n\ntype ExternalCollabRestriction = {\n accessLevel?: ExternalCollabAccessLevel,\n};\n\ntype ApplicationRestriction = {\n accessLevel?: ApplicationAccessLevel,\n apps: Array<App>,\n};\n\ntype DownloadRestriction = {\n restrictExternalUsers?: boolean,\n restrictManagedUsers?: DownloadManagedUserAccessLevel,\n};\n\ntype DownloadRestrictions = {\n desktop?: DownloadRestriction,\n mobile?: DownloadRestriction,\n web?: DownloadRestriction,\n};\n\ntype SharedLinkRestrictions = {\n accessLevel: SharedLinkAccessLevel,\n};\n\ntype watermarkApplied = {\n enabled?: boolean,\n};\n\ntype Controls = {\n app?: ApplicationRestriction,\n download?: DownloadRestrictions,\n externalCollab?: ExternalCollabRestriction,\n sharedLink?: SharedLinkRestrictions,\n watermark?: watermarkApplied,\n};\n\ntype ControlsFormat = $Values<typeof SECURITY_CONTROLS_FORMAT>;\n\ntype MessageItem = {\n message: MessageDescriptor | React.Node,\n tooltipMessage?: MessageDescriptor,\n};\n\nexport type {\n ApplicationRestriction,\n Controls,\n ControlsFormat,\n DownloadRestrictions,\n ExternalCollabRestriction,\n MessageItem,\n SharedLinkRestrictions,\n};\n"],"file":"flowTypes.js"}
|
|
@@ -87,8 +87,7 @@ function (_React$Component) {
|
|
|
87
87
|
if (controlsFormat === FULL) {
|
|
88
88
|
items = getFullSecurityControlsMessages(controls, maxAppCount);
|
|
89
89
|
} else {
|
|
90
|
-
|
|
91
|
-
items = shortMessage ? [shortMessage] : [];
|
|
90
|
+
items = getShortSecurityControlsMessage(controls);
|
|
92
91
|
|
|
93
92
|
if (items.length && controlsFormat === SHORT_WITH_BTN) {
|
|
94
93
|
modalItems = getFullSecurityControlsMessages(controls, maxAppCount);
|
|
@@ -103,11 +102,11 @@ function (_React$Component) {
|
|
|
103
102
|
var shouldShowSecurityControlsModal = controlsFormat === SHORT_WITH_BTN && !!itemName && !!classificationName && !!definition;
|
|
104
103
|
var itemsList = React.createElement("ul", {
|
|
105
104
|
className: "bdl-SecurityControls"
|
|
106
|
-
}, items.map(function (_ref) {
|
|
105
|
+
}, items.map(function (_ref, index) {
|
|
107
106
|
var message = _ref.message,
|
|
108
107
|
tooltipMessage = _ref.tooltipMessage;
|
|
109
108
|
return React.createElement(SecurityControlsItem, {
|
|
110
|
-
key:
|
|
109
|
+
key: index,
|
|
111
110
|
message: message,
|
|
112
111
|
tooltipMessage: tooltipMessage
|
|
113
112
|
});
|
|
@@ -67,8 +67,7 @@ class SecurityControls extends React.Component<Props, State> {
|
|
|
67
67
|
if (controlsFormat === FULL) {
|
|
68
68
|
items = getFullSecurityControlsMessages(controls, maxAppCount);
|
|
69
69
|
} else {
|
|
70
|
-
|
|
71
|
-
items = shortMessage ? [shortMessage] : [];
|
|
70
|
+
items = getShortSecurityControlsMessage(controls);
|
|
72
71
|
|
|
73
72
|
if (items.length && controlsFormat === SHORT_WITH_BTN) {
|
|
74
73
|
modalItems = getFullSecurityControlsMessages(controls, maxAppCount);
|
|
@@ -85,8 +84,8 @@ class SecurityControls extends React.Component<Props, State> {
|
|
|
85
84
|
|
|
86
85
|
let itemsList = (
|
|
87
86
|
<ul className="bdl-SecurityControls">
|
|
88
|
-
{items.map(({ message, tooltipMessage }) => (
|
|
89
|
-
<SecurityControlsItem key={
|
|
87
|
+
{items.map(({ message, tooltipMessage }, index) => (
|
|
88
|
+
<SecurityControlsItem key={index} message={message} tooltipMessage={tooltipMessage} />
|
|
90
89
|
))}
|
|
91
90
|
</ul>
|
|
92
91
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/classification/security-controls/SecurityControls.js"],"names":["React","FormattedMessage","DEFAULT_MAX_APP_COUNT","SECURITY_CONTROLS_FORMAT","getShortSecurityControlsMessage","getFullSecurityControlsMessages","messages","PlainButton","Label","SecurityControlsItem","SecurityControlsModal","FULL","SHORT","SHORT_WITH_BTN","SecurityControls","isSecurityControlsModalOpen","setState","props","classificationColor","classificationName","controls","controlsFormat","definition","itemName","maxAppCount","shouldRenderLabel","items","modalItems","
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/classification/security-controls/SecurityControls.js"],"names":["React","FormattedMessage","DEFAULT_MAX_APP_COUNT","SECURITY_CONTROLS_FORMAT","getShortSecurityControlsMessage","getFullSecurityControlsMessages","messages","PlainButton","Label","SecurityControlsItem","SecurityControlsModal","FULL","SHORT","SHORT_WITH_BTN","SecurityControls","isSecurityControlsModalOpen","setState","props","classificationColor","classificationName","controls","controlsFormat","definition","itemName","maxAppCount","shouldRenderLabel","items","modalItems","length","state","shouldShowSecurityControlsModal","itemsList","map","index","message","tooltipMessage","securityControlsLabel","openModal","viewAll","closeModal","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,gBAAT,QAAiC,YAAjC;AAEA,SAASC,qBAAT,EAAgCC,wBAAhC,QAAgE,cAAhE;AACA,SAASC,+BAAT,EAA0CC,+BAA1C,QAAiF,SAAjF;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,WAAP,MAAwB,kCAAxB;AACA,OAAOC,KAAP,MAAkB,iCAAlB;AACA,OAAOC,oBAAP,MAAiC,wBAAjC;AACA,OAAOC,qBAAP,MAAkC,yBAAlC;AAGA,OAAO,yBAAP;IAEQC,I,GAAgCR,wB,CAAhCQ,I;IAAMC,K,GAA0BT,wB,CAA1BS,K;IAAOC,c,GAAmBV,wB,CAAnBU,c;;IAiBfC,gB;;;;;;;;;;;;;;;;;;4DAWM;AACJC,MAAAA,2BAA2B,EAAE;AADzB,K;;gEAII;AAAA,aAAM,MAAKC,QAAL,CAAc;AAAED,QAAAA,2BAA2B,EAAE;AAA/B,OAAd,CAAN;AAAA,K;;iEAEC;AAAA,aAAM,MAAKC,QAAL,CAAc;AAAED,QAAAA,2BAA2B,EAAE;AAA/B,OAAd,CAAN;AAAA,K;;;;;;;6BAEJ;AAAA,wBAUD,KAAKE,KAVJ;AAAA,UAEDC,mBAFC,eAEDA,mBAFC;AAAA,UAGDC,kBAHC,eAGDA,kBAHC;AAAA,UAIDC,QAJC,eAIDA,QAJC;AAAA,UAKDC,cALC,eAKDA,cALC;AAAA,UAMDC,UANC,eAMDA,UANC;AAAA,UAODC,QAPC,eAODA,QAPC;AAAA,UAQDC,WARC,eAQDA,WARC;AAAA,UASDC,iBATC,eASDA,iBATC;AAYL,UAAIC,KAAK,GAAG,EAAZ;AACA,UAAIC,UAAJ;;AAEA,UAAIN,cAAc,KAAKV,IAAvB,EAA6B;AACzBe,QAAAA,KAAK,GAAGrB,+BAA+B,CAACe,QAAD,EAAWI,WAAX,CAAvC;AACH,OAFD,MAEO;AACHE,QAAAA,KAAK,GAAGtB,+BAA+B,CAACgB,QAAD,CAAvC;;AAEA,YAAIM,KAAK,CAACE,MAAN,IAAgBP,cAAc,KAAKR,cAAvC,EAAuD;AACnDc,UAAAA,UAAU,GAAGtB,+BAA+B,CAACe,QAAD,EAAWI,WAAX,CAA5C;AACH;AACJ;;AAED,UAAI,CAACE,KAAK,CAACE,MAAX,EAAmB;AACf,eAAO,IAAP;AACH;;AA3BI,UA6BGb,2BA7BH,GA6BmC,KAAKc,KA7BxC,CA6BGd,2BA7BH;AA8BL,UAAMe,+BAA+B,GACjCT,cAAc,KAAKR,cAAnB,IAAqC,CAAC,CAACU,QAAvC,IAAmD,CAAC,CAACJ,kBAArD,IAA2E,CAAC,CAACG,UADjF;AAGA,UAAIS,SAAS,GACT;AAAI,QAAA,SAAS,EAAC;AAAd,SACKL,KAAK,CAACM,GAAN,CAAU,gBAA8BC,KAA9B;AAAA,YAAGC,OAAH,QAAGA,OAAH;AAAA,YAAYC,cAAZ,QAAYA,cAAZ;AAAA,eACP,oBAAC,oBAAD;AAAsB,UAAA,GAAG,EAAEF,KAA3B;AAAkC,UAAA,OAAO,EAAEC,OAA3C;AAAoD,UAAA,cAAc,EAAEC;AAApE,UADO;AAAA,OAAV,CADL,CADJ;;AAQA,UAAIV,iBAAJ,EAAuB;AACnBM,QAAAA,SAAS,GAAG,oBAAC,KAAD;AAAO,UAAA,IAAI,EAAE,oBAAC,gBAAD,EAAsBzB,QAAQ,CAAC8B,qBAA/B;AAAb,WAAwEL,SAAxE,CAAZ;AACH;;AAED,aACI,0CACKA,SADL,EAEKD,+BAA+B,IAC5B,0CACI,oBAAC,WAAD;AAAa,QAAA,SAAS,EAAC,KAAvB;AAA6B,QAAA,OAAO,EAAE,KAAKO,SAA3C;AAAsD,QAAA,IAAI,EAAC;AAA3D,SACI,oBAAC,gBAAD,EAAsB/B,QAAQ,CAACgC,OAA/B,CADJ,CADJ,EAII,oBAAC,qBAAD;AACI,QAAA,mBAAmB,EAAEpB,mBADzB;AAEI,QAAA,kBAAkB,EAAEC,kBAFxB;AAGI,QAAA,UAAU,EAAE,KAAKoB,UAHrB;AAII,QAAA,UAAU,EAAEjB,UAJhB;AAKI,QAAA,QAAQ,EAAEC,QALd;AAMI,QAAA,2BAA2B,EAAER,2BANjC;AAOI,QAAA,UAAU,EAAEY;AAPhB,QAJJ,CAHR,CADJ;AAqBH;;;;EArF0B3B,KAAK,CAACwC,S;;gBAA/B1B,gB,kBACoB;AAClBK,EAAAA,kBAAkB,EAAE,EADF;AAElBG,EAAAA,UAAU,EAAE,EAFM;AAGlBC,EAAAA,QAAQ,EAAE,EAHQ;AAIlBH,EAAAA,QAAQ,EAAE,EAJQ;AAKlBC,EAAAA,cAAc,EAAET,KALE;AAMlBY,EAAAA,WAAW,EAAEtB,qBANK;AAOlBuB,EAAAA,iBAAiB,EAAE;AAPD,C;;AAwF1B,eAAeX,gBAAf","sourcesContent":["// @flow\nimport * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { DEFAULT_MAX_APP_COUNT, SECURITY_CONTROLS_FORMAT } from '../constants';\nimport { getShortSecurityControlsMessage, getFullSecurityControlsMessages } from './utils';\nimport messages from './messages';\nimport PlainButton from '../../../components/plain-button';\nimport Label from '../../../components/label/Label';\nimport SecurityControlsItem from './SecurityControlsItem';\nimport SecurityControlsModal from './SecurityControlsModal';\nimport type { Controls, ControlsFormat } from '../flowTypes';\n\nimport './SecurityControls.scss';\n\nconst { FULL, SHORT, SHORT_WITH_BTN } = SECURITY_CONTROLS_FORMAT;\n\ntype Props = {\n classificationColor?: string,\n classificationName?: string,\n controls: Controls,\n controlsFormat: ControlsFormat,\n definition?: string,\n itemName?: string,\n maxAppCount?: number,\n shouldRenderLabel?: boolean,\n};\n\ntype State = {\n isSecurityControlsModalOpen: boolean,\n};\n\nclass SecurityControls extends React.Component<Props, State> {\n static defaultProps = {\n classificationName: '',\n definition: '',\n itemName: '',\n controls: {},\n controlsFormat: SHORT,\n maxAppCount: DEFAULT_MAX_APP_COUNT,\n shouldRenderLabel: false,\n };\n\n state = {\n isSecurityControlsModalOpen: false,\n };\n\n openModal = () => this.setState({ isSecurityControlsModalOpen: true });\n\n closeModal = () => this.setState({ isSecurityControlsModalOpen: false });\n\n render() {\n const {\n classificationColor,\n classificationName,\n controls,\n controlsFormat,\n definition,\n itemName,\n maxAppCount,\n shouldRenderLabel,\n } = this.props;\n\n let items = [];\n let modalItems;\n\n if (controlsFormat === FULL) {\n items = getFullSecurityControlsMessages(controls, maxAppCount);\n } else {\n items = getShortSecurityControlsMessage(controls);\n\n if (items.length && controlsFormat === SHORT_WITH_BTN) {\n modalItems = getFullSecurityControlsMessages(controls, maxAppCount);\n }\n }\n\n if (!items.length) {\n return null;\n }\n\n const { isSecurityControlsModalOpen } = this.state;\n const shouldShowSecurityControlsModal =\n controlsFormat === SHORT_WITH_BTN && !!itemName && !!classificationName && !!definition;\n\n let itemsList = (\n <ul className=\"bdl-SecurityControls\">\n {items.map(({ message, tooltipMessage }, index) => (\n <SecurityControlsItem key={index} message={message} tooltipMessage={tooltipMessage} />\n ))}\n </ul>\n );\n\n if (shouldRenderLabel) {\n itemsList = <Label text={<FormattedMessage {...messages.securityControlsLabel} />}>{itemsList}</Label>;\n }\n\n return (\n <>\n {itemsList}\n {shouldShowSecurityControlsModal && (\n <>\n <PlainButton className=\"lnk\" onClick={this.openModal} type=\"button\">\n <FormattedMessage {...messages.viewAll} />\n </PlainButton>\n <SecurityControlsModal\n classificationColor={classificationColor}\n classificationName={classificationName}\n closeModal={this.closeModal}\n definition={definition}\n itemName={itemName}\n isSecurityControlsModalOpen={isSecurityControlsModalOpen}\n modalItems={modalItems}\n />\n </>\n )}\n </>\n );\n }\n}\n\nexport type { Props as SecurityControlsProps };\nexport default SecurityControls;\n"],"file":"SecurityControls.js"}
|
|
@@ -11,7 +11,7 @@ var SecurityControlsItem = function SecurityControlsItem(_ref) {
|
|
|
11
11
|
tooltipMessage = _ref.tooltipMessage;
|
|
12
12
|
return React.createElement("li", {
|
|
13
13
|
className: "bdl-SecurityControlsItem"
|
|
14
|
-
}, React.createElement(FormattedMessage, message), tooltipMessage && React.createElement(Tooltip, {
|
|
14
|
+
}, React.isValidElement(message) ? message : React.createElement(FormattedMessage, message), tooltipMessage && React.createElement(Tooltip, {
|
|
15
15
|
className: "bdl-SecurityControlsItem-tooltip",
|
|
16
16
|
text: React.createElement(FormattedMessage, tooltipMessage),
|
|
17
17
|
position: "middle-right",
|
|
@@ -13,22 +13,25 @@ type Props = MessageItem;
|
|
|
13
13
|
|
|
14
14
|
const ICON_SIZE = 13;
|
|
15
15
|
|
|
16
|
-
const SecurityControlsItem = ({ message, tooltipMessage }: Props) =>
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
)
|
|
16
|
+
const SecurityControlsItem = ({ message, tooltipMessage }: Props) => {
|
|
17
|
+
return (
|
|
18
|
+
<li className="bdl-SecurityControlsItem">
|
|
19
|
+
{/* $FlowFixMe */}
|
|
20
|
+
{React.isValidElement(message) ? message : <FormattedMessage {...message} />}
|
|
21
|
+
{tooltipMessage && (
|
|
22
|
+
<Tooltip
|
|
23
|
+
className="bdl-SecurityControlsItem-tooltip"
|
|
24
|
+
text={<FormattedMessage {...tooltipMessage} />}
|
|
25
|
+
position="middle-right"
|
|
26
|
+
isTabbable={false}
|
|
27
|
+
>
|
|
28
|
+
<span className="bdl-SecurityControlsItem-tooltipIcon">
|
|
29
|
+
<IconInfo color={bdlBoxBlue} width={ICON_SIZE} height={ICON_SIZE} />
|
|
30
|
+
</span>
|
|
31
|
+
</Tooltip>
|
|
32
|
+
)}
|
|
33
|
+
</li>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
33
36
|
|
|
34
37
|
export default SecurityControlsItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/classification/security-controls/SecurityControlsItem.js"],"names":["React","FormattedMessage","bdlBoxBlue","Tooltip","IconInfo","ICON_SIZE","SecurityControlsItem","message","tooltipMessage"],"mappings":"AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,gBAAT,QAAiC,YAAjC;AAEA,SAASC,UAAT,QAA2B,2BAA3B;AACA,OAAOC,OAAP,MAAoB,6BAApB;AACA,OAAOC,QAAP,MAAqB,iCAArB;AAGA,OAAO,6BAAP;AAIA,IAAMC,SAAS,GAAG,EAAlB;;AAEA,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAuB;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/classification/security-controls/SecurityControlsItem.js"],"names":["React","FormattedMessage","bdlBoxBlue","Tooltip","IconInfo","ICON_SIZE","SecurityControlsItem","message","tooltipMessage","isValidElement"],"mappings":"AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,gBAAT,QAAiC,YAAjC;AAEA,SAASC,UAAT,QAA2B,2BAA3B;AACA,OAAOC,OAAP,MAAoB,6BAApB;AACA,OAAOC,QAAP,MAAqB,iCAArB;AAGA,OAAO,6BAAP;AAIA,IAAMC,SAAS,GAAG,EAAlB;;AAEA,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAuB,OAAwC;AAAA,MAArCC,OAAqC,QAArCA,OAAqC;AAAA,MAA5BC,cAA4B,QAA5BA,cAA4B;AACjE,SACI;AAAI,IAAA,SAAS,EAAC;AAAd,KAEKR,KAAK,CAACS,cAAN,CAAqBF,OAArB,IAAgCA,OAAhC,GAA0C,oBAAC,gBAAD,EAAsBA,OAAtB,CAF/C,EAGKC,cAAc,IACX,oBAAC,OAAD;AACI,IAAA,SAAS,EAAC,kCADd;AAEI,IAAA,IAAI,EAAE,oBAAC,gBAAD,EAAsBA,cAAtB,CAFV;AAGI,IAAA,QAAQ,EAAC,cAHb;AAII,IAAA,UAAU,EAAE;AAJhB,KAMI;AAAM,IAAA,SAAS,EAAC;AAAhB,KACI,oBAAC,QAAD;AAAU,IAAA,KAAK,EAAEN,UAAjB;AAA6B,IAAA,KAAK,EAAEG,SAApC;AAA+C,IAAA,MAAM,EAAEA;AAAvD,IADJ,CANJ,CAJR,CADJ;AAkBH,CAnBD;;AAqBA,eAAeC,oBAAf","sourcesContent":["// @flow\nimport * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { bdlBoxBlue } from '../../../styles/variables';\nimport Tooltip from '../../../components/tooltip';\nimport IconInfo from '../../../icons/general/IconInfo';\nimport type { MessageItem } from '../flowTypes';\n\nimport './SecurityControlsItem.scss';\n\ntype Props = MessageItem;\n\nconst ICON_SIZE = 13;\n\nconst SecurityControlsItem = ({ message, tooltipMessage }: Props) => {\n return (\n <li className=\"bdl-SecurityControlsItem\">\n {/* $FlowFixMe */}\n {React.isValidElement(message) ? message : <FormattedMessage {...message} />}\n {tooltipMessage && (\n <Tooltip\n className=\"bdl-SecurityControlsItem-tooltip\"\n text={<FormattedMessage {...tooltipMessage} />}\n position=\"middle-right\"\n isTabbable={false}\n >\n <span className=\"bdl-SecurityControlsItem-tooltipIcon\">\n <IconInfo color={bdlBoxBlue} width={ICON_SIZE} height={ICON_SIZE} />\n </span>\n </Tooltip>\n )}\n </li>\n );\n};\n\nexport default SecurityControlsItem;\n"],"file":"SecurityControlsItem.js"}
|
|
@@ -44,11 +44,11 @@ var SecurityControlsModal = function SecurityControlsModal(_ref) {
|
|
|
44
44
|
className: "bdl-SecurityControlsModal-definition"
|
|
45
45
|
}, definition)), React.createElement("ul", {
|
|
46
46
|
className: "bdl-SecurityControlsModal-controlsItemList"
|
|
47
|
-
}, modalItems.map(function (_ref2) {
|
|
47
|
+
}, modalItems.map(function (_ref2, index) {
|
|
48
48
|
var message = _ref2.message,
|
|
49
49
|
tooltipMessage = _ref2.tooltipMessage;
|
|
50
50
|
return React.createElement(SecurityControlsItem, {
|
|
51
|
-
key:
|
|
51
|
+
key: index,
|
|
52
52
|
message: message,
|
|
53
53
|
tooltipMessage: tooltipMessage
|
|
54
54
|
});
|
|
@@ -53,8 +53,8 @@ const SecurityControlsModal = ({
|
|
|
53
53
|
<p className="bdl-SecurityControlsModal-definition">{definition}</p>
|
|
54
54
|
</Label>
|
|
55
55
|
<ul className="bdl-SecurityControlsModal-controlsItemList">
|
|
56
|
-
{modalItems.map(({ message, tooltipMessage }) => (
|
|
57
|
-
<SecurityControlsItem key={
|
|
56
|
+
{modalItems.map(({ message, tooltipMessage }, index) => (
|
|
57
|
+
<SecurityControlsItem key={index} message={message} tooltipMessage={tooltipMessage} />
|
|
58
58
|
))}
|
|
59
59
|
</ul>
|
|
60
60
|
<ModalActions>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/classification/security-controls/SecurityControlsModal.js"],"names":["React","FormattedMessage","Modal","ModalActions","commonMessages","Button","classificationMessages","ClassifiedBadge","Label","messages","SecurityControlsItem","SecurityControlsModal","closeModal","definition","classificationColor","classificationName","isSecurityControlsModalOpen","itemName","modalItems","title","modalTitle","modalDescription","map","
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/classification/security-controls/SecurityControlsModal.js"],"names":["React","FormattedMessage","Modal","ModalActions","commonMessages","Button","classificationMessages","ClassifiedBadge","Label","messages","SecurityControlsItem","SecurityControlsModal","closeModal","definition","classificationColor","classificationName","isSecurityControlsModalOpen","itemName","modalItems","title","modalTitle","modalDescription","map","index","message","tooltipMessage","close","defaultProps"],"mappings":";;AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,gBAAT,QAAiC,YAAjC;AAEA,SAASC,KAAT,EAAgBC,YAAhB,QAAoC,2BAApC;AACA,OAAOC,cAAP,MAA2B,0BAA3B;AACA,OAAOC,MAAP,MAAmB,4BAAnB;AACA,OAAOC,sBAAP,MAAmC,aAAnC;AACA,OAAOC,eAAP,MAA4B,oBAA5B;AACA,OAAOC,KAAP,MAAkB,iCAAlB;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,oBAAP,MAAiC,wBAAjC;AACA,OAAO,8BAAP;;AAaA,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAwB,OAQjB;AAAA,MAPTC,UAOS,QAPTA,UAOS;AAAA,MANTC,UAMS,QANTA,UAMS;AAAA,MALTC,mBAKS,QALTA,mBAKS;AAAA,MAJTC,kBAIS,QAJTA,kBAIS;AAAA,MAHTC,2BAGS,QAHTA,2BAGS;AAAA,MAFTC,QAES,QAFTA,QAES;AAAA,MADTC,UACS,QADTA,UACS;;AACT,MAAI,CAACD,QAAD,IAAa,CAACF,kBAAd,IAAoC,CAACF,UAAzC,EAAqD;AACjD,WAAO,IAAP;AACH;;AAED,MAAMM,KAAK,GAAG,oBAAC,gBAAD,eAAsBV,QAAQ,CAACW,UAA/B;AAA2C,IAAA,MAAM,EAAE;AAAEH,MAAAA,QAAQ,EAARA;AAAF;AAAnD,KAAd;AAEA,SACI,oBAAC,KAAD;AACI,IAAA,SAAS,EAAC,2BADd;AAEI,IAAA,KAAK,EAAEE,KAFX;AAGI,IAAA,cAAc,EAAEP,UAHpB;AAII,IAAA,MAAM,EAAEI;AAJZ,KAMI,+BACI,oBAAC,gBAAD,EAAsBP,QAAQ,CAACY,gBAA/B,CADJ,CANJ,EASI,oBAAC,eAAD;AAAiB,IAAA,KAAK,EAAEP,mBAAxB;AAA6C,IAAA,IAAI,EAAIC;AAArD,IATJ,EAUI,oBAAC,KAAD;AAAO,IAAA,IAAI,EAAE,oBAAC,gBAAD,EAAsBT,sBAAsB,CAACO,UAA7C;AAAb,KACI;AAAG,IAAA,SAAS,EAAC;AAAb,KAAqDA,UAArD,CADJ,CAVJ,EAaI;AAAI,IAAA,SAAS,EAAC;AAAd,KACKK,UAAU,CAACI,GAAX,CAAe,iBAA8BC,KAA9B;AAAA,QAAGC,OAAH,SAAGA,OAAH;AAAA,QAAYC,cAAZ,SAAYA,cAAZ;AAAA,WACZ,oBAAC,oBAAD;AAAsB,MAAA,GAAG,EAAEF,KAA3B;AAAkC,MAAA,OAAO,EAAEC,OAA3C;AAAoD,MAAA,cAAc,EAAEC;AAApE,MADY;AAAA,GAAf,CADL,CAbJ,EAkBI,oBAAC,YAAD,QACI,oBAAC,MAAD;AAAQ,IAAA,OAAO,EAAEb,UAAjB;AAA6B,IAAA,IAAI,EAAC;AAAlC,KACI,oBAAC,gBAAD,EAAsBR,cAAc,CAACsB,KAArC,CADJ,CADJ,CAlBJ,CADJ;AA0BH,CAzCD;;AA2CAf,qBAAqB,CAACgB,YAAtB,GAAqC;AACjCX,EAAAA,2BAA2B,EAAE,KADI;AAEjCE,EAAAA,UAAU,EAAE;AAFqB,CAArC;AAKA,eAAeP,qBAAf","sourcesContent":["// @flow\nimport * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { Modal, ModalActions } from '../../../components/modal';\nimport commonMessages from '../../../common/messages';\nimport Button from '../../../components/button';\nimport classificationMessages from '../messages';\nimport ClassifiedBadge from '../ClassifiedBadge';\nimport Label from '../../../components/label/Label';\nimport messages from './messages';\nimport SecurityControlsItem from './SecurityControlsItem';\nimport './SecurityControlsModal.scss';\nimport type { MessageItem } from '../flowTypes';\n\ntype Props = {\n classificationColor?: string,\n classificationName?: string,\n closeModal: Function,\n definition?: string,\n isSecurityControlsModalOpen: boolean,\n itemName?: string,\n modalItems: Array<MessageItem>,\n};\n\nconst SecurityControlsModal = ({\n closeModal,\n definition,\n classificationColor,\n classificationName,\n isSecurityControlsModalOpen,\n itemName,\n modalItems,\n}: Props) => {\n if (!itemName || !classificationName || !definition) {\n return null;\n }\n\n const title = <FormattedMessage {...messages.modalTitle} values={{ itemName }} />;\n\n return (\n <Modal\n className=\"bdl-SecurityControlsModal\"\n title={title}\n onRequestClose={closeModal}\n isOpen={isSecurityControlsModalOpen}\n >\n <p>\n <FormattedMessage {...messages.modalDescription} />\n </p>\n <ClassifiedBadge color={classificationColor} name={((classificationName: any): string)} />\n <Label text={<FormattedMessage {...classificationMessages.definition} />}>\n <p className=\"bdl-SecurityControlsModal-definition\">{definition}</p>\n </Label>\n <ul className=\"bdl-SecurityControlsModal-controlsItemList\">\n {modalItems.map(({ message, tooltipMessage }, index) => (\n <SecurityControlsItem key={index} message={message} tooltipMessage={tooltipMessage} />\n ))}\n </ul>\n <ModalActions>\n <Button onClick={closeModal} type=\"button\">\n <FormattedMessage {...commonMessages.close} />\n </Button>\n </ModalActions>\n </Modal>\n );\n};\n\nSecurityControlsModal.defaultProps = {\n isSecurityControlsModalOpen: false,\n modalItems: [],\n};\n\nexport default SecurityControlsModal;\n"],"file":"SecurityControlsModal.js"}
|
|
@@ -16,6 +16,10 @@ var messages = defineMessages({
|
|
|
16
16
|
"id": "boxui.securityControls.shortApp",
|
|
17
17
|
"defaultMessage": "Application restrictions apply"
|
|
18
18
|
},
|
|
19
|
+
shortWatermarking: {
|
|
20
|
+
"id": "boxui.securityControls.shortWatermarking",
|
|
21
|
+
"defaultMessage": "Watermarking applies"
|
|
22
|
+
},
|
|
19
23
|
shortSharingDownload: {
|
|
20
24
|
"id": "boxui.securityControls.shortSharingDownload",
|
|
21
25
|
"defaultMessage": "Sharing and download restrictions apply"
|
|
@@ -24,6 +24,11 @@ const messages = defineMessages({
|
|
|
24
24
|
'Short summary displayed for classification when an application download restriction is applied to it',
|
|
25
25
|
id: 'boxui.securityControls.shortApp',
|
|
26
26
|
},
|
|
27
|
+
shortWatermarking: {
|
|
28
|
+
defaultMessage: 'Watermarking applies',
|
|
29
|
+
description: 'Short summary displayed for classification when watermarking is applied to it',
|
|
30
|
+
id: 'boxui.securityControls.shortWatermarking',
|
|
31
|
+
},
|
|
27
32
|
shortSharingDownload: {
|
|
28
33
|
defaultMessage: 'Sharing and download restrictions apply',
|
|
29
34
|
description:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/classification/security-controls/messages.js"],"names":["defineMessages","messages","securityControlsLabel","shortSharing","shortDownload","shortApp","shortSharingDownload","shortSharingApp","shortDownloadApp","shortAllRestrictions","sharingCollabOnly","sharingCollabAndCompanyOnly","externalCollabBlock","externalCollabDomainList","appDownloadRestricted","appDownloadBlacklist","appDownloadBlacklistOverflow","appDownloadWhitelist","appDownloadWhitelistOverflow","allAppNames","webDownloadOwners","webDownloadOwnersEditors","webDownloadExternalOwners","webDownloadExternalOwnersEditors","webDownloadExternal","mobileDownloadOwners","mobileDownloadOwnersEditors","mobileDownloadExternalOwners","mobileDownloadExternalOwnersEditors","mobileDownloadExternal","desktopDownloadOwners","desktopDownloadOwnersEditors","desktopDownloadExternalOwners","desktopDownloadExternalOwnersEditors","desktopDownloadExternal","viewAll","modalTitle","modalDescription"],"mappings":"AACA,SAASA,cAAT,QAA+B,YAA/B;AAEA,IAAMC,QAAQ,GAAGD,cAAc,CAAC;AAC5BE,EAAAA,qBAAqB;AAAA;AAAA;AAAA,GADO;AAO5BC,EAAAA,YAAY;AAAA;AAAA;AAAA,GAPgB;AAY5BC,EAAAA,aAAa;AAAA;AAAA;AAAA,GAZe;AAiB5BC,EAAAA,QAAQ;AAAA;AAAA;AAAA,GAjBoB;AAuB5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GAvBQ;AA6B5BC,EAAAA,eAAe;AAAA;AAAA;AAAA,GA7Ba;AAmC5BC,EAAAA,gBAAgB;AAAA;AAAA;AAAA,GAnCY;AAyC5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GAzCQ;AA+C5BC,EAAAA,iBAAiB;AAAA;AAAA;AAAA,GA/CW;AAoD5BC,EAAAA,2BAA2B;AAAA;AAAA;AAAA,GApDC;AAyD5BC,EAAAA,mBAAmB;AAAA;AAAA;AAAA,GAzDS;AA+D5BC,EAAAA,wBAAwB;AAAA;AAAA;AAAA,GA/DI;AAoE5BC,EAAAA,qBAAqB;AAAA;AAAA;AAAA,GApEO;AAyE5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GAzEQ;AA8E5BC,EAAAA,4BAA4B;AAAA;AAAA;AAAA,GA9EA;AAoF5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GApFQ;AAyF5BC,EAAAA,4BAA4B;AAAA;AAAA;AAAA,GAzFA;AA+F5BC,EAAAA,WAAW;AAAA;AAAA;AAAA,GA/FiB;AAoG5B;AACAC,EAAAA,iBAAiB;AAAA;AAAA;AAAA,GArGW;AA2G5BC,EAAAA,wBAAwB;AAAA;AAAA;AAAA,GA3GI;AAiH5BC,EAAAA,yBAAyB;AAAA;AAAA;AAAA,GAjHG;AAuH5BC,EAAAA,gCAAgC;AAAA;AAAA;AAAA,GAvHJ;AA8H5BC,EAAAA,mBAAmB;AAAA;AAAA;AAAA,GA9HS;AAoI5B;AACAC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GArIQ;AA2I5BC,EAAAA,2BAA2B;AAAA;AAAA;AAAA,GA3IC;AAiJ5BC,EAAAA,4BAA4B;AAAA;AAAA;AAAA,GAjJA;AAuJ5BC,EAAAA,mCAAmC;AAAA;AAAA;AAAA,GAvJP;AA8J5BC,EAAAA,sBAAsB;AAAA;AAAA;AAAA,GA9JM;AAoK5B;AACAC,EAAAA,qBAAqB;AAAA;AAAA;AAAA,GArKO;AA2K5BC,EAAAA,4BAA4B;AAAA;AAAA;AAAA,GA3KA;AAiL5BC,EAAAA,6BAA6B;AAAA;AAAA;AAAA,GAjLD;AAwL5BC,EAAAA,oCAAoC;AAAA;AAAA;AAAA,GAxLR;AA+L5BC,EAAAA,uBAAuB;AAAA;AAAA;AAAA,GA/LK;AAqM5B;AACAC,EAAAA,OAAO;AAAA;AAAA;AAAA,GAtMqB;AA2M5BC,EAAAA,UAAU;AAAA;AAAA;AAAA,GA3MkB;AAgN5BC,EAAAA,gBAAgB;AAAA;AAAA;AAAA;AAhNY,CAAD,CAA/B;AAwNA,eAAepC,QAAf","sourcesContent":["// @flow\nimport { defineMessages } from 'react-intl';\n\nconst messages = defineMessages({\n securityControlsLabel: {\n defaultMessage: 'Restrictions',\n description:\n 'Label displayed above the security restrictions on the file due to the classification label and associated policies.',\n id: 'boxui.securityControls.securityControlsLabel',\n },\n shortSharing: {\n defaultMessage: 'Sharing restriction applies',\n description: 'Short summary displayed for classification when a sharing restriction is applied to it',\n id: 'boxui.securityControls.shortSharing',\n },\n shortDownload: {\n defaultMessage: 'Download restrictions apply',\n description: 'Short summary displayed for classification when a download restriction is applied to it',\n id: 'boxui.securityControls.shortDownload',\n },\n shortApp: {\n defaultMessage: 'Application restrictions apply',\n description:\n 'Short summary displayed for classification when an application download restriction is applied to it',\n id: 'boxui.securityControls.shortApp',\n },\n shortSharingDownload: {\n defaultMessage: 'Sharing and download restrictions apply',\n description:\n 'Short summary displayed for classification when both sharing and download restrictions are applied to it',\n id: 'boxui.securityControls.shortSharingDownload',\n },\n shortSharingApp: {\n defaultMessage: 'Sharing and app restrictions apply',\n description:\n 'Short summary displayed for classification when both sharing and app download restrictions are applied to it',\n id: 'boxui.securityControls.shortSharingApp',\n },\n shortDownloadApp: {\n defaultMessage: 'Download and app restrictions apply',\n description:\n 'Short summary displayed for classification when both download and app download restrictions are applied to it',\n id: 'boxui.securityControls.shortDownloadApp',\n },\n shortAllRestrictions: {\n defaultMessage: 'Sharing, download and app restrictions apply',\n description:\n 'Short summary displayed for classification when sharing, download and app download restrictions are applied to it',\n id: 'boxui.securityControls.shortAllRestrictions',\n },\n sharingCollabOnly: {\n defaultMessage: 'Shared links allowed for collaborators only.',\n description: 'Bullet point that summarizes shared link restriction applied to classification',\n id: 'boxui.securityControls.sharingCollabOnly',\n },\n sharingCollabAndCompanyOnly: {\n defaultMessage: 'Shared links cannot be made publicly accessible.',\n description: 'Bullet point that summarizes collaborators shared link restriction applied to classification',\n id: 'boxui.securityControls.sharingCollabAndCompanyOnly',\n },\n externalCollabBlock: {\n defaultMessage: 'External collaboration restricted.',\n description:\n 'Bullet point that summarizes external collaboration blocked restriction applied to classification',\n id: 'boxui.securityControls.externalCollabBlock',\n },\n externalCollabDomainList: {\n defaultMessage: 'External collaboration limited to approved domains.',\n description: 'Bullet point that summarizes external collaboration restriction applied to classification',\n id: 'boxui.securityControls.externalCollabDomainList',\n },\n appDownloadRestricted: {\n defaultMessage: 'Download restricted for some applications.',\n description: 'Bullet point that summarizes application download restriction applied to classification',\n id: 'boxui.securityControls.appDownloadRestricted',\n },\n appDownloadBlacklist: {\n defaultMessage: 'Download restricted for some applications: {appNames}',\n description: 'Bullet point that summarizes application download restriction applied to classification',\n id: 'boxui.securityControls.appDownloadBlacklist',\n },\n appDownloadBlacklistOverflow: {\n defaultMessage: 'Download restricted for some applications: {appNames} +{remainingAppCount} more',\n description:\n 'Bullet point that summarizes application download restriction applied to classification. This variation is used when the list of applications is longer than the configured threshold',\n id: 'boxui.securityControls.appDownloadBlacklistOverflow',\n },\n appDownloadWhitelist: {\n defaultMessage: 'Only select applications are allowed: {appNames}',\n description: 'Bullet point that summarizes application download restriction applied to classification',\n id: 'boxui.securityControls.appDownloadWhitelist',\n },\n appDownloadWhitelistOverflow: {\n defaultMessage: 'Only select applications are allowed: {appNames} +{remainingAppCount} more',\n description:\n 'Bullet point that summarizes application download restriction applied to classification. This variation is used when the list of applications is longer than the configured threshold',\n id: 'boxui.securityControls.appDownloadWhitelistOverflow',\n },\n allAppNames: {\n defaultMessage: 'All applications: {appsList}',\n description: 'Name list of all applications download restriction applied to classification',\n id: 'boxui.securityControls.allAppNames',\n },\n // Web Download Restrictions\n webDownloadOwners: {\n defaultMessage: 'Download restricted on web, except Owners/Co-Owners.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners',\n id: 'boxui.securityControls.webDownloadOwners',\n },\n webDownloadOwnersEditors: {\n defaultMessage: 'Download restricted on web, except Owners/Co-Owners/Editors.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners/Editors',\n id: 'boxui.securityControls.webDownloadOwnersEditors',\n },\n webDownloadExternalOwners: {\n defaultMessage: 'Download restricted on web, except Owners/Co-Owners. Also restricted for external users.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners',\n id: 'boxui.securityControls.webDownloadExternalOwners',\n },\n webDownloadExternalOwnersEditors: {\n defaultMessage:\n 'Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners/Editors',\n id: 'boxui.securityControls.webDownloadExternalOwnersEditors',\n },\n webDownloadExternal: {\n defaultMessage: 'Download restricted on web for external users.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to external users',\n id: 'boxui.securityControls.webDownloadExternal',\n },\n // Mobile Download Restrictions\n mobileDownloadOwners: {\n defaultMessage: 'Download restricted on mobile, except Owners/Co-Owners.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners',\n id: 'boxui.securityControls.mobileDownloadOwners',\n },\n mobileDownloadOwnersEditors: {\n defaultMessage: 'Download restricted on mobile, except Owners/Co-Owners/Editors.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners/Editors',\n id: 'boxui.securityControls.mobileDownloadOwnersEditors',\n },\n mobileDownloadExternalOwners: {\n defaultMessage: 'Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners',\n id: 'boxui.securityControls.mobileDownloadExternalOwners',\n },\n mobileDownloadExternalOwnersEditors: {\n defaultMessage:\n 'Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners/Editors',\n id: 'boxui.securityControls.mobileDownloadExternalOwnersEditors',\n },\n mobileDownloadExternal: {\n defaultMessage: 'Download restricted on mobile for external users.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to external users',\n id: 'boxui.securityControls.mobileDownloadExternal',\n },\n // Desktop Download Restrictions\n desktopDownloadOwners: {\n defaultMessage: 'Download restricted on Box Drive, except Owners/Co-Owners.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.desktopDownloadOwners',\n },\n desktopDownloadOwnersEditors: {\n defaultMessage: 'Download restricted on Box Drive, except Owners/Co-Owners/Editors.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners/Editors. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.desktopDownloadOwnersEditors',\n },\n desktopDownloadExternalOwners: {\n defaultMessage:\n 'Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.desktopDownloadExternalOwners',\n },\n desktopDownloadExternalOwnersEditors: {\n defaultMessage:\n 'Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners/Editors. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.desktopDownloadExternalOwnersEditors',\n },\n desktopDownloadExternal: {\n defaultMessage: 'Download restricted on Box Drive for external users.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to external users. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.downloadExternal',\n },\n // Security Constrols Modal\n viewAll: {\n defaultMessage: 'View All',\n description: 'Button to display security controls modal',\n id: 'boxui.securityControls.viewAll',\n },\n modalTitle: {\n defaultMessage: \"View Classification for '{itemName}'\",\n description: 'Title for modal to display classification and security controls details',\n id: 'boxui.securityControls.modalTitle',\n },\n modalDescription: {\n defaultMessage:\n 'Classification labels defined by your administrator can be used to label content and apply security policies.',\n description: 'Description for modal to display classification and security controls details',\n id: 'boxui.securityControls.modalDescription',\n },\n});\n\nexport default messages;\n"],"file":"messages.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/classification/security-controls/messages.js"],"names":["defineMessages","messages","securityControlsLabel","shortSharing","shortDownload","shortApp","shortWatermarking","shortSharingDownload","shortSharingApp","shortDownloadApp","shortAllRestrictions","sharingCollabOnly","sharingCollabAndCompanyOnly","externalCollabBlock","externalCollabDomainList","appDownloadRestricted","appDownloadBlacklist","appDownloadBlacklistOverflow","appDownloadWhitelist","appDownloadWhitelistOverflow","allAppNames","webDownloadOwners","webDownloadOwnersEditors","webDownloadExternalOwners","webDownloadExternalOwnersEditors","webDownloadExternal","mobileDownloadOwners","mobileDownloadOwnersEditors","mobileDownloadExternalOwners","mobileDownloadExternalOwnersEditors","mobileDownloadExternal","desktopDownloadOwners","desktopDownloadOwnersEditors","desktopDownloadExternalOwners","desktopDownloadExternalOwnersEditors","desktopDownloadExternal","viewAll","modalTitle","modalDescription"],"mappings":"AACA,SAASA,cAAT,QAA+B,YAA/B;AAEA,IAAMC,QAAQ,GAAGD,cAAc,CAAC;AAC5BE,EAAAA,qBAAqB;AAAA;AAAA;AAAA,GADO;AAO5BC,EAAAA,YAAY;AAAA;AAAA;AAAA,GAPgB;AAY5BC,EAAAA,aAAa;AAAA;AAAA;AAAA,GAZe;AAiB5BC,EAAAA,QAAQ;AAAA;AAAA;AAAA,GAjBoB;AAuB5BC,EAAAA,iBAAiB;AAAA;AAAA;AAAA,GAvBW;AA4B5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GA5BQ;AAkC5BC,EAAAA,eAAe;AAAA;AAAA;AAAA,GAlCa;AAwC5BC,EAAAA,gBAAgB;AAAA;AAAA;AAAA,GAxCY;AA8C5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GA9CQ;AAoD5BC,EAAAA,iBAAiB;AAAA;AAAA;AAAA,GApDW;AAyD5BC,EAAAA,2BAA2B;AAAA;AAAA;AAAA,GAzDC;AA8D5BC,EAAAA,mBAAmB;AAAA;AAAA;AAAA,GA9DS;AAoE5BC,EAAAA,wBAAwB;AAAA;AAAA;AAAA,GApEI;AAyE5BC,EAAAA,qBAAqB;AAAA;AAAA;AAAA,GAzEO;AA8E5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GA9EQ;AAmF5BC,EAAAA,4BAA4B;AAAA;AAAA;AAAA,GAnFA;AAyF5BC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GAzFQ;AA8F5BC,EAAAA,4BAA4B;AAAA;AAAA;AAAA,GA9FA;AAoG5BC,EAAAA,WAAW;AAAA;AAAA;AAAA,GApGiB;AAyG5B;AACAC,EAAAA,iBAAiB;AAAA;AAAA;AAAA,GA1GW;AAgH5BC,EAAAA,wBAAwB;AAAA;AAAA;AAAA,GAhHI;AAsH5BC,EAAAA,yBAAyB;AAAA;AAAA;AAAA,GAtHG;AA4H5BC,EAAAA,gCAAgC;AAAA;AAAA;AAAA,GA5HJ;AAmI5BC,EAAAA,mBAAmB;AAAA;AAAA;AAAA,GAnIS;AAyI5B;AACAC,EAAAA,oBAAoB;AAAA;AAAA;AAAA,GA1IQ;AAgJ5BC,EAAAA,2BAA2B;AAAA;AAAA;AAAA,GAhJC;AAsJ5BC,EAAAA,4BAA4B;AAAA;AAAA;AAAA,GAtJA;AA4J5BC,EAAAA,mCAAmC;AAAA;AAAA;AAAA,GA5JP;AAmK5BC,EAAAA,sBAAsB;AAAA;AAAA;AAAA,GAnKM;AAyK5B;AACAC,EAAAA,qBAAqB;AAAA;AAAA;AAAA,GA1KO;AAgL5BC,EAAAA,4BAA4B;AAAA;AAAA;AAAA,GAhLA;AAsL5BC,EAAAA,6BAA6B;AAAA;AAAA;AAAA,GAtLD;AA6L5BC,EAAAA,oCAAoC;AAAA;AAAA;AAAA,GA7LR;AAoM5BC,EAAAA,uBAAuB;AAAA;AAAA;AAAA,GApMK;AA0M5B;AACAC,EAAAA,OAAO;AAAA;AAAA;AAAA,GA3MqB;AAgN5BC,EAAAA,UAAU;AAAA;AAAA;AAAA,GAhNkB;AAqN5BC,EAAAA,gBAAgB;AAAA;AAAA;AAAA;AArNY,CAAD,CAA/B;AA6NA,eAAerC,QAAf","sourcesContent":["// @flow\nimport { defineMessages } from 'react-intl';\n\nconst messages = defineMessages({\n securityControlsLabel: {\n defaultMessage: 'Restrictions',\n description:\n 'Label displayed above the security restrictions on the file due to the classification label and associated policies.',\n id: 'boxui.securityControls.securityControlsLabel',\n },\n shortSharing: {\n defaultMessage: 'Sharing restriction applies',\n description: 'Short summary displayed for classification when a sharing restriction is applied to it',\n id: 'boxui.securityControls.shortSharing',\n },\n shortDownload: {\n defaultMessage: 'Download restrictions apply',\n description: 'Short summary displayed for classification when a download restriction is applied to it',\n id: 'boxui.securityControls.shortDownload',\n },\n shortApp: {\n defaultMessage: 'Application restrictions apply',\n description:\n 'Short summary displayed for classification when an application download restriction is applied to it',\n id: 'boxui.securityControls.shortApp',\n },\n shortWatermarking: {\n defaultMessage: 'Watermarking applies',\n description: 'Short summary displayed for classification when watermarking is applied to it',\n id: 'boxui.securityControls.shortWatermarking',\n },\n shortSharingDownload: {\n defaultMessage: 'Sharing and download restrictions apply',\n description:\n 'Short summary displayed for classification when both sharing and download restrictions are applied to it',\n id: 'boxui.securityControls.shortSharingDownload',\n },\n shortSharingApp: {\n defaultMessage: 'Sharing and app restrictions apply',\n description:\n 'Short summary displayed for classification when both sharing and app download restrictions are applied to it',\n id: 'boxui.securityControls.shortSharingApp',\n },\n shortDownloadApp: {\n defaultMessage: 'Download and app restrictions apply',\n description:\n 'Short summary displayed for classification when both download and app download restrictions are applied to it',\n id: 'boxui.securityControls.shortDownloadApp',\n },\n shortAllRestrictions: {\n defaultMessage: 'Sharing, download and app restrictions apply',\n description:\n 'Short summary displayed for classification when sharing, download and app download restrictions are applied to it',\n id: 'boxui.securityControls.shortAllRestrictions',\n },\n sharingCollabOnly: {\n defaultMessage: 'Shared links allowed for collaborators only.',\n description: 'Bullet point that summarizes shared link restriction applied to classification',\n id: 'boxui.securityControls.sharingCollabOnly',\n },\n sharingCollabAndCompanyOnly: {\n defaultMessage: 'Shared links cannot be made publicly accessible.',\n description: 'Bullet point that summarizes collaborators shared link restriction applied to classification',\n id: 'boxui.securityControls.sharingCollabAndCompanyOnly',\n },\n externalCollabBlock: {\n defaultMessage: 'External collaboration restricted.',\n description:\n 'Bullet point that summarizes external collaboration blocked restriction applied to classification',\n id: 'boxui.securityControls.externalCollabBlock',\n },\n externalCollabDomainList: {\n defaultMessage: 'External collaboration limited to approved domains.',\n description: 'Bullet point that summarizes external collaboration restriction applied to classification',\n id: 'boxui.securityControls.externalCollabDomainList',\n },\n appDownloadRestricted: {\n defaultMessage: 'Download restricted for some applications.',\n description: 'Bullet point that summarizes application download restriction applied to classification',\n id: 'boxui.securityControls.appDownloadRestricted',\n },\n appDownloadBlacklist: {\n defaultMessage: 'Download restricted for some applications: {appNames}',\n description: 'Bullet point that summarizes application download restriction applied to classification',\n id: 'boxui.securityControls.appDownloadBlacklist',\n },\n appDownloadBlacklistOverflow: {\n defaultMessage: 'Download restricted for some applications: {appNames} +{remainingAppCount} more',\n description:\n 'Bullet point that summarizes application download restriction applied to classification. This variation is used when the list of applications is longer than the configured threshold',\n id: 'boxui.securityControls.appDownloadBlacklistOverflow',\n },\n appDownloadWhitelist: {\n defaultMessage: 'Only select applications are allowed: {appNames}',\n description: 'Bullet point that summarizes application download restriction applied to classification',\n id: 'boxui.securityControls.appDownloadWhitelist',\n },\n appDownloadWhitelistOverflow: {\n defaultMessage: 'Only select applications are allowed: {appNames} +{remainingAppCount} more',\n description:\n 'Bullet point that summarizes application download restriction applied to classification. This variation is used when the list of applications is longer than the configured threshold',\n id: 'boxui.securityControls.appDownloadWhitelistOverflow',\n },\n allAppNames: {\n defaultMessage: 'All applications: {appsList}',\n description: 'Name list of all applications download restriction applied to classification',\n id: 'boxui.securityControls.allAppNames',\n },\n // Web Download Restrictions\n webDownloadOwners: {\n defaultMessage: 'Download restricted on web, except Owners/Co-Owners.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners',\n id: 'boxui.securityControls.webDownloadOwners',\n },\n webDownloadOwnersEditors: {\n defaultMessage: 'Download restricted on web, except Owners/Co-Owners/Editors.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners/Editors',\n id: 'boxui.securityControls.webDownloadOwnersEditors',\n },\n webDownloadExternalOwners: {\n defaultMessage: 'Download restricted on web, except Owners/Co-Owners. Also restricted for external users.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners',\n id: 'boxui.securityControls.webDownloadExternalOwners',\n },\n webDownloadExternalOwnersEditors: {\n defaultMessage:\n 'Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners/Editors',\n id: 'boxui.securityControls.webDownloadExternalOwnersEditors',\n },\n webDownloadExternal: {\n defaultMessage: 'Download restricted on web for external users.',\n description:\n 'Bullet point that summarizes web download restrictions applied to classification, when restriction applies to external users',\n id: 'boxui.securityControls.webDownloadExternal',\n },\n // Mobile Download Restrictions\n mobileDownloadOwners: {\n defaultMessage: 'Download restricted on mobile, except Owners/Co-Owners.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners',\n id: 'boxui.securityControls.mobileDownloadOwners',\n },\n mobileDownloadOwnersEditors: {\n defaultMessage: 'Download restricted on mobile, except Owners/Co-Owners/Editors.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners/Editors',\n id: 'boxui.securityControls.mobileDownloadOwnersEditors',\n },\n mobileDownloadExternalOwners: {\n defaultMessage: 'Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners',\n id: 'boxui.securityControls.mobileDownloadExternalOwners',\n },\n mobileDownloadExternalOwnersEditors: {\n defaultMessage:\n 'Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners/Editors',\n id: 'boxui.securityControls.mobileDownloadExternalOwnersEditors',\n },\n mobileDownloadExternal: {\n defaultMessage: 'Download restricted on mobile for external users.',\n description:\n 'Bullet point that summarizes mobile download restrictions applied to classification, when restriction applies to external users',\n id: 'boxui.securityControls.mobileDownloadExternal',\n },\n // Desktop Download Restrictions\n desktopDownloadOwners: {\n defaultMessage: 'Download restricted on Box Drive, except Owners/Co-Owners.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.desktopDownloadOwners',\n },\n desktopDownloadOwnersEditors: {\n defaultMessage: 'Download restricted on Box Drive, except Owners/Co-Owners/Editors.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to managed users except Owners/Co-Owners/Editors. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.desktopDownloadOwnersEditors',\n },\n desktopDownloadExternalOwners: {\n defaultMessage:\n 'Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.desktopDownloadExternalOwners',\n },\n desktopDownloadExternalOwnersEditors: {\n defaultMessage:\n 'Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to external users and managed users except Owners/Co-Owners/Editors. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.desktopDownloadExternalOwnersEditors',\n },\n desktopDownloadExternal: {\n defaultMessage: 'Download restricted on Box Drive for external users.',\n description:\n 'Bullet point that summarizes desktop download restrictions applied to classification, when restriction applies to external users. Box Drive is a product name and not translated',\n id: 'boxui.securityControls.downloadExternal',\n },\n // Security Constrols Modal\n viewAll: {\n defaultMessage: 'View All',\n description: 'Button to display security controls modal',\n id: 'boxui.securityControls.viewAll',\n },\n modalTitle: {\n defaultMessage: \"View Classification for '{itemName}'\",\n description: 'Title for modal to display classification and security controls details',\n id: 'boxui.securityControls.modalTitle',\n },\n modalDescription: {\n defaultMessage:\n 'Classification labels defined by your administrator can be used to label content and apply security policies.',\n description: 'Description for modal to display classification and security controls details',\n id: 'boxui.securityControls.modalDescription',\n },\n});\n\nexport default messages;\n"],"file":"messages.js"}
|
|
@@ -12,8 +12,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12
12
|
|
|
13
13
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
14
|
|
|
15
|
+
import * as React from 'react';
|
|
15
16
|
import getProp from 'lodash/get';
|
|
16
17
|
import isNil from 'lodash/isNil';
|
|
18
|
+
import FormattedCompMessage from '../../../components/i18n/FormattedCompMessage';
|
|
19
|
+
import Link from '../../../components/link/Link';
|
|
17
20
|
import appRestrictionsMessageMap from './appRestrictionsMessageMap';
|
|
18
21
|
import downloadRestrictionsMessageMap from './downloadRestrictionsMessageMap';
|
|
19
22
|
import messages from './messages';
|
|
@@ -21,7 +24,8 @@ import { ACCESS_POLICY_RESTRICTION, APP_RESTRICTION_MESSAGE_TYPE, DOWNLOAD_CONTR
|
|
|
21
24
|
var SHARED_LINK = ACCESS_POLICY_RESTRICTION.SHARED_LINK,
|
|
22
25
|
DOWNLOAD = ACCESS_POLICY_RESTRICTION.DOWNLOAD,
|
|
23
26
|
EXTERNAL_COLLAB = ACCESS_POLICY_RESTRICTION.EXTERNAL_COLLAB,
|
|
24
|
-
APP = ACCESS_POLICY_RESTRICTION.APP
|
|
27
|
+
APP = ACCESS_POLICY_RESTRICTION.APP,
|
|
28
|
+
WATERMARK = ACCESS_POLICY_RESTRICTION.WATERMARK;
|
|
25
29
|
var DEFAULT = APP_RESTRICTION_MESSAGE_TYPE.DEFAULT,
|
|
26
30
|
WITH_APP_LIST = APP_RESTRICTION_MESSAGE_TYPE.WITH_APP_LIST,
|
|
27
31
|
WITH_OVERFLOWN_APP_LIST = APP_RESTRICTION_MESSAGE_TYPE.WITH_OVERFLOWN_APP_LIST;
|
|
@@ -36,57 +40,53 @@ var COLLAB_ONLY = SHARED_LINK_ACCESS_LEVEL.COLLAB_ONLY,
|
|
|
36
40
|
PUBLIC = SHARED_LINK_ACCESS_LEVEL.PUBLIC;
|
|
37
41
|
|
|
38
42
|
var getShortSecurityControlsMessage = function getShortSecurityControlsMessage(controls) {
|
|
43
|
+
var items = [];
|
|
39
44
|
var sharedLink = controls.sharedLink,
|
|
40
45
|
download = controls.download,
|
|
41
46
|
externalCollab = controls.externalCollab,
|
|
42
|
-
app = controls.app
|
|
47
|
+
app = controls.app,
|
|
48
|
+
watermark = controls.watermark; // Shared link and external collab restrictions are grouped
|
|
43
49
|
// together as generic "sharing" restrictions
|
|
44
50
|
|
|
45
51
|
var sharing = sharedLink && sharedLink.accessLevel !== PUBLIC || externalCollab;
|
|
46
52
|
|
|
47
53
|
if (sharing && download && app) {
|
|
48
|
-
|
|
54
|
+
items.push({
|
|
49
55
|
message: messages.shortAllRestrictions
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (sharing && download) {
|
|
54
|
-
return {
|
|
56
|
+
});
|
|
57
|
+
} else if (sharing && download) {
|
|
58
|
+
items.push({
|
|
55
59
|
message: messages.shortSharingDownload
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (sharing && app) {
|
|
60
|
-
return {
|
|
60
|
+
});
|
|
61
|
+
} else if (sharing && app) {
|
|
62
|
+
items.push({
|
|
61
63
|
message: messages.shortSharingApp
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (download && app) {
|
|
66
|
-
return {
|
|
64
|
+
});
|
|
65
|
+
} else if (download && app) {
|
|
66
|
+
items.push({
|
|
67
67
|
message: messages.shortDownloadApp
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (sharing) {
|
|
72
|
-
return {
|
|
68
|
+
});
|
|
69
|
+
} else if (sharing) {
|
|
70
|
+
items.push({
|
|
73
71
|
message: messages.shortSharing
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (download) {
|
|
78
|
-
return {
|
|
72
|
+
});
|
|
73
|
+
} else if (download) {
|
|
74
|
+
items.push({
|
|
79
75
|
message: messages.shortDownload
|
|
80
|
-
};
|
|
76
|
+
});
|
|
77
|
+
} else if (app) {
|
|
78
|
+
items.push({
|
|
79
|
+
message: messages.shortApp
|
|
80
|
+
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
message: messages.
|
|
86
|
-
};
|
|
83
|
+
if (watermark) {
|
|
84
|
+
items.push({
|
|
85
|
+
message: messages.shortWatermarking
|
|
86
|
+
});
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
return
|
|
89
|
+
return items;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
var getSharedLinkMessages = function getSharedLinkMessages(controls) {
|
|
@@ -114,6 +114,27 @@ var getSharedLinkMessages = function getSharedLinkMessages(controls) {
|
|
|
114
114
|
return items;
|
|
115
115
|
};
|
|
116
116
|
|
|
117
|
+
var getWatermarkingMessages = function getWatermarkingMessages(controls) {
|
|
118
|
+
var items = [];
|
|
119
|
+
var isWatermarkEnabled = getProp(controls, "".concat(WATERMARK, ".enabled"), false);
|
|
120
|
+
|
|
121
|
+
if (isWatermarkEnabled) {
|
|
122
|
+
var formattedCompMessage = React.createElement(FormattedCompMessage, {
|
|
123
|
+
id: "boxui.securityControls.watermarkingAppliedWithLink",
|
|
124
|
+
description: "Bullet point that summarizes watermarking applied to classification"
|
|
125
|
+
}, "Watermarking will be applied, click", ' ', React.createElement(Link, {
|
|
126
|
+
className: "support-link",
|
|
127
|
+
href: "https://support.box.com/hc/en-us/articles/360044195253",
|
|
128
|
+
target: "_blank"
|
|
129
|
+
}, "here"), ' ', "more details on Watermarking");
|
|
130
|
+
items.push({
|
|
131
|
+
message: formattedCompMessage
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return items;
|
|
136
|
+
};
|
|
137
|
+
|
|
117
138
|
var getExternalCollabMessages = function getExternalCollabMessages(controls) {
|
|
118
139
|
var items = [];
|
|
119
140
|
var accessLevel = getProp(controls, "".concat(EXTERNAL_COLLAB, ".accessLevel"));
|
|
@@ -255,7 +276,7 @@ var getDownloadMessages = function getDownloadMessages(controls) {
|
|
|
255
276
|
};
|
|
256
277
|
|
|
257
278
|
var getFullSecurityControlsMessages = function getFullSecurityControlsMessages(controls, maxAppCount) {
|
|
258
|
-
var items = [].concat(_toConsumableArray(getSharedLinkMessages(controls)), _toConsumableArray(getExternalCollabMessages(controls)), _toConsumableArray(getDownloadMessages(controls)), _toConsumableArray(getAppDownloadMessages(controls, maxAppCount)));
|
|
279
|
+
var items = [].concat(_toConsumableArray(getSharedLinkMessages(controls)), _toConsumableArray(getExternalCollabMessages(controls)), _toConsumableArray(getDownloadMessages(controls)), _toConsumableArray(getAppDownloadMessages(controls, maxAppCount)), _toConsumableArray(getWatermarkingMessages(controls)));
|
|
259
280
|
return items;
|
|
260
281
|
};
|
|
261
282
|
|