@trackunit/react-core-hooks 1.31.8 → 1.31.9

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/index.cjs.js CHANGED
@@ -187,13 +187,8 @@ const hasAccessToFeature = (myFeatures, feature) => {
187
187
  * Hook to get the analytics context.
188
188
  *
189
189
  * @example
190
- * import { useAnalytics, useEnvironment } from "@trackunit/react-core-hooks";
191
- * const { logPageView, logEvent } = useAnalytics(SharedEvents);
192
- *
193
- * // log page view event
194
- * useEffect(() => {
195
- * logPageView({ pageName: "login" });
196
- * }, [logPageView]);
190
+ * import { useAnalytics } from "@trackunit/react-core-hooks";
191
+ * const { logEvent } = useAnalytics(SharedEvents);
197
192
  *
198
193
  * // log event when appropriate
199
194
  * logEvent("Login", { loginPage: "New Manager" });
package/index.esm.js CHANGED
@@ -185,13 +185,8 @@ const hasAccessToFeature = (myFeatures, feature) => {
185
185
  * Hook to get the analytics context.
186
186
  *
187
187
  * @example
188
- * import { useAnalytics, useEnvironment } from "@trackunit/react-core-hooks";
189
- * const { logPageView, logEvent } = useAnalytics(SharedEvents);
190
- *
191
- * // log page view event
192
- * useEffect(() => {
193
- * logPageView({ pageName: "login" });
194
- * }, [logPageView]);
188
+ * import { useAnalytics } from "@trackunit/react-core-hooks";
189
+ * const { logEvent } = useAnalytics(SharedEvents);
195
190
  *
196
191
  * // log event when appropriate
197
192
  * logEvent("Login", { loginPage: "New Manager" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-hooks",
3
- "version": "1.31.8",
3
+ "version": "1.31.9",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "es-toolkit": "^1.52.0",
11
- "@trackunit/iris-app-runtime-core": "1.28.8",
12
- "@trackunit/iris-app-runtime-core-api": "1.27.8",
13
- "@trackunit/react-core-contexts-api": "1.28.8",
11
+ "@trackunit/iris-app-runtime-core": "1.28.9",
12
+ "@trackunit/iris-app-runtime-core-api": "1.27.9",
13
+ "@trackunit/react-core-contexts-api": "1.28.9",
14
14
  "zod": "^3.25.76"
15
15
  },
16
16
  "peerDependencies": {
@@ -3,13 +3,8 @@ import { AnalyticsRuntimeApiSync, EventDictionary } from "@trackunit/iris-app-ru
3
3
  * Hook to get the analytics context.
4
4
  *
5
5
  * @example
6
- * import { useAnalytics, useEnvironment } from "@trackunit/react-core-hooks";
7
- * const { logPageView, logEvent } = useAnalytics(SharedEvents);
8
- *
9
- * // log page view event
10
- * useEffect(() => {
11
- * logPageView({ pageName: "login" });
12
- * }, [logPageView]);
6
+ * import { useAnalytics } from "@trackunit/react-core-hooks";
7
+ * const { logEvent } = useAnalytics(SharedEvents);
13
8
  *
14
9
  * // log event when appropriate
15
10
  * logEvent("Login", { loginPage: "New Manager" });