@balena/ui-shared-components 12.3.4 → 12.3.5-build-replace-react-router-dom-515b5e9538fc858073a9a9f5eb02521fa37b4df6-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/dist/components/RJST/Filters/PersistentFilters.d.ts +1 -1
- package/dist/components/RJST/Filters/PersistentFilters.js +3 -3
- package/dist/components/RJST/components/Filters/FocusSearch.js +1 -1
- package/dist/components/RouterLinkWithTracking/index.d.ts +1 -1
- package/dist/components/RouterLinkWithTracking/index.js +1 -1
- package/dist/contexts/UiSharedComponentsContextProvider.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JSONSchema7 as JSONSchema } from 'json-schema';
|
|
2
2
|
import type { FiltersProps } from '../components/Filters';
|
|
3
|
-
import type { NavigateFunction } from 'react-router
|
|
3
|
+
import type { NavigateFunction } from 'react-router';
|
|
4
4
|
export interface ListQueryStringFilterObject {
|
|
5
5
|
n: string;
|
|
6
6
|
o: string;
|
|
@@ -101,7 +101,7 @@ export const loadRulesFromUrl = (searchLocation, schema, navigate) => {
|
|
|
101
101
|
});
|
|
102
102
|
// In case of invalid signatures, remove search params to avoid Errors.
|
|
103
103
|
if (isSignaturesInvalid) {
|
|
104
|
-
navigate === null || navigate === void 0 ? void 0 : navigate({ search: '' }, { replace: true });
|
|
104
|
+
void (navigate === null || navigate === void 0 ? void 0 : navigate({ search: '' }, { replace: true }));
|
|
105
105
|
}
|
|
106
106
|
if (signatures[0].operator === FULL_TEXT_SLUG) {
|
|
107
107
|
// TODO: listFilterQuery serializes the already escaped value and this
|
|
@@ -128,10 +128,10 @@ export const PersistentFilters = (_a) => {
|
|
|
128
128
|
const filterQuery = qs.stringify(parsedFilters, {
|
|
129
129
|
strictNullHandling: true,
|
|
130
130
|
});
|
|
131
|
-
navigate === null || navigate === void 0 ? void 0 : navigate({
|
|
131
|
+
void (navigate === null || navigate === void 0 ? void 0 : navigate({
|
|
132
132
|
pathname,
|
|
133
133
|
search: filterQuery,
|
|
134
|
-
}, { replace: true });
|
|
134
|
+
}, { replace: true }));
|
|
135
135
|
onFiltersChange === null || onFiltersChange === void 0 ? void 0 : onFiltersChange(updatedFilters);
|
|
136
136
|
if (filterQuery !== search.substring(1)) {
|
|
137
137
|
(_a = analytics.webTracker) === null || _a === void 0 ? void 0 : _a.track('Update table filters', {
|
|
@@ -93,7 +93,7 @@ export const FocusSearch = ({ searchTerm, filtered, rjstContext, model, rowKey =
|
|
|
93
93
|
window.open(url.toString(), '_blank');
|
|
94
94
|
}
|
|
95
95
|
catch (_a) {
|
|
96
|
-
navigate(rjstContext.getBaseUrl(entity));
|
|
96
|
+
void navigate(rjstContext.getBaseUrl(entity));
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}, hasGetBaseUrl: !!rjstContext.getBaseUrl, children: _jsx(Box, { display: "flex", flexDirection: "row", alignItems: "center", children: _jsx(Box, { display: "flex", flexDirection: "column", alignItems: "center", p: 1, children: _jsx(Typography, { children: getEntityValue(entity) }) }) }) }, entity[rowKey]))) })) }) }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Link } from 'react-router
|
|
3
|
+
import { Link } from 'react-router';
|
|
4
4
|
import { useAnalyticsContext } from '../../contexts/AnalyticsContext';
|
|
5
5
|
/**
|
|
6
6
|
* This Link will send analytics in case the analytics context is
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TFunction } from '../hooks/useTranslations';
|
|
2
|
-
import type { NavigateFunction } from 'react-router
|
|
2
|
+
import type { NavigateFunction } from 'react-router';
|
|
3
3
|
export interface UiSharedComponentsContextProviderInterface {
|
|
4
4
|
navigate?: NavigateFunction;
|
|
5
5
|
t?: TFunction;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/ui-shared-components",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.5-build-replace-react-router-dom-515b5e9538fc858073a9a9f5eb02521fa37b4df6-1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react-dropzone": "^14.2.3",
|
|
45
45
|
"react-helmet": "^6.1.0",
|
|
46
46
|
"react-markdown": "^10.0.0",
|
|
47
|
-
"react-router
|
|
47
|
+
"react-router": "^7.5.2",
|
|
48
48
|
"remark-breaks": "^4.0.0",
|
|
49
49
|
"remark-gfm": "^4.0.0",
|
|
50
50
|
"rimraf": "^6.0.0",
|
|
@@ -138,6 +138,6 @@
|
|
|
138
138
|
},
|
|
139
139
|
"homepage": "https://github.com/balena-io/ui-shared-components#readme",
|
|
140
140
|
"versionist": {
|
|
141
|
-
"publishedAt": "2025-04-
|
|
141
|
+
"publishedAt": "2025-04-28T13:56:01.515Z"
|
|
142
142
|
}
|
|
143
143
|
}
|