@cccsaurora/howler-ui 2.17.0-dev.551 → 2.17.0-dev.553
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.
|
@@ -221,7 +221,7 @@ export const useHelpers = (opts = { async: true, components: true }) => {
|
|
|
221
221
|
fr: ''
|
|
222
222
|
},
|
|
223
223
|
callback: (str, searchValue, replaceValue) => {
|
|
224
|
-
return str.
|
|
224
|
+
return str.replaceAll(searchValue ?? '', replaceValue ?? '');
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
...howlerPluginStore.plugins.flatMap(plugin => pluginStore.executeFunction(`${plugin}.helpers`))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Grid } from '@mui/material';
|
|
2
|
+
import { Grid, gridClasses } from '@mui/material';
|
|
3
3
|
import HitNotebooks from '@cccsaurora/howler-ui/components/elements/hit/HitNotebooks';
|
|
4
4
|
import PivotLink from '@cccsaurora/howler-ui/components/elements/hit/related/PivotLink';
|
|
5
5
|
import RelatedLink from '@cccsaurora/howler-ui/components/elements/hit/related/RelatedLink';
|
|
@@ -7,7 +7,7 @@ import { uniqBy } from 'lodash-es';
|
|
|
7
7
|
const HitLinks = ({ hit, analytic, dossiers = [] }) => {
|
|
8
8
|
return ((hit?.howler?.links?.length > 0 ||
|
|
9
9
|
analytic?.notebooks?.length > 0 ||
|
|
10
|
-
dossiers.filter(_dossier => _dossier.pivots?.length > 0).length > 0) && (_jsxs(Grid, { container: true, spacing: 1, pr: 2, children: [hit?.howler?.links?.length > 0 &&
|
|
10
|
+
dossiers.filter(_dossier => _dossier.pivots?.length > 0).length > 0) && (_jsxs(Grid, { container: true, spacing: 1, pr: 2, sx: { [`& .${gridClasses.item}`]: { display: 'flex' } }, children: [hit?.howler?.links?.length > 0 &&
|
|
11
11
|
uniqBy(hit.howler.links, 'href')
|
|
12
12
|
.slice(0, 3)
|
|
13
13
|
.map(l => (_jsx(Grid, { item: true, children: _jsx(RelatedLink, { compact: true, ...l }) }, l.href))), dossiers.flatMap(_dossier => (_dossier.pivots ?? []).map((_pivot, index) => (
|