@trackunit/react-core-contexts-test 1.7.94 → 1.7.95
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/index.cjs2.js
CHANGED
|
@@ -146,7 +146,7 @@ const mockToastContext = {
|
|
|
146
146
|
/**
|
|
147
147
|
* This is a mock for the UserSubscriptionContext.
|
|
148
148
|
*
|
|
149
|
-
* @returns {
|
|
149
|
+
* @returns { UserSubscription }- mock for the UserSubscriptionContext
|
|
150
150
|
*/
|
|
151
151
|
const mockUserSubscriptionContext = {
|
|
152
152
|
numberOfDaysWithAccessToHistoricalData: 30,
|
package/index.esm2.js
CHANGED
|
@@ -124,7 +124,7 @@ const mockToastContext = {
|
|
|
124
124
|
/**
|
|
125
125
|
* This is a mock for the UserSubscriptionContext.
|
|
126
126
|
*
|
|
127
|
-
* @returns {
|
|
127
|
+
* @returns { UserSubscription }- mock for the UserSubscriptionContext
|
|
128
128
|
*/
|
|
129
129
|
const mockUserSubscriptionContext = {
|
|
130
130
|
numberOfDaysWithAccessToHistoricalData: 30,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts-test",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.95",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"@apollo/client": "3.13.8",
|
|
11
11
|
"react": "19.0.0",
|
|
12
12
|
"graphql": "^16.10.0",
|
|
13
|
-
"@trackunit/react-core-hooks": "1.7.
|
|
14
|
-
"@trackunit/shared-utils": "1.9.
|
|
13
|
+
"@trackunit/react-core-hooks": "1.7.95",
|
|
14
|
+
"@trackunit/shared-utils": "1.9.81",
|
|
15
15
|
"@tanstack/react-router": "1.114.29",
|
|
16
16
|
"@tanstack/router-core": "1.114.29",
|
|
17
17
|
"es-toolkit": "^1.39.10",
|
|
18
|
-
"@trackunit/iris-app-runtime-core-api": "1.7.
|
|
18
|
+
"@trackunit/iris-app-runtime-core-api": "1.7.91"
|
|
19
19
|
},
|
|
20
20
|
"module": "./index.esm.js",
|
|
21
21
|
"main": "./index.cjs.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MockedResponse } from "@apollo/client/testing";
|
|
2
2
|
import { AnyRoute } from "@tanstack/react-router";
|
|
3
3
|
import { RenderResult } from "@testing-library/react";
|
|
4
|
-
import { AnalyticsRuntimeApiSync, AssetSortingState, ConfirmationDialogRuntimeApi, CurrentUserPreferenceState, CurrentUserState, EnvironmentState, ErrorHandlingContextValue, FilterBarContext, IToastContext, ITokenContext,
|
|
4
|
+
import { AnalyticsRuntimeApiSync, AssetSortingState, ConfirmationDialogRuntimeApi, CurrentUserPreferenceState, CurrentUserState, EnvironmentState, ErrorHandlingContextValue, FilterBarContext, IToastContext, ITokenContext, ModalDialogRuntimeApi, NavigationRuntimeApi, OemBrandingRuntimeApi, TimeRangeContext, UserSubscription, WidgetConfigContext } from "@trackunit/iris-app-runtime-core-api";
|
|
5
5
|
import { ExportDataContextState } from "@trackunit/react-core-hooks";
|
|
6
6
|
import { ReactElement, ReactNode } from "react";
|
|
7
7
|
import { MemoryRouterProps } from "./utils/routingUtils";
|
|
@@ -32,7 +32,7 @@ export declare class TrackunitProvidersMockBuilder<T extends AnyRoute> {
|
|
|
32
32
|
protected selectedCurrentUserPreferenceContext: CurrentUserPreferenceState;
|
|
33
33
|
protected selectedAnalyticsContext: AnalyticsRuntimeApiSync<Record<string, never>>;
|
|
34
34
|
protected selectedOemBrandingContext: OemBrandingRuntimeApi;
|
|
35
|
-
protected selectedUserSubscriptionContext:
|
|
35
|
+
protected selectedUserSubscriptionContext: UserSubscription;
|
|
36
36
|
protected selectedFilterBarValues: FilterBarContext;
|
|
37
37
|
protected selectedExportDataContext: ExportDataContextState;
|
|
38
38
|
/**
|
|
@@ -205,7 +205,7 @@ export declare class TrackunitProvidersMockBuilder<T extends AnyRoute> {
|
|
|
205
205
|
* ...
|
|
206
206
|
* @returns { TrackunitProvidersMockBuilder } - The builder.
|
|
207
207
|
*/
|
|
208
|
-
userSubscription(userSubscription: Partial<
|
|
208
|
+
userSubscription(userSubscription: Partial<UserSubscription> | {
|
|
209
209
|
features: Array<string>;
|
|
210
210
|
}): this;
|
|
211
211
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserSubscription } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
/**
|
|
3
3
|
* This is a mock for the UserSubscriptionContext.
|
|
4
4
|
*
|
|
5
|
-
* @returns {
|
|
5
|
+
* @returns { UserSubscription }- mock for the UserSubscriptionContext
|
|
6
6
|
*/
|
|
7
|
-
export declare const mockUserSubscriptionContext:
|
|
7
|
+
export declare const mockUserSubscriptionContext: UserSubscription;
|