@trackunit/react-core-hooks 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/README.md +15 -0
- package/developerSettings/DeveloperSettingsProvider.d.ts +10 -0
- package/environment/EnvironmentContextProvider.d.ts +9 -0
- package/index.d.ts +10 -0
- package/index.js +2168 -0
- package/package.json +18 -0
- package/runtimes/navigation/index.d.ts +1 -0
- package/runtimes/navigation/useDeeplink.d.ts +4 -0
- package/runtimes/navigation/useURLSynchronization.d.ts +5 -0
- package/runtimes/useAssetRuntime.d.ts +10 -0
- package/runtimes/useCustomFieldRuntime.d.ts +10 -0
- package/runtimes/useRestRuntime.d.ts +10 -0
- package/subscription/UserSubscriptionProvider.d.ts +9 -0
- package/test/config/jest.setup.d.ts +1 -0
- package/toast/ToastProvider.d.ts +8 -0
- package/token/TokenProvider.d.ts +9 -0
- package/user/CurrentUserProvider.d.ts +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
> **⚠️ Beta**
|
|
2
|
+
>
|
|
3
|
+
> This is a beta version and subject to change without notice.
|
|
4
|
+
|
|
5
|
+
# Trackunit React Core Hooks
|
|
6
|
+
The `@trackunit/react-core-hooks` package is a small package containing the core hooks used for getting data from our context providers inside Trackunit Iris Apps.
|
|
7
|
+
|
|
8
|
+
Trackunit Iris Apps are used by external developers to integrate custom functionality into [the Trackunit Manager platform](https://www.trackunit.com/services/manager/).
|
|
9
|
+
|
|
10
|
+
For more info and a full guide on Iris App SDK Development, please visit our [Developer Hub](https://developers.trackunit.com/).
|
|
11
|
+
## Trackunit
|
|
12
|
+
This package was developed by Trackunit ApS.
|
|
13
|
+
Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
|
|
14
|
+
|
|
15
|
+

|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDeveloperSettingsContext } from "@trackunit/react-core-contexts-api";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const DeveloperSettingsContext: React.Context<IDeveloperSettingsContext>;
|
|
4
|
+
export declare const useDeveloperSettings: () => IDeveloperSettingsContext;
|
|
5
|
+
interface IProps {
|
|
6
|
+
value: IDeveloperSettingsContext;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const DeveloperSettingsProvider: ({ value, children }: IProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IEnvironmentContext } from "@trackunit/react-core-contexts-api";
|
|
3
|
+
interface IProps {
|
|
4
|
+
value: IEnvironmentContext;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const EnvironmentContextProvider: (props: IProps) => JSX.Element;
|
|
8
|
+
export declare const useEnvironment: () => IEnvironmentContext;
|
|
9
|
+
export {};
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./developerSettings/DeveloperSettingsProvider";
|
|
2
|
+
export * from "./environment/EnvironmentContextProvider";
|
|
3
|
+
export * from "./runtimes/navigation";
|
|
4
|
+
export * from "./runtimes/useAssetRuntime";
|
|
5
|
+
export * from "./runtimes/useCustomFieldRuntime";
|
|
6
|
+
export * from "./runtimes/useRestRuntime";
|
|
7
|
+
export * from "./subscription/UserSubscriptionProvider";
|
|
8
|
+
export * from "./toast/ToastProvider";
|
|
9
|
+
export * from "./token/TokenProvider";
|
|
10
|
+
export * from "./user/CurrentUserProvider";
|