box-content-preview 3.128.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.","notice_info":"Info","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.128.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), ["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), ["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), ["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.128.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 this.handleFullscreenKey(key);
47395
+ return this.handleFullscreenKey(key, event);
47382
47396
  }
47383
47397
 
47384
47398
  /**
@@ -58894,6 +58908,7 @@ function ThumbnailsToggleV2({
58894
58908
  if (!onThumbnailsToggle) {
58895
58909
  return null;
58896
58910
  }
58911
+ const label = isThumbnailsOpen ? ThumbnailsToggleV2_('thumbnails_toggle_hide') : ThumbnailsToggleV2_('thumbnails_toggle_show');
58897
58912
  return /*#__PURE__*/external_react_["default"].createElement("div", {
58898
58913
  className: "bp-ThumbnailsToggleV2"
58899
58914
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleGroup, {
@@ -58901,10 +58916,10 @@ function ThumbnailsToggleV2({
58901
58916
  type: "multiple",
58902
58917
  value: isThumbnailsOpen ? ['thumbnails'] : []
58903
58918
  }, /*#__PURE__*/external_react_["default"].createElement(ToggleTooltipV2, {
58904
- content: ThumbnailsToggleV2_('toggle_thumbnails')
58919
+ content: label
58905
58920
  }, /*#__PURE__*/external_react_["default"].createElement(blueprint_web_.Toolbar.ToggleItem, {
58906
58921
  "aria-expanded": isThumbnailsOpen,
58907
- "aria-label": ThumbnailsToggleV2_('toggle_thumbnails'),
58922
+ "aria-label": label,
58908
58923
  "data-resin-target": "thumbnails",
58909
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__,
58910
58925
  value: "thumbnails"
@@ -64057,15 +64072,14 @@ class DocBaseViewer extends viewers_BaseViewer {
64057
64072
  case 'R':
64058
64073
  // The rotate control is hidden while the gallery is open, so the key follows it.
64059
64074
  // These bare keys belong to the v2 controls bar; the older bar has no such shortcuts.
64060
- 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')) {
64061
64076
  this.rotateLeft();
64062
64077
  break;
64063
64078
  }
64064
64079
  return this.findBar ? this.findBar.onKeydown(event) : false;
64065
64080
  case 'f':
64066
64081
  case 'F':
64067
- if (this.featureEnabled(constants/* BLUEPRINT_MIGRATION_CONTROLS_BAR */.OQ)) {
64068
- this.toggleFullscreen();
64082
+ if (this.handleFullscreenKey(key, event)) {
64069
64083
  break;
64070
64084
  }
64071
64085
  return this.findBar ? this.findBar.onKeydown(event) : false;
@@ -70302,11 +70316,12 @@ class Model3DViewer extends box3d_Box3DViewer {
70302
70316
  * Handles keyboard events
70303
70317
  *
70304
70318
  * @param {string} key - Keydown key
70319
+ * @param {KeyboardEvent} [event] - Keydown event
70305
70320
  * @return {boolean} Consumed or not
70306
70321
  */
70307
- onKeydown(key) {
70322
+ onKeydown(key, event) {
70308
70323
  // Without React controls the legacy Model3DControls bar renders, which has no fullscreen shortcut
70309
- return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key) : false;
70324
+ return this.getViewerOption('useReactControls') ? this.handleFullscreenKey(key, event) : false;
70310
70325
  }
70311
70326
  renderUI() {
70312
70327
  if (!this.controls || !this.renderer) {
@@ -71126,31 +71141,59 @@ class ComparisonBannerRoot {
71126
71141
  this.hostEl.remove();
71127
71142
  }
71128
71143
  }
71129
- // EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/item-icon/item-icon.js + 2 modules
71130
- var item_icon = __webpack_require__(1057);
71131
- // EXTERNAL MODULE: ./node_modules/@box/item-icon/dist/esm/lib/utils.js + 1 modules
71132
- var lib_utils = __webpack_require__(6494);
71133
71144
  ;// external "box-ui-elements/es/components/preview"
71134
71145
 
71135
71146
  ;// ./src/lib/viewers/error/ErrorIcon.tsx
71136
71147
 
71137
71148
 
71138
-
71139
71149
  function ErrorIcon({
71140
- extension,
71141
- isBlueprintEnabled = false
71150
+ extension
71142
71151
  }) {
71143
- if (isBlueprintEnabled) {
71144
- return /*#__PURE__*/external_react_["default"].createElement(item_icon/* ItemIcon */.zG, {
71145
- ariaHidden: true,
71146
- iconType: (0,lib_utils/* getFileCategoryByExtension */.N)(extension?.toLowerCase())
71147
- });
71148
- }
71149
71152
  const Icon = __WEBPACK_EXTERNAL_MODULE_box_ui_elements_es_components_preview_386c8d2b_getIcon__(extension);
71150
71153
  return /*#__PURE__*/external_react_["default"].createElement(Icon, {
71151
71154
  extension: extension
71152
71155
  });
71153
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
+ }
71154
71197
  ;// ./src/lib/viewers/error/PreviewError.scss
71155
71198
  // extracted by mini-css-extract-plugin
71156
71199
 
@@ -71166,6 +71209,8 @@ function ErrorIcon({
71166
71209
 
71167
71210
 
71168
71211
 
71212
+
71213
+
71169
71214
  class PreviewErrorViewer extends viewers_BaseViewer {
71170
71215
  /**
71171
71216
  * @inheritdoc
@@ -71187,6 +71232,13 @@ class PreviewErrorViewer extends viewers_BaseViewer {
71187
71232
 
71188
71233
  // Call super() first to set up common layout
71189
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
+ }
71190
71242
  this.infoEl = this.createViewer(document.createElement('div'));
71191
71243
  this.infoEl.className = 'bp-error';
71192
71244
  this.iconEl = this.infoEl.appendChild(document.createElement('div'));
@@ -71218,6 +71270,9 @@ class PreviewErrorViewer extends viewers_BaseViewer {
71218
71270
  if (this.iconRoot) {
71219
71271
  this.iconRoot.unmount();
71220
71272
  }
71273
+ if (this.errorRoot) {
71274
+ this.errorRoot.unmount();
71275
+ }
71221
71276
  super.destroy();
71222
71277
  }
71223
71278
 
@@ -71241,21 +71296,30 @@ class PreviewErrorViewer extends viewers_BaseViewer {
71241
71296
  const {
71242
71297
  extension: iconExtension
71243
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
+ }));
71244
71313
 
71245
- // Display the default or file-specific error icon
71246
- this.iconRoot.render(/*#__PURE__*/external_react_["default"].createElement(ErrorIcon, {
71247
- extension: iconExtension,
71248
- isBlueprintEnabled: this.featureEnabled(constants/* BLUEPRINT_MIGRATION_SUPPORTING_UI */.Ed)
71249
- }));
71250
-
71251
- // Display user-friendly error message
71252
- this.messageEl.textContent = displayMessage;
71314
+ // Display user-friendly error message
71315
+ this.messageEl.textContent = displayMessage;
71253
71316
 
71254
- // Add optional link or download button
71255
- if (details && details.linkText && details.linkUrl) {
71256
- this.addLinkButton(details.linkText, details.linkUrl);
71257
- } else if (canDownload(file, this.options)) {
71258
- 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
+ }
71259
71323
  }
71260
71324
  this.loaded = true;
71261
71325
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "box-content-preview",
3
- "version": "3.128.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",