@box/metadata-view 1.64.8 → 2.0.0

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,2 +1,6 @@
1
1
  import { HeaderProps } from '../../types';
2
- export declare function Header({ title, itemCount, isItemCountVisible, onClearSelection, selectionCount, isSelectionCountVisible, selectedItemName, rightSlot, }: HeaderProps): import("react/jsx-runtime").JSX.Element;
2
+ type HeaderComponentProps = HeaderProps & {
3
+ selectionCount?: number;
4
+ };
5
+ export declare function Header({ title, itemCount, isItemCountVisible, onClearSelection, selectionCount, isSelectionCountVisible, selectedItemName, rightSlot, }: HeaderComponentProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -30,8 +30,6 @@ interface BaseHeaderProps {
30
30
  isItemCountVisible?: boolean;
31
31
  /** Called when selection is cleared (e.g. clear control in the header), in addition to internal state being reset. */
32
32
  onClearSelection?: () => void;
33
- /** The number of items selected. */
34
- selectionCount?: number;
35
33
  /** Name of the selected item, shown instead of the count when exactly one item is selected. */
36
34
  selectedItemName?: string;
37
35
  /** Slot for custom content rendered on the right side of the header (e.g. an edit metadata button). */
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@box/metadata-view",
3
- "version": "1.64.8",
3
+ "version": "2.0.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
- "@box/blueprint-web": "^15.9.7",
7
- "@box/blueprint-web-assets": "^4.131.0",
8
- "@box/box-item-type-selector": "^1.43.12",
9
- "@box/content-field": "^1.44.12",
10
- "@box/item-icon": "^2.37.12",
11
- "@box/metadata-filter": "^1.85.12",
12
- "@box/types": "2.2.7",
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",
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": "^15.9.7",
23
- "@box/blueprint-web-assets": "^4.131.0",
24
- "@box/box-item-type-selector": "^1.43.12",
25
- "@box/content-field": "^1.44.12",
26
- "@box/eslint-plugin-blueprint": "1.2.7",
27
- "@box/item-icon": "^2.37.12",
28
- "@box/metadata-filter": "^1.85.12",
29
- "@box/storybook-utils": "0.21.12",
30
- "@box/types": "2.2.7",
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",
31
31
  "@tanstack/react-virtual": "^3.10.8",
32
32
  "react-intl": "^6.4.2"
33
33
  },