@redhat-cloud-services/frontend-components 3.11.0 → 3.11.2
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/CullingInfo/CullingInformation.css +1 -1
- package/CullingInfo/CullingInformation.scss +1 -1
- package/InsightsLink/InsightsLink.d.ts +1 -0
- package/InsightsLink/InsightsLink.js +2 -2
- package/InsightsLink/InsightsLink.js.map +1 -1
- package/esm/CullingInfo/CullingInformation.css +1 -1
- package/esm/CullingInfo/CullingInformation.scss +1 -1
- package/esm/InsightsLink/InsightsLink.js +2 -2
- package/esm/InsightsLink/InsightsLink.js.map +1 -1
- package/esm/index.css +1 -1
- package/index.css +1 -1
- package/package.json +1 -1
|
@@ -30,9 +30,9 @@ var react_router_dom_1 = require("react-router-dom");
|
|
|
30
30
|
var useChrome_1 = __importDefault(require("../useChrome"));
|
|
31
31
|
var urlPathHelpers_1 = require("@redhat-cloud-services/frontend-components-utilities/helpers/urlPathHelpers");
|
|
32
32
|
var InsightsLink = function (_a) {
|
|
33
|
-
var to = _a.to, app = _a.app, props = __rest(_a, ["to", "app"]);
|
|
33
|
+
var to = _a.to, app = _a.app, preview = _a.preview, props = __rest(_a, ["to", "app", "preview"]);
|
|
34
34
|
var chrome = (0, useChrome_1.default)();
|
|
35
|
-
var toPath = (0, urlPathHelpers_1.buildInsightsPath)(chrome, app, to);
|
|
35
|
+
var toPath = (0, urlPathHelpers_1.buildInsightsPath)(chrome, app, to, preview);
|
|
36
36
|
return ((0, jsx_runtime_1.jsx)(react_router_dom_1.Link, __assign({ to: toPath }, props, { children: props.children })));
|
|
37
37
|
};
|
|
38
38
|
exports.default = InsightsLink;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsLink.js","sourceRoot":"","sources":["../src/InsightsLink/InsightsLink.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAAmD;AACnD,2DAAqC;AACrC,8GAAgH;
|
|
1
|
+
{"version":3,"file":"InsightsLink.js","sourceRoot":"","sources":["../src/InsightsLink/InsightsLink.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAAmD;AACnD,2DAAqC;AACrC,8GAAgH;AAQhH,IAAM,YAAY,GAAgC,UAAC,EAA8B;IAA5B,IAAA,EAAE,QAAA,EAAE,GAAG,SAAA,EAAE,OAAO,aAAA,EAAK,KAAK,cAA5B,wBAA8B,CAAF;IAC7E,IAAM,MAAM,GAAG,IAAA,mBAAS,GAAE,CAAC;IAC3B,IAAM,MAAM,GAAG,IAAA,kCAAiB,EAAC,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAE3D,OAAO,CACL,uBAAC,uBAAI,aAAC,EAAE,EAAE,MAAM,IAAM,KAAK,cACxB,KAAK,CAAC,QAAQ,IACV,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
|
@@ -25,9 +25,9 @@ import { Link } from 'react-router-dom';
|
|
|
25
25
|
import useChrome from '../useChrome';
|
|
26
26
|
import { buildInsightsPath } from '@redhat-cloud-services/frontend-components-utilities/helpers/urlPathHelpers';
|
|
27
27
|
var InsightsLink = function (_a) {
|
|
28
|
-
var to = _a.to, app = _a.app, props = __rest(_a, ["to", "app"]);
|
|
28
|
+
var to = _a.to, app = _a.app, preview = _a.preview, props = __rest(_a, ["to", "app", "preview"]);
|
|
29
29
|
var chrome = useChrome();
|
|
30
|
-
var toPath = buildInsightsPath(chrome, app, to);
|
|
30
|
+
var toPath = buildInsightsPath(chrome, app, to, preview);
|
|
31
31
|
return (_jsx(Link, __assign({ to: toPath }, props, { children: props.children })));
|
|
32
32
|
};
|
|
33
33
|
export default InsightsLink;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsLink.js","sourceRoot":"","sources":["../../src/InsightsLink/InsightsLink.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AACnD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6EAA6E,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightsLink.js","sourceRoot":"","sources":["../../src/InsightsLink/InsightsLink.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AACnD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6EAA6E,CAAC;AAQhH,IAAM,YAAY,GAAgC,UAAC,EAA8B;IAA5B,IAAA,EAAE,QAAA,EAAE,GAAG,SAAA,EAAE,OAAO,aAAA,EAAK,KAAK,cAA5B,wBAA8B,CAAF;IAC7E,IAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,IAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAE3D,OAAO,CACL,KAAC,IAAI,aAAC,EAAE,EAAE,MAAM,IAAM,KAAK,cACxB,KAAK,CAAC,QAAQ,IACV,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/esm/index.css
CHANGED
package/index.css
CHANGED