@frigade/react 1.37.20 → 1.37.21
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/index.d.ts +2 -7
- package/dist/index.js +51 -51
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +119 -119
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -716,15 +716,10 @@ declare function useFlowOpens(): {
|
|
|
716
716
|
declare function useUser(): {
|
|
717
717
|
readonly userId: string | null;
|
|
718
718
|
readonly setUserId: React__default.Dispatch<React__default.SetStateAction<string | null>>;
|
|
719
|
-
|
|
720
|
-
* Sets the user id and properties for the current user.
|
|
721
|
-
* @param userId The user id of the user that is currently logged in.
|
|
722
|
-
* @param properties The properties of the user that is currently logged in.
|
|
723
|
-
* @param linkGuestSession If true, any data/state collected during guest session will be linked to the user.
|
|
724
|
-
*/
|
|
725
|
-
readonly setUserIdWithProperties: (userId: string, properties?: EntityProperties, linkGuestSession?: boolean) => Promise<void>;
|
|
719
|
+
readonly setUserIdWithProperties: (userId: string, properties?: EntityProperties) => Promise<void>;
|
|
726
720
|
readonly addPropertiesToUser: (properties: EntityProperties) => Promise<void>;
|
|
727
721
|
readonly trackEventForUser: (event: string, properties?: EntityProperties) => Promise<void>;
|
|
722
|
+
readonly linkExistingGuestSessionToUser: (userId: string) => Promise<void>;
|
|
728
723
|
};
|
|
729
724
|
|
|
730
725
|
declare function useOrganization(): {
|