@box/metadata-editor 2.3.10 → 2.3.11
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import messages from"../esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/messages.js";import{useIntl}from"react-intl";import{jsx}from"react/jsx-runtime";import{TextButton}from"@box/blueprint-web";import '../styles/metadata-instance-footer.css';var metadata_instance_footer_module_default={metadataInstanceFooter:`
|
|
1
|
+
import messages from"../esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/messages.js";import{useIntl}from"react-intl";import{jsx}from"react/jsx-runtime";import{TextButton}from"@box/blueprint-web";import '../styles/metadata-instance-footer.css';var metadata_instance_footer_module_default={metadataInstanceFooter:`_metadataInstanceFooter_wyn6t_1`,button:`_button_wyn6t_5`},MetadataInstanceFooter=({isAnyEmptyValueHidden,onHideEmptyValues,onShowEmptyValues})=>{let{formatMessage}=useIntl();return jsx(`div`,{className:metadata_instance_footer_module_default.metadataInstanceFooter,children:isAnyEmptyValueHidden?jsx(TextButton,{className:metadata_instance_footer_module_default.button,color:`textOnLightSecondary`,onClick:onShowEmptyValues,variant:`bodyDefault`,"data-target-id":`TextButton-showEmptyValuesCTA`,children:formatMessage(messages.showEmptyValuesCTA)}):jsx(TextButton,{className:metadata_instance_footer_module_default.button,color:`textOnLightSecondary`,onClick:onHideEmptyValues,variant:`bodyDefault`,"data-target-id":`TextButton-hideEmptyValuesCTA`,children:formatMessage(messages.hideEmptyValuesCTA)})})};export{MetadataInstanceFooter as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import messages from"../esm/lib/messages.js";import{useMemo}from"react";import{useIntl}from"react-intl";import{jsx,jsxs}from"react/jsx-runtime";import{Text}from"@box/blueprint-web";import{bpTextTextOnLightSecondary}from"@box/blueprint-web-assets/tokens/tokens";import{InfoBadge}from"@box/blueprint-web-assets/icons/Line";import '../styles/metadata-instance-form-ai-disclaimer.css';var metadata_instance_form_ai_disclaimer_module_default={aiDisclaimer:`_aiDisclaimer_6i2mf_1`,infoBadgeIcon:`_infoBadgeIcon_6i2mf_7`},checkHasAutofillValue=fields=>fields.some(field=>!!field.confidenceScore||!!field.isExtracted),MetadataInstanceFormAiDisclaimer=({fields,isLoading,isBoundingBoxOrConfidenceScoreReviewEnabled})=>{let intl=useIntl(),hasAutofillValue=useMemo(()=>checkHasAutofillValue(fields),[fields]);return!isBoundingBoxOrConfidenceScoreReviewEnabled||!hasAutofillValue||isLoading?null:jsxs(`div`,{className:metadata_instance_form_ai_disclaimer_module_default.aiDisclaimer,children:[jsx(InfoBadge,{className:metadata_instance_form_ai_disclaimer_module_default.infoBadgeIcon,
|
|
1
|
+
import messages from"../esm/lib/messages.js";import{useMemo}from"react";import{useIntl}from"react-intl";import{jsx,jsxs}from"react/jsx-runtime";import{Text}from"@box/blueprint-web";import{bpSize030,bpTextTextOnLightSecondary}from"@box/blueprint-web-assets/tokens/tokens";import{InfoBadge}from"@box/blueprint-web-assets/icons/Line";import '../styles/metadata-instance-form-ai-disclaimer.css';var metadata_instance_form_ai_disclaimer_module_default={aiDisclaimer:`_aiDisclaimer_6i2mf_1`,infoBadgeIcon:`_infoBadgeIcon_6i2mf_7`},checkHasAutofillValue=fields=>fields.some(field=>!!field.confidenceScore||!!field.isExtracted),MetadataInstanceFormAiDisclaimer=({fields,isLoading,isBoundingBoxOrConfidenceScoreReviewEnabled})=>{let intl=useIntl(),hasAutofillValue=useMemo(()=>checkHasAutofillValue(fields),[fields]);return!isBoundingBoxOrConfidenceScoreReviewEnabled||!hasAutofillValue||isLoading?null:jsxs(`div`,{className:metadata_instance_form_ai_disclaimer_module_default.aiDisclaimer,children:[jsx(InfoBadge,{className:metadata_instance_form_ai_disclaimer_module_default.infoBadgeIcon,color:bpTextTextOnLightSecondary,height:bpSize030,width:bpSize030}),jsx(Text,{as:`p`,color:`textOnLightSecondary`,variant:`bodySmall`,children:intl.formatMessage(messages.aiDisclaimer)})]})};export{MetadataInstanceFormAiDisclaimer as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._metadataInstanceFooter_wyn6t_1{justify-content:flex-end;display:flex}._metadataInstanceFooter_wyn6t_1 ._button_wyn6t_5{width:100%;margin-top:var(--bp-space-040)}._metadataInstanceFooter_wyn6t_1 ._button_wyn6t_5:hover{color:var(--bp-text-text-on-light-secondary-hover)}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/metadata-editor",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@ariakit/react": "0.4.21",
|
|
6
6
|
"@box/blueprint-web": "^16.13.1",
|
|
7
7
|
"@box/blueprint-web-assets": "^5.5.10",
|
|
8
8
|
"@box/box-ai-agent-selector": "^2.1.36",
|
|
9
9
|
"@box/combobox-with-api": "^2.1.37",
|
|
10
|
-
"@box/metadata-taxonomy-picker": "^3.1.
|
|
10
|
+
"@box/metadata-taxonomy-picker": "^3.1.38",
|
|
11
11
|
"@box/metadata-template-browser": "^2.1.35",
|
|
12
12
|
"formik": "^2.0.3",
|
|
13
13
|
"lodash": "^4.17.15",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@box/blueprint-web": "^16.13.1",
|
|
22
22
|
"@box/blueprint-web-assets": "^5.5.10",
|
|
23
23
|
"@box/box-ai-agent-selector": "^2.1.36",
|
|
24
|
-
"@box/metadata-taxonomy-picker": "^3.1.
|
|
24
|
+
"@box/metadata-taxonomy-picker": "^3.1.38",
|
|
25
25
|
"@box/storybook-utils": "^1.1.34",
|
|
26
26
|
"@testing-library/react": "^15.0.6",
|
|
27
27
|
"react": "^18.3.0",
|