@amityco/ui-kit-open-source 4.16.3 → 4.17.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/dist/index.d.mts CHANGED
@@ -701,6 +701,10 @@ interface PageBehavior {
701
701
  onLivestreamProductTagClick?(context: {
702
702
  product: Amity.Product;
703
703
  }): void;
704
+ handleVisitorUsageLimitReached?(): void;
705
+ handleVisitorUsageLimitSignIn?(context: {
706
+ alignment: NotificationAlignment;
707
+ }): void;
704
708
  };
705
709
  AmityEventTargetSelectionPageBehavior?: {
706
710
  goToEventSetupPage?(context: EventSetupProps): void;
@@ -1025,6 +1029,7 @@ interface RegisterDeviceParams {
1025
1029
  onDisconnected?: () => void;
1026
1030
  onGlobalBanned?: (payload: Amity.UserPayload) => void;
1027
1031
  onUserDeleted?: (payload: Amity.UserPayload) => void;
1032
+ onVisitorUsageLimitReached?: () => void;
1028
1033
  }
1029
1034
  /**
1030
1035
  * Manages the Amity SDK client and authentication state.
@@ -1039,8 +1044,10 @@ declare class AmityUIKitManager {
1039
1044
  private onConnected?;
1040
1045
  private onDisconnected?;
1041
1046
  private globalBannedUnsubscribe?;
1047
+ private visitorUsageLimitUnsubscribe?;
1042
1048
  private onGlobalBanned?;
1043
1049
  private onUserDeleted?;
1050
+ private onVisitorUsageLimitReached?;
1044
1051
  /**
1045
1052
  * Private constructor to prevent direct instantiation.
1046
1053
  */
@@ -1062,7 +1069,7 @@ declare class AmityUIKitManager {
1062
1069
  * Registers a device with the Amity SDK and handles the login process.
1063
1070
  * @param params - The parameters object containing all registration options.
1064
1071
  */
1065
- static registerDevice({ userId, displayName, sessionHandler, authToken, authSignatureParams, onConnectionStatusChange, onConnected, onDisconnected, onGlobalBanned, onUserDeleted, }: RegisterDeviceParams): Promise<void>;
1072
+ static registerDevice({ userId, displayName, sessionHandler, authToken, authSignatureParams, onConnectionStatusChange, onConnected, onDisconnected, onGlobalBanned, onUserDeleted, onVisitorUsageLimitReached, }: RegisterDeviceParams): Promise<void>;
1066
1073
  /**
1067
1074
  * Sets the AmityClient instance to be used by the AmityUIKitManager.
1068
1075
  * This method is useful when sharing the AmityClient instance between different parts of the application.
package/dist/index.d.ts CHANGED
@@ -701,6 +701,10 @@ interface PageBehavior {
701
701
  onLivestreamProductTagClick?(context: {
702
702
  product: Amity.Product;
703
703
  }): void;
704
+ handleVisitorUsageLimitReached?(): void;
705
+ handleVisitorUsageLimitSignIn?(context: {
706
+ alignment: NotificationAlignment;
707
+ }): void;
704
708
  };
705
709
  AmityEventTargetSelectionPageBehavior?: {
706
710
  goToEventSetupPage?(context: EventSetupProps): void;
@@ -1025,6 +1029,7 @@ interface RegisterDeviceParams {
1025
1029
  onDisconnected?: () => void;
1026
1030
  onGlobalBanned?: (payload: Amity.UserPayload) => void;
1027
1031
  onUserDeleted?: (payload: Amity.UserPayload) => void;
1032
+ onVisitorUsageLimitReached?: () => void;
1028
1033
  }
1029
1034
  /**
1030
1035
  * Manages the Amity SDK client and authentication state.
@@ -1039,8 +1044,10 @@ declare class AmityUIKitManager {
1039
1044
  private onConnected?;
1040
1045
  private onDisconnected?;
1041
1046
  private globalBannedUnsubscribe?;
1047
+ private visitorUsageLimitUnsubscribe?;
1042
1048
  private onGlobalBanned?;
1043
1049
  private onUserDeleted?;
1050
+ private onVisitorUsageLimitReached?;
1044
1051
  /**
1045
1052
  * Private constructor to prevent direct instantiation.
1046
1053
  */
@@ -1062,7 +1069,7 @@ declare class AmityUIKitManager {
1062
1069
  * Registers a device with the Amity SDK and handles the login process.
1063
1070
  * @param params - The parameters object containing all registration options.
1064
1071
  */
1065
- static registerDevice({ userId, displayName, sessionHandler, authToken, authSignatureParams, onConnectionStatusChange, onConnected, onDisconnected, onGlobalBanned, onUserDeleted, }: RegisterDeviceParams): Promise<void>;
1072
+ static registerDevice({ userId, displayName, sessionHandler, authToken, authSignatureParams, onConnectionStatusChange, onConnected, onDisconnected, onGlobalBanned, onUserDeleted, onVisitorUsageLimitReached, }: RegisterDeviceParams): Promise<void>;
1066
1073
  /**
1067
1074
  * Sets the AmityClient instance to be used by the AmityUIKitManager.
1068
1075
  * This method is useful when sharing the AmityClient instance between different parts of the application.