@box/metadata-editor 1.61.4 → 1.62.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/utils.js +39 -30
- package/dist/chunks/utils2.js +17 -19
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.js +62 -61
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.js +16 -0
- package/dist/esm/lib/components/metadata-editor-fields/components/low-confidence-badge/low-confidence-badge.js +16 -21
- package/dist/esm/lib/components/metadata-editor-fields/hooks/use-review-field-filter.js +41 -0
- package/dist/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +77 -68
- package/dist/esm/lib/components/metadata-editor-fields/metadata-editor-fields.js +31 -24
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +12 -11
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/utils.js +2 -2
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +40 -40
- package/dist/esm/lib/utils/confidence-score/get-confidence-score-tooltip.js +10 -18
- package/dist/esm/lib/utils/confidence-score/get-fields-needing-review.js +3 -2
- package/dist/esm/lib/utils/confidence-score/messages.js +5 -5
- package/dist/i18n/bn-IN.js +4 -0
- package/dist/i18n/da-DK.js +4 -0
- package/dist/i18n/de-DE.js +4 -0
- package/dist/i18n/en-AU.js +4 -0
- package/dist/i18n/en-CA.js +4 -0
- package/dist/i18n/en-GB.js +4 -0
- package/dist/i18n/en-US.js +7 -3
- package/dist/i18n/en-US.properties +13 -5
- package/dist/i18n/en-x-pseudo.js +4 -0
- package/dist/i18n/es-419.js +4 -0
- package/dist/i18n/es-ES.js +4 -0
- package/dist/i18n/fi-FI.js +4 -0
- package/dist/i18n/fr-CA.js +4 -0
- package/dist/i18n/fr-FR.js +4 -0
- package/dist/i18n/hi-IN.js +4 -0
- package/dist/i18n/it-IT.js +4 -0
- package/dist/i18n/ja-JP.js +4 -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/utils/confidence-score/messages.json +1 -1
- package/dist/i18n/ko-KR.js +4 -0
- package/dist/i18n/nb-NO.js +4 -0
- package/dist/i18n/nl-NL.js +4 -0
- package/dist/i18n/pl-PL.js +4 -0
- package/dist/i18n/pt-BR.js +4 -0
- package/dist/i18n/ru-RU.js +4 -0
- package/dist/i18n/sv-SE.js +4 -0
- package/dist/i18n/tr-TR.js +4 -0
- package/dist/i18n/zh-CN.js +4 -0
- package/dist/i18n/zh-TW.js +4 -0
- package/dist/types/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.d.ts +20 -0
- package/dist/types/lib/components/metadata-editor-fields/components/low-confidence-badge/low-confidence-badge.d.ts +1 -4
- package/dist/types/lib/components/metadata-editor-fields/hooks/use-review-field-filter.d.ts +7 -0
- package/dist/types/lib/components/metadata-editor-fields/types.d.ts +1 -0
- package/dist/types/lib/test-utils/confidence-score-fixtures.d.ts +4 -0
- package/dist/types/lib/utils/confidence-score/get-fields-needing-review.d.ts +4 -3
- package/package.json +10 -10
|
@@ -33,5 +33,9 @@ export declare const templateInstanceAcceptedLowConfidence: MetadataTemplateInst
|
|
|
33
33
|
export declare const templateInstancePartialReview: MetadataTemplateInstance;
|
|
34
34
|
/** Pending AI suggestion with low confidence — suggestion bar shown with "(Low confidence)" */
|
|
35
35
|
export declare const templateInstanceAiSuggestionWithLowConfidence: MetadataTemplateInstance;
|
|
36
|
+
/** Pending same-value AI suggestion with existing confidence score — field badge stays visible and accept upgrades score */
|
|
37
|
+
export declare const templateInstanceSameValueAiSuggestionWithConfidence: MetadataTemplateInstance;
|
|
38
|
+
/** Empty field with pending low-confidence AI suggestion — auto-applies, then shows HITL review bar */
|
|
39
|
+
export declare const templateInstanceAutoApplyWithLowConfidence: MetadataTemplateInstance;
|
|
36
40
|
/** Pending AI suggestion with high confidence — suggestion bar shown with "(High confidence)" */
|
|
37
41
|
export declare const templateInstanceAiSuggestionWithHighConfidence: MetadataTemplateInstance;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { MetadataTemplateField } from '../../types';
|
|
2
2
|
/**
|
|
3
|
-
* Returns fields that need review
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Returns fields that need review.
|
|
4
|
+
* - aiSuggestionConfidenceScore: only counts when the suggestion is still pending,
|
|
5
|
+
* since the score may linger after accept/dismiss due to data or timing issues.
|
|
6
|
+
* - confidenceScore: only Low/Medium that haven't been accepted need review.
|
|
6
7
|
*/
|
|
7
8
|
export declare function getFieldsNeedingReview(fields: MetadataTemplateField[]): MetadataTemplateField[];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/metadata-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.62.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@ariakit/react": "0.4.21",
|
|
6
|
-
"@box/blueprint-web": "^14.0
|
|
7
|
-
"@box/blueprint-web-assets": "^4.111.
|
|
8
|
-
"@box/box-ai-agent-selector": "^1.39.
|
|
9
|
-
"@box/combobox-with-api": "^1.42.
|
|
6
|
+
"@box/blueprint-web": "^14.1.0",
|
|
7
|
+
"@box/blueprint-web-assets": "^4.111.18",
|
|
8
|
+
"@box/box-ai-agent-selector": "^1.39.22",
|
|
9
|
+
"@box/combobox-with-api": "^1.42.23",
|
|
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.21",
|
|
18
|
-
"@box/babel-plugin-target-attributes": "1.5.
|
|
19
|
-
"@box/blueprint-web": "^14.0
|
|
20
|
-
"@box/blueprint-web-assets": "^4.111.
|
|
21
|
-
"@box/box-ai-agent-selector": "^1.39.
|
|
22
|
-
"@box/storybook-utils": "^0.17.
|
|
18
|
+
"@box/babel-plugin-target-attributes": "1.5.10",
|
|
19
|
+
"@box/blueprint-web": "^14.1.0",
|
|
20
|
+
"@box/blueprint-web-assets": "^4.111.18",
|
|
21
|
+
"@box/box-ai-agent-selector": "^1.39.22",
|
|
22
|
+
"@box/storybook-utils": "^0.17.18",
|
|
23
23
|
"@testing-library/react": "^15.0.6",
|
|
24
24
|
"react": "^18.3.0",
|
|
25
25
|
"react-dom": "^18.3.0",
|