@openmrs/esm-react-utils 4.0.0-pre.0 → 4.0.0-pre.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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +45 -45
- package/dist/openmrs-esm-react-utils.js +1 -1
- package/dist/openmrs-esm-react-utils.js.LICENSE.txt +0 -0
- package/dist/openmrs-esm-react-utils.js.map +1 -1
- package/package.json +7 -7
- package/src/ConfigurableLink.tsx +22 -13
- package/src/UserHasAccess.tsx +5 -3
- package/src/useSession.tsx +2 -2
- package/src/useVisit.ts +20 -7
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
[36m@openmrs/esm-react-utils:build: [0mcache hit, replaying output [
|
|
1
|
+
[36m@openmrs/esm-react-utils:build: [0mcache hit, replaying output [2m8dd1c7f77fc9aa61[0m
|
|
2
2
|
[36m@openmrs/esm-react-utils:build: [0m$ webpack --mode=production
|
|
3
3
|
[36m@openmrs/esm-react-utils:build: [0masset openmrs-esm-react-utils.js 138 KiB [emitted] [minimized] (name: main) 2 related assets
|
|
4
|
-
[36m@openmrs/esm-react-utils:build: [0morphan modules
|
|
4
|
+
[36m@openmrs/esm-react-utils:build: [0morphan modules 193 KiB [orphan] 120 modules
|
|
5
5
|
[36m@openmrs/esm-react-utils:build: [0mruntime modules 2.14 KiB 8 modules
|
|
6
|
-
[36m@openmrs/esm-react-utils:build: [0mbuilt modules
|
|
6
|
+
[36m@openmrs/esm-react-utils:build: [0mbuilt modules 737 KiB [built]
|
|
7
7
|
[36m@openmrs/esm-react-utils:build: [0m cacheable modules 736 KiB
|
|
8
8
|
[36m@openmrs/esm-react-utils:build: [0m modules by path ../../../node_modules/ 535 KiB 5 modules
|
|
9
|
-
[36m@openmrs/esm-react-utils:build: [0m ./src/index.ts + 120 modules
|
|
9
|
+
[36m@openmrs/esm-react-utils:build: [0m ./src/index.ts + 120 modules 194 KiB [built] [code generated]
|
|
10
10
|
[36m@openmrs/esm-react-utils:build: [0m ../esm-state/dist/openmrs-esm-state.js 7.52 KiB [built] [code generated]
|
|
11
11
|
[36m@openmrs/esm-react-utils:build: [0m modules by path external "@openmrs/ 168 bytes
|
|
12
12
|
[36m@openmrs/esm-react-utils:build: [0m external "@openmrs/esm-config" 42 bytes [built] [code generated]
|
|
13
13
|
[36m@openmrs/esm-react-utils:build: [0m external "@openmrs/esm-extensions" 42 bytes [built] [code generated]
|
|
14
14
|
[36m@openmrs/esm-react-utils:build: [0m + 2 modules
|
|
15
15
|
[36m@openmrs/esm-react-utils:build: [0m + 5 modules
|
|
16
|
-
[36m@openmrs/esm-react-utils:build: [0mwebpack 5.70.0 compiled successfully in
|
|
16
|
+
[36m@openmrs/esm-react-utils:build: [0mwebpack 5.70.0 compiled successfully in 17940 ms
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[36m@openmrs/esm-react-utils:lint: [0mcache hit, replaying output [
|
|
1
|
+
[36m@openmrs/esm-react-utils:lint: [0mcache hit, replaying output [2m79f18ce1ffc19bd2[0m
|
|
2
2
|
[36m@openmrs/esm-react-utils:lint: [0m$ eslint src
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
1
|
+
[33m@openmrs/esm-react-utils:test: [0mcache hit, replaying output [2m5c98fc05f32d4ded[0m
|
|
2
|
+
[33m@openmrs/esm-react-utils:test: [0m$ jest --passWithNoTests
|
|
3
|
+
[33m@openmrs/esm-react-utils:test: [0mPASS src/openmrsComponentDecorator.test.tsx (12.76 s)
|
|
4
|
+
[33m@openmrs/esm-react-utils:test: [0mPASS src/useSession.test.tsx (14.355 s)
|
|
5
|
+
[33m@openmrs/esm-react-utils:test: [0mPASS src/useOnClickOutside.test.tsx (14.227 s)
|
|
6
|
+
[33m@openmrs/esm-react-utils:test: [0mPASS src/useConfig.test.tsx (16.25 s)
|
|
7
|
+
[33m@openmrs/esm-react-utils:test: [0m ● Console
|
|
8
|
+
[33m@openmrs/esm-react-utils:test: [0m
|
|
9
|
+
[33m@openmrs/esm-react-utils:test: [0m console.error
|
|
10
|
+
[33m@openmrs/esm-react-utils:test: [0m Warning: An update to RenderConfig inside a test was not wrapped in act(...).
|
|
11
|
+
[33m@openmrs/esm-react-utils:test: [0m
|
|
12
|
+
[33m@openmrs/esm-react-utils:test: [0m When testing, code that causes React state updates should be wrapped into act(...):
|
|
13
|
+
[33m@openmrs/esm-react-utils:test: [0m
|
|
14
|
+
[33m@openmrs/esm-react-utils:test: [0m act(() => {
|
|
15
|
+
[33m@openmrs/esm-react-utils:test: [0m /* fire events that update state */
|
|
16
|
+
[33m@openmrs/esm-react-utils:test: [0m });
|
|
17
|
+
[33m@openmrs/esm-react-utils:test: [0m /* assert on the output */
|
|
18
|
+
[33m@openmrs/esm-react-utils:test: [0m
|
|
19
|
+
[33m@openmrs/esm-react-utils:test: [0m This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
|
|
20
|
+
[33m@openmrs/esm-react-utils:test: [0m at RenderConfig (/home/brandon/Code/pih/mf/openmrs-esm-core/packages/framework/esm-react-utils/src/useConfig.test.tsx:18:29)
|
|
21
|
+
[33m@openmrs/esm-react-utils:test: [0m at Suspense
|
|
22
|
+
[33m@openmrs/esm-react-utils:test: [0m
|
|
23
|
+
[33m@openmrs/esm-react-utils:test: [0m 85 | return store?.subscribe((state) => {
|
|
24
|
+
[33m@openmrs/esm-react-utils:test: [0m 86 | if (state.loaded && state.config) {
|
|
25
|
+
[33m@openmrs/esm-react-utils:test: [0m > 87 | setState(state.config);
|
|
26
|
+
[33m@openmrs/esm-react-utils:test: [0m | ^
|
|
27
|
+
[33m@openmrs/esm-react-utils:test: [0m 88 | }
|
|
28
|
+
[33m@openmrs/esm-react-utils:test: [0m 89 | });
|
|
29
|
+
[33m@openmrs/esm-react-utils:test: [0m 90 | }, [store]);
|
|
30
|
+
[33m@openmrs/esm-react-utils:test: [0m
|
|
31
|
+
[33m@openmrs/esm-react-utils:test: [0m at printWarning (../../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
|
|
32
|
+
[33m@openmrs/esm-react-utils:test: [0m at error (../../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
|
|
33
|
+
[33m@openmrs/esm-react-utils:test: [0m at warnIfUpdatesNotWrappedWithActDEV (../../../node_modules/react-dom/cjs/react-dom.development.js:27543:9)
|
|
34
|
+
[33m@openmrs/esm-react-utils:test: [0m at scheduleUpdateOnFiber (../../../node_modules/react-dom/cjs/react-dom.development.js:25404:5)
|
|
35
|
+
[33m@openmrs/esm-react-utils:test: [0m at dispatchSetState (../../../node_modules/react-dom/cjs/react-dom.development.js:17389:16)
|
|
36
|
+
[33m@openmrs/esm-react-utils:test: [0m at Array.setState (src/useConfig.ts:87:9)
|
|
37
|
+
[33m@openmrs/esm-react-utils:test: [0m at Object.e (../../../node_modules/unistore/src/index.js:16:19)
|
|
38
|
+
[33m@openmrs/esm-react-utils:test: [0m
|
|
39
|
+
[33m@openmrs/esm-react-utils:test: [0mPASS src/ConfigurableLink.test.tsx (17.386 s)
|
|
40
|
+
[33m@openmrs/esm-react-utils:test: [0m
|
|
41
|
+
[33m@openmrs/esm-react-utils:test: [0mTest Suites: 5 passed, 5 total
|
|
42
|
+
[33m@openmrs/esm-react-utils:test: [0mTests: 19 passed, 19 total
|
|
43
|
+
[33m@openmrs/esm-react-utils:test: [0mSnapshots: 0 total
|
|
44
|
+
[33m@openmrs/esm-react-utils:test: [0mTime: 27.609 s
|
|
45
|
+
[33m@openmrs/esm-react-utils:test: [0mRan all test suites.
|