@box/metadata-editor 0.85.0 → 0.85.3

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.
Files changed (131) hide show
  1. package/chunks/filter-dropdown-menu.module.js +4 -5
  2. package/chunks/index.js +292 -0
  3. package/chunks/message.js +18 -0
  4. package/chunks/taxonomy-ancestor-status-pill.js +33 -33
  5. package/chunks/utils2.js +7 -8
  6. package/esm/lib/components/add-metadata-template-dropdown/add-metadata-template-dropdown.js +5 -5
  7. package/esm/lib/components/add-metadata-template-dropdown/messages.js +1 -1
  8. package/esm/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.js +29 -29
  9. package/esm/lib/components/combobox-with-api-pagination/messages.js +1 -1
  10. package/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-empty-state.js +1 -1
  11. package/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-search.js +6 -6
  12. package/esm/lib/components/filter-dropdown-menu/messages.js +1 -1
  13. package/esm/lib/components/filter-instances-dropdown/filter-instances-dropdown.js +10 -11
  14. package/esm/lib/components/filter-instances-dropdown/messages.js +1 -1
  15. package/esm/lib/components/interactive-header-text/interactive-header-text.js +8 -9
  16. package/esm/lib/components/interactive-text/interactive-text.js +11 -12
  17. package/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.js +14 -14
  18. package/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.js +1 -1
  19. package/esm/lib/components/metadata-editor-fields/components/metadata-date-field/metadata-date-field.js +1 -1
  20. package/esm/lib/components/metadata-editor-fields/components/metadata-enum-field/metadata-enum-field.js +28 -27
  21. package/esm/lib/components/metadata-editor-fields/components/metadata-float-field/use-float-validation.js +6 -6
  22. package/esm/lib/components/metadata-editor-fields/components/metadata-multi-select-field/metadata-multi-select-field.js +5 -5
  23. package/esm/lib/components/metadata-editor-fields/components/metadata-string-field/metadata-string-field.js +9 -9
  24. package/esm/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/metadata-taxonomy-field.js +5 -5
  25. package/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/messages.js +1 -1
  26. package/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/update-mode-field-wrapper.js +2 -3
  27. package/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +567 -70
  28. package/esm/lib/components/metadata-editor-fields/metadata-editor-fields.js +19 -18
  29. package/esm/lib/components/metadata-empty-state/messages.js +1 -1
  30. package/esm/lib/components/metadata-empty-state/metadata-empty-state.js +1 -1
  31. package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/custom-instance.js +13 -14
  32. package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/messages.js +1 -1
  33. package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.js +4 -5
  34. package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/messages.js +1 -1
  35. package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.js +14 -14
  36. package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.js +1 -1
  37. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +27 -28
  38. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/messages.js +1 -1
  39. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js +10 -11
  40. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/messages.js +1 -1
  41. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js +4 -5
  42. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.js +1 -1
  43. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +16 -17
  44. package/esm/lib/components/metadata-instance-list/metadata-instance-list.js +8 -9
  45. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.js +7 -8
  46. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.js +3 -4
  47. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.js +8 -9
  48. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.js +3 -3
  49. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-ancestor-status-pill.js +4 -3
  50. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/messages.js +1 -1
  51. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/metadata-instance-footer.js +6 -7
  52. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/messages.js +1 -1
  53. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js +10 -11
  54. package/esm/lib/components/unsaved-changes-modal/messages.js +1 -1
  55. package/esm/lib/components/unsaved-changes-modal/unsaved-changes-modal.js +19 -18
  56. package/esm/lib/messages.js +1 -1
  57. package/esm/lib/metadata-editor.js +4 -5
  58. package/package.json +5 -5
  59. package/styles/ai-suggestion-field.css +1 -1
  60. package/styles/utils.css +1 -1
  61. package/types/lib/components/add-metadata-template-dropdown/add-metadata-template-dropdown.d.ts +1 -1
  62. package/types/lib/components/add-metadata-template-dropdown/types.d.ts +1 -1
  63. package/types/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.d.ts +5 -5
  64. package/types/lib/components/combobox-with-api-pagination/types.d.ts +2 -2
  65. package/types/lib/components/filter-dropdown-menu/filter-dropdown-menu-content.d.ts +1 -1
  66. package/types/lib/components/filter-dropdown-menu/filter-dropdown-menu-item.d.ts +1 -1
  67. package/types/lib/components/filter-dropdown-menu/filter-dropdown-menu-list.d.ts +1 -1
  68. package/types/lib/components/filter-dropdown-menu/filter-dropdown-menu-root.d.ts +1 -1
  69. package/types/lib/components/filter-dropdown-menu/filter-dropdown-menu-search.d.ts +1 -1
  70. package/types/lib/components/filter-dropdown-menu/filter-dropdown-menu-trigger.d.ts +1 -1
  71. package/types/lib/components/filter-dropdown-menu/index.d.ts +6 -6
  72. package/types/lib/components/filter-instances-dropdown/filter-instances-dropdown.d.ts +1 -1
  73. package/types/lib/components/filter-instances-dropdown/types.d.ts +1 -1
  74. package/types/lib/components/interactive-header-text/interactive-header-text.d.ts +1 -1
  75. package/types/lib/components/interactive-text/interactive-text.d.ts +1 -1
  76. package/types/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.d.ts +1 -1
  77. package/types/lib/components/metadata-editor-fields/components/ai-suggestion-field/types.d.ts +1 -1
  78. package/types/lib/components/metadata-editor-fields/components/ai-suggestion-field/utils.d.ts +2 -2
  79. package/types/lib/components/metadata-editor-fields/components/metadata-date-field/metadata-date-field.d.ts +2 -2
  80. package/types/lib/components/metadata-editor-fields/components/metadata-date-field/types.d.ts +1 -1
  81. package/types/lib/components/metadata-editor-fields/components/metadata-enum-field/metadata-enum-field.d.ts +2 -2
  82. package/types/lib/components/metadata-editor-fields/components/metadata-float-field/metadata-float-field.d.ts +2 -2
  83. package/types/lib/components/metadata-editor-fields/components/metadata-multi-select-field/metadata-multi-select-field.d.ts +2 -2
  84. package/types/lib/components/metadata-editor-fields/components/metadata-string-field/metadata-string-field.d.ts +2 -2
  85. package/types/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/metadata-taxonomy-field.d.ts +2 -2
  86. package/types/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/types.d.ts +2 -2
  87. package/types/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/update-mode-field-wrapper.d.ts +2 -2
  88. package/types/lib/components/metadata-editor-fields/editor-field-types.d.ts +6 -6
  89. package/types/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.d.ts +4 -4
  90. package/types/lib/components/metadata-editor-fields/metadata-editor-fields.d.ts +1 -1
  91. package/types/lib/components/metadata-editor-fields/types.d.ts +2 -2
  92. package/types/lib/components/metadata-editor-fields/utils.d.ts +1 -1
  93. package/types/lib/components/metadata-empty-state/metadata-empty-state.d.ts +1 -1
  94. package/types/lib/components/metadata-instance-editor/subcomponents/custom-instance/custom-instance.d.ts +1 -1
  95. package/types/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.d.ts +1 -1
  96. package/types/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.d.ts +1 -1
  97. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form-card-wrapper.d.ts +1 -1
  98. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.d.ts +1 -1
  99. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +3 -3
  100. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/utils.d.ts +3 -3
  101. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.d.ts +1 -1
  102. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/types.d.ts +1 -1
  103. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.d.ts +1 -1
  104. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.d.ts +1 -1
  105. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/types.d.ts +1 -1
  106. package/types/lib/components/metadata-instance-editor/types.d.ts +1 -1
  107. package/types/lib/components/metadata-instance-list/metadata-instance-list.d.ts +1 -1
  108. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.d.ts +1 -1
  109. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/types.d.ts +2 -2
  110. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.d.ts +1 -1
  111. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/types.d.ts +2 -2
  112. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-entry-display.d.ts +1 -1
  113. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.d.ts +1 -1
  114. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-ancestor-status-pill.d.ts +1 -1
  115. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-value.d.ts +1 -1
  116. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/types.d.ts +2 -2
  117. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/metadata-instance-footer.d.ts +1 -1
  118. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.d.ts +1 -1
  119. package/types/lib/components/metadata-instance-list/types.d.ts +2 -2
  120. package/types/lib/components/unsaved-changes-modal/types.d.ts +1 -1
  121. package/types/lib/components/unsaved-changes-modal/unsaved-changes-modal.d.ts +1 -1
  122. package/types/lib/defaults.d.ts +1 -1
  123. package/types/lib/mappers.d.ts +2 -2
  124. package/types/lib/test-utils/formik-wrapper.d.ts +3 -3
  125. package/types/lib/test-utils/sample-data.d.ts +1 -1
  126. package/types/lib/test-utils/test-utils.d.ts +1 -1
  127. package/types/lib/types.d.ts +1 -1
  128. package/types/lib/utils/api-wrapper.d.ts +1 -1
  129. package/types/lib/utils/autofill-context.d.ts +2 -2
  130. package/types/lib/utils/convertDate.d.ts +1 -1
  131. package/types/lib/utils/utils.d.ts +1 -1
@@ -1,4 +1,3 @@
1
- import "../../../../../../styles/metadata-instance.css";
2
1
  import { Card as A, Divider as u } from "@box/blueprint-web";
3
2
  import { useState as D } from "react";
4
3
  import { useAutofill as S } from "../../../../utils/autofill-context.js";
@@ -7,20 +6,20 @@ import { MetadataInstanceContent as g } from "../metadata-instance-content/metad
7
6
  import { MetadataInstanceFooter as H } from "../metadata-instance-footer/metadata-instance-footer.js";
8
7
  import { MetadataInstanceHeader as _ } from "../metadata-instance-header/metadata-instance-header.js";
9
8
  import { jsxs as a, jsx as t, Fragment as n } from "react/jsx-runtime";
10
- const M = "_topDivider_tzhlb_1", N = "_bottomDivider_tzhlb_5", y = {
9
+ import '../../../../../../styles/metadata-instance.css';const M = "_topDivider_tzhlb_1", N = "_bottomDivider_tzhlb_5", y = {
11
10
  topDivider: M,
12
11
  bottomDivider: N
13
- }, k = ({
12
+ }, W = ({
14
13
  areAiSuggestionsAvailable: p,
15
14
  isAiSuggestionsFeatureEnabled: d,
16
- onEdit: m,
15
+ onEdit: l,
17
16
  templateInstance: o,
18
17
  taxonomyNodeFetcher: c
19
18
  }) => {
20
- const i = o.fields, l = (s) => !s.value || Array.isArray(s.value) && s.value.length === 0, h = i.every(l), v = i.some(l), E = i.length > 0, [e, r] = D(!0), {
19
+ const i = o.fields, m = (s) => !s.value || Array.isArray(s.value) && s.value.length === 0, h = i.every(m), v = i.some(m), E = i.length > 0, [e, r] = D(!0), {
21
20
  getAiSuggestions: f
22
21
  } = S(), V = () => {
23
- m(o), f(o.templateKey, o.scope);
22
+ l(o), f(o.templateKey, o.scope);
24
23
  };
25
24
  return /* @__PURE__ */ a(A, {
26
25
  children: [/* @__PURE__ */ t(_, {
@@ -28,7 +27,7 @@ const M = "_topDivider_tzhlb_1", N = "_bottomDivider_tzhlb_5", y = {
28
27
  canEdit: o.canEdit,
29
28
  isAiSuggestionsFeatureEnabled: d,
30
29
  onAutofill: V,
31
- onEdit: () => m(o),
30
+ onEdit: () => l(o),
32
31
  templateName: o == null ? void 0 : o.displayName
33
32
  }), /* @__PURE__ */ t(u, {
34
33
  className: y.topDivider
@@ -55,5 +54,5 @@ const M = "_topDivider_tzhlb_1", N = "_bottomDivider_tzhlb_5", y = {
55
54
  });
56
55
  };
57
56
  export {
58
- k as MetadataInstance
57
+ W as MetadataInstance
59
58
  };
@@ -1,9 +1,8 @@
1
- import "../../../../../../styles/metadata-instance-content.css";
2
1
  import { MetadataInstanceEntry as c } from "../metadata-instance-entry/metadata-instance-entry.js";
3
2
  import { jsx as a } from "react/jsx-runtime";
4
- const m = "_metadataInstanceContent_1a9zf_1", r = {
3
+ import '../../../../../../styles/metadata-instance-content.css';const m = "_metadataInstanceContent_1a9zf_1", r = {
5
4
  metadataInstanceContent: m
6
- }, i = ({
5
+ }, d = ({
7
6
  shouldHideEmptyValues: n,
8
7
  templateInstance: e,
9
8
  taxonomyNodeFetcher: o
@@ -26,5 +25,5 @@ const m = "_metadataInstanceContent_1a9zf_1", r = {
26
25
  });
27
26
  };
28
27
  export {
29
- i as MetadataInstanceContent
28
+ d as MetadataInstanceContent
30
29
  };
@@ -1,21 +1,20 @@
1
- import "../../../../../../styles/metadata-instance-entry.css";
2
1
  import { Text as f } from "@box/blueprint-web";
3
- import { FormattedDate as y } from "react-intl";
2
+ import { F as y } from "../../../../../../chunks/index.js";
4
3
  import { convertISOStringToUTCDate as l } from "../../../../utils/convertDate.js";
5
4
  import p from "../../../interactive-text/interactive-text.js";
6
5
  import { MetadataEntryDisplay as u } from "./metadata-entry-display.js";
7
6
  import { jsxs as x, jsx as r } from "react/jsx-runtime";
8
- const g = "_metadataInstanceEntry_gwoh6_1", h = {
7
+ import '../../../../../../styles/metadata-instance-entry.css';const g = "_metadataInstanceEntry_gwoh6_1", h = {
9
8
  metadataInstanceEntry: g
10
- }, V = ({
9
+ }, O = ({
11
10
  description: n,
12
11
  name: a,
13
12
  shouldHideEmptyValues: i,
14
13
  type: o,
15
14
  value: t,
16
15
  taxonomyNodeFetcher: m,
17
- taxonomyKey: c,
18
- scope: s
16
+ taxonomyKey: s,
17
+ scope: c
19
18
  }) => {
20
19
  const e = (() => {
21
20
  if (typeof t == "number")
@@ -50,8 +49,8 @@ const g = "_metadataInstanceEntry_gwoh6_1", h = {
50
49
  }) : a
51
50
  }), /* @__PURE__ */ r(u, {
52
51
  formattedValue: e,
53
- scope: s,
54
- taxonomyKey: c,
52
+ scope: c,
53
+ taxonomyKey: s,
55
54
  taxonomyNodeFetcher: m,
56
55
  type: o,
57
56
  value: t
@@ -59,5 +58,5 @@ const g = "_metadataInstanceEntry_gwoh6_1", h = {
59
58
  });
60
59
  };
61
60
  export {
62
- V as MetadataInstanceEntry
61
+ O as MetadataInstanceEntry
63
62
  };
@@ -1,5 +1,5 @@
1
- import { defineMessages as e } from "react-intl";
2
- const o = e({
1
+ import { d as e } from "../../../../../../../chunks/index.js";
2
+ const s = e({
3
3
  loadingResultsErrorAction: {
4
4
  id: "taxonomyAncestorStatusPill.errorAction",
5
5
  defaultMessage: "Reload"
@@ -22,5 +22,5 @@ const o = e({
22
22
  }
23
23
  });
24
24
  export {
25
- o as default
25
+ s as default
26
26
  };
@@ -2,10 +2,11 @@ import "@box/blueprint-web";
2
2
  import "@box/blueprint-web-assets/icons/Fill";
3
3
  import "lodash/orderBy";
4
4
  import "react";
5
- import "react-intl";
5
+ import "../../../../../../../chunks/index.js";
6
6
  import "./messages.js";
7
- import { T as l } from "../../../../../../../chunks/taxonomy-ancestor-status-pill.js";
7
+ import { T as n } from "../../../../../../../chunks/taxonomy-ancestor-status-pill.js";
8
8
  import "react/jsx-runtime";
9
+ import "../../../../../../../chunks/message.js";
9
10
  export {
10
- l as TaxonomyAncestorStatusPill
11
+ n as TaxonomyAncestorStatusPill
11
12
  };
@@ -1,4 +1,4 @@
1
- import { defineMessages as e } from "react-intl";
1
+ import { d as e } from "../../../../../../chunks/index.js";
2
2
  const t = e({
3
3
  showEmptyValuesCTA: {
4
4
  id: "metadataEditor.viewInstance.metadataInstanceFooter.showEmptyValuesCTA",
@@ -1,12 +1,11 @@
1
- import "../../../../../../styles/metadata-instance-footer.css";
2
1
  import { TextButton as o } from "@box/blueprint-web";
3
- import { useIntl as c } from "react-intl";
2
+ import { u as c } from "../../../../../../chunks/index.js";
4
3
  import s from "./messages.js";
5
4
  import { jsx as t } from "react/jsx-runtime";
6
- const i = "_metadataInstanceFooter_6auqo_1", u = "_button_6auqo_5", a = {
7
- metadataInstanceFooter: i,
8
- button: u
9
- }, f = ({
5
+ import '../../../../../../styles/metadata-instance-footer.css';const u = "_metadataInstanceFooter_6auqo_1", d = "_button_6auqo_5", a = {
6
+ metadataInstanceFooter: u,
7
+ button: d
8
+ }, T = ({
10
9
  isAnyEmptyValueHidden: n,
11
10
  onHideEmptyValues: r,
12
11
  onShowEmptyValues: m
@@ -28,5 +27,5 @@ const i = "_metadataInstanceFooter_6auqo_1", u = "_button_6auqo_5", a = {
28
27
  });
29
28
  };
30
29
  export {
31
- f as MetadataInstanceFooter
30
+ T as MetadataInstanceFooter
32
31
  };
@@ -1,4 +1,4 @@
1
- import { defineMessages as t } from "react-intl";
1
+ import { d as t } from "../../../../../../chunks/index.js";
2
2
  const e = t({
3
3
  customInstanceTitle: {
4
4
  id: "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle",
@@ -1,16 +1,15 @@
1
- import "../../../../../../styles/metadata-instance-header.css";
2
- import { Tooltip as i, IconButton as r } from "@box/blueprint-web";
1
+ import { Tooltip as i, IconButton as s } from "@box/blueprint-web";
3
2
  import { Pencil as p } from "@box/blueprint-web-assets/icons/Line";
4
3
  import { BoxAiLogo as I } from "@box/blueprint-web-assets/icons/Logo";
5
- import { useIntl as g } from "react-intl";
4
+ import { u as g } from "../../../../../../chunks/index.js";
6
5
  import _ from "../../../interactive-header-text/interactive-header-text.js";
7
6
  import o from "./messages.js";
8
- import { jsxs as s, jsx as a } from "react/jsx-runtime";
9
- const x = "_metadataInstanceHeader_54pdx_1", b = "_iconButtonsContainer_54pdx_6", A = "_title_54pdx_14", e = {
7
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
8
+ import '../../../../../../styles/metadata-instance-header.css';const x = "_metadataInstanceHeader_54pdx_1", b = "_iconButtonsContainer_54pdx_6", A = "_title_54pdx_14", e = {
10
9
  metadataInstanceHeader: x,
11
10
  iconButtonsContainer: b,
12
11
  title: A
13
- }, k = ({
12
+ }, j = ({
14
13
  areAiSuggestionsAvailable: c,
15
14
  canEdit: l,
16
15
  isAiSuggestionsFeatureEnabled: d,
@@ -19,16 +18,16 @@ const x = "_metadataInstanceHeader_54pdx_1", b = "_iconButtonsContainer_54pdx_6"
19
18
  templateName: n
20
19
  }) => {
21
20
  const t = g(), f = n || t.formatMessage(o.customInstanceTitle), B = d && n;
22
- return /* @__PURE__ */ s("div", {
21
+ return /* @__PURE__ */ r("div", {
23
22
  className: e.metadataInstanceHeader,
24
23
  children: [/* @__PURE__ */ a(_, {
25
24
  className: e.title,
26
25
  title: f
27
- }), l && /* @__PURE__ */ s("div", {
26
+ }), l && /* @__PURE__ */ r("div", {
28
27
  className: e.iconButtonsContainer,
29
28
  children: [B && /* @__PURE__ */ a(i, {
30
29
  content: t.formatMessage(o.autofillButtonTooltip),
31
- children: /* @__PURE__ */ a(r, {
30
+ children: /* @__PURE__ */ a(s, {
32
31
  "aria-label": t.formatMessage(o.autofillButtonAriaLabel, {
33
32
  templateName: n
34
33
  }),
@@ -40,7 +39,7 @@ const x = "_metadataInstanceHeader_54pdx_1", b = "_iconButtonsContainer_54pdx_6"
40
39
  })
41
40
  }), /* @__PURE__ */ a(i, {
42
41
  content: t.formatMessage(o.editButtonTooltip),
43
- children: /* @__PURE__ */ a(r, {
42
+ children: /* @__PURE__ */ a(s, {
44
43
  "aria-label": t.formatMessage(o.editButtonAriaLabel, {
45
44
  templateName: n
46
45
  }),
@@ -53,5 +52,5 @@ const x = "_metadataInstanceHeader_54pdx_1", b = "_iconButtonsContainer_54pdx_6"
53
52
  });
54
53
  };
55
54
  export {
56
- k as MetadataInstanceHeader
55
+ j as MetadataInstanceHeader
57
56
  };
@@ -1,4 +1,4 @@
1
- import { defineMessages as a } from "react-intl";
1
+ import { d as a } from "../../../../chunks/index.js";
2
2
  const d = a({
3
3
  unsavedChangesModalHeader: {
4
4
  id: "metadataEditor.unsavedChangesModal.header",
@@ -1,52 +1,53 @@
1
1
  import { Modal as e } from "@box/blueprint-web";
2
2
  import { useState as M, useEffect as p, useCallback as d } from "react";
3
- import { useIntl as v, FormattedMessage as h } from "react-intl";
4
- import n from "./messages.js";
5
- import { jsx as a, jsxs as C } from "react/jsx-runtime";
3
+ import { u as v } from "../../../../chunks/index.js";
4
+ import o from "./messages.js";
5
+ import { jsx as a, jsxs as m } from "react/jsx-runtime";
6
+ import { M as h } from "../../../../chunks/message.js";
6
7
  function x({
7
8
  onBackToEdit: i,
8
9
  onDiscardChanges: c,
9
- defaultOpen: g = !0,
10
- open: r = g
10
+ defaultOpen: C = !0,
11
+ open: r = C
11
12
  }) {
12
- const t = v(), [m, o] = M(r);
13
- p(() => o(r), [r]);
13
+ const t = v(), [g, n] = M(r);
14
+ p(() => n(r), [r]);
14
15
  const l = d(() => {
15
- i(), o(!1);
16
+ i(), n(!1);
16
17
  }, [i]), u = d(() => {
17
- c(), o(!1);
18
+ c(), n(!1);
18
19
  }, [c]), f = d((s) => {
19
- o(s), s || l();
20
+ n(s), s || l();
20
21
  }, [l]);
21
22
  return /* @__PURE__ */ a(e, {
22
23
  modal: !0,
23
24
  onOpenChange: f,
24
- open: m,
25
- children: /* @__PURE__ */ C(e.Content, {
25
+ open: g,
26
+ children: /* @__PURE__ */ m(e.Content, {
26
27
  onEscapeKeyDown: (s) => s.stopPropagation(),
27
28
  size: "small",
28
29
  children: [/* @__PURE__ */ a(e.Header, {
29
30
  children: /* @__PURE__ */ a(h, {
30
- ...n.unsavedChangesModalHeader
31
+ ...o.unsavedChangesModalHeader
31
32
  })
32
33
  }), /* @__PURE__ */ a(e.ScrollableContainer, {
33
34
  children: /* @__PURE__ */ a(e.Body, {
34
35
  children: /* @__PURE__ */ a(h, {
35
- ...n.unsavedChangesModalBody
36
+ ...o.unsavedChangesModalBody
36
37
  })
37
38
  })
38
- }), /* @__PURE__ */ C(e.Footer, {
39
+ }), /* @__PURE__ */ m(e.Footer, {
39
40
  children: [/* @__PURE__ */ a(e.Footer.SecondaryButton, {
40
41
  onClick: u,
41
42
  size: "large",
42
- children: t.formatMessage(n.unsavedChangesModalDiscardChangesCTA)
43
+ children: t.formatMessage(o.unsavedChangesModalDiscardChangesCTA)
43
44
  }), /* @__PURE__ */ a(e.Footer.PrimaryButton, {
44
45
  onClick: l,
45
46
  size: "large",
46
- children: t.formatMessage(n.unsavedChangesModalContinueEditingCTA)
47
+ children: t.formatMessage(o.unsavedChangesModalContinueEditingCTA)
47
48
  })]
48
49
  }), /* @__PURE__ */ a(e.Close, {
49
- "aria-label": t.formatMessage(n.unsavedChangesModalCloseLabel)
50
+ "aria-label": t.formatMessage(o.unsavedChangesModalCloseLabel)
50
51
  })]
51
52
  })
52
53
  });
@@ -1,4 +1,4 @@
1
- import { defineMessages as e } from "react-intl";
1
+ import { d as e } from "../../chunks/index.js";
2
2
  const t = e({
3
3
  afterDateValidationError: {
4
4
  id: "groupSharedFeatures.metadataEditor.metadataEditorFields.afterDateValidationError",
@@ -1,7 +1,6 @@
1
- import "../../styles/metadata-editor.css";
2
1
  import { jsx as t } from "react/jsx-runtime";
3
- const e = {};
4
- function i(o) {
2
+ import '../../styles/metadata-editor.css';const e = {};
3
+ function r(a) {
5
4
  return /* @__PURE__ */ t("div", {
6
5
  className: e.container,
7
6
  children: /* @__PURE__ */ t("h1", {
@@ -10,6 +9,6 @@ function i(o) {
10
9
  });
11
10
  }
12
11
  export {
13
- i as MetadataEditor,
14
- i as default
12
+ r as MetadataEditor,
13
+ r as default
15
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.85.0",
3
+ "version": "0.85.3",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.15",
6
6
  "@box/blueprint-web": "^7.30.3",
@@ -14,9 +14,9 @@
14
14
  "devDependencies": {
15
15
  "@ariakit/react": "0.4.15",
16
16
  "@box/babel-plugin-target-attributes": "1.3.0",
17
- "@box/blueprint-web": "^9.16.0",
18
- "@box/blueprint-web-assets": "^4.32.0",
19
- "@box/storybook-utils": "^0.8.1",
17
+ "@box/blueprint-web": "^9.16.3",
18
+ "@box/blueprint-web-assets": "^4.33.0",
19
+ "@box/storybook-utils": "^0.8.2",
20
20
  "@testing-library/react": "^15.0.6",
21
21
  "react": "^18.3.0",
22
22
  "react-dom": "^18.3.0",
@@ -53,5 +53,5 @@
53
53
  "**/*.css"
54
54
  ],
55
55
  "license": "SEE LICENSE IN LICENSE",
56
- "gitHead": "0562e6ba3a1ef9444457cf80419dbcc625eee7c0"
56
+ "gitHead": "b16d18a1af84c9a7afd61816fdd396f151e317f0"
57
57
  }
@@ -1 +1 @@
1
- ._wrapperGradient_t2yak_1{background:linear-gradient(135deg,#fe03dc 0%,#2784fa 100%);border-radius:0 0 var(--radius-2) var(--radius-2)}._wrapperGradient_t2yak_1 ._wrapper_t2yak_1{display:flex;justify-content:space-between;align-items:center;-webkit-user-select:none;user-select:none;padding:var(--space-2) var(--space-3);position:relative;box-sizing:border-box;background:var(--box-blue-02);background-clip:padding-box;border:var(--border-1) solid transparent;border-radius:inherit}._wrapperGradient_t2yak_1 ._wrapper_t2yak_1 ._buttons_t2yak_18{display:flex;gap:var(--space-1)}._wrapperGradient_t2yak_1 ._wrapper_t2yak_1 ._selectTrigger_t2yak_22{width:var(--size-6);height:var(--size-6)}._wrapperGradient_t2yak_1 ._wrapper_t2yak_1>div>p{overflow-wrap:anywhere}
1
+ ._wrapperGradient_t2yak_1{background:linear-gradient(135deg,#fe03dc,#2784fa);border-radius:0 0 var(--radius-2) var(--radius-2)}._wrapperGradient_t2yak_1 ._wrapper_t2yak_1{display:flex;justify-content:space-between;align-items:center;-webkit-user-select:none;user-select:none;padding:var(--space-2) var(--space-3);position:relative;box-sizing:border-box;background:var(--box-blue-02);background-clip:padding-box;border:var(--border-1) solid transparent;border-radius:inherit}._wrapperGradient_t2yak_1 ._wrapper_t2yak_1 ._buttons_t2yak_18{display:flex;gap:var(--space-1)}._wrapperGradient_t2yak_1 ._wrapper_t2yak_1 ._selectTrigger_t2yak_22{width:var(--size-6);height:var(--size-6)}._wrapperGradient_t2yak_1 ._wrapper_t2yak_1>div>p{overflow-wrap:anywhere}
package/styles/utils.css CHANGED
@@ -1 +1 @@
1
- ._noAttributesText_1ggnw_1{text-align:center}._fieldWrapper_1ggnw_5{isolation:isolate;position:relative}._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>input,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>button,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>div[role=group]>div,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>div>div{border-bottom:none!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>input:not(:disabled):not(:focus-visible):not(._error_1ggnw_18):hover,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>button:not(:disabled):not(:focus-visible):not(._error_1ggnw_18):hover,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>div[role=group]>div:not(:disabled):not(:focus-visible):not(._error_1ggnw_18):hover,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>div>div:not(:disabled):not(:focus-visible):not(._error_1ggnw_18):hover{border-bottom:none}._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10 div[role=group]>div{margin-left:var(--border-1);margin-right:var(--border-1)}._fieldWrapper_1ggnw_5 ._dateField_1ggnw_30>div[role=group]>div{padding-inline:.75rem}._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>._comboboxContainer_1ggnw_34,._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>input,._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>button,._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>div[role=group]>div,._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>div>div{border:double var(--border-1) transparent!important;box-sizing:border-box!important;border-radius:var(--radius-2);background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#fe03dc 0%,#2784fa 100%)!important;background-origin:border-box!important;background-clip:padding-box,border-box!important;outline:none}._labelWrapper_1ggnw_48{width:100%;display:flex;align-items:baseline;justify-content:space-between}._labelWrapper_1ggnw_48 ._labelText_1ggnw_54{flex:unset!important}._labelWrapper_1ggnw_48 ._labelIcon_1ggnw_57{margin-inline-end:var(--space-3);margin-inline-start:var(--space-3);height:var(--space-4);width:var(--space-4)}
1
+ ._noAttributesText_1ggnw_1{text-align:center}._fieldWrapper_1ggnw_5{isolation:isolate;position:relative}._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>input,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>button,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>div[role=group]>div,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>div>div{border-bottom:none!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>input:not(:disabled):not(:focus-visible):not(._error_1ggnw_18):hover,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>button:not(:disabled):not(:focus-visible):not(._error_1ggnw_18):hover,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>div[role=group]>div:not(:disabled):not(:focus-visible):not(._error_1ggnw_18):hover,._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10>div>div:not(:disabled):not(:focus-visible):not(._error_1ggnw_18):hover{border-bottom:none}._fieldWrapper_1ggnw_5 ._hasSuggestion_1ggnw_10 div[role=group]>div{margin-left:var(--border-1);margin-right:var(--border-1)}._fieldWrapper_1ggnw_5 ._dateField_1ggnw_30>div[role=group]>div{padding-inline:.75rem}._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>._comboboxContainer_1ggnw_34,._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>input,._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>button,._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>div[role=group]>div,._fieldWrapper_1ggnw_5 ._suggestionApplied_1ggnw_34>div>div{border:double var(--border-1) transparent!important;box-sizing:border-box!important;border-radius:var(--radius-2);background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#fe03dc,#2784fa)!important;background-origin:border-box!important;background-clip:padding-box,border-box!important;outline:none}._labelWrapper_1ggnw_48{width:100%;display:flex;align-items:baseline;justify-content:space-between}._labelWrapper_1ggnw_48 ._labelText_1ggnw_54{flex:unset!important}._labelWrapper_1ggnw_48 ._labelIcon_1ggnw_57{margin-inline-end:var(--space-3);margin-inline-start:var(--space-3);height:var(--space-4);width:var(--space-4)}
@@ -1,2 +1,2 @@
1
- import { type AddMetadataTemplateDropdownProps } from './types';
1
+ import { AddMetadataTemplateDropdownProps } from './types';
2
2
  export declare function AddMetadataTemplateDropdown({ availableTemplates, onSelect, selectedTemplates, }: AddMetadataTemplateDropdownProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type MetadataTemplate } from '../../types';
1
+ import { MetadataTemplate } from '../../types';
2
2
  export type AddMetadataTemplateDropdownProps = {
3
3
  availableTemplates: MetadataTemplate[];
4
4
  selectedTemplates: MetadataTemplate[];
@@ -1,9 +1,9 @@
1
- import { type BaseOptionType } from './types';
2
- export declare const ComboboxWithApiPagination: import("react").ForwardRefExoticComponent<{
3
- defaultFetcher(input: import("./types").PaginationQueryInput): Promise<import("./types").FetcherResponse<BaseOptionType>>;
1
+ import { BaseOptionType } from './types';
2
+ export declare const ComboboxWithApiPagination: import('react').ForwardRefExoticComponent<{
3
+ defaultFetcher(input: import('./types').PaginationQueryInput): Promise<import('./types').FetcherResponse<BaseOptionType>>;
4
4
  placeholder?: string;
5
5
  includeTextInputOption?: boolean;
6
- noResultMessage?: import("react").ReactElement | string;
6
+ noResultMessage?: import('react').ReactElement | string;
7
7
  onInputValueChange?: (inputValue: string) => void;
8
8
  multiselect?: boolean;
9
9
  onValueChange?: (selectedOptions: BaseOptionType[]) => void;
@@ -14,4 +14,4 @@ export declare const ComboboxWithApiPagination: import("react").ForwardRefExotic
14
14
  portalElement?: HTMLElement | (() => HTMLElement);
15
15
  experimentalVirtualization?: boolean;
16
16
  className?: string;
17
- } & import("@box/blueprint-web").Labelable & import("react").RefAttributes<HTMLInputElement>>;
17
+ } & import('@box/blueprint-web').Labelable & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
- import { type Labelable } from '@box/blueprint-web/src/lib/util-components/labelable/types';
2
- import { type ReactElement } from 'react';
1
+ import { Labelable } from '@box/blueprint-web/src/lib/util-components/labelable/types';
2
+ import { ReactElement } from 'react';
3
3
  export interface PaginationQueryInput {
4
4
  marker?: string;
5
5
  searchInput?: string;
@@ -1,4 +1,4 @@
1
- import { type MenuProps } from '@ariakit/react';
1
+ import { MenuProps } from '@ariakit/react';
2
2
  export type FilterDropdownMenuContentProps = MenuProps;
3
3
  /**
4
4
  * Based on Ariakit [Menu](https://ariakit.org/reference/menu)
@@ -1,4 +1,4 @@
1
- import { type ComboboxItemProps } from '@ariakit/react';
1
+ import { ComboboxItemProps } from '@ariakit/react';
2
2
  export type FilterDropdownMenuItemProps = ComboboxItemProps;
3
3
  /**
4
4
  * Based on Ariakit [ComboboxItem](https://ariakit.org/reference/combobox-item)
@@ -1,4 +1,4 @@
1
- import { type ComboboxListProps } from '@ariakit/react';
1
+ import { ComboboxListProps } from '@ariakit/react';
2
2
  export type FilterDropdownMenuListProps = ComboboxListProps;
3
3
  /**
4
4
  * Based on Ariakit [ComboboxList](https://ariakit.org/reference/combobox-list)
@@ -1,4 +1,4 @@
1
- import { type ComboboxProviderProps } from '@ariakit/react';
1
+ import { ComboboxProviderProps } from '@ariakit/react';
2
2
  export type FilterDropdownMenuRootProps = ComboboxProviderProps;
3
3
  /**
4
4
  * The Filtered Dropdown Menu component displays a menu to the user, such as a set of actions or functions—triggered by a button.
@@ -1,4 +1,4 @@
1
- import { type ComboboxProps } from '@ariakit/react';
1
+ import { ComboboxProps } from '@ariakit/react';
2
2
  export type FilterDropdownMenuSearchProps = ComboboxProps;
3
3
  /**
4
4
  * The Search Input for Filtered Dropdown Menu component
@@ -1,4 +1,4 @@
1
- import { type ReactElement } from 'react';
1
+ import { ReactElement } from 'react';
2
2
  export type FilterDropdownMenuTriggerProps = {
3
3
  triggerButton: ReactElement;
4
4
  };
@@ -1,26 +1,26 @@
1
1
  export declare const FilterDropdownMenu: {
2
2
  Root: {
3
- (props: import("@ariakit/react").ComboboxProviderProps): import("react/jsx-runtime").JSX.Element;
3
+ (props: import('@ariakit/react').ComboboxProviderProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
6
6
  Trigger: {
7
- ({ triggerButton, ...rest }: import("./filter-dropdown-menu-trigger").FilterDropdownMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
7
+ ({ triggerButton, ...rest }: import('./filter-dropdown-menu-trigger').FilterDropdownMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
8
8
  displayName: string;
9
9
  };
10
10
  Content: {
11
- (props: import("@ariakit/react").MenuProps): import("react/jsx-runtime").JSX.Element;
11
+ (props: import('@ariakit/react').MenuProps): import("react/jsx-runtime").JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  Item: {
15
- (props: import("@ariakit/react").ComboboxItemProps): import("react/jsx-runtime").JSX.Element;
15
+ (props: import('@ariakit/react').ComboboxItemProps): import("react/jsx-runtime").JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  List: {
19
- (props: import("@ariakit/react").ComboboxListProps): import("react/jsx-runtime").JSX.Element;
19
+ (props: import('@ariakit/react').ComboboxListProps): import("react/jsx-runtime").JSX.Element;
20
20
  displayName: string;
21
21
  };
22
22
  Search: {
23
- (props: import("@ariakit/react").ComboboxProps): import("react/jsx-runtime").JSX.Element;
23
+ (props: import('@ariakit/react').ComboboxProps): import("react/jsx-runtime").JSX.Element;
24
24
  displayName: string;
25
25
  };
26
26
  EmptyState: {
@@ -1,2 +1,2 @@
1
- import { type FilterInstancesDropdownProps } from './types';
1
+ import { FilterInstancesDropdownProps } from './types';
2
2
  export declare function FilterInstancesDropdown({ appliedTemplates, selectedTemplates, setSelectedTemplates, }: FilterInstancesDropdownProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type MetadataTemplate } from '../../types';
1
+ import { MetadataTemplate } from '../../types';
2
2
  export type FilterInstancesDropdownProps = {
3
3
  appliedTemplates: MetadataTemplate[];
4
4
  selectedTemplates: MetadataTemplate['id'][];
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export interface InteractiveHeaderTextProps {
3
3
  title: string;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { type TextProps } from '@box/blueprint-web';
1
+ import { TextProps } from '@box/blueprint-web';
2
2
  export type InteractiveTextProps = TextProps & {
3
3
  className?: string;
4
4
  tooltipText: string;
@@ -1,2 +1,2 @@
1
- import { type AiSuggestionFieldProps } from './types';
1
+ import { AiSuggestionFieldProps } from './types';
2
2
  export declare function AiSuggestionField({ aiSuggestion, onAiSuggestionAppend, onAiSuggestionReplace, onAiSuggestionIgnore, type, isSameValue, }: AiSuggestionFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type MetadataFieldValue, type MetadataTemplateFieldType } from '../../../../types';
1
+ import { MetadataFieldValue, MetadataTemplateFieldType } from '../../../../types';
2
2
  export interface AiSuggestionFieldProps {
3
3
  /**
4
4
  * Represents the AI suggestion to be displayed or processed.
@@ -1,5 +1,5 @@
1
- import { type ReactElement } from 'react';
2
- import { type MetadataFieldValue, type MetadataTemplateFieldType } from '../../../../types';
1
+ import { ReactElement } from 'react';
2
+ import { MetadataFieldValue, MetadataTemplateFieldType } from '../../../../types';
3
3
  export declare function formatSuggestionValue(value: MetadataFieldValue, { type, locale }?: {
4
4
  type?: MetadataTemplateFieldType;
5
5
  locale?: string;
@@ -1,3 +1,3 @@
1
- import { type MetadataFieldProps } from '../../types';
2
- export declare const MetadataDateField: import("react").ForwardRefExoticComponent<MetadataFieldProps & import("react").RefAttributes<HTMLInputElement>>;
1
+ import { MetadataFieldProps } from '../../types';
2
+ export declare const MetadataDateField: import('react').ForwardRefExoticComponent<MetadataFieldProps & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export default MetadataDateField;
@@ -1,4 +1,4 @@
1
- import { type CalendarDate, type CalendarDateTime, type ZonedDateTime } from '@box/blueprint-web';
1
+ import { CalendarDate, CalendarDateTime, ZonedDateTime } from '@box/blueprint-web';
2
2
  export type CalendarDateType = InstanceType<typeof CalendarDate>;
3
3
  export type CalendarDateTimeType = InstanceType<typeof CalendarDateTime>;
4
4
  export type ZonedDateTimeType = InstanceType<typeof ZonedDateTime>;
@@ -1,3 +1,3 @@
1
- import { type MetadataFieldProps } from '../../types';
2
- export declare const MetadataEnumField: import("react").ForwardRefExoticComponent<MetadataFieldProps & import("react").RefAttributes<HTMLInputElement>>;
1
+ import { MetadataFieldProps } from '../../types';
2
+ export declare const MetadataEnumField: import('react').ForwardRefExoticComponent<MetadataFieldProps & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export default MetadataEnumField;
@@ -1,3 +1,3 @@
1
- import { type MetadataFieldProps } from '../../types';
2
- export declare const MetadataFloatField: import("react").ForwardRefExoticComponent<MetadataFieldProps & import("react").RefAttributes<HTMLInputElement>>;
1
+ import { MetadataFieldProps } from '../../types';
2
+ export declare const MetadataFloatField: import('react').ForwardRefExoticComponent<MetadataFieldProps & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export default MetadataFloatField;
@@ -1,3 +1,3 @@
1
- import { type MetadataFieldProps } from '../../types';
2
- export declare const MetadataMultiSelectField: import("react").ForwardRefExoticComponent<MetadataFieldProps & import("react").RefAttributes<HTMLInputElement>>;
1
+ import { MetadataFieldProps } from '../../types';
2
+ export declare const MetadataMultiSelectField: import('react').ForwardRefExoticComponent<MetadataFieldProps & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export default MetadataMultiSelectField;
@@ -1,3 +1,3 @@
1
- import { type MetadataFieldProps } from '../../types';
2
- export declare const MetadataStringField: import("react").ForwardRefExoticComponent<MetadataFieldProps & import("react").RefAttributes<HTMLInputElement>>;
1
+ import { MetadataFieldProps } from '../../types';
2
+ export declare const MetadataStringField: import('react').ForwardRefExoticComponent<MetadataFieldProps & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export default MetadataStringField;
@@ -1,3 +1,3 @@
1
- export declare const MetadataTaxonomyField: import("react").ForwardRefExoticComponent<Omit<import("../../types").MetadataFieldProps, "portalElement"> & {
1
+ export declare const MetadataTaxonomyField: import('react').ForwardRefExoticComponent<Omit<import('../../types').MetadataFieldProps, "portalElement"> & {
2
2
  portalElement?: HTMLElement | (() => HTMLElement);
3
- } & import("react").RefAttributes<HTMLInputElement>>;
3
+ } & import('react').RefAttributes<HTMLInputElement>>;