@trackunit/react-core-hooks 1.31.8 → 1.31.10-alpha-d98ab98e47c.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/index.cjs.js +2 -7
- package/index.esm.js +2 -7
- package/migrations/entry.js.map +1 -0
- package/package.json +4 -4
- package/src/analytics/useAnalytics.d.ts +2 -7
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
|
|
191
|
-
* const {
|
|
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
|
|
189
|
-
* const {
|
|
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" });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/core-hooks/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-hooks",
|
|
3
|
-
"version": "1.31.
|
|
3
|
+
"version": "1.31.10-alpha-d98ab98e47c.0",
|
|
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.
|
|
12
|
-
"@trackunit/iris-app-runtime-core-api": "1.27.
|
|
13
|
-
"@trackunit/react-core-contexts-api": "1.28.
|
|
11
|
+
"@trackunit/iris-app-runtime-core": "1.28.10-alpha-d98ab98e47c.0",
|
|
12
|
+
"@trackunit/iris-app-runtime-core-api": "1.27.10-alpha-d98ab98e47c.0",
|
|
13
|
+
"@trackunit/react-core-contexts-api": "1.28.10-alpha-d98ab98e47c.0",
|
|
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
|
|
7
|
-
* const {
|
|
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" });
|