@box/metadata-editor 1.37.0 → 1.38.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.
@@ -1,144 +1,143 @@
1
1
  import "../custom-instance-new-field/custom-instance-new-field.js";
2
- import { DeleteConfirmationModal as G } from "../delete-confirmation-modal/delete-confirmation-modal.js";
2
+ import { DeleteConfirmationModal as z } from "../delete-confirmation-modal/delete-confirmation-modal.js";
3
3
  import "../metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js";
4
4
  import "../metadata-instance-form-header/metadata-instance-form-header.js";
5
- import H from "clsx";
6
- import { Formik as Q, Form as X } from "formik";
7
- import Y from "lodash/isEqual";
8
- import { useState as y, useEffect as O, useRef as D, useMemo as Z } from "react";
9
- import { TEMPLATE_CUSTOM_PROPERTIES as ee } from "../../../../constants.js";
10
- import { useAutofill as te } from "../../../../utils/autofill-context.js";
11
- import { ConfidenceScoreContextProvider as oe } from "../../../../utils/confidence-score-context.js";
12
- import { TemplateInstance as ae } from "../../../metadata-editor-fields/metadata-editor-fields.js";
13
- import { MetadataEmptyState as ne } from "../../../metadata-empty-state/metadata-empty-state.js";
14
- import { AutofillOverlay as se } from "../autofill-overlay/autofill-overlay.js";
15
- import { CustomInstance as re } from "../custom-instance/custom-instance.js";
16
- import { c as ie } from "../../../../../../chunks/utils.js";
17
- import { s as d, M as le } from "../../../../../../chunks/metadata-instance-form-card-wrapper.js";
18
- import { jsx as t, jsxs as x } from "react/jsx-runtime";
19
- import { UnsavedChangesModal as me } from "../../../unsaved-changes-modal/unsaved-changes-modal.js";
20
- const ce = ({
5
+ import G from "clsx";
6
+ import { Formik as H, Form as Q } from "formik";
7
+ import X from "lodash/isEqual";
8
+ import { useState as y, useEffect as S, useRef as x, useMemo as Y } from "react";
9
+ import { TEMPLATE_CUSTOM_PROPERTIES as Z } from "../../../../constants.js";
10
+ import { useAutofill as ee } from "../../../../utils/autofill-context.js";
11
+ import { ConfidenceScoreContextProvider as te } from "../../../../utils/confidence-score-context.js";
12
+ import { TemplateInstance as ne } from "../../../metadata-editor-fields/metadata-editor-fields.js";
13
+ import { MetadataEmptyState as ae } from "../../../metadata-empty-state/metadata-empty-state.js";
14
+ import { AutofillOverlay as oe } from "../autofill-overlay/autofill-overlay.js";
15
+ import { CustomInstance as se } from "../custom-instance/custom-instance.js";
16
+ import { c as re } from "../../../../../../chunks/utils.js";
17
+ import { s as d, M as ie } from "../../../../../../chunks/metadata-instance-form-card-wrapper.js";
18
+ import { jsx as t, jsxs as O } from "react/jsx-runtime";
19
+ import { UnsavedChangesModal as le } from "../../../unsaved-changes-modal/unsaved-changes-modal.js";
20
+ const me = ({
21
21
  dirty: i,
22
22
  onChange: l,
23
- values: o
23
+ values: n
24
24
  }) => {
25
- const s = D(o);
26
- return i && !Y(s.current.metadata.fields, o.metadata.fields) && (s.current = o, l(o)), null;
27
- }, Te = (i) => {
25
+ const s = x(n);
26
+ return i && !X(s.current.metadata.fields, n.metadata.fields) && (s.current = n, l(n)), null;
27
+ }, Ae = (i) => {
28
28
  const {
29
29
  areAiSuggestionsAvailable: l,
30
- customRef: o,
30
+ customRef: n,
31
31
  isLargeFile: s,
32
32
  errorCode: m,
33
33
  isAiSuggestionsFeatureEnabled: c,
34
- isAdvancedExtractAgentEnabled: v = !1,
35
- isBetaLanguageEnabled: I,
36
- isExternallyOwned: f = !1,
37
- isDeleteButtonDisabled: A,
38
- isDeleteConfirmationModalCheckboxEnabled: T,
39
- isMultilevelTaxonomyFieldEnabled: p,
40
- isUnsavedChangesModalOpen: R = !1,
41
- MetadataInstanceFormCustomWrapper: L,
34
+ isAdvancedExtractAgentEnabled: D = !1,
35
+ isBetaLanguageEnabled: v,
36
+ isDeleteButtonDisabled: I,
37
+ isDeleteConfirmationModalCheckboxEnabled: A,
38
+ isMultilevelTaxonomyFieldEnabled: f,
39
+ isUnsavedChangesModalOpen: T = !1,
40
+ MetadataInstanceFormCustomWrapper: w,
42
41
  selectedTemplateInstance: e,
43
- onCancel: P,
44
- onChange: u,
45
- onDelete: k,
46
- onDiscardUnsavedChanges: w,
47
- onSubmit: N,
48
- setIsUnsavedChangesModalOpen: g,
49
- taxonomyOptionsFetcher: C,
50
- isConfidenceScoreReviewEnabled: U = !1
51
- } = i, B = L ?? le, [K, h] = y(!1), {
52
- isFetchingSuggestions: n,
42
+ onCancel: R,
43
+ onChange: p,
44
+ onDelete: L,
45
+ onDiscardUnsavedChanges: P,
46
+ onSubmit: k,
47
+ setIsUnsavedChangesModalOpen: u,
48
+ taxonomyOptionsFetcher: g,
49
+ isConfidenceScoreReviewEnabled: N = !1
50
+ } = i, U = w ?? ie, [B, C] = y(!1), {
51
+ isFetchingSuggestions: o,
53
52
  isLongLoading: E,
54
- getAiSuggestions: V,
55
- clearState: b,
56
- suggestions: W
57
- } = te();
58
- O(() => () => {
59
- b();
60
- }, [b, e?.id]);
61
- const F = e?.templateKey === ee, j = async (a) => {
62
- await N(a, ie(a, e));
63
- }, _ = (a) => {
64
- a ? g(!0) : P();
65
- }, $ = () => {
66
- h(!0);
67
- }, q = {
53
+ getAiSuggestions: K,
54
+ clearState: h,
55
+ suggestions: V
56
+ } = ee();
57
+ S(() => () => {
58
+ h();
59
+ }, [h, e?.id]);
60
+ const b = e?.templateKey === Z, W = async (a) => {
61
+ await k(a, re(a, e));
62
+ }, j = (a) => {
63
+ a ? u(!0) : R();
64
+ }, _ = () => {
65
+ C(!0);
66
+ }, $ = {
68
67
  metadata: {
69
68
  ...e
70
69
  }
71
- }, M = D(null), [S, J] = y(null);
72
- O(() => {
73
- J(o ?? M.current);
74
- }, [o, e?.templateKey, e?.scope]);
75
- const z = Z(() => {
70
+ }, F = x(null), [M, q] = y(null);
71
+ S(() => {
72
+ q(n ?? F.current);
73
+ }, [n, e?.templateKey, e?.scope]);
74
+ const J = Y(() => {
76
75
  const a = e?.fields.length === 0;
77
- if (F)
78
- return /* @__PURE__ */ t(re, {
79
- isLoading: n
76
+ if (b)
77
+ return /* @__PURE__ */ t(se, {
78
+ isLoading: o
80
79
  });
81
80
  if (a)
82
- return /* @__PURE__ */ t(ne, {
81
+ return /* @__PURE__ */ t(ae, {
83
82
  isBoxAiSuggestionsFeatureEnabled: c,
84
83
  level: "instance"
85
84
  });
86
- const r = !!(n || m);
87
- return /* @__PURE__ */ x("div", {
88
- className: H(d.metadataInstanceFormContent, r && d.showOverlay),
89
- children: [/* @__PURE__ */ t(se, {
85
+ const r = !!(o || m);
86
+ return /* @__PURE__ */ O("div", {
87
+ className: G(d.metadataInstanceFormContent, r && d.showOverlay),
88
+ children: [/* @__PURE__ */ t(oe, {
90
89
  errorCode: m,
91
- isFetchingSuggestions: n,
90
+ isFetchingSuggestions: o,
92
91
  isLongLoading: E
93
- }), /* @__PURE__ */ t(ae, {
94
- disableForm: n,
95
- isExternallyOwned: f,
96
- isMultilevelTaxonomyFieldEnabled: p,
97
- portalElement: o ?? S,
98
- taxonomyOptionsFetcher: C
92
+ }), /* @__PURE__ */ t(ne, {
93
+ disableForm: o,
94
+ isExternallyOwned: e?.isExternallyOwned,
95
+ isMultilevelTaxonomyFieldEnabled: f,
96
+ portalElement: n ?? M,
97
+ taxonomyOptionsFetcher: g
99
98
  })]
100
99
  });
101
- }, [e?.fields.length, F, n, E, o, S, C, c, f, p, m]);
102
- return /* @__PURE__ */ t(oe, {
103
- isConfidenceScoreReviewEnabled: U,
104
- children: /* @__PURE__ */ t(Q, {
105
- initialValues: q,
106
- onSubmit: j,
100
+ }, [e?.fields.length, b, o, E, n, M, g, c, f, m, e?.isExternallyOwned]);
101
+ return /* @__PURE__ */ t(te, {
102
+ isConfidenceScoreReviewEnabled: N,
103
+ children: /* @__PURE__ */ t(H, {
104
+ initialValues: $,
105
+ onSubmit: W,
107
106
  children: ({
108
107
  values: a,
109
108
  dirty: r
110
- }) => /* @__PURE__ */ x(X, {
111
- children: [/* @__PURE__ */ t(B, {
109
+ }) => /* @__PURE__ */ O(Q, {
110
+ children: [/* @__PURE__ */ t(U, {
112
111
  areAiSuggestionsAvailable: l,
113
112
  className: d.metadataInstanceForm,
114
- formRef: M,
113
+ formRef: F,
115
114
  formValues: a,
116
- getAiSuggestions: V,
117
- handleCancel: _,
118
- handleDelete: $,
119
- isAdvancedExtractAgentEnabled: v,
115
+ getAiSuggestions: K,
116
+ handleCancel: j,
117
+ handleDelete: _,
118
+ isAdvancedExtractAgentEnabled: D,
120
119
  isAiSuggestionsFeatureEnabled: c,
121
- isBetaLanguageEnabled: I,
122
- isDeleteButtonDisabled: A,
123
- isFetchingSuggestions: n,
120
+ isBetaLanguageEnabled: v,
121
+ isDeleteButtonDisabled: I,
122
+ isFetchingSuggestions: o,
124
123
  isFormDirty: r,
125
124
  isLargeFile: s,
126
125
  selectedTemplateInstance: e,
127
- suggestions: W,
128
- children: e && z
129
- }), u && /* @__PURE__ */ t(ce, {
126
+ suggestions: V,
127
+ children: e && J
128
+ }), p && /* @__PURE__ */ t(me, {
130
129
  dirty: r,
131
- onChange: u,
130
+ onChange: p,
132
131
  values: a
133
- }), /* @__PURE__ */ t(me, {
134
- onBackToEdit: () => g(!1),
135
- onDiscardChanges: w,
136
- open: R
137
- }), /* @__PURE__ */ t(G, {
138
- isCheckboxEnabled: T,
139
- onConfirm: () => k(e),
140
- onDismiss: () => h(!1),
141
- open: K,
132
+ }), /* @__PURE__ */ t(le, {
133
+ onBackToEdit: () => u(!1),
134
+ onDiscardChanges: P,
135
+ open: T
136
+ }), /* @__PURE__ */ t(z, {
137
+ isCheckboxEnabled: A,
138
+ onConfirm: () => L(e),
139
+ onDismiss: () => C(!1),
140
+ open: B,
142
141
  templateName: e?.displayName
143
142
  })]
144
143
  })
@@ -146,5 +145,5 @@ const ce = ({
146
145
  });
147
146
  };
148
147
  export {
149
- Te as MetadataInstanceForm
148
+ Ae as MetadataInstanceForm
150
149
  };
@@ -1,11 +1,11 @@
1
- import { ConfidenceScoreContextProvider as f } from "../../utils/confidence-score-context.js";
2
- import { getVisibleTemplates as l } from "../../utils/utils.js";
3
- import { MetadataInstance as p } from "./subcomponents/metadata-instance/metadata-instance.js";
1
+ import { ConfidenceScoreContextProvider as d } from "../../utils/confidence-score-context.js";
2
+ import { getVisibleTemplates as f } from "../../utils/utils.js";
3
+ import { MetadataInstance as l } from "./subcomponents/metadata-instance/metadata-instance.js";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  import "./subcomponents/metadata-instance-header/metadata-instance-header.js";
6
- import '../../../../styles/metadata-instance-list.css';const I = "_metadataInstanceList_bd83w_1", L = {
7
- metadataInstanceList: I
8
- }, C = ({
6
+ import '../../../../styles/metadata-instance-list.css';const p = "_metadataInstanceList_bd83w_1", I = {
7
+ metadataInstanceList: p
8
+ }, v = ({
9
9
  areAiSuggestionsAvailable: e,
10
10
  isAiSuggestionsFeatureEnabled: s,
11
11
  isBetaLanguageEnabled: n,
@@ -13,18 +13,16 @@ import '../../../../styles/metadata-instance-list.css';const I = "_metadataInsta
13
13
  templateInstances: o,
14
14
  taxonomyNodeFetcher: r,
15
15
  isAdvancedExtractAgentEnabled: m = !1,
16
- isConfidenceScoreReviewEnabled: c = !1,
17
- isExternallyOwned: d = !1
18
- }) => /* @__PURE__ */ t(f, {
16
+ isConfidenceScoreReviewEnabled: c = !1
17
+ }) => /* @__PURE__ */ t(d, {
19
18
  isConfidenceScoreReviewEnabled: c,
20
19
  children: /* @__PURE__ */ t("div", {
21
- className: L.metadataInstanceList,
22
- children: l(o).map((a) => /* @__PURE__ */ t(p, {
20
+ className: I.metadataInstanceList,
21
+ children: f(o).map((a) => /* @__PURE__ */ t(l, {
23
22
  areAiSuggestionsAvailable: e,
24
23
  isAdvancedExtractAgentEnabled: m,
25
24
  isAiSuggestionsFeatureEnabled: s,
26
25
  isBetaLanguageEnabled: n,
27
- isExternallyOwned: d,
28
26
  onEdit: i,
29
27
  taxonomyNodeFetcher: r,
30
28
  templateInstance: a
@@ -32,5 +30,5 @@ import '../../../../styles/metadata-instance-list.css';const I = "_metadataInsta
32
30
  })
33
31
  });
34
32
  export {
35
- C as MetadataInstanceList
33
+ v as MetadataInstanceList
36
34
  };
@@ -1,56 +1,54 @@
1
- import { Card as b, Divider as n } from "@box/blueprint-web";
2
- import { useState as g } from "react";
3
- import { useAutofill as H } from "../../../../utils/autofill-context.js";
4
- import { MetadataEmptyState as _ } from "../../../metadata-empty-state/metadata-empty-state.js";
5
- import { MetadataInstanceContent as M } from "../metadata-instance-content/metadata-instance-content.js";
6
- import { MetadataInstanceFooter as N } from "../metadata-instance-footer/metadata-instance-footer.js";
7
- import { MetadataInstanceHeader as x } from "../metadata-instance-header/metadata-instance-header.js";
1
+ import { Card as S, Divider as n } from "@box/blueprint-web";
2
+ import { useState as b } from "react";
3
+ import { useAutofill as g } from "../../../../utils/autofill-context.js";
4
+ import { MetadataEmptyState as H } from "../../../metadata-empty-state/metadata-empty-state.js";
5
+ import { MetadataInstanceContent as _ } from "../metadata-instance-content/metadata-instance-content.js";
6
+ import { MetadataInstanceFooter as M } from "../metadata-instance-footer/metadata-instance-footer.js";
7
+ import { MetadataInstanceHeader as N } from "../metadata-instance-header/metadata-instance-header.js";
8
8
  import { jsxs as r, jsx as o, Fragment as u } from "react/jsx-runtime";
9
- import '../../../../../../styles/metadata-instance.css';const F = "_topDivider_tzhlb_1", j = "_bottomDivider_tzhlb_5", p = {
10
- topDivider: F,
11
- bottomDivider: j
12
- }, G = ({
9
+ import '../../../../../../styles/metadata-instance.css';const x = "_topDivider_tzhlb_1", F = "_bottomDivider_tzhlb_5", p = {
10
+ topDivider: x,
11
+ bottomDivider: F
12
+ }, q = ({
13
13
  areAiSuggestionsAvailable: y,
14
14
  isAiSuggestionsFeatureEnabled: l,
15
15
  isBetaLanguageEnabled: c,
16
16
  onEdit: d,
17
17
  templateInstance: t,
18
18
  taxonomyNodeFetcher: h,
19
- isAdvancedExtractAgentEnabled: v = !1,
20
- isExternallyOwned: E
19
+ isAdvancedExtractAgentEnabled: v = !1
21
20
  }) => {
22
- const i = t.fields, m = (e) => !e.value || Array.isArray(e.value) && e.value.length === 0, f = i.every(m), V = i.some(m), A = i.length > 0, [a, s] = g(!0), {
23
- getAiSuggestions: D
24
- } = H(), S = (e) => {
25
- d(t), D(t.templateKey, t.scope, e);
21
+ const i = t.fields, m = (e) => !e.value || Array.isArray(e.value) && e.value.length === 0, E = i.every(m), f = i.some(m), V = i.length > 0, [a, s] = b(!0), {
22
+ getAiSuggestions: A
23
+ } = g(), D = (e) => {
24
+ d(t), A(t.templateKey, t.scope, e);
26
25
  };
27
- return /* @__PURE__ */ r(b, {
28
- children: [/* @__PURE__ */ o(x, {
26
+ return /* @__PURE__ */ r(S, {
27
+ children: [/* @__PURE__ */ o(N, {
29
28
  areAiSuggestionsAvailable: y,
30
29
  canEdit: t.canEdit,
31
30
  isAdvancedExtractAgentEnabled: v,
32
31
  isAiSuggestionsFeatureEnabled: l,
33
32
  isBetaLanguageEnabled: c,
34
- onAutofill: S,
33
+ onAutofill: D,
35
34
  onEdit: () => d(t),
36
35
  templateName: t?.displayName
37
36
  }), /* @__PURE__ */ o(n, {
38
37
  className: p.topDivider
39
- }), a && f ? /* @__PURE__ */ o(_, {
40
- isAnyEmptyValueHidden: A,
38
+ }), a && E ? /* @__PURE__ */ o(H, {
39
+ isAnyEmptyValueHidden: V,
41
40
  isBoxAiSuggestionsFeatureEnabled: l,
42
41
  level: "instance",
43
42
  onShowEmptyValues: () => s(!1)
44
43
  }) : /* @__PURE__ */ r(u, {
45
- children: [/* @__PURE__ */ o(M, {
46
- isExternallyOwned: E,
44
+ children: [/* @__PURE__ */ o(_, {
47
45
  shouldHideEmptyValues: a,
48
46
  taxonomyNodeFetcher: h,
49
47
  templateInstance: t
50
- }), V && /* @__PURE__ */ r(u, {
48
+ }), f && /* @__PURE__ */ r(u, {
51
49
  children: [/* @__PURE__ */ o(n, {
52
50
  className: p.bottomDivider
53
- }), /* @__PURE__ */ o(N, {
51
+ }), /* @__PURE__ */ o(M, {
54
52
  isAnyEmptyValueHidden: a,
55
53
  onHideEmptyValues: () => s(!0),
56
54
  onShowEmptyValues: () => s(!1)
@@ -60,5 +58,5 @@ import '../../../../../../styles/metadata-instance.css';const F = "_topDivider_t
60
58
  });
61
59
  };
62
60
  export {
63
- G as MetadataInstance
61
+ q as MetadataInstance
64
62
  };
@@ -1,22 +1,21 @@
1
- import { MetadataInstanceEntry as m } from "../metadata-instance-entry/metadata-instance-entry.js";
2
- import { jsx as n } from "react/jsx-runtime";
3
- import '../../../../../../styles/metadata-instance-content.css';const r = "_metadataInstanceContent_1a9zf_1", p = {
1
+ import { MetadataInstanceEntry as c } from "../metadata-instance-entry/metadata-instance-entry.js";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import '../../../../../../styles/metadata-instance-content.css';const r = "_metadataInstanceContent_1a9zf_1", m = {
4
4
  metadataInstanceContent: r
5
- }, i = ({
5
+ }, p = ({
6
6
  shouldHideEmptyValues: a,
7
- templateInstance: e,
8
- taxonomyNodeFetcher: o,
9
- isExternallyOwned: c
7
+ templateInstance: n,
8
+ taxonomyNodeFetcher: o
10
9
  }) => {
11
10
  const {
12
11
  fields: s = []
13
- } = e;
14
- return /* @__PURE__ */ n("div", {
15
- className: p.metadataInstanceContent,
16
- children: s.filter((t) => !t.hidden).map((t) => /* @__PURE__ */ n(m, {
12
+ } = n;
13
+ return /* @__PURE__ */ e("div", {
14
+ className: m.metadataInstanceContent,
15
+ children: s.filter((t) => !t.hidden).map((t) => /* @__PURE__ */ e(c, {
17
16
  confidenceScore: t.confidenceScore,
18
17
  description: t.description,
19
- isExternallyOwned: c,
18
+ isExternallyOwned: n.isExternallyOwned,
20
19
  name: t.displayName || t.key,
21
20
  scope: t.namespace,
22
21
  shouldHideEmptyValues: a,
@@ -28,5 +27,5 @@ import '../../../../../../styles/metadata-instance-content.css';const r = "_meta
28
27
  });
29
28
  };
30
29
  export {
31
- i as MetadataInstanceContent
30
+ p as MetadataInstanceContent
32
31
  };
@@ -11,8 +11,6 @@ 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;
16
14
  /** When true enables the multilevel taxonomy filed component with tree selection */
17
15
  isMultilevelTaxonomyFieldEnabled: boolean;
18
16
  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, isExternallyOwned, }: MetadataInstanceListProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MetadataInstanceList: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstances, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled, isConfidenceScoreReviewEnabled, }: 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, isExternallyOwned, }: MetadataInstanceProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MetadataInstance: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstance, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled, }: MetadataInstanceProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,5 +8,4 @@ export type MetadataInstanceProps = {
8
8
  templateInstance: MetadataTemplateInstance;
9
9
  taxonomyNodeFetcher: TaxonomyNodeFetcher;
10
10
  isAdvancedExtractAgentEnabled?: boolean;
11
- isExternallyOwned?: boolean;
12
11
  };
@@ -1,2 +1,2 @@
1
1
  import { MetadataInstanceContentProps } from './types';
2
- export declare const MetadataInstanceContent: ({ shouldHideEmptyValues, templateInstance, taxonomyNodeFetcher, isExternallyOwned, }: MetadataInstanceContentProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MetadataInstanceContent: ({ shouldHideEmptyValues, templateInstance, taxonomyNodeFetcher, }: MetadataInstanceContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { MetadataTemplateInstance } from '../../../../types';
2
2
  import { TaxonomyNodeFetcher } from '../metadata-instance-entry/types';
3
3
  export type MetadataInstanceContentProps = {
4
- isExternallyOwned?: boolean;
5
4
  shouldHideEmptyValues: boolean;
6
5
  templateInstance: MetadataTemplateInstance;
7
6
  taxonomyNodeFetcher: TaxonomyNodeFetcher;
@@ -6,7 +6,6 @@ export type MetadataInstanceListProps = {
6
6
  isBetaLanguageEnabled: boolean;
7
7
  isAdvancedExtractAgentEnabled?: boolean;
8
8
  isConfidenceScoreReviewEnabled?: boolean;
9
- isExternallyOwned?: boolean;
10
9
  onEdit: (templateInstacne: MetadataTemplateInstance) => void;
11
10
  templateInstances: MetadataTemplateInstance[];
12
11
  taxonomyNodeFetcher: TaxonomyNodeFetcher;
@@ -104,6 +104,7 @@ export type MetadataTemplateInstance = {
104
104
  scope: string;
105
105
  templateKey: string;
106
106
  type: string;
107
+ isExternallyOwned?: boolean;
107
108
  };
108
109
  export type TemplateSuggestion = Record<MetadataTemplateField['key'], MetadataTemplateField['aiSuggestion']>;
109
110
  export type AutofillSuggestions = Record<MetadataTemplateInstance['templateKey'], TemplateSuggestion>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "1.37.0",
3
+ "version": "1.38.0",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.15",
6
6
  "@box/box-ai-agent-selector": "^1.30.2",