@box/metadata-view 0.48.12 → 0.48.14

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,60 +1,61 @@
1
1
  import { GridList as i } from "@box/blueprint-web";
2
2
  import { ItemTypeIcon as h } from "@box/item-icon";
3
3
  import { useIntl as T } from "react-intl";
4
- import { V as p } from "../../../../chunks/types.js";
5
- import { THUMBNAIL_GRID_VIEW_SIZES as E } from "../constants.js";
6
- import b from "./messages.js";
7
- import { jsx as e, jsxs as R } from "react/jsx-runtime";
4
+ import { V as E } from "../../../../chunks/types.js";
5
+ import { THUMBNAIL_GRID_VIEW_SIZES as b } from "../constants.js";
6
+ import p from "./messages.js";
7
+ import { jsx as t, jsxs as R } from "react/jsx-runtime";
8
8
  import { ItemActionMenu as f } from "../item-action-menu/item-action-menu.js";
9
9
  import '../../../../styles/metadata-grid.css';const L = "_itemThumbnail_93ess_1", M = {
10
10
  itemThumbnail: L
11
- }, A = 188, G = 250, g = 8, x = 5, U = (r) => A + G * (g - r) / x, N = ({
11
+ }, A = 188, G = 250, g = 8, x = 5, U = (r) => A + G * (g - r) / x, y = ({
12
12
  items: r,
13
13
  itemActionMenuProps: n,
14
14
  zoomLevel: c,
15
- ...d
15
+ ..._
16
16
  }) => {
17
17
  const {
18
- formatMessage: _
18
+ formatMessage: u
19
19
  } = T();
20
- return /* @__PURE__ */ e(i, {
21
- "aria-label": _(b.gridView),
20
+ return /* @__PURE__ */ t(i, {
21
+ "aria-label": u(p.gridView),
22
+ items: r,
22
23
  style: {
23
- gridTemplateColumns: `repeat(auto-fit, minmax(${U(E[c])}px, 1fr))`
24
+ gridTemplateColumns: `repeat(auto-fit, minmax(${U(b[c])}px, 1fr))`
24
25
  },
25
- ...d,
26
- children: r.map((t, D) => {
26
+ ..._,
27
+ children: (e) => {
27
28
  var o, a, l;
28
29
  const {
29
30
  name: m,
30
- createdAt: u
31
- } = t, s = "thumbnailURLs" in t ? ((o = t.thumbnailURLs) == null ? void 0 : o.large) || ((a = t.thumbnailURLs) == null ? void 0 : a.medium) || ((l = t.thumbnailURLs) == null ? void 0 : l.small) : void 0;
31
+ createdAt: d
32
+ } = e, s = "thumbnailURLs" in e ? ((o = e.thumbnailURLs) == null ? void 0 : o.large) || ((a = e.thumbnailURLs) == null ? void 0 : a.medium) || ((l = e.thumbnailURLs) == null ? void 0 : l.small) : void 0;
32
33
  return /* @__PURE__ */ R(i.Item, {
33
34
  textValue: m,
34
- children: [/* @__PURE__ */ e(i.Thumbnail, {
35
+ children: [/* @__PURE__ */ t(i.Thumbnail, {
35
36
  className: M.itemThumbnail,
36
- children: s ? /* @__PURE__ */ e("img", {
37
+ children: s ? /* @__PURE__ */ t("img", {
37
38
  alt: m,
38
39
  src: s
39
- }) : /* @__PURE__ */ e(h, {
40
- item: t
40
+ }) : /* @__PURE__ */ t(h, {
41
+ item: e
41
42
  })
42
- }), /* @__PURE__ */ e(i.Header, {
43
+ }), /* @__PURE__ */ t(i.Header, {
43
44
  children: m
44
- }), /* @__PURE__ */ e(i.Subtitle, {
45
- children: u
46
- }), /* @__PURE__ */ e(i.Actions, {
47
- children: n ? (I) => /* @__PURE__ */ e(f, {
45
+ }), /* @__PURE__ */ t(i.Subtitle, {
46
+ children: d
47
+ }), /* @__PURE__ */ t(i.Actions, {
48
+ children: n ? (I) => /* @__PURE__ */ t(f, {
48
49
  ...n,
49
- item: t,
50
+ item: e,
50
51
  onOpenChange: I,
51
- viewMode: p.GRID
52
+ viewMode: E.GRID
52
53
  }) : null
53
54
  })]
54
- }, t.id);
55
- })
55
+ });
56
+ }
56
57
  });
57
58
  };
58
59
  export {
59
- N as MetadataGrid
60
+ y as MetadataGrid
60
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-view",
3
- "version": "0.48.12",
3
+ "version": "0.48.14",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@box/blueprint-web": "^11.12.0",
@@ -20,10 +20,10 @@
20
20
  "devDependencies": {
21
21
  "@box/blueprint-web": "^11.12.0",
22
22
  "@box/blueprint-web-assets": "^4.66.0",
23
- "@box/box-item-type-selector": "^0.69.7",
23
+ "@box/box-item-type-selector": "^0.69.8",
24
24
  "@box/eslint-plugin-blueprint": "1.0.4",
25
- "@box/item-icon": "^0.23.7",
26
- "@box/metadata-filter": "^1.26.5",
25
+ "@box/item-icon": "^0.23.8",
26
+ "@box/metadata-filter": "^1.26.6",
27
27
  "@box/storybook-utils": "0.14.2",
28
28
  "@box/types": "0.2.1",
29
29
  "@tanstack/react-virtual": "^3.10.8",