box-ui-elements 23.4.0-beta.2 → 23.4.0-beta.4

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 (64) 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 +2 -15
  12. package/es/features/metadata-instance-editor/CascadePolicy.js.flow +7 -23
  13. package/es/features/metadata-instance-editor/CascadePolicy.js.map +1 -1
  14. package/es/features/metadata-instance-editor/CascadePolicy.scss +0 -4
  15. package/es/features/metadata-instance-editor/messages.js +0 -8
  16. package/es/features/metadata-instance-editor/messages.js.flow +0 -11
  17. package/es/features/metadata-instance-editor/messages.js.map +1 -1
  18. package/i18n/bn-IN.js +4 -4
  19. package/i18n/bn-IN.properties +4 -4
  20. package/i18n/da-DK.js +4 -4
  21. package/i18n/da-DK.properties +4 -4
  22. package/i18n/de-DE.js +4 -4
  23. package/i18n/de-DE.properties +4 -4
  24. package/i18n/en-US.js +0 -2
  25. package/i18n/en-US.properties +0 -4
  26. package/i18n/es-419.js +3 -3
  27. package/i18n/es-419.properties +3 -3
  28. package/i18n/es-ES.js +3 -3
  29. package/i18n/es-ES.properties +3 -3
  30. package/i18n/fi-FI.js +3 -3
  31. package/i18n/fi-FI.properties +3 -3
  32. package/i18n/fr-CA.js +4 -4
  33. package/i18n/fr-CA.properties +4 -4
  34. package/i18n/fr-FR.js +4 -4
  35. package/i18n/fr-FR.properties +4 -4
  36. package/i18n/hi-IN.js +4 -4
  37. package/i18n/hi-IN.properties +4 -4
  38. package/i18n/it-IT.js +4 -4
  39. package/i18n/it-IT.properties +4 -4
  40. package/i18n/ko-KR.js +4 -4
  41. package/i18n/ko-KR.properties +4 -4
  42. package/i18n/nb-NO.js +4 -4
  43. package/i18n/nb-NO.properties +4 -4
  44. package/i18n/nl-NL.js +4 -4
  45. package/i18n/nl-NL.properties +4 -4
  46. package/i18n/pl-PL.js +4 -4
  47. package/i18n/pl-PL.properties +4 -4
  48. package/i18n/pt-BR.js +4 -4
  49. package/i18n/pt-BR.properties +4 -4
  50. package/i18n/ru-RU.js +4 -4
  51. package/i18n/ru-RU.properties +4 -4
  52. package/i18n/sv-SE.js +4 -4
  53. package/i18n/sv-SE.properties +4 -4
  54. package/i18n/tr-TR.js +4 -4
  55. package/i18n/tr-TR.properties +4 -4
  56. package/i18n/zh-CN.js +4 -4
  57. package/i18n/zh-CN.properties +4 -4
  58. package/i18n/zh-TW.js +4 -4
  59. package/i18n/zh-TW.properties +4 -4
  60. package/package.json +1 -1
  61. package/src/features/metadata-instance-editor/CascadePolicy.js +7 -23
  62. package/src/features/metadata-instance-editor/CascadePolicy.scss +0 -4
  63. package/src/features/metadata-instance-editor/__tests__/CascadePolicy.test.js +2 -7
  64. package/src/features/metadata-instance-editor/messages.js +0 -11
package/i18n/tr-TR.js CHANGED
@@ -605,10 +605,10 @@ export default {
605
605
  "boxui.itemDetails.url": "URL",
606
606
  "boxui.itemDetails.urlPlaceholder": "Geçerli bir URL girin",
607
607
  "boxui.media.menuButtonArialLabel": "Seçenekler",
608
- "boxui.metadataInstanceEditor.aiAutofillDescription": "Use Box AI to automatically extract metadata values.",
608
+ "boxui.metadataInstanceEditor.aiAutofillDescription": "Meta veri değerlerini otomatik olarak çıkarmak için Box AI'ı kullanın.",
609
609
  "boxui.metadataInstanceEditor.aiAutofillLearnMore": "Daha fazla bilgi edinin",
610
- "boxui.metadataInstanceEditor.aiAutofillNotice": "Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.",
611
- "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "pricing details",
610
+ "boxui.metadataInstanceEditor.aiAutofillNotice": "Bu özelliği etkinleştirmek ek ücretler gerektirebilir. Daha fazla bilgi için lütfen {pricingLink} bağlantısını inceleyin.",
611
+ "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "fiyatlandırma ayrıntıları",
612
612
  "boxui.metadataInstanceEditor.allAttributesAreHidden": "Bu şablondaki tüm özellikler gizli.",
613
613
  "boxui.metadataInstanceEditor.applyCascadePolicyText": "Şablonu ve değerlerini, bu klasör ve alt klasörlerindeki tüm yeni ve mevcut öğelere uygulayın.",
614
614
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "Alt klasörlere uygulama ilkesi şu anda özel meta verilere uygulanamıyor",
@@ -629,7 +629,7 @@ export default {
629
629
  "boxui.metadataInstanceEditor.customValue": "Değer",
630
630
  "boxui.metadataInstanceEditor.customValuePlaceholder": "ör. 42",
631
631
  "boxui.metadataInstanceEditor.editTooltip": "Meta Verileri Düzenle",
632
- "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI Autofill",
632
+ "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI Otomatik Doldurma",
633
633
  "boxui.metadataInstanceEditor.enableCascadePolicy": "Alt Klasörlere Uygulama İlkesini Etkinleştir",
634
634
  "boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm": "Bu özel meta veriyi ve tüm değerlerini dosyadan silmek istediğinizden emin misiniz?",
635
635
  "boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm": "Bu \"{metadataName}\" öğesini ve tüm değerlerini bu dosyadan silmek istediğinizden emin misiniz?",
@@ -1211,13 +1211,13 @@ boxui.itemDetails.urlPlaceholder = Geçerli bir URL girin
1211
1211
  # Label for comment options menu
1212
1212
  boxui.media.menuButtonArialLabel = Seçenekler
1213
1213
  # Description for AI autofill toggle switch
1214
- boxui.metadataInstanceEditor.aiAutofillDescription = Use Box AI to automatically extract metadata values.
1214
+ boxui.metadataInstanceEditor.aiAutofillDescription = Meta veri değerlerini otomatik olarak çıkarmak için Box AI'ı kullanın.
1215
1215
  # Learn more link for AI autofill
1216
1216
  boxui.metadataInstanceEditor.aiAutofillLearnMore = Daha fazla bilgi edinin
1217
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.
1218
+ boxui.metadataInstanceEditor.aiAutofillNotice = Bu özelliği etkinleştirmek ek ücretler gerektirebilir. Daha fazla bilgi için lütfen {pricingLink} bağlantısını inceleyin.
1219
1219
  # Pricing details link for AI autofill
1220
- boxui.metadataInstanceEditor.aiAutofillPricingDetails = pricing details
1220
+ boxui.metadataInstanceEditor.aiAutofillPricingDetails = fiyatlandırma ayrıntıları
1221
1221
  # Informational text below collapsible header indicating that all fields for this template are hidden
1222
1222
  boxui.metadataInstanceEditor.allAttributesAreHidden = Bu şablondaki tüm özellikler gizli.
1223
1223
  # Informational text below enable cascade policy toggle switch
@@ -1259,7 +1259,7 @@ boxui.metadataInstanceEditor.customValuePlaceholder = ör. 42
1259
1259
  # Text that shows in a tooltip above the edit pencil button.
1260
1260
  boxui.metadataInstanceEditor.editTooltip = Meta Verileri Düzenle
1261
1261
  # Label for enable AI autofill toggle switch
1262
- boxui.metadataInstanceEditor.enableAIAutofill = Box AI Autofill
1262
+ boxui.metadataInstanceEditor.enableAIAutofill = Box AI Otomatik Doldurma
1263
1263
  # Label for enable cascade policy toggle switch
1264
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = Alt Klasörlere Uygulama İlkesini Etkinleştir
1265
1265
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
package/i18n/zh-CN.js CHANGED
@@ -605,10 +605,10 @@ export default {
605
605
  "boxui.itemDetails.url": "URL",
606
606
  "boxui.itemDetails.urlPlaceholder": "输入有效的 URL",
607
607
  "boxui.media.menuButtonArialLabel": "选项",
608
- "boxui.metadataInstanceEditor.aiAutofillDescription": "Use Box AI to automatically extract metadata values.",
608
+ "boxui.metadataInstanceEditor.aiAutofillDescription": "使用 Box AI 自动提取元数据值。",
609
609
  "boxui.metadataInstanceEditor.aiAutofillLearnMore": "了解更多",
610
- "boxui.metadataInstanceEditor.aiAutofillNotice": "Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.",
611
- "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "pricing details",
610
+ "boxui.metadataInstanceEditor.aiAutofillNotice": "启用此功能可能需要额外付费。请查看我们的{pricingLink}了解更多信息。",
611
+ "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "定价详细信息",
612
612
  "boxui.metadataInstanceEditor.allAttributesAreHidden": "此模板中的所有属性都已隐藏。",
613
613
  "boxui.metadataInstanceEditor.applyCascadePolicyText": "将模板及其值应用于此文件夹及其子文件夹中的所有新项目和现有项目。",
614
614
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "级联策略目前不适用于自定义元数据。",
@@ -629,7 +629,7 @@ export default {
629
629
  "boxui.metadataInstanceEditor.customValue": "值",
630
630
  "boxui.metadataInstanceEditor.customValuePlaceholder": "例如 42",
631
631
  "boxui.metadataInstanceEditor.editTooltip": "编辑元数据",
632
- "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI Autofill",
632
+ "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI 自动填充",
633
633
  "boxui.metadataInstanceEditor.enableCascadePolicy": "启用级联策略",
634
634
  "boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm": "是否确定要从此文件中删除此自定义元数据及其所有值?",
635
635
  "boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm": "是否确定要从此文件中删除 \"{metadataName}\" 及其所有值?",
@@ -1211,13 +1211,13 @@ boxui.itemDetails.urlPlaceholder = 输入有效的 URL
1211
1211
  # Label for comment options menu
1212
1212
  boxui.media.menuButtonArialLabel = 选项
1213
1213
  # Description for AI autofill toggle switch
1214
- boxui.metadataInstanceEditor.aiAutofillDescription = Use Box AI to automatically extract metadata values.
1214
+ boxui.metadataInstanceEditor.aiAutofillDescription = 使用 Box AI 自动提取元数据值。
1215
1215
  # Learn more link for AI autofill
1216
1216
  boxui.metadataInstanceEditor.aiAutofillLearnMore = 了解更多
1217
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.
1218
+ boxui.metadataInstanceEditor.aiAutofillNotice = 启用此功能可能需要额外付费。请查看我们的{pricingLink}了解更多信息。
1219
1219
  # Pricing details link for AI autofill
1220
- boxui.metadataInstanceEditor.aiAutofillPricingDetails = pricing details
1220
+ boxui.metadataInstanceEditor.aiAutofillPricingDetails = 定价详细信息
1221
1221
  # Informational text below collapsible header indicating that all fields for this template are hidden
1222
1222
  boxui.metadataInstanceEditor.allAttributesAreHidden = 此模板中的所有属性都已隐藏。
1223
1223
  # Informational text below enable cascade policy toggle switch
@@ -1259,7 +1259,7 @@ boxui.metadataInstanceEditor.customValuePlaceholder = 例如 42
1259
1259
  # Text that shows in a tooltip above the edit pencil button.
1260
1260
  boxui.metadataInstanceEditor.editTooltip = 编辑元数据
1261
1261
  # Label for enable AI autofill toggle switch
1262
- boxui.metadataInstanceEditor.enableAIAutofill = Box AI Autofill
1262
+ boxui.metadataInstanceEditor.enableAIAutofill = Box AI 自动填充
1263
1263
  # Label for enable cascade policy toggle switch
1264
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = 启用级联策略
1265
1265
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
package/i18n/zh-TW.js CHANGED
@@ -605,10 +605,10 @@ export default {
605
605
  "boxui.itemDetails.url": "URL",
606
606
  "boxui.itemDetails.urlPlaceholder": "輸入有效的 URL",
607
607
  "boxui.media.menuButtonArialLabel": "選項",
608
- "boxui.metadataInstanceEditor.aiAutofillDescription": "Use Box AI to automatically extract metadata values.",
608
+ "boxui.metadataInstanceEditor.aiAutofillDescription": "使用 Box AI 自動擷取中繼資料值。",
609
609
  "boxui.metadataInstanceEditor.aiAutofillLearnMore": "詳細資訊",
610
- "boxui.metadataInstanceEditor.aiAutofillNotice": "Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.",
611
- "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "pricing details",
610
+ "boxui.metadataInstanceEditor.aiAutofillNotice": "啟用此功能可能需要額外費用。請檢閱我們的 {pricingLink} 以取得詳細資訊。",
611
+ "boxui.metadataInstanceEditor.aiAutofillPricingDetails": "定價詳細資料",
612
612
  "boxui.metadataInstanceEditor.allAttributesAreHidden": "此範本中的所有屬性皆已隱藏。",
613
613
  "boxui.metadataInstanceEditor.applyCascadePolicyText": "將範本及其值套用到此資料夾和其子資料夾中的所有新項目與現有項目。",
614
614
  "boxui.metadataInstanceEditor.cannotApplyCascadePolicyText": "向下套用原則目前無法套用到自訂中繼資料。",
@@ -629,7 +629,7 @@ export default {
629
629
  "boxui.metadataInstanceEditor.customValue": "值",
630
630
  "boxui.metadataInstanceEditor.customValuePlaceholder": "例如 42",
631
631
  "boxui.metadataInstanceEditor.editTooltip": "編輯中繼資料",
632
- "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI Autofill",
632
+ "boxui.metadataInstanceEditor.enableAIAutofill": "Box AI 自動填充",
633
633
  "boxui.metadataInstanceEditor.enableCascadePolicy": "啟用向下套用原則",
634
634
  "boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm": "確定要從此檔案刪除此自訂中繼資料及其所有值?",
635
635
  "boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm": "確定要從此檔案刪除「{metadataName}」及其所有值?",
@@ -1211,13 +1211,13 @@ boxui.itemDetails.urlPlaceholder = 輸入有效的 URL
1211
1211
  # Label for comment options menu
1212
1212
  boxui.media.menuButtonArialLabel = 選項
1213
1213
  # Description for AI autofill toggle switch
1214
- boxui.metadataInstanceEditor.aiAutofillDescription = Use Box AI to automatically extract metadata values.
1214
+ boxui.metadataInstanceEditor.aiAutofillDescription = 使用 Box AI 自動擷取中繼資料值。
1215
1215
  # Learn more link for AI autofill
1216
1216
  boxui.metadataInstanceEditor.aiAutofillLearnMore = 詳細資訊
1217
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.
1218
+ boxui.metadataInstanceEditor.aiAutofillNotice = 啟用此功能可能需要額外費用。請檢閱我們的 {pricingLink} 以取得詳細資訊。
1219
1219
  # Pricing details link for AI autofill
1220
- boxui.metadataInstanceEditor.aiAutofillPricingDetails = pricing details
1220
+ boxui.metadataInstanceEditor.aiAutofillPricingDetails = 定價詳細資料
1221
1221
  # Informational text below collapsible header indicating that all fields for this template are hidden
1222
1222
  boxui.metadataInstanceEditor.allAttributesAreHidden = 此範本中的所有屬性皆已隱藏。
1223
1223
  # Informational text below enable cascade policy toggle switch
@@ -1259,7 +1259,7 @@ boxui.metadataInstanceEditor.customValuePlaceholder = 例如 42
1259
1259
  # Text that shows in a tooltip above the edit pencil button.
1260
1260
  boxui.metadataInstanceEditor.editTooltip = 編輯中繼資料
1261
1261
  # Label for enable AI autofill toggle switch
1262
- boxui.metadataInstanceEditor.enableAIAutofill = Box AI Autofill
1262
+ boxui.metadataInstanceEditor.enableAIAutofill = Box AI 自動填充
1263
1263
  # Label for enable cascade policy toggle switch
1264
1264
  boxui.metadataInstanceEditor.enableCascadePolicy = 啟用向下套用原則
1265
1265
  # Message for users who may attempt to remove a custom metadata instance for a file. Also non-recoverable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "box-ui-elements",
3
- "version": "23.4.0-beta.2",
3
+ "version": "23.4.0-beta.4",
4
4
  "description": "Box UI Elements",
5
5
  "author": "Box (https://www.box.com/)",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -3,7 +3,6 @@ import * as React from 'react';
3
3
  import { FormattedMessage } from 'react-intl';
4
4
 
5
5
  import { BoxAiAgentSelector } from '@box/box-ai-agent-selector';
6
- import { InlineNotice, TooltipProvider } from '@box/blueprint-web';
7
6
  // $FlowFixMe
8
7
  import BoxAiLogo from '@box/blueprint-web-assets/icons/Logo/BoxAiLogo';
9
8
 
@@ -16,7 +15,6 @@ import './CascadePolicy.scss';
16
15
 
17
16
  const COMMUNITY_LINK = 'https://support.box.com/hc/en-us/articles/360044195873-Cascading-metadata-in-folders';
18
17
  const AI_LINK = 'https://www.box.com/ai';
19
- const PRICING_LINK = 'https://www.box.com/pricing';
20
18
 
21
19
  const agents = [
22
20
  {
@@ -149,29 +147,15 @@ const CascadePolicy = ({
149
147
  </div>
150
148
  {canUseAIFolderExtractionAgentSelector && (
151
149
  <div className="metadata-cascade-ai-agent-selector">
152
- <TooltipProvider>
153
- <BoxAiAgentSelector
154
- agents={agents}
155
- onErrorAction={() => {}}
156
- requestState="success"
157
- selectedAgent={agents[0]}
158
- variant="sidebar"
159
- />
160
- </TooltipProvider>
150
+ <BoxAiAgentSelector
151
+ agents={agents}
152
+ onErrorAction={() => {}}
153
+ requestState="success"
154
+ selectedAgent={agents[0]}
155
+ variant="sidebar"
156
+ />
161
157
  </div>
162
158
  )}
163
- <InlineNotice className="metadata-cascade-ai-notice" variant="info">
164
- <FormattedMessage
165
- {...messages.aiAutofillNotice}
166
- values={{
167
- pricingLink: (
168
- <Link className="cascade-policy-link" href={PRICING_LINK} target="_blank">
169
- <FormattedMessage {...messages.aiAutofillPricingDetails} />
170
- </Link>
171
- ),
172
- }}
173
- />
174
- </InlineNotice>
175
159
  </div>
176
160
  </div>
177
161
  )}
@@ -46,10 +46,6 @@ $cascade-policy-background: #f1e2fd;
46
46
  top: 3px;
47
47
  margin-right: 3px;
48
48
  }
49
-
50
- .metadata-cascade-ai-notice {
51
- margin-top: 12px;
52
- }
53
49
  }
54
50
 
55
51
  .toggle-container.metadata-cascade-toggle {
@@ -77,8 +77,8 @@ describe('features/metadata-instance-editor/CascadePolicy', () => {
77
77
  },
78
78
  );
79
79
 
80
- describe('AI Autofill Links', () => {
81
- test('should render AI and pricing links when AI features are enabled', () => {
80
+ describe('AI Autofill Learn More Link', () => {
81
+ test('should render AI learn more link when AI features are enabled', () => {
82
82
  render(<CascadePolicy canEdit canUseAIFolderExtraction shouldShowCascadeOptions />);
83
83
 
84
84
  // Find link within the AI autofill section since there are two links with the same text in the component
@@ -87,11 +87,6 @@ describe('features/metadata-instance-editor/CascadePolicy', () => {
87
87
  expect(aiLink).toBeInTheDocument();
88
88
  expect(aiLink.closest('a')).toHaveAttribute('href', 'https://www.box.com/ai');
89
89
  expect(aiLink.closest('a')).toHaveAttribute('target', '_blank');
90
-
91
- const pricingLink = screen.getByText('pricing details');
92
- expect(pricingLink).toBeInTheDocument();
93
- expect(pricingLink.closest('a')).toHaveAttribute('href', 'https://www.box.com/pricing');
94
- expect(pricingLink.closest('a')).toHaveAttribute('target', '_blank');
95
90
  });
96
91
  });
97
92
 
@@ -178,22 +178,11 @@ const messages = defineMessages({
178
178
  description: 'Description for AI autofill toggle switch',
179
179
  id: 'boxui.metadataInstanceEditor.aiAutofillDescription',
180
180
  },
181
- aiAutofillNotice: {
182
- defaultMessage:
183
- 'Enabling this feature may involve additional charges. Please review our {pricingLink} for more information.',
184
- description: 'Notice for AI autofill toggle switch',
185
- id: 'boxui.metadataInstanceEditor.aiAutofillNotice',
186
- },
187
181
  aiAutofillLearnMore: {
188
182
  defaultMessage: 'Learn more',
189
183
  description: 'Learn more link for AI autofill',
190
184
  id: 'boxui.metadataInstanceEditor.aiAutofillLearnMore',
191
185
  },
192
- aiAutofillPricingDetails: {
193
- defaultMessage: 'pricing details',
194
- description: 'Pricing details link for AI autofill',
195
- id: 'boxui.metadataInstanceEditor.aiAutofillPricingDetails',
196
- },
197
186
  applyCascadePolicyText: {
198
187
  defaultMessage:
199
188
  'Apply template and its values to all new and existing items in this folder and its subfolders.',