@box/metadata-view 2.0.1 → 2.1.1

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,3 +1,3 @@
1
1
  import { createContext as e, useContext as t } from "react";
2
- var n = /* @__PURE__ */ e(null), r = () => t(n);
2
+ var n = /*#__PURE__*/ e(null), r = () => t(n);
3
3
  export { n as AdvancedFilterContext, r as useAdvancedFilterContext };
@@ -1,3 +1,3 @@
1
1
  import { createContext as e, useContext as t } from "react";
2
- var n = /* @__PURE__ */ e(null), r = n.Provider, i = () => t(n);
2
+ var n = /*#__PURE__*/ e(null), r = n.Provider, i = () => t(n);
3
3
  export { r as FilterChipPopoverPortalProvider, i as useFilterChipPopoverPortalElement };
@@ -10,7 +10,7 @@ import { jsx as p, jsxs as m } from "react/jsx-runtime";
10
10
  import { ItemTypeIcon as h } from "@box/item-icon";
11
11
  import g from "clsx";
12
12
  import _ from "lodash/get";
13
- var v = (e, t, n) => _(e, n ? t.split(".")[1] : t), y = /* @__PURE__ */ f.memo(({ column: t, iconColumnVariant: n, item: r }) => {
13
+ var v = (e, t, n) => _(e, n ? t.split(".")[1] : t), y = /*#__PURE__*/ f.memo(({ column: t, iconColumnVariant: n, item: r }) => {
14
14
  let { id: i, isItemMetadata: o, subtitle: s, textValue: l } = t, u = `${l}-${r.id}`;
15
15
  return /* @__PURE__ */ p(c, { children: /* @__PURE__ */ m("div", {
16
16
  className: a.tableNameCell,
@@ -31,19 +31,19 @@ var v = (e, t, n) => _(e, n ? t.split(".")[1] : t), y = /* @__PURE__ */ f.memo((
31
31
  })]
32
32
  })]
33
33
  }) }, u);
34
- }), b = /* @__PURE__ */ f.memo(({ column: e, item: t }) => {
34
+ }), b = /*#__PURE__*/ f.memo(({ column: e, item: t }) => {
35
35
  let n = `${e.textValue}-${t.id}`;
36
36
  return /* @__PURE__ */ p(c, { children: e.cellRenderer?.(t, e) }, n);
37
- }), x = /* @__PURE__ */ f.memo(({ column: e, item: t }) => {
37
+ }), x = /*#__PURE__*/ f.memo(({ column: e, item: t }) => {
38
38
  let n = `${e.textValue}-${t.id}`, r = _(t, e.id);
39
39
  return r ? /* @__PURE__ */ p(c, { children: r.join(" ") }, n) : /* @__PURE__ */ p(c, {}, n);
40
- }), S = /* @__PURE__ */ f.memo(({ column: e, item: t }) => {
40
+ }), S = /*#__PURE__*/ f.memo(({ column: e, item: t }) => {
41
41
  let { id: n, isItemMetadata: r, textValue: i } = e, a = `${i}-${t.id}`;
42
42
  return /* @__PURE__ */ p(c, { children: /* @__PURE__ */ p(d, {
43
43
  as: "span",
44
44
  children: v(t, n, r)
45
45
  }) }, a);
46
- }), C = /* @__PURE__ */ f.memo(({ column: t, iconColumnVariant: n, item: r, onInlineEditChange: a }) => {
46
+ }), C = /*#__PURE__*/ f.memo(({ column: t, iconColumnVariant: n, item: r, onInlineEditChange: a }) => {
47
47
  let { cellRenderer: o, id: s, isInlineEditingEnabled: c, type: l } = t, u = s === "item.name" && (n === e.INLINE || n === e.INLINE_SUBTITLE);
48
48
  return o ? /* @__PURE__ */ p(b, {
49
49
  column: t,
@@ -60,13 +60,13 @@ var v = (e, t, n) => _(e, n ? t.split(".")[1] : t), y = /* @__PURE__ */ f.memo((
60
60
  column: t,
61
61
  item: r
62
62
  });
63
- }), w = /* @__PURE__ */ f.memo(({ item: e, zoomLevel: t }) => /* @__PURE__ */ p(c, {
63
+ }), w = /*#__PURE__*/ f.memo(({ item: e, zoomLevel: t }) => /* @__PURE__ */ p(c, {
64
64
  style: { height: n[t] },
65
65
  children: /* @__PURE__ */ p(h, {
66
66
  className: a.iconCell,
67
67
  item: e
68
68
  })
69
- }, `item-type-icon-${e.id}`)), T = /* @__PURE__ */ f.memo(({ item: e, itemActionMenuProps: n, isCheckboxDisabled: r }) => /* @__PURE__ */ p(s, {
69
+ }, `item-type-icon-${e.id}`)), T = /*#__PURE__*/ f.memo(({ item: e, itemActionMenuProps: n, isCheckboxDisabled: r }) => /* @__PURE__ */ p(s, {
70
70
  isCheckboxDisabled: r,
71
71
  children: (r) => n ? /* @__PURE__ */ p(t, {
72
72
  ...n,
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@box/metadata-view",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
- "@box/blueprint-web": "^16.0.0",
7
- "@box/blueprint-web-assets": "^5.0.0",
8
- "@box/box-item-type-selector": "^2.0.0",
9
- "@box/content-field": "^2.0.0",
10
- "@box/item-icon": "^3.0.0",
11
- "@box/metadata-filter": "^2.0.0",
12
- "@box/types": "3.0.0",
6
+ "@box/blueprint-web": "^16.1.1",
7
+ "@box/blueprint-web-assets": "^5.1.1",
8
+ "@box/box-item-type-selector": "^2.1.1",
9
+ "@box/content-field": "^2.1.1",
10
+ "@box/item-icon": "^3.1.1",
11
+ "@box/metadata-filter": "^2.1.1",
12
+ "@box/types": "3.1.1",
13
13
  "@tanstack/react-virtual": "^3.10.8",
14
14
  "formik": "^2.4.5",
15
15
  "lodash": "^4.17.15",
@@ -19,15 +19,15 @@
19
19
  "react-intl": "^6.4.2"
20
20
  },
21
21
  "devDependencies": {
22
- "@box/blueprint-web": "^16.0.0",
23
- "@box/blueprint-web-assets": "^5.0.0",
24
- "@box/box-item-type-selector": "^2.0.0",
25
- "@box/content-field": "^2.0.0",
26
- "@box/eslint-plugin-blueprint": "2.0.0",
27
- "@box/item-icon": "^3.0.0",
28
- "@box/metadata-filter": "^2.0.0",
29
- "@box/storybook-utils": "1.0.0",
30
- "@box/types": "3.0.0",
22
+ "@box/blueprint-web": "^16.1.1",
23
+ "@box/blueprint-web-assets": "^5.1.1",
24
+ "@box/box-item-type-selector": "^2.1.1",
25
+ "@box/content-field": "^2.1.1",
26
+ "@box/eslint-plugin-blueprint": "2.1.1",
27
+ "@box/item-icon": "^3.1.1",
28
+ "@box/metadata-filter": "^2.1.1",
29
+ "@box/storybook-utils": "1.1.1",
30
+ "@box/types": "3.1.1",
31
31
  "@tanstack/react-virtual": "^3.10.8",
32
32
  "react-intl": "^6.4.2"
33
33
  },