@bundle-stats/ui 3.3.9 → 3.3.10
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-modules/bundle-modules.js +1 -2
- package/lib/components/bundle-packages/bundle-packages.js +2 -1
- package/lib-esm/components/bundle-modules/bundle-modules.js +1 -2
- package/lib-esm/components/bundle-packages/bundle-packages.js +2 -1
- package/package.json +3 -3
- package/src/components/bundle-modules/bundle-modules.jsx +0 -1
- package/src/components/bundle-packages/bundle-packages.jsx +2 -2
|
@@ -185,8 +185,7 @@ var BundleModules = function BundleModules(_ref2) {
|
|
|
185
185
|
disabled: jobs.length <= 1
|
|
186
186
|
}), _defineProperty(_objectSpread2, _utils.MODULE_FILTERS.DUPLICATED, {
|
|
187
187
|
label: 'Duplicate',
|
|
188
|
-
defaultValue: filters[_utils.MODULE_FILTERS.DUPLICATED]
|
|
189
|
-
disabled: jobs.length <= 1
|
|
188
|
+
defaultValue: filters[_utils.MODULE_FILTERS.DUPLICATED]
|
|
190
189
|
}), _defineProperty(_objectSpread2, _utils.MODULE_SOURCE_TYPE, (_MODULE_SOURCE_TYPE = {
|
|
191
190
|
label: 'Source'
|
|
192
191
|
}, _defineProperty(_MODULE_SOURCE_TYPE, _utils.MODULE_FILTERS.FIRST_PARTY, {
|
|
@@ -77,7 +77,8 @@ var PackagePopoverContent = function PackagePopoverContent(_ref) {
|
|
|
77
77
|
path = _ref.path,
|
|
78
78
|
duplicate = _ref.duplicate,
|
|
79
79
|
CustomComponentLink = _ref.CustomComponentLink;
|
|
80
|
-
var
|
|
80
|
+
var fallbackPackagePath = "node_modules/".concat(fullName.split(_utils.PACKAGES_SEPARATOR).join('/node_modules/'));
|
|
81
|
+
var normalizedPackagePath = "".concat(path || fallbackPackagePath, "/");
|
|
81
82
|
|
|
82
83
|
var _name$split = name.split(_utils.PACKAGE_ID_SEPARATOR),
|
|
83
84
|
_name$split2 = _slicedToArray(_name$split, 2),
|
|
@@ -122,8 +122,7 @@ export const BundleModules = _ref2 => {
|
|
|
122
122
|
},
|
|
123
123
|
[MODULE_FILTERS.DUPLICATED]: {
|
|
124
124
|
label: 'Duplicate',
|
|
125
|
-
defaultValue: filters[MODULE_FILTERS.DUPLICATED]
|
|
126
|
-
disabled: jobs.length <= 1
|
|
125
|
+
defaultValue: filters[MODULE_FILTERS.DUPLICATED]
|
|
127
126
|
},
|
|
128
127
|
[MODULE_SOURCE_TYPE]: {
|
|
129
128
|
label: 'Source',
|
|
@@ -30,7 +30,8 @@ const PackagePopoverContent = _ref => {
|
|
|
30
30
|
duplicate,
|
|
31
31
|
CustomComponentLink
|
|
32
32
|
} = _ref;
|
|
33
|
-
const
|
|
33
|
+
const fallbackPackagePath = `node_modules/${fullName.split(PACKAGES_SEPARATOR).join('/node_modules/')}`;
|
|
34
|
+
const normalizedPackagePath = `${path || fallbackPackagePath}/`;
|
|
34
35
|
const [normalizedName, packageId] = name.split(PACKAGE_ID_SEPARATOR);
|
|
35
36
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
36
37
|
space: "xsmall",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bundle-stats/ui",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.10",
|
|
4
4
|
"description": "UI components for BundleStats projects.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"react-router-dom": "^5.0.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@bundle-stats/utils": "^3.3.
|
|
88
|
+
"@bundle-stats/utils": "^3.3.10",
|
|
89
89
|
"ariakit": "2.0.0-next.29",
|
|
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": "b0603c883ce110178e2b01c3511287bb5690dcb0"
|
|
96
96
|
}
|
|
@@ -28,8 +28,8 @@ import { MetricsTableTitle } from '../metrics-table-title';
|
|
|
28
28
|
import css from './bundle-packages.module.css';
|
|
29
29
|
|
|
30
30
|
const PackagePopoverContent = ({ name, fullName, path, duplicate, CustomComponentLink }) => {
|
|
31
|
-
const
|
|
32
|
-
|
|
31
|
+
const fallbackPackagePath = `node_modules/${fullName.split(PACKAGES_SEPARATOR).join('/node_modules/')}`;
|
|
32
|
+
const normalizedPackagePath = `${path || fallbackPackagePath}/`;
|
|
33
33
|
const [normalizedName, packageId] = name.split(PACKAGE_ID_SEPARATOR);
|
|
34
34
|
|
|
35
35
|
return (
|