@trackunit/react-core-contexts-test 1.6.69 → 1.7.5
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/HookRenderer.cjs.js +1 -1
- package/HookRenderer.esm.js +1 -1
- package/index.cjs.js +3 -3
- package/index.esm.js +3 -3
- package/package.json +7 -7
package/HookRenderer.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ var index = require('./index.cjs.js');
|
|
|
5
5
|
require('@trackunit/react-core-contexts-api');
|
|
6
6
|
require('react/jsx-runtime');
|
|
7
7
|
require('@trackunit/react-core-hooks');
|
|
8
|
-
require('
|
|
8
|
+
require('es-toolkit');
|
|
9
9
|
require('@apollo/client');
|
|
10
10
|
require('@apollo/client/dev');
|
|
11
11
|
require('@apollo/client/link/error');
|
package/HookRenderer.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { flushPromises, flushPromisesInAct } from './index.esm.js';
|
|
|
3
3
|
import '@trackunit/react-core-contexts-api';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import '@trackunit/react-core-hooks';
|
|
6
|
-
import '
|
|
6
|
+
import 'es-toolkit';
|
|
7
7
|
import '@apollo/client';
|
|
8
8
|
import '@apollo/client/dev';
|
|
9
9
|
import '@apollo/client/link/error';
|
package/index.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ var reactCoreContextsApi = require('@trackunit/react-core-contexts-api');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var react$1 = require('@testing-library/react');
|
|
6
6
|
var reactCoreHooks = require('@trackunit/react-core-hooks');
|
|
7
|
-
var
|
|
7
|
+
var esToolkit = require('es-toolkit');
|
|
8
8
|
var client = require('@apollo/client');
|
|
9
9
|
var dev = require('@apollo/client/dev');
|
|
10
10
|
var error = require('@apollo/client/link/error');
|
|
@@ -691,7 +691,7 @@ class TrackunitProvidersMockBuilder {
|
|
|
691
691
|
* @returns { TrackunitProvidersMockBuilder } - The builder.
|
|
692
692
|
*/
|
|
693
693
|
userSubscription(userSubscription) {
|
|
694
|
-
//TODO
|
|
694
|
+
//TODO DON'T SUPPORT THE WEIRD WAY OF PASSING FEATURES
|
|
695
695
|
const featuresConverted = userSubscription.features?.map(f => {
|
|
696
696
|
if (typeof f === "string") {
|
|
697
697
|
return { id: f, name: f };
|
|
@@ -700,7 +700,7 @@ class TrackunitProvidersMockBuilder {
|
|
|
700
700
|
}) || [];
|
|
701
701
|
this.selectedUserSubscriptionContext = {
|
|
702
702
|
...mockUserSubscriptionContext,
|
|
703
|
-
...omit(userSubscription, "features"),
|
|
703
|
+
...esToolkit.omit(userSubscription, ["features"]),
|
|
704
704
|
features: [...(mockUserSubscriptionContext.features || []), ...featuresConverted],
|
|
705
705
|
};
|
|
706
706
|
return this;
|
package/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { AssetSortByProperty, SortOrder } from '@trackunit/react-core-contexts-a
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { act, render } from '@testing-library/react';
|
|
4
4
|
import { ErrorHandlingContextProvider, CurrentUserProvider, AnalyticsContext, UserSubscriptionProvider, OemBrandingContextProvider, TokenProvider, ToastProvider, ConfirmationDialogProvider, FilterBarProvider, AssetSortingProvider, NavigationContextProvider, CurrentUserPreferenceProvider, EnvironmentContextProvider, ModalDialogContextProvider, TimeRangeProvider } from '@trackunit/react-core-hooks';
|
|
5
|
-
import omit from '
|
|
5
|
+
import { omit } from 'es-toolkit';
|
|
6
6
|
import { ApolloLink } from '@apollo/client';
|
|
7
7
|
import { loadDevMessages, loadErrorMessages } from '@apollo/client/dev';
|
|
8
8
|
import { onError } from '@apollo/client/link/error';
|
|
@@ -689,7 +689,7 @@ class TrackunitProvidersMockBuilder {
|
|
|
689
689
|
* @returns { TrackunitProvidersMockBuilder } - The builder.
|
|
690
690
|
*/
|
|
691
691
|
userSubscription(userSubscription) {
|
|
692
|
-
//TODO
|
|
692
|
+
//TODO DON'T SUPPORT THE WEIRD WAY OF PASSING FEATURES
|
|
693
693
|
const featuresConverted = userSubscription.features?.map(f => {
|
|
694
694
|
if (typeof f === "string") {
|
|
695
695
|
return { id: f, name: f };
|
|
@@ -698,7 +698,7 @@ class TrackunitProvidersMockBuilder {
|
|
|
698
698
|
}) || [];
|
|
699
699
|
this.selectedUserSubscriptionContext = {
|
|
700
700
|
...mockUserSubscriptionContext,
|
|
701
|
-
...omit(userSubscription, "features"),
|
|
701
|
+
...omit(userSubscription, ["features"]),
|
|
702
702
|
features: [...(mockUserSubscriptionContext.features || []), ...featuresConverted],
|
|
703
703
|
};
|
|
704
704
|
return this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts-test",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"@apollo/client": "3.13.8",
|
|
11
11
|
"@testing-library/react": "16.2.0",
|
|
12
12
|
"react": "19.0.0",
|
|
13
|
-
"lodash": "4.17.21",
|
|
14
13
|
"graphql": "^16.10.0",
|
|
15
|
-
"@trackunit/react-core-contexts-api": "1.
|
|
16
|
-
"@trackunit/react-core-hooks": "1.
|
|
17
|
-
"@trackunit/shared-utils": "1.
|
|
18
|
-
"@trackunit/react-test-setup": "1.
|
|
14
|
+
"@trackunit/react-core-contexts-api": "1.8.5",
|
|
15
|
+
"@trackunit/react-core-hooks": "1.7.5",
|
|
16
|
+
"@trackunit/shared-utils": "1.9.4",
|
|
17
|
+
"@trackunit/react-test-setup": "1.4.4",
|
|
19
18
|
"@tanstack/react-router": "1.114.29",
|
|
20
|
-
"@tanstack/router-core": "1.114.29"
|
|
19
|
+
"@tanstack/router-core": "1.114.29",
|
|
20
|
+
"es-toolkit": "^1.39.10"
|
|
21
21
|
},
|
|
22
22
|
"module": "./index.esm.js",
|
|
23
23
|
"main": "./index.cjs.js",
|