@box/metadata-editor 0.92.0 → 0.92.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 (43) hide show
  1. package/chunks/metadata-instance-form-card-wrapper.js +34 -32
  2. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +64 -62
  3. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.js +3 -11
  4. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +33 -42
  5. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.js +22 -0
  6. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.js +46 -0
  7. package/i18n/bn-IN.js +7 -3
  8. package/i18n/da-DK.js +7 -3
  9. package/i18n/de-DE.js +7 -3
  10. package/i18n/en-AU.js +7 -3
  11. package/i18n/en-CA.js +7 -3
  12. package/i18n/en-GB.js +7 -3
  13. package/i18n/en-US.js +4 -2
  14. package/i18n/en-US.properties +8 -4
  15. package/i18n/en-x-pseudo.js +7 -3
  16. package/i18n/es-419.js +7 -3
  17. package/i18n/es-ES.js +7 -3
  18. package/i18n/fi-FI.js +7 -3
  19. package/i18n/fr-CA.js +7 -3
  20. package/i18n/fr-FR.js +7 -3
  21. package/i18n/hi-IN.js +7 -3
  22. package/i18n/it-IT.js +7 -3
  23. package/i18n/ja-JP.js +7 -3
  24. package/i18n/json/src/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.json +1 -1
  25. package/i18n/json/src/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.json +1 -0
  26. package/i18n/ko-KR.js +7 -3
  27. package/i18n/nb-NO.js +7 -3
  28. package/i18n/nl-NL.js +7 -3
  29. package/i18n/pl-PL.js +7 -3
  30. package/i18n/pt-BR.js +7 -3
  31. package/i18n/ru-RU.js +7 -3
  32. package/i18n/sv-SE.js +7 -3
  33. package/i18n/tr-TR.js +7 -3
  34. package/i18n/zh-CN.js +7 -3
  35. package/i18n/zh-TW.js +7 -3
  36. package/package.json +2 -2
  37. package/styles/metadata-instance-form-inline-notice.css +1 -0
  38. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +2 -0
  39. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.d.ts +0 -10
  40. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.d.ts +1 -1
  41. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/types.d.ts +1 -0
  42. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.d.ts +23 -0
  43. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.d.ts +5 -0
package/i18n/zh-TW.js CHANGED
@@ -94,13 +94,15 @@ export default {
94
94
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.deleteButton": "刪除",
95
95
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.loadingAriaLabel": "載入中......",
96
96
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormFooter.saveButton": "儲存",
97
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "請在儲存之前檢查回應。",
98
- "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI 自動填充為測試版",
99
97
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButton": "自動填充",
100
98
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonAriaLabel": "使用 Box AI 自動填充",
101
99
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltip": "使用 Box AI (測試版) 自動填充",
102
100
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillButtonTooltipGA": "Autofill with Box AI",
101
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeBody": "Please check responses before saving.",
102
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.autofillInBetaNoticeHeader": "AI Autofill is in Beta",
103
103
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.customInstanceTitle": "自訂中繼資料",
104
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeBody": "Box AI won’t be able to access the full text, which may impact metadata values",
105
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.largeFileNoticeHeader": "Text content is too large",
104
106
  "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.loadingButtonAriaLabel": "載入中......",
105
107
  "metadataEditor.unsavedChangesModal.body": "中繼資料範本有未儲存的變更。 您想要如何繼續?",
106
108
  "metadataEditor.unsavedChangesModal.closeLabel": "關閉",
@@ -119,5 +121,7 @@ export default {
119
121
  "taxonomyAncestorStatusPill.errorAction": "重新載入",
120
122
  "taxonomyAncestorStatusPill.errorIconLabel": "錯誤",
121
123
  "taxonomyAncestorStatusPill.errorMessage": "載入詳細資料失敗",
122
- "taxonomyAncestorStatusPill.loadingAriaLabel": "正在載入..."
124
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "正在載入...",
125
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeBody": "請在儲存之前檢查回應。",
126
+ "metadataEditor.metadataInstanceEditor.metadataInstanceFormHeader.aiSuggestionNoticeHeader": "AI 自動填充為測試版"
123
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.92.0",
3
+ "version": "0.92.1",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.15",
6
6
  "@box/blueprint-web": "^7.30.3",
@@ -53,5 +53,5 @@
53
53
  "**/*.css"
54
54
  ],
55
55
  "license": "SEE LICENSE IN LICENSE",
56
- "gitHead": "f58975e6ef79aaa7ede93cd503cc8412f68fac44"
56
+ "gitHead": "519f1d6731d1101f0481e617c0f315581a6ca537"
57
57
  }
@@ -0,0 +1 @@
1
+ ._inlineNotice_j1wao_1{padding-top:var(--space-4)}
@@ -9,6 +9,7 @@ export type MetadataInstanceFormProps = {
9
9
  isAiSuggestionsFeatureEnabled: boolean;
10
10
  isBetaLanguageEnabled: boolean;
11
11
  isDeleteButtonDisabled: boolean;
12
+ isLargeFile: boolean;
12
13
  isUnsavedChangesModalOpen: boolean;
13
14
  selectedTemplateInstance: MetadataTemplateInstance | null;
14
15
  onCancel: () => void;
@@ -27,6 +28,7 @@ export type MetadataInstanceFormWrapperProps<T> = {
27
28
  formValues: FormValues;
28
29
  isAiSuggestionsFeatureEnabled: boolean;
29
30
  isBetaLanguageEnabled: boolean;
31
+ isLargeFile: boolean;
30
32
  isDeleteButtonDisabled: boolean;
31
33
  isFetchingSuggestions: boolean;
32
34
  isFormDirty: boolean;
@@ -4,15 +4,5 @@ declare const messages: {
4
4
  description: string;
5
5
  id: string;
6
6
  };
7
- aiSuggestionNoticeHeader: {
8
- defaultMessage: string;
9
- description: string;
10
- id: string;
11
- };
12
- aiSuggestionNoticeBody: {
13
- defaultMessage: string;
14
- description: string;
15
- id: string;
16
- };
17
7
  };
18
8
  export default messages;
@@ -1,2 +1,2 @@
1
1
  import { MetadataInstanceFormHeaderProps } from './types';
2
- export declare const MetadataInstanceFormHeader: ({ areAiSuggestionsAvailable, hasSuggestions, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, isLoading, templateName, onAutofill, }: MetadataInstanceFormHeaderProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MetadataInstanceFormHeader: ({ areAiSuggestionsAvailable, hasSuggestions, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, isLargeFile, isLoading, templateName, onAutofill, }: MetadataInstanceFormHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,7 @@ export type MetadataInstanceFormHeaderProps = {
4
4
  hasSuggestions: boolean;
5
5
  isAiSuggestionsFeatureEnabled: boolean;
6
6
  isBetaLanguageEnabled: boolean;
7
+ isLargeFile: boolean;
7
8
  isLoading: boolean;
8
9
  onAutofill?: (templateKey: MetadataTemplateInstance['templateKey'], scope: MetadataTemplateInstance['scope']) => Promise<MetadataTemplateField[]>;
9
10
  templateName?: string;
@@ -0,0 +1,23 @@
1
+ declare const messages: {
2
+ autofillInBetaNoticeHeader: {
3
+ defaultMessage: string;
4
+ description: string;
5
+ id: string;
6
+ };
7
+ autofillInBetaNoticeBody: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
12
+ largeFileNoticeHeader: {
13
+ defaultMessage: string;
14
+ description: string;
15
+ id: string;
16
+ };
17
+ largeFileNoticeBody: {
18
+ defaultMessage: string;
19
+ description: string;
20
+ id: string;
21
+ };
22
+ };
23
+ export default messages;
@@ -0,0 +1,5 @@
1
+ export type MetadataInstanceFormInlineNoticeProps = {
2
+ isBetaLanguageEnabled: boolean;
3
+ isLargeFile: boolean;
4
+ };
5
+ export declare const MetadataInstanceFormInlineNotice: ({ isLargeFile, isBetaLanguageEnabled, }: MetadataInstanceFormInlineNoticeProps) => import("react/jsx-runtime").JSX.Element;