box-ui-elements 23.4.0-beta.32 → 23.4.0-beta.34

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.
Files changed (70) hide show
  1. package/dist/explorer.js +1 -1
  2. package/dist/preview.js +1 -1
  3. package/dist/sidebar.js +1 -1
  4. package/es/elements/common/types/SidebarNavigation.js +4 -2
  5. package/es/elements/common/types/SidebarNavigation.js.flow +7 -4
  6. package/es/elements/common/types/SidebarNavigation.js.map +1 -1
  7. package/es/elements/content-preview/PreviewNavigation.js +65 -2
  8. package/es/elements/content-preview/PreviewNavigation.js.flow +86 -2
  9. package/es/elements/content-preview/PreviewNavigation.js.map +1 -1
  10. package/es/elements/content-sidebar/ActivitySidebar.js +39 -7
  11. package/es/elements/content-sidebar/ActivitySidebar.js.flow +42 -6
  12. package/es/elements/content-sidebar/ActivitySidebar.js.map +1 -1
  13. package/es/src/elements/common/types/SidebarNavigation.d.ts +10 -4
  14. package/i18n/bn-IN.js +2 -2
  15. package/i18n/bn-IN.properties +8 -0
  16. package/i18n/da-DK.js +2 -2
  17. package/i18n/da-DK.properties +8 -0
  18. package/i18n/de-DE.js +2 -2
  19. package/i18n/de-DE.properties +8 -0
  20. package/i18n/en-AU.properties +8 -0
  21. package/i18n/en-CA.properties +8 -0
  22. package/i18n/en-GB.properties +8 -0
  23. package/i18n/en-x-pseudo.js +1020 -1020
  24. package/i18n/en-x-pseudo.properties +1024 -1016
  25. package/i18n/es-419.js +2 -2
  26. package/i18n/es-419.properties +8 -0
  27. package/i18n/es-ES.js +2 -2
  28. package/i18n/es-ES.properties +8 -0
  29. package/i18n/fi-FI.js +2 -2
  30. package/i18n/fi-FI.properties +8 -0
  31. package/i18n/fr-CA.js +2 -2
  32. package/i18n/fr-CA.properties +8 -0
  33. package/i18n/fr-FR.js +2 -2
  34. package/i18n/fr-FR.properties +8 -0
  35. package/i18n/hi-IN.js +2 -2
  36. package/i18n/hi-IN.properties +8 -0
  37. package/i18n/it-IT.js +2 -2
  38. package/i18n/it-IT.properties +8 -0
  39. package/i18n/ja-JP.properties +8 -0
  40. package/i18n/ko-KR.js +2 -2
  41. package/i18n/ko-KR.properties +8 -0
  42. package/i18n/nb-NO.js +2 -2
  43. package/i18n/nb-NO.properties +8 -0
  44. package/i18n/nl-NL.js +2 -2
  45. package/i18n/nl-NL.properties +8 -0
  46. package/i18n/pl-PL.js +2 -2
  47. package/i18n/pl-PL.properties +8 -0
  48. package/i18n/pt-BR.js +2 -2
  49. package/i18n/pt-BR.properties +8 -0
  50. package/i18n/ru-RU.js +2 -2
  51. package/i18n/ru-RU.properties +8 -0
  52. package/i18n/sv-SE.js +2 -2
  53. package/i18n/sv-SE.properties +8 -0
  54. package/i18n/tr-TR.js +2 -2
  55. package/i18n/tr-TR.properties +8 -0
  56. package/i18n/zh-CN.js +2 -2
  57. package/i18n/zh-CN.properties +8 -0
  58. package/i18n/zh-TW.js +2 -2
  59. package/i18n/zh-TW.properties +8 -0
  60. package/package.json +1 -1
  61. package/src/elements/common/types/SidebarNavigation.js.flow +7 -4
  62. package/src/elements/common/types/SidebarNavigation.ts +11 -3
  63. package/src/elements/content-preview/PreviewNavigation.js +86 -2
  64. package/src/elements/content-preview/__tests__/PreviewNavigation.test.js +202 -62
  65. package/src/elements/content-sidebar/ActivitySidebar.js +42 -6
  66. package/src/elements/content-sidebar/__tests__/ActivitySidebar.rtl.test.js +521 -0
  67. package/src/elements/content-sidebar/__tests__/ActivitySidebar.test.js +1 -123
  68. package/src/elements/content-sidebar/__tests__/AddTaskButton.test.js +6 -5
  69. package/src/elements/content-sidebar/versions/__tests__/StaticVersionSidebar.test.js +3 -5
  70. package/src/elements/content-preview/__tests__/__snapshots__/PreviewNavigation.test.js.snap +0 -361
@@ -1224,6 +1224,10 @@ boxui.metadataInstanceEditor.cannotApplyCascadePolicyText = В данный мо
1224
1224
  boxui.metadataInstanceEditor.cascadePolicyLearnMore = Подробнее
1225
1225
  # Tooltip text that asks the user what they want to do when applying cascading to their metadata policy
1226
1226
  boxui.metadataInstanceEditor.cascadePolicyModeQuestion = Что нужно сделать в случае возникновения конфликтов при применении этого шаблона и его значений к существующим элементам? Это разовое действие.
1227
+ # Notice that explains that the cascade policy cannot be edited
1228
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice = Эту каскадную политику невозможно изменить. Для внесения изменений деактивируйте текущую политику, а затем включите ее заново, чтобы настроить новую.
1229
+ # Aria label for the disabled cascade options information icon
1230
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel = Информация об отключенных параметрах каскада
1227
1231
  # Label for radio button that selects overwrite mode for cascading policy
1228
1232
  boxui.metadataInstanceEditor.cascadePolicyOverwriteMode = Переписать все существующие значения шаблона
1229
1233
  # Label for radio button that selects skip mode for cascading policy
@@ -1258,6 +1262,8 @@ boxui.metadataInstanceEditor.editTooltip = Редактирование мета
1258
1262
  boxui.metadataInstanceEditor.enableAIAutofill = Автозаполнение Box AI
1259
1263
  # Label for enable cascade policy toggle switch
1260
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = Включить каскадную политику
1265
+ # Name of the enhanced AI agent
1266
+ boxui.metadataInstanceEditor.enhancedAgentName = Enhanced
1261
1267
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
1262
1268
  boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm = Удалить эти настраиваемые метаданные вместе со всеми их значениями из этого файла?
1263
1269
  # Message for users who may attempt to remove a metadata instance for a file, which is non-recoverable
@@ -1284,6 +1290,8 @@ boxui.metadataInstanceEditor.noMetadataAddTemplate = Нажмите «Добав
1284
1290
  boxui.metadataInstanceEditor.operationNotImmediate = Выполнение этой операции может занять некоторое время.
1285
1291
  # Label to remove a template
1286
1292
  boxui.metadataInstanceEditor.removeTemplate = Удалить
1293
+ # Name of the standard AI agent
1294
+ boxui.metadataInstanceEditor.standardAgentName = Standard
1287
1295
  # Label to add a template
1288
1296
  boxui.metadataInstanceEditor.templateAdd = Добавить
1289
1297
  # Placeholder to search for all templates
package/i18n/sv-SE.js CHANGED
@@ -612,8 +612,8 @@ export default {
612
612
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "Övergripande policy kan inte tillämpas på anpassade metadata just nu.",
613
613
  "boxui.metadataInstanceEditor.cascadePolicyLearnMore": "Läs mer",
614
614
  "boxui.metadataInstanceEditor.cascadePolicyModeQuestion": "Vad vill du göra vid konflikter när du använder den här mallen och mallvärdena på befintliga objekt? Det här är en engångsåtgärd.",
615
- "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice": "This cascade policy cannot be edited. To modify it, deactivate the current policy and then re-enable it to set up a new one.",
616
- "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel": "Disabled cascade options information",
615
+ "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice": "Den här kaskadpolicyn kan inte redigeras. För att ändra den, inaktivera den aktuella policyn och aktivera den nytt för att konfigurera en ny.",
616
+ "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel": "Information om inaktiverade alternativ för kaskad",
617
617
  "boxui.metadataInstanceEditor.cascadePolicyOverwriteMode": "Skriva över alla befintliga mallvärden",
618
618
  "boxui.metadataInstanceEditor.cascadePolicySkipMode": "Hoppa över och behålla alla befintliga mallvärden",
619
619
  "boxui.metadataInstanceEditor.customAdd": "Lägg till",
@@ -1224,6 +1224,10 @@ boxui.metadataInstanceEditor.cannotApplyCascadePolicyText = Övergripande policy
1224
1224
  boxui.metadataInstanceEditor.cascadePolicyLearnMore = Läs mer
1225
1225
  # Tooltip text that asks the user what they want to do when applying cascading to their metadata policy
1226
1226
  boxui.metadataInstanceEditor.cascadePolicyModeQuestion = Vad vill du göra vid konflikter när du använder den här mallen och mallvärdena på befintliga objekt? Det här är en engångsåtgärd.
1227
+ # Notice that explains that the cascade policy cannot be edited
1228
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice = Den här kaskadpolicyn kan inte redigeras. För att ändra den, inaktivera den aktuella policyn och aktivera den på nytt för att konfigurera en ny.
1229
+ # Aria label for the disabled cascade options information icon
1230
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel = Information om inaktiverade alternativ för kaskad
1227
1231
  # Label for radio button that selects overwrite mode for cascading policy
1228
1232
  boxui.metadataInstanceEditor.cascadePolicyOverwriteMode = Skriva över alla befintliga mallvärden
1229
1233
  # Label for radio button that selects skip mode for cascading policy
@@ -1258,6 +1262,8 @@ boxui.metadataInstanceEditor.editTooltip = Redigera metadata
1258
1262
  boxui.metadataInstanceEditor.enableAIAutofill = Box AI autofyll
1259
1263
  # Label for enable cascade policy toggle switch
1260
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = Aktivera övergripande policy
1265
+ # Name of the enhanced AI agent
1266
+ boxui.metadataInstanceEditor.enhancedAgentName = Enhanced
1261
1267
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
1262
1268
  boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm = Är du säker på att du vill radera dessa anpassade metadata och alla tillhörande värden från den här filen?
1263
1269
  # Message for users who may attempt to remove a metadata instance for a file, which is non-recoverable
@@ -1284,6 +1290,8 @@ boxui.metadataInstanceEditor.noMetadataAddTemplate = Klicka på Lägg till läng
1284
1290
  boxui.metadataInstanceEditor.operationNotImmediate = Den här åtgärden sker inte omedelbart och kan ta lite tid.
1285
1291
  # Label to remove a template
1286
1292
  boxui.metadataInstanceEditor.removeTemplate = Ta bort
1293
+ # Name of the standard AI agent
1294
+ boxui.metadataInstanceEditor.standardAgentName = Standard
1287
1295
  # Label to add a template
1288
1296
  boxui.metadataInstanceEditor.templateAdd = Lägg till
1289
1297
  # Placeholder to search for all templates
package/i18n/tr-TR.js CHANGED
@@ -612,8 +612,8 @@ export default {
612
612
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "Alt klasörlere uygulama ilkesi şu anda özel meta verilere uygulanamıyor",
613
613
  "boxui.metadataInstanceEditor.cascadePolicyLearnMore": "Daha fazla bilgi edinin",
614
614
  "boxui.metadataInstanceEditor.cascadePolicyModeQuestion": "Bu şablonu ve değerlerini mevcut öğelere uygularken çakışma olması halinde nasıl devam etmek istersiniz? Bu, tek seferlik bir işlemdir.",
615
- "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice": "This cascade policy cannot be edited. To modify it, deactivate the current policy and then re-enable it to set up a new one.",
616
- "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel": "Disabled cascade options information",
615
+ "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice": "Bu alt klasörlere uygulama politikası düzenlenemez. Bunu değiştirmek için, geçerli politikayı devre dışı bırakın, sonra yeni bir politika oluşturmak için yeniden etkinleştirin.",
616
+ "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel": "Devre dışı bırakılan alt klasörlere uygulama seçenekleriyle ilgili bilgiler.",
617
617
  "boxui.metadataInstanceEditor.cascadePolicyOverwriteMode": "Mevcut tüm şablon değerlerinin üzerine yaz",
618
618
  "boxui.metadataInstanceEditor.cascadePolicySkipMode": "Atla ve mevcut tüm şablon değerlerini koru",
619
619
  "boxui.metadataInstanceEditor.customAdd": "Ekle",
@@ -1224,6 +1224,10 @@ boxui.metadataInstanceEditor.cannotApplyCascadePolicyText = Alt klasörlere uygu
1224
1224
  boxui.metadataInstanceEditor.cascadePolicyLearnMore = Daha fazla bilgi edinin
1225
1225
  # Tooltip text that asks the user what they want to do when applying cascading to their metadata policy
1226
1226
  boxui.metadataInstanceEditor.cascadePolicyModeQuestion = Bu şablonu ve değerlerini mevcut öğelere uygularken çakışma olması halinde nasıl devam etmek istersiniz? Bu, tek seferlik bir işlemdir.
1227
+ # Notice that explains that the cascade policy cannot be edited
1228
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice = Bu alt klasörlere uygulama politikası düzenlenemez. Bunu değiştirmek için, geçerli politikayı devre dışı bırakın, sonra yeni bir politika oluşturmak için yeniden etkinleştirin.
1229
+ # Aria label for the disabled cascade options information icon
1230
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel = Devre dışı bırakılan alt klasörlere uygulama seçenekleriyle ilgili bilgiler.
1227
1231
  # Label for radio button that selects overwrite mode for cascading policy
1228
1232
  boxui.metadataInstanceEditor.cascadePolicyOverwriteMode = Mevcut tüm şablon değerlerinin üzerine yaz
1229
1233
  # Label for radio button that selects skip mode for cascading policy
@@ -1258,6 +1262,8 @@ boxui.metadataInstanceEditor.editTooltip = Meta Verileri Düzenle
1258
1262
  boxui.metadataInstanceEditor.enableAIAutofill = Box AI Otomatik Doldurma
1259
1263
  # Label for enable cascade policy toggle switch
1260
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = Alt Klasörlere Uygulama İlkesini Etkinleştir
1265
+ # Name of the enhanced AI agent
1266
+ boxui.metadataInstanceEditor.enhancedAgentName = Enhanced
1261
1267
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
1262
1268
  boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm = Bu özel meta veriyi ve tüm değerlerini dosyadan silmek istediğinizden emin misiniz?
1263
1269
  # Message for users who may attempt to remove a metadata instance for a file, which is non-recoverable
@@ -1284,6 +1290,8 @@ boxui.metadataInstanceEditor.noMetadataAddTemplate = Bu öğeye meta veri ekleme
1284
1290
  boxui.metadataInstanceEditor.operationNotImmediate = Bu işlemin gerçekleşmesi biraz zaman alabilir.
1285
1291
  # Label to remove a template
1286
1292
  boxui.metadataInstanceEditor.removeTemplate = Kaldır
1293
+ # Name of the standard AI agent
1294
+ boxui.metadataInstanceEditor.standardAgentName = Standard
1287
1295
  # Label to add a template
1288
1296
  boxui.metadataInstanceEditor.templateAdd = Ekle
1289
1297
  # Placeholder to search for all templates
package/i18n/zh-CN.js CHANGED
@@ -612,8 +612,8 @@ export default {
612
612
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "级联策略目前不适用于自定义元数据。",
613
613
  "boxui.metadataInstanceEditor.cascadePolicyLearnMore": "了解更多",
614
614
  "boxui.metadataInstanceEditor.cascadePolicyModeQuestion": "如果在将此模板及其值应用于现有项目时发生冲突,您要执行什么操作?这是一次性操作。",
615
- "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice": "This cascade policy cannot be edited. To modify it, deactivate the current policy and then re-enable it to set up a new one.",
616
- "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel": "Disabled cascade options information",
615
+ "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice": "无法编辑此级联策略。要进行修改,请停用然后重新启用当前策略,从而设置新的策略。",
616
+ "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel": "已禁用级联选项信息",
617
617
  "boxui.metadataInstanceEditor.cascadePolicyOverwriteMode": "覆盖所有现有模板值",
618
618
  "boxui.metadataInstanceEditor.cascadePolicySkipMode": "跳过并保留所有现有模板值",
619
619
  "boxui.metadataInstanceEditor.customAdd": "添加",
@@ -1224,6 +1224,10 @@ boxui.metadataInstanceEditor.cannotApplyCascadePolicyText = 级联策略目前
1224
1224
  boxui.metadataInstanceEditor.cascadePolicyLearnMore = 了解更多
1225
1225
  # Tooltip text that asks the user what they want to do when applying cascading to their metadata policy
1226
1226
  boxui.metadataInstanceEditor.cascadePolicyModeQuestion = 如果在将此模板及其值应用于现有项目时发生冲突,您要执行什么操作?这是一次性操作。
1227
+ # Notice that explains that the cascade policy cannot be edited
1228
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice = 无法编辑此级联策略。要进行修改,请停用然后重新启用当前策略,从而设置新的策略。
1229
+ # Aria label for the disabled cascade options information icon
1230
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel = 已禁用级联选项信息
1227
1231
  # Label for radio button that selects overwrite mode for cascading policy
1228
1232
  boxui.metadataInstanceEditor.cascadePolicyOverwriteMode = 覆盖所有现有模板值
1229
1233
  # Label for radio button that selects skip mode for cascading policy
@@ -1258,6 +1262,8 @@ boxui.metadataInstanceEditor.editTooltip = 编辑元数据
1258
1262
  boxui.metadataInstanceEditor.enableAIAutofill = Box AI 自动填充
1259
1263
  # Label for enable cascade policy toggle switch
1260
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = 启用级联策略
1265
+ # Name of the enhanced AI agent
1266
+ boxui.metadataInstanceEditor.enhancedAgentName = Enhanced
1261
1267
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
1262
1268
  boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm = 是否确定要从此文件中删除此自定义元数据及其所有值?
1263
1269
  # Message for users who may attempt to remove a metadata instance for a file, which is non-recoverable
@@ -1284,6 +1290,8 @@ boxui.metadataInstanceEditor.noMetadataAddTemplate = 在右上角单击“添加
1284
1290
  boxui.metadataInstanceEditor.operationNotImmediate = 此操作不会立即生效,可能需要一些时间。
1285
1291
  # Label to remove a template
1286
1292
  boxui.metadataInstanceEditor.removeTemplate = 移除
1293
+ # Name of the standard AI agent
1294
+ boxui.metadataInstanceEditor.standardAgentName = Standard
1287
1295
  # Label to add a template
1288
1296
  boxui.metadataInstanceEditor.templateAdd = 添加
1289
1297
  # Placeholder to search for all templates
package/i18n/zh-TW.js CHANGED
@@ -612,8 +612,8 @@ export default {
612
612
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "向下套用原則目前無法套用到自訂中繼資料。",
613
613
  "boxui.metadataInstanceEditor.cascadePolicyLearnMore": "詳細資訊",
614
614
  "boxui.metadataInstanceEditor.cascadePolicyModeQuestion": "若在將此範本及其值套用到現有項目時發生衝突,您要怎麼處理?此為一次性動作。",
615
- "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice": "This cascade policy cannot be edited. To modify it, deactivate the current policy and then re-enable it to set up a new one.",
616
- "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel": "Disabled cascade options information",
615
+ "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice": "無法編輯此向下套用原則。若要修改,請停用當前原則,然後重新啟用以設置新原則。",
616
+ "boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel": "已停用的向下套用選項資訊。",
617
617
  "boxui.metadataInstanceEditor.cascadePolicyOverwriteMode": "覆寫所有現有的範本值",
618
618
  "boxui.metadataInstanceEditor.cascadePolicySkipMode": "略過並保留所有現有的範本值",
619
619
  "boxui.metadataInstanceEditor.customAdd": "新增",
@@ -1224,6 +1224,10 @@ boxui.metadataInstanceEditor.cannotApplyCascadePolicyText = 向下套用原則
1224
1224
  boxui.metadataInstanceEditor.cascadePolicyLearnMore = 詳細資訊
1225
1225
  # Tooltip text that asks the user what they want to do when applying cascading to their metadata policy
1226
1226
  boxui.metadataInstanceEditor.cascadePolicyModeQuestion = 若在將此範本及其值套用到現有項目時發生衝突,您要怎麼處理?此為一次性動作。
1227
+ # Notice that explains that the cascade policy cannot be edited
1228
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice = 無法編輯此向下套用原則。若要修改,請停用當前原則,然後重新啟用以設置新原則。
1229
+ # Aria label for the disabled cascade options information icon
1230
+ boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel = 已停用的向下套用選項資訊。
1227
1231
  # Label for radio button that selects overwrite mode for cascading policy
1228
1232
  boxui.metadataInstanceEditor.cascadePolicyOverwriteMode = 覆寫所有現有的範本值
1229
1233
  # Label for radio button that selects skip mode for cascading policy
@@ -1258,6 +1262,8 @@ boxui.metadataInstanceEditor.editTooltip = 編輯中繼資料
1258
1262
  boxui.metadataInstanceEditor.enableAIAutofill = Box AI 自動填充
1259
1263
  # Label for enable cascade policy toggle switch
1260
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = 啟用向下套用原則
1265
+ # Name of the enhanced AI agent
1266
+ boxui.metadataInstanceEditor.enhancedAgentName = Enhanced
1261
1267
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
1262
1268
  boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm = 確定要從此檔案刪除此自訂中繼資料及其所有值?
1263
1269
  # Message for users who may attempt to remove a metadata instance for a file, which is non-recoverable
@@ -1284,6 +1290,8 @@ boxui.metadataInstanceEditor.noMetadataAddTemplate = 按一下右上方的「新
1284
1290
  boxui.metadataInstanceEditor.operationNotImmediate = 此作業不會立即生效,可能需要一些時間。
1285
1291
  # Label to remove a template
1286
1292
  boxui.metadataInstanceEditor.removeTemplate = 移除
1293
+ # Name of the standard AI agent
1294
+ boxui.metadataInstanceEditor.standardAgentName = Standard
1287
1295
  # Label to add a template
1288
1296
  boxui.metadataInstanceEditor.templateAdd = 新增
1289
1297
  # Placeholder to search for all templates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "box-ui-elements",
3
- "version": "23.4.0-beta.32",
3
+ "version": "23.4.0-beta.34",
4
4
  "description": "Box UI Elements",
5
5
  "author": "Box (https://www.box.com/)",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -5,10 +5,12 @@
5
5
 
6
6
  export const ViewType = Object.freeze({
7
7
  BOXAI: 'boxai',
8
- SKILLS: 'skills',
9
- ACTIVITY: 'activity',
10
8
  DETAILS: 'details',
11
9
  METADATA: 'metadata',
10
+ METADATA_REDESIGN: 'metadata_redesign',
11
+ SKILLS: 'skills',
12
+ ACTIVITY: 'activity',
13
+ VERSIONS: 'versions',
12
14
  DOCGEN: 'docgen',
13
15
  });
14
16
 
@@ -22,11 +24,12 @@ export type ViewTypeValues = $Values<typeof ViewType>;
22
24
  export type FeedEntryTypeValues = $Values<typeof FeedEntryType>;
23
25
 
24
26
  export type SidebarNavigation = {
25
- sidebar: ViewTypeValues,
26
- versionId?: string,
27
27
  activeFeedEntryType?: FeedEntryTypeValues,
28
28
  activeFeedEntryId?: string,
29
29
  fileVersionId?: string,
30
+ filteredTemplateIds?: string,
31
+ sidebar: ViewTypeValues,
32
+ versionId?: string,
30
33
  };
31
34
 
32
35
  export type InternalSidebarNavigation = SidebarNavigation & {
@@ -1,9 +1,11 @@
1
1
  export enum ViewType {
2
- BOXAI = 'boxai',
3
2
  SKILLS = 'skills',
4
- ACTIVITY = 'activity',
5
3
  DETAILS = 'details',
6
4
  METADATA = 'metadata',
5
+ METADATA_REDESIGN = 'metadata_redesign',
6
+ BOXAI = 'boxai',
7
+ ACTIVITY = 'activity',
8
+ VERSIONS = 'versions',
7
9
  DOCGEN = 'docgen',
8
10
  }
9
11
 
@@ -18,11 +20,16 @@ type VersionSidebarView = {
18
20
  versionId: string;
19
21
  };
20
22
 
23
+ export type MetadataSidebarView = {
24
+ sidebar: ViewType.METADATA | ViewType.METADATA_REDESIGN;
25
+ filteredTemplateIds?: string;
26
+ };
27
+
21
28
  export type ActivityAnnotationsSidebarView = {
22
29
  sidebar: ViewType.ACTIVITY;
23
30
  activeFeedEntryType: FeedEntryType.ANNOTATIONS;
24
31
  fileVersionId: string;
25
- activeFeedEntryId: string;
32
+ activeFeedEntryId?: string;
26
33
  };
27
34
  type ActivityCommentsSidebarView = {
28
35
  sidebar: ViewType.ACTIVITY;
@@ -35,6 +42,7 @@ export type SidebarNavigation =
35
42
  sidebar: ViewType;
36
43
  }
37
44
  | VersionSidebarView
45
+ | MetadataSidebarView
38
46
  | ActivityCommentsSidebarView
39
47
  | ActivityAnnotationsSidebarView;
40
48
 
@@ -14,16 +14,26 @@ import PlainButton from '../../components/plain-button/PlainButton';
14
14
  import messages from '../common/messages';
15
15
  import type { BoxItem } from '../../common/types/core';
16
16
  import { SIDEBAR_VIEW_METADATA } from '../../constants';
17
+ import type { InternalSidebarNavigation, InternalSidebarNavigationHandler } from '../common/types/SidebarNavigation';
17
18
 
18
19
  type Props = {
19
20
  collection: Array<string | BoxItem>,
20
21
  currentIndex: number,
21
22
  intl: IntlShape,
23
+ internalSidebarNavigation?: InternalSidebarNavigation,
24
+ internalSidebarNavigationHandler?: InternalSidebarNavigationHandler,
22
25
  onNavigateLeft: Function,
23
26
  onNavigateRight: Function,
27
+ routerDisabled?: boolean,
24
28
  };
25
29
 
26
- const PreviewNavigation = ({ collection = [], currentIndex, intl, onNavigateLeft, onNavigateRight }: Props) => {
30
+ const PreviewNavigationWithRouter = ({
31
+ collection = [],
32
+ currentIndex,
33
+ intl,
34
+ onNavigateLeft,
35
+ onNavigateRight,
36
+ }: Props) => {
27
37
  const hasLeftNavigation = collection.length > 1 && currentIndex > 0 && currentIndex < collection.length;
28
38
  const hasRightNavigation = collection.length > 1 && currentIndex > -1 && currentIndex < collection.length - 1;
29
39
 
@@ -48,6 +58,7 @@ const PreviewNavigation = ({ collection = [], currentIndex, intl, onNavigateLeft
48
58
  {hasLeftNavigation && (
49
59
  <PlainButton
50
60
  className="bcpr-navigate-left"
61
+ data-testid="preview-navigation-left"
51
62
  onClick={() => {
52
63
  goToActiveSidebarTab(match.params, history);
53
64
  onNavigateLeft();
@@ -61,6 +72,7 @@ const PreviewNavigation = ({ collection = [], currentIndex, intl, onNavigateLeft
61
72
  {hasRightNavigation && (
62
73
  <PlainButton
63
74
  className="bcpr-navigate-right"
75
+ data-testid="preview-navigation-right"
64
76
  onClick={() => {
65
77
  goToActiveSidebarTab(match.params, history);
66
78
  onNavigateRight();
@@ -77,5 +89,77 @@ const PreviewNavigation = ({ collection = [], currentIndex, intl, onNavigateLeft
77
89
  );
78
90
  };
79
91
 
80
- export { PreviewNavigation as PreviewNavigationComponent };
92
+ const PreviewNavigationWithoutRouter = ({
93
+ collection = [],
94
+ currentIndex,
95
+ intl,
96
+ internalSidebarNavigation,
97
+ internalSidebarNavigationHandler,
98
+ onNavigateLeft,
99
+ onNavigateRight,
100
+ }: Props) => {
101
+ const hasLeftNavigation = collection.length > 1 && currentIndex > 0 && currentIndex < collection.length;
102
+ const hasRightNavigation = collection.length > 1 && currentIndex > -1 && currentIndex < collection.length - 1;
103
+
104
+ if (!hasLeftNavigation && !hasRightNavigation) {
105
+ return null;
106
+ }
107
+
108
+ const handleInternalNavigation = () => {
109
+ if (internalSidebarNavigationHandler && internalSidebarNavigation && internalSidebarNavigation.sidebar) {
110
+ const { sidebar, ...rest } = internalSidebarNavigation;
111
+ const hasDeeplink = Object.keys(rest).length > 0;
112
+
113
+ if (hasDeeplink && sidebar === SIDEBAR_VIEW_METADATA) {
114
+ internalSidebarNavigationHandler(internalSidebarNavigation);
115
+ } else {
116
+ internalSidebarNavigationHandler({ sidebar });
117
+ }
118
+ }
119
+ };
120
+
121
+ return (
122
+ <>
123
+ {hasLeftNavigation && (
124
+ <PlainButton
125
+ className="bcpr-navigate-left"
126
+ data-testid="preview-navigation-left"
127
+ onClick={() => {
128
+ handleInternalNavigation();
129
+ onNavigateLeft();
130
+ }}
131
+ title={intl.formatMessage(messages.previousFile)}
132
+ type="button"
133
+ >
134
+ <IconNavigateLeft />
135
+ </PlainButton>
136
+ )}
137
+ {hasRightNavigation && (
138
+ <PlainButton
139
+ className="bcpr-navigate-right"
140
+ data-testid="preview-navigation-right"
141
+ onClick={() => {
142
+ handleInternalNavigation();
143
+ onNavigateRight();
144
+ }}
145
+ title={intl.formatMessage(messages.nextFile)}
146
+ type="button"
147
+ >
148
+ <IconNavigateRight />
149
+ </PlainButton>
150
+ )}
151
+ </>
152
+ );
153
+ };
154
+
155
+ const PreviewNavigation = (props: Props) => {
156
+ const { routerDisabled = false } = props;
157
+
158
+ if (routerDisabled) {
159
+ return <PreviewNavigationWithoutRouter {...props} />;
160
+ }
161
+
162
+ return <PreviewNavigationWithRouter {...props} />;
163
+ };
164
+
81
165
  export default injectIntl(PreviewNavigation);