box-content-preview 3.127.0 → 3.129.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/dist/lib/index.js CHANGED
@@ -78,10 +78,11 @@ import { default as __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Me
78
78
 
79
79
  // EXPORTS
80
80
  __webpack_require__.d(__webpack_exports__, {
81
- zG: () => (/* binding */ ItemIcon)
81
+ zG: () => (/* binding */ ItemIcon),
82
+ RU: () => (/* binding */ itemIconTable)
82
83
  });
83
84
 
84
- // UNUSED EXPORTS: default, itemIconTable
85
+ // UNUSED EXPORTS: default
85
86
 
86
87
  ;// external "@box/blueprint-web-assets/icons/Content"
87
88
 
@@ -1225,7 +1226,7 @@ const DEFAULT_LANGUAGE = 'en-US';
1225
1226
  const MESSAGE_KEY_PREFIX = 'bcp.';
1226
1227
 
1227
1228
  // Only the npm build defines __BCP_DEFAULT_MESSAGES__; the CDN build bakes strings in per locale.
1228
- const defaultStrings = (0,_isNpmBuild__WEBPACK_IMPORTED_MODULE_0__/* .isNpmBuild */ .w)() ? {"rotate_left":"Rotate left","zoom_current_scale":"Current zoom level","zoom_in":"Zoom in","zoom_out":"Zoom out","enter_fullscreen":"Enter fullscreen","exit_fullscreen":"Exit fullscreen","controls_more":"More options","controls_find":"Find","controls_rotate_document":"Rotate document","controls_rotate_image":"Rotate image","controls_zoom_scale":"Zoom: {1}","controls_view_as_grid":"View as grid","controls_show_thumbnails":"View thumbnails","controls_hide_thumbnails":"Hide thumbnails","controls_shortcut_ctrl":"Ctrl + {1}","drawing_comment":"Markup","region_comment":"Comment on Region","highlight_text":"Highlight and Comment","exit_annotations":"Exit Annotations","annotation_tools":"Comment and markup","drawing_color":"Drawing color","drawing_color_blue":"Blue","drawing_color_green":"Green","drawing_color_red":"Red","drawing_color_orange":"Orange","drawing_color_yellow":"Yellow","drawing_color_purple":"Purple","previous_page":"Previous page","enter_page_num":"Click to enter page number","next_page":"Next page","download":"Download","print":"Print","print_notification":"Please press the print button to get a printable version of this document.","print_loading":"Preparing to print...","print_ready":"Ready to print.","print_close":"Close print dialog","previous_file":"Previous file","logo":"Logo","next_file":"Next file","loading_preview":"Loading Preview...","download_file":"Download File","text_truncated":"This file has been truncated due to size limits. Please download to view the whole file.","toggle_findbar":"Toggle findbar","toggle_thumbnails":"Toggle thumbnails","gallery_view":"Gallery view","page_gallery":"Page gallery","page_gallery_tile":"Page {1}","has_x_refs":"This preview has references you cannot view. Open the file in its native application.","find_next":"Find next","find_previous":"Find previous","find_close":"Close","find_label":"Search input","find_placeholder":"Find in document","find_match_count":"{1} of {2}","thumbnail_label":"Page thumbnails","file_preview_label":"File preview","comparison_banner_current":"Current version","comparison_banner_previous":"Previous version","comparison_banner_version":"Version {1}","comparison_banner_actions":"More actions","comparison_banner_open_full_preview":"Open Full Preview","comparison_banner_close":"Close","comparison_banner_make_current":"Make Current","comparison_banner_delete":"Delete","error_generic":"This preview didn’t load. Please try to open or download the file to view.","error_unsupported":"This preview didn’t load because the file type is unsupported. Please try to open or download the file to view.","error_account":"This preview didn’t load because your account is unable to preview this file type. Please try to open or download the file to view.","error_permissions":"This preview didn’t load because you don’t have permission. Please ask the file owner to update permissions.","error_refresh":"This preview didn’t load. Please try to open or download the file to view.","error_rate_limit":"This preview didn’t load because your request was rate limited. Please try to open or download the file to view.","error_reupload":"This preview didn’t load. Please try to open or download the file to view.","error_browser_unsupported":"Your browser doesn’t support preview for {1}. Please try to open or download the file to view.","error_document":"This preview didn’t load because the document may be protected. Please try to open or download the file to view.","error_password_protected":"This preview didn’t load because the document is protected. Please try to open or download the file to view.","error_try_again_later":"This preview didn’t load. Please refresh the page or download file to view.","error_bad_file":"This preview didn’t load. Please try to open or download the file to view.","error_not_downloadable":"Something seems to be wrong with this file. Please refresh the page, and if the issue continues, try to upload a new version.","error_flash_not_enabled":"This preview didn’t load because Flash is not enabled on your browser. Please try to enable Flash or download the file to view.","error_internet_explorer_office_online":"This version of Internet Explorer is out of date and the experience may be degraded. Please try switching to a different browser for a better experience.","error_large_file":"File exceeds supported size for preview. Open or download the file to view.","error_too_many_operations":"The file is too complex to display in your browser. Please download it to view.","error_zero_byte_file":"Cannot preview 0 B file. Open or download the file to view.","filename":"Name","last_modified_date":"Modified","size":"Size","search":"Search","search_results":"Search Results","search_placeholder":"Search files and folders","search_clear":"Clear search","breadcrumb":"Breadcrumb","breadcrumb_truncated":"Show hidden folders","media_autoplay":"Autoplay","media_autoplay_disabled":"Disabled","media_autoplay_enabled":"Enabled","media_play_next":"Play next file","media_play_next_disabled":"Disabled","media_play_next_enabled":"Enabled","media_speed":"Speed","media_speed_normal":"Normal","media_quality":"Quality","media_quality_auto":"Auto","media_guides":"Guides","media_guides_off":"Off","media_guides_default":"Default","media_guides_widescreen_hd":"Widescreen HD","media_guides_vertical":"Vertical","media_guides_square":"Square","media_guides_social_portrait":"Social Portrait","media_guides_cinemascope":"Cinemascope","media_guides_univisium":"Univisium","media_guides_cinema_flat":"Cinema Flat","media_guides_scope":"Scope","media_guides_fullscreen":"Fullscreen","media_guides_ultrawide":"Ultrawide","media_volume_slider":"Volume Slider","media_generating_waveform":"Generating waveform","media_loading":"Loading","media_zoom":"Zoom","media_zoom_slider":"Zoom Slider","media_time_slider":"Media Slider","media_comment_marker":"Comment marker","media_range_comment":"Comment","media_range_clear":"Clear","media_shuttle_forward":"Scanning forward at {1}x","media_shuttle_reverse":"Scanning backward at {1}x","media_mute":"Mute","media_unmute":"Unmute","media_play":"Play","media_pause":"Pause","media_skip_forward":"Skip forward","media_skip_backward":"Skip backward","media_settings":"Settings","media_subtitles_cc":"Subtitles/Closed Captions","media_time_format":"Time format","media_time_format_standard":"Standard time","media_time_format_timecode":"Timecode","media_time_format_frames":"Frame numbers","volume":"Volume","of":"of","subtitles":"Subtitles","off":"Off","media_audio":"Audio","track":"Track","media_auto_generated_captions":"Auto-Generated Captions","auto_generated":"Auto-Generated","box3d_animation_clips":"Animation clips","box3d_camera_projection_perspective":"Perspective","box3d_camera_projection_orthographic":"Orthographic","box3d_reset":"Reset","box3d_toggle_animation":"Play/pause animation","box3d_toggle_vr":"Toggle VR display","box3d_render_mode_lit":"Lit","box3d_render_mode_unlit":"Unlit","box3d_render_mode_normals":"Normals","box3d_render_mode_shape":"Shape","box3d_render_mode_uv_overlay":"UV Overlay","box3d_settings":"Settings","box3d_settings_render_label":"Render mode","box3d_settings_grid_label":"Show grid","box3d_settings_wireframes_label":"Show wireframes","box3d_settings_skeletons_label":"Show skeletons","box3d_settings_projection_label":"Camera Projection","box3d_settings_rotate_label":"Rotate Model","box3d_settings_rotate_left":"Rotate left around {1} axis","box3d_settings_rotate_right":"Rotate right around {1} axis","document_label":"Document Viewer","annotation_add_comment_placeholder":"Add a comment here...","annotation_reply_placeholder":"Post a reply...","annotation_done":"Done","annotation_close":"Close","annotation_cancel":"Cancel","annotation_save":"Save","annotation_post":"Post","annotation_delete":"Delete","annotation_delete_confirmation_message":"Delete this annotation?","annotation_profile_alt":"Avatar","annotation_anonymous_user_name":"Some User","annotation_posting_message":"Posting...","annotation_point_toggle":"Point annotation mode","annotation_draw_toggle":"Drawing annotation mode","annotation_highlight_toggle":"Highlight text","annotation_highlight_comment":"Add comment to highlighted text","annotation_who_highlighted":"{1} highlighted","annotation_who_drew":"{1} drew","annotation_draw_save":"Save drawing","annotation_draw_delete":"Delete drawing","annotations_load_error":"Annotations could not be loaded for this file. Please refresh the page to try again.","annotations_create_error":"This annotation could not be created. Please try again.","annotations_delete_error":"This annotation could not be deleted. Please try again.","annotations_authorization_error":"Annotations could not be loaded for this file. You may not have permission to take this action.","notification_button_default_text":"Okay","notification_button_default_label":"Clear Notification","notification_annotation_point_mode":"Click anywhere to add a comment to the document","notification_annotation_draw_mode":"Press down and drag the pointer to draw on the document","notification_degraded_preview":"Your connection to {1} is being blocked. Please reach out to your network admin to adjust firewall settings.","notification_cannot_download":"This file could not be downloaded.","notification_cannot_download_due_to_policy":"The file could not be downloaded due to a security policy.","notifications_region_label":"Notifications","notification_icon_error":"Error","notification_icon_info":"Information","notification_icon_success":"Success","notification_icon_warning":"Warning","notification_webgl_context_lost":"WebGL Context Lost","notification_webgl_context_restored":"WebGL Context Restored","link_contact_us":"Contact Us","360_videos":"360-degree videos","360_images":"360-degree images","3d_models":"3D models","afrikaans":"Afrikaans","albanian":"Albanian","arabic":"Arabic","armenian":"Armenian","belarusian":"Belarusian","bengali":"Bengali","bosnian":"Bosnian","bulgarian":"Bulgarian","burmese":"Burmese","catalan":"Catalan","central_khmer":"Central Khmer","chinese":"Chinese","croatian":"Croatian","czech":"Czech","danish":"Danish","dutch":"Dutch","english":"English","estonian":"Estonian","filipino":"Filipino","finnish":"Finnish","french":"French","galician":"Galician","ganda":"Ganda","georgian":"Georgian","german":"German","haitian_creole":"Haitian Creole","hebrew":"Hebrew","hindi":"Hindi","hmong":"Hmong","hungarian":"Hungarian","icelandic":"Icelandic","indonesian":"Indonesian","irish":"Irish","italian":"Italian","japanese":"Japanese","kazakh":"Kazakh","korean":"Korean","kurdish":"Kurdish","lao":"Lao","latvian":"Latvian","lithuanian":"Lithuanian","luxembourgish":"Luxembourgish","malay_macrolanguage":"Malay","modern_greek_1453_":"Greek","mongolian":"Mongolian","norwegian":"Norwegian","persian":"Persian","polish":"Polish","portuguese":"Portuguese","romanian":"Romanian","russian":"Russian","serbian":"Serbian","sichuan_yi":"Sichuan Yi","sicilian":"Sicilian","slovak":"Slovak","slovenian":"Slovenian","somali":"Somali","spanish":"Spanish","swahili_macrolanguage":"Swahili","swedish":"Swedish","swiss_german":"Swiss German","tagalog":"Tagalog","telugu":"Telugu","thai":"Thai","tibetan":"Tibetan","turkish":"Turkish","ukrainian":"Ukrainian","uzbek":"Uzbek","vietnamese":"Vietnamese"} : {};
1229
+ const defaultStrings = (0,_isNpmBuild__WEBPACK_IMPORTED_MODULE_0__/* .isNpmBuild */ .w)() ? {"rotate_left":"Rotate left","zoom_current_scale":"Current zoom level","zoom_in":"Zoom in","zoom_out":"Zoom out","enter_fullscreen":"Enter fullscreen","exit_fullscreen":"Exit fullscreen","controls_more":"More options","controls_find":"Find","controls_rotate_document":"Rotate document","controls_rotate_image":"Rotate image","controls_zoom_scale":"Zoom: {1}","controls_view_as_grid":"View as grid","controls_show_thumbnails":"View thumbnails","controls_hide_thumbnails":"Hide thumbnails","controls_shortcut_ctrl":"Ctrl + {1}","controls_toolbar":"Preview controls","drawing_comment":"Markup","region_comment":"Comment on Region","highlight_text":"Highlight and Comment","exit_annotations":"Exit Annotations","annotation_tools":"Comment","annotation_region_comment":"Comment on region","annotation_highlight_text":"Highlight and comment","annotation_tools_toolbar":"Comment and markup tools","drawing_color":"Drawing color","drawing_color_blue":"Blue","drawing_color_green":"Green","drawing_color_red":"Red","drawing_color_orange":"Orange","drawing_color_yellow":"Yellow","drawing_color_purple":"Purple","previous_page":"Previous page","enter_page_num":"Click to enter page number","next_page":"Next page","download":"Download","print":"Print","print_notification":"Please press the print button to get a printable version of this document.","print_loading":"Preparing to print...","print_ready":"Ready to print.","print_close":"Close print dialog","previous_file":"Previous file","logo":"Logo","next_file":"Next file","loading_preview":"Loading Preview...","download_file":"Download File","text_truncated":"This file has been truncated due to size limits. Please download to view the whole file.","notice_info":"Info","toggle_findbar":"Toggle findbar","toggle_thumbnails":"Toggle thumbnails","thumbnails_toggle_show":"Show thumbnails","thumbnails_toggle_hide":"Hide thumbnails","gallery_view":"Gallery view","page_gallery":"Page gallery","page_gallery_tile":"Page {1}","has_x_refs":"This preview has references you cannot view. Open the file in its native application.","find_next":"Find next","find_previous":"Find previous","find_close":"Close","find_label":"Search input","find_placeholder":"Find in document","find_match_count":"{1} of {2}","thumbnail_label":"Page thumbnails","file_preview_label":"File preview","comparison_banner_current":"Current version","comparison_banner_previous":"Previous version","comparison_banner_version":"Version {1}","comparison_banner_actions":"More actions","comparison_banner_open_full_preview":"Open Full Preview","comparison_banner_close":"Close","comparison_banner_make_current":"Make Current","comparison_banner_delete":"Delete","error_generic":"This preview didn’t load. Please try to open or download the file to view.","error_unsupported":"This preview didn’t load because the file type is unsupported. Please try to open or download the file to view.","error_account":"This preview didn’t load because your account is unable to preview this file type. Please try to open or download the file to view.","error_permissions":"This preview didn’t load because you don’t have permission. Please ask the file owner to update permissions.","error_refresh":"This preview didn’t load. Please try to open or download the file to view.","error_rate_limit":"This preview didn’t load because your request was rate limited. Please try to open or download the file to view.","error_reupload":"This preview didn’t load. Please try to open or download the file to view.","error_browser_unsupported":"Your browser doesn’t support preview for {1}. Please try to open or download the file to view.","error_document":"This preview didn’t load because the document may be protected. Please try to open or download the file to view.","error_password_protected":"This preview didn’t load because the document is protected. Please try to open or download the file to view.","error_try_again_later":"This preview didn’t load. Please refresh the page or download file to view.","error_bad_file":"This preview didn’t load. Please try to open or download the file to view.","error_not_downloadable":"Something seems to be wrong with this file. Please refresh the page, and if the issue continues, try to upload a new version.","error_flash_not_enabled":"This preview didn’t load because Flash is not enabled on your browser. Please try to enable Flash or download the file to view.","error_internet_explorer_office_online":"This version of Internet Explorer is out of date and the experience may be degraded. Please try switching to a different browser for a better experience.","error_large_file":"File exceeds supported size for preview. Open or download the file to view.","error_too_many_operations":"The file is too complex to display in your browser. Please download it to view.","error_zero_byte_file":"Cannot preview 0 B file. Open or download the file to view.","filename":"Name","last_modified_date":"Modified","size":"Size","search":"Search","search_results":"Search Results","search_placeholder":"Search files and folders","search_clear":"Clear search","breadcrumb":"Breadcrumb","breadcrumb_truncated":"Show hidden folders","media_autoplay":"Autoplay","media_autoplay_disabled":"Disabled","media_autoplay_enabled":"Enabled","media_play_next":"Play next file","media_play_next_disabled":"Disabled","media_play_next_enabled":"Enabled","media_speed":"Speed","media_speed_normal":"Normal","media_quality":"Quality","media_quality_auto":"Auto","media_guides":"Guides","media_guides_off":"Off","media_guides_default":"Default","media_guides_widescreen_hd":"Widescreen HD","media_guides_vertical":"Vertical","media_guides_square":"Square","media_guides_social_portrait":"Social Portrait","media_guides_cinemascope":"Cinemascope","media_guides_univisium":"Univisium","media_guides_cinema_flat":"Cinema Flat","media_guides_scope":"Scope","media_guides_fullscreen":"Fullscreen","media_guides_ultrawide":"Ultrawide","media_volume_slider":"Volume Slider","media_generating_waveform":"Generating waveform","media_loading":"Loading","media_zoom":"Zoom","media_zoom_slider":"Zoom Slider","media_time_slider":"Media Slider","media_comment_marker":"Comment marker","media_range_comment":"Comment","media_range_clear":"Clear","media_shuttle_forward":"Scanning forward at {1}x","media_shuttle_reverse":"Scanning backward at {1}x","media_mute":"Mute","media_unmute":"Unmute","media_play":"Play","media_pause":"Pause","media_skip_forward":"Skip forward","media_skip_backward":"Skip backward","media_settings":"Settings","media_subtitles_cc":"Subtitles/Closed Captions","media_time_format":"Time format","media_time_format_standard":"Standard time","media_time_format_timecode":"Timecode","media_time_format_frames":"Frame numbers","volume":"Volume","of":"of","subtitles":"Subtitles","off":"Off","media_audio":"Audio","track":"Track","media_auto_generated_captions":"Auto-Generated Captions","auto_generated":"Auto-Generated","box3d_animation_clips":"Animation clips","box3d_camera_projection_perspective":"Perspective","box3d_camera_projection_orthographic":"Orthographic","box3d_reset":"Reset","box3d_toggle_animation":"Play/pause animation","box3d_toggle_vr":"Toggle VR display","box3d_render_mode_lit":"Lit","box3d_render_mode_unlit":"Unlit","box3d_render_mode_normals":"Normals","box3d_render_mode_shape":"Shape","box3d_render_mode_uv_overlay":"UV Overlay","box3d_settings":"Settings","box3d_settings_render_label":"Render mode","box3d_settings_grid_label":"Show grid","box3d_settings_wireframes_label":"Show wireframes","box3d_settings_skeletons_label":"Show skeletons","box3d_settings_projection_label":"Camera Projection","box3d_settings_rotate_label":"Rotate Model","box3d_settings_rotate_left":"Rotate left around {1} axis","box3d_settings_rotate_right":"Rotate right around {1} axis","document_label":"Document Viewer","annotation_add_comment_placeholder":"Add a comment here...","annotation_reply_placeholder":"Post a reply...","annotation_done":"Done","annotation_close":"Close","annotation_cancel":"Cancel","annotation_save":"Save","annotation_post":"Post","annotation_delete":"Delete","annotation_delete_confirmation_message":"Delete this annotation?","annotation_profile_alt":"Avatar","annotation_anonymous_user_name":"Some User","annotation_posting_message":"Posting...","annotation_point_toggle":"Point annotation mode","annotation_draw_toggle":"Drawing annotation mode","annotation_highlight_toggle":"Highlight text","annotation_highlight_comment":"Add comment to highlighted text","annotation_who_highlighted":"{1} highlighted","annotation_who_drew":"{1} drew","annotation_draw_save":"Save drawing","annotation_draw_delete":"Delete drawing","annotations_load_error":"Annotations could not be loaded for this file. Please refresh the page to try again.","annotations_create_error":"This annotation could not be created. Please try again.","annotations_delete_error":"This annotation could not be deleted. Please try again.","annotations_authorization_error":"Annotations could not be loaded for this file. You may not have permission to take this action.","notification_button_default_text":"Okay","notification_button_default_label":"Clear Notification","notification_annotation_point_mode":"Click anywhere to add a comment to the document","notification_annotation_draw_mode":"Press down and drag the pointer to draw on the document","notification_degraded_preview":"Your connection to {1} is being blocked. Please reach out to your network admin to adjust firewall settings.","notification_cannot_download":"This file could not be downloaded.","notification_cannot_download_due_to_policy":"The file could not be downloaded due to a security policy.","notifications_region_label":"Notifications","notification_icon_error":"Error","notification_icon_info":"Information","notification_icon_success":"Success","notification_icon_warning":"Warning","notification_webgl_context_lost":"WebGL Context Lost","notification_webgl_context_restored":"WebGL Context Restored","link_contact_us":"Contact Us","360_videos":"360-degree videos","360_images":"360-degree images","3d_models":"3D models","afrikaans":"Afrikaans","albanian":"Albanian","arabic":"Arabic","armenian":"Armenian","belarusian":"Belarusian","bengali":"Bengali","bosnian":"Bosnian","bulgarian":"Bulgarian","burmese":"Burmese","catalan":"Catalan","central_khmer":"Central Khmer","chinese":"Chinese","croatian":"Croatian","czech":"Czech","danish":"Danish","dutch":"Dutch","english":"English","estonian":"Estonian","filipino":"Filipino","finnish":"Finnish","french":"French","galician":"Galician","ganda":"Ganda","georgian":"Georgian","german":"German","haitian_creole":"Haitian Creole","hebrew":"Hebrew","hindi":"Hindi","hmong":"Hmong","hungarian":"Hungarian","icelandic":"Icelandic","indonesian":"Indonesian","irish":"Irish","italian":"Italian","japanese":"Japanese","kazakh":"Kazakh","korean":"Korean","kurdish":"Kurdish","lao":"Lao","latvian":"Latvian","lithuanian":"Lithuanian","luxembourgish":"Luxembourgish","malay_macrolanguage":"Malay","modern_greek_1453_":"Greek","mongolian":"Mongolian","norwegian":"Norwegian","persian":"Persian","polish":"Polish","portuguese":"Portuguese","romanian":"Romanian","russian":"Russian","serbian":"Serbian","sichuan_yi":"Sichuan Yi","sicilian":"Sicilian","slovak":"Slovak","slovenian":"Slovenian","somali":"Somali","spanish":"Spanish","swahili_macrolanguage":"Swahili","swedish":"Swedish","swiss_german":"Swiss German","tagalog":"Tagalog","telugu":"Telugu","thai":"Thai","tibetan":"Tibetan","turkish":"Turkish","ukrainian":"Ukrainian","uzbek":"Uzbek","vietnamese":"Vietnamese"} : {};
1229
1230
  let language = true ? "en-US" : 0;
1230
1231
  let strings = defaultStrings;
1231
1232
  function getLanguage() {
@@ -1328,7 +1329,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
1328
1329
  const CLIENT_NAME = "box-content-preview"; // eslint-disable-line no-undef
1329
1330
  const CLIENT_NAME_KEY = 'box_client_name';
1330
1331
  const CLIENT_VERSION_KEY = 'box_client_version';
1331
- const CLIENT_VERSION = "3.127.0"; // eslint-disable-line no-undef
1332
+ const CLIENT_VERSION = "3.129.0"; // eslint-disable-line no-undef
1332
1333
  const HEADER_CLIENT_NAME = 'X-Box-Client-Name';
1333
1334
  const HEADER_CLIENT_VERSION = 'X-Box-Client-Version';
1334
1335
  const PROMISE_MAP = {};
@@ -21643,7 +21644,7 @@ var x = (y) => {
21643
21644
  var x = {}; __webpack_require__.d(x, y); return x
21644
21645
  }
21645
21646
  var y = (x) => (() => (x))
21646
- module.exports = x({ ["BlueprintProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.BlueprintProvider), ["Breadcrumb"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Breadcrumb), ["Cell"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Cell), ["Column"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Column), ["DataTableWrapper"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DataTableWrapper), ["DropdownMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DropdownMenu), ["EllipsizableText"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.EllipsizableText), ["Focusable"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Focusable), ["Ghost"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Ghost), ["IconButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconButton), ["IconToggleButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconToggleButton), ["LoadingIndicator"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.LoadingIndicator), ["Modal"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Modal), ["Notification"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Notification), ["Popover"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Popover), ["Row"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Row), ["SearchInput"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SearchInput), ["Select"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Select), ["SelectMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SelectMenu), ["Switch"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Switch), ["Table"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Table), ["TableBody"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableBody), ["TableHeader"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableHeader), ["Text"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Text), ["Toolbar"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Toolbar), ["Tooltip"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Tooltip), ["TooltipProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TooltipProvider), ["VisuallyHidden"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.VisuallyHidden), ["useNoopTreatment"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.useNoopTreatment), ["useNotification"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.useNotification) });
21647
+ module.exports = x({ ["BlueprintProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.BlueprintProvider), ["Breadcrumb"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Breadcrumb), ["Button"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Button), ["Cell"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Cell), ["Column"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Column), ["DataTableWrapper"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DataTableWrapper), ["DropdownMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.DropdownMenu), ["EllipsizableText"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.EllipsizableText), ["EmptyState"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.EmptyState), ["Focusable"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Focusable), ["Ghost"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Ghost), ["IconButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconButton), ["IconToggleButton"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.IconToggleButton), ["InlineNotice"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.InlineNotice), ["Link"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Link), ["LoadingIndicator"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.LoadingIndicator), ["Modal"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Modal), ["Notification"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Notification), ["Popover"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Popover), ["Row"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Row), ["SearchInput"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SearchInput), ["Select"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Select), ["SelectMenu"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.SelectMenu), ["Switch"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Switch), ["Table"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Table), ["TableBody"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableBody), ["TableHeader"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TableHeader), ["Text"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Text), ["Toolbar"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Toolbar), ["Tooltip"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.Tooltip), ["TooltipProvider"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.TooltipProvider), ["VisuallyHidden"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.VisuallyHidden), ["useNoopTreatment"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.useNoopTreatment), ["useNotification"]: () => (__WEBPACK_EXTERNAL_MODULE__box_blueprint_web_e1e285a9__.useNotification) });
21647
21648
 
21648
21649
  /***/ },
21649
21650
 
@@ -37308,7 +37309,7 @@ var isNpmBuild = __webpack_require__(8080);
37308
37309
  ;// ./src/lib/Logger.js
37309
37310
  /* eslint-disable no-undef */
37310
37311
  const CLIENT_NAME = "box-content-preview";
37311
- const CLIENT_VERSION = "3.127.0";
37312
+ const CLIENT_VERSION = "3.129.0";
37312
37313
  /* eslint-enable no-undef */
37313
37314
 
37314
37315
  class Logger {
@@ -38957,9 +38958,14 @@ class BaseViewer extends (events_default()) {
38957
38958
  *
38958
38959
  * @protected
38959
38960
  * @param {string} key - Keydown key
38961
+ * @param {KeyboardEvent} [event] - Keydown event
38960
38962
  * @return {boolean} Consumed or not
38961
38963
  */
38962
- handleFullscreenKey(key) {
38964
+ handleFullscreenKey(key, event) {
38965
+ // Decoded keys drop Alt, and Alt+F opens the browser menu on Windows
38966
+ if (event?.altKey) {
38967
+ return false;
38968
+ }
38963
38969
  if ((key === 'f' || key === 'F') && this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ)) {
38964
38970
  this.toggleFullscreen();
38965
38971
  return true;
@@ -40645,9 +40651,10 @@ class ImageBaseViewer extends viewers_BaseViewer {
40645
40651
  *
40646
40652
  * @private
40647
40653
  * @param {string} key - Keydown key
40654
+ * @param {KeyboardEvent} [event] - Keydown event
40648
40655
  * @return {boolean} Consumed or not
40649
40656
  */
40650
- onKeydown(key) {
40657
+ onKeydown(key, event) {
40651
40658
  // Return false when media controls are not ready or are focused
40652
40659
  if (!this.controls) {
40653
40660
  return false;
@@ -40660,7 +40667,7 @@ class ImageBaseViewer extends viewers_BaseViewer {
40660
40667
  this.zoomOut();
40661
40668
  return true;
40662
40669
  }
40663
- return this.handleFullscreenKey(key);
40670
+ return this.handleFullscreenKey(key, event);
40664
40671
  }
40665
40672
 
40666
40673
  /**
@@ -41672,7 +41679,8 @@ var utils = __webpack_require__(5346);
41672
41679
  // extracted by mini-css-extract-plugin
41673
41680
 
41674
41681
  ;// ./src/lib/viewers/controls/controls-bar/ControlsBarV2.tsx
41675
- const ControlsBarV2_excluded = ["children", "size"];
41682
+ /* provided dependency */ var ControlsBarV2_ = __webpack_require__(441)["Tl"];
41683
+ const ControlsBarV2_excluded = ["aria-label", "children", "size"];
41676
41684
  function ControlsBarV2_extends() { return ControlsBarV2_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, ControlsBarV2_extends.apply(null, arguments); }
41677
41685
  function ControlsBarV2_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = ControlsBarV2_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
41678
41686
  function ControlsBarV2_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
@@ -41682,6 +41690,7 @@ function ControlsBarV2_objectWithoutPropertiesLoose(r, e) { if (null == r) retur
41682
41690
 
41683
41691
  function ControlsBarV2(_ref, ref) {
41684
41692
  let {
41693
+ 'aria-label': ariaLabel = ControlsBarV2_('controls_toolbar'),
41685
41694
  children,
41686
41695
  size = 'large'
41687
41696
  } = _ref,
@@ -41691,6 +41700,7 @@ function ControlsBarV2(_ref, ref) {
41691
41700
  }
41692
41701
  return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.Root, ControlsBarV2_extends({
41693
41702
  ref: ref,
41703
+ "aria-label": ariaLabel,
41694
41704
  className: `bp-ControlsBarV2 bp-ControlsBarV2--${size}`,
41695
41705
  colorScheme: "dark",
41696
41706
  "data-testid": "bp-ControlsBar"
@@ -41720,6 +41730,7 @@ function AnnotationsPaletteV2({
41720
41730
  className: "bp-AnnotationsPaletteV2",
41721
41731
  "data-testid": "bp-AnnotationsPaletteV2"
41722
41732
  }, /*#__PURE__*/external_react_["default"].createElement(controls_bar_ControlsBarV2, {
41733
+ "aria-label": AnnotationsPaletteV2_('annotation_tools_toolbar'),
41723
41734
  size: "small"
41724
41735
  }, children));
41725
41736
  }
@@ -41759,12 +41770,12 @@ function Mode({
41759
41770
  testId: 'bp-AnnotationsControls-drawBtn'
41760
41771
  },
41761
41772
  [AnnotationMode.HIGHLIGHT]: {
41762
- label: AnnotationsPaletteV2_('highlight_text'),
41773
+ label: AnnotationsPaletteV2_('annotation_highlight_text'),
41763
41774
  resinTarget: 'highlightText',
41764
41775
  testId: 'bp-AnnotationsControls-highlightBtn'
41765
41776
  },
41766
41777
  [AnnotationMode.REGION]: {
41767
- label: AnnotationsPaletteV2_('region_comment'),
41778
+ label: AnnotationsPaletteV2_('annotation_region_comment'),
41768
41779
  resinTarget: 'highlightRegion',
41769
41780
  testId: 'bp-AnnotationsControls-regionBtn'
41770
41781
  }
@@ -42790,15 +42801,16 @@ class ImageViewer extends image_ImageBaseViewer {
42790
42801
  * Handles keyboard events for the image
42791
42802
  *
42792
42803
  * @param {string} key - Keydown key
42804
+ * @param {KeyboardEvent} [event] - Keydown event
42793
42805
  * @return {boolean} Consumed or not
42794
42806
  */
42795
- onKeydown(key) {
42807
+ onKeydown(key, event) {
42796
42808
  // This bare key belongs to the Blueprint controls bar, whose menu lists it; the older bar has no such shortcut
42797
- if (this.controls && (key === 'r' || key === 'R') && this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ)) {
42809
+ if (this.controls && (key === 'r' || key === 'R') && !event?.altKey && this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ)) {
42798
42810
  this.rotateLeft();
42799
42811
  return true;
42800
42812
  }
42801
- return super.onKeydown(key);
42813
+ return super.onKeydown(key, event);
42802
42814
  }
42803
42815
 
42804
42816
  // Annotation overrides
@@ -46351,11 +46363,12 @@ class Image360Viewer extends box3d_Box3DViewer {
46351
46363
  * Handles keyboard events
46352
46364
  *
46353
46365
  * @param {string} key - Keydown key
46366
+ * @param {KeyboardEvent} [event] - Keydown event
46354
46367
  * @return {boolean} Consumed or not
46355
46368
  */
46356
- onKeydown(key) {
46369
+ onKeydown(key, event) {
46357
46370
  // Without React controls the legacy Box3DControls bar renders, which has no fullscreen shortcut
46358
- return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key) : false;
46371
+ return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key, event) : false;
46359
46372
  }
46360
46373
  renderUI() {
46361
46374
  if (!this.controls) {
@@ -47362,10 +47375,11 @@ class TextBaseViewer extends viewers_BaseViewer {
47362
47375
  * Handles keyboard events for media
47363
47376
  *
47364
47377
  * @param {string} key - keydown key
47378
+ * @param {KeyboardEvent} [event] - keydown event
47365
47379
  * @return {boolean} consumed or not
47366
47380
  * @protected
47367
47381
  */
47368
- onKeydown(key) {
47382
+ onKeydown(key, event) {
47369
47383
  // Return false when media controls are not ready or are focused
47370
47384
  if (!this.controls) {
47371
47385
  return false;
@@ -47378,7 +47392,7 @@ class TextBaseViewer extends viewers_BaseViewer {
47378
47392
  this.zoomOut();
47379
47393
  return true;
47380
47394
  }
47381
- return false;
47395
+ return this.handleFullscreenKey(key, event);
47382
47396
  }
47383
47397
 
47384
47398
  /**
@@ -47580,6 +47594,52 @@ class PrintModalRoot {
47580
47594
  }))));
47581
47595
  }
47582
47596
  }
47597
+ // EXTERNAL MODULE: external "react-dom"
47598
+ var external_react_dom_ = __webpack_require__(7516);
47599
+ ;// ./src/lib/viewers/text/TruncatedTextNoticeV2.tsx
47600
+ /* provided dependency */ var TruncatedTextNoticeV2_ = __webpack_require__(441)["Tl"];
47601
+ function TruncatedTextNoticeV2_defineProperty(e, r, t) { return (r = TruncatedTextNoticeV2_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
47602
+ function TruncatedTextNoticeV2_toPropertyKey(t) { var i = TruncatedTextNoticeV2_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
47603
+ function TruncatedTextNoticeV2_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
47604
+
47605
+
47606
+
47607
+
47608
+
47609
+ function TruncatedTextNoticeV2({
47610
+ onDownload
47611
+ }) {
47612
+ return /*#__PURE__*/external_react_["default"].createElement(external_react_["default"].Fragment, null, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.InlineNotice, {
47613
+ variant: "info",
47614
+ variantIconAriaLabel: TruncatedTextNoticeV2_('notice_info')
47615
+ }, TruncatedTextNoticeV2_('text_truncated')), /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Button, {
47616
+ className: "bp-TruncatedTextNoticeV2-download",
47617
+ "data-resin-target": "downloadTruncatedFile",
47618
+ "data-target-id": "TruncatedTextNotice-download",
47619
+ onClick: onDownload,
47620
+ variant: "primary"
47621
+ }, TruncatedTextNoticeV2_('download_file')));
47622
+ }
47623
+ class TruncatedTextNoticeV2Root {
47624
+ constructor(containerEl, onDownload) {
47625
+ TruncatedTextNoticeV2_defineProperty(this, "hostEl", void 0);
47626
+ TruncatedTextNoticeV2_defineProperty(this, "root", void 0);
47627
+ this.hostEl = document.createElement('div');
47628
+ this.hostEl.className = 'bp-TruncatedTextNoticeV2';
47629
+ this.hostEl.setAttribute('data-resin-feature', 'truncatedText');
47630
+ containerEl.appendChild(this.hostEl);
47631
+ this.root = (0,client_.createRoot)(this.hostEl);
47632
+ (0,external_react_dom_.flushSync)(() => {
47633
+ this.root.render(/*#__PURE__*/external_react_["default"].createElement(BlueprintProviders/* default */.A, null, /*#__PURE__*/external_react_["default"].createElement(TruncatedTextNoticeV2, {
47634
+ onDownload: onDownload
47635
+ })));
47636
+ });
47637
+ }
47638
+ destroy() {
47639
+ this.root.unmount();
47640
+ this.hostEl.remove();
47641
+ }
47642
+ }
47583
47643
  ;// ./src/lib/icons/print_checkmark.svg
47584
47644
  const print_checkmark_namespaceObject = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" focusable=\"false\">\n <path d=\"M4.187 6.48L3.067 7.6l3.6 3.6 8-8-1.12-1.12-6.88 6.88-2.48-2.48zM14.4 8c0 3.52-2.88 6.4-6.4 6.4-3.52 0-6.4-2.88-6.4-6.4 0-3.52 2.88-6.4 6.4-6.4.64 0 1.2.08 1.76.24L11.04.56C10.08.24 9.04 0 8 0 3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8h-1.6z\" fill=\"#22A7F0\" fill-rule=\"evenodd\"/>\n</svg>\n";
47585
47645
  ;// ./src/lib/viewers/text/printStyles.ts
@@ -47630,7 +47690,8 @@ const PLAIN_TEXT_PRINT_STYLES = `
47630
47690
  word-wrap: break-word;
47631
47691
  }
47632
47692
 
47633
- .bp-text-truncated .bp-btn-download {
47693
+ .bp-text-truncated .bp-btn-download,
47694
+ .bp-TruncatedTextNoticeV2-download {
47634
47695
  display: none;
47635
47696
  }
47636
47697
  }
@@ -47666,6 +47727,7 @@ function PlainTextViewer_toPrimitive(t, r) { if ("object" != typeof t || !t) ret
47666
47727
 
47667
47728
 
47668
47729
 
47730
+
47669
47731
  // Inline web worker JS
47670
47732
  const HIGHLIGHT_WORKER_JS = 'onmessage=function(e){importScripts(e.data.highlightSrc);postMessage(self.hljs.highlightAuto(e.data.text).value)};';
47671
47733
 
@@ -47741,6 +47803,10 @@ class PlainTextViewer extends text_TextBaseViewer {
47741
47803
  downloadBtnEl.removeEventListener('click', this.download.bind(this));
47742
47804
  }
47743
47805
  }
47806
+ if (this.truncatedNotice) {
47807
+ this.truncatedNotice.destroy();
47808
+ this.truncatedNotice = null;
47809
+ }
47744
47810
  if (this.printPopup) {
47745
47811
  this.printPopup.destroy();
47746
47812
  this.printPopup = null;
@@ -48008,6 +48074,13 @@ class PlainTextViewer extends text_TextBaseViewer {
48008
48074
  * @return {void}
48009
48075
  */
48010
48076
  showTruncatedDownloadButton() {
48077
+ if (this.featureEnabled(constants/* BLUEPRINT_MIGRATION_SUPPORTING_UI */.Ed)) {
48078
+ if (this.truncatedNotice) {
48079
+ this.truncatedNotice.destroy();
48080
+ }
48081
+ this.truncatedNotice = new TruncatedTextNoticeV2Root(this.textEl, () => this.download());
48082
+ return;
48083
+ }
48011
48084
  const truncatedEl = document.createElement('div');
48012
48085
  truncatedEl.classList.add('bp-text-truncated');
48013
48086
  const truncatedTextEl = document.createElement('p');
@@ -55798,8 +55871,6 @@ function VideoFullscreenButton({
55798
55871
  type: "button"
55799
55872
  }, isFullscreen ? /*#__PURE__*/external_react_["default"].createElement(icons_IconArrowsMinimizeMedium24, null) : /*#__PURE__*/external_react_["default"].createElement(icons_IconArrowsMaximizeMedium24, null));
55800
55873
  }
55801
- // EXTERNAL MODULE: external "react-dom"
55802
- var external_react_dom_ = __webpack_require__(7516);
55803
55874
  ;// ./src/lib/viewers/controls/annotations/AnnotationsPaletteAnchorV2.scss
55804
55875
  // extracted by mini-css-extract-plugin
55805
55876
 
@@ -58837,6 +58908,7 @@ function ThumbnailsToggleV2({
58837
58908
  if (!onThumbnailsToggle) {
58838
58909
  return null;
58839
58910
  }
58911
+ const label = isThumbnailsOpen ? ThumbnailsToggleV2_('thumbnails_toggle_hide') : ThumbnailsToggleV2_('thumbnails_toggle_show');
58840
58912
  return /*#__PURE__*/external_react_["default"].createElement("div", {
58841
58913
  className: "bp-ThumbnailsToggleV2"
58842
58914
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleGroup, {
@@ -58844,10 +58916,10 @@ function ThumbnailsToggleV2({
58844
58916
  type: "multiple",
58845
58917
  value: isThumbnailsOpen ? ['thumbnails'] : []
58846
58918
  }, /*#__PURE__*/external_react_["default"].createElement(ToggleTooltipV2, {
58847
- content: ThumbnailsToggleV2_('toggle_thumbnails')
58919
+ content: label
58848
58920
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleItem, {
58849
58921
  "aria-expanded": isThumbnailsOpen,
58850
- "aria-label": ThumbnailsToggleV2_('toggle_thumbnails'),
58922
+ "aria-label": label,
58851
58923
  "data-resin-target": "thumbnails",
58852
58924
  icon: isThumbnailsOpen ? __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_MediumFilled_Nav_ae6d790f_default__ : __WEBPACK_EXTERNAL_MODULE__box_blueprint_web_assets_icons_Medium_Nav_d41e959a_default__,
58853
58925
  value: "thumbnails"
@@ -64000,15 +64072,14 @@ class DocBaseViewer extends viewers_BaseViewer {
64000
64072
  case 'R':
64001
64073
  // The rotate control is hidden while the gallery is open, so the key follows it.
64002
64074
  // These bare keys belong to the v2 controls bar; the older bar has no such shortcuts.
64003
- if (this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ) && !this.galleryController?.isOpen && this.featureEnabled('rotate.enabled')) {
64075
+ if (this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ) && !event?.altKey && !this.galleryController?.isOpen && this.featureEnabled('rotate.enabled')) {
64004
64076
  this.rotateLeft();
64005
64077
  break;
64006
64078
  }
64007
64079
  return this.findBar ? this.findBar.onKeydown(event) : false;
64008
64080
  case 'f':
64009
64081
  case 'F':
64010
- if (this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ)) {
64011
- this.toggleFullscreen();
64082
+ if (this.handleFullscreenKey(key, event)) {
64012
64083
  break;
64013
64084
  }
64014
64085
  return this.findBar ? this.findBar.onKeydown(event) : false;
@@ -70240,6 +70311,18 @@ class Model3DViewer extends box3d_Box3DViewer {
70240
70311
  this.controls.showVrButton();
70241
70312
  }
70242
70313
  }
70314
+
70315
+ /**
70316
+ * Handles keyboard events
70317
+ *
70318
+ * @param {string} key - Keydown key
70319
+ * @param {KeyboardEvent} [event] - Keydown event
70320
+ * @return {boolean} Consumed or not
70321
+ */
70322
+ onKeydown(key, event) {
70323
+ // Without React controls the legacy Model3DControls bar renders, which has no fullscreen shortcut
70324
+ return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key, event) : false;
70325
+ }
70243
70326
  renderUI() {
70244
70327
  if (!this.controls || !this.renderer) {
70245
70328
  return;
@@ -71058,31 +71141,59 @@ class ComparisonBannerRoot {
71058
71141
  this.hostEl.remove();
71059
71142
  }
71060
71143
  }
71061
- // EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/item-icon/item-icon.js + 2 modules
71062
- var item_icon = __webpack_require__(1057);
71063
- // EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/utils.js + 1 modules
71064
- var lib_utils = __webpack_require__(6494);
71065
71144
  ;// external "box-ui-elements/es/components/preview"
71066
71145
 
71067
71146
  ;// ./src/lib/viewers/error/ErrorIcon.tsx
71068
71147
 
71069
71148
 
71070
-
71071
71149
  function ErrorIcon({
71072
- extension,
71073
- isBlueprintEnabled = false
71150
+ extension
71074
71151
  }) {
71075
- if (isBlueprintEnabled) {
71076
- return /*#__PURE__*/external_react_["default"].createElement(item_icon/* ItemIcon */.zG, {
71077
- ariaHidden: true,
71078
- iconType: (0,lib_utils/* getFileCategoryByExtension */.N)(extension?.toLowerCase())
71079
- });
71080
- }
71081
71152
  const Icon = __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_preview_386c8d2b_getIcon__(extension);
71082
71153
  return /*#__PURE__*/external_react_["default"].createElement(Icon, {
71083
71154
  extension: extension
71084
71155
  });
71085
71156
  }
71157
+ // EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/utils.js + 1 modules
71158
+ var lib_utils = __webpack_require__(6494);
71159
+ // EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/item-icon/item-icon.js + 2 modules
71160
+ var item_icon = __webpack_require__(1057);
71161
+ ;// ./src/lib/viewers/error/PreviewErrorV2.tsx
71162
+ /* provided dependency */ var PreviewErrorV2_ = __webpack_require__(441)["Tl"];
71163
+
71164
+
71165
+
71166
+ function PreviewErrorV2({
71167
+ extension,
71168
+ linkText,
71169
+ linkUrl,
71170
+ message,
71171
+ onDownload
71172
+ }) {
71173
+ const fileCategory = (0,lib_utils/* getFileCategoryByExtension */.N)(extension?.toLowerCase());
71174
+ const illustration = item_icon/* itemIconTable */.RU[fileCategory] || item_icon/* itemIconTable */.RU.default;
71175
+ const hasLink = !!linkText && !!linkUrl;
71176
+ return /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EmptyState, {
71177
+ body: /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Text, {
71178
+ as: "p"
71179
+ }, message),
71180
+ className: "bp-PreviewErrorV2-emptyState",
71181
+ illustration: illustration
71182
+ }, hasLink && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EmptyState.PrimaryAction, {
71183
+ clickOnSpace: false,
71184
+ "data-resin-target": "errorLink",
71185
+ render: /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Link, {
71186
+ href: linkUrl,
71187
+ rel: "noopener noreferrer",
71188
+ target: "_blank",
71189
+ unstyled: true
71190
+ })
71191
+ }, linkText), !hasLink && onDownload && /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.EmptyState.PrimaryAction, {
71192
+ "data-resin-target": "download",
71193
+ "data-testid": "preview-error-download-btn",
71194
+ onClick: onDownload
71195
+ }, PreviewErrorV2_('download')));
71196
+ }
71086
71197
  ;// ./src/lib/viewers/error/PreviewError.scss
71087
71198
  // extracted by mini-css-extract-plugin
71088
71199
 
@@ -71098,6 +71209,8 @@ function ErrorIcon({
71098
71209
 
71099
71210
 
71100
71211
 
71212
+
71213
+
71101
71214
  class PreviewErrorViewer extends viewers_BaseViewer {
71102
71215
  /**
71103
71216
  * @inheritdoc
@@ -71119,6 +71232,13 @@ class PreviewErrorViewer extends viewers_BaseViewer {
71119
71232
 
71120
71233
  // Call super() first to set up common layout
71121
71234
  super.setup();
71235
+ if (this.featureEnabled(constants/* BLUEPRINT_MIGRATION_SUPPORTING_UI */.Ed)) {
71236
+ this.infoEl = this.createViewer(document.createElement('div'));
71237
+ this.infoEl.className = 'bp-PreviewErrorV2';
71238
+ this.infoEl.setAttribute('data-resin-feature', 'previewError');
71239
+ this.errorRoot = (0,client_.createRoot)(this.infoEl);
71240
+ return;
71241
+ }
71122
71242
  this.infoEl = this.createViewer(document.createElement('div'));
71123
71243
  this.infoEl.className = 'bp-error';
71124
71244
  this.iconEl = this.infoEl.appendChild(document.createElement('div'));
@@ -71150,6 +71270,9 @@ class PreviewErrorViewer extends viewers_BaseViewer {
71150
71270
  if (this.iconRoot) {
71151
71271
  this.iconRoot.unmount();
71152
71272
  }
71273
+ if (this.errorRoot) {
71274
+ this.errorRoot.unmount();
71275
+ }
71153
71276
  super.destroy();
71154
71277
  }
71155
71278
 
@@ -71173,21 +71296,30 @@ class PreviewErrorViewer extends viewers_BaseViewer {
71173
71296
  const {
71174
71297
  extension: iconExtension
71175
71298
  } = file || {};
71299
+ const hasLink = !!(details && details.linkText && details.linkUrl);
71300
+ if (this.errorRoot) {
71301
+ this.errorRoot.render(/*#__PURE__*/external_react_["default"].createElement(BlueprintProviders/* default */.A, null, /*#__PURE__*/external_react_["default"].createElement(PreviewErrorV2, {
71302
+ extension: iconExtension,
71303
+ linkText: hasLink ? details.linkText : undefined,
71304
+ linkUrl: hasLink ? details.linkUrl : undefined,
71305
+ message: displayMessage,
71306
+ onDownload: !hasLink && canDownload(file, this.options) ? this.download : undefined
71307
+ })));
71308
+ } else {
71309
+ // Display the default or file-specific error icon
71310
+ this.iconRoot.render(/*#__PURE__*/external_react_["default"].createElement(ErrorIcon, {
71311
+ extension: iconExtension
71312
+ }));
71176
71313
 
71177
- // Display the default or file-specific error icon
71178
- this.iconRoot.render(/*#__PURE__*/external_react_["default"].createElement(ErrorIcon, {
71179
- extension: iconExtension,
71180
- isBlueprintEnabled: this.featureEnabled(constants/* BLUEPRINT_MIGRATION_SUPPORTING_UI */.Ed)
71181
- }));
71182
-
71183
- // Display user-friendly error message
71184
- this.messageEl.textContent = displayMessage;
71314
+ // Display user-friendly error message
71315
+ this.messageEl.textContent = displayMessage;
71185
71316
 
71186
- // Add optional link or download button
71187
- if (details && details.linkText && details.linkUrl) {
71188
- this.addLinkButton(details.linkText, details.linkUrl);
71189
- } else if (canDownload(file, this.options)) {
71190
- this.addDownloadButton();
71317
+ // Add optional link or download button
71318
+ if (hasLink) {
71319
+ this.addLinkButton(details.linkText, details.linkUrl);
71320
+ } else if (canDownload(file, this.options)) {
71321
+ this.addDownloadButton();
71322
+ }
71191
71323
  }
71192
71324
  this.loaded = true;
71193
71325
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "box-content-preview",
3
- "version": "3.127.0",
3
+ "version": "3.129.0",
4
4
  "description": "Box Content Preview UI Element",
5
5
  "author": "Box (https://www.box.com/)",
6
6
  "license": "SEE LICENSE IN LICENSE",