@trackunit/react-core-contexts 0.4.191 → 0.4.198

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "0.4.191",
3
+ "version": "0.4.198",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -11,15 +11,15 @@
11
11
  "@apollo/client": "3.7.10",
12
12
  "@js-temporal/polyfill": "0.4.3",
13
13
  "@sentry/browser": "7.50.0",
14
- "@trackunit/i18n-library-translation": "0.0.58",
15
- "@trackunit/iris-app-runtime-core": "0.3.50",
16
- "@trackunit/react-components": "0.1.117",
17
- "@trackunit/react-core-contexts-api": "0.2.40",
18
- "@trackunit/react-core-contexts-test": "0.1.75",
19
- "@trackunit/react-core-hooks": "0.2.64",
14
+ "@trackunit/i18n-library-translation": "0.0.59",
15
+ "@trackunit/iris-app-runtime-core": "0.3.51",
16
+ "@trackunit/react-components": "0.1.124",
17
+ "@trackunit/react-core-contexts-api": "0.2.41",
18
+ "@trackunit/react-core-contexts-test": "0.1.77",
19
+ "@trackunit/react-core-hooks": "0.2.65",
20
20
  "apollo-upload-client": "17.0.0",
21
21
  "react": "18.2.0",
22
- "react-router-dom": "6.4.5"
22
+ "react-router-dom": "6.11.2"
23
23
  },
24
24
  "module": "./index.js",
25
25
  "main": "./index.cjs",
@@ -1,14 +1,14 @@
1
- import * as React from "react";
2
- interface IProps {
3
- children: React.ReactNode;
4
- isIrisApp?: boolean;
5
- }
6
- /**
7
- * This is a provider for the ManagerApolloContext.
8
- * It is used to provide the apollo client to the manager app.
9
- *
10
- * @param {IProps} props The props.
11
- * @returns {JSX.Element} The provider.
12
- */
13
- export declare const ManagerApolloProvider: ({ children, isIrisApp }: IProps) => JSX.Element;
14
- export {};
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ isIrisApp?: boolean;
5
+ }
6
+ /**
7
+ * This is a provider for the ManagerApolloContext.
8
+ * It is used to provide the apollo client to the manager app.
9
+ *
10
+ * @param {IProps} props The props.
11
+ * @returns {JSX.Element} The provider.
12
+ */
13
+ export declare const ManagerApolloProvider: ({ children, isIrisApp }: IProps) => JSX.Element;
14
+ export {};
@@ -1,12 +1,12 @@
1
- import "@js-temporal/polyfill";
2
- import { TranslationResource } from "@trackunit/i18n-library-translation";
3
- import * as React from "react";
4
- export interface TrackunitProvidersProps {
5
- /** A translation resource for the App extensions to be registered before initialization */
6
- translations?: TranslationResource<string>;
7
- children: React.ReactNode;
8
- }
9
- /**
10
- * This is a provider for the TrackunitDataProviders.
11
- */
12
- export declare const TrackunitProviders: ({ translations, children }: TrackunitProvidersProps) => JSX.Element;
1
+ import "@js-temporal/polyfill";
2
+ import { TranslationResource } from "@trackunit/i18n-library-translation";
3
+ import * as React from "react";
4
+ export interface TrackunitProvidersProps {
5
+ /** A translation resource for the App extensions to be registered before initialization */
6
+ translations?: TranslationResource<string>;
7
+ children: React.ReactNode;
8
+ }
9
+ /**
10
+ * This is a provider for the TrackunitDataProviders.
11
+ */
12
+ export declare const TrackunitProviders: ({ translations, children }: TrackunitProvidersProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- /**
3
- * This is a router for the Trackunit app.
4
- */
5
- export declare const TrackunitRouterIrisApp: ({ children }: {
6
- children?: React.ReactNode;
7
- }) => JSX.Element;
1
+ /// <reference types="react" />
2
+ /**
3
+ * This is a router for the Trackunit app.
4
+ */
5
+ export declare const TrackunitRouterIrisApp: ({ children }: {
6
+ children?: React.ReactNode;
7
+ }) => JSX.Element;
@@ -1,10 +1,10 @@
1
- import { ReactNode } from "react";
2
- interface Props {
3
- children: ReactNode;
4
- allowAnalytics?: boolean;
5
- }
6
- /**
7
- * This is a provider for the AnalyticsProvider.
8
- */
9
- export declare const AnalyticsProviderIrisApp: ({ children }: Props) => JSX.Element;
10
- export {};
1
+ import { ReactNode } from "react";
2
+ interface Props {
3
+ children: ReactNode;
4
+ allowAnalytics?: boolean;
5
+ }
6
+ /**
7
+ * This is a provider for the AnalyticsProvider.
8
+ */
9
+ export declare const AnalyticsProviderIrisApp: ({ children }: Props) => JSX.Element;
10
+ export {};
@@ -1,9 +1,9 @@
1
- import { ReactNode } from "react";
2
- interface Props {
3
- children: ReactNode;
4
- }
5
- /**
6
- * This is a provider for the AssetSortingContext.
7
- */
8
- export declare const AssetSortingProviderIrisApp: ({ children }: Props) => JSX.Element | null;
9
- export {};
1
+ import { ReactNode } from "react";
2
+ interface Props {
3
+ children: ReactNode;
4
+ }
5
+ /**
6
+ * This is a provider for the AssetSortingContext.
7
+ */
8
+ export declare const AssetSortingProviderIrisApp: ({ children }: Props) => JSX.Element | null;
9
+ export {};
@@ -1,9 +1,9 @@
1
- import * as React from "react";
2
- interface IProps {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * This is a provider for the EnvironmentContext.
7
- */
8
- export declare const EnvironmentProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
- export {};
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ /**
6
+ * This is a provider for the EnvironmentContext.
7
+ */
8
+ export declare const EnvironmentProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
- interface IProps {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * This is a provider for the GlobalSelectionContext.
7
- */
8
- export declare const GlobalSelectionProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
- export {};
1
+ /// <reference types="react" />
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ /**
6
+ * This is a provider for the GlobalSelectionContext.
7
+ */
8
+ export declare const GlobalSelectionProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
package/src/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./ManagerApolloProvider";
2
- export * from "./toast/ToastProviderIrisApp";
3
- export * from "./TrackunitProviders";
1
+ export * from "./ManagerApolloProvider";
2
+ export * from "./toast/ToastProviderIrisApp";
3
+ export * from "./TrackunitProviders";
@@ -1,9 +1,9 @@
1
- import * as React from "react";
2
- interface IProps {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * This is a provider for the IOemBrandingContext.
7
- */
8
- export declare const OemBrandingContextProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
- export {};
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ /**
6
+ * This is a provider for the IOemBrandingContext.
7
+ */
8
+ export declare const OemBrandingContextProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * This is a provider for the ToastContext.
7
- */
8
- export declare const ToastProviderIrisApp: ({ children }: Props) => JSX.Element;
9
- export {};
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ }
5
+ /**
6
+ * This is a provider for the ToastContext.
7
+ */
8
+ export declare const ToastProviderIrisApp: ({ children }: Props) => JSX.Element;
9
+ export {};
@@ -1,9 +1,9 @@
1
- import * as React from "react";
2
- interface IProps {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * This is a provider for the TokenContext.
7
- */
8
- export declare const TokenProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
- export {};
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ /**
6
+ * This is a provider for the TokenContext.
7
+ */
8
+ export declare const TokenProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
@@ -1,7 +1,7 @@
1
- import { setupHostConnector } from "@trackunit/iris-app-runtime-core";
2
- /**
3
- * Subscribe to methods initiated by changes in the host
4
- *
5
- * @param methods STABLE object with the methods you'd want to subscribe to. Wrap in useMemo for instance to make it stable
6
- */
7
- export declare const useSubscribeToHostChanges: (methods: Parameters<typeof setupHostConnector>[0]) => void;
1
+ import { setupHostConnector } from "@trackunit/iris-app-runtime-core";
2
+ /**
3
+ * Subscribe to methods initiated by changes in the host
4
+ *
5
+ * @param methods STABLE object with the methods you'd want to subscribe to. Wrap in useMemo for instance to make it stable
6
+ */
7
+ export declare const useSubscribeToHostChanges: (methods: Parameters<typeof setupHostConnector>[0]) => void;
@@ -1,9 +1,9 @@
1
- import * as React from "react";
2
- interface IProps {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * This is a provider for the CurrentUserContext.
7
- */
8
- export declare const CurrentUserProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
- export {};
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ /**
6
+ * This is a provider for the CurrentUserContext.
7
+ */
8
+ export declare const CurrentUserProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};
@@ -1,9 +1,9 @@
1
- import * as React from "react";
2
- interface IProps {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * This is a provider for the UserSubscriptionContext.
7
- */
8
- export declare const UserSubscriptionProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
- export {};
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ /**
6
+ * This is a provider for the UserSubscriptionContext.
7
+ */
8
+ export declare const UserSubscriptionProviderIrisApp: ({ children }: IProps) => JSX.Element | null;
9
+ export {};