box-ui-elements 23.3.0-beta.5 → 23.3.0-beta.7

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 (94) hide show
  1. package/dist/explorer.css +1 -1
  2. package/dist/explorer.js +1 -1
  3. package/dist/openwith.js +1 -1
  4. package/dist/picker.js +1 -1
  5. package/dist/preview.css +1 -1
  6. package/dist/preview.js +1 -1
  7. package/dist/sharing.js +1 -1
  8. package/dist/sidebar.css +1 -1
  9. package/dist/sidebar.js +1 -1
  10. package/dist/uploader.js +1 -1
  11. package/es/features/metadata-instance-editor/CascadePolicy.js +60 -2
  12. package/es/features/metadata-instance-editor/CascadePolicy.js.flow +72 -1
  13. package/es/features/metadata-instance-editor/CascadePolicy.js.map +1 -1
  14. package/es/features/metadata-instance-editor/CascadePolicy.scss +15 -1
  15. package/es/features/metadata-instance-editor/CascadePolicy.stories.js +24 -0
  16. package/es/features/metadata-instance-editor/CascadePolicy.stories.js.flow +31 -0
  17. package/es/features/metadata-instance-editor/CascadePolicy.stories.js.map +1 -0
  18. package/es/features/metadata-instance-editor/Instance.js +14 -2
  19. package/es/features/metadata-instance-editor/Instance.js.flow +23 -3
  20. package/es/features/metadata-instance-editor/Instance.js.map +1 -1
  21. package/es/features/metadata-instance-editor/Instances.js +2 -0
  22. package/es/features/metadata-instance-editor/Instances.js.flow +3 -0
  23. package/es/features/metadata-instance-editor/Instances.js.map +1 -1
  24. package/es/features/metadata-instance-editor/MetadataInstanceEditor.js +2 -0
  25. package/es/features/metadata-instance-editor/MetadataInstanceEditor.js.flow +3 -0
  26. package/es/features/metadata-instance-editor/MetadataInstanceEditor.js.map +1 -1
  27. package/es/features/metadata-instance-editor/messages.js +20 -0
  28. package/es/features/metadata-instance-editor/messages.js.flow +26 -0
  29. package/es/features/metadata-instance-editor/messages.js.map +1 -1
  30. package/i18n/bn-IN.js +5 -0
  31. package/i18n/bn-IN.properties +10 -0
  32. package/i18n/da-DK.js +5 -0
  33. package/i18n/da-DK.properties +10 -0
  34. package/i18n/de-DE.js +5 -0
  35. package/i18n/de-DE.properties +10 -0
  36. package/i18n/en-AU.js +5 -0
  37. package/i18n/en-AU.properties +10 -0
  38. package/i18n/en-CA.js +5 -0
  39. package/i18n/en-CA.properties +10 -0
  40. package/i18n/en-GB.js +5 -0
  41. package/i18n/en-GB.properties +10 -0
  42. package/i18n/en-US.js +5 -0
  43. package/i18n/en-US.properties +10 -0
  44. package/i18n/en-x-pseudo.js +1016 -1011
  45. package/i18n/en-x-pseudo.properties +1021 -1011
  46. package/i18n/es-419.js +5 -0
  47. package/i18n/es-419.properties +10 -0
  48. package/i18n/es-ES.js +5 -0
  49. package/i18n/es-ES.properties +10 -0
  50. package/i18n/fi-FI.js +5 -0
  51. package/i18n/fi-FI.properties +10 -0
  52. package/i18n/fr-CA.js +5 -0
  53. package/i18n/fr-CA.properties +10 -0
  54. package/i18n/fr-FR.js +5 -0
  55. package/i18n/fr-FR.properties +10 -0
  56. package/i18n/hi-IN.js +5 -0
  57. package/i18n/hi-IN.properties +10 -0
  58. package/i18n/it-IT.js +5 -0
  59. package/i18n/it-IT.properties +10 -0
  60. package/i18n/ja-JP.js +5 -0
  61. package/i18n/ja-JP.properties +10 -0
  62. package/i18n/ko-KR.js +5 -0
  63. package/i18n/ko-KR.properties +10 -0
  64. package/i18n/nb-NO.js +5 -0
  65. package/i18n/nb-NO.properties +10 -0
  66. package/i18n/nl-NL.js +5 -0
  67. package/i18n/nl-NL.properties +10 -0
  68. package/i18n/pl-PL.js +5 -0
  69. package/i18n/pl-PL.properties +10 -0
  70. package/i18n/pt-BR.js +5 -0
  71. package/i18n/pt-BR.properties +10 -0
  72. package/i18n/ru-RU.js +5 -0
  73. package/i18n/ru-RU.properties +10 -0
  74. package/i18n/sv-SE.js +5 -0
  75. package/i18n/sv-SE.properties +10 -0
  76. package/i18n/tr-TR.js +5 -0
  77. package/i18n/tr-TR.properties +10 -0
  78. package/i18n/zh-CN.js +5 -0
  79. package/i18n/zh-CN.properties +10 -0
  80. package/i18n/zh-TW.js +5 -0
  81. package/i18n/zh-TW.properties +10 -0
  82. package/package.json +2 -2
  83. package/src/features/metadata-instance-editor/CascadePolicy.js +72 -1
  84. package/src/features/metadata-instance-editor/CascadePolicy.scss +15 -1
  85. package/src/features/metadata-instance-editor/CascadePolicy.stories.js +31 -0
  86. package/src/features/metadata-instance-editor/Instance.js +23 -3
  87. package/src/features/metadata-instance-editor/Instances.js +3 -0
  88. package/src/features/metadata-instance-editor/MetadataInstanceEditor.js +3 -0
  89. package/src/features/metadata-instance-editor/__tests__/CascadePolicy.test.js +51 -0
  90. package/src/features/metadata-instance-editor/__tests__/__snapshots__/CascadePolicy.test.js.snap +9 -9
  91. package/src/features/metadata-instance-editor/__tests__/__snapshots__/Instance.test.js.snap +4 -1
  92. package/src/features/metadata-instance-editor/__tests__/__snapshots__/Instances.test.js.snap +2 -0
  93. package/src/features/metadata-instance-editor/__tests__/__snapshots__/MetadataInstanceEditor.test.js.snap +1 -0
  94. package/src/features/metadata-instance-editor/messages.js +26 -0
package/i18n/en-AU.js CHANGED
@@ -605,6 +605,10 @@ export default {
605
605
  "boxui.itemDetails.url": "URL",
606
606
  "boxui.itemDetails.urlPlaceholder": "Enter a valid URL",
607
607
  "boxui.media.menuButtonArialLabel": "Options",
608
+ "boxui.metadataInstanceEditor.aiAutofillDescription": "Use Box AI to automatically extract metadata values.",
609
+ "boxui.metadataInstanceEditor.aiAutofillLearnMore": "Learn more",
610
+ "boxui.metadataInstanceEditor.aiAutofillNotice": "Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.",
611
+ "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "pricing details",
608
612
  "boxui.metadataInstanceEditor.allAttributesAreHidden": "All attributes in this template have been hidden.",
609
613
  "boxui.metadataInstanceEditor.applyCascadePolicyText": "Apply template and its values to all new and existing items in this folder and its subfolders.",
610
614
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "Cascade policy cannot be applied to custom metadata at this time.",
@@ -625,6 +629,7 @@ export default {
625
629
  "boxui.metadataInstanceEditor.customValue": "Value",
626
630
  "boxui.metadataInstanceEditor.customValuePlaceholder": "e.g. 42",
627
631
  "boxui.metadataInstanceEditor.editTooltip": "Edit metadata",
632
+ "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI Autofill",
628
633
  "boxui.metadataInstanceEditor.enableCascadePolicy": "Enable Cascade Policy",
629
634
  "boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm": "Are you sure you want to delete this custom metadata and all of its values from this file?",
630
635
  "boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm": "Are you sure you want to delete \"{metadataName}\" and all of its values from this file?",
@@ -1210,6 +1210,14 @@ boxui.itemDetails.url = URL
1210
1210
  boxui.itemDetails.urlPlaceholder = Enter a valid URL
1211
1211
  # Label for comment options menu
1212
1212
  boxui.media.menuButtonArialLabel = Options
1213
+ # Description for AI autofill toggle switch
1214
+ boxui.metadataInstanceEditor.aiAutofillDescription = Use Box AI to automatically extract metadata values.
1215
+ # Learn more link for AI autofill
1216
+ boxui.metadataInstanceEditor.aiAutofillLearnMore = Learn more
1217
+ # Notice for AI autofill toggle switch
1218
+ boxui.metadataInstanceEditor.aiAutofillNotice = Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.
1219
+ # Pricing details link for AI autofill
1220
+ boxui.metadataInstanceEditor.aiAutofillPricingDetails = pricing details
1213
1221
  # Informational text below collapsible header indicating that all fields for this template are hidden
1214
1222
  boxui.metadataInstanceEditor.allAttributesAreHidden = All attributes in this template have been hidden.
1215
1223
  # Informational text below enable cascade policy toggle switch
@@ -1250,6 +1258,8 @@ boxui.metadataInstanceEditor.customValue = Value
1250
1258
  boxui.metadataInstanceEditor.customValuePlaceholder = e.g. 42
1251
1259
  # Text that shows in a tooltip above the edit pencil button.
1252
1260
  boxui.metadataInstanceEditor.editTooltip = Edit metadata
1261
+ # Label for enable AI autofill toggle switch
1262
+ boxui.metadataInstanceEditor.enableAIAutofill = Box AI Autofill
1253
1263
  # Label for enable cascade policy toggle switch
1254
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = Enable Cascade Policy
1255
1265
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
package/i18n/en-CA.js CHANGED
@@ -605,6 +605,10 @@ export default {
605
605
  "boxui.itemDetails.url": "URL",
606
606
  "boxui.itemDetails.urlPlaceholder": "Enter a valid url",
607
607
  "boxui.media.menuButtonArialLabel": "Options",
608
+ "boxui.metadataInstanceEditor.aiAutofillDescription": "Use Box AI to automatically extract metadata values.",
609
+ "boxui.metadataInstanceEditor.aiAutofillLearnMore": "Learn more",
610
+ "boxui.metadataInstanceEditor.aiAutofillNotice": "Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.",
611
+ "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "pricing details",
608
612
  "boxui.metadataInstanceEditor.allAttributesAreHidden": "All attributes in this template have been hidden.",
609
613
  "boxui.metadataInstanceEditor.applyCascadePolicyText": "Apply template and its values to all new and existing items in this folder and its subfolders.",
610
614
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "Cascade policy cannot be applied to custom metadata at this time.",
@@ -625,6 +629,7 @@ export default {
625
629
  "boxui.metadataInstanceEditor.customValue": "Value",
626
630
  "boxui.metadataInstanceEditor.customValuePlaceholder": "e.g. 42",
627
631
  "boxui.metadataInstanceEditor.editTooltip": "Edit Metadata",
632
+ "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI Autofill",
628
633
  "boxui.metadataInstanceEditor.enableCascadePolicy": "Enable Cascade Policy",
629
634
  "boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm": "Are you sure you want to delete this custom metadata and all of its values from this file?",
630
635
  "boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm": "Are you sure you want to delete \"{metadataName}\" and all of its values from this file?",
@@ -1210,6 +1210,14 @@ boxui.itemDetails.url = URL
1210
1210
  boxui.itemDetails.urlPlaceholder = Enter a valid url
1211
1211
  # Label for comment options menu
1212
1212
  boxui.media.menuButtonArialLabel = Options
1213
+ # Description for AI autofill toggle switch
1214
+ boxui.metadataInstanceEditor.aiAutofillDescription = Use Box AI to automatically extract metadata values.
1215
+ # Learn more link for AI autofill
1216
+ boxui.metadataInstanceEditor.aiAutofillLearnMore = Learn more
1217
+ # Notice for AI autofill toggle switch
1218
+ boxui.metadataInstanceEditor.aiAutofillNotice = Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.
1219
+ # Pricing details link for AI autofill
1220
+ boxui.metadataInstanceEditor.aiAutofillPricingDetails = pricing details
1213
1221
  # Informational text below collapsible header indicating that all fields for this template are hidden
1214
1222
  boxui.metadataInstanceEditor.allAttributesAreHidden = All attributes in this template have been hidden.
1215
1223
  # Informational text below enable cascade policy toggle switch
@@ -1250,6 +1258,8 @@ boxui.metadataInstanceEditor.customValue = Value
1250
1258
  boxui.metadataInstanceEditor.customValuePlaceholder = e.g. 42
1251
1259
  # Text that shows in a tooltip above the edit pencil button.
1252
1260
  boxui.metadataInstanceEditor.editTooltip = Edit Metadata
1261
+ # Label for enable AI autofill toggle switch
1262
+ boxui.metadataInstanceEditor.enableAIAutofill = Box AI Autofill
1253
1263
  # Label for enable cascade policy toggle switch
1254
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = Enable Cascade Policy
1255
1265
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
package/i18n/en-GB.js CHANGED
@@ -605,6 +605,10 @@ export default {
605
605
  "boxui.itemDetails.url": "URL",
606
606
  "boxui.itemDetails.urlPlaceholder": "Enter a valid URL",
607
607
  "boxui.media.menuButtonArialLabel": "Options",
608
+ "boxui.metadataInstanceEditor.aiAutofillDescription": "Use Box AI to automatically extract metadata values.",
609
+ "boxui.metadataInstanceEditor.aiAutofillLearnMore": "Learn more",
610
+ "boxui.metadataInstanceEditor.aiAutofillNotice": "Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.",
611
+ "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "pricing details",
608
612
  "boxui.metadataInstanceEditor.allAttributesAreHidden": "All attributes in this template have been hidden.",
609
613
  "boxui.metadataInstanceEditor.applyCascadePolicyText": "Apply template and its values to all new and existing items in this folder and its subfolders.",
610
614
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "Cascade policy cannot be applied to custom metadata at this time.",
@@ -625,6 +629,7 @@ export default {
625
629
  "boxui.metadataInstanceEditor.customValue": "Value",
626
630
  "boxui.metadataInstanceEditor.customValuePlaceholder": "e.g. 42",
627
631
  "boxui.metadataInstanceEditor.editTooltip": "Edit metadata",
632
+ "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI Autofill",
628
633
  "boxui.metadataInstanceEditor.enableCascadePolicy": "Enable Cascade Policy",
629
634
  "boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm": "Are you sure you want to delete this custom metadata and all of its values from this file?",
630
635
  "boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm": "Are you sure you want to delete \"{metadataName}\" and all of its values from this file?",
@@ -1210,6 +1210,14 @@ boxui.itemDetails.url = URL
1210
1210
  boxui.itemDetails.urlPlaceholder = Enter a valid URL
1211
1211
  # Label for comment options menu
1212
1212
  boxui.media.menuButtonArialLabel = Options
1213
+ # Description for AI autofill toggle switch
1214
+ boxui.metadataInstanceEditor.aiAutofillDescription = Use Box AI to automatically extract metadata values.
1215
+ # Learn more link for AI autofill
1216
+ boxui.metadataInstanceEditor.aiAutofillLearnMore = Learn more
1217
+ # Notice for AI autofill toggle switch
1218
+ boxui.metadataInstanceEditor.aiAutofillNotice = Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.
1219
+ # Pricing details link for AI autofill
1220
+ boxui.metadataInstanceEditor.aiAutofillPricingDetails = pricing details
1213
1221
  # Informational text below collapsible header indicating that all fields for this template are hidden
1214
1222
  boxui.metadataInstanceEditor.allAttributesAreHidden = All attributes in this template have been hidden.
1215
1223
  # Informational text below enable cascade policy toggle switch
@@ -1250,6 +1258,8 @@ boxui.metadataInstanceEditor.customValue = Value
1250
1258
  boxui.metadataInstanceEditor.customValuePlaceholder = e.g. 42
1251
1259
  # Text that shows in a tooltip above the edit pencil button.
1252
1260
  boxui.metadataInstanceEditor.editTooltip = Edit metadata
1261
+ # Label for enable AI autofill toggle switch
1262
+ boxui.metadataInstanceEditor.enableAIAutofill = Box AI Autofill
1253
1263
  # Label for enable cascade policy toggle switch
1254
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = Enable Cascade Policy
1255
1265
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
package/i18n/en-US.js CHANGED
@@ -605,6 +605,10 @@ export default {
605
605
  "boxui.itemDetails.url": "URL",
606
606
  "boxui.itemDetails.urlPlaceholder": "Enter a valid url",
607
607
  "boxui.media.menuButtonArialLabel": "Options",
608
+ "boxui.metadataInstanceEditor.aiAutofillDescription": "Use Box AI to automatically extract metadata values.",
609
+ "boxui.metadataInstanceEditor.aiAutofillLearnMore": "Learn more",
610
+ "boxui.metadataInstanceEditor.aiAutofillNotice": "Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.",
611
+ "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "pricing details",
608
612
  "boxui.metadataInstanceEditor.allAttributesAreHidden": "All attributes in this template have been hidden.",
609
613
  "boxui.metadataInstanceEditor.applyCascadePolicyText": "Apply template and its values to all new and existing items in this folder and its subfolders.",
610
614
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "Cascade policy cannot be applied to custom metadata at this time.",
@@ -625,6 +629,7 @@ export default {
625
629
  "boxui.metadataInstanceEditor.customValue": "Value",
626
630
  "boxui.metadataInstanceEditor.customValuePlaceholder": "e.g. 42",
627
631
  "boxui.metadataInstanceEditor.editTooltip": "Edit Metadata",
632
+ "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI Autofill",
628
633
  "boxui.metadataInstanceEditor.enableCascadePolicy": "Enable Cascade Policy",
629
634
  "boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm": "Are you sure you want to delete this custom metadata and all of its values from this file?",
630
635
  "boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm": "Are you sure you want to delete \"{metadataName}\" and all of its values from this file?",
@@ -1210,6 +1210,14 @@ boxui.itemDetails.url = URL
1210
1210
  boxui.itemDetails.urlPlaceholder = Enter a valid url
1211
1211
  # Label for comment options menu
1212
1212
  boxui.media.menuButtonArialLabel = Options
1213
+ # Description for AI autofill toggle switch
1214
+ boxui.metadataInstanceEditor.aiAutofillDescription = Use Box AI to automatically extract metadata values.
1215
+ # Learn more link for AI autofill
1216
+ boxui.metadataInstanceEditor.aiAutofillLearnMore = Learn more
1217
+ # Notice for AI autofill toggle switch
1218
+ boxui.metadataInstanceEditor.aiAutofillNotice = Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.
1219
+ # Pricing details link for AI autofill
1220
+ boxui.metadataInstanceEditor.aiAutofillPricingDetails = pricing details
1213
1221
  # Informational text below collapsible header indicating that all fields for this template are hidden
1214
1222
  boxui.metadataInstanceEditor.allAttributesAreHidden = All attributes in this template have been hidden.
1215
1223
  # Informational text below enable cascade policy toggle switch
@@ -1250,6 +1258,8 @@ boxui.metadataInstanceEditor.customValue = Value
1250
1258
  boxui.metadataInstanceEditor.customValuePlaceholder = e.g. 42
1251
1259
  # Text that shows in a tooltip above the edit pencil button.
1252
1260
  boxui.metadataInstanceEditor.editTooltip = Edit Metadata
1261
+ # Label for enable AI autofill toggle switch
1262
+ boxui.metadataInstanceEditor.enableAIAutofill = Box AI Autofill
1253
1263
  # Label for enable cascade policy toggle switch
1254
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = Enable Cascade Policy
1255
1265
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable