@trackunit/react-core-contexts-test 1.0.53 → 1.1.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/index.cjs.js CHANGED
@@ -80,7 +80,7 @@ const mockConfirmationDialogContext = {
80
80
  /**
81
81
  * Mocks the current user context
82
82
  *
83
- * @returns {ICurrentUserContext} - Returns the mocked current user context
83
+ * @returns {CurrentUserContextInterface} - Returns the mocked current user context
84
84
  */
85
85
  const mockCurrentUserContext = {
86
86
  clientSideUserId: "751ea227-f199-4d00-925f-a608312c5e45",
package/index.esm.js CHANGED
@@ -78,7 +78,7 @@ const mockConfirmationDialogContext = {
78
78
  /**
79
79
  * Mocks the current user context
80
80
  *
81
- * @returns {ICurrentUserContext} - Returns the mocked current user context
81
+ * @returns {CurrentUserContextInterface} - Returns the mocked current user context
82
82
  */
83
83
  const mockCurrentUserContext = {
84
84
  clientSideUserId: "751ea227-f199-4d00-925f-a608312c5e45",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-test",
3
- "version": "1.0.53",
3
+ "version": "1.1.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -13,9 +13,9 @@
13
13
  "lodash": "4.17.21",
14
14
  "graphql": "^16.9.0",
15
15
  "@tanstack/react-router": "1.47.1",
16
- "@trackunit/react-core-contexts-api": "1.0.53",
17
- "@trackunit/react-core-hooks": "1.0.53",
18
- "@trackunit/shared-utils": "1.2.45"
16
+ "@trackunit/react-core-contexts-api": "1.1.0",
17
+ "@trackunit/react-core-hooks": "1.1.0",
18
+ "@trackunit/shared-utils": "1.3.0"
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 { AssetSortingContextValue, ConfirmationDialogContextValue, ErrorHandlingContextValue, FilterBarValues, IAnalyticsContext, ICurrentUserContext, IEnvironmentContext, INavigationContext, OemBrandingContext, IToastContext, ITokenContext, IUserPreferencesContext, IUserSubscriptionContext, ModalDialogContextValue } from "@trackunit/react-core-contexts-api";
4
+ import { AssetSortingContextValue, ConfirmationDialogContextValue, CurrentUserContextInterface, ErrorHandlingContextValue, FilterBarValues, IAnalyticsContext, IEnvironmentContext, INavigationContext, IToastContext, ITokenContext, IUserPreferencesContext, IUserSubscriptionContext, ModalDialogContextValue, OemBrandingContext } from "@trackunit/react-core-contexts-api";
5
5
  import { ReactElement, ReactNode } from "react";
6
6
  import { MemoryRouterProps } from "./utils/routingUtils";
7
7
  /**
@@ -25,7 +25,7 @@ export declare class TrackunitProvidersMockBuilder<T extends AnyRoute> {
25
25
  protected selectedErrorHandler: ErrorHandlingContextValue;
26
26
  protected selectedConfirmationDialogContext: ConfirmationDialogContextValue;
27
27
  protected selectedAssetSortingContext: AssetSortingContextValue;
28
- protected selectedCurrentUserContext: ICurrentUserContext;
28
+ protected selectedCurrentUserContext: CurrentUserContextInterface;
29
29
  protected selectedCurrentUserPreferenceContext: IUserPreferencesContext;
30
30
  protected selectedAnalyticsContext: IAnalyticsContext<Record<string, never>>;
31
31
  protected selectedOemBrandingContext: OemBrandingContext;
@@ -117,7 +117,7 @@ export declare class TrackunitProvidersMockBuilder<T extends AnyRoute> {
117
117
  * ...
118
118
  * @returns { TrackunitProvidersMockBuilder } - The builder.
119
119
  */
120
- currentUser(currentUserContext: Partial<ICurrentUserContext>): this;
120
+ currentUser(currentUserContext: Partial<CurrentUserContextInterface>): this;
121
121
  /**
122
122
  * Use this to pass in a differerent current user preference.
123
123
  * Defaults to mockCurrentUserPreferenceContext.
@@ -1,7 +1,7 @@
1
- import { ICurrentUserContext } from "@trackunit/react-core-contexts-api";
1
+ import { CurrentUserContextInterface } from "@trackunit/react-core-contexts-api";
2
2
  /**
3
3
  * Mocks the current user context
4
4
  *
5
- * @returns {ICurrentUserContext} - Returns the mocked current user context
5
+ * @returns {CurrentUserContextInterface} - Returns the mocked current user context
6
6
  */
7
- export declare const mockCurrentUserContext: ICurrentUserContext;
7
+ export declare const mockCurrentUserContext: CurrentUserContextInterface;