@modelnex/sdk 0.5.42 → 0.5.43

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.js CHANGED
@@ -4182,7 +4182,7 @@ function useTourPlayback({
4182
4182
  }, { devMode: devModeRef.current });
4183
4183
  const profile = userProfileRef.current;
4184
4184
  const currentWebsiteId = websiteIdRef.current;
4185
- if (currentWebsiteId && profile?.userId) {
4185
+ if (currentWebsiteId && profile?.type) {
4186
4186
  emitSocketEvent(socket, "tour:init", { websiteId: currentWebsiteId, userId: profile.userId, userType: profile.type });
4187
4187
  }
4188
4188
  };
@@ -4889,7 +4889,7 @@ function useTourPlayback({
4889
4889
  if (disabled) return;
4890
4890
  const s = socketRef.current;
4891
4891
  const profile = userProfile;
4892
- if (!websiteId || !profile?.userId) return;
4892
+ if (!websiteId || !profile?.type) return;
4893
4893
  const timer = setTimeout(() => {
4894
4894
  emitSocketEvent(s, "tour:init", { websiteId, userId: profile.userId, userType: profile.type });
4895
4895
  }, 150);
package/dist/index.mjs CHANGED
@@ -3805,7 +3805,7 @@ function useTourPlayback({
3805
3805
  }, { devMode: devModeRef.current });
3806
3806
  const profile = userProfileRef.current;
3807
3807
  const currentWebsiteId = websiteIdRef.current;
3808
- if (currentWebsiteId && profile?.userId) {
3808
+ if (currentWebsiteId && profile?.type) {
3809
3809
  emitSocketEvent(socket, "tour:init", { websiteId: currentWebsiteId, userId: profile.userId, userType: profile.type });
3810
3810
  }
3811
3811
  };
@@ -4512,7 +4512,7 @@ function useTourPlayback({
4512
4512
  if (disabled) return;
4513
4513
  const s = socketRef.current;
4514
4514
  const profile = userProfile;
4515
- if (!websiteId || !profile?.userId) return;
4515
+ if (!websiteId || !profile?.type) return;
4516
4516
  const timer = setTimeout(() => {
4517
4517
  emitSocketEvent(s, "tour:init", { websiteId, userId: profile.userId, userType: profile.type });
4518
4518
  }, 150);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelnex/sdk",
3
- "version": "0.5.42",
3
+ "version": "0.5.43",
4
4
  "description": "React SDK for natural language control of web apps via AI agents",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",