@box/metadata-editor 0.54.0 → 0.56.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.
Files changed (53) hide show
  1. package/esm/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.js +121 -117
  2. package/i18n/bn-IN.js +15 -15
  3. package/i18n/bn-IN.properties +21 -9
  4. package/i18n/da-DK.js +11 -11
  5. package/i18n/da-DK.properties +17 -5
  6. package/i18n/de-DE.js +11 -11
  7. package/i18n/de-DE.properties +17 -5
  8. package/i18n/en-AU.js +2 -2
  9. package/i18n/en-AU.properties +13 -1
  10. package/i18n/en-CA.js +1 -1
  11. package/i18n/en-CA.properties +13 -1
  12. package/i18n/en-GB.js +2 -2
  13. package/i18n/en-GB.properties +13 -1
  14. package/i18n/en-x-pseudo.js +95 -95
  15. package/i18n/en-x-pseudo.properties +101 -89
  16. package/i18n/es-419.js +11 -11
  17. package/i18n/es-419.properties +17 -5
  18. package/i18n/es-ES.js +11 -11
  19. package/i18n/es-ES.properties +17 -5
  20. package/i18n/fi-FI.js +11 -11
  21. package/i18n/fi-FI.properties +17 -5
  22. package/i18n/fr-CA.js +10 -10
  23. package/i18n/fr-CA.properties +16 -4
  24. package/i18n/fr-FR.js +10 -10
  25. package/i18n/fr-FR.properties +16 -4
  26. package/i18n/hi-IN.js +11 -11
  27. package/i18n/hi-IN.properties +17 -5
  28. package/i18n/it-IT.js +11 -11
  29. package/i18n/it-IT.properties +17 -5
  30. package/i18n/ja-JP.js +12 -12
  31. package/i18n/ja-JP.properties +18 -6
  32. package/i18n/ko-KR.js +11 -11
  33. package/i18n/ko-KR.properties +17 -5
  34. package/i18n/nb-NO.js +11 -11
  35. package/i18n/nb-NO.properties +17 -5
  36. package/i18n/nl-NL.js +11 -11
  37. package/i18n/nl-NL.properties +17 -5
  38. package/i18n/pl-PL.js +11 -11
  39. package/i18n/pl-PL.properties +17 -5
  40. package/i18n/pt-BR.js +11 -11
  41. package/i18n/pt-BR.properties +17 -5
  42. package/i18n/ru-RU.js +11 -11
  43. package/i18n/ru-RU.properties +17 -5
  44. package/i18n/sv-SE.js +11 -11
  45. package/i18n/sv-SE.properties +17 -5
  46. package/i18n/tr-TR.js +11 -11
  47. package/i18n/tr-TR.properties +17 -5
  48. package/i18n/zh-CN.js +11 -11
  49. package/i18n/zh-CN.properties +17 -5
  50. package/i18n/zh-TW.js +11 -11
  51. package/i18n/zh-TW.properties +17 -5
  52. package/package.json +2 -2
  53. package/types/lib/components/combobox-with-api-pagination/types.d.ts +4 -4
@@ -75,19 +75,19 @@ metadataEditor.addMetadataTemplate.search.placeholder = 搜尋範本
75
75
  # Call to encourage user to add metadata templates
76
76
  metadataEditor.addMetadataTemplate.trigger.label = 新增範本
77
77
  # Label for value suggested by Box AI
78
- metadataEditor.aiSuggestionField.aiSuggestionCaption = Box AI suggestion:
78
+ metadataEditor.aiSuggestionField.aiSuggestionCaption = Box AI 建議:
79
79
  # Aria-label for AI suggestion options
80
- metadataEditor.aiSuggestionField.aiSuggestionOptions = Options
80
+ metadataEditor.aiSuggestionField.aiSuggestionOptions = 選項
81
81
  # Label for appending the AI suggestion
82
82
  metadataEditor.aiSuggestionField.appendLabel = 附加
83
83
  # Label for clearing the current value and applying the AI suggestion
84
- metadataEditor.aiSuggestionField.clearAndReplaceLabel = Clear and Replace
84
+ metadataEditor.aiSuggestionField.clearAndReplaceLabel = 清除並取代
85
85
  # Label for ignoring the AI suggestion
86
- metadataEditor.aiSuggestionField.ignoreLabel = Ignore
86
+ metadataEditor.aiSuggestionField.ignoreLabel = 略過
87
87
  # Paragraph asking user are they sure that they want to delete the template
88
88
  metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph = 確定要刪除「{templateName}」中繼資料範本,以及此檔案中的所有值?
89
89
  # Label informing how to confirm deletion of the template
90
- metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel = 輸入「{templateName}」以確認
90
+ metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel = 輸入中繼資料範本的名稱以確認刪除
91
91
  # Paragraph informing that data cannot be restored
92
92
  metadataEditor.editInstance.deleteConfirmationModal.body.secondParagraph = 刪除後,中繼資料值將無法恢復。
93
93
  # CTA to cancel deletion of the template
@@ -100,6 +100,8 @@ metadataEditor.editInstance.deleteConfirmationModal.customMedatata = 自訂中
100
100
  metadataEditor.editInstance.deleteConfirmationModal.dismissButton = 關閉
101
101
  # Header informing that template will be deleted
102
102
  metadataEditor.editInstance.deleteConfirmationModal.header = 刪除「{templateName}」
103
+ # Aria label for header informing that template will be deleted
104
+ metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel = 刪除中繼資料範本
103
105
  # Description of Box AI features
104
106
  metadataEditor.fileLevel.emptyState.boxAiEnabled.body = 使用 Box AI 的能力快速捕獲文件中繼資料,準確度不斷提高。
105
107
  # Call to encourage user to use Box AI to autofill metadata fields
@@ -158,6 +160,8 @@ metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.loadingAriaLabe
158
160
  metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.saveButton = 儲存
159
161
  # Button with "Autofill" text. Call to action to automatically fill in form fields based on AI information
160
162
  metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButton = 自動填充
163
+ # Tooltip text explaining that by clicking button user can autofill template using Box AI
164
+ metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltip = 使用 Box AI 自動填充
161
165
  # Header with Custom Metadata template name
162
166
  metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle = 自訂中繼資料
163
167
  # Aria label used to indicate that the button is currently loading.
@@ -176,5 +180,13 @@ metadataEditor.unsavedChangesModal.saveAndContinueCTA = 儲存並繼續
176
180
  metadataEditor.viewInstance.metadataInstanceFooter.hideEmptyValuesCTA = 隱藏空值
177
181
  # Call to action to show hidden empty values
178
182
  metadataEditor.viewInstance.metadataInstanceFooter.showEmptyValuesCTA = 顯示空值
183
+ # Aria label for the autofill button
184
+ metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonAriaLabel = 使用 Box AI 自動填充
185
+ # Tooltip text explaining that by clicking button user can autofill template using Box AI
186
+ metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip = 使用 Box AI 自動填充
179
187
  # Header with Custom Metadata template name
180
188
  metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle = 自訂中繼資料
189
+ # Aria label for the edit button
190
+ metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel = 編輯
191
+ # Tooltip text explaining that by clicking button user can edit template
192
+ metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip = 編輯
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.54.0",
3
+ "version": "0.56.0",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.5",
6
6
  "@box/blueprint-web": "^7.20.0",
@@ -52,5 +52,5 @@
52
52
  "**/*.css"
53
53
  ],
54
54
  "license": "SEE LICENSE IN LICENSE",
55
- "gitHead": "c4e8483378415e000dd6bb2a9ca046d5176f98f0"
55
+ "gitHead": "e32ed9680b44416f0633bded1a0b1897c71a28fc"
56
56
  }
@@ -12,7 +12,7 @@ export interface FetcherResponse<T> {
12
12
  options: T[];
13
13
  }
14
14
  export interface BaseOptionType {
15
- id?: string;
15
+ displayValue?: string;
16
16
  value: string;
17
17
  }
18
18
  interface BaseComboboxProps<T extends BaseOptionType, M extends boolean> {
@@ -21,9 +21,9 @@ interface BaseComboboxProps<T extends BaseOptionType, M extends boolean> {
21
21
  noResultMessage?: ReactElement | string;
22
22
  onInputValueChange?: (inputValue: string) => void;
23
23
  multiselect: M;
24
- onValueChange?: (selectedOptions: M extends true ? T[] : T) => void;
25
- value?: M extends true ? T[] : T;
26
- defaultValue?: M extends true ? T[] : T;
24
+ onValueChange?: (selectedOptions: T[]) => void;
25
+ value?: T[];
26
+ defaultValue?: T[];
27
27
  label: string;
28
28
  loadingAriaLabel?: string;
29
29
  portalElement?: HTMLElement | (() => HTMLElement);