@lumiapassport/ui-kit 1.10.0 → 1.11.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.cts CHANGED
@@ -1053,6 +1053,12 @@ declare class IframeManager {
1053
1053
  private pendingRequests;
1054
1054
  private usedNonces;
1055
1055
  private messageListener;
1056
+ private hiddenElements;
1057
+ private pointerGuardCleanup;
1058
+ private iframeHideTimeout;
1059
+ private iframeActive;
1060
+ private providerSessions;
1061
+ private providerConnections;
1056
1062
  private readonly REQUEST_TIMEOUT;
1057
1063
  private readonly NONCE_EXPIRY;
1058
1064
  constructor(config: IframeManagerConfig);
@@ -1100,10 +1106,28 @@ declare class IframeManager {
1100
1106
  * Hide iframe
1101
1107
  */
1102
1108
  hideIframe(): void;
1109
+ /**
1110
+ * Hide all Radix Dialog modals (SendModal, etc.)
1111
+ */
1112
+ private hideAllDialogs;
1113
+ /**
1114
+ * Restore all previously hidden Radix Dialog modals
1115
+ */
1116
+ private restoreAllDialogs;
1117
+ /**
1118
+ * Stop Radix dismissable layers from swallowing the first click on the iframe.
1119
+ * Radix attaches pointer event guards at the document level; we intercept at window
1120
+ * capture phase so user clicks flow straight into the consent iframe.
1121
+ */
1122
+ private enablePointerEventGuards;
1123
+ /**
1124
+ * Remove pointer interception once iframe is hidden again.
1125
+ */
1126
+ private disablePointerEventGuards;
1103
1127
  /**
1104
1128
  * Authenticate user with application
1105
1129
  */
1106
- authenticate(userId: string): Promise<{
1130
+ authenticate(userId: string, avatar?: string | null, displayName?: string | null): Promise<{
1107
1131
  userId: string;
1108
1132
  address: Address$1 | undefined;
1109
1133
  }>;
@@ -1114,7 +1138,7 @@ declare class IframeManager {
1114
1138
  /**
1115
1139
  * Sign transaction
1116
1140
  */
1117
- signTransaction(userId: string, transaction: Transaction, accessToken?: string): Promise<Hex>;
1141
+ signTransaction(userId: string, transaction: Transaction, accessToken?: string, avatar?: string | null, displayName?: string | null): Promise<Hex>;
1118
1142
  /**
1119
1143
  * Sign EIP712 typed data
1120
1144
  */
@@ -1132,7 +1156,7 @@ declare class IframeManager {
1132
1156
  }>>;
1133
1157
  primaryType: string;
1134
1158
  message: Record<string, any>;
1135
- }, digest32: Hex, accessToken?: string): Promise<Hex>;
1159
+ }, digest32: Hex, accessToken?: string, avatar?: string | null, displayName?: string | null): Promise<Hex>;
1136
1160
  /**
1137
1161
  * Get user's wallet address
1138
1162
  */
@@ -1151,8 +1175,25 @@ declare class IframeManager {
1151
1175
  provider: string;
1152
1176
  success: boolean;
1153
1177
  user?: any;
1178
+ mode?: 'login' | 'link';
1154
1179
  error?: string;
1155
1180
  }>;
1181
+ /**
1182
+ * Fallback verification for X OAuth cancellations.
1183
+ * Attempts to detect if the backend session was still established.
1184
+ */
1185
+ private verifyXAuthSession;
1186
+ /**
1187
+ * Prime provider session/cache state to detect future changes.
1188
+ */
1189
+ private primeProviderSessions;
1190
+ private getKnownSessionId;
1191
+ private getKnownProviderConnection;
1192
+ private recordProviderSession;
1193
+ private recordProviderConnection;
1194
+ private updateProviderTrackingFromUser;
1195
+ private extractSessionId;
1196
+ private getProvidersList;
1156
1197
  /**
1157
1198
  * Get trusted apps for user
1158
1199
  */
package/dist/index.d.ts CHANGED
@@ -1053,6 +1053,12 @@ declare class IframeManager {
1053
1053
  private pendingRequests;
1054
1054
  private usedNonces;
1055
1055
  private messageListener;
1056
+ private hiddenElements;
1057
+ private pointerGuardCleanup;
1058
+ private iframeHideTimeout;
1059
+ private iframeActive;
1060
+ private providerSessions;
1061
+ private providerConnections;
1056
1062
  private readonly REQUEST_TIMEOUT;
1057
1063
  private readonly NONCE_EXPIRY;
1058
1064
  constructor(config: IframeManagerConfig);
@@ -1100,10 +1106,28 @@ declare class IframeManager {
1100
1106
  * Hide iframe
1101
1107
  */
1102
1108
  hideIframe(): void;
1109
+ /**
1110
+ * Hide all Radix Dialog modals (SendModal, etc.)
1111
+ */
1112
+ private hideAllDialogs;
1113
+ /**
1114
+ * Restore all previously hidden Radix Dialog modals
1115
+ */
1116
+ private restoreAllDialogs;
1117
+ /**
1118
+ * Stop Radix dismissable layers from swallowing the first click on the iframe.
1119
+ * Radix attaches pointer event guards at the document level; we intercept at window
1120
+ * capture phase so user clicks flow straight into the consent iframe.
1121
+ */
1122
+ private enablePointerEventGuards;
1123
+ /**
1124
+ * Remove pointer interception once iframe is hidden again.
1125
+ */
1126
+ private disablePointerEventGuards;
1103
1127
  /**
1104
1128
  * Authenticate user with application
1105
1129
  */
1106
- authenticate(userId: string): Promise<{
1130
+ authenticate(userId: string, avatar?: string | null, displayName?: string | null): Promise<{
1107
1131
  userId: string;
1108
1132
  address: Address$1 | undefined;
1109
1133
  }>;
@@ -1114,7 +1138,7 @@ declare class IframeManager {
1114
1138
  /**
1115
1139
  * Sign transaction
1116
1140
  */
1117
- signTransaction(userId: string, transaction: Transaction, accessToken?: string): Promise<Hex>;
1141
+ signTransaction(userId: string, transaction: Transaction, accessToken?: string, avatar?: string | null, displayName?: string | null): Promise<Hex>;
1118
1142
  /**
1119
1143
  * Sign EIP712 typed data
1120
1144
  */
@@ -1132,7 +1156,7 @@ declare class IframeManager {
1132
1156
  }>>;
1133
1157
  primaryType: string;
1134
1158
  message: Record<string, any>;
1135
- }, digest32: Hex, accessToken?: string): Promise<Hex>;
1159
+ }, digest32: Hex, accessToken?: string, avatar?: string | null, displayName?: string | null): Promise<Hex>;
1136
1160
  /**
1137
1161
  * Get user's wallet address
1138
1162
  */
@@ -1151,8 +1175,25 @@ declare class IframeManager {
1151
1175
  provider: string;
1152
1176
  success: boolean;
1153
1177
  user?: any;
1178
+ mode?: 'login' | 'link';
1154
1179
  error?: string;
1155
1180
  }>;
1181
+ /**
1182
+ * Fallback verification for X OAuth cancellations.
1183
+ * Attempts to detect if the backend session was still established.
1184
+ */
1185
+ private verifyXAuthSession;
1186
+ /**
1187
+ * Prime provider session/cache state to detect future changes.
1188
+ */
1189
+ private primeProviderSessions;
1190
+ private getKnownSessionId;
1191
+ private getKnownProviderConnection;
1192
+ private recordProviderSession;
1193
+ private recordProviderConnection;
1194
+ private updateProviderTrackingFromUser;
1195
+ private extractSessionId;
1196
+ private getProvidersList;
1156
1197
  /**
1157
1198
  * Get trusted apps for user
1158
1199
  */