@box/metadata-editor 1.53.15 → 1.54.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.
- package/dist/chunks/utils2.js +43 -38
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-logo-badge/ai-logo-badge.js +37 -0
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-logo-badge/index.js +4 -0
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.js +57 -56
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.js +4 -0
- package/dist/esm/lib/components/metadata-editor-fields/components/low-confidence-badge/index.js +4 -0
- package/dist/esm/lib/components/metadata-editor-fields/components/low-confidence-badge/low-confidence-badge.js +30 -0
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-date-field/metadata-date-field.js +37 -36
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-enum-field/metadata-enum-field.js +32 -31
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-float-field/metadata-float-field.js +32 -31
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-multi-select-field/metadata-multi-select-field.js +35 -34
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-string-field/metadata-string-field.js +26 -25
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/metadata-taxonomy-field.js +64 -63
- package/dist/esm/lib/components/metadata-editor-fields/messages.js +10 -0
- package/dist/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +89 -85
- package/dist/esm/lib/components/metadata-editor-fields/utils.js +7 -5
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js +90 -88
- package/dist/esm/lib/components/metadata-instance-review-notice/metadata-instance-review-notice.js +5 -5
- package/dist/esm/lib/utils/autofill-context.js +51 -47
- package/dist/esm/lib/utils/confidence-score/get-confidence-score-tooltip.js +18 -16
- package/dist/esm/lib/utils/confidence-score/messages.js +1 -1
- package/dist/i18n/bn-IN.js +2 -0
- package/dist/i18n/da-DK.js +2 -0
- package/dist/i18n/de-DE.js +2 -0
- package/dist/i18n/en-AU.js +2 -0
- package/dist/i18n/en-CA.js +2 -0
- package/dist/i18n/en-GB.js +2 -0
- package/dist/i18n/en-US.js +3 -1
- package/dist/i18n/en-US.properties +5 -1
- package/dist/i18n/en-x-pseudo.js +2 -0
- package/dist/i18n/es-419.js +2 -0
- package/dist/i18n/es-ES.js +2 -0
- package/dist/i18n/fi-FI.js +2 -0
- package/dist/i18n/fr-CA.js +2 -0
- package/dist/i18n/fr-FR.js +2 -0
- package/dist/i18n/hi-IN.js +2 -0
- package/dist/i18n/it-IT.js +2 -0
- package/dist/i18n/ja-JP.js +2 -0
- package/dist/i18n/json/src/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.json +1 -1
- package/dist/i18n/json/src/lib/components/metadata-editor-fields/messages.json +1 -0
- package/dist/i18n/json/src/lib/utils/confidence-score/messages.json +1 -1
- package/dist/i18n/ko-KR.js +2 -0
- package/dist/i18n/nb-NO.js +2 -0
- package/dist/i18n/nl-NL.js +2 -0
- package/dist/i18n/pl-PL.js +2 -0
- package/dist/i18n/pt-BR.js +2 -0
- package/dist/i18n/ru-RU.js +2 -0
- package/dist/i18n/sv-SE.js +2 -0
- package/dist/i18n/tr-TR.js +2 -0
- package/dist/i18n/zh-CN.js +2 -0
- package/dist/i18n/zh-TW.js +2 -0
- package/dist/types/lib/components/metadata-editor-fields/components/ai-logo-badge/ai-logo-badge.d.ts +5 -0
- package/dist/types/lib/components/metadata-editor-fields/components/ai-logo-badge/index.d.ts +1 -0
- package/dist/types/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.d.ts +1 -1
- package/dist/types/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.d.ts +5 -0
- package/dist/types/lib/components/metadata-editor-fields/components/ai-suggestion-field/types.d.ts +9 -1
- package/dist/types/lib/components/metadata-editor-fields/components/low-confidence-badge/index.d.ts +1 -0
- package/dist/types/lib/components/metadata-editor-fields/components/low-confidence-badge/low-confidence-badge.d.ts +4 -0
- package/dist/types/lib/components/metadata-editor-fields/messages.d.ts +8 -0
- package/dist/types/lib/components/metadata-editor-fields/types.d.ts +2 -1
- package/dist/types/lib/components/metadata-editor-fields/utils.d.ts +2 -1
- package/dist/types/lib/test-utils/confidence-score-fixtures.d.ts +37 -0
- package/dist/types/lib/test-utils/index.d.ts +1 -0
- package/dist/types/lib/test-utils/sample-data.d.ts +1 -3
- package/dist/types/lib/types.d.ts +1 -0
- package/dist/types/lib/utils/autofill-context.d.ts +2 -1
- package/package.json +9 -9
package/dist/i18n/fi-FI.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Hae malleja",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Lisää malli",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AI -ehdotus:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Vaihtoehdot",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Liitä",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Tyhjennä ja korvaa",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Hylkää",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "Poista \"{templateName}\"",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Poista metatietomalli",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Box AI:n tehon avulla voit nopeasti tallentaa asiakirjan metatiedot yhä suuremmalla tarkkuudella.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Täytä metatiedot automaattisesti Box AI:n avulla",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Lisää metatiedot tiedostoon tukemaan muun muassa liiketoimintoja ja työnkulkuja.",
|
package/dist/i18n/fr-CA.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Modèles de recherche",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Ajouter un modèle",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Suggestion Box AI :",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Options",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Ajouter",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Effacer et remplacer",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Ignorer",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "Supprimer « {templateName} »",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Supprimer le modèle de métadonnées",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Utilisez la puissance de Box AI pour capturer rapidement les métadonnées de vos documents avec toujours plus de précision.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Remplissez automatiquement vos métadonnées avec Box AI",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Ajoutez des métadonnées à votre fichier pour prendre en charge les opérations commerciales, les flux de travail, et plus encore",
|
package/dist/i18n/fr-FR.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Modèles de recherche",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Ajouter un modèle",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Suggestion Box AI :",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Options",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Ajouter",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Effacer et remplacer",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Ignorer",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "Supprimer « {templateName} »",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Supprimer le modèle de métadonnées",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Utilisez la puissance de Box AI pour capturer rapidement les métadonnées de vos documents avec toujours plus de précision.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Remplissez automatiquement vos métadonnées avec Box AI",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Ajoutez des métadonnées à votre fichier pour prendre en charge les opérations commerciales, les flux de travail, et plus encore",
|
package/dist/i18n/hi-IN.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "टेम्पलेट्स खोजें",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "टेम्पलेट जोड़ें",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AI सुझाव:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "विकल्प",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "शामिल करें",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "साफ करें और बदलें",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "खारिज करें",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "\"{templateName}\" हटाएं",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "मेटाडेटा टेम्पलेट हटाएं",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "दस्तावेज़ मेटाडेटा जल्दी से Capture करने के Box AI की शक्ति का प्रयोग करें जिसकी सटीकता हमेशा बढ़ती रहती है।",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Box AI की मदद से मेटाडेटा को ऑटोफिल करें",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Business ऑपरेशन, वर्कफ़्लो, इत्यादि को सहायता देने के लिए अपनी फ़ाइल में मेटाडेटा जोड़ें!",
|
package/dist/i18n/it-IT.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Cerca modelli",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Aggiungi modello",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Suggerimento Box AI:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Opzioni",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Accoda",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Cancella e sostituisci",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Chiudi",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "Elimina \"{templateName}\"",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Elimina modello metadati",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Usa la potenza di Box AI per acquisire rapidamente i metadati dei documenti, con una precisione sempre maggiore.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Riempimento automatico dei metadati con Box AI",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Aggiungi metadati al file per supportare le operazioni aziendali, i flussi di lavoro e altro ancora",
|
package/dist/i18n/ja-JP.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "テンプレートを検索",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "テンプレートを追加",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AIによる候補:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "オプション",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "追加する",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "クリアして置き換える",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "閉じる",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "「{templateName}」の削除",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "メタデータテンプレートを削除",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Box AIを活用して、ドキュメントのメタデータを高い精度ですばやく取得します。",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Box AIでメタデータを自動入力",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "ファイルにメタデータを追加して、ビジネスオペレーション、ワークフローなどをサポートします。",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"metadataEditor.aiSuggestionField.aiSuggestionCaption","description":"Label for value suggested by Box AI","defaultMessage":"Box AI suggestion:"},{"id":"metadataEditor.aiSuggestionField.sameValueAiSuggestionCaption","description":"Label informing that AI suggestion value is the same as already existing value","defaultMessage":"Box AI suggests the same value as above"},{"id":"metadataEditor.aiSuggestionField.aiSuggestionOptions","description":"Aria-label for AI suggestion options","defaultMessage":"Options"},{"id":"metadataEditor.aiSuggestionField.appendLabel","description":"Label for appending the AI suggestion","defaultMessage":"Append"},{"id":"metadataEditor.aiSuggestionField.clearAndReplaceLabel","description":"Label for clearing the current value and applying the AI suggestion","defaultMessage":"Clear and Replace"},{"id":"metadataEditor.aiSuggestionField.ignoreLabel","description":"Label for ignoring the AI suggestion","defaultMessage":"Ignore"},{"id":"metadataEditor.aiSuggestionField.dismissLabel","description":"Label for confirming the message informing that AI suggestion is the same as already applied value","defaultMessage":"Confirm"}]
|
|
1
|
+
[{"id":"metadataEditor.aiSuggestionField.aiSuggestionCaption","description":"Label for value suggested by Box AI","defaultMessage":"Box AI suggestion:"},{"id":"metadataEditor.aiSuggestionField.sameValueAiSuggestionCaption","description":"Label informing that AI suggestion value is the same as already existing value","defaultMessage":"Box AI suggests the same value as above"},{"id":"metadataEditor.aiSuggestionField.aiSuggestionOptions","description":"Aria-label for AI suggestion options","defaultMessage":"Options"},{"id":"metadataEditor.aiSuggestionField.appendLabel","description":"Label for appending the AI suggestion","defaultMessage":"Append"},{"id":"metadataEditor.aiSuggestionField.clearAndReplaceLabel","description":"Label for clearing the current value and applying the AI suggestion","defaultMessage":"Clear and Replace"},{"id":"metadataEditor.aiSuggestionField.ignoreLabel","description":"Label for ignoring the AI suggestion","defaultMessage":"Ignore"},{"id":"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel","description":"Label for value suggested by Box AI, including confidence level (e.g. \"low\")","defaultMessage":"Box AI suggestion ({level} confidence)"},{"id":"metadataEditor.aiSuggestionField.dismissLabel","description":"Label for confirming the message informing that AI suggestion is the same as already applied value","defaultMessage":"Confirm"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"metadataEditor.fieldLabel.lowConfidenceBadge","description":"Badge shown on field label indicating a low confidence AI extraction","defaultMessage":"Low"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"metadataEditor.confidenceScore.tooltipLowConfidence","description":"Tooltip message shown when Box AI extraction has low confidence score. {score} is the formatted percentage (e.g., \"35%\")","defaultMessage":"Box AI returned low confidence ({score}) level for this extraction. Review the value."},{"id":"metadataEditor.confidenceScore.tooltipReviewedAndAccepted","description":"Tooltip message shown when a low confidence extraction has been reviewed and accepted by user","defaultMessage":"
|
|
1
|
+
[{"id":"metadataEditor.confidenceScore.tooltipLowConfidence","description":"Tooltip message shown when Box AI extraction has low confidence score. {score} is the formatted percentage (e.g., \"35%\")","defaultMessage":"Box AI returned low confidence ({score}) level for this extraction. Review the value."},{"id":"metadataEditor.confidenceScore.tooltipReviewedAndAccepted","description":"Tooltip message shown when a low confidence extraction has been reviewed and accepted by user","defaultMessage":"Box AI returned low confidence ({score}) level for this extraction but it was accepted by a human."},{"id":"metadataEditor.confidenceScore.tooltipHighConfidence","description":"Tooltip message shown when Box AI extraction has high confidence score. {score} is the formatted percentage (e.g., \"95%\")","defaultMessage":"Box AI returned high confidence ({score}) level for this extraction."}]
|
package/dist/i18n/ko-KR.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "검색 템플릿",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "템플릿 추가",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AI 제안:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "옵션",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "추가",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "지우기 및 바꾸기",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "해제",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "\"{templateName}\" 삭제",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "메타데이터 템플릿 삭제",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Box AI의 기능을 사용하여 정확도가 지속적으로 높아지는 동시에 문서 메타데이터를 빠르게 캡처합니다.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Box AI를 사용한 자동 입력 메타데이터",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "파일에 메타데이터를 추가하여 비즈니스 작업, 워크플로 등을 지원합니다!",
|
package/dist/i18n/nb-NO.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Søk etter maler",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Legg til mal",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AI-forslag:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Alternativer",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Tilføy",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Tøm og erstatt",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Lukk",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "Slette «{templateName}»",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Slett metadatamalen",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Bruk kraften fra Box AI til å raskt hente dokumentmetadata, med stadig økende nøyaktighet.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Automatisk fylling av metadata med Box AI",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Legg til Metadata til filen for å støtte bedriftstransaksjoner, arbeidsflyter, med mer!",
|
package/dist/i18n/nl-NL.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Sjablonen zoeken",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Sjabloon toevoegen",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AI-suggestie:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Opties",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Toevoegen",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Wissen en vervangen",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Sluiten",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "‘{templateName}’ verwijderen",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Metagegevens-sjabloon verwijderen",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Gebruik de kracht van Box AI om snel metagegevens van documenten vast te leggen, met een steeds grotere nauwkeurigheid.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Metagegevens automatisch invullen met Box AI",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Voeg metagegevens toe aan uw bestand om bedrijfsactiviteiten, workflows en meer te ondersteunen.",
|
package/dist/i18n/pl-PL.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Szablony wyszukiwania",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Dodaj szablon",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Sugestia Box AI:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Opcje",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Dołącz",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Wyczyść i zamień",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Zamknij",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "Usuń „{templateName}”",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Usuń szablon metadanych",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Użyj mocy Box AI, aby szybko przechwytywać metadane dokumentów z coraz większą dokładnością.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Automatyczne wypełnianie metadanych za pomocą Box AI",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Dodaj metadane do swojego pliku, aby wspierać operacje biznesowe, przepływy pracy i nie tylko!",
|
package/dist/i18n/pt-BR.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Modelos de pesquisa",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Adicionar modelo",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Sugestão do Box AI:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Opções",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Acrescentar",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Limpar e substituir",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Descartar",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "Excluir \"{templateName}\"",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Excluir modelo de metadados",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Use o poder do Box AI para capturar rapidamente os metadados do documento, com precisão cada vez maior.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Preencha automaticamente metadados com o Box AI",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Adicione metadados ao seu arquivo para auxiliar às operações de negócios, fluxos de trabalho e muito mais!",
|
package/dist/i18n/ru-RU.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Шаблоны для поиска",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Добавить шаблон",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Предложение ИИ Box:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Параметры",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Добавить",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Очистить и заменить",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Закрыть",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "Удалить „{templateName}“",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Удалить шаблон метаданных",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Используйте возможности ИИ Box для быстрого извлечения метаданных документа с постоянно растущей точностью.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Заполняйте метаданные с помощью ИИ Box",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Добавьте метаданные в файл для поддержки бизнес-операций, рабочих процессов и многого другого.",
|
package/dist/i18n/sv-SE.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Sökmallar",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Lägg till mall",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AI-förslag:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Alternativ",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Lägg till",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Rensa och ersätt",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Avfärda",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "Radera \"{templateName}\"",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Radera metadatamall",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Använd styrkan i Box AI för att snabbt fånga metadata om dokument, med ständigt ökande noggrannhet.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Autofyll metadata med Box AI",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "Lägg till metadata i din fil för att stödja affärsverksamhet, arbetsflöden och mer!",
|
package/dist/i18n/tr-TR.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "Şablonları ara",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "Şablon ekle",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AI önerisi:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "Seçenekler",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "Ekle",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "Temizle ve Değiştir",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "Kapat",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "\"{templateName}\" öğesini sil",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "Meta Veri Şablonunu Sil",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "Belge meta verilerini sürekli artan isabetle hızlı bir şekilde yakalamak için Box AI'ın gücünü kullanın.",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "Box AI ile Meta Verileri otomatik olarak doldurun",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "İş operasyonlarını, iş akışlarını ve daha fazlasını desteklemek için dosyanıza meta veriler ekleyin!",
|
package/dist/i18n/zh-CN.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "搜索模板",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "添加模板",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AI 建议:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "选项",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "追加",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "清除和替换",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "取消",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "删除 “{templateName}”",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "删除元数据模版",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "利用 Box AI 的强大功能,快速获取文档元数据,同时有不断提高的准确性。",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "使用 Box AI 自动填充元数据",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "将元数据添加到您的文件,以支持业务运营、工作流等更多功能!",
|
package/dist/i18n/zh-TW.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
"metadataEditor.addMetadataTemplate.search.placeholder": "搜尋範本",
|
|
49
49
|
"metadataEditor.addMetadataTemplate.trigger.label": "新增範本",
|
|
50
50
|
"metadataEditor.aiSuggestionField.aiSuggestionCaption": "Box AI 建議:",
|
|
51
|
+
"metadataEditor.aiSuggestionField.aiSuggestionCaptionWithLevel": "Box AI suggestion ({level} confidence)",
|
|
51
52
|
"metadataEditor.aiSuggestionField.aiSuggestionOptions": "選項",
|
|
52
53
|
"metadataEditor.aiSuggestionField.appendLabel": "附加",
|
|
53
54
|
"metadataEditor.aiSuggestionField.clearAndReplaceLabel": "清除並取代",
|
|
@@ -74,6 +75,7 @@ export default {
|
|
|
74
75
|
"metadataEditor.editInstance.deleteConfirmationModal.dismissButton": "關閉",
|
|
75
76
|
"metadataEditor.editInstance.deleteConfirmationModal.header": "刪除「{templateName}」",
|
|
76
77
|
"metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel": "刪除中繼資料範本",
|
|
78
|
+
"metadataEditor.fieldLabel.lowConfidenceBadge": "Low",
|
|
77
79
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.body": "使用 Box AI 的能力快速捕獲文件中繼資料,準確度不斷提高。",
|
|
78
80
|
"metadataEditor.fileLevel.emptyState.boxAiEnabled.heading": "使用 Box AI 自動填充中繼資料",
|
|
79
81
|
"metadataEditor.fileLevel.emptyState.default.body": "新增中繼資料至您的檔案,以支援業務運營、工作流程等更多!",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AiLogoBadge } from './ai-logo-badge';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AiSuggestionFieldProps } from './types';
|
|
2
|
-
export declare function AiSuggestionField({ aiSuggestion, onAiSuggestionAppend, onAiSuggestionReplace, onAiSuggestionIgnore, type, isSameValue, }: AiSuggestionFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function AiSuggestionField({ aiSuggestion, onAiSuggestionAppend, onAiSuggestionReplace, onAiSuggestionIgnore, type, isSameValue, confidenceLevel, }: AiSuggestionFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,6 +29,11 @@ declare const _default: {
|
|
|
29
29
|
description: string;
|
|
30
30
|
id: string;
|
|
31
31
|
};
|
|
32
|
+
aiSuggestionCaptionWithLevel: {
|
|
33
|
+
defaultMessage: string;
|
|
34
|
+
description: string;
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
32
37
|
aiSuggestionConfirm: {
|
|
33
38
|
defaultMessage: string;
|
|
34
39
|
description: string;
|
package/dist/types/lib/components/metadata-editor-fields/components/ai-suggestion-field/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MetadataFieldValue, MetadataTemplateFieldType } from '../../../../types';
|
|
1
|
+
import { ConfidenceLevel, MetadataFieldValue, MetadataTemplateFieldType } from '../../../../types';
|
|
2
2
|
export interface AiSuggestionFieldProps {
|
|
3
3
|
/**
|
|
4
4
|
* Represents the AI suggestion to be displayed or processed.
|
|
@@ -22,5 +22,13 @@ export interface AiSuggestionFieldProps {
|
|
|
22
22
|
* Type of the metadata field to display the suggestion for.
|
|
23
23
|
*/
|
|
24
24
|
type: MetadataTemplateFieldType;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the current value is the same as the AI suggestion.
|
|
27
|
+
*/
|
|
25
28
|
isSameValue: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Optional confidence level from Box AI extraction.
|
|
31
|
+
* When provided, displayed alongside the caption (e.g. "low confidence").
|
|
32
|
+
*/
|
|
33
|
+
confidenceLevel?: ConfidenceLevel;
|
|
26
34
|
}
|
package/dist/types/lib/components/metadata-editor-fields/components/low-confidence-badge/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LowConfidenceBadge } from './low-confidence-badge';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Level } from '@box/combobox-with-api';
|
|
2
|
-
import { MetadataTemplateField, MetadataTemplateFieldOption } from '../../types';
|
|
2
|
+
import { ConfidenceScoreData, MetadataTemplateField, MetadataTemplateFieldOption } from '../../types';
|
|
3
3
|
import { TaxonomyOptionsFetcher } from './components/metadata-taxonomy-field/types';
|
|
4
4
|
export type TemplateInstanceProps = {
|
|
5
5
|
disableForm: boolean;
|
|
@@ -13,6 +13,7 @@ export type MetadataFieldProps = {
|
|
|
13
13
|
description?: string | null;
|
|
14
14
|
label: string;
|
|
15
15
|
isAiSuggestionApplied: boolean;
|
|
16
|
+
confidenceScore?: ConfidenceScoreData;
|
|
16
17
|
fieldNamePrefix: string;
|
|
17
18
|
updateModePrefix?: string;
|
|
18
19
|
disableForm: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Labelable, TextProps } from '@box/blueprint-web';
|
|
2
|
-
|
|
2
|
+
import { ConfidenceScoreData } from '../../types';
|
|
3
|
+
export declare const getFieldLabel: (fieldName: string, fieldDescription: string | undefined, isAiSuggestionApplied?: boolean, as?: TextProps["as"], confidenceScore?: ConfidenceScoreData) => Labelable["label"];
|
|
3
4
|
export declare const tryParseDateSuggestion: (suggestedDate: string) => string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ConfidenceScoreData, MetadataTemplateField, MetadataTemplateInstance } from '../types';
|
|
2
|
+
export declare const lowConfidenceScore: ConfidenceScoreData;
|
|
3
|
+
export declare const mediumConfidenceScore: ConfidenceScoreData;
|
|
4
|
+
export declare const highConfidenceScore: ConfidenceScoreData;
|
|
5
|
+
export declare const acceptedLowConfidenceScore: ConfidenceScoreData;
|
|
6
|
+
export declare const acceptedMediumConfidenceScore: ConfidenceScoreData;
|
|
7
|
+
export declare function createFieldWithConfidenceScore(baseField: MetadataTemplateField, confidenceScore: ConfidenceScoreData, overrides?: Partial<MetadataTemplateField>): MetadataTemplateField;
|
|
8
|
+
export declare const stringFieldWithLowConfidence: MetadataTemplateField;
|
|
9
|
+
export declare const stringFieldWithHighConfidence: MetadataTemplateField;
|
|
10
|
+
export declare const stringFieldWithAcceptedLowConfidence: MetadataTemplateField;
|
|
11
|
+
export declare const enumFieldWithLowConfidence: MetadataTemplateField;
|
|
12
|
+
export declare const enumFieldWithHighConfidence: MetadataTemplateField;
|
|
13
|
+
export declare const enumFieldWithAcceptedLowConfidence: MetadataTemplateField;
|
|
14
|
+
export declare const floatFieldWithLowConfidence: MetadataTemplateField;
|
|
15
|
+
export declare const floatFieldWithHighConfidence: MetadataTemplateField;
|
|
16
|
+
/** 3 low-confidence fields + 2 without scores — 3 fields need review */
|
|
17
|
+
export declare const templateInstanceWithFieldsNeedingReview: MetadataTemplateInstance;
|
|
18
|
+
/** All high-confidence fields — no review needed */
|
|
19
|
+
export declare const templateInstanceWithHighConfidenceScores: MetadataTemplateInstance;
|
|
20
|
+
/** Alias for templateInstanceWithFieldsNeedingReview */
|
|
21
|
+
export declare const templateInstanceMixedConfidence: MetadataTemplateInstance;
|
|
22
|
+
/** Single low-confidence field for focused accept/clear testing */
|
|
23
|
+
export declare const templateInstanceSingleLowConfidence: MetadataTemplateInstance;
|
|
24
|
+
/** Single medium-confidence field — treated as LOW for review (shows LOW badge, review bar) */
|
|
25
|
+
export declare const templateInstanceSingleMediumConfidence: MetadataTemplateInstance;
|
|
26
|
+
/** All high-confidence fields with AI Applied state — shows AI badge, no review notice */
|
|
27
|
+
export declare const templateInstanceAllHighConfidence: MetadataTemplateInstance;
|
|
28
|
+
/** Background autofill: confidenceScore set, aiSuggestionState Initial — badge via confidenceScore branch only */
|
|
29
|
+
export declare const templateInstanceBackgroundAutofill: MetadataTemplateInstance;
|
|
30
|
+
/** All low-confidence fields already accepted — shows AI logo, no review notice */
|
|
31
|
+
export declare const templateInstanceAcceptedLowConfidence: MetadataTemplateInstance;
|
|
32
|
+
/** Mix of accepted low, unaccepted low, and high — 1 field needs review */
|
|
33
|
+
export declare const templateInstancePartialReview: MetadataTemplateInstance;
|
|
34
|
+
/** Pending AI suggestion with low confidence — suggestion bar shown with "(Low confidence)" */
|
|
35
|
+
export declare const templateInstanceAiSuggestionWithLowConfidence: MetadataTemplateInstance;
|
|
36
|
+
/** Pending AI suggestion with high confidence — suggestion bar shown with "(High confidence)" */
|
|
37
|
+
export declare const templateInstanceAiSuggestionWithHighConfidence: MetadataTemplateInstance;
|
|
@@ -55,8 +55,6 @@ declare const hiddenTemplateInstance: MetadataTemplateInstance;
|
|
|
55
55
|
declare const shortTemplateInstance: MetadataTemplateInstance;
|
|
56
56
|
declare const longFieldNameTemplateInstance: MetadataTemplateInstance;
|
|
57
57
|
declare const longFieldNameTemplateInstanceWithAiSuggestions: MetadataTemplateInstance;
|
|
58
|
-
declare const templateInstanceWithFieldsNeedingReview: MetadataTemplateInstance;
|
|
59
|
-
declare const templateInstanceWithHighConfidenceScores: MetadataTemplateInstance;
|
|
60
58
|
declare const templateInstancesList: MetadataTemplateInstance[];
|
|
61
59
|
declare const allFieldsWithAiSuggestions: MetadataTemplateField[];
|
|
62
60
|
declare const allFieldsSuggestions: AutofillSuggestions;
|
|
@@ -66,4 +64,4 @@ declare const firstTemplateInstanceFieldsWithSuggestions: MetadataTemplateField[
|
|
|
66
64
|
declare const secondTemplateInstance: MetadataTemplate;
|
|
67
65
|
declare const secondTemplateSuggestions: AutofillSuggestions;
|
|
68
66
|
declare const secondTemplateInstanceFieldsWithSuggestions: MetadataTemplateField[];
|
|
69
|
-
export { allFieldsSuggestions, allFieldsTemplate, allFieldsTemplateInstance, allFieldsTemplateInstanceAiSuggestions, allFieldsTemplateInstanceWithoutTaxonomies, allFieldsWithAiSuggestions, customTemplate, customTemplateInstance, customTemplateInstanceWithAllFieldsEmpty, customTemplateInstanceWithoutEditPermissions, customTemplateInstanceWithoutEmptyValues, dateField, dateSuggestionTemplateInstance, emptyCustomTemplateInstance, emptyTemplateInstance, enumField, fields, firstTemplateInstance, firstTemplateInstanceFieldsWithSuggestions, firstTemplateSuggestions, floatField, floatInstanceField, hiddenField, hiddenTemplate, hiddenTemplateInstance, longFieldNameEnumField, longFieldNameEnumFieldWithDescription, longFieldNameEnumFieldWithDescriptionAndValue, longFieldNameEnumFieldWithValue, longFieldNameStringField, longFieldNameStringFieldWithDescription, longFieldNameStringFieldWithDescriptionAndValue, longFieldNameStringFieldWithValue, longFieldNameTemplateInstance, longFieldNameTemplateInstanceWithAiSuggestions, multiSelectField, noFieldsTemplate, nonHiddenFieldsTemplate, nonHiddenFieldsTemplateWithUpdateMode, nonHiddenFieldsWithValuesTemplate, noValueField, onlyRequiredPropsTemplateInstance, secondTemplateInstance, secondTemplateInstanceFieldsWithSuggestions, secondTemplateSuggestions, shortTemplateInstance, stringField, taxonomyLevels, taxonomyMultiSelectMultiLevelField, taxonomyMultiSelectSingleLevelField, taxonomyMultiSelectSingleLevelFieldWithValue, taxonomySingleSelectMultiLevelField, taxonomySingleSelectSingleLevelField, taxonomySingleSelectSingleLevelFieldWithValue, templateInstancesList, templateInstanceWithAllFieldsEmpty,
|
|
67
|
+
export { allFieldsSuggestions, allFieldsTemplate, allFieldsTemplateInstance, allFieldsTemplateInstanceAiSuggestions, allFieldsTemplateInstanceWithoutTaxonomies, allFieldsWithAiSuggestions, customTemplate, customTemplateInstance, customTemplateInstanceWithAllFieldsEmpty, customTemplateInstanceWithoutEditPermissions, customTemplateInstanceWithoutEmptyValues, dateField, dateSuggestionTemplateInstance, emptyCustomTemplateInstance, emptyTemplateInstance, enumField, fields, firstTemplateInstance, firstTemplateInstanceFieldsWithSuggestions, firstTemplateSuggestions, floatField, floatInstanceField, hiddenField, hiddenTemplate, hiddenTemplateInstance, longFieldNameEnumField, longFieldNameEnumFieldWithDescription, longFieldNameEnumFieldWithDescriptionAndValue, longFieldNameEnumFieldWithValue, longFieldNameStringField, longFieldNameStringFieldWithDescription, longFieldNameStringFieldWithDescriptionAndValue, longFieldNameStringFieldWithValue, longFieldNameTemplateInstance, longFieldNameTemplateInstanceWithAiSuggestions, multiSelectField, noFieldsTemplate, nonHiddenFieldsTemplate, nonHiddenFieldsTemplateWithUpdateMode, nonHiddenFieldsWithValuesTemplate, noValueField, onlyRequiredPropsTemplateInstance, secondTemplateInstance, secondTemplateInstanceFieldsWithSuggestions, secondTemplateSuggestions, shortTemplateInstance, stringField, taxonomyLevels, taxonomyMultiSelectMultiLevelField, taxonomyMultiSelectSingleLevelField, taxonomyMultiSelectSingleLevelFieldWithValue, taxonomySingleSelectMultiLevelField, taxonomySingleSelectSingleLevelField, taxonomySingleSelectSingleLevelFieldWithValue, templateInstancesList, templateInstanceWithAllFieldsEmpty, templateInstanceWithoutEditPermissions, templateInstanceWithoutEmptyValues, templateInstanceWithSomeFieldsEmpty, templateOptions, templates, };
|
|
@@ -62,6 +62,7 @@ export type MetadataTemplateField = {
|
|
|
62
62
|
aiSuggestion?: MetadataFieldValue;
|
|
63
63
|
aiSuggestionState?: AiSuggestionState;
|
|
64
64
|
confidenceScore?: ConfidenceScoreData;
|
|
65
|
+
aiSuggestionConfidenceScore?: ConfidenceScoreData;
|
|
65
66
|
displayName?: string;
|
|
66
67
|
hidden: boolean;
|
|
67
68
|
id?: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AutofillSuggestions, MetadataTemplateField, MetadataTemplateInstance } from '../types';
|
|
2
|
+
import { AutofillSuggestions, ConfidenceScoreData, MetadataTemplateField, MetadataTemplateInstance } from '../types';
|
|
3
3
|
export interface AutofillContextType {
|
|
4
4
|
clearState: () => void;
|
|
5
5
|
getAiSuggestions: (templateKey: MetadataTemplateInstance['templateKey'], scope: MetadataTemplateInstance['scope'], agentId?: string) => Promise<MetadataTemplateField[]>;
|
|
6
6
|
isAiSuggestionsFeatureEnabled: boolean;
|
|
7
7
|
isFetchingSuggestions: boolean;
|
|
8
8
|
isLongLoading: boolean;
|
|
9
|
+
confidenceScores: Record<string, Record<string, ConfidenceScoreData>>;
|
|
9
10
|
suggestions: AutofillSuggestions;
|
|
10
11
|
}
|
|
11
12
|
export interface AutofillContextProviderProps {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/metadata-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@ariakit/react": "0.4.15",
|
|
6
|
-
"@box/box-ai-agent-selector": "^1.38.
|
|
7
|
-
"@box/blueprint-web": "^13.
|
|
8
|
-
"@box/blueprint-web-assets": "^4.
|
|
9
|
-
"@box/combobox-with-api": "^1.41.
|
|
6
|
+
"@box/box-ai-agent-selector": "^1.38.30",
|
|
7
|
+
"@box/blueprint-web": "^13.8.1",
|
|
8
|
+
"@box/blueprint-web-assets": "^4.109.0",
|
|
9
|
+
"@box/combobox-with-api": "^1.41.31",
|
|
10
10
|
"formik": "^2.0.3",
|
|
11
11
|
"lodash": "^4.17.15",
|
|
12
12
|
"react": "^17.0.0 || ^18.0.0",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@ariakit/react": "0.4.15",
|
|
18
|
-
"@box/box-ai-agent-selector": "^1.38.
|
|
18
|
+
"@box/box-ai-agent-selector": "^1.38.30",
|
|
19
19
|
"@box/babel-plugin-target-attributes": "1.5.7",
|
|
20
|
-
"@box/blueprint-web": "^13.
|
|
21
|
-
"@box/blueprint-web-assets": "^4.
|
|
22
|
-
"@box/storybook-utils": "^0.16.
|
|
20
|
+
"@box/blueprint-web": "^13.8.1",
|
|
21
|
+
"@box/blueprint-web-assets": "^4.109.0",
|
|
22
|
+
"@box/storybook-utils": "^0.16.80",
|
|
23
23
|
"@testing-library/react": "^15.0.6",
|
|
24
24
|
"react": "^18.3.0",
|
|
25
25
|
"react-dom": "^18.3.0",
|