@box/metadata-editor 2.9.2 → 2.10.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.
- package/README.md +17 -1
- package/dist/chunks/delete-confirmation-modal.js +1 -1
- package/dist/esm/lib/components/metadata-empty-state/messages.js +1 -1
- package/dist/esm/lib/components/metadata-empty-state/metadata-empty-state.js +1 -1
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.js +1 -1
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +1 -1
- package/dist/i18n/bn-IN.js +2 -0
- package/dist/i18n/da-DK.js +1 -0
- package/dist/i18n/de-DE.js +1 -0
- package/dist/i18n/es-419.js +1 -0
- package/dist/i18n/es-ES.js +1 -0
- package/dist/i18n/fi-FI.js +1 -0
- package/dist/i18n/fr-CA.js +1 -0
- package/dist/i18n/fr-FR.js +1 -0
- package/dist/i18n/hi-IN.js +4 -1
- package/dist/i18n/it-IT.js +1 -0
- package/dist/i18n/ja-JP.js +1 -0
- package/dist/i18n/ko-KR.js +1 -0
- package/dist/i18n/nb-NO.js +1 -0
- package/dist/i18n/nl-NL.js +1 -0
- package/dist/i18n/pl-PL.js +1 -0
- package/dist/i18n/pt-BR.js +1 -0
- package/dist/i18n/ru-RU.js +1 -0
- package/dist/i18n/sv-SE.js +1 -0
- package/dist/i18n/tr-TR.js +1 -0
- package/dist/i18n/zh-CN.js +1 -0
- package/dist/i18n/zh-TW.js +1 -0
- package/dist/types/lib/components/metadata-empty-state/messages.d.ts +10 -0
- package/dist/types/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.d.ts +5 -0
- package/dist/types/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/types.d.ts +3 -0
- package/dist/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +7 -1
- package/dist/types/lib/types.d.ts +7 -1
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- [Running commands](#running-commands)
|
|
6
6
|
- [Available commands](#available-commands)
|
|
7
7
|
- [Ownership](#ownership)
|
|
8
|
+
- [Item type](#item-type)
|
|
8
9
|
- [Translations](#translations)
|
|
9
10
|
|
|
10
11
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
@@ -45,10 +46,25 @@ All commands used with Nx can be found in `project.json` file within your packag
|
|
|
45
46
|
|
|
46
47
|
## Ownership
|
|
47
48
|
|
|
48
|
-
Code of the feature belongs to @Box/role_metadata. Responsibilities of owning team include control over code quality, providing guidelines for changes, and alignment with other teams regarding changes.
|
|
49
|
+
Code of the feature belongs to @Box/role_metadata. Responsibilities of owning team include control over code quality, providing guidelines for changes, and alignment with other teams regarding changes.
|
|
49
50
|
|
|
50
51
|
If you have any questions or needs related to this feature, please reach out to the Metadata team on Slack: [#eng-metadata-team](https://grid-box.enterprise.slack.com/archives/C16HCR4QG)
|
|
51
52
|
|
|
53
|
+
## Item type
|
|
54
|
+
|
|
55
|
+
`itemType` selects item-specific copy only; it does not gate any feature. Autofill, confidence score review, and bounding boxes are controlled solely by their own flags. Those features are supported for files only, so folder hosts should leave their flags off.
|
|
56
|
+
|
|
57
|
+
`MetadataInstanceForm` accepts an optional `itemType` of `'file' | 'folder'`. It defaults to `'file'` and is passed through to `DeleteConfirmationModal`. `MetadataInstanceList` does not take `itemType`.
|
|
58
|
+
|
|
59
|
+
Folder empty-state copy is a separate prop. Pass `level="folder"` on `MetadataEmptyState` together with `itemType="folder"` on the form, so the delete modal and the empty state describe the same item.
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
import { MetadataEmptyState, MetadataInstanceForm } from '@box/metadata-editor';
|
|
63
|
+
|
|
64
|
+
<MetadataInstanceForm itemType="folder" {...formProps} />
|
|
65
|
+
<MetadataEmptyState level="folder" />
|
|
66
|
+
```
|
|
67
|
+
|
|
52
68
|
## Translations
|
|
53
69
|
|
|
54
70
|
Per-locale `i18n/*.js` files are generated and committed by the Moji Jenkins pipeline. The shared-feature builder copies them into `dist/i18n/` during `build`. Consuming applications list this package in `i18n.config.js` under `translationDependencies`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import messages from"../esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.js";import{useState}from"react";import{FormattedMessage,useIntl}from"react-intl";import{jsx,jsxs}from"react/jsx-runtime";import{Checkbox,Modal,Text,TextInput}from"@box/blueprint-web";import '../styles/delete-confirmation-modal.css';var delete_confirmation_modal_module_default={modalBody:`_modalBody_1wc7x_1`},DeleteConfirmationModal=({onConfirm,templateName,onDismiss,open,isCheckboxEnabled})=>{let intl=useIntl(),[inputValue,setInputValue]=useState(``),[isChecked,setIsChecked]=useState(!1),handleOpenChange=openState=>{openState||(onDismiss(),setInputValue(``),setIsChecked(!1))},formattedTemplateName=templateName||intl.formatMessage(messages.deleteConfirmationModalCustomMetadata),isInputValueValid=inputValue===formattedTemplateName,handleCheckboxChange=()=>{setIsChecked(!isChecked)},handleConfirm=()=>{onConfirm(),handleOpenChange(!1)};return jsx(Modal,{onOpenChange:handleOpenChange,open,children:jsxs(Modal.Content,{onEscapeKeyDown:e=>e.stopPropagation(),size:`small`,children:[jsx(Modal.Header,{"aria-label":intl.formatMessage(messages.deleteConfirmationModalHeaderAriaLabel),children:jsx(FormattedMessage,{...messages.deleteConfirmationModalHeader,values:{templateName:formattedTemplateName}})}),jsx(Modal.ScrollableContainer,{children:jsxs(Modal.Body,{className:delete_confirmation_modal_module_default.modalBody,children:[jsx(Text,{as:`p`,children:isCheckboxEnabled?jsx(FormattedMessage,{...messages.deleteConfirmationModalBodyFirstParagraphCheckboxVersion,values:{templateName:formattedTemplateName}}):jsx(FormattedMessage,{...
|
|
1
|
+
import messages from"../esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.js";import{useState}from"react";import{FormattedMessage,useIntl}from"react-intl";import{jsx,jsxs}from"react/jsx-runtime";import{Checkbox,Modal,Text,TextInput}from"@box/blueprint-web";import '../styles/delete-confirmation-modal.css';var delete_confirmation_modal_module_default={modalBody:`_modalBody_1wc7x_1`},getDeleteConfirmationBodyMessage=itemType=>itemType===`folder`?messages.deleteConfirmationModalBodyFirstParagraphFolder:messages.deleteConfirmationModalBodyFirstParagraph,DeleteConfirmationModal=({onConfirm,templateName,onDismiss,open,isCheckboxEnabled,itemType=`file`})=>{let intl=useIntl(),[inputValue,setInputValue]=useState(``),[isChecked,setIsChecked]=useState(!1),handleOpenChange=openState=>{openState||(onDismiss(),setInputValue(``),setIsChecked(!1))},formattedTemplateName=templateName||intl.formatMessage(messages.deleteConfirmationModalCustomMetadata),isInputValueValid=inputValue===formattedTemplateName,handleCheckboxChange=()=>{setIsChecked(!isChecked)},handleConfirm=()=>{onConfirm(),handleOpenChange(!1)};return jsx(Modal,{onOpenChange:handleOpenChange,open,children:jsxs(Modal.Content,{onEscapeKeyDown:e=>e.stopPropagation(),size:`small`,children:[jsx(Modal.Header,{"aria-label":intl.formatMessage(messages.deleteConfirmationModalHeaderAriaLabel),children:jsx(FormattedMessage,{...messages.deleteConfirmationModalHeader,values:{templateName:formattedTemplateName}})}),jsx(Modal.ScrollableContainer,{children:jsxs(Modal.Body,{className:delete_confirmation_modal_module_default.modalBody,children:[jsx(Text,{as:`p`,children:isCheckboxEnabled?jsx(FormattedMessage,{...messages.deleteConfirmationModalBodyFirstParagraphCheckboxVersion,values:{templateName:formattedTemplateName}}):jsx(FormattedMessage,{...getDeleteConfirmationBodyMessage(itemType),values:{templateName:formattedTemplateName}})}),!isCheckboxEnabled&&jsx(Text,{as:`p`,children:jsx(FormattedMessage,{...messages.deleteConfirmationModalBodySecondParagraph})}),isCheckboxEnabled?jsx(Checkbox.Item,{checked:isChecked,"data-resin-target":`checkbox`,label:intl.formatMessage(messages.deleteConfirmationModalBodyCheckboxLabel),onCheckedChange:handleCheckboxChange,value:`overageCheckbox`}):jsx(TextInput,{label:intl.formatMessage(messages.deleteConfirmationModalBodyInputFieldLabel),onChange:event=>setInputValue(event.target.value),placeholder:formattedTemplateName,required:!0,value:inputValue})]})}),jsxs(Modal.Footer,{children:[jsx(Modal.Footer.SecondaryButton,{onClick:()=>handleOpenChange(!1),size:`large`,"data-target-id":`Modal.Footer.SecondaryButton-deleteConfirmationModalCancelButton`,children:intl.formatMessage(messages.deleteConfirmationModalCancelButton)}),jsx(Modal.Footer.PrimaryButton,{disabled:isCheckboxEnabled?!isChecked:!isInputValueValid,onClick:handleConfirm,size:`large`,children:intl.formatMessage(isCheckboxEnabled?messages.deleteConfirmationModalConfirmButtonCheckboxVersion:messages.deleteConfirmationModalConfirmButton)})]}),jsx(Modal.Close,{"aria-label":intl.formatMessage(messages.deleteConfirmationModalDismissButton)})]})})};export{DeleteConfirmationModal as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineMessages}from"react-intl";var messages=defineMessages({managerLevelEmptyStateHeading:{id:`metadataEditor.managerLevel.emptyState.heading`,defaultMessage:`Apply Metadata Templates`},managerLevelEmptyStateBody:{id:`metadataEditor.managerLevel.emptyState.body`,defaultMessage:`Browse or search for your items to apply and edit metadata`},fileLevelEmptyStateBoxAiEnabledHeading:{id:`metadataEditor.fileLevel.emptyState.boxAiEnabled.heading`,defaultMessage:`Autofill Metadata with Box AI`},fileLevelEmptyStateBoxAiEnabledBody:{id:`metadataEditor.fileLevel.emptyState.boxAiEnabled.body`,defaultMessage:`Use the power of Box AI to quickly capture document metadata, with ever-increasing accuracy.`},fileLevelEmptyStateDefaultHeading:{id:`metadataEditor.fileLevel.emptyState.default.heading`,defaultMessage:`Add Metadata Templates`},fileLevelEmptyStateDefaultBody:{id:`metadataEditor.fileLevel.emptyState.default.body`,defaultMessage:`Add Metadata to your file to support business operations, workflows, and more!`},instanceLevelEmptyStateHeading:{id:`metadataEditor.instanceLevel.emptyState.heading`,defaultMessage:`This template has no values`},instanceLevelEmptyStateHeadingNoAttributes:{id:`metadataEditor.instanceLevel.emptyState.noAttributes.heading`,defaultMessage:`This template has no attributes`},instanceLevelEmptyStateNoEmptyValuesBody:{id:`metadataEditor.instanceLevel.emptyState.noEmptyValues.body`,defaultMessage:`This template has no values`},instanceLevelSeeEmptyValuesCTA:{id:`metadataEditor.instanceLevel.emptyState.emptyValues.Cta`,defaultMessage:`See empty values`}});export{messages as default};
|
|
1
|
+
import{defineMessages}from"react-intl";var messages=defineMessages({managerLevelEmptyStateHeading:{id:`metadataEditor.managerLevel.emptyState.heading`,defaultMessage:`Apply Metadata Templates`},managerLevelEmptyStateBody:{id:`metadataEditor.managerLevel.emptyState.body`,defaultMessage:`Browse or search for your items to apply and edit metadata`},fileLevelEmptyStateBoxAiEnabledHeading:{id:`metadataEditor.fileLevel.emptyState.boxAiEnabled.heading`,defaultMessage:`Autofill Metadata with Box AI`},fileLevelEmptyStateBoxAiEnabledBody:{id:`metadataEditor.fileLevel.emptyState.boxAiEnabled.body`,defaultMessage:`Use the power of Box AI to quickly capture document metadata, with ever-increasing accuracy.`},fileLevelEmptyStateDefaultHeading:{id:`metadataEditor.fileLevel.emptyState.default.heading`,defaultMessage:`Add Metadata Templates`},fileLevelEmptyStateDefaultBody:{id:`metadataEditor.fileLevel.emptyState.default.body`,defaultMessage:`Add Metadata to your file to support business operations, workflows, and more!`},folderLevelEmptyStateDefaultHeading:{id:`metadataEditor.folderLevel.emptyState.default.heading`,defaultMessage:`Add Metadata Templates`},folderLevelEmptyStateDefaultBody:{id:`metadataEditor.folderLevel.emptyState.default.body`,defaultMessage:`Add Metadata to your folder to support business operations, workflows, and more!`},instanceLevelEmptyStateHeading:{id:`metadataEditor.instanceLevel.emptyState.heading`,defaultMessage:`This template has no values`},instanceLevelEmptyStateHeadingNoAttributes:{id:`metadataEditor.instanceLevel.emptyState.noAttributes.heading`,defaultMessage:`This template has no attributes`},instanceLevelEmptyStateNoEmptyValuesBody:{id:`metadataEditor.instanceLevel.emptyState.noEmptyValues.body`,defaultMessage:`This template has no values`},instanceLevelSeeEmptyValuesCTA:{id:`metadataEditor.instanceLevel.emptyState.emptyValues.Cta`,defaultMessage:`See empty values`}});export{messages as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import messages from"./messages.js";import{useCallback}from"react";import{useIntl}from"react-intl";import{jsx}from"react/jsx-runtime";import{EmptyState,Text}from"@box/blueprint-web";import{JobAnalyzeData}from"@box/blueprint-web-assets/illustrations/Small";function MetadataEmptyState({isAnyEmptyValueHidden=!1,isBoxAiSuggestionsFeatureEnabled=!1,level,onShowEmptyValues}){let intl=useIntl(),getBody=useCallback(()=>level===`manager`?jsx(Text,{as:`p`,children:intl.formatMessage(messages.managerLevelEmptyStateBody)}):level===`instance`?isAnyEmptyValueHidden?jsx(EmptyState.PrimaryAction,{onClick:onShowEmptyValues,children:intl.formatMessage(messages.instanceLevelSeeEmptyValuesCTA)}):jsx(Text,{as:`h1`,variant:`titleSmall`,children:intl.formatMessage(messages.instanceLevelEmptyStateHeadingNoAttributes)}):jsx(Text,{as:`p`,children:intl.formatMessage(messages.fileLevelEmptyStateDefaultBody)}),[intl,isAnyEmptyValueHidden,level,onShowEmptyValues]),getHeading=useCallback(()=>level===`manager`?jsx(Text,{as:`h2`,children:intl.formatMessage(messages.managerLevelEmptyStateHeading)}):level===`instance`?isAnyEmptyValueHidden?jsx(Text,{as:`h2`,children:intl.formatMessage(messages.instanceLevelEmptyStateHeading)}):null:jsx(Text,{as:`h2`,children:intl.formatMessage(messages.fileLevelEmptyStateDefaultHeading)}),[intl,isAnyEmptyValueHidden,level]);return jsx(EmptyState,{body:getBody(),heading:getHeading(),illustration:JobAnalyzeData,size:`small`})}export{MetadataEmptyState,MetadataEmptyState as default};
|
|
1
|
+
import messages from"./messages.js";import{useCallback}from"react";import{useIntl}from"react-intl";import{jsx}from"react/jsx-runtime";import{EmptyState,Text}from"@box/blueprint-web";import{JobAnalyzeData}from"@box/blueprint-web-assets/illustrations/Small";function MetadataEmptyState({isAnyEmptyValueHidden=!1,isBoxAiSuggestionsFeatureEnabled=!1,level,onShowEmptyValues}){let intl=useIntl(),getBody=useCallback(()=>level===`manager`?jsx(Text,{as:`p`,children:intl.formatMessage(messages.managerLevelEmptyStateBody)}):level===`instance`?isAnyEmptyValueHidden?jsx(EmptyState.PrimaryAction,{onClick:onShowEmptyValues,children:intl.formatMessage(messages.instanceLevelSeeEmptyValuesCTA)}):jsx(Text,{as:`h1`,variant:`titleSmall`,children:intl.formatMessage(messages.instanceLevelEmptyStateHeadingNoAttributes)}):jsx(Text,{as:`p`,children:level===`folder`?intl.formatMessage(messages.folderLevelEmptyStateDefaultBody):intl.formatMessage(messages.fileLevelEmptyStateDefaultBody)}),[intl,isAnyEmptyValueHidden,level,onShowEmptyValues]),getHeading=useCallback(()=>level===`manager`?jsx(Text,{as:`h2`,children:intl.formatMessage(messages.managerLevelEmptyStateHeading)}):level===`instance`?isAnyEmptyValueHidden?jsx(Text,{as:`h2`,children:intl.formatMessage(messages.instanceLevelEmptyStateHeading)}):null:jsx(Text,{as:`h2`,children:level===`folder`?intl.formatMessage(messages.folderLevelEmptyStateDefaultHeading):intl.formatMessage(messages.fileLevelEmptyStateDefaultHeading)}),[intl,isAnyEmptyValueHidden,level]);return jsx(EmptyState,{body:getBody(),heading:getHeading(),illustration:JobAnalyzeData,size:`small`})}export{MetadataEmptyState,MetadataEmptyState as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineMessages}from"react-intl";var messages=defineMessages({deleteConfirmationModalCustomMetadata:{id:`metadataEditor.editInstance.deleteConfirmationModal.customMedatata`,defaultMessage:`Custom Metadata`},deleteConfirmationModalHeader:{id:`metadataEditor.editInstance.deleteConfirmationModal.header`,defaultMessage:`Delete "{templateName}"`},deleteConfirmationModalHeaderAriaLabel:{id:`metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel`,defaultMessage:`Delete Metadata Template`},deleteConfirmationModalBodyFirstParagraph:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph`,defaultMessage:`Are you sure you want to delete the "{templateName}" Metadata template, and all of its values from this file?`},deleteConfirmationModalBodyFirstParagraphCheckboxVersion:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion`,defaultMessage:`Are you sure you want to delete the "{templateName}" Metadata instance, and its values?`},deleteConfirmationModalBodySecondParagraph:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.secondParagraph`,defaultMessage:`Once deleted, Metadata values cannot be restored.`},deleteConfirmationModalBodyInputFieldLabel:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel`,defaultMessage:`Type the Metadata Template’s name to confirm deletion`},deleteConfirmationModalBodyCheckboxLabel:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel`,defaultMessage:`Confirm deletion of Metadata instance`},deleteConfirmationModalCancelButton:{id:`metadataEditor.editInstance.deleteConfirmationModal.cancelButton`,defaultMessage:`Cancel`},deleteConfirmationModalConfirmButton:{id:`metadataEditor.editInstance.deleteConfirmationModal.confirmButton`,defaultMessage:`Confirm`},deleteConfirmationModalConfirmButtonCheckboxVersion:{id:`metadataEditor.editInstance.deleteConfirmationModal.confirmButtonCheckboxVersion`,defaultMessage:`Delete`},deleteConfirmationModalDismissButton:{id:`metadataEditor.editInstance.deleteConfirmationModal.dismissButton`,defaultMessage:`Dismiss`}});export{messages as default};
|
|
1
|
+
import{defineMessages}from"react-intl";var messages=defineMessages({deleteConfirmationModalCustomMetadata:{id:`metadataEditor.editInstance.deleteConfirmationModal.customMedatata`,defaultMessage:`Custom Metadata`},deleteConfirmationModalHeader:{id:`metadataEditor.editInstance.deleteConfirmationModal.header`,defaultMessage:`Delete "{templateName}"`},deleteConfirmationModalHeaderAriaLabel:{id:`metadataEditor.editInstance.deleteConfirmationModal.headerAriaLabel`,defaultMessage:`Delete Metadata Template`},deleteConfirmationModalBodyFirstParagraph:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph`,defaultMessage:`Are you sure you want to delete the "{templateName}" Metadata template, and all of its values from this file?`},deleteConfirmationModalBodyFirstParagraphFolder:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph.folder`,defaultMessage:`Are you sure you want to delete the "{templateName}" Metadata template, and all of its values from this folder?`},deleteConfirmationModalBodyFirstParagraphCheckboxVersion:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion`,defaultMessage:`Are you sure you want to delete the "{templateName}" Metadata instance, and its values?`},deleteConfirmationModalBodySecondParagraph:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.secondParagraph`,defaultMessage:`Once deleted, Metadata values cannot be restored.`},deleteConfirmationModalBodyInputFieldLabel:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel`,defaultMessage:`Type the Metadata Template’s name to confirm deletion`},deleteConfirmationModalBodyCheckboxLabel:{id:`metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel`,defaultMessage:`Confirm deletion of Metadata instance`},deleteConfirmationModalCancelButton:{id:`metadataEditor.editInstance.deleteConfirmationModal.cancelButton`,defaultMessage:`Cancel`},deleteConfirmationModalConfirmButton:{id:`metadataEditor.editInstance.deleteConfirmationModal.confirmButton`,defaultMessage:`Confirm`},deleteConfirmationModalConfirmButtonCheckboxVersion:{id:`metadataEditor.editInstance.deleteConfirmationModal.confirmButtonCheckboxVersion`,defaultMessage:`Delete`},deleteConfirmationModalDismissButton:{id:`metadataEditor.editInstance.deleteConfirmationModal.dismissButton`,defaultMessage:`Dismiss`}});export{messages as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TEMPLATE_CUSTOM_PROPERTIES}from"../../../../constants.js";import{MetadataEmptyState}from"../../../metadata-empty-state/metadata-empty-state.js";import{useMetadataEditorAnalytics}from"../../../../utils/analytics/analytics-context.js";import{useAutofill}from"../../../../utils/autofill-context.js";import{TemplateInstance}from"../../../metadata-editor-fields/metadata-editor-fields.js";import{UnsavedChangesModal}from"../../../unsaved-changes-modal/unsaved-changes-modal.js";import{t as AutofillOverlay}from"../../../../../../chunks/autofill-overlay.js";import{t as CustomInstance}from"../../../../../../chunks/custom-instance.js";import{t as DeleteConfirmationModal}from"../../../../../../chunks/delete-confirmation-modal.js";import{t as createJSONPatch}from"../../../../../../chunks/utils2.js";import{n as metadata_instance_form_module_default,t as MetadataInstanceFormCardWrapper}from"../../../../../../chunks/metadata-instance-form-card-wrapper.js";import{useEffect,useMemo,useRef,useState}from"react";import{jsx,jsxs}from"react/jsx-runtime";import clsx from"clsx";import{Form,Formik}from"formik";import isEqual from"lodash/isEqual";var FormikObserver=({dirty,onChange,values})=>{let prevValuesRef=useRef(values);return dirty&&!isEqual(prevValuesRef.current.metadata.fields,values.metadata.fields)&&(prevValuesRef.current=values,onChange(values)),null},MetadataInstanceForm=props=>{let{areAiSuggestionsAvailable,customRef,isLargeFile,errorCode,isAiSuggestionsFeatureEnabled,isAdvancedExtractAgentEnabled=!1,isBetaLanguageEnabled,isDeleteButtonDisabled,isDeleteConfirmationModalCheckboxEnabled,isMultilevelTaxonomyFieldEnabled,isTaxonomyPickerEnabled,createTaxonomyItemsService,isUnsavedChangesModalOpen=!1,MetadataInstanceFormCustomWrapper,selectedTemplateInstance,onCancel,onChange,onDelete,onDiscardUnsavedChanges,onSubmit,onToggleReviewFilter,setIsUnsavedChangesModalOpen,shouldShowOnlyReviewFields=!1,taxonomyOptionsFetcher,isConfidenceScoreReviewEnabled=!1,isBoundingBoxEnabled=!1,onSelectMetadataField,selectedMetadataFieldId,isUserFieldEnabled=!1,fetchUsers,fetchAvatarUrls,resolveUsersByEmail}=props,isBoundingBoxOrConfidenceScoreReviewEnabled=isBoundingBoxEnabled||isConfidenceScoreReviewEnabled,FormWrapper=MetadataInstanceFormCustomWrapper??MetadataInstanceFormCardWrapper,[isDeleteConfirmationModalOpen,setIsDeleteConfirmationModalOpen]=useState(!1),{isFetchingSuggestions,isLongLoading,getAiSuggestions,clearState,suggestions}=useAutofill(),{trackEvent}=useMetadataEditorAnalytics();useEffect(()=>()=>{clearState()},[clearState,selectedTemplateInstance?.id]);let isCustomMetadata=selectedTemplateInstance?.templateKey===TEMPLATE_CUSTOM_PROPERTIES,handleSubmit=async values=>{await onSubmit(values,createJSONPatch(values,selectedTemplateInstance))},handleCancel=isFormDirty=>{isFormDirty?setIsUnsavedChangesModalOpen(!0):onCancel()},handleDelete=()=>{setIsDeleteConfirmationModalOpen(!0)},initialValues={metadata:{...selectedTemplateInstance}},formRef=useRef(null),[portalElement,setPortalElement]=useState(null);useEffect(()=>{setPortalElement(customRef??formRef.current)},[customRef,selectedTemplateInstance?.templateKey,selectedTemplateInstance?.scope]);let content=useMemo(()=>{let isEmpty=selectedTemplateInstance?.fields.length===0;if(isCustomMetadata)return jsx(CustomInstance,{isLoading:isFetchingSuggestions});if(isEmpty)return jsx(MetadataEmptyState,{isBoxAiSuggestionsFeatureEnabled:isAiSuggestionsFeatureEnabled,level:`instance`});let showOverlay=!!(isFetchingSuggestions||errorCode);return jsxs(`div`,{className:clsx(metadata_instance_form_module_default.metadataInstanceFormContent,showOverlay&&metadata_instance_form_module_default.showOverlay,isBoundingBoxOrConfidenceScoreReviewEnabled&&metadata_instance_form_module_default.metadataInstanceFormContentReducedGap),children:[jsx(AutofillOverlay,{errorCode,isFetchingSuggestions,isLongLoading}),jsx(TemplateInstance,{disableForm:isFetchingSuggestions,isConfidenceScoreReviewEnabled,isBoundingBoxEnabled,isExternallyOwned:selectedTemplateInstance?.isExternallyOwned,isMultilevelTaxonomyFieldEnabled,isTaxonomyPickerEnabled,isUserFieldEnabled,createTaxonomyItemsService,onSelectMetadataField,selectedMetadataFieldId,portalElement:customRef??portalElement,shouldShowOnlyReviewFields,taxonomyOptionsFetcher,fetchAvatarUrls,fetchUsers,resolveUsersByEmail})]})},[selectedTemplateInstance?.fields.length,selectedTemplateInstance?.isExternallyOwned,isCustomMetadata,isFetchingSuggestions,isLongLoading,customRef,portalElement,taxonomyOptionsFetcher,isAiSuggestionsFeatureEnabled,isConfidenceScoreReviewEnabled,isBoundingBoxEnabled,isMultilevelTaxonomyFieldEnabled,isTaxonomyPickerEnabled,createTaxonomyItemsService,errorCode,shouldShowOnlyReviewFields,onSelectMetadataField,selectedMetadataFieldId,isUserFieldEnabled,fetchUsers,fetchAvatarUrls,resolveUsersByEmail]);return jsx(Formik,{initialValues,onSubmit:handleSubmit,children:({values,dirty})=>jsxs(Form,{children:[jsx(FormWrapper,{areAiSuggestionsAvailable,className:metadata_instance_form_module_default.metadataInstanceForm,formRef,formValues:values,getAiSuggestions,handleCancel,handleDelete,isAdvancedExtractAgentEnabled,isAiSuggestionsFeatureEnabled,isBetaLanguageEnabled,isConfidenceScoreReviewEnabled,isBoundingBoxEnabled,isDeleteButtonDisabled,isFetchingSuggestions,isFormDirty:dirty,isLargeFile,onToggleReviewFilter,selectedTemplateInstance,shouldShowOnlyReviewFields,suggestions,children:selectedTemplateInstance&&content}),onChange&&jsx(FormikObserver,{dirty,onChange,values}),jsx(UnsavedChangesModal,{onBackToEdit:()=>setIsUnsavedChangesModalOpen(!1),onDiscardChanges:onDiscardUnsavedChanges,open:isUnsavedChangesModalOpen,trackEvent}),jsx(DeleteConfirmationModal,{isCheckboxEnabled:isDeleteConfirmationModalCheckboxEnabled,onConfirm:()=>onDelete(selectedTemplateInstance),onDismiss:()=>setIsDeleteConfirmationModalOpen(!1),open:isDeleteConfirmationModalOpen,templateName:selectedTemplateInstance?.displayName})]})},`${selectedTemplateInstance?.scope}.${selectedTemplateInstance?.templateKey}`)};export{MetadataInstanceForm};
|
|
1
|
+
import{TEMPLATE_CUSTOM_PROPERTIES}from"../../../../constants.js";import{MetadataEmptyState}from"../../../metadata-empty-state/metadata-empty-state.js";import{useMetadataEditorAnalytics}from"../../../../utils/analytics/analytics-context.js";import{useAutofill}from"../../../../utils/autofill-context.js";import{TemplateInstance}from"../../../metadata-editor-fields/metadata-editor-fields.js";import{UnsavedChangesModal}from"../../../unsaved-changes-modal/unsaved-changes-modal.js";import{t as AutofillOverlay}from"../../../../../../chunks/autofill-overlay.js";import{t as CustomInstance}from"../../../../../../chunks/custom-instance.js";import{t as DeleteConfirmationModal}from"../../../../../../chunks/delete-confirmation-modal.js";import{t as createJSONPatch}from"../../../../../../chunks/utils2.js";import{n as metadata_instance_form_module_default,t as MetadataInstanceFormCardWrapper}from"../../../../../../chunks/metadata-instance-form-card-wrapper.js";import{useEffect,useMemo,useRef,useState}from"react";import{jsx,jsxs}from"react/jsx-runtime";import clsx from"clsx";import{Form,Formik}from"formik";import isEqual from"lodash/isEqual";var FormikObserver=({dirty,onChange,values})=>{let prevValuesRef=useRef(values);return dirty&&!isEqual(prevValuesRef.current.metadata.fields,values.metadata.fields)&&(prevValuesRef.current=values,onChange(values)),null},MetadataInstanceForm=props=>{let{itemType=`file`,areAiSuggestionsAvailable,customRef,isLargeFile,errorCode,isAiSuggestionsFeatureEnabled,isAdvancedExtractAgentEnabled=!1,isBetaLanguageEnabled,isDeleteButtonDisabled,isDeleteConfirmationModalCheckboxEnabled,isMultilevelTaxonomyFieldEnabled,isTaxonomyPickerEnabled,createTaxonomyItemsService,isUnsavedChangesModalOpen=!1,MetadataInstanceFormCustomWrapper,selectedTemplateInstance,onCancel,onChange,onDelete,onDiscardUnsavedChanges,onSubmit,onToggleReviewFilter,setIsUnsavedChangesModalOpen,shouldShowOnlyReviewFields=!1,taxonomyOptionsFetcher,isConfidenceScoreReviewEnabled=!1,isBoundingBoxEnabled=!1,onSelectMetadataField,selectedMetadataFieldId,isUserFieldEnabled=!1,fetchUsers,fetchAvatarUrls,resolveUsersByEmail}=props,isBoundingBoxOrConfidenceScoreReviewEnabled=isBoundingBoxEnabled||isConfidenceScoreReviewEnabled,FormWrapper=MetadataInstanceFormCustomWrapper??MetadataInstanceFormCardWrapper,[isDeleteConfirmationModalOpen,setIsDeleteConfirmationModalOpen]=useState(!1),{isFetchingSuggestions,isLongLoading,getAiSuggestions,clearState,suggestions}=useAutofill(),{trackEvent}=useMetadataEditorAnalytics();useEffect(()=>()=>{clearState()},[clearState,selectedTemplateInstance?.id]);let isCustomMetadata=selectedTemplateInstance?.templateKey===TEMPLATE_CUSTOM_PROPERTIES,handleSubmit=async values=>{await onSubmit(values,createJSONPatch(values,selectedTemplateInstance))},handleCancel=isFormDirty=>{isFormDirty?setIsUnsavedChangesModalOpen(!0):onCancel()},handleDelete=()=>{setIsDeleteConfirmationModalOpen(!0)},initialValues={metadata:{...selectedTemplateInstance}},formRef=useRef(null),[portalElement,setPortalElement]=useState(null);useEffect(()=>{setPortalElement(customRef??formRef.current)},[customRef,selectedTemplateInstance?.templateKey,selectedTemplateInstance?.scope]);let content=useMemo(()=>{let isEmpty=selectedTemplateInstance?.fields.length===0;if(isCustomMetadata)return jsx(CustomInstance,{isLoading:isFetchingSuggestions});if(isEmpty)return jsx(MetadataEmptyState,{isBoxAiSuggestionsFeatureEnabled:isAiSuggestionsFeatureEnabled,level:`instance`});let showOverlay=!!(isFetchingSuggestions||errorCode);return jsxs(`div`,{className:clsx(metadata_instance_form_module_default.metadataInstanceFormContent,showOverlay&&metadata_instance_form_module_default.showOverlay,isBoundingBoxOrConfidenceScoreReviewEnabled&&metadata_instance_form_module_default.metadataInstanceFormContentReducedGap),children:[jsx(AutofillOverlay,{errorCode,isFetchingSuggestions,isLongLoading}),jsx(TemplateInstance,{disableForm:isFetchingSuggestions,isConfidenceScoreReviewEnabled,isBoundingBoxEnabled,isExternallyOwned:selectedTemplateInstance?.isExternallyOwned,isMultilevelTaxonomyFieldEnabled,isTaxonomyPickerEnabled,isUserFieldEnabled,createTaxonomyItemsService,onSelectMetadataField,selectedMetadataFieldId,portalElement:customRef??portalElement,shouldShowOnlyReviewFields,taxonomyOptionsFetcher,fetchAvatarUrls,fetchUsers,resolveUsersByEmail})]})},[selectedTemplateInstance?.fields.length,selectedTemplateInstance?.isExternallyOwned,isCustomMetadata,isFetchingSuggestions,isLongLoading,customRef,portalElement,taxonomyOptionsFetcher,isAiSuggestionsFeatureEnabled,isConfidenceScoreReviewEnabled,isBoundingBoxEnabled,isBoundingBoxOrConfidenceScoreReviewEnabled,isMultilevelTaxonomyFieldEnabled,isTaxonomyPickerEnabled,createTaxonomyItemsService,errorCode,shouldShowOnlyReviewFields,onSelectMetadataField,selectedMetadataFieldId,isUserFieldEnabled,fetchUsers,fetchAvatarUrls,resolveUsersByEmail]);return jsx(Formik,{initialValues,onSubmit:handleSubmit,children:({values,dirty})=>jsxs(Form,{children:[jsx(FormWrapper,{areAiSuggestionsAvailable,className:metadata_instance_form_module_default.metadataInstanceForm,formRef,formValues:values,getAiSuggestions,handleCancel,handleDelete,isAdvancedExtractAgentEnabled,isAiSuggestionsFeatureEnabled,isBetaLanguageEnabled,isConfidenceScoreReviewEnabled,isBoundingBoxEnabled,isDeleteButtonDisabled,isFetchingSuggestions,isFormDirty:dirty,isLargeFile,onToggleReviewFilter,selectedTemplateInstance,shouldShowOnlyReviewFields,suggestions,children:selectedTemplateInstance&&content}),onChange&&jsx(FormikObserver,{dirty,onChange,values}),jsx(UnsavedChangesModal,{onBackToEdit:()=>setIsUnsavedChangesModalOpen(!1),onDiscardChanges:onDiscardUnsavedChanges,open:isUnsavedChangesModalOpen,trackEvent}),jsx(DeleteConfirmationModal,{isCheckboxEnabled:isDeleteConfirmationModalCheckboxEnabled,itemType,onConfirm:()=>onDelete(selectedTemplateInstance),onDismiss:()=>setIsDeleteConfirmationModalOpen(!1),open:isDeleteConfirmationModalOpen,templateName:selectedTemplateInstance?.displayName})]})},`${selectedTemplateInstance?.scope}.${selectedTemplateInstance?.templateKey}`)};export{MetadataInstanceForm};
|
package/dist/i18n/bn-IN.js
CHANGED
|
@@ -97,6 +97,8 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "ফিল্টারিংয়ের বিশদ সহ সাবটাইটেলের জন্য Aria লেভেল। ব্যবহারকারীকে টেমপ্লেট নির্বাচন করার তথ্য দেয়।",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "সব টেমপ্লেট",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{visibleTemplatesNumber} টেমপ্লেটের {selectedTemplatesNumber}",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.body": "ব্যবসায়িক কার্যক্রম, ওয়ার্কফ্লো এবং আরও অনেক কিছুতে সহায়তা করতে আপনার ফোল্ডারে মেটাডেটা যোগ করুন!",
|
|
101
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "মেটাডেটা টেমপ্লেট যোগ করুন",
|
|
100
102
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "খালি মান দেখুন",
|
|
101
103
|
"metadataEditor.instanceLevel.emptyState.heading": "এই টেমপ্লেটের কোনো মান নেই",
|
|
102
104
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "এই টেমপ্লেটে কোনো অ্যাট্রিবিউট নেই",
|
package/dist/i18n/da-DK.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Aria-label til undertekst med filtreringsdetaljer. Informerer brugeren om, hvilke skabeloner der er valgt.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Alle skabeloner",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} af {visibleTemplatesNumber} Skabeloner",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Tilføj metadata-skabeloner",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Se tomme værdier",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Denne skabelon har ingen værdier",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Denne skabelon har ingen attributter",
|
package/dist/i18n/de-DE.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Aria-Label für Untertitel mit Filterdetails. Informiert den Benutzer, welche Vorlagen ausgewählt wurden.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Alle Vorlagen",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} von {visibleTemplatesNumber} Vorlagen",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Metadaten-Vorlagen hinzufügen",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Leere Werte anzeigen",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Diese Vorlage hat keine Werte",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Diese Vorlage hat keine Attribute",
|
package/dist/i18n/es-419.js
CHANGED
|
@@ -96,6 +96,7 @@ export default {
|
|
|
96
96
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Etiqueta Aria para subtítulo con detalles de filtro. Indica a los usuarios qué plantillas se han elegido.",
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Todas las plantillas",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} de {visibleTemplatesNumber} Plantillas",
|
|
99
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Agregar plantillas de metadatos",
|
|
99
100
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Ver valores vacíos",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.heading": "Esta plantilla no tiene valores",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Esta plantilla no tiene atributos",
|
package/dist/i18n/es-ES.js
CHANGED
|
@@ -96,6 +96,7 @@ export default {
|
|
|
96
96
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Etiqueta Aria para subtítulo con detalles de filtro. Indica a los usuarios qué plantillas se han elegido.",
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Todas las plantillas",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} de {visibleTemplatesNumber} Plantillas",
|
|
99
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Agregar plantillas de metadatos",
|
|
99
100
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Ver valores vacíos",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.heading": "Esta plantilla no tiene valores",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Esta plantilla no tiene atributos",
|
package/dist/i18n/fi-FI.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Tekstityksen aria label suodatustiedoilla. Ilmoittaa käyttäjälle, mitkä mallit valittiin.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Kaikki mallit",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber}/{visibleTemplatesNumber} mallia",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Lisää metatietomallit",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Näytä tyhjät arvot",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Tässä mallissa ei ole arvoja",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Tässä mallissa ei ole määritteitä",
|
package/dist/i18n/fr-CA.js
CHANGED
|
@@ -96,6 +96,7 @@ export default {
|
|
|
96
96
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Étiquette Aria pour les sous-titres avec des détails de filtrage. Indique les modèles choisis à l'utilisateur.",
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Tous les modèles",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} de {visibleTemplatesNumber} modèles",
|
|
99
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Ajoutez des modèles de métadonnées",
|
|
99
100
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Affichez les valeurs vides",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.heading": "Ce modèle ne contient valeur",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Ce modèle n'a aucun attribut",
|
package/dist/i18n/fr-FR.js
CHANGED
|
@@ -96,6 +96,7 @@ export default {
|
|
|
96
96
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Étiquette Aria pour les sous-titres avec des détails de filtrage. Indique les modèles choisis à l'utilisateur.",
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Tous les modèles",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} de {visibleTemplatesNumber} modèles",
|
|
99
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Ajoutez des modèles de métadonnées",
|
|
99
100
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Affichez les valeurs vides",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.heading": "Ce modèle ne contient valeur",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Ce modèle n'a aucun attribut",
|
package/dist/i18n/hi-IN.js
CHANGED
|
@@ -74,7 +74,8 @@ export default {
|
|
|
74
74
|
"metadataEditor.confidenceScore.tooltipLowConfidence": "इस एक्सट्रैक्शन के लिए Box AI ने कम आत्मविश्वास स्तर लौटाया। मान की समीक्षा करें।",
|
|
75
75
|
"metadataEditor.confidenceScore.tooltipReviewedAndAccepted": "Box AI ने इस एक्सट्रैक्शन के लिए कम आत्मविश्वास स्तर लौटाया, लेकिन इसे एक व्यक्ति द्वारा स्वीकार किया गया।",
|
|
76
76
|
"metadataEditor.editInstance.deleteConfirmationModal.body.checkboxLabel": "हटाने की पुष्टि हेतु चेकबॉक्स चुनें",
|
|
77
|
-
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "क्या आप वाकई इस फ़ाइल से \"{templateName}\" मेटाडेटा
|
|
77
|
+
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph": "क्या आप वाकई इस फ़ाइल से \"{templateName}\" मेटाडेटा टेम्पलेट और उसके सभी मान हटाना चाहते हैं?",
|
|
78
|
+
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraph.folder": "क्या आप वाकई इस फ़ोल्डर से \"{templateName}\" मेटाडेटा टेम्पलेट और इसके सभी मानों को हटाना चाहते हैं?",
|
|
78
79
|
"metadataEditor.editInstance.deleteConfirmationModal.body.firstParagraphCheckboxVersion": "क्या आप वाकई \"{templateName}\" मेटाडेटा इंस्टेंस, और इसके मूल्यों को हटाना चाहते हैं?",
|
|
79
80
|
"metadataEditor.editInstance.deleteConfirmationModal.body.inputFieldLabel": "हटाने की पुष्टि के लिए मेटाडेटा टेम्पलेट का नाम टाइप करें",
|
|
80
81
|
"metadataEditor.editInstance.deleteConfirmationModal.body.secondParagraph": "हटने के बाद, मेटाडेटा मूल्यमानों को बहाल नहीं किया जा सकता है।",
|
|
@@ -97,6 +98,8 @@ export default {
|
|
|
97
98
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "फ़िल्टरिंग विवरण के साथ सबटाइटल के लिए एरिया लेबल। जिस उपयोगकर्ता के टेम्पलेट्स को चुना गया था उसे सूचित करता है।",
|
|
98
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "सभी टेम्पलेट्स",
|
|
99
100
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{visibleTemplatesNumber} में से {selectedTemplatesNumber} टेम्पलेट्स",
|
|
101
|
+
"metadataEditor.folderLevel.emptyState.default.body": "व्यावसायिक संचालन, वर्कफ़्लो और बहुत कुछ सपोर्ट करने के लिए अपने फ़ोल्डर में मेटाडेटा जोड़ें!",
|
|
102
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "मेटाडेटा टेम्पलेट्स जोड़ें",
|
|
100
103
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "खाली मूल्यमान देखें",
|
|
101
104
|
"metadataEditor.instanceLevel.emptyState.heading": "इस टेम्पलेट में कोई मूल्यमान नहीं है",
|
|
102
105
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "इस टेम्पलेट में कोई एट्रीब्यूट नहीं है",
|
package/dist/i18n/it-IT.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Etichetta sottotitolo Aria con dettagli delle opzioni di filtraggio. Informa l'utente sui modelli scelti.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Tutti i modelli",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} di {visibleTemplatesNumber} modelli",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Aggiungi modelli di metadati",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Visualizza i valori vuoti",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Per questo modello non è disponibile nessun valore",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Questo modello non ha attributi",
|
package/dist/i18n/ja-JP.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "フィルタの詳細を含むサブタイトルのAriaラベル。どのテンプレートが選択されたかをユーザーに通知します。",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "すべてのテンプレート",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{visibleTemplatesNumber}個中{selectedTemplatesNumber}個のテンプレート",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "メタデータテンプレートを追加",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "空の値を表示",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "このテンプレートには値がありません",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "このテンプレートに属性はありません",
|
package/dist/i18n/ko-KR.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "필터링 세부 정보가 포함된 자막용 Aria 레이블. 사용자에게 어떤 템플릿이 선택되었는지 알립니다.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "모든 템플릿",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{visibleTemplatesNumber}개 중 {selectedTemplatesNumber}개의 템플릿",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "메타데이터 템플릿 추가",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "빈 값 보기",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "이 템플릿에는 값이 없습니다.",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "이 템플릿에는 속성이 없습니다.",
|
package/dist/i18n/nb-NO.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Aria-etikett for undertekst med filtering. Gi brukeren beskjed om hvilke maler som er valgt.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Alle maler",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} av {visibleTemplatesNumber} maler",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Legg til metadatamaler",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Se tomme verdier",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Denne malen har ingen verdier",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Denne malen har ingen egenskaper",
|
package/dist/i18n/nl-NL.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Aria-label voor ondertitel met filtergegevens. Informeert de gebruiker welke sjablonen zijn gekozen.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Alle sjablonen",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} van {visibleTemplatesNumber} sjablonen",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Metagegevenssjablonen toevoegen",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Lege waarden bekijken",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Dit sjabloon heeft geen waarden",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Dit sjabloon heeft geen kenmerken",
|
package/dist/i18n/pl-PL.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Etykieta Aria dla napisów ze szczegółami filtrowania. Informuje użytkownika o tym, które szablony zostały wybrane.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Wszystkie szablony",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} z {visibleTemplatesNumber} szablonów",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Dodaj szablony metadanych",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Zobacz puste wartości",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Ten szablon nie ma wartości",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Ten szablon nie ma atrybutów",
|
package/dist/i18n/pt-BR.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Rótulo Aria para legenda com detalhes de filtragem. Informa ao usuário quais modelos foram escolhidos.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Todos os modelos",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} de {visibleTemplatesNumber} modelos",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Adicione modelos de metadados",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Ver valores vazios",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Este modelo não tem valores",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Este modelo não tem atributos",
|
package/dist/i18n/ru-RU.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Ярлык Aria для подзаголовка с фильтрацией по деталям. Информирует пользователя, какие шаблоны были выбраны.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Все шаблоны",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} из {visibleTemplatesNumber} шаблонов",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Добавить шаблоны метаданных",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Посмотреть пустые значения",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "У этого шаблона нет значений",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Этот шаблон не имеет атрибутов",
|
package/dist/i18n/sv-SE.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Aria-etikett för underrubrik med filtreringsdetaljer. Informerar användaren vilka mallar som valdes.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Alla mallar",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} av {visibleTemplatesNumber} mallar",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Lägg till mallar för metadata",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Se tomma värden",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Den här mallen har inga värden",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Den här mallen har inga attribut",
|
package/dist/i18n/tr-TR.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "Filtreleme bilgileriyle altyazı için Aria etiketi. Kullanıcıya hangi şablonların seçildiğini bildirir.",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "Tüm Şablonlar",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} / {visibleTemplatesNumber} Şablon",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "Meta Veri Şablonları Ekleyin",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "Boş değerleri görün",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "Bu şablonda değer yok",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "Bu şablonun özniteliği bulunmuyor",
|
package/dist/i18n/zh-CN.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "带有过滤详细信息的字幕 Aria 标签。通知用户选择了哪些模板。",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "所有模板",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} / {visibleTemplatesNumber} 个模板",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "添加元数据模板",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "查看空值",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "此模板无值",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "此模板无属性",
|
package/dist/i18n/zh-TW.js
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
"metadataEditor.filterInstancesDropdown.detailsTextAriaLabel": "帶有篩選詳細資料的字幕 Aria 標籤。告知使用者選了哪些範本。",
|
|
98
98
|
"metadataEditor.filterInstancesDropdown.triggerButton.allTemplates": "所有範本",
|
|
99
99
|
"metadataEditor.filterInstancesDropdown.triggerButton.selectedTemplates": "{selectedTemplatesNumber} / {visibleTemplatesNumber} 範本",
|
|
100
|
+
"metadataEditor.folderLevel.emptyState.default.heading": "新增中繼資料範本",
|
|
100
101
|
"metadataEditor.instanceLevel.emptyState.emptyValues.Cta": "看到空值",
|
|
101
102
|
"metadataEditor.instanceLevel.emptyState.heading": "此範本沒有值",
|
|
102
103
|
"metadataEditor.instanceLevel.emptyState.noAttributes.heading": "此範本沒有屬性",
|
|
@@ -29,6 +29,16 @@ declare const messages: {
|
|
|
29
29
|
description: string;
|
|
30
30
|
id: string;
|
|
31
31
|
};
|
|
32
|
+
folderLevelEmptyStateDefaultHeading: {
|
|
33
|
+
defaultMessage: string;
|
|
34
|
+
description: string;
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
folderLevelEmptyStateDefaultBody: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
32
42
|
instanceLevelEmptyStateHeading: {
|
|
33
43
|
defaultMessage: string;
|
|
34
44
|
description: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeleteConfirmationModalProps } from './types';
|
|
2
|
-
export declare const DeleteConfirmationModal: ({ onConfirm, templateName, onDismiss, open, isCheckboxEnabled, }: DeleteConfirmationModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const DeleteConfirmationModal: ({ onConfirm, templateName, onDismiss, open, isCheckboxEnabled, itemType, }: DeleteConfirmationModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,6 +19,11 @@ declare const messages: {
|
|
|
19
19
|
description: string;
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
|
+
deleteConfirmationModalBodyFirstParagraphFolder: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
22
27
|
deleteConfirmationModalBodyFirstParagraphCheckboxVersion: {
|
|
23
28
|
defaultMessage: string;
|
|
24
29
|
description: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { MetadataItemType } from '../../../../types';
|
|
1
2
|
export type DeleteConfirmationModalProps = {
|
|
2
3
|
isCheckboxEnabled: boolean;
|
|
4
|
+
/** Item metadata is being removed from. Defaults to `file`. */
|
|
5
|
+
itemType?: MetadataItemType;
|
|
3
6
|
onConfirm: () => void | Promise<void>;
|
|
4
7
|
onDismiss: () => void;
|
|
5
8
|
open: boolean;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { AutofillSuggestions, MetadataTemplateField, MetadataTemplateInstance } from '../../../../types';
|
|
1
|
+
import { AutofillSuggestions, MetadataItemType, MetadataTemplateField, MetadataTemplateInstance } from '../../../../types';
|
|
2
2
|
import { CreateTaxonomyItemsService, TaxonomyOptionsFetcher } from '../../../metadata-editor-fields/components/metadata-taxonomy-field/types';
|
|
3
3
|
import { FetchAvatarUrls, FetchUsers, ResolveUsersByEmail } from '../../../metadata-editor-fields/components/metadata-user-field/types';
|
|
4
4
|
import { FormValues } from '../../types';
|
|
5
5
|
import { ERROR_CODE_METADATA_AUTOFILL_TIMEOUT, ERROR_CODE_METADATA_PRECONDITION_FAILED, ERROR_CODE_MISSING_PERMISSIONS, ERROR_CODE_UNKNOWN } from './constants';
|
|
6
6
|
export type errorCodeTypes = typeof ERROR_CODE_METADATA_AUTOFILL_TIMEOUT | typeof ERROR_CODE_METADATA_PRECONDITION_FAILED | typeof ERROR_CODE_MISSING_PERMISSIONS | typeof ERROR_CODE_UNKNOWN;
|
|
7
7
|
export type MetadataInstanceFormProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Selects item-specific copy, including the delete confirmation. Defaults to `file`.
|
|
10
|
+
* Does not gate any feature: autofill, confidence score review, and bounding boxes are
|
|
11
|
+
* controlled solely by their own flags, and are supported for files only.
|
|
12
|
+
*/
|
|
13
|
+
itemType?: MetadataItemType;
|
|
8
14
|
areAiSuggestionsAvailable: boolean;
|
|
9
15
|
errorCode?: errorCodeTypes;
|
|
10
16
|
isAiSuggestionsFeatureEnabled: boolean;
|
|
@@ -3,6 +3,8 @@ import { UserContactType } from '@box/user-selector';
|
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
import { BaseOptionType } from './components/combobox-with-api-pagination/types';
|
|
5
5
|
export type { FormValues } from './components/metadata-instance-editor/types';
|
|
6
|
+
/** Host item the editor is bound to. Defaults to `file` when omitted. */
|
|
7
|
+
export type MetadataItemType = 'file' | 'folder';
|
|
6
8
|
export type StoredAgentType = 'standard' | 'enhanced' | null;
|
|
7
9
|
export type ExtractAgent = {
|
|
8
10
|
AGENT_TYPE: StoredAgentType;
|
|
@@ -13,7 +15,11 @@ export type ExtractAgent = {
|
|
|
13
15
|
export type MetadataEmptyStateProps = {
|
|
14
16
|
isBoxAiSuggestionsFeatureEnabled?: boolean;
|
|
15
17
|
isAnyEmptyValueHidden?: boolean;
|
|
16
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Surface copy. For a file or folder, use the same item as `itemType` on `MetadataInstanceForm`
|
|
20
|
+
* (`level="file"` or `level="folder"`) so the empty state and the delete modal agree.
|
|
21
|
+
*/
|
|
22
|
+
level: 'manager' | 'file' | 'folder' | 'instance';
|
|
17
23
|
onShowEmptyValues?: () => void;
|
|
18
24
|
};
|
|
19
25
|
export type MetadataFormFieldValue = string | Array<string> | number | Array<BaseOptionType> | Array<UserContactType>;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/metadata-editor",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@ariakit/react": "0.4.21",
|
|
6
|
-
"@box/blueprint-web": "^17.
|
|
7
|
-
"@box/blueprint-web-assets": "^5.11.
|
|
8
|
-
"@box/box-ai-agent-selector": "^2.3.
|
|
9
|
-
"@box/combobox-with-api": "^2.3.
|
|
10
|
-
"@box/metadata-taxonomy-picker": "^3.4.
|
|
11
|
-
"@box/metadata-template-browser": "^2.5.
|
|
12
|
-
"@box/user-selector": "^3.1.
|
|
6
|
+
"@box/blueprint-web": "^17.19.0",
|
|
7
|
+
"@box/blueprint-web-assets": "^5.11.3",
|
|
8
|
+
"@box/box-ai-agent-selector": "^2.3.3",
|
|
9
|
+
"@box/combobox-with-api": "^2.3.3",
|
|
10
|
+
"@box/metadata-taxonomy-picker": "^3.4.3",
|
|
11
|
+
"@box/metadata-template-browser": "^2.5.3",
|
|
12
|
+
"@box/user-selector": "^3.1.3",
|
|
13
13
|
"formik": "^2.0.3",
|
|
14
14
|
"lodash": "^4.17.15",
|
|
15
15
|
"react": "^17.0.0 || ^18.0.0",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@ariakit/react": "0.4.21",
|
|
21
21
|
"@box/babel-plugin-target-attributes": "2.2.25",
|
|
22
|
-
"@box/blueprint-web": "^17.
|
|
23
|
-
"@box/blueprint-web-assets": "^5.11.
|
|
24
|
-
"@box/box-ai-agent-selector": "^2.3.
|
|
25
|
-
"@box/metadata-taxonomy-picker": "^3.4.
|
|
26
|
-
"@box/storybook-utils": "^1.3.
|
|
27
|
-
"@box/user-selector": "^3.1.
|
|
22
|
+
"@box/blueprint-web": "^17.19.0",
|
|
23
|
+
"@box/blueprint-web-assets": "^5.11.3",
|
|
24
|
+
"@box/box-ai-agent-selector": "^2.3.3",
|
|
25
|
+
"@box/metadata-taxonomy-picker": "^3.4.3",
|
|
26
|
+
"@box/storybook-utils": "^1.3.3",
|
|
27
|
+
"@box/user-selector": "^3.1.3",
|
|
28
28
|
"@testing-library/react": "^15.0.6",
|
|
29
29
|
"react": "^18.3.0",
|
|
30
30
|
"react-dom": "^18.3.0",
|