@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.
- package/ManagerApolloProvider.d.ts +6 -0
- package/README.md +25 -0
- package/TrackunitDataProviders.d.ts +6 -0
- package/TrackunitProviders.d.ts +6 -0
- package/TrackunitRouter.d.ts +4 -0
- package/UserSubscriptionProvider.d.ts +6 -0
- package/developerSettings/IrisAppDeveloperSettingsContext.d.ts +6 -0
- package/environment/TileEnvironmentProvider.d.ts +6 -0
- package/index.d.ts +3 -0
- package/index.js +2592 -0
- package/package.json +23 -0
- package/test/config/jest.setup.d.ts +1 -0
- package/toast/ToastProviderApp.d.ts +6 -0
- package/token/TileTokenProvider.d.ts +6 -0
- package/user/TileCurrentUserProvider.d.ts +6 -0
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
|
+

|
package/index.d.ts
ADDED