@box/metadata-editor 1.33.0 → 1.34.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/types.js +5 -2
- package/dist/esm/index.js +38 -37
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/metadata-taxonomy-field.js +49 -48
- package/dist/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +38 -35
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +92 -90
- package/dist/esm/lib/components/metadata-instance-list/metadata-instance-list.js +13 -11
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.js +27 -25
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.js +11 -9
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-entry-display.js +9 -7
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.js +19 -17
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-value.js +21 -19
- package/dist/esm/lib/utils/confidence-score/format-confidence-score-percent.js +6 -0
- package/dist/esm/lib/utils/confidence-score/get-confidence-score-tooltip.js +25 -0
- package/dist/esm/lib/utils/confidence-score/get-fields-needing-review.js +7 -0
- package/dist/esm/lib/utils/confidence-score/messages.js +18 -0
- package/dist/i18n/bn-IN.js +3 -0
- package/dist/i18n/da-DK.js +3 -0
- package/dist/i18n/de-DE.js +3 -0
- package/dist/i18n/en-AU.js +3 -0
- package/dist/i18n/en-CA.js +3 -0
- package/dist/i18n/en-GB.js +3 -0
- package/dist/i18n/en-US.js +3 -0
- package/dist/i18n/en-US.properties +6 -0
- package/dist/i18n/en-x-pseudo.js +3 -0
- package/dist/i18n/es-419.js +3 -0
- package/dist/i18n/es-ES.js +3 -0
- package/dist/i18n/fi-FI.js +3 -0
- package/dist/i18n/fr-CA.js +3 -0
- package/dist/i18n/fr-FR.js +3 -0
- package/dist/i18n/hi-IN.js +3 -0
- package/dist/i18n/it-IT.js +3 -0
- package/dist/i18n/ja-JP.js +3 -0
- package/dist/i18n/json/src/lib/utils/confidence-score/messages.json +1 -0
- package/dist/i18n/ko-KR.js +3 -0
- package/dist/i18n/nb-NO.js +3 -0
- package/dist/i18n/nl-NL.js +3 -0
- package/dist/i18n/pl-PL.js +3 -0
- package/dist/i18n/pt-BR.js +3 -0
- package/dist/i18n/ru-RU.js +3 -0
- package/dist/i18n/sv-SE.js +3 -0
- package/dist/i18n/tr-TR.js +3 -0
- package/dist/i18n/zh-CN.js +3 -0
- package/dist/i18n/zh-TW.js +3 -0
- package/dist/types/lib/components/metadata-editor-fields/types.d.ts +2 -0
- package/dist/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +2 -0
- package/dist/types/lib/components/metadata-instance-list/metadata-instance-list.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/types.d.ts +1 -0
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/types.d.ts +1 -0
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-entry-display.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-value.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/types.d.ts +3 -0
- package/dist/types/lib/components/metadata-instance-list/types.d.ts +1 -0
- package/dist/types/lib/types.d.ts +16 -0
- package/dist/types/lib/utils/confidence-score/format-confidence-score-percent.d.ts +13 -0
- package/dist/types/lib/utils/confidence-score/get-confidence-score-tooltip.d.ts +10 -0
- package/dist/types/lib/utils/confidence-score/get-fields-needing-review.d.ts +7 -0
- package/dist/types/lib/utils/confidence-score/messages.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +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":"Confidence score ({score}) has been reviewed and accepted by the user."},{"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
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "Box AI로 자동 완성하기(고급형)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "Box AI로 자동 완성하기",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "Box AI로 자동 완성하기(표준형)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "메타데이터 인스턴스 삭제 확인",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "\"{templateName}\" 메타데이터 템플릿 및 이 파일에서 모든 값을 삭제하시겠습니까?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "\"{templateName}\" 메타데이터 인스턴스 및 해당 값을 삭제하시겠습니까?",
|
package/dist/i18n/nb-NO.js
CHANGED
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "Automatisk utfylling med Box AI (forbedret)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "Automatisk utfylling med Box AI",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "Automatisk utfylling med Box AI (standard)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "Bekreft sletting av metadataforekomst",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "Er du sikker på at du vil slette metadatamalen «{templateName}», og alle verdiene i den fra denne filen?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "Er du sikker på at du vil slette metadataforekomsten «{templateName}» og tilhørende verdier?",
|
package/dist/i18n/nl-NL.js
CHANGED
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "Automatisch invullen met Box AI (Verbeterd)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "Automatisch invullen met Box AI",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "Automatisch invullen met Box AI (Standaard)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "Bevestig het verwijderen van de metadata-instantie",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "Weet u zeker dat u het metagegevenssjabloon ‘{templateName}’ en al zijn waarden uit dit bestand wilt verwijderen?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "Weet u zeker dat u de metagegevensinstantie en de waarden voor {templateName} wilt verwijderen?",
|
package/dist/i18n/pl-PL.js
CHANGED
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "Autouzupełnianie za pomocą Box AI (ulepszone)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "Autouzupełnianie za pomocą Box AI",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "Autouzupełnianie za pomocą Box AI (standard)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "Potwierdź usunięcie instancji metadanych",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "Czy na pewno chcesz usunąć szablon metadanych „{templateName}” i wszystkie jego wartości z tego pliku?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "Czy na pewno chcesz usuwać instancję metadanych „{templateName}” i jej wartości?",
|
package/dist/i18n/pt-BR.js
CHANGED
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "Preenchimento automático com o Box AI (aprimorado)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "Preenchimento automático com o Box AI",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "Preenchimento automático com o Box AI (padrão)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "Confirmar exclusão da instância de metadados",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "Tem certeza de que deseja excluir o modelo de metadados \"{templateName}\" e todos os seus valores deste arquivo?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "Você tem certeza de que deseja excluir a instância de metadados \"{templateName}\" e seus valores?",
|
package/dist/i18n/ru-RU.js
CHANGED
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "Автозаполнение с Box AI (улучшенное)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "Автозаполнение с Box AI",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "Автозаполнение с Box AI (стандартное)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "Подтвердите удаление экземпляра метаданных",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "Удалить шаблон метаданных „{templateName}“ и все его значения из этого файла?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "Действительно удалить экземпляр метаданных «{templateName}» и его значения?",
|
package/dist/i18n/sv-SE.js
CHANGED
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "Autofyll med Box AI (Förbättrad)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "Autofyll med Box AI",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "Autofyll med Box AI (Standard)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "Bekräfta radering av metadatainstans",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "Är du säker på att du vill radera metadatamallen \"{templateName}\" och alla dess värden från den här filen?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "Är du säker på att du vill radera metadatainstansen \"{templateName}\" och dess värden?",
|
package/dist/i18n/tr-TR.js
CHANGED
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "Box AI ile otomatik doldurma (Geliştirilmiş)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "Box AI ile otomatik doldurma",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "Box AI ile otomatik doldurma (Standart)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "Metadata örneğinin silinmesini onaylayın",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "\"{templateName}\" Meta Veri şablonunu ve tüm değerlerini bu dosyadan silmek istediğinizden emin misiniz?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "“{templateName}” Metadata örneğini ve değerlerini silmek istediğinizden emin misiniz?",
|
package/dist/i18n/zh-CN.js
CHANGED
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "使用 Box AI 自动填充(增强型)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "使用 Box AI 自动填充",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "使用 Box AI 自动填充(标准)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "确认删除元数据实例",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "是否确定要删除 “{templateName}” 元数据模板及其此文件中的所有值?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "是否确定要删除“{templateName}”元数据实例及其值?",
|
package/dist/i18n/zh-TW.js
CHANGED
|
@@ -51,6 +51,9 @@ export default {
|
|
|
51
51
|
"metadataEditor.autofillButton.tooltip.enhanced": "使用 Box AI 自動填充 (增強)",
|
|
52
52
|
"metadataEditor.autofillButton.tooltip.ga": "使用 Box AI 自動填充",
|
|
53
53
|
"metadataEditor.autofillButton.tooltip.standard": "使用 Box AI 自動填充 (標準)",
|
|
54
|
+
"metadataEditor.confidenceScore.tooltipHighConfidence": "Box AI returned high confidence ({score}) level for this extraction.",
|
|
55
|
+
"metadataEditor.confidenceScore.tooltipLowConfidence": "Box AI returned low confidence ({score}) level for this extraction. Review the value.",
|
|
56
|
+
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Confidence score ({score}) has been reviewed and accepted by the user.",
|
|
54
57
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "確認刪除中繼資料執行個體",
|
|
55
58
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "確定要刪除「{templateName}」中繼資料範本,以及此檔案中的所有值?",
|
|
56
59
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "是否確定要刪除「{templateName}」中繼資料執行個體及其值?",
|
|
@@ -5,6 +5,7 @@ export type TemplateInstanceProps = {
|
|
|
5
5
|
disableForm: boolean;
|
|
6
6
|
portalElement?: HTMLElement;
|
|
7
7
|
taxonomyOptionsFetcher: TaxonomyOptionsFetcher;
|
|
8
|
+
isExternallyOwned?: boolean;
|
|
8
9
|
isMultilevelTaxonomyFieldEnabled: boolean;
|
|
9
10
|
};
|
|
10
11
|
export type MetadataFieldProps = {
|
|
@@ -20,6 +21,7 @@ export type MetadataFieldProps = {
|
|
|
20
21
|
className?: string;
|
|
21
22
|
levels?: Level[];
|
|
22
23
|
onValueEdited: () => void;
|
|
24
|
+
isExternallyOwned?: boolean;
|
|
23
25
|
isMultilevelTaxonomyFieldEnabled: boolean;
|
|
24
26
|
};
|
|
25
27
|
export type MetadataEditorFieldWrapperProps = TemplateInstanceProps & {
|
|
@@ -11,6 +11,8 @@ export type MetadataInstanceFormProps = {
|
|
|
11
11
|
isDeleteButtonDisabled: boolean;
|
|
12
12
|
isDeleteConfirmationModalCheckboxEnabled: boolean;
|
|
13
13
|
isLargeFile: boolean;
|
|
14
|
+
/** When true, the form is disabled for cross-enterprise metadata taxonomy fields */
|
|
15
|
+
isExternallyOwned?: boolean;
|
|
14
16
|
/** When true enables the multilevel taxonomy filed component with tree selection */
|
|
15
17
|
isMultilevelTaxonomyFieldEnabled: boolean;
|
|
16
18
|
isUnsavedChangesModalOpen: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MetadataInstanceListProps } from './types';
|
|
2
|
-
export declare const MetadataInstanceList: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstances, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled, isConfidenceScoreReviewEnabled, }: MetadataInstanceListProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const MetadataInstanceList: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstances, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled, isConfidenceScoreReviewEnabled, isExternallyOwned, }: MetadataInstanceListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MetadataInstanceProps } from './types';
|
|
2
|
-
export declare const MetadataInstance: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstance, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled, }: MetadataInstanceProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const MetadataInstance: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstance, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled, isExternallyOwned, }: MetadataInstanceProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MetadataInstanceContentProps } from './types';
|
|
2
|
-
export declare const MetadataInstanceContent: ({ shouldHideEmptyValues, templateInstance, taxonomyNodeFetcher, }: MetadataInstanceContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const MetadataInstanceContent: ({ shouldHideEmptyValues, templateInstance, taxonomyNodeFetcher, isExternallyOwned, }: MetadataInstanceContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MetadataTemplateInstance } from '../../../../types';
|
|
2
2
|
import { TaxonomyNodeFetcher } from '../metadata-instance-entry/types';
|
|
3
3
|
export type MetadataInstanceContentProps = {
|
|
4
|
+
isExternallyOwned?: boolean;
|
|
4
5
|
shouldHideEmptyValues: boolean;
|
|
5
6
|
templateInstance: MetadataTemplateInstance;
|
|
6
7
|
taxonomyNodeFetcher: TaxonomyNodeFetcher;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MetadataEntryDisplayProps } from './types';
|
|
2
|
-
export declare const MetadataEntryDisplay: ({ type, formattedValue, value, taxonomyNodeFetcher, taxonomyKey, scope, }: MetadataEntryDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const MetadataEntryDisplay: ({ type, formattedValue, value, taxonomyNodeFetcher, taxonomyKey, scope, isExternallyOwned, }: MetadataEntryDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MetadataInstanceEntryProps } from './types';
|
|
2
|
-
export declare const MetadataInstanceEntry: ({ description, name, shouldHideEmptyValues, type, value, taxonomyNodeFetcher, taxonomyKey, scope, }: MetadataInstanceEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const MetadataInstanceEntry: ({ description, name, shouldHideEmptyValues, type, value, taxonomyNodeFetcher, taxonomyKey, scope, isExternallyOwned, }: MetadataInstanceEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TaxonomyValueProps } from '../types';
|
|
2
|
-
export declare const TaxonomyValue: ({ value, taxonomyNodeFetcher, taxonomyKey, scope }: TaxonomyValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TaxonomyValue: ({ value, taxonomyNodeFetcher, taxonomyKey, scope, isExternallyOwned, }: TaxonomyValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,7 @@ export type TaxonomyValueProps = {
|
|
|
13
13
|
taxonomyKey: string;
|
|
14
14
|
taxonomyNodeFetcher: TaxonomyNodeFetcher;
|
|
15
15
|
value?: MetadataFieldValue;
|
|
16
|
+
isExternallyOwned?: boolean;
|
|
16
17
|
};
|
|
17
18
|
export type TaxonomyAncestorStatusPillProps = {
|
|
18
19
|
displayValue: string;
|
|
@@ -30,6 +31,7 @@ export type MetadataInstanceEntryProps = {
|
|
|
30
31
|
taxonomyKey: string;
|
|
31
32
|
taxonomyNodeFetcher: TaxonomyNodeFetcher;
|
|
32
33
|
description?: string;
|
|
34
|
+
isExternallyOwned?: boolean;
|
|
33
35
|
};
|
|
34
36
|
export type MetadataEntryDisplayProps = {
|
|
35
37
|
formattedValue: ReactNode;
|
|
@@ -38,4 +40,5 @@ export type MetadataEntryDisplayProps = {
|
|
|
38
40
|
scope: string;
|
|
39
41
|
taxonomyKey: string;
|
|
40
42
|
taxonomyNodeFetcher: TaxonomyNodeFetcher;
|
|
43
|
+
isExternallyOwned?: boolean;
|
|
41
44
|
};
|
|
@@ -6,6 +6,7 @@ export type MetadataInstanceListProps = {
|
|
|
6
6
|
isBetaLanguageEnabled: boolean;
|
|
7
7
|
isAdvancedExtractAgentEnabled?: boolean;
|
|
8
8
|
isConfidenceScoreReviewEnabled?: boolean;
|
|
9
|
+
isExternallyOwned?: boolean;
|
|
9
10
|
onEdit: (templateInstacne: MetadataTemplateInstance) => void;
|
|
10
11
|
templateInstances: MetadataTemplateInstance[];
|
|
11
12
|
taxonomyNodeFetcher: TaxonomyNodeFetcher;
|
|
@@ -44,10 +44,22 @@ export declare enum AiSuggestionState {
|
|
|
44
44
|
Pending = "PENDING",
|
|
45
45
|
Applied = "APPLIED"
|
|
46
46
|
}
|
|
47
|
+
export declare enum ConfidenceScoreStatus {
|
|
48
|
+
ReviewIsNeeded = "review_is_needed",
|
|
49
|
+
ReviewedAndAccepted = "reviewed_and_accepted",
|
|
50
|
+
ReviewIsNotNeeded = "review_is_not_needed"
|
|
51
|
+
}
|
|
52
|
+
export type ConfidenceScoreData = {
|
|
53
|
+
/** Confidence value from 0-1 (e.g., 0.95 = 95%) */
|
|
54
|
+
value: number;
|
|
55
|
+
/** Pre-computed status based on value vs threshold */
|
|
56
|
+
status: ConfidenceScoreStatus;
|
|
57
|
+
};
|
|
47
58
|
export type MetadataTemplateField = {
|
|
48
59
|
description?: string;
|
|
49
60
|
aiSuggestion?: MetadataFieldValue;
|
|
50
61
|
aiSuggestionState?: AiSuggestionState;
|
|
62
|
+
confidenceScore?: ConfidenceScoreData;
|
|
51
63
|
displayName?: string;
|
|
52
64
|
hidden: boolean;
|
|
53
65
|
id?: string;
|
|
@@ -58,6 +70,8 @@ export type MetadataTemplateField = {
|
|
|
58
70
|
taxonomyKey?: string;
|
|
59
71
|
taxonomyId?: string;
|
|
60
72
|
levels?: Level[];
|
|
73
|
+
/** Todo: format is unknown for now, TBD */
|
|
74
|
+
targetLocation?: Record<string, unknown>;
|
|
61
75
|
type: MetadataTemplateFieldType;
|
|
62
76
|
updateMode?: MetadataUpdateMode;
|
|
63
77
|
value?: MetadataFormFieldValue;
|
|
@@ -70,6 +84,7 @@ export type MetadataTemplate = {
|
|
|
70
84
|
displayName?: string;
|
|
71
85
|
hidden: boolean;
|
|
72
86
|
copyInstanceOnItemCopy?: boolean;
|
|
87
|
+
confidenceScoreThreshold?: number;
|
|
73
88
|
fields: MetadataTemplateField[];
|
|
74
89
|
};
|
|
75
90
|
export type MetadataTemplateOption = {
|
|
@@ -81,6 +96,7 @@ export type MetadataTemplateOption = {
|
|
|
81
96
|
export type MetadataFieldValue = string | number | Array<string> | null | BaseOptionType[];
|
|
82
97
|
export type MetadataTemplateInstance = {
|
|
83
98
|
canEdit: boolean;
|
|
99
|
+
confidenceScoreThreshold?: number;
|
|
84
100
|
displayName?: string;
|
|
85
101
|
hidden?: boolean;
|
|
86
102
|
id: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a confidence score value (0-1) as a percentage string.
|
|
3
|
+
* Uses Math.floor() to be conservative - never inflates confidence artificially.
|
|
4
|
+
* This prevents UX confusion when score is just below threshold (e.g., 89.9% shows as 89%, not 90%)
|
|
5
|
+
*
|
|
6
|
+
* @param value - Confidence score from 0 to 1 (e.g., 0.95)
|
|
7
|
+
* @returns Formatted percentage string (e.g., "95%")
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* formatConfidenceScorePercent(0.899) // "89%" (not "90%")
|
|
11
|
+
* formatConfidenceScorePercent(0.95) // "95%"
|
|
12
|
+
*/
|
|
13
|
+
export declare function formatConfidenceScorePercent(value: number): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IntlShape } from 'react-intl';
|
|
2
|
+
import { ConfidenceScoreStatus } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Returns appropriate tooltip text based on confidence score status
|
|
5
|
+
* @param formatMessage - IntlShape formatMessage function
|
|
6
|
+
* @param status - Confidence score status
|
|
7
|
+
* @param scoreValue - Confidence score value (0-1)
|
|
8
|
+
* @returns Tooltip text for the field, or null if status is unknown
|
|
9
|
+
*/
|
|
10
|
+
export declare function getConfidenceScoreTooltip(formatMessage: IntlShape['formatMessage'], status: ConfidenceScoreStatus, scoreValue: number): string | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MetadataTemplateField } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns fields that need review (confidence score below threshold)
|
|
4
|
+
* @param fields - Array of metadata template fields
|
|
5
|
+
* @returns Array of visible fields with status 'review_is_needed'
|
|
6
|
+
*/
|
|
7
|
+
export declare function getFieldsNeedingReview(fields: MetadataTemplateField[]): MetadataTemplateField[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const messages: {
|
|
2
|
+
tooltipLowConfidence: {
|
|
3
|
+
defaultMessage: string;
|
|
4
|
+
description: string;
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
tooltipReviewedAndAccepted: {
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
description: string;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
tooltipHighConfidence: {
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
description: string;
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default messages;
|