@trackunit/react-core-hooks 0.0.54 → 0.0.55

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-hooks",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "UNLICENSED",
6
6
  "module": "./index.js",
@@ -11,7 +11,8 @@
11
11
  "@trackunit/react-core-contexts-api": "0.0.51",
12
12
  "launchdarkly-react-client-sdk": "^2.25.1",
13
13
  "react": "17.0.1",
14
- "@trackunit/iris-app-runtime-core": "0.0.55"
14
+ "react-router-dom": "^6.2.2",
15
+ "@trackunit/iris-app-runtime-core": "0.0.56"
15
16
  },
16
17
  "peerDependencies": {}
17
18
  }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const TrackunitRouter: ({ children }: {
3
+ children?: React.ReactNode;
4
+ }) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from "./TrackunitRouter";
2
+ export * from "./useDeeplink";
3
+ export * from "./useURLSynchronization";
@@ -0,0 +1,10 @@
1
+ export declare type DeepLink = {
2
+ path: string;
3
+ search: Location["search"];
4
+ };
5
+ /**
6
+ * A hook to allow your Iris App to render specific url passed from host
7
+ */
8
+ export declare const useDeepLink: () => {
9
+ loading: boolean;
10
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * A react hook for notifying host about location change
3
+ *
4
+ */
5
+ export declare const useURLSynchronization: () => void;