@box/metadata-editor 0.119.1 → 0.120.1

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 (41) hide show
  1. package/dist/esm/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.js +43 -43
  2. package/dist/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/autofill-overlay.js +38 -35
  3. package/dist/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.js +8 -0
  4. package/dist/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/useErrorMessaging.js +28 -0
  5. package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/constants.js +3 -2
  6. package/dist/i18n/bn-IN.js +2 -0
  7. package/dist/i18n/da-DK.js +2 -0
  8. package/dist/i18n/de-DE.js +2 -0
  9. package/dist/i18n/en-AU.js +2 -0
  10. package/dist/i18n/en-CA.js +2 -0
  11. package/dist/i18n/en-GB.js +2 -0
  12. package/dist/i18n/en-US.js +2 -0
  13. package/dist/i18n/en-US.properties +4 -0
  14. package/dist/i18n/en-x-pseudo.js +129 -127
  15. package/dist/i18n/en-x-pseudo.properties +127 -127
  16. package/dist/i18n/es-419.js +2 -0
  17. package/dist/i18n/es-ES.js +2 -0
  18. package/dist/i18n/fi-FI.js +2 -0
  19. package/dist/i18n/fr-CA.js +2 -0
  20. package/dist/i18n/fr-FR.js +2 -0
  21. package/dist/i18n/hi-IN.js +2 -0
  22. package/dist/i18n/it-IT.js +2 -0
  23. package/dist/i18n/ja-JP.js +4 -2
  24. package/dist/i18n/ja-JP.properties +2 -2
  25. package/dist/i18n/json/src/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.json +1 -1
  26. package/dist/i18n/ko-KR.js +2 -0
  27. package/dist/i18n/nb-NO.js +2 -0
  28. package/dist/i18n/nl-NL.js +2 -0
  29. package/dist/i18n/pl-PL.js +2 -0
  30. package/dist/i18n/pt-BR.js +2 -0
  31. package/dist/i18n/ru-RU.js +2 -0
  32. package/dist/i18n/sv-SE.js +2 -0
  33. package/dist/i18n/tr-TR.js +2 -0
  34. package/dist/i18n/zh-CN.js +2 -0
  35. package/dist/i18n/zh-TW.js +2 -0
  36. package/dist/styles/autofill-overlay.css +1 -1
  37. package/dist/types/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.d.ts +10 -0
  38. package/dist/types/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/useErrorMessaging.d.ts +6 -0
  39. package/dist/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/constants.d.ts +1 -0
  40. package/dist/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +2 -2
  41. package/package.json +3 -3
@@ -95,6 +95,8 @@ export default {
95
95
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Laden",
96
96
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Er wordt nog aan gewerkt!",
97
97
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "Dit duurt langer dan normaal",
98
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorDescription": "You don’t have permission to access the destination folder to extract metadata. Please contact the owner or your admin.",
99
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorTitle": "Can’t Extract Metadata",
98
100
  "metadataEditor.metadataInstanceEditor.customInstance.addAttribute": "+ Kenmerk toevoegen",
99
101
  "metadataEditor.metadataInstanceEditor.customInstance.removeAttribute": "Kenmerk {fieldName} verwijderen",
100
102
  "metadataEditor.metadataInstanceEditor.customInstance.setValuePlaceholder": "Waarde instellen",
@@ -95,6 +95,8 @@ export default {
95
95
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Trwa wczytywanie",
96
96
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Nadal nad tym pracuję!",
97
97
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "To trwa dłużej niż zwykle",
98
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorDescription": "You don’t have permission to access the destination folder to extract metadata. Please contact the owner or your admin.",
99
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorTitle": "Can’t Extract Metadata",
98
100
  "metadataEditor.metadataInstanceEditor.customInstance.addAttribute": "+ Dodaj atrybut",
99
101
  "metadataEditor.metadataInstanceEditor.customInstance.removeAttribute": "Usuń atrybut {fieldName}",
100
102
  "metadataEditor.metadataInstanceEditor.customInstance.setValuePlaceholder": "Ustaw wartość",
@@ -95,6 +95,8 @@ export default {
95
95
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Carregando",
96
96
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Ainda trabalhando nisso!",
97
97
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "Isso está levando mais tempo do que o habitual",
98
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorDescription": "You don’t have permission to access the destination folder to extract metadata. Please contact the owner or your admin.",
99
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorTitle": "Can’t Extract Metadata",
98
100
  "metadataEditor.metadataInstanceEditor.customInstance.addAttribute": "+ Adicionar atributo",
99
101
  "metadataEditor.metadataInstanceEditor.customInstance.removeAttribute": "Excluir atributo de {fieldName}",
100
102
  "metadataEditor.metadataInstanceEditor.customInstance.setValuePlaceholder": "Definir valor",
@@ -95,6 +95,8 @@ export default {
95
95
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Загрузка",
96
96
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "В процессе!",
97
97
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "Это занимает больше времени, чем обычно",
98
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorDescription": "You don’t have permission to access the destination folder to extract metadata. Please contact the owner or your admin.",
99
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorTitle": "Can’t Extract Metadata",
98
100
  "metadataEditor.metadataInstanceEditor.customInstance.addAttribute": "Добавить атрибут",
99
101
  "metadataEditor.metadataInstanceEditor.customInstance.removeAttribute": "Удалить атрибут {fieldName}",
100
102
  "metadataEditor.metadataInstanceEditor.customInstance.setValuePlaceholder": "Установить значение",
@@ -95,6 +95,8 @@ export default {
95
95
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Läser in",
96
96
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Arbetar fortfarande med det!",
97
97
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "Det här tar längre tid än vanligt",
98
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorDescription": "You don’t have permission to access the destination folder to extract metadata. Please contact the owner or your admin.",
99
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorTitle": "Can’t Extract Metadata",
98
100
  "metadataEditor.metadataInstanceEditor.customInstance.addAttribute": "+ Lägg till attribut",
99
101
  "metadataEditor.metadataInstanceEditor.customInstance.removeAttribute": "Radera {fieldName} attribut",
100
102
  "metadataEditor.metadataInstanceEditor.customInstance.setValuePlaceholder": "Ställ in värde",
@@ -95,6 +95,8 @@ export default {
95
95
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Yükleniyor",
96
96
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Üzerinde hala çalışıyoruz!",
97
97
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "Bu işlem, normalden daha uzun sürüyor",
98
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorDescription": "You don’t have permission to access the destination folder to extract metadata. Please contact the owner or your admin.",
99
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorTitle": "Can’t Extract Metadata",
98
100
  "metadataEditor.metadataInstanceEditor.customInstance.addAttribute": "+ Öznitelik Ekle",
99
101
  "metadataEditor.metadataInstanceEditor.customInstance.removeAttribute": "{fieldName} özniteliğini sil",
100
102
  "metadataEditor.metadataInstanceEditor.customInstance.setValuePlaceholder": "Değeri ayarla",
@@ -95,6 +95,8 @@ export default {
95
95
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "正在载入",
96
96
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "仍在处理!",
97
97
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "这需要比平时更长的时间",
98
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorDescription": "You don’t have permission to access the destination folder to extract metadata. Please contact the owner or your admin.",
99
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorTitle": "Can’t Extract Metadata",
98
100
  "metadataEditor.metadataInstanceEditor.customInstance.addAttribute": "+ 添加属性",
99
101
  "metadataEditor.metadataInstanceEditor.customInstance.removeAttribute": "删除 {fieldName} 属性",
100
102
  "metadataEditor.metadataInstanceEditor.customInstance.setValuePlaceholder": "设置值",
@@ -95,6 +95,8 @@ export default {
95
95
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "載入中",
96
96
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "仍在努力中!",
97
97
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "這比平時花的時間更長",
98
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorDescription": "You don’t have permission to access the destination folder to extract metadata. Please contact the owner or your admin.",
99
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.missingPermissionsErrorTitle": "Can’t Extract Metadata",
98
100
  "metadataEditor.metadataInstanceEditor.customInstance.addAttribute": "+ 新增屬性",
99
101
  "metadataEditor.metadataInstanceEditor.customInstance.removeAttribute": "刪除 {fieldName} 屬性",
100
102
  "metadataEditor.metadataInstanceEditor.customInstance.setValuePlaceholder": "設定值",
@@ -1 +1 @@
1
- ._autofillOverlay_1xnil_1{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;display:flex;flex-direction:column;align-items:center;padding:var(--space-4) var(--space-4) 0 var(--space-4);background:#fafcfee6}._withError_1xnil_15{background-color:#ffffffe6}._autofillOverlayTitle_1xnil_19{margin-top:var(--space-4);text-align:center}._dismissButton_1xnil_24{margin-top:var(--space-4)}._overlayIcon_1xnil_28{position:relative;display:block;margin-top:var(--space-4)}._testContainerStyle_1xnil_34{position:relative;width:380px;height:600px;padding:var(--space-4);border:1px solid #000}
1
+ ._autofillOverlay_1s073_1{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;display:flex;flex-direction:column;align-items:center;padding:var(--space-4) var(--space-4) 0 var(--space-4);background:#fafcfee6}._withError_1s073_15{background-color:#ffffffe6}._autofillOverlayTitle_1s073_19{margin-top:var(--space-4);text-align:center}._autofillOverlayDescription_1s073_24{text-align:center}._dismissButton_1s073_28{margin-top:var(--space-4)}._overlayIcon_1s073_32{position:relative;display:block;margin-top:var(--space-4)}._testContainerStyle_1s073_38{position:relative;width:380px;height:600px;padding:var(--space-4);border:1px solid #000}
@@ -19,6 +19,16 @@ declare const messages: {
19
19
  description: string;
20
20
  id: string;
21
21
  };
22
+ missingPermissionsErrorTitle: {
23
+ defaultMessage: string;
24
+ description: string;
25
+ id: string;
26
+ };
27
+ missingPermissionsErrorDescription: {
28
+ defaultMessage: string;
29
+ description: string;
30
+ id: string;
31
+ };
22
32
  loadingAriaLabel: {
23
33
  defaultMessage: string;
24
34
  description: string;
@@ -0,0 +1,6 @@
1
+ type ErrorMessage = {
2
+ title: string;
3
+ description: string;
4
+ };
5
+ export declare const useErrorMessaging: (errorCode: string | undefined) => ErrorMessage;
6
+ export {};
@@ -1,3 +1,4 @@
1
1
  export declare const ERROR_CODE_METADATA_AUTOFILL_TIMEOUT = "metadata_autofill_timeout_error";
2
2
  export declare const ERROR_CODE_METADATA_PRECONDITION_FAILED = "metadata_precondition_failed_error";
3
+ export declare const ERROR_CODE_MISSING_PERMISSIONS = "missing_permissions_error";
3
4
  export declare const ERROR_CODE_UNKNOWN = "unknown_error";
@@ -1,8 +1,8 @@
1
1
  import { AutofillSuggestions, MetadataFormFieldValue, MetadataTemplateField, MetadataTemplateInstance } from '../../../../types';
2
2
  import { TaxonomyOptionsFetcher } from '../../../metadata-editor-fields/components/metadata-taxonomy-field/types';
3
3
  import { FormValues } from '../../types';
4
- import { ERROR_CODE_METADATA_AUTOFILL_TIMEOUT, ERROR_CODE_METADATA_PRECONDITION_FAILED, ERROR_CODE_UNKNOWN } from './constants';
5
- export type errorCodeTypes = typeof ERROR_CODE_METADATA_AUTOFILL_TIMEOUT | typeof ERROR_CODE_METADATA_PRECONDITION_FAILED | typeof ERROR_CODE_UNKNOWN;
4
+ import { ERROR_CODE_METADATA_AUTOFILL_TIMEOUT, ERROR_CODE_METADATA_PRECONDITION_FAILED, ERROR_CODE_MISSING_PERMISSIONS, ERROR_CODE_UNKNOWN } from './constants';
5
+ export type errorCodeTypes = typeof ERROR_CODE_METADATA_AUTOFILL_TIMEOUT | typeof ERROR_CODE_METADATA_PRECONDITION_FAILED | typeof ERROR_CODE_MISSING_PERMISSIONS | typeof ERROR_CODE_UNKNOWN;
6
6
  export type MetadataInstanceFormProps = {
7
7
  areAiSuggestionsAvailable: boolean;
8
8
  errorCode?: errorCodeTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.119.1",
3
+ "version": "0.120.1",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.15",
6
6
  "@box/box-ai-agent-selector": "^0.41.7",
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@ariakit/react": "0.4.15",
18
- "@box/box-ai-agent-selector": "^0.46.1",
18
+ "@box/box-ai-agent-selector": "^0.47.1",
19
19
  "@box/babel-plugin-target-attributes": "1.3.0",
20
- "@box/blueprint-web": "^12.25.0",
20
+ "@box/blueprint-web": "^12.27.0",
21
21
  "@box/blueprint-web-assets": "^4.57.0",
22
22
  "@box/storybook-utils": "^0.13.11",
23
23
  "@testing-library/react": "^15.0.6",