@bundle-stats/ui 4.0.0 → 4.0.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.
- package/lib/components/bundle-assets/bundle-assets.js +3 -3
- package/lib/components/bundle-assets/bundle-assets.utils.js +1 -1
- package/lib/ui/index.js +8 -0
- package/lib-esm/components/bundle-assets/bundle-assets.js +3 -3
- package/lib-esm/components/bundle-assets/bundle-assets.utils.js +1 -1
- package/lib-esm/ui/index.js +1 -0
- package/package.json +7 -7
- package/src/components/bundle-assets/bundle-assets.jsx +3 -3
- package/src/components/bundle-assets/bundle-assets.utils.js +1 -1
- package/src/ui/index.js +1 -0
|
@@ -122,9 +122,9 @@ var getFilters = function getFilters(_ref4) {
|
|
|
122
122
|
}), _defineProperty(_ASSET_ENTRY_TYPE, _utils.ASSET_FILTERS.CHUNK, {
|
|
123
123
|
label: 'Chunk',
|
|
124
124
|
defaultValue: (0, _get2["default"])(filters, "".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.CHUNK), true)
|
|
125
|
-
}), _defineProperty(_ASSET_ENTRY_TYPE, _utils.ASSET_FILTERS.
|
|
126
|
-
label: '
|
|
127
|
-
defaultValue: (0, _get2["default"])(filters, "".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.
|
|
125
|
+
}), _defineProperty(_ASSET_ENTRY_TYPE, _utils.ASSET_FILTERS.OTHER, {
|
|
126
|
+
label: 'Other',
|
|
127
|
+
defaultValue: (0, _get2["default"])(filters, "".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.OTHER), true)
|
|
128
128
|
}), _ASSET_ENTRY_TYPE)), _defineProperty(_ref5, _utils.ASSET_FILE_TYPE, _objectSpread({
|
|
129
129
|
label: 'File type'
|
|
130
130
|
}, getFileTypeFilters(filters))), _ref5;
|
|
@@ -75,7 +75,7 @@ var getRowFilter = function getRowFilter(filters) {
|
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if (!(filters["".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.ENTRY)] && item.isEntry || filters["".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.INITIAL)] && item.isInitial || filters["".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.CHUNK)] && item.isChunk || filters["".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.
|
|
78
|
+
if (!(filters["".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.ENTRY)] && item.isEntry || filters["".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.INITIAL)] && item.isInitial || filters["".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.CHUNK)] && item.isChunk || filters["".concat(_utils.ASSET_ENTRY_TYPE, ".").concat(_utils.ASSET_FILTERS.OTHER)] && item.isAsset)) {
|
|
79
79
|
return false;
|
|
80
80
|
}
|
|
81
81
|
|
package/lib/ui/index.js
CHANGED
|
@@ -45,6 +45,12 @@ Object.defineProperty(exports, "HorizontalBarChart", {
|
|
|
45
45
|
return _horizontalBarChart.HorizontalBarChart;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "HoverCard", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _hoverCard.HoverCard;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
48
54
|
Object.defineProperty(exports, "Icon", {
|
|
49
55
|
enumerable: true,
|
|
50
56
|
get: function get() {
|
|
@@ -126,6 +132,8 @@ var _filters = require("./filters");
|
|
|
126
132
|
|
|
127
133
|
var _horizontalBarChart = require("./horizontal-bar-chart");
|
|
128
134
|
|
|
135
|
+
var _hoverCard = require("./hover-card");
|
|
136
|
+
|
|
129
137
|
var _icon = require("./icon");
|
|
130
138
|
|
|
131
139
|
var _input = require("./input");
|
|
@@ -67,9 +67,9 @@ const getFilters = _ref2 => {
|
|
|
67
67
|
label: 'Chunk',
|
|
68
68
|
defaultValue: _get(filters, `${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.CHUNK}`, true)
|
|
69
69
|
},
|
|
70
|
-
[ASSET_FILTERS.
|
|
71
|
-
label: '
|
|
72
|
-
defaultValue: _get(filters, `${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.
|
|
70
|
+
[ASSET_FILTERS.OTHER]: {
|
|
71
|
+
label: 'Other',
|
|
72
|
+
defaultValue: _get(filters, `${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.OTHER}`, true)
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
[ASSET_FILE_TYPE]: {
|
|
@@ -40,7 +40,7 @@ export const getRowFilter = filters => item => {
|
|
|
40
40
|
return false;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
if (!(filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.ENTRY}`] && item.isEntry || filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.INITIAL}`] && item.isInitial || filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.CHUNK}`] && item.isChunk || filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.
|
|
43
|
+
if (!(filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.ENTRY}`] && item.isEntry || filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.INITIAL}`] && item.isInitial || filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.CHUNK}`] && item.isChunk || filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.OTHER}`] && item.isAsset)) {
|
|
44
44
|
return false;
|
|
45
45
|
}
|
|
46
46
|
|
package/lib-esm/ui/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { EmptySet } from './empty-set';
|
|
|
5
5
|
export { FileName } from './file-name';
|
|
6
6
|
export { Filters } from './filters';
|
|
7
7
|
export { HorizontalBarChart } from './horizontal-bar-chart';
|
|
8
|
+
export { HoverCard } from './hover-card';
|
|
8
9
|
export { Icon } from './icon';
|
|
9
10
|
export { Input } from './input';
|
|
10
11
|
export { Loader } from './loader';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bundle-stats/ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "UI components for BundleStats projects.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/ui#readme",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/cli": "7.18.
|
|
40
|
-
"@babel/core": "7.18.
|
|
39
|
+
"@babel/cli": "7.18.9",
|
|
40
|
+
"@babel/core": "7.18.9",
|
|
41
41
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
42
|
-
"@babel/preset-env": "7.18.
|
|
42
|
+
"@babel/preset-env": "7.18.9",
|
|
43
43
|
"@babel/preset-react": "7.18.6",
|
|
44
44
|
"@simplyianm/babel-plugin-inline-react-svg": "1.2.0",
|
|
45
45
|
"@storybook/addon-essentials": "6.5.9",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"chromatic": "6.7.0",
|
|
58
58
|
"classnames": "2.3.1",
|
|
59
59
|
"colormap": "2.3.2",
|
|
60
|
-
"core-js": "3.23.
|
|
60
|
+
"core-js": "3.23.5",
|
|
61
61
|
"cross-env": "7.0.3",
|
|
62
62
|
"enzyme": "3.11.0",
|
|
63
63
|
"enzyme-adapter-react-16": "1.15.6",
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"react-router-dom": "^5.0.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@bundle-stats/utils": "^4.0.
|
|
88
|
+
"@bundle-stats/utils": "^4.0.1",
|
|
89
89
|
"ariakit": "^2.0.0-next.33",
|
|
90
90
|
"date-fns": "^2.28.0",
|
|
91
91
|
"modern-css-reset": "^1.4.0",
|
|
92
92
|
"query-string": "^7.1.0",
|
|
93
93
|
"use-query-params": "^1.2.3"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "5ede78df9ce756cd413cc143ce038ec96b305158"
|
|
96
96
|
}
|
|
@@ -69,9 +69,9 @@ const getFilters = ({ compareMode, filters }) => ({
|
|
|
69
69
|
label: 'Chunk',
|
|
70
70
|
defaultValue: get(filters, `${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.CHUNK}`, true),
|
|
71
71
|
},
|
|
72
|
-
[ASSET_FILTERS.
|
|
73
|
-
label: '
|
|
74
|
-
defaultValue: get(filters, `${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.
|
|
72
|
+
[ASSET_FILTERS.OTHER]: {
|
|
73
|
+
label: 'Other',
|
|
74
|
+
defaultValue: get(filters, `${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.OTHER}`, true),
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
77
|
[ASSET_FILE_TYPE]: {
|
|
@@ -59,7 +59,7 @@ export const getRowFilter = (filters) => (item) => {
|
|
|
59
59
|
(filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.ENTRY}`] && item.isEntry) ||
|
|
60
60
|
(filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.INITIAL}`] && item.isInitial) ||
|
|
61
61
|
(filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.CHUNK}`] && item.isChunk) ||
|
|
62
|
-
(filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.
|
|
62
|
+
(filters[`${ASSET_ENTRY_TYPE}.${ASSET_FILTERS.OTHER}`] && item.isAsset)
|
|
63
63
|
)
|
|
64
64
|
) {
|
|
65
65
|
return false;
|
package/src/ui/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { EmptySet } from './empty-set';
|
|
|
5
5
|
export { FileName } from './file-name';
|
|
6
6
|
export { Filters } from './filters';
|
|
7
7
|
export { HorizontalBarChart } from './horizontal-bar-chart';
|
|
8
|
+
export { HoverCard } from './hover-card';
|
|
8
9
|
export { Icon } from './icon';
|
|
9
10
|
export { Input } from './input';
|
|
10
11
|
export { Loader } from './loader';
|