@box/metadata-editor 1.65.21 → 1.66.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.
|
@@ -13,7 +13,7 @@ import '../styles/metadata-instance.css';var p = {
|
|
|
13
13
|
reviewNotice: "_reviewNotice_1xnom_5",
|
|
14
14
|
bottomDivider: "_bottomDivider_1xnom_9"
|
|
15
15
|
}, m = ({ areAiSuggestionsAvailable: m, isAiSuggestionsFeatureEnabled: h, isBetaLanguageEnabled: g, onEdit: _, onSelectMetadataField: v, selectedMetadataFieldId: y, templateInstance: b, taxonomyNodeFetcher: x, isAdvancedExtractAgentEnabled: S = !1, isConfidenceScoreReviewEnabled: C = !1 }) => {
|
|
16
|
-
let w = b.fields, T = (e) => !e.value || Array.isArray(e.value) && e.value.length === 0, E = w.every(T), D = w.some(T), O = w.length > 0, k = n(w).length, A = C && k > 0, [j, M] = l(!0), { getAiSuggestions: N } = t();
|
|
16
|
+
let w = b.fields, T = (e) => !e.value || Array.isArray(e.value) && e.value.length === 0, E = w.every(T), D = w.some(T), O = w.length > 0, k = n(w).length, A = C && k > 0 && b.canEdit, [j, M] = l(!0), { getAiSuggestions: N } = t();
|
|
17
17
|
return /* @__PURE__ */ f(s, { children: [
|
|
18
18
|
/* @__PURE__ */ d(o, {
|
|
19
19
|
areAiSuggestionsAvailable: m,
|
package/dist/esm/lib/messages.js
CHANGED
|
@@ -102,7 +102,7 @@ var t = e({
|
|
|
102
102
|
},
|
|
103
103
|
aiDisclaimer: {
|
|
104
104
|
id: "groupSharedFeatures.metadataEditor.aiDisclaimer",
|
|
105
|
-
defaultMessage: "Box AI
|
|
105
|
+
defaultMessage: "Box AI outputs should be reviewed and verified before use."
|
|
106
106
|
}
|
|
107
107
|
}), n = e({
|
|
108
108
|
autofillButtonTooltipGA: {
|
package/dist/i18n/en-US.js
CHANGED
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
"comboboxWithApiPagination.loadingAriaLabel": "Loading...",
|
|
7
7
|
"comboboxWithApiPagination.loadingMoreAriaLabel": "Loading more...",
|
|
8
8
|
"comboboxWithApiPagination.noResults": "No results found",
|
|
9
|
-
"groupSharedFeatures.metadataEditor.aiDisclaimer": "Box AI
|
|
9
|
+
"groupSharedFeatures.metadataEditor.aiDisclaimer": "Box AI outputs should be reviewed and verified before use.",
|
|
10
10
|
"groupSharedFeatures.metadataEditor.loading": "loading",
|
|
11
11
|
"groupSharedFeatures.metadataEditor.metadataEditorFields.afterDateValidationError": "Enter a date after {date}",
|
|
12
12
|
"groupSharedFeatures.metadataEditor.metadataEditorFields.append": "Append",
|
|
@@ -13,7 +13,7 @@ comboboxWithApiPagination.loadingMoreAriaLabel = Loading more...
|
|
|
13
13
|
# Message displayed when no results are found in the combobox
|
|
14
14
|
comboboxWithApiPagination.noResults = No results found
|
|
15
15
|
# Disclaimer shown when at least one metadata field has been autofilled by AI
|
|
16
|
-
groupSharedFeatures.metadataEditor.aiDisclaimer = Box AI
|
|
16
|
+
groupSharedFeatures.metadataEditor.aiDisclaimer = Box AI outputs should be reviewed and verified before use.
|
|
17
17
|
# Aria label indicating that content is loading or in progress
|
|
18
18
|
groupSharedFeatures.metadataEditor.loading = loading
|
|
19
19
|
# Error message shown if an invalid after date is entered. {date} represents the date entered by the user.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.afterDateValidationError","description":"Error message shown if an invalid after date is entered. {date} represents the date entered by the user.","defaultMessage":"Enter a date after {date}"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.beforeDateValidationError","description":"Error message shown if an invalid before date is entered. {date} represents the date entered by the user.","defaultMessage":"Enter a date before {date}"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.clearSelectedDate","description":"Aria label for clearing the selected date","defaultMessage":"Clear selected date"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.floatFieldInvalidValue","description":"Error message shown for an invalid field value","defaultMessage":"Invalid field value"},{"id":"groupSharedFeatures.metadataEditor.loading","description":"Aria label indicating that content is loading or in progress","defaultMessage":"loading"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.multiselectPlaceholder","description":"Placeholder text for the multiselect field","defaultMessage":"Select value(s)"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.noTemplateAtributesError","description":"Error message shown if no attributes are available in the template","defaultMessage":"There are no attributes in this template."},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.openCalendarLabel","description":"Aria label for opening the calendar to pick a date","defaultMessage":"Open calendar to pick a date"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.selectDate","description":"Aria label for selecting the date","defaultMessage":"Select the date"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.selectTemplate","description":"Placeholder text prompting the user to select a template","defaultMessage":"Select a Template"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.selectTemplateError","description":"Error message displayed when templates fail to load","defaultMessage":"Could not load templates. Try again later"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.selectValuePlaceholder","description":"Placeholder text for selecting a value","defaultMessage":"Select a value"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.setValuePlaceholder","description":"Placeholder text for setting a value","defaultMessage":"Set Value"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.switchToNextMonth","description":"Aria label for switching to the next month in the calendar","defaultMessage":"Switch to next month"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.switchToPreviousMonth","description":"Aria label for switching to the previous month in the calendar","defaultMessage":"Switch to previous month"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.taxonomyPlaceholder","description":"Placeholder text for selecting a taxonomy option","defaultMessage":"Select an option"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.header","description":"Title for the metadata template selection dialog","defaultMessage":"Select Metadata Template"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.searchInputPlaceholder","description":"Placeholder text for the search input in the metadata template selector modal","defaultMessage":"Search all templates"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.searchInputIconAriaLabel","description":"Accessibility label for icon inside the search input that filters the templates in the metadata template selection dialog","defaultMessage":"Search all templates"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.searchInputClearAriaLabel","description":"Accessibility label for the button that clears the value of the search input that filters the templates in the metadata template selection dialog","defaultMessage":"Clear"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.cancel","description":"Label for the button that dismisses the template selection dialog","defaultMessage":"Cancel"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.add","description":"Label for the button that applies the selection and closes the template selection dialog","defaultMessage":"Add"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.close","description":"Aria label for the button that closes the template selection dialog","defaultMessage":"Close"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.taxonomyExternallyOwned","description":"Tooltip text for a taxonomy field that is externally owned","defaultMessage":"Edit functionality for Taxonomy shared externally is not available"},{"id":"groupSharedFeatures.metadataEditor.viewOnDocument","description":"Tooltip shown when hovering over a clickable metadata field with bounding boxes","defaultMessage":"View on document"},{"id":"groupSharedFeatures.metadataEditor.aiDisclaimer","description":"Disclaimer shown when at least one metadata field has been autofilled by AI","defaultMessage":"Box AI
|
|
1
|
+
[{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.afterDateValidationError","description":"Error message shown if an invalid after date is entered. {date} represents the date entered by the user.","defaultMessage":"Enter a date after {date}"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.beforeDateValidationError","description":"Error message shown if an invalid before date is entered. {date} represents the date entered by the user.","defaultMessage":"Enter a date before {date}"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.clearSelectedDate","description":"Aria label for clearing the selected date","defaultMessage":"Clear selected date"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.floatFieldInvalidValue","description":"Error message shown for an invalid field value","defaultMessage":"Invalid field value"},{"id":"groupSharedFeatures.metadataEditor.loading","description":"Aria label indicating that content is loading or in progress","defaultMessage":"loading"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.multiselectPlaceholder","description":"Placeholder text for the multiselect field","defaultMessage":"Select value(s)"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.noTemplateAtributesError","description":"Error message shown if no attributes are available in the template","defaultMessage":"There are no attributes in this template."},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.openCalendarLabel","description":"Aria label for opening the calendar to pick a date","defaultMessage":"Open calendar to pick a date"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.selectDate","description":"Aria label for selecting the date","defaultMessage":"Select the date"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.selectTemplate","description":"Placeholder text prompting the user to select a template","defaultMessage":"Select a Template"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.selectTemplateError","description":"Error message displayed when templates fail to load","defaultMessage":"Could not load templates. Try again later"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.selectValuePlaceholder","description":"Placeholder text for selecting a value","defaultMessage":"Select a value"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.setValuePlaceholder","description":"Placeholder text for setting a value","defaultMessage":"Set Value"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.switchToNextMonth","description":"Aria label for switching to the next month in the calendar","defaultMessage":"Switch to next month"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.switchToPreviousMonth","description":"Aria label for switching to the previous month in the calendar","defaultMessage":"Switch to previous month"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.taxonomyPlaceholder","description":"Placeholder text for selecting a taxonomy option","defaultMessage":"Select an option"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.header","description":"Title for the metadata template selection dialog","defaultMessage":"Select Metadata Template"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.searchInputPlaceholder","description":"Placeholder text for the search input in the metadata template selector modal","defaultMessage":"Search all templates"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.searchInputIconAriaLabel","description":"Accessibility label for icon inside the search input that filters the templates in the metadata template selection dialog","defaultMessage":"Search all templates"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.searchInputClearAriaLabel","description":"Accessibility label for the button that clears the value of the search input that filters the templates in the metadata template selection dialog","defaultMessage":"Clear"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.cancel","description":"Label for the button that dismisses the template selection dialog","defaultMessage":"Cancel"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.add","description":"Label for the button that applies the selection and closes the template selection dialog","defaultMessage":"Add"},{"id":"groupSharedFeatures.metadataEditor.metadataTemplateSelector.close","description":"Aria label for the button that closes the template selection dialog","defaultMessage":"Close"},{"id":"groupSharedFeatures.metadataEditor.metadataEditorFields.taxonomyExternallyOwned","description":"Tooltip text for a taxonomy field that is externally owned","defaultMessage":"Edit functionality for Taxonomy shared externally is not available"},{"id":"groupSharedFeatures.metadataEditor.viewOnDocument","description":"Tooltip shown when hovering over a clickable metadata field with bounding boxes","defaultMessage":"View on document"},{"id":"groupSharedFeatures.metadataEditor.aiDisclaimer","description":"Disclaimer shown when at least one metadata field has been autofilled by AI","defaultMessage":"Box AI outputs should be reviewed and verified before use."},{"id":"metadataEditor.autofillButton.tooltip.ga","description":"Tooltip for the autofill button in GA","defaultMessage":"Autofill with Box AI"},{"id":"metadataEditor.autofillButton.tooltip.standard","description":"Tooltip for the autofill button when using standard AI agent","defaultMessage":"Autofill with Box AI (Standard)"},{"id":"metadataEditor.autofillButton.tooltip.enhanced","description":"Tooltip for the autofill button when using enhanced AI agent","defaultMessage":"Autofill with Box AI (Enhanced)"},{"id":"metadataEditor.autofillButton.ariaLabelWithTemplateName","description":"Aria label for the autofill button with the template name","defaultMessage":"Autofill {templateName} with Box AI"},{"id":"metadataEditor.autofillButton.ariaLabel","description":"Aria label for the autofill button","defaultMessage":"Autofill with Box AI"}]
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/metadata-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.66.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@ariakit/react": "0.4.21",
|
|
6
|
-
"@box/blueprint-web": "^14.
|
|
7
|
-
"@box/blueprint-web-assets": "^4.114.
|
|
8
|
-
"@box/box-ai-agent-selector": "^1.39.
|
|
9
|
-
"@box/combobox-with-api": "^1.42.
|
|
6
|
+
"@box/blueprint-web": "^14.15.1",
|
|
7
|
+
"@box/blueprint-web-assets": "^4.114.7",
|
|
8
|
+
"@box/box-ai-agent-selector": "^1.39.55",
|
|
9
|
+
"@box/combobox-with-api": "^1.42.56",
|
|
10
10
|
"formik": "^2.0.3",
|
|
11
11
|
"lodash": "^4.17.15",
|
|
12
12
|
"react": "^17.0.0 || ^18.0.0",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@ariakit/react": "0.4.21",
|
|
18
18
|
"@box/babel-plugin-target-attributes": "1.5.18",
|
|
19
|
-
"@box/blueprint-web": "^14.
|
|
20
|
-
"@box/blueprint-web-assets": "^4.114.
|
|
21
|
-
"@box/box-ai-agent-selector": "^1.39.
|
|
22
|
-
"@box/storybook-utils": "^0.17.
|
|
19
|
+
"@box/blueprint-web": "^14.15.1",
|
|
20
|
+
"@box/blueprint-web-assets": "^4.114.7",
|
|
21
|
+
"@box/box-ai-agent-selector": "^1.39.55",
|
|
22
|
+
"@box/storybook-utils": "^0.17.49",
|
|
23
23
|
"@testing-library/react": "^15.0.6",
|
|
24
24
|
"react": "^18.3.0",
|
|
25
25
|
"react-dom": "^18.3.0",
|