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/cjs/index.js
CHANGED
|
@@ -1744,6 +1744,11 @@ const logClientEvent = (opts) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
1744
1744
|
action: (opts.action
|
|
1745
1745
|
? opts.action
|
|
1746
1746
|
: undefined),
|
|
1747
|
+
overriddenUserInfo: {
|
|
1748
|
+
userId: opts.userId,
|
|
1749
|
+
userFirstName: opts.userFirstName,
|
|
1750
|
+
userLastName: opts.userLastName,
|
|
1751
|
+
},
|
|
1747
1752
|
},
|
|
1748
1753
|
});
|
|
1749
1754
|
});
|
|
@@ -3875,6 +3880,10 @@ var LogAction;
|
|
|
3875
3880
|
LogAction["Jump"] = "Jump";
|
|
3876
3881
|
// Post a submission/message/etc. into the target
|
|
3877
3882
|
LogAction["Post"] = "Post";
|
|
3883
|
+
// Like something
|
|
3884
|
+
LogAction["Like"] = "Like";
|
|
3885
|
+
// Dislike something
|
|
3886
|
+
LogAction["Dislike"] = "Dislike";
|
|
3878
3887
|
// Unknown action
|
|
3879
3888
|
LogAction["Unknown"] = "Unknown";
|
|
3880
3889
|
})(LogAction || (LogAction = {}));
|