@nordicsemiconductor/pc-nrfconnect-shared 93.0.0 → 94.0.0
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/Changelog.md +6 -0
- package/config/jest.config.js +2 -1
- package/coverage/cobertura-coverage.xml +150 -150
- package/dist/bootstrap.css +1 -0
- package/package.json +10 -15
- package/scripts/nordic-publish.js +18 -18
- package/src/App/App.tsx +2 -2
- package/src/ErrorDialog/ErrorDialog.tsx +1 -1
- package/src/FlashMessage/FlashMessage.tsx +1 -1
- package/test/setupTests.ts +1 -9
- package/typings/generated/src/FlashMessage/FlashMessage.d.ts +1 -1
- package/typings/generated/test/testrenderer.d.ts +2 -2
- package/typings/generated/test/testrenderer.d.ts.map +1 -1
- /package/src/FlashMessage/{flashMessage.css → FlashMessage.css} +0 -0
package/src/App/App.tsx
CHANGED
|
@@ -8,7 +8,7 @@ import 'focus-visible';
|
|
|
8
8
|
|
|
9
9
|
import React, { FC, ReactNode, useEffect, useMemo, useRef } from 'react';
|
|
10
10
|
import Carousel from 'react-bootstrap/Carousel';
|
|
11
|
-
import
|
|
11
|
+
import { createRoot } from 'react-dom/client';
|
|
12
12
|
import { useDispatch, useSelector } from 'react-redux';
|
|
13
13
|
import { Reducer } from 'redux';
|
|
14
14
|
|
|
@@ -268,5 +268,5 @@ export const render = (App: React.ReactElement) => {
|
|
|
268
268
|
if (container == null) {
|
|
269
269
|
throw new Error('Unable to find root element <div id="webapp"></div>');
|
|
270
270
|
}
|
|
271
|
-
|
|
271
|
+
createRoot(container).render(App);
|
|
272
272
|
};
|
|
@@ -25,7 +25,7 @@ const ErrorMessage = ({
|
|
|
25
25
|
error: ErrorMessage;
|
|
26
26
|
}) => (
|
|
27
27
|
<>
|
|
28
|
-
<ReactMarkdown
|
|
28
|
+
<ReactMarkdown linkTarget="_blank">{message}</ReactMarkdown>
|
|
29
29
|
{detail != null && (
|
|
30
30
|
<details className="details">
|
|
31
31
|
<summary>Show technical details</summary>
|
|
@@ -15,7 +15,7 @@ import classNames from '../utils/classNames';
|
|
|
15
15
|
import { colors } from '../utils/colors';
|
|
16
16
|
import { FlashMessage, getMessages, removeMessage } from './FlashMessageSlice';
|
|
17
17
|
|
|
18
|
-
import './
|
|
18
|
+
import './FlashMessage.css';
|
|
19
19
|
|
|
20
20
|
const SLIDE_IN_DURATION_MS = 300;
|
|
21
21
|
const SLIDE_IN_ANIMATION = `${SLIDE_IN_DURATION_MS}ms slide-in`;
|
package/test/setupTests.ts
CHANGED
|
@@ -4,17 +4,9 @@
|
|
|
4
4
|
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/* eslint-disable simple-import-sort/imports --
|
|
8
|
-
sorting the import order must be disabled for this file because enzyme
|
|
9
|
-
and testing-library are sensitive to the order in which they are run
|
|
10
|
-
*/
|
|
11
|
-
import enzyme from 'enzyme';
|
|
12
|
-
import Adapter from 'enzyme-adapter-react-16';
|
|
13
|
-
|
|
14
7
|
import '@testing-library/jest-dom/extend-expect';
|
|
15
|
-
import { configure } from '@testing-library/dom';
|
|
16
8
|
|
|
17
|
-
|
|
9
|
+
import { configure } from '@testing-library/dom';
|
|
18
10
|
|
|
19
11
|
if (process.env.TESTING_ASYNC_TIMEOUT != null) {
|
|
20
12
|
configure({ asyncUtilTimeout: Number(process.env.TESTING_ASYNC_TIMEOUT) });
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Action as SimpleAction, Reducer } from 'redux';
|
|
3
3
|
import { AppThunk } from '../src/store';
|
|
4
4
|
type Action = SimpleAction | AppThunk<never>;
|
|
5
|
-
export declare const testRendererForApps: (appReducer?: Reducer) => (element: React.ReactElement, actions?: Action[]) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries")>;
|
|
6
|
-
declare const _default: (element: React.ReactElement, actions?: Action[], appReducer?: Reducer) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries")>;
|
|
5
|
+
export declare const testRendererForApps: (appReducer?: Reducer) => (element: React.ReactElement, actions?: Action[]) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
6
|
+
declare const _default: (element: React.ReactElement, actions?: Action[], appReducer?: Reducer) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=testrenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testrenderer.d.ts","sourceRoot":"","sources":["../../../test/testrenderer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAExD,OAAoB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAErD,KAAK,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AAkB7C,eAAO,MAAM,mBAAmB,gBACd,OAAO,eACX,MAAM,YAAY,YAAW,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"testrenderer.d.ts","sourceRoot":"","sources":["../../../test/testrenderer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAExD,OAAoB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAErD,KAAK,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AAkB7C,eAAO,MAAM,mBAAmB,gBACd,OAAO,eACX,MAAM,YAAY,YAAW,MAAM,EAAE,iIACwB,CAAC;kCAG/D,MAAM,YAAY,YAClB,MAAM,EAAE,eACJ,OAAO;AAHxB,wBAIyE"}
|
|
File without changes
|