kyd-shared-badge 0.3.80 → 0.3.81

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kyd-shared-badge",
3
- "version": "0.3.80",
3
+ "version": "0.3.81",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -41,6 +41,7 @@ export function ConnectAccounts(props: ConnectAccountsProps) {
41
41
  initialProviderId,
42
42
  githubAppSlugId,
43
43
  userId,
44
+ inviteId,
44
45
  } = props;
45
46
 
46
47
  const router = useRouter();
@@ -341,7 +342,7 @@ export function ConnectAccounts(props: ConnectAccountsProps) {
341
342
  className="w-full sm:w-auto bg-[var(--icon-accent)] text-white transition-colors font-semibold"
342
343
  onClick={() => {
343
344
  const opaqueState = window.crypto?.randomUUID?.() || Math.random().toString(36).substring(2);
344
- const stateObj = { opaqueState, userId, companyId };
345
+ const stateObj = { opaqueState, userId, companyId, inviteId };
345
346
  const stateString = encodeURIComponent(JSON.stringify(stateObj));
346
347
  const redirectUrl = `https://github.com/apps/${githubAppSlugId}/installations/new?state=${stateString}`;
347
348
  window.location.href = redirectUrl;
@@ -39,6 +39,7 @@ export interface ConnectAccountsProps {
39
39
  initialProviderId?: string;
40
40
  githubAppSlugId: string;
41
41
  userId: string;
42
+ inviteId?: string;
42
43
  }
43
44
 
44
45