dce-reactkit 4.1.6 → 4.1.8
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/dist/cjs/index.js +9 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/types/LogAction.d.ts +2 -0
- package/dist/cjs/types/types/LogFunction.d.ts +3 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/types/LogAction.d.ts +2 -0
- package/dist/esm/types/types/LogFunction.d.ts +3 -0
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
- package/src/helpers/logClientEvent.tsx +5 -0
- package/src/types/LogAction.ts +4 -0
- package/src/types/LogFunction.ts +6 -0
package/dist/esm/index.js
CHANGED
|
@@ -1717,6 +1717,11 @@ const logClientEvent = (opts) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
1717
1717
|
action: (opts.action
|
|
1718
1718
|
? opts.action
|
|
1719
1719
|
: undefined),
|
|
1720
|
+
overriddenUserInfo: {
|
|
1721
|
+
userId: opts.userId,
|
|
1722
|
+
userFirstName: opts.userFirstName,
|
|
1723
|
+
userLastName: opts.userLastName,
|
|
1724
|
+
},
|
|
1720
1725
|
},
|
|
1721
1726
|
});
|
|
1722
1727
|
});
|
|
@@ -3848,6 +3853,10 @@ var LogAction;
|
|
|
3848
3853
|
LogAction["Jump"] = "Jump";
|
|
3849
3854
|
// Post a submission/message/etc. into the target
|
|
3850
3855
|
LogAction["Post"] = "Post";
|
|
3856
|
+
// Like something
|
|
3857
|
+
LogAction["Like"] = "Like";
|
|
3858
|
+
// Dislike something
|
|
3859
|
+
LogAction["Dislike"] = "Dislike";
|
|
3851
3860
|
// Unknown action
|
|
3852
3861
|
LogAction["Unknown"] = "Unknown";
|
|
3853
3862
|
})(LogAction || (LogAction = {}));
|