@box/metadata-editor 0.120.2 → 0.120.4

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,42 +1,43 @@
1
- import { BoxAiLogo as n } from "@box/blueprint-web-assets/icons/Logo";
1
+ import { BoxAiLogo as s } from "@box/blueprint-web-assets/icons/Logo";
2
2
  import i from "../esm/lib/components/interactive-text/interactive-text.js";
3
- import { convertISOStringToUTCDate as c } from "../esm/lib/utils/convertDate.js";
4
- import { jsxs as _, jsx as o } from "react/jsx-runtime";
5
- import '../styles/utils.css';const b = "_noAttributesText_1wv72_2", p = "_fieldWrapper_1wv72_6", g = "_hasSuggestion_1wv72_11", x = "_error_1wv72_19", d = "_dateField_1wv72_31", m = "_suggestionApplied_1wv72_35", u = "_comboboxContainer_1wv72_35", v = "_labelWrapper_1wv72_49", T = "_labelText_1wv72_55", w = "_labelIcon_1wv72_58", t = {
3
+ import { convertISOStringtoRFC3339String as c } from "../esm/lib/utils/convertDate.js";
4
+ import { jsxs as _, jsx as l } from "react/jsx-runtime";
5
+ import '../styles/utils.css';const b = "_noAttributesText_1wv72_2", p = "_fieldWrapper_1wv72_6", g = "_hasSuggestion_1wv72_11", d = "_error_1wv72_19", x = "_dateField_1wv72_31", m = "_suggestionApplied_1wv72_35", u = "_comboboxContainer_1wv72_35", v = "_labelWrapper_1wv72_49", w = "_labelText_1wv72_55", T = "_labelIcon_1wv72_58", o = {
6
6
  noAttributesText: b,
7
7
  fieldWrapper: p,
8
8
  hasSuggestion: g,
9
- error: x,
10
- dateField: d,
9
+ error: d,
10
+ dateField: x,
11
11
  suggestionApplied: m,
12
12
  comboboxContainer: u,
13
13
  labelWrapper: v,
14
- labelText: T,
15
- labelIcon: w
16
- }, W = (e, r, a = !1, s = "label") => (l) => /* @__PURE__ */ _("div", {
17
- className: t.labelWrapper,
18
- children: [r ? /* @__PURE__ */ o(i, {
19
- as: s,
20
- className: t.labelText,
21
- tooltipText: r,
22
- ...l,
23
- children: e
24
- }) : /* @__PURE__ */ o("label", {
25
- className: t.labelText,
26
- ...l,
27
- children: e
28
- }), a && /* @__PURE__ */ o(n, {
29
- className: t.labelIcon
14
+ labelText: w,
15
+ labelIcon: T
16
+ }, W = (t, e, r = !1, n = "label") => (a) => /* @__PURE__ */ _("div", {
17
+ className: o.labelWrapper,
18
+ children: [e ? /* @__PURE__ */ l(i, {
19
+ as: n,
20
+ className: o.labelText,
21
+ tooltipText: e,
22
+ ...a,
23
+ children: t
24
+ }) : /* @__PURE__ */ l("label", {
25
+ className: o.labelText,
26
+ ...a,
27
+ children: t
28
+ }), r && /* @__PURE__ */ l(s, {
29
+ className: o.labelIcon
30
30
  })]
31
- }), f = (e) => {
31
+ }), I = (t) => {
32
32
  try {
33
- return c(e).toISOString();
33
+ const e = c(t), r = new Date(e);
34
+ return isNaN(r.getTime()) ? null : e;
34
35
  } catch {
35
36
  return null;
36
37
  }
37
38
  };
38
39
  export {
39
40
  W as g,
40
- t as s,
41
- f as t
41
+ o as s,
42
+ I as t
42
43
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.120.2",
3
+ "version": "0.120.4",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.15",
6
6
  "@box/box-ai-agent-selector": "^0.41.7",
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@ariakit/react": "0.4.15",
18
- "@box/box-ai-agent-selector": "^0.47.2",
18
+ "@box/box-ai-agent-selector": "^0.47.4",
19
19
  "@box/babel-plugin-target-attributes": "1.3.0",
20
- "@box/blueprint-web": "^12.28.0",
20
+ "@box/blueprint-web": "^12.29.1",
21
21
  "@box/blueprint-web-assets": "^4.57.0",
22
22
  "@box/storybook-utils": "^0.13.11",
23
23
  "@testing-library/react": "^15.0.6",