@trackunit/react-core-contexts 0.0.1-alpha-afcc978985.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.
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const ManagerApolloProvider: ({ children }: IProps) => JSX.Element;
6
+ export {};
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ > **⚠️ Beta**
2
+ >
3
+ > This is a beta version and subject to change without notice.
4
+
5
+ # Trackunit React Core Contexts
6
+ The `@trackunit/react-core-contexts` package contains the core context providers for the [Iris App SDK](https://www.npmjs.com/package/@trackunit/iris-app).
7
+
8
+ For more info and a full guide on Iris App SDK Development, please visit our [Developer Hub](https://developers.trackunit.com/).
9
+ ## TrackunitProviders
10
+
11
+ The `TrackunitProviders` component is exposed through the `@trackunit/react-core-contexts` package.
12
+ The component is a wrapper for all the base react providers needed to use contexts available in the trackunit manager.
13
+ This makes it possible to use Hooks and complex components in your Iris App.
14
+
15
+ Inside the provider the following hooks from `react-core-hooks` can be used:
16
+ - Get data on the current user through `useCurrentUser` hook.
17
+ - Read the current environment through the `useEnvironment` hook.
18
+ - Get the users subscription package and features with the `useUserSubscription` hook.
19
+ - Obtain an access token from the `useToken` hook.
20
+
21
+ ## Trackunit
22
+ This package was developed by Trackunit ApS.
23
+ Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
24
+
25
+ ![The Trackunit logo](https://trackunit.com/wp-content/uploads/2022/03/top-logo.svg)
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const TrackunitDataProviders: ({ children }: Props) => JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const TrackunitProviders: ({ children }: Props) => JSX.Element;
6
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const TrackunitRouter: ({ children }: {
3
+ children?: React.ReactNode;
4
+ }) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const UserSubscriptionProvider: ({ children }: IProps) => JSX.Element | null;
6
+ export default UserSubscriptionProvider;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const IrisAppDeveloperSettingsProvider: ({ children }: IProps) => JSX.Element | null;
6
+ export default IrisAppDeveloperSettingsProvider;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ interface IProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const TileEnvironmentProvider: ({ children }: IProps) => JSX.Element | null;
6
+ export default TileEnvironmentProvider;
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./ManagerApolloProvider";
2
+ export * from "./toast/ToastProviderApp";
3
+ export * from "./TrackunitProviders";