@box/item-icon 2.32.21 → 2.32.22

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,12 +1,12 @@
1
- import { FILE_EXTENSION_CATEGORIES as E, FILE_CATEGORY_COLORS as c } from "./constants.js";
1
+ import { FILE_CATEGORY_COLORS as E, FILE_EXTENSION_CATEGORIES as c } from "./constants.js";
2
2
  const i = (o = "") => {
3
3
  const t = {};
4
- return Object.entries(E).forEach(([e, n]) => {
4
+ return Object.entries(c).forEach(([e, n]) => {
5
5
  n.forEach((r) => {
6
6
  t[r] = e;
7
7
  });
8
8
  }), t[o] || "default";
9
- }, O = (o) => o ? c[o] : void 0;
9
+ }, O = (o) => o ? E[o] : void 0;
10
10
  export {
11
11
  O as getColorByExtension,
12
12
  i as getFileCategoryByExtension
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@box/item-icon",
3
- "version": "2.32.21",
3
+ "version": "2.32.22",
4
4
  "peerDependencies": {
5
- "@box/blueprint-web": "^14.4.1",
6
- "@box/blueprint-web-assets": "^4.111.24",
7
- "@box/types": "^2.1.12",
5
+ "@box/blueprint-web": "^14.4.2",
6
+ "@box/blueprint-web-assets": "^4.111.25",
7
+ "@box/types": "^2.1.13",
8
8
  "react": "^17.0.0 || ^18.0.0",
9
9
  "react-dom": "^17.0.0 || ^18.0.0",
10
10
  "react-intl": "^6.4.2"
11
11
  },
12
12
  "devDependencies": {
13
- "@box/blueprint-web": "^14.4.1",
14
- "@box/blueprint-web-assets": "^4.111.24",
15
- "@box/storybook-utils": "^0.17.24",
16
- "@box/types": "^2.1.12",
13
+ "@box/blueprint-web": "^14.4.2",
14
+ "@box/blueprint-web-assets": "^4.111.25",
15
+ "@box/storybook-utils": "^0.17.25",
16
+ "@box/types": "^2.1.13",
17
17
  "react": "^18.3.0",
18
18
  "react-dom": "^18.3.0",
19
19
  "react-intl": "^6.4.2"