@box/metadata-editor 0.120.3 → 0.120.5
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/dist/chunks/utils2.js +27 -26
- package/package.json +3 -3
package/dist/chunks/utils2.js
CHANGED
@@ -1,42 +1,43 @@
|
|
1
|
-
import { BoxAiLogo as
|
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 {
|
4
|
-
import { jsxs as _, jsx as
|
5
|
-
import '../styles/utils.css';const b = "_noAttributesText_1wv72_2", p = "_fieldWrapper_1wv72_6", g = "_hasSuggestion_1wv72_11",
|
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:
|
10
|
-
dateField:
|
9
|
+
error: d,
|
10
|
+
dateField: x,
|
11
11
|
suggestionApplied: m,
|
12
12
|
comboboxContainer: u,
|
13
13
|
labelWrapper: v,
|
14
|
-
labelText:
|
15
|
-
labelIcon:
|
16
|
-
}, W = (e, r
|
17
|
-
className:
|
18
|
-
children: [
|
19
|
-
as:
|
20
|
-
className:
|
21
|
-
tooltipText:
|
22
|
-
...
|
23
|
-
children:
|
24
|
-
}) : /* @__PURE__ */
|
25
|
-
className:
|
26
|
-
...
|
27
|
-
children:
|
28
|
-
}),
|
29
|
-
className:
|
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
|
-
}),
|
31
|
+
}), I = (t) => {
|
32
32
|
try {
|
33
|
-
|
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
|
-
|
41
|
-
|
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.
|
3
|
+
"version": "0.120.5",
|
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.
|
18
|
+
"@box/box-ai-agent-selector": "^0.47.5",
|
19
19
|
"@box/babel-plugin-target-attributes": "1.3.0",
|
20
|
-
"@box/blueprint-web": "^12.29.
|
20
|
+
"@box/blueprint-web": "^12.29.2",
|
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",
|